/* Variant 1 — Book */
.dq { --row: 44px; background: var(--gray-1); color: var(--gray-12); font-family: var(--font-ui); font-size: 14px; line-height: 1.45; min-height: 100dvh; }
.dq * { box-sizing: border-box; }
.dq a:not(.dq-btn) { color: inherit; }
.dq a { text-decoration: none; }
.dq h1, .dq h2, .dq h3, .dq p { margin: 0; }
.dq button { font: inherit; }
.dq :focus-visible { outline: 2px solid var(--gray-12); outline-offset: 2px; }
.dq button, .dq a, .dq input { touch-action: manipulation; }
.dq [id] { scroll-margin-top: 72px; }

.dq-skip { position: absolute; left: 16px; top: -48px; padding: 8px 12px; background: var(--brand); color: var(--brand-ink); border-radius: var(--radius-md); z-index: 20; font-weight: 600; }
.dq-skip:focus { top: 8px; }

/* top bar */
.dq-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; height: 56px; padding: 0 20px; background: var(--gray-2); border-bottom: var(--hairline) solid var(--border); }
.dq-logo { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.01em; text-transform: uppercase; color: var(--gray-12); white-space: nowrap; }
.dq-crown { color: var(--brand); font-size: 22px; line-height: 1; }
.dq-nav { display: flex; gap: 2px; align-self: stretch; }
.dq-nav a { display: inline-flex; align-items: center; padding: 0 10px; color: var(--gray-11); font-weight: 500; white-space: nowrap; transition: color var(--dur-hover) ease-out; }
.dq-nav a[aria-current] { color: var(--gray-12); box-shadow: inset 0 -2px 0 var(--brand); }
.dq-acct { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.dq-balance { color: var(--gray-11); font-size: 13px; white-space: nowrap; }
.dq-balance b { color: var(--gray-12); font-variant-numeric: tabular-nums; }

/* buttons */
.dq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color var(--dur-hover) ease-out, box-shadow var(--dur-hover) ease-out, scale var(--dur-hover) ease-out; }
.dq-btn:active { scale: 0.97; }
.dq-btn-primary { background: var(--brand); color: var(--brand-ink); }
.dq-btn-primary:disabled { background: var(--gray-4); color: var(--gray-8); cursor: not-allowed; scale: 1; }
.dq-btn-ghost { background: transparent; color: var(--gray-12); box-shadow: var(--ring); }
.dq-wide { width: 100%; height: 44px; font-size: 15px; }
.dq-link { background: none; border: 0; padding: 4px 0; color: var(--gray-11); cursor: pointer; font-size: 13px; }

/* category chips */
.dq-cats { display: flex; gap: 6px; padding: 10px 20px; overflow-x: auto; scrollbar-width: none; border-bottom: var(--hairline) solid var(--border); background: var(--gray-1); }
.dq-cats::-webkit-scrollbar { display: none; }
.dq-chip { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--gray-3); color: var(--gray-11); font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background-color var(--dur-hover) ease-out, color var(--dur-hover) ease-out; }
.dq-chip[aria-selected="true"] { background: var(--gray-12); color: var(--gray-1); }
.dq-chip-sm { height: 28px; padding: 0 10px; font-variant-numeric: tabular-nums; }

/* grid */
.dq-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 340px; gap: 16px; align-items: start; max-width: 1360px; margin: 0 auto; padding: 16px 20px 32px; }
.dq-rail-h { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-9); padding: 12px 8px 6px; }
.dq-rail-h:first-child { padding-top: 4px; }
.dq-rail-row { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; border-radius: var(--radius-md); transition: background-color var(--dur-hover) ease-out; }
.dq-rail-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.dq-rail-meta { font-size: 12px; color: var(--gray-9); font-variant-numeric: tabular-nums; }
.dq-rail-link { display: block; padding: 7px 8px; border-radius: var(--radius-md); color: var(--gray-11); }
.dq-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-6); }
.dq-dot.live { background: var(--danger); box-shadow: 0 0 0 3px oklch(0.70 0.18 25 / 0.2); }

