/* 5 Star — wrestling PPV booking game. Consumes rankings.css :root vars.
   Mobile-first. */

/* ---------- 5 Star palette: True Black and Championship Gold (2026-06) ----
   Candidate A. Cold true-black surface ramp (zero warm grays), gold as
   polished championship METAL: a three-stop plate gradient with engraved
   bevel insets, rationed to the objects that earn it (START, SPIN, the
   grade plate, lit stars, the legendary medal). Everything else is a quiet
   black panel with hairline borders. Mirrors
   static/css/five-star-board-placement.css. The JS share canvases mirror these
   hexes via the FS_SHARE_COLORS constant in BOTH game JS files — keep all
   three in sync. */
:root {
    --fs-display-font: "Archivo Black", "Arial Black", Impact, sans-serif;
    --fs-black: #0A0A0C;        /* true black — page base */
    --fs-black-2: #101014;      /* board surface */
    --fs-black-3: #17171C;      /* raised object */
    --fs-black-4: #1E1E25;      /* hover fill */
    --fs-steel: #26262e;        /* off-state shapes */
    --fs-line: #26262E;         /* hairline borders */
    --fs-line-soft: #1A1A20;    /* softer hairlines */
    --fs-white: #EDEDF1;        /* ink — primary text */
    --fs-white-dim: #A2A2AE;    /* secondary text */
    --fs-white-faint: #8A8A96;  /* faint labels (AA 4.5:1 on panels) */
    /* Championship gold ramp: metal, not mustard. */
    --fs-gold-hi: #FFEFB8;      /* plate highlight */
    --fs-gold-1: #F2D374;       /* bright gold — small text on black */
    --fs-gold-2: #E8C254;       /* plate body — bright, never mustard */
    --fs-gold-3: #A87E1F;       /* quiet borders / bevel shadows ONLY (never large fills) */
    --fs-gold-plate-low: #C9982E; /* plate low stop — large-fill floor of the gold ramp */
    --fs-gold-4: #6E5113;       /* deep engraving */
    --fs-gold-glow: rgba(217, 174, 63, .22);
    --fs-gold-soft: rgba(217, 174, 63, .10); /* selection wash */
    --fs-ink-on-gold: #1A1206;  /* text ON gold plates */
    /* The metal plates: 3-stop gradient + engraved bevel insets. */
    --fs-plate: linear-gradient(172deg, var(--fs-gold-hi) 0%, var(--fs-gold-1) 22%, var(--fs-gold-2) 48%, var(--fs-gold-plate-low) 74%, var(--fs-gold-1) 100%);
    --fs-plate-edge: inset 0 1px 0 rgba(255, 245, 210, .85), inset 0 -2px 0 rgba(60, 42, 8, .55), 0 1px 0 rgba(0, 0, 0, .7);
    --fs-strip: linear-gradient(180deg, var(--fs-gold-1), var(--fs-gold-plate-low));
    --fs-rule: #26262E;         /* thin rules between bouts */
    --fs-gold: var(--fs-gold-1); /* lit stars / earned text gold */
    --fs-gold-hot: #FFEFB8;
    --fs-gold-rule: var(--fs-rule); /* poster rules between bouts */
    --fs-blue: #38BDF8;         /* functional info (rankings --electric-blue) */
    --fs-blue-wash: rgba(56, 189, 248, .05); /* cool low spotlight */
    --fs-ember: #F97316;        /* rivalry heat — kicker text + bonus bar */
    --fs-ember-deep: #C2410C;   /* rivalry bar low stop */
    --fs-women-mark: rgba(228, 138, 200, .65); /* women's match slot marker */
    --fs-error: #ffb4ab;        /* error text on --fs-error-bg, with a ! glyph */
    --fs-error-bg: #5c0f0f;     /* dark error red — never the brand gold */
    /* ONE tier token set: the achievement gallery AND toasts read these.
       Starter/rare/legendary alias the base palette; secret owns its violet. */
    --fs-tier-starter: var(--fs-white-dim);
    --fs-tier-rare: var(--fs-blue);
    --fs-tier-legendary: var(--fs-gold-1);
    --fs-tier-secret: #b3a6d6;
    /* Interactive component boundaries need 3:1 against their surface (WCAG
       1.4.11); the soft --border-color (1.4:1-ish) stays for decorative edges. */
    --border-interactive: #6a6a78;
}
/* Scoped remap of the rankings.css token family: every five-star page
   (body.fs-page) flips to the black-and-gold palette; rankings pages keep
   their navy/amber untouched. */
body.fs-page {
    --dark-bg: var(--fs-black);
    --card-bg: var(--fs-black-3);
    --border-color: var(--fs-line);
    --text-primary: var(--fs-white);
    --text-secondary: var(--fs-white-dim);
    --gold: var(--fs-gold-1);
    --gold-dark: var(--fs-gold-3);
    --dark-gold: var(--fs-gold-3);
    --radius-sm: 6px;
    --radius-md: 10px;
    /* True black with two faint gold spotlights, nothing else. */
    background-color: var(--fs-black);
    background-image:
        radial-gradient(1100px 480px at 50% -120px, rgba(217, 174, 63, .07), transparent 65%),
        radial-gradient(900px 600px at 85% 110%, rgba(217, 174, 63, .04), transparent 60%);
    color: var(--fs-white);
}

/* ---------- Chrome-free game page ----------
   On /five-star the base template's top nav + banner are omitted (body.fs-page).
   Reclaim the .main-content top/bottom padding so the game starts at the very
   top of the viewport, and style the lone bottom back-link. */
body.fs-page .main-content {
    padding: 0;
}
body.fs-page .fs-screen {
    padding-top: var(--spacing-md, 16px);
}

/* ---------- Slim game-only top bar ----------
   Deliberately unobtrusive (the page is chrome-free by design). Left: wordmark.
   Right: an info control that opens a small panel BELOW the bar — mobile-first
   full-width sheet; right-aligned dropdown at >=720px. */
.fs-topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm, 12px);
    padding: 8px max(12px, env(safe-area-inset-left, 0px)) 8px
        max(12px, env(safe-area-inset-right, 0px));
    border-bottom: 1px solid var(--fs-line-soft);
    background: linear-gradient(180deg, var(--fs-black-2), var(--fs-black));
}
.fs-topbar-brand {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--text-primary, #fff);
    text-decoration: none;
}
/* Brand star: the same lit-star text glyph (★) as the grading meter, in the
   same championship gold. Text glyph so it can never tofu. */
