/* ============================================================================
   Market-game design system + play shell (js/game-shell.js)
   ============================================================================
   One set of trading tokens for every market game (BUY green, SELL red, fair
   value blue, missed edge amber), the focus-mode page chrome, the sticky HUD,
   the decision review table, the honest results header and the small SVGs.
   Dark is the site default; [data-theme="light"] overrides below.
   ========================================================================== */
:root {
  --qv-buy: #22c55e;   --qv-buy-ink: #4ade80;   --qv-buy-bg: rgba(34,197,94,.12);   --qv-buy-bd: rgba(34,197,94,.42);
  --qv-sell: #ef4444;  --qv-sell-ink: #f87171;  --qv-sell-bg: rgba(239,68,68,.12);  --qv-sell-bd: rgba(239,68,68,.42);
  --qv-fair: #4c8bf5;  --qv-fair-ink: #7aa9ff;  --qv-fair-bg: rgba(76,139,245,.14);
  --qv-miss: #f59e0b;  --qv-miss-ink: #fbbf24;  --qv-miss-bg: rgba(245,158,11,.13);  --qv-miss-bd: rgba(245,158,11,.45);
  --qv-flat-ink: #94a3b8; --qv-flat-bg: rgba(148,163,184,.12);
  --qv-panel: var(--bg-card, #10151f);
  --qv-panel-2: var(--bg-elevated, #1a2335);
  --qv-line: rgba(255,255,255,.09);
  --qv-ink: var(--text-primary, #e2e8f0);
  --qv-ink-2: var(--text-secondary, #8392a7);
  --qv-gs-radius: 14px;
}
[data-theme="light"] {
  --qv-buy: #16a34a;   --qv-buy-ink: #15803d;   --qv-buy-bg: rgba(22,163,74,.10);   --qv-buy-bd: rgba(22,163,74,.40);
  --qv-sell: #dc2626;  --qv-sell-ink: #b91c1c;  --qv-sell-bg: rgba(220,38,38,.09);  --qv-sell-bd: rgba(220,38,38,.38);
  --qv-fair: #2f6fe0;  --qv-fair-ink: #1d4fb8;  --qv-fair-bg: rgba(47,111,224,.10);
  --qv-miss: #d97706;  --qv-miss-ink: #b45309;  --qv-miss-bg: rgba(217,119,6,.10);   --qv-miss-bd: rgba(217,119,6,.40);
  --qv-flat-ink: #64748b; --qv-flat-bg: rgba(100,116,139,.10);
  --qv-line: rgba(15,23,42,.10);
}
.qv-pos { color: var(--qv-buy-ink) !important; }
.qv-neg { color: var(--qv-sell-ink) !important; }
.qv-mono { font-family: var(--font-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; }
.qv-mute { color: var(--qv-ink-2); opacity: .7; }
.qv-r { text-align: right; }

/* ---- shared BUY / SELL / NO TRADE buttons (convention: buy green, sell red) ---- */
.qv-btn-buy, .qv-btn-sell, .qv-btn-pass {
  appearance: none; border: 0; cursor: pointer; font: inherit; min-height: 48px; border-radius: 12px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 10px 14px; color: #fff; font-weight: 800; letter-spacing: .03em;
  transition: transform .08s ease, filter .15s ease, opacity .15s ease; touch-action: manipulation;
}
.qv-btn-buy { background: linear-gradient(180deg, #22b357, #15803d); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.qv-btn-sell { background: linear-gradient(180deg, #e5484d, #b91c1c); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.qv-btn-pass { background: var(--qv-panel-2); color: var(--qv-ink); border: 1px solid var(--qv-line); font-weight: 700; }
.qv-btn-buy:hover, .qv-btn-sell:hover { filter: brightness(1.07); }
.qv-btn-buy:active, .qv-btn-sell:active, .qv-btn-pass:active { transform: translateY(1px) scale(.985); }
.qv-btn-buy:focus-visible, .qv-btn-sell:focus-visible, .qv-btn-pass:focus-visible { outline: 3px solid var(--qv-fair); outline-offset: 2px; }

/* ============================================================================
   1. Focus mode: page chrome out of the way while a run is live
   ========================================================================== */
html.qv-gfocus #qv-pwa-bar, html.qv-nobanner #qv-pwa-bar { display: none !important; }
html.qv-gfocus.qv-pwa-open body, html.qv-nobanner.qv-pwa-open body { padding-top: 0 !important; }
html.qv-nobanner.qv-pwa-open .nav { top: 0 !important; }
html.qv-gfocus .nav { transform: translateY(-110%); visibility: hidden; transition: transform .2s ease, visibility 0s .2s; }
html.qv-gfocus .main { margin-top: 0 !important; padding-top: 10px !important; min-height: 0; }
html.qv-gfocus .qv-seo-wrap,
html.qv-gfocus footer.footer,
html.qv-gfocus .qv-tabbar,
html.qv-gfocus #mm-mode-pill,
html.qv-gfocus .qv-related,
html.qv-gfocus .tg-mstart { display: none !important; }
html.qv-gfocus body.has-qv-tabbar .main { padding-bottom: 16px !important; }
html.qv-gfocus .qv-sample-badge { margin: 2px auto 6px; padding: 4px 10px; font-size: .66rem; }
/* the game card fills the screen width a little more on phones while live */
@media (max-width: 640px) {
  html.qv-gfocus .main { padding-left: 10px !important; padding-right: 10px !important; }
  html.qv-gfocus .qv-gs-live { padding-left: 0 !important; padding-right: 0 !important; padding-top: 0 !important; }
}

/* sticky HUD: any element the game marks with .qv-gs-hud */
.qv-gs-hud { position: sticky; top: 0; z-index: 40; }
html.qv-gfocus .qv-gs-hud {
  background: color-mix(in srgb, var(--qv-panel) 94%, transparent);
  backdrop-filter: saturate(1.2);
  box-shadow: 0 6px 18px -12px rgba(0,0,0,.55);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  html.qv-gfocus .qv-gs-hud { background: var(--qv-panel); }
}

.qv-gs-exit {
  position: fixed; top: 8px; right: 8px; z-index: 60; min-height: 36px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--qv-line); background: var(--qv-panel); color: var(--qv-ink-2);
  font: 600 .8rem/1 var(--font-sans, Inter, sans-serif); cursor: pointer;
}

/* shared compact HUD stat (games can use these inside their own HUD) */
.qv-hud { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--qv-line); border-radius: var(--qv-gs-radius); background: var(--qv-panel); }
.qv-hud__s { display: flex; flex-direction: column; min-width: 64px; padding: 2px 8px; }
.qv-hud__s > span { font: 700 .64rem/1.2 var(--font-sans, Inter, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--qv-ink-2); }
.qv-hud__s > b { font: 800 1.15rem/1.2 var(--font-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; color: var(--qv-ink); }
.qv-hud__s--low > b { color: var(--qv-sell-ink); animation: qv-blink 1s steps(2) infinite; }
.qv-hud__sp { flex: 1; }
@keyframes qv-blink { 50% { opacity: .55; } }

/* ============================================================================
   2. Input lock: the new board settles before it accepts a tap
   ========================================================================== */
.qv-gs-locked button:not(.gj-mute), .qv-gs-locked [role=button] { opacity: .62; cursor: progress; transition: opacity .08s ease; }
.qv-gs-locked .qv-gs-nolockfx { opacity: 1 !important; }
button, [role=button] { transition-property: opacity, transform, filter, background-color, border-color, box-shadow; }

/* ============================================================================
   3. Decision review
   ========================================================================== */
.qv-rev { margin: 18px 0 8px; padding: 18px 18px 14px; border: 1px solid var(--qv-line); border-radius: var(--qv-gs-radius); background: var(--qv-panel); text-align: left; }
.qv-rev__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.qv-rev__title { font: 800 1.12rem/1.3 var(--font-sans, Inter, sans-serif); margin: 0; color: var(--qv-ink); }
.qv-rev__intro { margin: 4px 0 0; font-size: .9rem; line-height: 1.5; color: var(--qv-ink-2); max-width: 62ch; }
.qv-rev__filters { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--qv-panel-2); border: 1px solid var(--qv-line); }
.qv-rev__f { appearance: none; border: 0; background: transparent; color: var(--qv-ink-2); font: 600 .82rem/1 var(--font-sans, Inter, sans-serif); padding: 9px 11px; min-height: 36px; border-radius: 8px; cursor: pointer; }
.qv-rev__f span { opacity: .7; margin-left: 3px; font-variant-numeric: tabular-nums; }
.qv-rev__f.is-on { background: var(--qv-panel); color: var(--qv-ink); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.qv-rev__f:disabled { opacity: .4; cursor: default; }
.qv-rev__sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.qv-rev__chip { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--qv-panel-2); border: 1px solid var(--qv-line); min-width: 96px; }
.qv-rev__chip span { font: 700 .66rem/1.2 var(--font-sans, Inter, sans-serif); letter-spacing: .07em; text-transform: uppercase; color: var(--qv-ink-2); }
.qv-rev__chip b { font: 800 1.02rem/1.25 var(--font-mono, ui-monospace, monospace); color: var(--qv-ink); font-variant-numeric: tabular-nums; }
.qv-rev__chip--good b { color: var(--qv-buy-ink); }
.qv-rev__chip--bad b { color: var(--qv-sell-ink); }
.qv-rev__chip--miss b { color: var(--qv-miss-ink); }
.qv-rev__leaks { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--qv-sell-bg); border: 1px solid var(--qv-sell-bd); }
.qv-rev__leaks-k { font: 800 .7rem/1.2 var(--font-sans, Inter, sans-serif); letter-spacing: .1em; text-transform: uppercase; color: var(--qv-sell-ink); margin-bottom: 6px; }
.qv-rev__leaks ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.qv-rev__leak { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; font-size: .9rem; line-height: 1.45; color: var(--qv-ink); }
.qv-rev__leak-n { font: 700 .78rem/1 var(--font-mono, ui-monospace, monospace); color: var(--qv-ink-2); }
.qv-rev__leak-c { font: 800 .9rem/1.2 var(--font-mono, ui-monospace, monospace); color: var(--qv-sell-ink); white-space: nowrap; }
.qv-rev__leak-c small { font: 600 .66rem/1 var(--font-sans, Inter, sans-serif); color: var(--qv-ink-2); }
.qv-rev__leak--miss .qv-rev__leak-c { color: var(--qv-miss-ink); }
.qv-rev__legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; color: var(--qv-ink-2); margin: 0 0 8px; }
.qv-rev__legend span { display: inline-flex; align-items: center; gap: 6px; }
.qv-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.qv-dot--good { background: var(--qv-buy); } .qv-dot--bad { background: var(--qv-sell); } .qv-dot--miss { background: var(--qv-miss); } .qv-dot--flat { background: var(--qv-flat-ink); }
.qv-rev__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.qv-rev__t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; color: var(--qv-ink); }
.qv-rev__t th { text-align: left; font: 700 .68rem/1.2 var(--font-sans, Inter, sans-serif); letter-spacing: .07em; text-transform: uppercase; color: var(--qv-ink-2); padding: 8px 8px; border-bottom: 1px solid var(--qv-line); white-space: nowrap; }
.qv-rev__t td { padding: 9px 8px 3px; vertical-align: top; }
.qv-rev__t th.qv-r, .qv-rev__t td.qv-r { text-align: right; }
.qv-rev__main td:first-child { border-left: 3px solid transparent; }
.qv-rev__row--good .qv-rev__main td:first-child { border-left-color: var(--qv-buy); }
.qv-rev__row--bad .qv-rev__main td:first-child { border-left-color: var(--qv-sell); }
.qv-rev__row--miss .qv-rev__main td:first-child { border-left-color: var(--qv-miss); }
.qv-rev__row--flat .qv-rev__main td:first-child { border-left-color: var(--qv-flat-ink); }
.qv-rev__row--bad { background: linear-gradient(90deg, var(--qv-sell-bg), transparent 70%); }
.qv-rev__row--miss { background: linear-gradient(90deg, var(--qv-miss-bg), transparent 70%); }
.qv-rev__why td { padding: 0 8px 9px; font-size: .82rem; line-height: 1.45; color: var(--qv-ink-2); border-bottom: 1px solid var(--qv-line); }
.qv-rev__row:not(:has(.qv-rev__why)) .qv-rev__main td { border-bottom: 1px solid var(--qv-line); padding-bottom: 9px; }
.qv-rev__n { width: 2.4em; color: var(--qv-ink-2); font: 600 .78rem/1.4 var(--font-mono, ui-monospace, monospace); }
.qv-rev__v { white-space: nowrap; }
.qv-rev .is-more { display: none; }
.qv-rev.is-all .is-more { display: table-row-group; }
.qv-rev[data-filter="mistakes"] .qv-rev__row:not(.is-mistake) { display: none; }
.qv-rev[data-filter="mistakes"] .qv-rev__row.is-mistake { display: table-row-group; }
.qv-rev[data-filter="slow"] .qv-rev__row:not(.is-slow) { display: none; }
.qv-rev[data-filter="slow"] .qv-rev__row.is-slow { display: table-row-group; }
.qv-rev[data-filter="mistakes"] .qv-rev__more, .qv-rev[data-filter="slow"] .qv-rev__more { display: none; }
.qv-rev__more { display: block; width: 100%; margin-top: 10px; min-height: 44px; border-radius: 10px; border: 1px dashed var(--qv-line); background: transparent; color: var(--qv-fair-ink); font: 600 .88rem/1 var(--font-sans, Inter, sans-serif); cursor: pointer; }
.qv-rev__empty { margin: 6px 0; color: var(--qv-ink-2); font-size: .92rem; }

.qv-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font: 700 .72rem/1.3 var(--font-sans, Inter, sans-serif); letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent; }
.qv-tag--good { background: var(--qv-buy-bg); color: var(--qv-buy-ink); border-color: var(--qv-buy-bd); }
.qv-tag--bad { background: var(--qv-sell-bg); color: var(--qv-sell-ink); border-color: var(--qv-sell-bd); }
.qv-tag--miss { background: var(--qv-miss-bg); color: var(--qv-miss-ink); border-color: var(--qv-miss-bd); }
.qv-tag--flat { background: var(--qv-flat-bg); color: var(--qv-flat-ink); border-color: var(--qv-line); }
.qv-tag--fair { background: var(--qv-fair-bg); color: var(--qv-fair-ink); }
.qv-side-buy { color: var(--qv-buy-ink); font-weight: 800; }
.qv-side-sell { color: var(--qv-sell-ink); font-weight: 800; }
.qv-side-pass { color: var(--qv-ink-2); font-weight: 700; }

/* phones: each decision becomes a card */
@media (max-width: 640px) {
  .qv-rev { padding: 14px 12px 12px; margin-left: 0; margin-right: 0; }
  .qv-rev__filters { width: 100%; }
  .qv-rev__f { flex: 1; min-height: 40px; }
  .qv-rev__t thead { display: none; }
  .qv-rev__t, .qv-rev__t tbody, .qv-rev__t tr, .qv-rev__t td { display: block; width: auto; }
  .qv-rev .is-more, .qv-rev[data-filter] .qv-rev__row:not(.is-mistake):not(.is-slow) { }
  .qv-rev__row { border: 1px solid var(--qv-line); border-radius: 12px; margin: 0 0 8px; padding: 8px 10px; position: relative; }
  .qv-rev__row--good { border-left: 4px solid var(--qv-buy); }
  .qv-rev__row--bad { border-left: 4px solid var(--qv-sell); }
  .qv-rev__row--miss { border-left: 4px solid var(--qv-miss); }
  .qv-rev__row--flat { border-left: 4px solid var(--qv-flat-ink); }
  .qv-rev__main { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .qv-rev__main td { padding: 0 !important; border: 0 !important; }
  .qv-rev__main td:first-child { border-left: 0 !important; }
  .qv-rev__main td[data-l]::before { content: attr(data-l); display: block; font: 700 .62rem/1.3 var(--font-sans, Inter, sans-serif); letter-spacing: .07em; text-transform: uppercase; color: var(--qv-ink-2); }
  .qv-rev__main td.qv-r { text-align: left; }
  .qv-rev__n { grid-column: 1; font-size: .76rem; }
  .qv-rev__v { grid-column: 2; grid-row: 1; justify-self: end; }
  .qv-rev__why td { padding: 6px 0 0 !important; border: 0 !important; }
  .qv-rev__why td:first-child { display: none; }
  .qv-rev .qv-rev__row.is-more { display: none; }
  .qv-rev.is-all .qv-rev__row.is-more { display: block; }
  .qv-rev[data-filter="mistakes"] .qv-rev__row.is-mistake, .qv-rev[data-filter="slow"] .qv-rev__row.is-slow { display: block; }
  .qv-rev__leak { grid-template-columns: auto 1fr; }
  .qv-rev__leak-c { grid-column: 2; }
}

/* ============================================================================
   4. Honest results
   ========================================================================== */
.qv-res-hero { text-align: left; margin: 6px 0 14px; padding: 18px 20px; border-radius: var(--qv-gs-radius); border: 1px solid var(--qv-line); background: var(--qv-panel); }
.qv-res-hero__k { font: 700 .72rem/1.3 var(--font-sans, Inter, sans-serif); letter-spacing: .1em; text-transform: uppercase; color: var(--qv-ink-2); margin-bottom: 8px; }
.qv-res-hero__row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qv-res-hero__score { display: flex; align-items: baseline; gap: 4px; padding: 10px 16px; border-radius: 14px; background: var(--qv-panel-2); border: 1px solid var(--qv-line); }
.qv-res-hero__score b { font: 900 2.6rem/1 var(--font-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; color: var(--qv-ink); }
.qv-res-hero__score span { font: 600 .9rem/1 var(--font-sans, Inter, sans-serif); color: var(--qv-ink-2); }
.qv-res-hero__score--muted b { color: var(--qv-ink-2); opacity: .6; }
.qv-res-hero__score--good b { color: var(--qv-buy-ink); } .qv-res-hero__score--bad b { color: var(--qv-sell-ink); } .qv-res-hero__score--miss b { color: var(--qv-miss-ink); }
.qv-res-hero__main { flex: 1; min-width: 220px; }
.qv-res-hero__big { font: 800 1.5rem/1.25 var(--font-sans, Inter, sans-serif); color: var(--qv-ink); margin-bottom: 6px; }
.qv-res-hero__big--good { color: var(--qv-buy-ink); } .qv-res-hero__big--bad { color: var(--qv-sell-ink); }
.qv-res-hero__band { margin-right: 6px; }
.qv-res-hero__sub { margin: 8px 0 0; font-size: .95rem; line-height: 1.55; color: var(--qv-ink-2); max-width: 66ch; }
.qv-res-hero__sub b, .qv-res-hero__sub strong { color: var(--qv-ink); }
.qv-res-hero__badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.qv-fix { margin: 14px 0; padding: 14px 18px; border-radius: var(--qv-gs-radius); border: 1px solid var(--qv-fair-bg); background: var(--qv-fair-bg); text-align: left; }
.qv-fix__t { font: 800 .78rem/1.2 var(--font-sans, Inter, sans-serif); letter-spacing: .09em; text-transform: uppercase; color: var(--qv-fair-ink); margin: 0 0 8px; }
.qv-fix ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.qv-fix li { font-size: .94rem; line-height: 1.5; color: var(--qv-ink); }
.qv-gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 12px 0; }
.qv-gauge { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--qv-line); background: var(--qv-panel); text-align: left; }
.qv-gauge__top { display: flex; justify-content: space-between; align-items: baseline; }
.qv-gauge__n { font: 700 .74rem/1.2 var(--font-sans, Inter, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--qv-ink-2); }
.qv-gauge__top b { font: 800 1.35rem/1 var(--font-mono, ui-monospace, monospace); color: var(--qv-ink); }
.qv-gauge__bar { height: 6px; border-radius: 99px; background: var(--qv-panel-2); margin: 8px 0 6px; overflow: hidden; }
.qv-gauge__bar i { display: block; height: 100%; border-radius: 99px; background: var(--qv-flat-ink); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.qv-gauge--good .qv-gauge__bar i { background: var(--qv-buy); } .qv-gauge--miss .qv-gauge__bar i { background: var(--qv-miss); } .qv-gauge--bad .qv-gauge__bar i { background: var(--qv-sell); }
.qv-gauge__c { font-size: .84rem; line-height: 1.45; color: var(--qv-ink); }
.qv-gauge__d { font-size: .76rem; line-height: 1.4; color: var(--qv-ink-2); margin-top: 3px; }
.qv-hist { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .85rem; color: var(--qv-ink-2); margin: 8px 0 0; }
.qv-hist b { color: var(--qv-ink); }
.qv-hist__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 24px; }
.qv-hist__bars i { width: 6px; border-radius: 2px 2px 0 0; background: var(--qv-flat-ink); opacity: .55; }
.qv-hist__bars i.is-neg { background: var(--qv-sell); }
.qv-hist__bars i.is-last { background: var(--qv-fair); opacity: 1; }

/* ============================================================================
   5. Visuals
   ========================================================================== */
.qv-pl { margin: 12px 0; padding: 12px 14px 8px; border-radius: 12px; border: 1px solid var(--qv-line); background: var(--qv-panel); }
.qv-pl figcaption { display: flex; justify-content: space-between; font: 700 .74rem/1.3 var(--font-sans, Inter, sans-serif); letter-spacing: .07em; text-transform: uppercase; color: var(--qv-ink-2); margin-bottom: 6px; }
.qv-pl figcaption b { font-family: var(--font-mono, ui-monospace, monospace); font-size: .95rem; letter-spacing: 0; }
.qv-pl svg { width: 100%; height: 110px; display: block; overflow: visible; }
.qv-pl__zero { stroke: var(--qv-ink-2); stroke-width: 1; stroke-dasharray: 4 4; opacity: .5; vector-effect: non-scaling-stroke; }
.qv-pl__line { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.qv-pl__line--pos { stroke: var(--qv-buy); } .qv-pl__line--neg { stroke: var(--qv-sell); }
.qv-pl__area--pos { fill: var(--qv-buy-bg); } .qv-pl__area--neg { fill: var(--qv-sell-bg); }
.qv-pl__m { stroke: var(--qv-panel); stroke-width: 2; vector-effect: non-scaling-stroke; }
.qv-pl__m--bad { fill: var(--qv-sell); } .qv-pl__m--miss { fill: var(--qv-miss); } .qv-pl__m--good { fill: var(--qv-buy); }
.qv-pl__foot { font-size: .78rem; color: var(--qv-ink-2); margin-top: 4px; }
.qv-nl { width: 100%; height: auto; display: block; max-height: 90px; }
.qv-nl__axis { stroke: var(--qv-ink-2); stroke-width: 1.5; opacity: .6; }
.qv-nl__band { fill: var(--qv-fair-bg); stroke: var(--qv-fair); stroke-width: 1; stroke-dasharray: 3 3; }
.qv-nl__bl { font: 600 11px var(--font-sans, Inter, sans-serif); fill: var(--qv-fair-ink); }
.qv-nl__tick { stroke-width: 3; stroke-linecap: round; }
.qv-nl__t { font: 700 12px var(--font-mono, ui-monospace, monospace); }
.qv-nl__tick--buy { stroke: var(--qv-buy); } .qv-nl__t--buy { fill: var(--qv-buy-ink); }
.qv-nl__tick--sell { stroke: var(--qv-sell); } .qv-nl__t--sell { fill: var(--qv-sell-ink); }
.qv-nl__tick--fair { stroke: var(--qv-fair); } .qv-nl__t--fair { fill: var(--qv-fair-ink); }
.qv-nl__tick--truth { stroke: var(--qv-ink); } .qv-nl__t--truth { fill: var(--qv-ink); }
.qv-nl__tick--you { stroke: var(--qv-miss); } .qv-nl__t--you { fill: var(--qv-miss-ink); }

/* small motion helpers */
@keyframes qv-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.qv-in { animation: qv-in .22s ease-out both; }
@keyframes qv-flash-good { 0% { box-shadow: 0 0 0 0 var(--qv-buy-bd); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes qv-flash-bad { 0% { box-shadow: 0 0 0 0 var(--qv-sell-bd); } 100% { box-shadow: 0 0 0 14px transparent; } }
.qv-flash-good { animation: qv-flash-good .5s ease-out; }
.qv-flash-bad { animation: qv-flash-bad .5s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .qv-in, .qv-flash-good, .qv-flash-bad { animation: none; }
  html.qv-gfocus .nav { transition: none; }
}

/* 44 px minimum touch targets inside live market games on touch screens */
@media (pointer: coarse) {
  .qv-gs-live button, .qv-gs-live [role=button], .qv-gs-live input[type=number], .qv-gs-live input[type=text] { min-height: 44px; }
  .qv-gs-live .gj-mute { min-width: 44px; min-height: 44px; }
}
