/* Rowdy Rounds — shared design tokens and primitives */

:root {
    --felt: #123524;
    --felt-dark: #0B241A;
    --felt-light: #1C4A32;
    --chalk: #F4EFE4;
    --ink: #1B1B17;
    --ember: #E85D3D;
    --ember-dark: #C6472B;
    --foil: #D8AA46;
    --foil-dark: #B78A2E;
    --line: rgba(216, 170, 70, 0.35);

    --font-display: "Anton", "Arial Narrow", sans-serif;
    --font-body: "Work Sans", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--chalk);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 0;
}

button {
    font-family: var(--font-body);
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--foil);
    outline-offset: 2px;
}

/* Shared corner-index badge: encodes card category, used on both
   the football card and the home-page category tiles. */
.corner-index {
    font-family: var(--font-display);
    font-size: 0.85rem;
    line-height: 1;
    letter-spacing: 0.03em;
    color: var(--chalk);
}

.corner-index small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* Shared modal (alerts, tutorial, profile) - lives here rather than in
   game_style.css since the profile modal appears on every page, not just
   game pages. */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(11, 36, 26, 0.6);
}

.modal-content {
    background-color: var(--chalk);
    margin: 15% auto;
    padding: 28px;
    border-radius: 10px;
    border: 2px solid var(--felt);
    width: 80%;
    max-width: 360px;
    text-align: center;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.modal-btn-primary {
    padding: 10px 24px;
    background-color: var(--felt);
    color: var(--chalk);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.modal-btn-secondary {
    padding: 10px 24px;
    background-color: transparent;
    color: var(--felt);
    border: 2px solid var(--felt);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