.fs-brand-star { color: var(--fs-gold-1, #F2D374); }
.fs-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}
.fs-topbar-info {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary, #cfcfcf);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 12px;
    /* comfortable 44px-ish tap target on mobile */
    min-height: 36px;
    cursor: pointer;
}
.fs-topbar-info:hover,
.fs-topbar-info[aria-expanded="true"] {
    color: var(--text-primary, #fff);
    border-color: var(--fs-gold-1);
}
.fs-topbar-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}
.fs-topbar-info[aria-expanded="true"] .fs-topbar-caret {
    transform: rotate(180deg);
}

/* Panel: mobile-first full-width sheet sliding under the bar. */
.fs-info-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    padding: 6px;
    background: var(--fs-black-2);
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.fs-info-panel[hidden] {
    display: none;
}
.fs-info-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--text-primary, #fff);
    text-decoration: none;
    font-size: 0.9rem;
}
.fs-info-button {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-primary, #fff);
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.fs-info-button .fs-info-link-title {
    color: var(--text-primary, #fff);
}
.fs-info-button .fs-info-link-desc {
    color: var(--text-secondary, #d6d6d6);
}
.fs-info-button .fs-info-count {
    color: var(--gold);
}
.fs-info-link:hover,
.fs-info-link:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}
.fs-info-link-title {
    font-weight: 800;
}
.fs-info-link-desc {
    color: var(--text-secondary, #d6d6d6);
    font-size: .78rem;
    line-height: 1.35;
}
.fs-info-count {
    display: block;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.25;
}

/* Desktop: right-aligned dropdown instead of a full-width sheet. */
@media (min-width: 720px) {
    .fs-info-panel {
        left: auto;
        right: 12px;
        width: min(360px, calc(100vw - 24px));
        border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
        border-radius: 10px;
    }
}

.fs-page-footer {
    text-align: center;
    padding: var(--spacing-lg, 24px) var(--spacing-sm, 12px) calc(var(--spacing-lg, 24px) + env(safe-area-inset-bottom, 0px));
}
.fs-back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.8;
}
.fs-back-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.fs-screen {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--spacing-md, 16px) var(--spacing-sm, 12px) 96px;
}

/* ---------- Setup screen (single-focus flow) ---------- */
.fs-setup { max-width: 640px; }

/* Title strip — compact, no card (app surface, not a landing hero) */
.fs-setup-title { text-align: center; margin-bottom: var(--spacing-lg, 24px); }
.fs-setup-h2 {
    font-size: clamp(1.6rem, 5vw, 2.1rem);
    color: var(--fs-gold-1);
    text-shadow:
        0 1px 0 var(--fs-gold-hi),
        0 2px 0 var(--fs-gold-4),
        0 3px 0 rgba(0, 0, 0, .85),
        0 8px 24px var(--fs-gold-glow);
    margin: 0 0 4px;
    letter-spacing: 0.5px;
}
.fs-setup-promise {
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0 auto;
    max-width: 460px;
    font-size: .95rem;
}

/* Step container */
.fs-step { margin-bottom: var(--spacing-lg, 24px); }
.fs-step-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
}
.fs-step-num {
    flex: 0 0 auto;
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--fs-plate); color: var(--fs-ink-on-gold);
    border-radius: 50%; box-shadow: var(--fs-plate-edge);
    font-weight: 800; font-size: .85rem;
}
.fs-step-title { color: var(--text-primary); font-weight: 700; font-size: 1.05rem; }

/* ---- Step 1: mode tiles (select, do NOT auto-start) ---- */
.fs-mode-cards {
    display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 520px) { .fs-mode-cards { grid-template-columns: 1fr 1fr; } }

.fs-mode-card {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md, 10px);
    padding: 18px 16px;
    min-height: 44px;
    text-align: center; color: var(--text-primary); cursor: pointer;
    transition: border-color .15s, background .15s, transform .1s;
}
.fs-mode-card:hover { border-color: var(--gold-dark); transform: translateY(-1px); }
.fs-mode-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fs-mode-card[aria-pressed="true"] {
    border-color: var(--gold);
    background: linear-gradient(0deg, rgba(217, 174, 63, .1), rgba(217, 174, 63, .1)), var(--card-bg);
}
.fs-mode-badge { font-size: 2rem; line-height: 1; color: var(--fs-gold-1, #F2D374); }
/* SMARK = the unlit star: ratings hidden, book blind. Same glyph family. */
.fs-mode-badge.fs-mode-badge--hollow { color: var(--fs-gold-2, #E8C254); }
.fs-mode-name { color: var(--gold); font-weight: 800; letter-spacing: 1px; font-size: 1.1rem; }
.fs-mode-desc { color: var(--text-primary); font-size: .92rem; line-height: 1.35; }
.fs-mode-note { color: var(--text-secondary); font-size: .78rem; }
.fs-mode-check {
    position: absolute; top: 8px; right: 10px;
    color: var(--gold); font-weight: 800; font-size: 1rem;
    opacity: 0; transition: opacity .12s;
}
.fs-mode-card[aria-pressed="true"] .fs-mode-check { opacity: 1; }

/* ---- Step 2: disclosure ---- */
.fs-disclosure {
    width: 100%;
    display: flex; align-items: center; gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 10px);
    padding: 12px 14px; cursor: pointer; color: var(--text-primary);
    text-align: left; min-height: 48px;
}
.fs-disclosure:hover { border-color: var(--gold-dark); }
.fs-disclosure:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fs-disclosure-caret { color: var(--text-secondary); transition: transform .15s; flex: 0 0 auto; }
.fs-disclosure[aria-expanded="true"] .fs-disclosure-caret { transform: rotate(90deg); }

.fs-tune-body {
    border: 1px solid var(--border-color); border-top: none;
    border-radius: 0 0 var(--radius-md, 10px) var(--radius-md, 10px);
    padding: 14px; margin-top: -1px;
    display: flex; flex-direction: column; gap: 18px;
}
.fs-tune-body[hidden] { display: none; }

.fs-field-label { color: var(--gold); font-weight: 700; font-size: .9rem; }
.fs-field-help { color: var(--text-secondary); font-size: .82rem; line-height: 1.4; margin: 6px 0 0; }

/* Promotions */
.fs-promos-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fs-promos-hint { color: var(--electric-blue); font-size: .8rem; opacity: 0; transition: opacity .2s; }
.fs-promos-hint.show { opacity: 1; }
.fs-promos-bulk { margin-left: auto; display: flex; gap: 6px; }
.fs-bulk-btn {
    background: transparent; color: var(--electric-blue);
    border: 1px solid var(--border-color); border-radius: var(--radius-sm, 6px);
    padding: 4px 10px; font-size: .78rem; cursor: pointer; min-height: 32px;
}
.fs-bulk-btn:hover { border-color: var(--gold); }
.fs-bulk-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

.fs-promo-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fs-promo-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--fs-black-3); color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 6px);
    text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
    padding: 9px 18px; cursor: pointer; font-size: .85rem; min-height: 40px;
    transition: border-color .15s, background .15s, color .15s;
}
.fs-promo-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fs-promo-chip:hover { border-color: var(--fs-gold-3); color: var(--text-primary); }
.fs-promo-chip.on {
    background: var(--fs-black-4); color: var(--fs-white);
    border-color: var(--fs-gold-2);
    box-shadow: inset 3px 0 0 var(--fs-gold-2), 0 0 14px rgba(217, 174, 63, .10);
}
.fs-promo-chip.on .fs-promo-years { color: var(--fs-gold-1); opacity: 1; }
.fs-promo-name { font-weight: 700; }
.fs-promo-years { font-size: .72rem; color: var(--text-secondary); }
.fs-promo-chip.nope { animation: fs-nope .4s; }
@keyframes fs-nope {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* ---- Primary action: the ONE button ---- */
.fs-start-wrap { text-align: center; margin-bottom: var(--spacing-lg, 24px); }
.fs-start-btn {
    width: 100%; max-width: 420px;
    position: relative; overflow: hidden;
    background: var(--fs-plate);
    color: var(--fs-ink-on-gold); border: none;
    border-radius: 8px;
    font-size: 1.2rem; font-weight: 800; letter-spacing: 1px;
    padding: 16px 24px; cursor: pointer; min-height: 52px;
    text-shadow: 0 1px 0 rgba(255, 244, 205, .6);
    box-shadow: var(--fs-plate-edge), 0 12px 34px rgba(217, 174, 63, .25), 0 4px 10px rgba(0, 0, 0, .6);
    transition: transform .1s, box-shadow .15s, filter .12s;
}
.fs-start-btn:hover { box-shadow: var(--fs-plate-edge), 0 16px 44px rgba(217, 174, 63, .38), 0 4px 10px rgba(0, 0, 0, .6); }
.fs-start-btn:focus-visible { outline: 3px solid var(--text-primary); outline-offset: 2px; }
.fs-start-readout { color: var(--text-secondary); font-size: .82rem; margin: 8px 0 0; }

/* START sheen sweep: the one intentional hover motion on the plate.
   Ships suppressed under prefers-reduced-motion. */
.fs-start-btn::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
    transform: translateX(-120%);
}
.fs-start-btn:hover::after { transition: transform .7s ease; transform: translateX(120%); }
@media (prefers-reduced-motion: reduce) {
    .fs-start-btn::after { display: none; }
}

