/* ─────────────────────────────────────────────────────────────────────────
   btq-arena-season.css — the SIMPLIFIED arena: Season stock-picking inside the
   3D arena skin, with the two-competing-lines race chart as the battlefield.
   The host carries BOTH .btq-arena (so the world skin from btq-arena.css applies
   — bg, floor, platforms, orb anchor, brackets, controls) AND .btq-arena-season
   (this file — the stripped foreground HUD). Loads AFTER btq-arena.css.

   One chart (the battlefield), a light scoreboard strip, a single bottom action
   tray (watchlist OR ticket — never both), Kurus reacting. Everything else cut.
   ───────────────────────────────────────────────────────────────────────── */

#btq-root.btq-arena-season {
  /* Kurus floats upper-centre over the lines, below the scoreboard (override the duel anchor) */
  & .a-quant-anchor { top: 22%;
    transform: translate(-50%, 0) translateZ(-440px) scale(0.66); }

  /* ═══ foreground stage (transparent; children re-enable pointer events) ═══ */
  & .as-stage { position: absolute; inset: 0; z-index: 26; display: flex; flex-direction: column;
    pointer-events: none; }
  & .as-stage > * { pointer-events: auto; }

  /* top bar — title + day chip (the .a-ctl controls sit top-right, separate) */
  & .as-topbar { display: flex; align-items: center; gap: 14px; padding: 18px 24px 0; }
  & .as-title { font-family: var(--a-mono); font-size: 12px; letter-spacing: 0.32em; color: #cfd8e6; }
  & .as-day { font-family: var(--a-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--a-muted);
    padding: 4px 11px; border: 1px solid rgba(120,140,170,0.24); border-radius: 999px; }

  /* Kurus speech (upper centre, near the orb) */
  & .as-speak { min-height: 30px; margin: 8px auto 0; max-width: min(560px, 86vw); text-align: center;
    opacity: 0; transition: opacity .4s; pointer-events: none; }
  & .as-speak.show { opacity: 1; }
  & .as-speak .q { font-family: var(--a-serif); font-style: italic; font-weight: 500; font-size: clamp(14px, 1.8vw, 19px);
    line-height: 1.4; letter-spacing: -0.01em; text-shadow: 0 2px 22px rgba(0,0,0,0.6); color: #eef2f7; }

  /* HUD sits at the top; the open middle (spacer) shows the full-bleed lines + Kurus */
  & .as-spacer { flex: 1; min-height: 0; }

  /* light scoreboard strip — Kurus | gap | You (the gap is also felt in the chart) */
  & .as-score { align-self: center; margin-top: 10px; display: flex; align-items: stretch; gap: 14px; }
  & .as-sc-side { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 116px;
    padding: 8px 16px; border-radius: 12px; background: var(--a-glass);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(120,140,170,0.18); }
  & .as-sc-side.kurus { border-color: rgba(159,180,212,0.34); }
  & .as-sc-side.you { border-color: rgba(94,200,216,0.34); }
  & .as-sc-lab { font-family: var(--a-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--a-muted); }
  & .as-sc-side.kurus .as-sc-lab { color: var(--a-quant); }
  & .as-sc-side.you .as-sc-lab { color: var(--a-you); }
  & .as-sc-val { font-family: var(--a-serif); font-weight: 500; font-size: 21px; color: #eef6ff;
    letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
  /* neutral — direction is shown by the ▲▼ glyph; green/red are reserved for the team lines */
  & .as-sc-pct { font-family: var(--a-mono); font-size: 11.5px; color: #c4ccd9; }
  & .as-sc-gap { align-self: center; font-family: var(--a-mono); font-size: 12px; letter-spacing: 0.04em;
    padding: 6px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
  & .as-sc-gap.up { color: var(--a-grow); background: rgba(84,208,138,0.12); border: 1px solid rgba(84,208,138,0.3); }
  & .as-sc-gap.down { color: var(--a-crimson); background: rgba(224,86,110,0.12); border: 1px solid rgba(224,86,110,0.3); }

  /* the BATTLEFIELD — two full-bleed competing lines behind the HUD (no panel).
     A faint radial scrim keeps the lines legible over the starfield/floor. */
  & .as-battlefield { position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: radial-gradient(130% 80% at 50% 56%, rgba(6,9,14,0) 28%, rgba(6,9,14,0.42) 100%); }

  /* lead-change flash — a full-screen edge vignette in the leader's team color */
  & .as-flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; }
  & .as-flash.flash-you { animation: as-flash-you .56s ease-out; }
  & .as-flash.flash-kurus { animation: as-flash-kurus .56s ease-out; }

  /* ═══ the single action tray (bottom) ═══ */
  & .as-tray { position: relative; z-index: 30;
    background: linear-gradient(180deg, rgba(7,11,18,0.30) 0%, rgba(7,11,18,0.86) 34%, rgba(5,8,13,0.97) 100%);
    border-top: 1px solid rgba(94,200,216,0.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    padding: 14px 24px 20px; }
  & .as-tray-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
  & .as-bag { font-family: var(--a-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--a-muted); }
  & .as-bag b { color: #eef6ff; font-weight: 600; }
  & .as-cta { font-family: var(--a-serif); font-weight: 600; font-size: 17px; letter-spacing: 0.01em;
    color: #eaf8fb; background: rgba(94,200,216,0.14); border: 1px solid rgba(94,200,216,0.5); border-radius: 13px;
    padding: 11px 24px; cursor: pointer; transition: transform .14s, box-shadow .14s, background .14s; }
  & .as-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(94,200,216,0.18); background: rgba(94,200,216,0.2); }

  /* watchlist — sector-grouped chips, horizontally scrollable if needed */
  & .as-watch { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  & .as-sec { display: flex; flex-direction: column; gap: 7px; flex: 0 0 auto; }
  & .as-sec-lab { font-family: var(--a-mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--a-muted); }
  & .as-chips { display: flex; gap: 8px; }
  & .as-chip { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    min-width: 92px; padding: 9px 12px; border-radius: 12px; cursor: pointer;
    background: rgba(13,20,32,0.6); border: 1px solid rgba(120,140,170,0.18);
    transition: transform .14s, border-color .14s, box-shadow .14s; }
  & .as-chip:hover { transform: translateY(-2px); border-color: rgba(94,200,216,0.45); box-shadow: 0 10px 24px rgba(0,0,0,0.4); }
  & .as-chip.held { border-color: rgba(94,200,216,0.42); background: rgba(94,200,216,0.07); }
  & .as-chip-sym { display: flex; align-items: center; gap: 6px; font-family: var(--a-serif); font-weight: 600; font-size: 16px; color: #dbe2ec; }
  & .as-chip-held { font-family: var(--a-mono); font-style: normal; font-size: 9.5px; color: var(--a-you);
    background: rgba(94,200,216,0.16); border-radius: 6px; padding: 1px 5px; }
  & .as-chip-px { font-family: var(--a-mono); font-size: 11.5px; color: #aeb8c7; font-variant-numeric: tabular-nums; }
  & .as-chip-ch { font-family: var(--a-mono); font-size: 10.5px; }
  & .as-chip-ch.up { color: var(--a-grow); } & .as-chip-ch.down { color: var(--a-crimson); } & .as-chip-ch.flat { color: var(--a-muted); }

  /* order ticket (replaces the watchlist when a stock is picked) */
  & .as-ticket { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
  & .as-tk-back { font-family: var(--a-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--a-muted);
    background: none; border: 0; cursor: pointer; padding: 4px 0; flex: 0 0 100%; text-align: left; }
  & .as-tk-back:hover { color: #eef2f7; }
  & .as-tk-head { font-family: var(--a-serif); font-weight: 600; font-size: 19px; color: #eef6ff; }
  & .as-tk-head i { font-style: normal; font-family: var(--a-mono); font-size: 12px; color: var(--a-muted); }
  & .as-tk-side { display: flex; gap: 6px; }
  & .as-tk-side button { font-family: var(--a-mono); font-size: 13px; letter-spacing: 0.06em; padding: 8px 16px;
    border-radius: 10px; cursor: pointer; color: #aeb8c7; background: rgba(13,20,32,0.6); border: 1px solid rgba(120,140,170,0.22); }
  & .as-tk-side button.on { color: #eaf8fb; background: rgba(94,200,216,0.14); border-color: rgba(94,200,216,0.5); }
  & .as-tk-qrow { display: flex; align-items: center; gap: 8px; }
  & .as-tk-step { width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 18px; color: #eef2f7;
    background: rgba(13,20,32,0.7); border: 1px solid rgba(120,140,170,0.24); }
  & .as-tk-qty { width: 64px; height: 34px; text-align: center; font-family: var(--a-mono); font-size: 15px; color: #eef6ff;
    background: rgba(8,12,20,0.85); border: 1px solid rgba(120,140,170,0.24); border-radius: 9px; }
  & .as-tk-sh { font-family: var(--a-mono); font-size: 11px; color: var(--a-muted); }
  & .as-tk-est { font-family: var(--a-mono); font-size: 12px; color: var(--a-market); flex: 0 0 100%; }
  & .as-tk-place { font-family: var(--a-serif); font-weight: 600; font-size: 16px; color: #0b0e13;
    background: var(--a-you); border: 0; border-radius: 12px; padding: 10px 26px; cursor: pointer; text-transform: capitalize;
    transition: transform .14s, box-shadow .14s; }
  & .as-tk-place:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(94,200,216,0.3); }

  /* FOMO toast (transient, top-centre) */
  & .as-toast { position: absolute; left: 50%; top: 78px; transform: translateX(-50%) translateY(-8px);
    z-index: 33; max-width: min(560px, 90vw); text-align: center; padding: 11px 18px; border-radius: 13px;
    font-family: var(--a-sans); font-size: 13.5px; color: #f3e6c8; background: rgba(40,30,12,0.86);
    border: 1px solid rgba(230,189,92,0.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s; }
  & .as-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
  & .as-toast b { color: var(--a-market); }
  & .as-toast span { margin-left: 10px; color: var(--a-muted); cursor: pointer; text-decoration: underline; }

  /* reveal */
  & .as-reveal { position: absolute; inset: 0; z-index: 42; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 24px; opacity: 0; pointer-events: none;
    background: radial-gradient(120% 90% at 50% 45%, rgba(20,25,34,0.35), rgba(8,10,14,0.88)); }
  & .as-reveal.show { opacity: 1; pointer-events: auto; }
  & .as-reveal .verdict { font-family: var(--a-mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--a-muted); }
  & .as-reveal h1 { font-family: var(--a-serif); font-weight: 500; font-size: clamp(32px, 6vw, 60px); letter-spacing: -0.02em; line-height: 1.04; margin: 10px 0 6px; }
  & .as-reveal h1.win { color: var(--a-you); } & .as-reveal h1.lose { color: var(--a-quant); } & .as-reveal h1.tie { color: #aeb8c7; }
  & .as-reveal .score { font-family: var(--a-mono); font-size: 13px; color: #aeb8c7; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; margin-bottom: 14px; }
  & .as-reveal .kq { font-family: var(--a-serif); font-style: italic; font-weight: 500; font-size: clamp(15px, 2vw, 19px); line-height: 1.5; max-width: 52ch; margin: 0 auto; color: #eef2f7; }
  & .as-reveal .kq em { font-style: normal; color: var(--a-you); }
  & .as-reveal .stats { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 16px;
    font-family: var(--a-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--a-muted); }
  & .as-reveal .stats span { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(120,140,170,0.22); }
  & .as-reveal .btns { display: flex; gap: 11px; margin-top: 26px; }
  & .as-btn { font-family: var(--a-sans); font-size: 14px; font-weight: 500; padding: 11px 22px; border-radius: 12px;
    border: 1px solid #324053; background: rgba(20,25,34,0.7); color: #eef2f7; cursor: pointer; transition: transform .14s, border-color .14s; }
  & .as-btn:hover { transform: translateY(-2px); }
  & .as-btn.primary { border-color: var(--a-you); color: var(--a-you); }

  & .as-unavail { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: var(--a-mono); font-size: 14px; color: var(--a-muted); }

  /* ═══ FLARE ═══ */

  /* tug-of-war lead meter — boundary slides toward whoever leads */
  & .as-meter { align-self: center; margin-top: 10px; display: flex; align-items: center; gap: 10px; width: min(920px, 94vw); }
  & .as-meter-end { font-family: var(--a-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
  & .as-meter-end.kurus { color: var(--a-quant); } & .as-meter-end.you { color: var(--a-you); }
  & .as-meter-track { position: relative; flex: 1; height: 9px; border-radius: 999px; overflow: hidden;
    background: linear-gradient(90deg, rgba(94,200,216,0.45), rgba(94,200,216,0.85)); box-shadow: inset 0 0 8px rgba(0,0,0,0.5); }
  & .as-meter-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 50%;
    background: linear-gradient(90deg, rgba(159,180,212,0.85), rgba(159,180,212,0.45));
    border-right: 1px solid rgba(255,255,255,0.55); transition: width .55s cubic-bezier(.4, 1.1, .5, 1); }
  & .as-meter-mid { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: rgba(255,255,255,0.22); }

  /* "−$X spread" cost float (per trade) */
  & .as-float { position: absolute; right: 28px; bottom: 78px; z-index: 32; pointer-events: none;
    font-family: var(--a-mono); font-size: 14px; color: var(--a-crimson); text-shadow: 0 1px 6px rgba(0,0,0,0.6);
    animation: as-float-up 1.1s ease-out forwards; }

  /* (lead-change flash lives on .as-flash, defined up with the battlefield) */

  /* ═══ FOMO cutscene — the "before you do" moment ═══ */
  & .as-fomo { position: absolute; inset: 0; z-index: 41; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 24px; padding: 24px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .4s;
    background: radial-gradient(120% 90% at 50% 40%, rgba(46,12,18,0.55), rgba(8,6,9,0.93)); }
  & .as-fomo.show { opacity: 1; pointer-events: auto; }
  & .as-fomo-chyron { font-family: var(--a-mono); font-size: clamp(12px, 2vw, 16px); letter-spacing: 0.07em; color: #ffdada;
    background: linear-gradient(90deg, rgba(224,86,110,0.16), rgba(224,86,110,0.34), rgba(224,86,110,0.16));
    border: 1px solid rgba(224,86,110,0.5); border-radius: 9px; padding: 10px 22px; animation: as-chyron-pulse 1.2s ease-in-out infinite; }
  & .as-fomo-chyron b { color: #fff; }
  & .as-fomo-q { font-family: var(--a-serif); font-style: italic; font-weight: 500; font-size: clamp(17px, 2.6vw, 26px);
    line-height: 1.4; max-width: 22ch; color: #eef2f7; text-shadow: 0 2px 22px rgba(0,0,0,0.6); }
  & .as-fomo-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
  & .as-fomo-btn { font-family: var(--a-serif); font-weight: 600; font-size: 17px; padding: 13px 28px; border-radius: 14px;
    cursor: pointer; transition: transform .14s, box-shadow .14s; }
  & .as-fomo-btn:hover { transform: translateY(-2px); }
  & .as-fomo-btn.chase { color: #fff; background: rgba(224,86,110,0.2); border: 1px solid rgba(224,86,110,0.6); }
  & .as-fomo-btn.chase:hover { box-shadow: 0 12px 30px rgba(224,86,110,0.3); }
  & .as-fomo-btn.hold { color: #0b0e13; background: var(--a-you); border: 1px solid var(--a-you); }
  & .as-fomo-btn.hold:hover { box-shadow: 0 12px 30px rgba(94,200,216,0.3); }
}

/* ═══ FLARE keyframes ═══ */
@keyframes as-float-up { 0% { opacity: 0; transform: translateY(6px); } 18% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px); } }
@keyframes as-chyron-pulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; box-shadow: 0 0 24px rgba(224,86,110,0.4); } }
/* full-screen edge vignettes in team colors — you take the lead (green) / Kurus retakes (red) */
@keyframes as-flash-you {
  0% { opacity: 0; box-shadow: inset 0 0 0 rgba(84,208,138,0); }
  28% { opacity: 1; box-shadow: inset 0 0 130px rgba(84,208,138,0.5); }
  100% { opacity: 0; box-shadow: inset 0 0 130px rgba(84,208,138,0); }
}
@keyframes as-flash-kurus {
  0% { opacity: 0; box-shadow: inset 0 0 0 rgba(224,86,110,0); }
  28% { opacity: 1; box-shadow: inset 0 0 130px rgba(224,86,110,0.5); }
  100% { opacity: 0; box-shadow: inset 0 0 130px rgba(224,86,110,0); }
}

/* reduced-motion / motion-off: kill the looping chyron pulse (JS already skips floats/flashes) */
@media (prefers-reduced-motion: reduce) { #btq-root.btq-arena-season .as-fomo-chyron { animation: none !important; } }
#btq-root.btq-arena-season.no-motion .as-fomo-chyron { animation: none !important; }

/* ═══ mobile / portrait — battlefield fills upper area, tray thumb-reachable ═══ */
@media (max-width: 760px), (orientation: portrait) {
  #btq-root.btq-arena-season {
    & .a-world { perspective: 1100px; perspective-origin: 50% 30%; }
    & .a-quant-anchor { top: 20%; transform: translate(-50%, 0) translateZ(-300px) scale(0.5); }
    & .as-topbar { padding: 14px 16px 0; }
    & .as-meter { margin-top: 8px; }
    & .as-score { margin-top: 8px; }
    & .as-speak { margin-top: 6px; }
    & .as-sc-side { min-width: 92px; padding: 6px 12px; }
    & .as-sc-val { font-size: 18px; }
    & .as-tray { padding: 12px 16px 18px; }
    & .as-cta { font-size: 16px; padding: 11px 20px; }
    & .as-tk-est { order: 9; }
  }
}

/* ═══ capture mode (clean 9:16 shorts): strip interactive chrome, keep the lines ═══ */
.capture-mode #btq-root.btq-arena-season .as-tray,
.capture-mode #btq-root.btq-arena-season .as-topbar { display: none; }