/* main */
.dq-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dq-sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.dq-sec-h h2 { font-size: 16px; font-weight: 600; }
.dq-sec-h a { font-size: 13px; color: var(--gray-11); }
.dq-boost-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.dq-boost { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius-lg); background: var(--gray-2); box-shadow: var(--ring); }
.dq-boost h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; }
.dq-boost p { color: var(--gray-11); font-size: 13px; text-wrap: pretty; }
.dq-boost-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.dq-boost-odds { font-variant-numeric: tabular-nums; }
.dq-boost-odds s { color: var(--gray-9); font-size: 13px; }
.dq-boost-odds b { color: var(--gold); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.dq-tag { align-self: flex-start; padding: 3px 7px; border-radius: var(--radius-sm); background: oklch(0.85 0.155 88 / 0.14); color: var(--gold); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.dq-streamer { border-radius: var(--radius-lg); background: var(--gray-2); box-shadow: var(--ring); overflow: hidden; }
.dq-streamer-h { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.dq-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: oklch(0.45 0.12 var(--hue)); color: oklch(0.97 0.02 var(--hue)); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }
.dq-streamer-t { flex: 1; min-width: 0; }
.dq-streamer-t h2 { font-size: 16px; font-weight: 600; }
.dq-streamer-t p { font-size: 12px; color: var(--gray-9); }
.dq-live { padding: 3px 8px; border-radius: var(--radius-sm); background: var(--danger); color: oklch(0.99 0.01 25); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.dq-sched { padding: 3px 8px; border-radius: var(--radius-sm); background: var(--gray-4); color: var(--gray-11); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.dq-cols, .dq-market { display: grid; grid-template-columns: minmax(0, 1fr) 124px 124px; gap: 8px; align-items: center; padding: 0 14px; }
.dq-cols { height: 28px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-9); border-top: var(--hairline) solid var(--border); }
.dq-cols span:not(:first-child) { text-align: center; }
.dq-market { min-height: 52px; padding-block: 5px; border-top: var(--hairline) solid var(--border); }
.dq-market-t { font-size: 14px; color: var(--gray-12); text-wrap: pretty; }
.dq-odds { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: var(--row); padding: 0 8px; border: 0; border-radius: 6px; background: var(--gray-3); color: var(--gray-12); cursor: pointer; transition: background-color var(--dur-hover) ease-out, color var(--dur-hover) ease-out, scale var(--dur-hover) ease-out; }
.dq-odds:active { scale: 0.97; }
.dq-odds-label { font-size: 12px; color: var(--gray-11); }
.dq-odds-num { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--brand); }
.dq-odds[aria-pressed="true"] { background: var(--brand); }
.dq-odds[aria-pressed="true"] .dq-odds-label, .dq-odds[aria-pressed="true"] .dq-odds-num { color: var(--brand-ink); }

/* slip */
.dq-slip { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--radius-lg); background: var(--gray-2); box-shadow: var(--ring); max-height: calc(100dvh - 88px); overflow: auto; }
.dq-slip-h { display: flex; align-items: center; justify-content: space-between; }
.dq-slip-h h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.dq-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dq-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 8px; background: var(--gray-1); }
.dq-tab { flex: 1; height: 30px; border: 0; border-radius: 5px; background: transparent; color: var(--gray-9); font-weight: 500; cursor: pointer; }
.dq-tab[aria-selected="true"] { background: var(--gray-3); color: var(--gray-12); }
.dq-tab:disabled { cursor: not-allowed; }
.dq-empty { padding: 20px 8px; text-align: center; color: var(--gray-9); font-size: 13px; text-wrap: pretty; }
.dq-empty-t { color: var(--gray-12); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.dq-legs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; overflow: auto; max-height: calc(100dvh - 460px); min-height: 120px; scrollbar-width: thin; }
.dq-leg { display: flex; gap: 8px; padding: 10px 10px 10px 12px; border-radius: 8px; background: var(--gray-1); border-inline-start: 3px solid var(--brand); }
.dq-leg-main { flex: 1; min-width: 0; }
.dq-leg-top { display: flex; justify-content: space-between; gap: 8px; }
.dq-leg-odds { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--brand); }
.dq-leg-title { font-size: 12px; color: var(--gray-11); text-wrap: pretty; overflow-wrap: anywhere; }
.dq-leg-who { font-size: 12px; color: var(--gray-9); }
.dq-x { position: relative; flex: none; width: 28px; height: 28px; margin: -4px -4px 0 0; border: 0; border-radius: 6px; background: transparent; color: var(--gray-9); font-size: 18px; line-height: 1; cursor: pointer; transition: background-color var(--dur-hover) ease-out, color var(--dur-hover) ease-out; }
.dq-x::before { content: ""; position: absolute; inset: -6px; }
.dq-hint { font-size: 12px; color: var(--gold); }
.dq-stake-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dq-stake-row label { font-weight: 500; }
.dq-stake-wrap { display: flex; align-items: center; gap: 4px; width: 140px; height: 40px; padding: 0 10px; border-radius: 8px; background: var(--gray-1); border: 1px solid var(--gray-5); color: var(--gray-9); transition: border-color var(--dur-hover) ease-out; }
.dq-stake-wrap:focus-within { border-color: var(--gray-12); }
.dq-stake { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--gray-12); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: end; -moz-appearance: textfield; }
.dq-stake:focus { outline: none; }
.dq-stake::-webkit-outer-spin-button, .dq-stake::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dq-quick { display: flex; gap: 6px; }
.dq-totals { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: var(--hairline) solid var(--border); }
.dq-tot { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.dq-tot b { font-weight: 600; }
.dq-tot-dim { color: var(--gray-9); font-size: 12px; }
.dq-error { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; background: oklch(0.70 0.18 25 / 0.12); color: oklch(0.88 0.1 25); font-size: 13px; }
.dq-error span { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: oklch(0.99 0 0); font-size: 11px; font-weight: 700; }
.dq-fine { font-size: 11px; color: var(--gray-8); text-align: center; text-wrap: pretty; }
.dq-place[aria-busy="true"] { color: var(--gray-11); }

.dq-ticket { display: flex; flex-direction: column; gap: 6px; padding: 16px 12px; text-align: center; border-radius: 8px; background: var(--gray-1); }
.dq-ticket-check { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 4px; border-radius: 50%; background: var(--gray-12); color: var(--gray-1); font-size: 20px; font-weight: 700; }
.dq-ticket h3 { font-size: 16px; font-weight: 600; }
.dq-ticket-id { color: var(--gray-11); font-size: 13px; }
.dq-ticket-id b { font-family: var(--font-mono); color: var(--gray-12); }
.dq-ticket-dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 8px 0; padding: 10px 0; border-block: var(--hairline) solid var(--border); font-size: 13px; text-align: start; }
.dq-ticket-dl dt { color: var(--gray-9); }
.dq-ticket-dl dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: end; }
.dq-ticket-note { font-size: 12px; color: var(--gray-9); margin-bottom: 6px; }