/* ---- How to play (link -> opens the canonical modal) ---- */
.fs-howto-link-wrap { text-align: center; }
.fs-howto-link {
    background: none; border: none; cursor: pointer;
    color: var(--gold); font-weight: 700; font-size: .9rem;
    text-decoration: underline; padding: 10px; min-height: 44px;
}
.fs-howto-link:hover { color: var(--text-primary); }
.fs-howto-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---- Cross-link to the companion game ---- */
.fs-other-games {
    margin: var(--spacing-lg, 24px) auto 0;
    max-width: 460px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}
.fs-other-games-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.fs-other-game-links {
    display: grid;
    gap: 10px;
}
.fs-other-game-link {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    color: var(--text-primary);
    text-decoration: none;
}
.fs-other-game-link:hover .fs-other-game-name,
.fs-other-game-link:focus-visible .fs-other-game-name {
    color: var(--text-primary);
    text-decoration: underline;
}
.fs-other-game-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 4px;
}
.fs-other-game-name {
    color: var(--gold);
    font-weight: 800;
    white-space: nowrap;
}
.fs-other-game-desc {
    color: var(--text-secondary);
    font-size: .86rem;
    line-height: 1.35;
}
@media (max-width: 480px) {
    .fs-other-game-link {
        flex-direction: column;
        align-items: center;
        gap: 3px;
    }
}

