/* QSE Sports home page (2026-10-10 redesign). Interface surfaces inherit the named QSE palette;
   sport artwork and decorative scene colors keep their meaning. Fonts are self-hosted in qse-fonts.css
   (Roboto Condensed for display, Inter for body); no new font downloads. Prefix: qh-. */
.qh {
    --qh-bg: var(--qse-app-bg); --qh-bar: var(--qse-surface); --qh-card: var(--qse-surface); --qh-card2: var(--qse-surface-2);
    --qh-fg: var(--qse-text); --qh-dim: var(--qse-text-muted); --qh-dim2: var(--qse-text);
    --qh-line: var(--qse-border); --qh-line2: var(--qse-border-strong);
    --qh-amber: var(--qse-accent); --qh-amber-fg: var(--qse-on-accent); --qh-blue: var(--bs-link-color); --qh-green: var(--qse-positive);
    --qh-disp: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
    --qh-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
    margin: -1.5rem; background: var(--qh-bg); color: var(--qh-fg); font-size: 17px; line-height: 1.5;
}
@media (max-width: 767.98px) { .qh { margin: -1rem; } }
.qh a { color: inherit; text-decoration: none; }
.qh a:focus-visible, .qh button:focus-visible { outline: 3px solid var(--qse-focus); outline-offset: 2px; }
.qh h1, .qh h2, .qh h3, .qh h4 { color: inherit; }
.qh-wrap { max-width: 1480px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 48px); }
.qh-sec { padding-block: 56px 24px; }
.qh-disp { font-family: var(--qh-disp); font-weight: 900; text-transform: uppercase; letter-spacing: 0.005em; margin: 0; line-height: 0.95; }
.qh-kick { margin: 0; font-family: var(--qh-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--qh-amber); }
.qh-chno { font-family: var(--qh-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--qh-amber); }
.qh-dot { width: 12px; height: 12px; border-radius: 999px; display: inline-block; flex-shrink: 0; }
.qh-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* 2026-10-31 (owner rule: 2+ buttons = equal boxes): a pair sizes both to the wider; stacked full width on phones. */
.qh-btns.pair { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-self: flex-start; }
@media (max-width: 767.98px) { .qh-btns.pair { display: grid; grid-auto-flow: row; align-self: stretch; } }
.qh-sh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.qh-sh h2 { font-size: clamp(34px, 3.4vw, 54px); }
.qh-sh p { margin: 0; color: var(--qh-dim); max-width: 56ch; }

/* buttons + pills */
.qh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 10px; background: var(--qh-amber); color: var(--qh-amber-fg) !important; font-weight: 700; font-size: 17px; border: 0; white-space: nowrap; }
.qh-btn:hover { filter: brightness(1.06); }
.qh-btn.big { min-height: 60px; padding: 0 30px; font-size: 19px; }
.qh-btn.sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.qh-btn.ghost { background: transparent; color: var(--qh-fg) !important; border: 1px solid var(--qh-line2); font-weight: 600; }
.qh-btn.ghost:hover { border-color: var(--qh-amber); filter: none; }
.qh-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; }
.qh-p-free { background: rgba(74, 222, 128, 0.14); color: var(--qh-green); }
.qh-p-left { background: rgba(56, 189, 248, 0.14); color: #7DD3FC; }
.qh-p-pro { background: rgba(255, 255, 255, 0.08); color: var(--qh-dim); }
.qh-p-sub { background: var(--qh-amber); color: var(--qse-on-accent); }
.qh-p-next { background: rgba(255, 184, 0, 0.14); color: #FFD27A; }
.qh-p-used { background: rgba(255, 255, 255, 0.06); color: var(--qh-dim); }
.qh-ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* hero */
.qh-hero { position: relative; isolation: isolate; }
/* The veil over the stadium photo is the theme's own canvas (2026-10-12): it was fixed navy, so Light themes put dark
   text on a dark photo. Light themes veil more of the photo so body copy stays >= 4.5:1. */
.qh-hero { --qh-veil-mid: 88%; --qh-veil-end: 55%; }
html[data-bs-theme="light"] .qh-hero { --qh-veil-mid: 94%; --qh-veil-end: 80%; }
.qh-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--qse-app-bg) 0%,
    color-mix(in srgb, var(--qse-app-bg) var(--qh-veil-mid), transparent) 45%, color-mix(in srgb, var(--qse-app-bg) var(--qh-veil-end), transparent) 100%),
    url(/img/home/stadium-night.webp) center 40% / cover; }