/* footer */
.dq-foot { padding: 24px 20px 96px; border-top: var(--hairline) solid var(--border); background: var(--gray-2); }
.dq-foot-in { max-width: 1360px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.dq-foot p { font-size: 11px; line-height: 1.5; color: var(--gray-8); max-width: 90ch; }

@media (max-width: 1100px) {
  .dq-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .dq-left { display: none; }
}
@media (max-width: 760px) {
  .dq-nav { display: none; }
  .dq-grid { grid-template-columns: minmax(0, 1fr); padding-inline: 12px; }
  .dq-slip { position: static; max-height: none; order: -1; }
  .dq-cols, .dq-market { grid-template-columns: minmax(0, 1fr) 96px 96px; padding-inline: 10px; }
}
@media (pointer: coarse) { .dq { --row: 48px; } .dq-x { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .dq * { transition: none !important; animation: none !important; } }

/* hover only where a real pointer exists */
@media (hover: hover) and (pointer: fine) {
  .dq-nav a:hover { color: var(--gray-12); }
  .dq-btn-primary:hover { background: var(--brand-hover); }
  .dq-btn-ghost:hover { background: var(--gray-3); box-shadow: var(--ring-hover); }
  .dq-link:hover { color: var(--gray-12); text-decoration: underline; text-underline-offset: 3px; }
  .dq-chip:hover { background: var(--gray-4); color: var(--gray-12); }
  .dq-rail-row:hover { background: var(--gray-3); }
  .dq-rail-link:hover { background: var(--gray-3); color: var(--gray-12); }
  .dq-sec-h a:hover { color: var(--gray-12); text-decoration: underline; text-underline-offset: 3px; }
  .dq-odds:hover { background: var(--gray-4); }
  .dq-x:hover { background: var(--gray-3); color: var(--gray-12); }
  .dq-stake-wrap:hover { border-color: var(--gray-6); }
}

/* ---- hero (from the Pregame direction, set in the Book's palette) ---- */
.dq-hero { padding: 48px 20px 40px; border-bottom: var(--hairline) solid var(--border); }
.dq-hero-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr); gap: 40px; align-items: center; max-width: 1360px; margin: 0 auto; }
.dq-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-9); }
.dq-hero h1 { margin-top: 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 7vw, 96px); line-height: 0.92; letter-spacing: -0.02em; text-transform: uppercase; text-wrap: balance; color: var(--gray-12); }
.dq-stand { margin-top: 16px; max-width: 56ch; font-size: 17px; line-height: 1.5; color: var(--gray-11); text-wrap: pretty; }
.dq-offer { display: flex; flex-direction: column; gap: 8px; max-width: 380px; padding: 20px; border-radius: var(--radius-lg); background: var(--gray-2); box-shadow: var(--ring); justify-self: end; }
.dq-offer-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); }
.dq-offer-big { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 0.95; text-transform: uppercase; letter-spacing: -0.01em; color: var(--gray-12); }
.dq-offer-sub { color: var(--gray-11); font-size: 14px; text-wrap: pretty; }
.dq-offer-fine { font-size: 11px; line-height: 1.45; color: var(--gray-8); text-wrap: pretty; }
.dq-btn-light { background: var(--gray-12); color: var(--gray-1); }
.dq-btn-light:active { scale: 0.97; }

/* skeleton while the board loads: same heights as the loaded blocks, no shift */
.dq-skel { border-radius: var(--radius-lg); background: var(--gray-2); box-shadow: var(--ring); }
.dq-skel-boosts { height: 196px; }
.dq-skel-streamer { height: 392px; }
.dq-skel-rail { height: 320px; }
.dq-board-error { padding: 24px; border-radius: var(--radius-lg); background: var(--gray-2); box-shadow: var(--ring); color: var(--gray-11); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

@media (max-width: 900px) {
  .dq-hero { padding: 32px 16px 28px; }
  .dq-hero-in { grid-template-columns: 1fr; gap: 24px; }
  .dq-offer { max-width: none; justify-self: stretch; }
}
@media (hover: hover) and (pointer: fine) {
  .dq-btn-light:hover { background: var(--gray-11); }
}