/* ---- How to Play modal (the ONE canonical how-to) ---- */
.fs-howto-overlay { position: fixed; inset: 0; z-index: 1000; }
.fs-howto-overlay[hidden] { display: none; }
.fs-howto-backdrop {
    position: absolute; inset: 0; background: rgba(0, 0, 0, .72);
}
.fs-howto-dialog {
    position: relative; z-index: 1;
    max-width: 520px; width: calc(100% - 32px);
    max-height: calc(100vh - 48px); overflow-y: auto;
    margin: 24px auto; top: 50%; transform: translateY(-50%);
    background: var(--card-bg); border: 1px solid var(--gold);
    border-radius: var(--radius-md, 10px);
    padding: 24px 22px calc(22px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 16px 48px rgba(0, 0, 0, .6);
    animation: fs-howto-in .2s ease-out both;
}
@keyframes fs-howto-in {
    0% { opacity: 0; transform: translateY(-50%) scale(.96); }
    100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
.fs-howto-x {
    position: absolute; top: 10px; right: 12px;
    background: none; border: none; color: var(--text-secondary);
    font-size: 1.2rem; cursor: pointer; line-height: 1;
    width: 36px; height: 36px; border-radius: var(--radius-sm, 6px);
}
.fs-howto-x:hover { color: var(--text-primary); }
.fs-howto-x:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fs-howto-h2 {
    color: var(--gold); margin: 0 0 4px; font-size: clamp(1.4rem, 4.5vw, 1.8rem);
    letter-spacing: .5px; padding-right: 32px;
}
.fs-howto-intro { color: var(--text-primary); margin: 0 0 16px; line-height: 1.45; }
.fs-howto-sec { margin-bottom: 14px; }
.fs-howto-h3 {
    color: var(--electric-blue); margin: 0 0 4px;
    font-size: 1rem; letter-spacing: .3px;
}
.fs-howto-sec p { color: var(--text-secondary); margin: 0; line-height: 1.5; }
.fs-howto-sec strong { color: var(--text-primary); }
.fs-howto-closer {
    color: var(--gold); font-weight: 700; font-style: italic;
    text-align: center; margin: 18px 0; font-size: 1.05rem;
}
.fs-howto-actions {
    display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.fs-howto-actions .fs-primary-btn,
.fs-howto-actions .fs-secondary-btn { min-height: 44px; }
.fs-howto-actions .fs-primary-btn:focus-visible { outline: 3px solid var(--text-primary); outline-offset: 2px; }
.fs-howto-actions .fs-secondary-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .fs-howto-dialog { animation: none; }
}

/* ---- Motion discipline / reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .fs-mode-card, .fs-start-btn, .fs-disclosure-caret,
    .fs-promos-hint, .fs-mode-check, .fs-promo-chip { transition: none; }
    .fs-mode-card:hover, .fs-start-btn:hover { transform: none; }
    .fs-promo-chip.nope { animation: none; }
}

/* ---------- Booking ---------- */
.fs-book-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: var(--spacing-md, 16px);
}
.fs-round-counter { font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.fs-mode-pill {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 999px; padding: 4px 12px; font-size: .85rem; color: var(--text-primary);
}
.fs-link-btn { background: none; border: none; color: var(--text-secondary); cursor: pointer; text-decoration: underline; }

.fs-context-line {
    margin: -6px 0 var(--spacing-md, 16px);
    color: var(--text-secondary);
    font-size: .9rem;
}

.fs-slot {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 10px);
    padding: 18px;
    text-align: center;
    margin-bottom: var(--spacing-md, 16px);
}
.fs-reels { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.fs-reel {
    flex: 1; max-width: 200px;
    background: linear-gradient(180deg, #0C0C0F, var(--fs-black-3) 50%, #0C0C0F);
    border: 1px solid var(--border-color);
    padding: 10px;
}
.fs-reel-label { display: block; font-size: .7rem; color: var(--text-secondary); letter-spacing: 1px; margin-bottom: 6px; }
.fs-reel-window {
    display: block; font-size: 1.4rem; font-weight: 800; color: var(--fs-white);
    text-shadow: 0 0 18px rgba(217, 174, 63, .35);
    min-height: 1.5em; font-variant-numeric: tabular-nums;
}
.fs-reel-window.spinning { color: var(--electric-blue); opacity: .85; }
.fs-spin-btn {
    background: var(--fs-plate);
    color: var(--fs-ink-on-gold); border: none;
    border-radius: 8px;
    font-size: 1.2rem; font-weight: 800; letter-spacing: 2px;
    padding: 12px 40px; cursor: pointer; width: 100%; max-width: 320px;
    text-shadow: 0 1px 0 rgba(255, 244, 205, .6);
    box-shadow: var(--fs-plate-edge), 0 8px 24px rgba(217, 174, 63, .2), 0 3px 8px rgba(0, 0, 0, .6);
}
.fs-spin-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Compact result bar (machine collapsed after a land) ---------- */
.fs-result-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--card-bg); border: 1px solid var(--gold);
    border-radius: var(--radius-md, 10px); padding: 10px 14px;
    margin-bottom: var(--spacing-md, 16px);
}
.fs-rb-cohort { font-weight: 800; color: var(--gold); font-size: 1.1rem; }
.fs-rb-count { color: var(--text-secondary); font-size: .85rem; }
.fs-rb-skips { display: flex; gap: 8px; margin-left: auto; }
.fs-skip-btn {
    background: transparent; color: var(--electric-blue);
    border: 1px solid var(--border-color); border-radius: var(--radius-sm, 6px);
    padding: 6px 14px; cursor: pointer; font-size: .85rem;
}
.fs-skip-btn:disabled { opacity: .4; cursor: not-allowed; color: var(--text-secondary); }
/* Non-blocking skip message (empty-pool case). Hidden until .show is added. */
.fs-skip-hint {
    flex-basis: 100%; margin-top: 6px; font-size: .8rem;
    color: var(--text-secondary); opacity: 0; transition: opacity .2s ease;
}
.fs-skip-hint.show { opacity: 1; color: var(--electric-blue); }

/* ---------- Two-pane booking layout ----------
   Mobile (default): stacked — roster, then the card rundown below it.
   Desktop (>=900px): side-by-side, roster LEFT, card rundown RIGHT and sticky
   so it stays visible while drafting. */
.fs-book-panes { display: flex; flex-direction: column; gap: var(--spacing-md, 16px); }
@media (min-width: 900px) {
    .fs-book-panes {
        flex-direction: row; align-items: flex-start;
        gap: var(--spacing-lg, 24px);
    }
    .fs-book-panes .fs-roster-wrap { flex: 1 1 auto; min-width: 0; }
    .fs-book-panes .fs-card-graphic {
        flex: 0 0 300px; margin-top: 0;
        position: sticky; top: var(--spacing-md, 16px);
    }
}

/* ---------- Roster ---------- */
.fs-roster-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }

/* Gender filter (All / Men / Women) — segmented control above the roster. */
.fs-gender-filter {
    display: inline-flex; margin-bottom: 10px;
    border: 1px solid var(--border-color); border-radius: var(--radius-sm, 6px);
    overflow: hidden;
}
.fs-gender-btn {
    background: var(--card-bg); color: var(--text-secondary); border: none;
    padding: 8px 16px; cursor: pointer; font-size: .85rem; min-height: 40px;
}
.fs-gender-btn:not(:last-child) { border-right: 1px solid var(--border-color); }
.fs-gender-btn:hover:not(.active) { color: var(--text-primary); }
.fs-gender-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.fs-gender-btn.active {
    background: var(--fs-black-4); color: var(--fs-white); font-weight: 700;
    box-shadow: inset 0 -2px 0 var(--fs-gold-2);
}