.qh-hero .qh-wrap { padding-block: 56px 64px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.qh-hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.qh-hero-brand { margin: -10px 0 0; color: var(--qh-fg); font-family: var(--qh-disp); font-size: clamp(22px, 2vw, 32px); font-weight: 700; line-height: 1; text-transform: uppercase; }
.qh-hero :is(h1, #qh-h) { font-size: clamp(52px, 6vw, 100px); line-height: 0.88; text-wrap: balance; }
.qh-lede { margin: 0; color: var(--qh-dim2); font-size: 21px; max-width: 40ch; }
.qh-lede b { color: var(--qh-fg); }
.qh-fine { color: var(--qh-dim); font-size: 15px; }
.qh-hero-vis { flex: 1.2 1 560px; min-width: 0; }
.qh-pwr { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid rgba(124, 170, 255, 0.4); background: rgba(13, 21, 38, 0.8); color: #CFE0FF; font-family: var(--qh-mono); font-size: 12px; letter-spacing: 0.12em; font-weight: 600; align-self: flex-start; }
.qh-pwr i { width: 8px; height: 8px; border-radius: 999px; background: #7CAAFF; box-shadow: 0 0 10px #7CAAFF; }
.qh-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; max-width: 620px; }
.qh-chips a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--qh-line); font-weight: 600; }
.qh-chips a:hover { border-color: var(--qh-amber); }
.qh-chips small { display: block; color: var(--qh-dim); font-weight: 500; font-size: 14px; }
.qh-chips a.next { border-style: dashed; color: var(--qh-dim2); }

/* gameplay visuals */
/* Fixed dark glass in every theme; its text tokens are set with the other dark panels at the end of this file. */
.qh-gp { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--qh-line); background: #060C16; color: var(--qse-text); display: flex; flex-direction: column; min-width: 0; }
/* 2026-10-18: real in-game captures (baseball, football, golf) at their natural aspect; the game draws its own HUD. */
.qh-shot img { display: block; width: 100%; height: auto; }
.qh-tri { background: linear-gradient(160deg, #3B1A78 0%, #1E1046 100%); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.qh-tri .lab { margin: 0; font-family: var(--qh-mono); font-size: 12px; letter-spacing: 0.14em; color: #DDD6FE; }
.qh-tri h4 { margin: 0; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.15; color: #FFFFFF; font-weight: 700; }
.qh-tri .go { align-self: flex-start; display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 10px; background: #FFFFFF; color: #3B1A78 !important; font-weight: 800; }
.qh-tri .modes { display: flex; flex-wrap: wrap; gap: 6px; }
.qh-tri .modes span { padding: 5px 10px; border-radius: 999px; background: var(--qse-border); color: #EDE9FE; font-size: 13px; font-weight: 600; }
.qh-soon { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 40%, var(--qse-surface-2) 0%, #060C16 75%); }
.qh-soon img { width: 70%; height: auto; display: block; }
.qh-soon .tag { position: absolute; left: 3%; top: 5%; padding: 6px 12px; border-radius: 6px; background: var(--qh-amber); color: var(--qse-on-accent); font-family: var(--qh-disp); font-weight: 900; letter-spacing: 0.08em; font-size: 16px; }

/* channel guide */
.qh-guide { position: relative; overflow-x: auto; border-radius: 16px; border: 1px solid var(--qh-line); background: var(--qh-card); }
.qh-guide table { width: 100%; min-width: 1000px; border-collapse: collapse; color: var(--qh-fg); }
.qh-guide th { text-align: left; padding: 14px 18px; font-family: var(--qh-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--qh-dim); font-weight: 600; border-bottom: 1px solid var(--qh-line); background: var(--qh-bar); }
.qh-guide td { padding: 16px 18px; border-bottom: 1px solid var(--qh-line); vertical-align: middle; background: transparent; color: inherit; }
.qh-guide tr.grp td { padding: 10px 18px; background: var(--qh-bar); font-family: var(--qh-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--qh-amber); font-weight: 600; }
.qh-guide tr:last-child td { border-bottom: 0; }
.qh-guide tr.next td { color: var(--qh-dim2); }
.qh-guide tr.later td { color: var(--qh-dim); font-style: italic; }
.qh-ch { display: flex; align-items: center; gap: 16px; }
.qh-ch i { width: 120px; height: 76px; border-radius: 10px; background-size: cover; background-position: center; flex-shrink: 0; background-color: var(--qse-surface); }
.qh-ch b { display: block; font-family: var(--qh-disp); font-size: 30px; font-weight: 900; line-height: 1; text-transform: uppercase; }
.qh-guide td.what { color: var(--qh-dim2); max-width: 34ch; }
.qh-guide td.free { color: var(--qh-green); font-weight: 600; }
.qh-guide td.go { white-space: nowrap; }
.qh-guide td.go button { display: block; margin-top: 8px; padding: 0; border: 0; background: none; font-size: 14px; color: var(--qh-amber); font-weight: 600; cursor: pointer; }

/* control room: rail + detail */
.qh-room { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.qh-rail { flex: 0 1 360px; min-width: 0; position: sticky; top: 16px; border-radius: 18px; background: var(--qh-card); border: 1px solid var(--qh-line); padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.qh-rail .rh { padding: 10px 12px 6px; display: flex; justify-content: space-between; align-items: baseline; }
.qh-rail .rh b { font-family: var(--qh-disp); font-size: 24px; font-weight: 900; text-transform: uppercase; }
.qh-rail .grp { padding: 12px 12px 4px; font-family: var(--qh-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--qh-dim); }
.qh-rail button { text-align: left; display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--qh-fg); cursor: pointer; width: 100%; }
.qh-rail button:hover { background: var(--qh-card2); }
.qh-rail button[aria-selected="true"] { background: var(--qh-card2); border-color: rgba(255,184,0,0.6); }
.qh-rail button i { width: 72px; height: 54px; border-radius: 10px; background-size: cover; background-position: center; flex-shrink: 0; background-color: var(--qse-surface); }
.qh-rail button .t { flex: 1; min-width: 0; }
.qh-rail button .t b { display: block; font-family: var(--qh-disp); font-size: 25px; font-weight: 900; line-height: 1.05; text-transform: uppercase; }
.qh-rail button .t small { display: block; font-size: 14px; color: var(--qh-dim); }
.qh-rail button .t small.f { color: var(--qh-green); }
.qh-rail button.nx .t b { color: var(--qh-dim2); }
.qh-rail .foot { padding: 12px; border-top: 1px solid var(--qh-line); margin-top: 6px; color: var(--qh-dim); font-size: 14px; }
.qh-detail { flex: 1 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.qh-detail .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.qh-detail h3 { font-size: clamp(42px, 4vw, 64px); display: flex; align-items: center; gap: 14px; }
.qh-detail .lede2 { margin: 0; color: var(--qh-dim2); font-size: 19px; max-width: 62ch; }
.qh-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 900px) { .qh-cols { grid-template-columns: minmax(0, 1fr); } }
.qh-box { border-radius: 16px; background: var(--qh-card); border: 1px solid var(--qh-line); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.qh-box h4 { margin: 0; font-family: var(--qh-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--qh-dim); font-weight: 600; }
.qh-box ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.qh-box li { display: flex; gap: 10px; } .qh-box li svg { color: var(--qh-green); margin-top: 4px; }
.qh-box .big { margin: 0; font-size: 19px; font-weight: 600; }
.qh-fp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.qh-fp div { padding: 12px 14px; border-radius: 12px; background: var(--qh-bar); border: 1px solid var(--qh-line); }
.qh-fp span { display: block; font-family: var(--qh-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--qh-dim); }
.qh-fp div.f span { color: var(--qh-green); }
.qh-fp div.p { border-color: rgba(255,184,0,0.45); } .qh-fp div.p span { color: #FFD27A; }
.qh-fp b { font-weight: 600; font-size: 16px; }
.qh-modes { display: flex; flex-direction: column; }
.qh-modes a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; font-weight: 600; }
.qh-modes a:hover { background: var(--qh-card2); }
.qh-modes a.locked { color: var(--qh-dim); }
.qh-modes svg { color: var(--qh-dim); }

/* engine */
.qh-engine { border-radius: 22px; overflow: hidden; border: 1px solid rgba(124, 170, 255, 0.35); background: radial-gradient(ellipse at 15% 0%, #1B2F57 0%, #0D1526 55%, var(--qse-app-bg) 100%); padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 28px; }
.qh-engine .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.qh-engine .eyebrow { font-family: var(--qh-mono); font-size: 13px; letter-spacing: 0.18em; color: var(--bs-link-color); font-weight: 600; }
.qh-engine h2 { margin-top: 8px; font-size: clamp(40px, 4.4vw, 72px); }
.qh-engine .top p { margin: 0; flex: 1 1 380px; max-width: 56ch; color: var(--qh-dim2); font-size: 19px; }
.qh-engine .cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.qh-engine .cell { border-radius: 16px; background: rgba(8, 14, 26, 0.7); border: 1px solid var(--qse-border); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.qh-engine .cell h3 { font-size: 28px; }
.qh-engine .cell p { margin: 0; color: var(--qh-dim2); }
.qh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.qh-tags span { font-family: var(--qh-mono); font-size: 12px; padding: 4px 9px; border-radius: 6px; background: rgba(124, 170, 255, 0.12); color: #CFE0FF; }
.qh-tags b { font-size: 13px; color: var(--qh-dim); font-weight: 600; width: 100%; margin-top: 4px; }
.qh-proofs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.qh-proof { font-family: var(--qh-disp); font-size: 54px; font-weight: 900; line-height: 1; color: var(--qh-amber); }
.qh-proof small { font-family: var(--qh-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--qh-dim); display: block; margin-top: 6px; font-weight: 600; }
.qh-engine .note { font-size: 13px; color: var(--qh-dim); }

/* premium deal + plans */
.qh-deal { border-radius: 22px; padding: clamp(24px, 3vw, 44px); background: linear-gradient(135deg, #172743 0%, #0F1828 100%); border: 1px solid rgba(255,184,0,0.45); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.qh-deal .say { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.qh-deal h2 { font-size: clamp(40px, 4.2vw, 68px); line-height: 0.9; }
.qh-deal .say p { margin: 0; color: var(--qh-dim2); font-size: 19px; max-width: 46ch; }
.qh-deal .say p b { color: var(--qh-fg); }
.qh-deal .math { flex: 1.1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.qh-bars { display: flex; flex-direction: column; gap: 14px; }
.qh-bar-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 14px; align-items: center; }
.qh-bar-row .lab { font-size: 15px; color: var(--qh-dim2); }
.qh-bar-row .lab b { display: block; color: var(--qh-fg); font-size: 16px; }
.qh-bar-track { height: 44px; border-radius: 10px; background: rgba(255,255,255,0.04); }
.qh-bar-fill { height: 100%; border-radius: 10px; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; font-family: var(--qh-disp); font-weight: 900; font-size: 22px; min-width: 96px; font-variant-numeric: tabular-nums; }
.qh-bar-fill.sep { background: #3A4A66; color: #FFFFFF; }
.qh-bar-fill.prem { background: var(--qh-amber); color: var(--qse-on-accent); }
.qh-save { font-family: var(--qh-mono); font-size: 13px; letter-spacing: 0.1em; color: #FFD27A; }
.qh-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.qh-planc { border-radius: 18px; padding: 26px; background: var(--qh-card); border: 1px solid var(--qh-line); display: flex; flex-direction: column; gap: 12px; }
.qh-planc.best { border-color: var(--qh-amber); box-shadow: 0 0 0 1px var(--qh-amber) inset; }
.qh-planc .tier { font-family: var(--qh-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--qh-amber); }
.qh-planc h3 { font-size: 36px; }
.qh-planc .price { font-family: var(--qh-disp); font-size: 40px; font-weight: 700; line-height: 1; }
.qh-planc .price small { font-family: inherit; font-size: 15px; color: var(--qh-dim); font-weight: 500; }
.qh-planc ul { margin: 0; padding-left: 20px; color: var(--qh-dim2); display: flex; flex-direction: column; gap: 6px; }
.qh-planc ul b { color: var(--qh-fg); }
.qh-planc .qh-btn { margin-top: auto; }

/* member */
/* The member home is a task surface, not a marketing scroll. Keep the hierarchy, but remove
   repeated vertical bands so the active game and channels arrive sooner. */
.qh-member .qh-sec { padding-block: 44px 20px; }
.qh-mhero .qh-wrap { padding-block: 34px 30px; gap: 36px; align-items: flex-end; }
.qh-mhero .qh-hero-copy { gap: 14px !important; }
.qh-member-welcome { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.qh-member-welcome .qh-plan-badge { flex-shrink: 0; }
.qh-mhero #qh-h { font-size: clamp(42px, 4.4vw, 70px); }
.qh-mhero .qh-card { padding: clamp(18px, 1.8vw, 26px); gap: 14px; }
.qh-card { background: rgba(14, 22, 38, 0.88); border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; padding: clamp(20px, 2.2vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.qh-card h2 { font-size: clamp(30px, 3vw, 46px); }
.qh-card .sub { margin: 0; color: var(--qh-dim2); font-size: 18px; }
.qh-allow { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--qh-line); border-radius: 14px; overflow: hidden; }
.qh-allow > div { padding: 16px; background: var(--qh-bar); display: flex; flex-direction: column; gap: 4px; }
.qh-allow .h { font-family: var(--qh-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--qh-dim); }
.qh-allow .big { font-family: var(--qh-disp); font-size: 40px; font-weight: 900; line-height: 1; color: var(--qh-amber); }
.qh-allow .big.used { color: var(--qh-dim); }
.qh-allow small { color: var(--qh-dim2); font-size: 14px; }
.qh-upnext { display: flex; flex-direction: column; gap: 10px; }
.qh-upnext h2 { font-family: var(--qh-disp); font-size: 22px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--qh-dim2); margin: 0 0 2px; }
.qh-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--qh-card); border: 1px solid var(--qh-line); }
.qh-item:hover { border-color: var(--qh-line2); }
.qh-item .th { width: 76px; height: 54px; border-radius: 10px; background-size: cover; background-position: center; flex-shrink: 0; background-color: var(--qse-surface); }
.qh-item .t { flex: 1; min-width: 0; } .qh-item .t b { display: block; } .qh-item .t span { color: var(--qh-dim); font-size: 15px; }
.qh-plan-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--qh-line2); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; align-self: flex-start; }
.qh-plan-badge i { width: 9px; height: 9px; border-radius: 999px; background: var(--qh-amber); }
.qh-band { border-radius: 20px; padding: clamp(22px, 2.6vw, 36px); background: var(--qh-card); border: 1px solid var(--qh-amber); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.qh-band h2 { font-size: clamp(30px, 2.8vw, 44px); }
.qh-band p { margin: 6px 0 0; color: var(--qh-dim2); max-width: 60ch; }

/* Contested Ground (Also from QSE Games) */
.qh-cg { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid rgba(255,255,255,0.12); background: #12110D; isolation: isolate; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; padding: clamp(24px, 3vw, 40px); }
.qh-cg svg.hexes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.5; }
.qh-cg .from { font-family: var(--qh-mono); font-size: 12px; letter-spacing: 0.16em; color: #C9B98F; }
.qh-cg h2 { margin: 6px 0 8px; font-size: clamp(36px, 3.6vw, 56px); letter-spacing: 0.04em; color: #F2EBDA; }
.qh-cg p { margin: 0; color: #CFC6B0; max-width: 60ch; }
.qh-cg .engine-line { margin-top: 10px; font-family: var(--qh-mono); font-size: 12px; letter-spacing: 0.12em; color: #C9B98F; font-weight: 600; }
.qh-cg .acct { margin-top: 10px; color: #E9DFC6; font-weight: 600; font-size: 15px; }
.qh-cg .qh-btn { background: #E9DFC6; color: #1A1710 !important; }
.qh-cgstrip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 14px; background: #12110D; border: 1px solid var(--qse-border); color: #CFC6B0; }
.qh-cgstrip b { color: #F2EBDA; font-family: var(--qh-disp); font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.qh-cgstrip a { color: #E9DFC6; font-weight: 700; }

.qh-final { background: var(--qh-amber); color: var(--qse-on-accent); }
.qh-final .qh-wrap { padding-block: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.qh-final h2 { font-size: clamp(40px, 4vw, 60px); color: var(--qse-on-accent); }
.qh-final .dk { display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px; border-radius: 10px; background: var(--qse-on-accent); color: var(--qh-amber) !important; font-weight: 700; font-size: 18px; }   /* accent on its own ink: was fixed white, blank in Light themes (2026-10-12) */
.qh-final .ol { display: inline-flex; align-items: center; min-height: 56px; padding: 0 24px; border-radius: 10px; border: 2px solid var(--qse-on-accent); color: var(--qse-on-accent) !important; font-weight: 700; font-size: 18px; }
.qh-admin { padding-block: 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 767.98px) {
    .qh-hero .qh-wrap { padding-block: 32px 40px; gap: 28px; }
    .qh-rail { position: static; flex-basis: 100%; }
    .qh-bar-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .qh * { transition: none !important; } }

/* an alert above the page (welcome, admin preview bar) keeps its space */
.alert + .qh { margin-top: 0; }
.qh [tabindex="-1"]:focus { outline: none; }

/* Pricing page (Billing/Pricing.razor). */
.qh-price-hero .qh-wrap { padding-block: 48px 40px; }
.qh-price-hero h1 { font-size: clamp(44px, 5vw, 84px); }
.qh-seg { display: inline-flex; align-self: flex-start; padding: 4px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid var(--qh-line); gap: 4px; flex-wrap: wrap; }
.qh-seg button { min-height: 44px; padding: 0 18px; border-radius: 9px; border: 0; background: none; color: var(--qh-dim2); font-weight: 700; font-size: 15px; cursor: pointer; }
.qh-seg button[aria-pressed="true"] { background: var(--qh-amber); color: var(--qse-on-accent); }
.qh-note { margin: 0 0 8px; padding: 12px 16px; border-radius: 12px; background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(125, 211, 252, 0.35); color: var(--qh-fg); }
.qh-planc h2 { font-size: 36px; margin: 0; }
.qh-current { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(74, 222, 128, 0.14); color: var(--qh-green); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
.qh-current i, .qh-sportpick .qh-btn i { width: 28px; height: 20px; border-radius: 4px; flex-shrink: 0; }
.qh-sportpick { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.qh-sportpick .qh-btn { justify-content: flex-start; min-height: 48px; }
.qh-guide tbody th { font-family: inherit; font-size: 16px; letter-spacing: 0; color: var(--qh-fg); font-weight: 600; background: transparent; padding: 16px 18px; }
.qh-price-cmp table { min-width: 720px; }

/* 2026-11-16: "Everything a league needs, in one plan" (Pricing.razor, PlanValue) - a three-column table on wider screens;
   on phones each row becomes a card (topic, then the traditional way, then QSE's) so nothing scrolls sideways. */
.qh-value table { min-width: 0; table-layout: fixed; }
.qh-value thead th:first-child { width: 18%; }
.qh-value td.usual { color: var(--qh-dim); }
.qh-value td.qse { color: var(--qh-fg); font-weight: 600; }
@media (max-width: 767.98px) {
    .qh-value table, .qh-value tbody, .qh-value tr, .qh-value th, .qh-value td { display: block; width: auto; }
    .qh-value thead { display: none; }
    .qh-value tr { padding: 12px 16px; border-bottom: 1px solid var(--qh-line); }
    .qh-value tr:last-child { border-bottom: 0; }
    .qh-value tbody th { padding: 0 0 6px; }
    .qh-value td { padding: 2px 0; border-bottom: 0; }
    .qh-value td::before { content: attr(data-label) ": "; font-family: var(--qh-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--qh-dim); font-weight: 600; }
}

/* Season Passes row (member home, desktop). */
.qh-passes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.qh-pass { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--qh-card); border: 1px solid var(--qh-line); color: var(--qh-fg); text-decoration: none; min-width: 0; }
.qh-pass:hover { border-color: var(--qh-amber); }
.qh-pass i { width: 72px; height: 52px; border-radius: 8px; flex-shrink: 0; }
.qh-pass b { display: block; font-family: var(--qh-disp); font-weight: 900; font-size: 22px; text-transform: uppercase; line-height: 1.05; }
.qh-pass small { display: block; color: var(--qh-dim); font-size: 14px; }

/* Phone home (HomePage/HomePhone.razor, 2026-10-10): the prototype's compact phone screens replace the stacked desktop sections. */
.qh-ph { display: none; }
@media (max-width: 767.98px) {
    .qh-desk { display: none; }
    .qh-ph { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 24px; }
    .qh-ph #qh-ph-h { margin: 0; }
    .qh-ph-v #qh-ph-h { font-size: 38px; line-height: 0.92; }
    .qh-pwr.sm { font-size: 10px; padding: 5px 10px 5px 8px; }
    .qh-ph-lede { margin: 0; color: var(--qh-dim2); font-size: 15px; }
    .qh-ph-list { display: flex; flex-direction: column; border-radius: 14px; background: var(--qh-card); border: 1px solid var(--qh-line); overflow: hidden; }
    .qh-ph-list > a, .qh-ph-list > .nx { display: flex; align-items: center; gap: 12px; padding: 9px 12px; min-height: 60px; border-bottom: 1px solid var(--qh-line); color: var(--qh-fg); text-decoration: none; }
    .qh-ph-list > :last-child { border-bottom: 0; }
    .qh-ph-list i { width: 56px; height: 42px; border-radius: 8px; background-size: cover; background-position: center; flex-shrink: 0; }
    .qh-ph-list .t { flex: 1; min-width: 0; }
    .qh-ph-list b { display: block; font-size: 16px; }
    .qh-ph-list small { display: block; color: var(--qh-dim); font-size: 13px; }
    .qh-ph-list small.f { color: var(--qh-green); }
    .qh-ph-list small.u { color: var(--qh-dim); }
    .qh-ph-list .qh-ic { color: var(--qh-dim); }
    .qh-ph-list > .nx { background: rgba(255, 184, 0, 0.06); }
    .qh-ph-list > .nx b { color: #FFD27A; }
    .qh-ph-deal { border-radius: 14px; padding: 12px 14px; background: linear-gradient(135deg, #172743 0%, #0F1828 100%); border: 1px solid rgba(255, 184, 0, 0.45); display: flex; align-items: center; gap: 12px; color: var(--qh-fg); text-decoration: none; }
    .qh-ph-deal b { display: block; font-family: var(--qh-disp); font-weight: 900; font-size: 20px; text-transform: uppercase; line-height: 1.1; }
    .qh-ph-deal small { color: var(--qh-dim2); font-size: 13px; }
    .qh-ph-deal .p { margin-left: auto; font-family: var(--qh-disp); font-size: 26px; font-weight: 900; color: var(--qh-amber); white-space: nowrap; }
    .qh-ph-tri { border-radius: 14px; padding: 16px; background: #1A1530; border: 1px solid rgba(167, 139, 250, 0.35); display: flex; flex-direction: column; gap: 8px; }
    .qh-ph-tri .lab { margin: 0; font-family: var(--qh-mono); font-size: 11px; letter-spacing: 0.14em; color: #C4B5FD; font-weight: 600; }
    .qh-ph-tri h2 { margin: 0; font-size: 20px; font-weight: 700; }
    .qh-ph-tri a { color: #C4B5FD; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
    .qh-ph-dock { position: sticky; bottom: 0; z-index: 5; margin: 4px -16px -24px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--qh-line); background: var(--qh-bar); }
    .qse-topbar-shell:has(.qt-tabs) .qh-ph-dock { bottom: calc(65px + env(safe-area-inset-bottom, 0px)); padding-bottom: 12px; } /* tab bar: 56 + 2×4 padding + 1 border */
    .qh-ph-dock .qh-btn { width: 100%; min-height: 54px; }
    .qh-ph-dock p { margin: 0; text-align: center; color: var(--qh-dim); font-size: 14px; }
    .qh-ph-dock p a { color: var(--qh-amber); font-weight: 700; }
    .qh-ph-card { border-radius: 16px; padding: 14px 16px; background: var(--qh-card); border: 1px solid var(--qh-line); display: flex; flex-direction: column; gap: 10px; }
    .qh-ph-card #qh-ph-h, .qh-ph-res #qh-ph-h { font-family: var(--qh-disp); font-weight: 900; text-transform: uppercase; line-height: 1; }
    .qh-ph-card #qh-ph-h { font-size: 26px; }
    .qh-ph-card .qh-btn, .qh-ph-res .qh-btn { width: 100%; }
    .qh-ph-allow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .qh-ph-allow div { padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); text-align: center; min-width: 0; }
    .qh-ph-allow b { display: block; font-family: var(--qh-disp); font-size: 28px; line-height: 1; color: var(--qh-amber); }
    .qh-ph-allow b.used { color: var(--qh-dim); }
    .qh-ph-allow small { font-size: 12px; color: var(--qh-dim); }
    .qh-ph-res { position: relative; border-radius: 16px; overflow: hidden; isolation: isolate; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 196px; justify-content: flex-end; background: radial-gradient(ellipse at 30% 30%, #17263F 0%, #060C16 72%); }
    .qh-ph-res img { position: absolute; right: -6%; top: -4%; height: 112%; width: auto; z-index: -1; }
    .qh-ph-res::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,12,22,0.95) 0%, rgba(6,12,22,0.6) 55%, rgba(6,12,22,0) 100%); }
    .qh-ph-res #qh-ph-h { font-size: 30px; }
    .qh-ph-res p { margin: 0; color: #D3DAE6; font-size: 14px; max-width: 22ch; }
}

/* Play anywhere (HomePage/HomeAnywhere.razor, 2026-10-11): phone + browser + the coming Windows desktop app. */
.qh-any { border-radius: 22px; border: 1px solid rgba(134, 239, 172, 0.3); background: radial-gradient(ellipse at 85% 0%, #123A2E 0%, #0D1A1C 55%, var(--qse-app-bg) 100%); padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 28px; }
.qh-any .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.qh-any .eyebrow { font-family: var(--qh-mono); font-size: 13px; letter-spacing: 0.18em; color: var(--qh-green); font-weight: 600; }
.qh-any h2 { margin-top: 8px; font-size: clamp(40px, 4.4vw, 72px); }
.qh-any .top p { margin: 0; flex: 1 1 380px; max-width: 56ch; color: var(--qh-dim2); font-size: 19px; }
.qh-any .cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.qh-any .cell { border-radius: 16px; background: rgba(8, 14, 26, 0.7); border: 1px solid var(--qse-border); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.qh-any .cell.soon { border-color: rgba(255, 184, 0, 0.45); }
.qh-any .cell h3 { font-size: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.qh-any .cell h3 .qh-pill { font-family: var(--qh-mono); font-size: 12px; }
.qh-any .cell p { margin: 0; color: var(--qh-dim2); }
.qh-any .note { margin-top: auto; font-size: 14px; font-weight: 700; color: #FFD27A; }
.qh-ic.big { width: 34px; height: 34px; stroke-width: 1.6; color: var(--qh-green); }
.qh-any .cell.soon .qh-ic.big { color: var(--qh-amber); }
.qh-anystrip { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 14px; background: var(--qh-card); border: 1px solid rgba(255, 184, 0, 0.35); color: var(--qh-dim2); }
.qh-anystrip .qh-ic { width: 26px; height: 26px; color: var(--qh-amber); }
.qh-anystrip b { color: var(--qh-fg); margin-right: 6px; }

/* Dark panels in Light themes (2026-10-12). These panels paint fixed dark backgrounds (gradients, photos, game
   mock-ups) in every theme, but their text came from the theme, so a Light theme put dark ink on them. They carry
   QSE Dark's text tokens; in Light themes they also take QSE Dark's accent and link colours, since a Light theme's
   accent is a dark shade meant for a light page. The --qh-* aliases are re-declared so they resolve here. */
.qh-gp, .qh-engine, .qh-any, .qh-deal, .qh-card, .qh-tri, .qh-soon, .qh-ph-deal, .qh-ph-tri, .qh-ph-res {
    --qse-text: #EEF2F8; --qse-text-muted: #A6B1C4; --qse-border: rgba(255,255,255,0.10); --qse-border-strong: rgba(255,255,255,0.30);
    --qse-app-bg: #0B1220; --qse-surface: #121B2E; --qse-surface-2: #1A2742;
    --qh-fg: var(--qse-text); --qh-dim: var(--qse-text-muted); --qh-dim2: var(--qse-text); --qh-line: var(--qse-border); --qh-line2: var(--qse-border-strong);
    --qh-bar: var(--qse-surface); --qh-card: var(--qse-surface); --qh-card2: var(--qse-surface-2);
}
/* .qh prefix: outranks `.qh a { color: inherit }` for the panels that are links (the phone Premium row). */
.qh :is(.qh-gp, .qh-engine, .qh-any, .qh-deal, .qh-card, .qh-tri, .qh-soon, .qh-ph-deal, .qh-ph-tri, .qh-ph-res) { color: var(--qh-fg); }
html[data-bs-theme="light"] :is(.qh-gp, .qh-engine, .qh-any, .qh-deal, .qh-card, .qh-tri, .qh-soon, .qh-ph-deal, .qh-ph-tri, .qh-ph-res) {
    --qse-accent: #FFB800; --qse-on-accent: #111111; --qse-positive: #86EFAC; --qse-focus: #9CC2FF; --bs-link-color: #9CC2FF;
    --qh-amber: var(--qse-accent); --qh-amber-fg: var(--qse-on-accent); --qh-blue: var(--bs-link-color); --qh-green: var(--qse-positive);
}
/* Status pills and the Season Pass label were light-on-light in Light themes (>= 4.5:1 on all five Light pages). */
html[data-bs-theme="light"] .qh-p-next { background: rgba(217, 154, 0, 0.16); color: #6B4E00; }
html[data-bs-theme="light"] .qh-p-left { background: rgba(2, 132, 199, 0.12); color: #075985; }
html[data-bs-theme="light"] .qh-p-pro, html[data-bs-theme="light"] .qh-p-used { background: rgba(0, 0, 0, 0.06); }
html[data-bs-theme="light"] .qh-fp div.p span, html[data-bs-theme="light"] .qh-ph-list > .nx b { color: #6B4E00; }
html[data-bs-theme="light"] :is(.qh-gp, .qh-engine, .qh-any, .qh-deal, .qh-card, .qh-tri, .qh-soon, .qh-ph-deal, .qh-ph-tri, .qh-ph-res) .qh-p-next { background: rgba(255, 184, 0, 0.14); color: #FFD27A; }
html[data-bs-theme="light"] :is(.qh-gp, .qh-engine, .qh-any, .qh-deal, .qh-card, .qh-tri, .qh-soon, .qh-ph-deal, .qh-ph-tri, .qh-ph-res) .qh-p-left { background: rgba(56, 189, 248, 0.14); color: #7DD3FC; }