.fs-roster-empty { color: var(--text-secondary); font-size: .9rem; text-align: center; padding: 16px; margin: 0; }
.fs-search, .fs-sort {
    background: var(--dark-bg); color: var(--text-primary);
    border: 1px solid var(--border-color); border-radius: var(--radius-sm, 6px);
    padding: 8px 10px; font-size: .9rem;
}
.fs-search { flex: 1; min-width: 140px; }
.fs-sort-label {
    color: var(--text-secondary);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Placing confirmation row (after a wrestler is tapped). */
.fs-placing {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
    background: var(--card-bg); border: 1px solid var(--gold);
    border-radius: var(--radius-sm, 6px); padding: 8px 12px;
}
.fs-placing-label { color: var(--text-secondary); font-size: .85rem; }
.fs-placing-name { color: var(--text-primary); font-weight: 700; }
.fs-placing-cohort { color: var(--text-secondary); font-size: .8rem; letter-spacing: .3px; }
.fs-placing-cue { color: var(--text-secondary); font-size: .85rem; }

.fs-position-pick {
    background: var(--card-bg); border: 1px solid var(--gold);
    border-radius: var(--radius-sm, 6px); padding: 12px; margin-bottom: 12px; text-align: center;
}
.fs-pp-label { display: block; color: var(--text-primary); margin-bottom: 8px; }
.fs-pp-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.fs-pp-buttons button {
    display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
    background: var(--dark-bg); color: var(--text-primary);
    border: 1px solid var(--border-color); border-radius: var(--radius-sm, 6px);
    padding: 8px 14px; cursor: pointer; font-size: .9rem; min-width: 84px;
}
.fs-pp-buttons button.open { border-color: var(--gold); color: var(--gold); }
.fs-pp-buttons button.open:hover:not(:disabled) { background: var(--fs-gold-2); color: var(--fs-ink-on-gold); }
.fs-pp-buttons button.open:hover:not(:disabled) .fs-pp-state { color: var(--fs-ink-on-gold); }
.fs-pp-buttons button.used, .fs-pp-buttons button:disabled { opacity: .35; cursor: not-allowed; }
.fs-pp-pos { font-weight: 700; }
.fs-pp-state { font-size: .72rem; color: var(--text-secondary); }

.fs-roster-list { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) { .fs-roster-list { max-height: 540px; } }

/* Selectable roster card (the card IS the interaction). 82-0 style: an
   identity block (name + promotion · year) on the left, stat columns right. */
.fs-wrestler {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 6px); padding: 10px 14px; cursor: pointer;
    color: var(--text-primary); text-align: left;
    transition: border-color .15s, transform .1s;
}
.fs-wrestler:hover:not(.disabled):not(:disabled) { border-color: var(--gold); transform: translateY(-1px); }
.fs-wrestler:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fs-wrestler.disabled, .fs-wrestler:disabled { opacity: .35; cursor: not-allowed; }

.fs-w-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fs-w-name { font-weight: 700; font-size: .98rem; }
.fs-w-cohort { font-size: .74rem; color: var(--text-secondary); letter-spacing: .3px; }

.fs-w-stats {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    justify-content: flex-end; flex: 0 0 auto;
}
.fs-w-stat { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.fs-w-stat-label {
    font-size: .62rem; text-transform: uppercase; letter-spacing: .5px;
    color: var(--text-secondary);
}
.fs-w-stat-val { font-size: .92rem; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.fs-pct-badge {
    background: var(--dark-bg); border: 1px solid var(--border-color);
    border-radius: 999px; padding: 3px 9px; color: var(--electric-blue); font-weight: 600; font-size: .76rem;
}
/* Roster-card rating badge — the wrestler's blend rating number ("Rating 1842").
   Replaces the rank ordinal on the pick surface so reading a leaderboard
   position is no longer the dominant strategy. */
.fs-rating-badge {
    background: var(--dark-bg); border: 1px solid var(--border-color);
    border-radius: 999px; padding: 3px 10px; color: var(--gold); font-weight: 700;
    font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
    .fs-wrestler { transition: none; }
    .fs-wrestler:hover:not(.disabled):not(:disabled) { transform: none; }
}

/* ---------- Card graphic ---------- */
.fs-card-graphic { margin-top: var(--spacing-lg, 24px); }
.fs-card-graphic h4 { color: var(--gold); margin: 0 0 10px; }
.fs-card-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fs-card-slots li {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 6px); padding: 10px 12px; color: var(--text-secondary);
}
.fs-card-slots li.partial { border-color: var(--electric-blue); color: var(--text-primary); }
.fs-card-slots li.booked { border-color: var(--gold); color: var(--text-primary); }
.fs-card-slots li.booked { background: linear-gradient(0deg, rgba(217, 174, 63, .1), rgba(217, 174, 63, .1)); }
.fs-card-slots .fs-slot-pos { font-weight: 700; color: var(--gold); flex-shrink: 0; }
.fs-card-slots li.main .fs-slot-pos { color: var(--gold); }
/* Matchup column: wrestler names (each with a muted cohort-year tag) + the
   "vs" separator. Wraps on narrow screens so the year tag stays readable. */
.fs-slot-matchup {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
    justify-content: flex-end; text-align: right;
}
.fs-slot-name { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; }
.fs-slot-w { color: inherit; }
/* Cohort tag now carries promotion + year ("WWE '98"); keep it on one line so
   the promotion never splits, and let it wrap under the name on tight widths. */
.fs-slot-year { font-size: .72rem; color: var(--text-secondary); letter-spacing: .3px; white-space: nowrap; }
.fs-slot-vs { color: var(--text-secondary); font-size: .8rem; }

/* ---------- Results ---------- */
.fs-results-head { text-align: center; margin-bottom: var(--spacing-lg, 24px); }
.fs-results-head-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.fs-mute-btn {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 999px; padding: 4px 12px; font-size: 1rem; cursor: pointer;
    line-height: 1;
}
.fs-mute-btn:hover { border-color: var(--gold); }
/* Inline-SVG speaker icon; .muted swaps the waves for the X (mirrors
   board-placement). The old emoji glyphs tofu'd without a color-emoji font. */
.fs-mute-btn .fs-icon { width: 18px; height: 18px; display: block; }
.fs-mute-btn .fs-icon-mute { display: none; }
.fs-mute-btn.muted .fs-icon-wave { display: none; }
.fs-mute-btn.muted .fs-icon-mute { display: block; }

/* Hero star meter */
.fs-star-meter-wrap { position: relative; margin: 8px 0 4px; }
.fs-star-meter {
    display: inline-flex; gap: 6px; justify-content: center;
    flex-wrap: wrap; position: relative; z-index: 1;
}
.fs-meter-star {
    position: relative; display: inline-block;
    font-size: 2.8rem; line-height: 1; width: 1em; height: 1em;
}
@media (max-width: 420px) { .fs-meter-star { font-size: 2.1rem; } }
.fs-star-bg {
    position: absolute; inset: 0; color: var(--border-color);
}
/* Gold fill clipped by width for quarter-precision partial stars. */
.fs-star-fill {
    position: absolute; inset: 0; width: 0; overflow: hidden;
    color: var(--fs-gold); white-space: nowrap;
    text-shadow: 0 0 0 transparent;
    transition: width .25s ease-out;
}
.fs-meter-star.lit .fs-star-fill {
    text-shadow: 0 0 10px var(--fs-gold), 0 0 20px rgba(217, 174, 63, .5);
}
@keyframes fs-star-pop {
    0% { transform: scale(.4); }
    55% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.fs-meter-star.pop { animation: fs-star-pop .42s cubic-bezier(.2, 1.4, .4, 1) both; }
@media (prefers-reduced-motion: reduce) {
    .fs-meter-star.pop { animation: none; }
    .fs-star-fill { transition: none; }
}
.fs-star-meter-label { color: var(--text-secondary); font-size: .9rem; margin-top: 4px; }
/* Legendary overflow stars (beyond the displayed 5★, Meltzer 6★/7★ style):
   a small gap + warmer tint so they read as transcending the scale. */
.fs-meter-star--overflow { margin-left: 10px; }
.fs-meter-star--overflow .fs-star-bg { color: rgba(217, 174, 63, .35); }
.fs-rmstar--overflow { margin-left: 5px; }
.fs-rmstar--overflow .fs-rmstar-bg { color: rgba(217, 174, 63, .4); }

/* Finale gold radial burst (CSS only, behind the stars). */
.fs-finale-burst {
    position: absolute; left: 50%; top: 50%; width: 10px; height: 10px;
    transform: translate(-50%, -50%) scale(0); pointer-events: none;
    border-radius: 50%; opacity: 0; z-index: 0;
    background: radial-gradient(circle, rgba(217, 174, 63, .55) 0%, rgba(217, 174, 63, 0) 70%);
}
.fs-finale-burst.go { animation: fs-burst .9s ease-out forwards; }
@keyframes fs-burst {
    0% { transform: translate(-50%, -50%) scale(0); opacity: .9; }
    100% { transform: translate(-50%, -50%) scale(28); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fs-finale-burst.go { animation: none; opacity: 0; } }

.fs-show-stars { font-size: .95rem; font-weight: 600; color: var(--text-secondary); margin: 8px 0 0; }
.fs-difficulty-line { font-size: .8rem; font-weight: 600; color: var(--fs-gold-1); opacity: .9; margin: 4px 0 0; }
.fs-grade-pill {
    display: inline-block; background: var(--fs-plate); border: none;
    border-radius: 8px;
    padding: 8px 26px; color: var(--fs-ink-on-gold); font-weight: 700;
    text-shadow: 0 1px 0 rgba(255, 246, 214, .7);
    box-shadow: var(--fs-plate-edge), 0 10px 28px rgba(217, 174, 63, .2), 0 4px 10px rgba(0, 0, 0, .6);
    margin-top: 8px;
}
@keyframes fs-grade-reveal {
    0% { transform: scale(.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes fs-grade-reveal-big {
    0% { transform: scale(.7); opacity: 0; }
    50% { transform: scale(1.18); }
    100% { transform: scale(1); opacity: 1; }
}
.fs-grade-pill.reveal { animation: fs-grade-reveal .35s ease-out both; }
.fs-grade-pill.reveal-big {
    animation: fs-grade-reveal-big .55s cubic-bezier(.2, 1.3, .4, 1) both;
    box-shadow: 0 0 16px rgba(217, 174, 63, .5);
}
@media (prefers-reduced-motion: reduce) {
    .fs-grade-pill.reveal, .fs-grade-pill.reveal-big { animation: none; }
}
.fs-results-matches { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--spacing-lg, 24px); }

/* ---------- Result match row (expandable) ---------- */
.fs-result-match {
    position: relative; background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 6px); outline: none; overflow: hidden;
}
.fs-result-match:hover, .fs-result-match:focus-within, .fs-result-match.open { border-color: var(--gold); }

.fs-rm-head {
    display: block; width: 100%; text-align: left; background: none; border: none;
    color: inherit; cursor: pointer; padding: 12px; border-radius: var(--radius-sm, 6px);
}
.fs-rm-head:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.fs-rm-headline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fs-rm-pos { font-size: .75rem; color: var(--gold); letter-spacing: 1px; font-weight: 700; }
.fs-rm-names { color: var(--text-primary); margin: 6px 0 2px; }
/* Result matchup: each wrestler's name with a muted cohort (PROMO · YEAR)
   sub-label, so the final screen shows which year of the wrestler was booked. */
.fs-rm-names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.fs-rm-name { display: inline-flex; flex-direction: column; }
.fs-rm-w { color: var(--text-primary); }
.fs-rm-cohort { font-size: .72rem; color: var(--text-secondary); letter-spacing: .3px; }
.fs-rm-rank { font-size: .72rem; color: var(--gold); font-weight: 700; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.fs-rm-vs { color: var(--text-secondary); font-size: .8rem; align-self: center; }
.fs-rm-stip {
    color: var(--gold); font-size: .74rem; font-weight: 800; letter-spacing: .04em;
    margin: 7px 0 2px; text-align: center;
}
.fs-rm-toggle { display: inline-block; font-size: .72rem; color: var(--electric-blue); margin-top: 2px; }

/* Per-match star meter (clipped-overlay, mirrors hero meter) */
.fs-rm-stars { display: inline-flex; align-items: center; }
.fs-rm-starmeter { display: inline-flex; gap: 2px; align-items: center; }
.fs-rmstar { position: relative; display: inline-block; font-size: 1.15rem; line-height: 1; width: 1em; height: 1em; }
.fs-rmstar-bg { position: absolute; inset: 0; color: var(--border-color); }
.fs-rmstar-fill {
    position: absolute; inset: 0; width: 0; overflow: hidden; white-space: nowrap;
    color: var(--fs-gold); text-shadow: 0 0 6px rgba(217, 174, 63, .45);
}
.fs-rm-starval { margin-left: 6px; color: var(--fs-gold); font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; }

/* ---------- Breakdown region ---------- */
.fs-rm-breakdown {
    padding: 4px 12px 14px; display: flex; flex-direction: column; gap: 9px;
    border-top: 1px solid var(--border-color);
}
.fs-rm-breakdown[hidden] { display: none; }

/* ---------- Energy bar ---------- */
.fs-bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.fs-bar-label { font-size: .74rem; font-weight: 700; letter-spacing: .3px; color: var(--text-primary); }
.fs-bar-phrase { font-size: .74rem; color: var(--text-secondary); font-style: italic; }
.fs-bar-track {
    position: relative; height: 12px; border-radius: 999px; background: var(--dark-bg);
    border: 1px solid var(--border-color); overflow: hidden;
}
.fs-bar-fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px;
    transition: width .45s cubic-bezier(.22, 1, .36, 1);
}
.fs-bar-readout {
    display: block; font-size: .68rem; color: var(--text-secondary);
    font-variant-numeric: tabular-nums; margin-top: 3px;
}

/* Per-component fill colors (deliberate palette) */
.fs-bar--power .fs-bar-fill { background: linear-gradient(90deg, var(--fs-gold-plate-low), #F7DC86); }   /* gold metal — star power */
.fs-bar--comp  .fs-bar-fill { background: linear-gradient(90deg, #2C8FB8, var(--fs-blue)); }   /* sky — competitiveness */
.fs-bar--work  .fs-bar-fill { background: linear-gradient(90deg, #0E9C70, #34D399); }   /* emerald — workrate */
.fs-bar--slot  .fs-bar-fill { background: linear-gradient(90deg, #6D6480, #B3A6D6); }   /* slate-violet — card placement */
.fs-bar--fit   .fs-bar-fill { background: linear-gradient(90deg, #6e6d74, #b9b8bd); }   /* pale gold — card fit */
.fs-bar--bonus .fs-bar-fill { background: linear-gradient(90deg, #C026A3, #F062D9); }   /* magenta — smark bonus */
.fs-bar--hof   .fs-bar-fill { background: linear-gradient(90deg, var(--fs-gold-3), var(--fs-gold-hi)); }   /* deep gold — WON HOF bonus */

/* WON Hall of Fame marker on roster cards (+1★ per HOF participant). */
/* Gold ★ text glyph (was emoji; emoji tofu'd without a color-emoji font). */
.fs-w-hof { margin-left: 0.35em; font-size: 0.85em; line-height: 1; color: var(--fs-gold-1); }

/* Screen entrance: quiet fade/rise with a faint gold wash, gated so
   reduced-motion players keep the instant swap. Mirrors board-placement. */
@media (prefers-reduced-motion: no-preference) {
    .fs-screen.fs-screen-enter { animation: fs-screen-enter .2s ease-out both; }
    @keyframes fs-screen-enter {
        from { opacity: 0; transform: translateY(10px); background-color: rgba(217, 174, 63, .05); }
        to { opacity: 1; transform: none; background-color: transparent; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .fs-bar-fill { transition: none; }
}
@media (max-width: 420px) {
    .fs-rmstar { font-size: 1rem; }
    .fs-bar-phrase { display: none; }
}

.fs-results-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* Used on <button> AND <a> (book/share CTAs). inline-block + no underline so
   anchors get the same slab geometry as buttons instead of an inline strip
   painting over neighboring lines of text. */
.fs-primary-btn {
    display: inline-block; text-align: center; text-decoration: none;
    background: transparent; color: var(--fs-gold-1); font-weight: 700;
    border: 1px solid var(--fs-gold-3); border-radius: var(--radius-sm, 6px);
    padding: 12px 28px; cursor: pointer;
    min-height: 44px;
    transition: filter 0.2s, transform 0.15s;
}
.fs-primary-btn:hover { background: var(--fs-gold-2); color: var(--fs-ink-on-gold); border-color: var(--fs-gold-2); }
.fs-primary-btn:active { transform: scale(0.98); }
.fs-primary-btn:focus-visible { outline: 3px solid var(--text-primary); outline-offset: 2px; }
.fs-secondary-btn {
    display: inline-block; text-align: center; text-decoration: none;
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--border-color); border-radius: var(--radius-sm, 6px);
    padding: 12px 28px; cursor: pointer;
    min-height: 44px;
}
.fs-secondary-btn:hover { border-color: var(--gold); }
.fs-secondary-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .fs-primary-btn { transition: none; }
    .fs-primary-btn:active { transform: none; }
}
.fs-save-state {
    min-height: 22px;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: .9rem;
    text-align: center;
}
.fs-save-state strong { color: var(--gold); }

.fs-share-sheet {
    position: relative; margin-top: var(--spacing-lg, 24px);
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 10px); padding: 18px;
}
.fs-share-sheet h4 { color: var(--gold); margin: 0 0 12px; }
#share-close {
    position: absolute; top: 10px; right: 12px;
    background: none; border: none; color: var(--text-secondary);
    font-size: 1.1rem; cursor: pointer;
}
.fs-share-grid {
    background: var(--dark-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 6px); padding: 12px;
    color: var(--text-primary); white-space: pre-wrap; font-size: .95rem;
    line-height: 1.5; margin: 0 0 12px; overflow-x: auto;
}
.fs-share-targets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fs-share-targets a {
    background: var(--dark-bg); color: var(--electric-blue);
    border: 1px solid var(--border-color); border-radius: var(--radius-sm, 6px);
    padding: 8px 14px; text-decoration: none; font-size: .85rem;
}
.fs-share-targets a:hover { border-color: var(--gold); }
.fs-share-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.fs-share-buttons .fs-secondary-btn { flex: 1 1 auto; min-height: 44px; }

.fs-account-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
}
.fs-account-overlay[hidden] { display: none; }
.fs-account-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .68);
}
.fs-account-dialog {
    position: relative;
    width: min(960px, calc(100vw - 24px));
    max-height: calc(100vh - 32px);
    margin: 16px auto;
    overflow: auto;
    background: var(--fs-black-2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .55);
}
.fs-account-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
}
.fs-account-head h2 {
    margin: 0 0 4px;
    color: var(--gold);
}
.fs-account-head p {
    margin: 0 0 18px;
    color: var(--text-secondary);
}
.fs-account-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 18px;
}
.fs-account-section h3 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 1rem;
}
.fs-history-list,
.fs-achievement-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fs-history-card,
.fs-achievement-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    background: var(--dark-bg);
}
.fs-history-card-title,
.fs-achievement-card-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 800;
}
.fs-history-card-meta,
.fs-achievement-card-desc {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: .86rem;
    line-height: 1.35;
}
.fs-achievement-card[aria-disabled="true"] {
    opacity: .56;
}
.fs-achievement-card[aria-disabled="true"] .fs-achievement-card-title span:first-child {
    letter-spacing: .08em;
}
.fs-achievement-tier {
    color: var(--gold);
    font-size: .76rem;
    text-transform: uppercase;
}
@media (max-width: 720px) {
    .fs-account-dialog {
        width: calc(100vw - 16px);
        padding: 16px;
    }
    .fs-account-columns {
        grid-template-columns: 1fr;
    }
}

/* ---------- Shared show landing page (/five-star/s/<id>) ----------
   Chrome-free public card a shared link unfurls to. Server-rendered; no JS. */
body.fs-share-page .main-content { padding-top: var(--spacing-lg, 24px); }
.fs-share-card {
    max-width: 680px; margin: 0 auto;
    padding: var(--spacing-md, 16px) var(--spacing-sm, 12px) 64px;
}
.fs-share-head { text-align: center; margin-bottom: var(--spacing-lg, 24px); }
.fs-share-brand {
    display: inline-block; color: var(--gold); font-weight: 700;
    font-size: 1.4rem; text-decoration: none; margin-bottom: 8px;
}
.fs-share-grade { display: flex; justify-content: center; gap: 12px; align-items: baseline; }
.fs-share-avg { color: var(--text-primary); font-size: 1.6rem; font-weight: 700; }
.fs-share-tier { color: var(--fs-gold); font-size: 1.1rem; letter-spacing: .04em; }
.fs-share-caption { color: var(--text-secondary, #cfcfcf); margin: 10px 0 0; }
.fs-share-matches { list-style: none; padding: 0; margin: 0 0 var(--spacing-lg, 24px); }
.fs-share-match {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 6px); padding: 12px 14px; margin-bottom: 8px;
}
.fs-share-stars { color: var(--fs-gold); display: block; font-size: 1.05rem; }
.fs-share-bout { display: block; color: var(--text-primary); margin: 4px 0 2px; }
.fs-share-vs { color: var(--text-secondary, #999); margin: 0 6px; }
.fs-share-tag { color: var(--text-secondary, #999); font-size: .85em; }
.fs-share-pos { color: var(--text-secondary, #999); font-size: .8rem; }
.fs-share-stip { color: var(--gold); display: block; font-size: .82rem; margin-top: 3px; }
.fs-share-cta { text-align: center; margin-top: var(--spacing-lg, 24px); }
.fs-share-cta .fs-primary-btn { display: inline-block; text-decoration: none; padding: 12px 28px; }
.fs-share-cta-sub { color: var(--text-secondary, #cfcfcf); margin: 12px 0 0; font-size: .9rem; }
/* Challenge framing above the Beat CTA: the score to beat, in gold. */
.fs-share-beat-line { color: var(--gold, #F2D374); font-weight: 700; font-size: 1.05rem; margin: 0 0 12px; }

/* ---------- Scoring explainer page (/five-star/how-scoring-works) ----------
   Rendered inside the normal site chrome (it's a content page, not the
   chrome-free game). Readable single column. */
/* Chrome-free explainer: no top nav/banner (mirrors the game page), so give the
   article a little extra top breathing room since .main-content padding is 0. */
body.fs-scoring-page .fs-scoring { padding-top: var(--spacing-lg, 24px); }
.fs-scoring {
    max-width: 680px;
    margin: 0 auto;
    padding: var(--spacing-md, 16px) var(--spacing-sm, 12px) 64px;
    line-height: 1.6;
}
.fs-scoring-head { margin-bottom: var(--spacing-lg, 24px); }
.fs-scoring-title { font-size: 1.6rem; margin: 0 0 12px; }
.fs-scoring-intro { color: var(--text-secondary, #cfcfcf); }
.fs-scoring-backlink {
    display: inline-block;
    margin: 0 12px 0 0;
    /* 44px touch target: vertical padding instead of bottom margin */
    padding: 11px 0;
    color: var(--fs-gold-1);
    text-decoration: none;
    font-size: 0.9rem;
}
.fs-scoring-backlink:hover { text-decoration: underline; }
.fs-scoring-backlink:focus-visible {
    outline: 2px solid var(--fs-gold-1);
    outline-offset: 2px;
    border-radius: 4px;
}
.fs-scoring-sec { margin: 0 0 var(--spacing-lg, 24px); }
.fs-scoring-sec h2,
.fs-scoring-sec h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: var(--text-primary, #fff);
}
.fs-scoring-sec p { margin: 0; color: var(--text-secondary, #d6d6d6); }
/* Classless in-article links (e.g. the rankings link on /book pages) otherwise
   fall through to the browser default blue, unreadable on the dark theme. */
.fs-scoring-sec a:not([class]) {
    color: var(--fs-gold-1);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.fs-scoring-sec a:not([class]):hover { text-decoration: none; }
.fs-scoring-sec a:not([class]):focus-visible {
    outline: 2px solid var(--fs-gold-1);
    outline-offset: 2px;
    border-radius: 2px;
}
.fs-scoring-sec p + p { margin-top: 10px; }
.fs-scoring-modenote {
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    padding-top: var(--spacing-md, 16px);
}
.fs-scoring-closer {
    font-weight: 700;
    text-align: center;
    margin-top: var(--spacing-lg, 24px);
}
.fs-scoring-closer a {
    color: var(--fs-gold-1);
    text-decoration: none;
}
.fs-scoring-closer a:hover { text-decoration: underline; }
.fs-scoring-closer a:focus-visible {
    outline: 2px solid var(--fs-gold-1);
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- /book/<slug> cohort landing pages --- */
.fs-book-top-names { line-height: 1.9; }
.fs-book-top { color: var(--gold); white-space: nowrap; }
.fs-book-roster { line-height: 1.7; color: var(--text-secondary, #c8c8d2); }

/* ---------- Display typeface + poster pass (2026-06 design package) ----------
   Mirrors five-star-board-placement.css: Archivo Black (SIL OFL 1.1,
   self-hosted woff2 + OFL.txt in static/fonts/) and the unified palette
   tokens. The share landing card reads as the same PPV poster the game
   draws: thin gold rules between bouts, names in the display face, main
   event (the first row, list is main-first) largest. */
@font-face {
    font-family: "Archivo Black";
    src: url("../fonts/ArchivoBlack-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* (Tokens live in the single :root at the top of this file.) */
.fs-share-brand { font-family: var(--fs-display-font); font-weight: 400; }
.fs-share-avg { font-family: var(--fs-display-font); font-weight: 400; }
.fs-share-card .fs-share-matches { border-top: 1px solid var(--fs-gold-rule); }
.fs-share-card .fs-share-match {
    background: none; border: none; border-radius: 0;
    border-bottom: 1px solid var(--fs-gold-rule);
    margin-bottom: 0; padding: 12px 10px;
}
.fs-share-wrestler { font-family: var(--fs-display-font); font-weight: 400; }
.fs-share-card .fs-share-match:first-child .fs-share-wrestler { font-size: 1.18em; }
.fs-share-tag { font-family: var(--font-family, system-ui, sans-serif); }
/* Light spotlight on the landing card head: lighting, not decoration. */
.fs-share-card {
    background:
        radial-gradient(ellipse 75% 40% at 50% 0%, rgba(217, 174, 63, .07), transparent 60%);
}
