/* show.css - the dark theatrical "grading room" for D2LOL (owned by the Show agent).
   Everything is scoped under .dq-root so it cannot leak into the LMS page. */

@font-face { font-family: 'Special Elite'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/special-elite@5.3.0/latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Permanent Marker'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/permanent-marker@5.3.0/latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/anton@5.3.0/latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 900; font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/playfair-display@5.3.0/latin-900-italic.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 700; font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/playfair-display@5.3.0/latin-700-italic.woff2) format('woff2'); }

.dq-root {
  --red: #e11d48;
  --red-hot: #ff3b5c;
  --red-deep: #9f1239;
  --stamp: #d4122e;
  --gold: #ffcf5c;
  --ink: #1b1630;
  --paper: #fbf9f3;
  --ph: 600px;               /* paper height in px, set by JS */
  --font-type: 'Special Elite', 'Courier New', ui-monospace, monospace;
  --font-pen: 'Permanent Marker', 'Segoe Print', 'Comic Sans MS', cursive;
  --font-display: 'Anton', 'Impact', 'Arial Narrow Bold', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  position: fixed;
  inset: 0;
  z-index: 9000;
  overflow: hidden;
  color: #fff;
  background: #05060c;
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  outline: none;
}
.dq-root[hidden] { display: none; }
.dq-root *, .dq-root *::before, .dq-root *::after { box-sizing: border-box; }
.dq-root button { font-family: inherit; }

/* ---------- backdrop, spotlight, dust ---------- */
.dq-bg { position: absolute; inset: 0; background: radial-gradient(120% 95% at 28% 38%, #1c2350 0%, #0c1126 46%, #04050b 100%); }
.dq-bg::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 2px, transparent 2px 4px); }
.dq-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); pointer-events: none; }
.dq-spot { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 30% 58% at 27% 50%, rgba(var(--sc), .36), rgba(var(--sc), .13) 55%, transparent 80%),
    radial-gradient(ellipse 26% 48% at 76% 60%, rgba(var(--sc), .20), transparent 72%); }
.dq-spot.cool { --sc: 190, 205, 255; }
.dq-spot.gold { --sc: 255, 190, 84; }
.dq-spot.red { --sc: 255, 54, 70; }
.dq-dust { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dq-dust i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.55); filter: blur(.6px); opacity: .0; }

/* ---------- the shaken content layer ---------- */
.dq-shake { position: absolute; inset: 0; display: grid; grid-template-rows: 54px minmax(0, 1fr) clamp(130px, 22vh, 210px); will-change: transform; }

.dq-top { display: flex; align-items: center; gap: 14px; padding: 0 22px; position: relative; z-index: 5; }
.dq-brand { display: flex; align-items: baseline; gap: 12px; }
.dq-logo { font-family: var(--font-display); font-size: 26px; letter-spacing: .06em; color: #fff; }
.dq-logo b { color: var(--red-hot); font-weight: 400; }
.dq-course { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.dq-top .grow { flex: 1; }
.dq-chip { font-family: var(--font-type); font-size: 14px; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.85); opacity: 0; }
.dq-live { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: #ff8aa0; display: flex; align-items: center; gap: 8px; }
.dq-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 10px var(--red-hot); animation: dq-blink 1.1s steps(2, jump-none) infinite; }
@keyframes dq-blink { 50% { opacity: .25; } }
.dq-skip { background: transparent; color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 5px 14px; font-size: 13px; letter-spacing: .04em; cursor: pointer; opacity: 0; visibility: hidden; }
.dq-skip:hover { color: #fff; border-color: rgba(255,255,255,.55); }

.dq-queue { position: absolute; z-index: 6; top: 56px; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 12px; padding: 9px 22px 9px 16px; border-radius: 999px;
  background: linear-gradient(180deg, #ffe08a, #ffbf3d); color: #3a2400; font-weight: 800; font-size: clamp(15px, 1.6vw, 21px); letter-spacing: .01em; box-shadow: 0 8px 28px rgba(0,0,0,.5), 0 0 0 3px rgba(255,255,255,.12); white-space: nowrap; }
.dq-queue i { width: 12px; height: 12px; border-radius: 50%; background: #c0392b; animation: dq-blink .9s steps(2, jump-none) infinite; }
.dq-queue small { font-weight: 600; opacity: .72; font-size: .78em; }

/* ---------- main stage: paper | mascot + cards ---------- */
.dq-main { position: relative; z-index: 1; display: grid; grid-template-columns: 43% 57%; min-height: 0; }
.dq-left { position: relative; min-height: 0; }
.dq-paperwrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; perspective: 1400px; }

.dq-paper { position: relative; width: 480px; height: var(--ph); background: #fff; border-radius: 3px; flex: none; opacity: 0; visibility: hidden;
  box-shadow: 0 34px 70px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.25); font-size: calc(var(--ph) / 38); transform-style: preserve-3d; }
.dq-paper::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.28), transparent 38%, rgba(0,0,0,.06) 100%); border-radius: inherit; }
.dq-page { position: absolute; inset: 0; overflow: hidden; background: #fff; border-radius: 3px; }
.dq-page img { width: 100%; height: 100%; object-fit: fill; display: block; }
.dq-fake { position: absolute; inset: 0; padding: 4.4em 3.6em; color: #2b2a35; font-family: Georgia, 'Times New Roman', serif; }
.dq-fake h3 { margin: 0 0 .5em; font-size: 2.2em; line-height: 1.1; font-weight: 700; word-break: break-word; }
.dq-fake .meta { font-size: .95em; color: #8a8a96; margin-bottom: 2em; border-bottom: .12em solid #d9d9e0; padding-bottom: .8em; }
.dq-fake .ln { height: .62em; border-radius: .3em; background: #d7d9e0; margin: 0 0 .95em; }
.dq-fake .ln.h { height: 1.1em; background: #b7bbc9; width: 46%; margin: 2em 0 1em; }
.dq-fake .ln.gap { background: none; height: .5em; }

.dq-hl { position: absolute; inset: 0; pointer-events: none; }
.dq-hl-rect { position: absolute; background: rgba(255, 36, 72, .36); mix-blend-mode: multiply; border-radius: .25em; transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 .6em rgba(255,36,72,.35); }
.dq-circle { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dq-circle path { fill: none; stroke: var(--red); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 0 rgba(255,255,255,.4)); }
.dq-scan { position: absolute; left: -3%; right: -3%; top: 0; height: 3px; background: linear-gradient(90deg, transparent, #ff4d6d 12%, #fff 50%, #ff4d6d 88%, transparent); box-shadow: 0 0 14px 5px rgba(255, 60, 100, .75), 0 0 46px 14px rgba(255, 60, 100, .35); opacity: 0; z-index: 3; }
.dq-scan::after { content: ''; position: absolute; left: 3%; right: 3%; bottom: 100%; height: 90px; background: linear-gradient(0deg, rgba(255, 70, 110, .28), transparent); }
.dq-flag { position: absolute; top: -.9em; right: -1.8em; z-index: 4; font-family: var(--font-display); font-size: 1.9em; letter-spacing: .08em; color: #fff; background: var(--red); padding: .12em .6em; transform: rotate(5deg); box-shadow: 0 .3em .8em rgba(0,0,0,.45); opacity: 0; }

.dq-callouts { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.dq-co { position: absolute; width: 74%; opacity: 0; transform-origin: 50% 50%; }
.dq-co-card { background: #fffdf4; border: .22em solid var(--red); border-radius: .5em; padding: .75em 1em .8em; box-shadow: 0 .6em 1.4em rgba(0,0,0,.45); color: #a50f2d; font-family: var(--font-pen); font-size: 1.62em; line-height: 1.18; }
.dq-co-tag { position: absolute; top: -.95em; left: .9em; background: var(--red); color: #fff; font-family: var(--font-display); font-size: .95em; letter-spacing: .1em; padding: .06em .7em .02em; border-radius: .3em; box-shadow: 0 .2em .5em rgba(0,0,0,.4); }
.dq-co-arrow { position: absolute; width: 5.4em; height: 5.4em; overflow: visible; }
.dq-co-arrow path { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }

.dq-stamp { position: absolute; left: 50%; top: 40%; z-index: 8; width: 124%; transform: translate(-50%, -50%) rotate(-11deg); opacity: 0; pointer-events: none; text-align: center; color: var(--stamp);
  filter: url(#dq-rough); }
.dq-stamp-in { display: block; margin: 0 auto; width: 86%; padding: .08em .1em .14em; border: calc(var(--ph) * .012) solid currentColor; border-radius: calc(var(--ph) * .02);
  box-shadow: inset 0 0 0 calc(var(--ph) * .008) rgba(255,255,255,0), inset 0 0 0 calc(var(--ph) * .018) currentColor; background: rgba(255, 255, 255, .06); }
.dq-stamp-word { display: block; font-family: var(--font-display); font-size: calc(var(--ph) * .115); letter-spacing: .22em; padding-left: .22em; line-height: 1.1; }
.dq-stamp-grade { display: block; font-family: var(--font-display); font-size: calc(var(--ph) * .36); line-height: .95; letter-spacing: .01em; }
.dq-stamp-grade.long { font-size: calc(var(--ph) * .24); }
.dq-note { position: absolute; left: 3%; right: 3%; top: 74%; z-index: 9; font-family: var(--font-pen); font-size: calc(var(--ph) * .036); line-height: 1.25; color: #b0102d; text-align: center; transform: rotate(-2.5deg);
  background: rgba(255, 253, 244, .9); padding: .5em .8em; border-radius: .25em; box-shadow: 0 .2em .8em rgba(0,0,0,.35); opacity: 0; min-height: 2em; }
.dq-note::before { content: ''; position: absolute; left: 50%; top: -.5em; width: 5em; height: 1.1em; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 224, 138, .8); }

/* ---------- right side: mascot, ticker, exhibit, badge ---------- */
.dq-right { position: relative; min-height: 0; }
.dq-mascot-slot { position: absolute; right: 1%; bottom: 7%; width: min(52%, 470px); aspect-ratio: 580 / 550; transform-origin: 50% 100%; opacity: 0; }
.dq-halo { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.dq-halo .glow, .dq-halo .rays { position: absolute; left: 55%; top: 41%; width: 190%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; opacity: 0; }
.dq-halo .glow { width: 160%; background: radial-gradient(circle, rgba(var(--hc), .6), rgba(var(--hc), .22) 40%, transparent 68%); }
.dq-halo .rays { background: repeating-conic-gradient(from 0deg, rgba(var(--hc), .5) 0deg 7deg, transparent 7deg 22.5deg); -webkit-mask-image: radial-gradient(circle, #000 5%, transparent 66%); mask-image: radial-gradient(circle, #000 5%, transparent 66%); }
.dq-halo.gold { --hc: 255, 205, 100; }
.dq-halo.red { --hc: 255, 50, 76; }
.dq-mascot { position: relative; z-index: 1; }
.dq-mascot { width: 100%; height: 100%; }
.m-stage { position: relative; width: 100%; height: 100%; }
.m-stage > svg, .m-imgbox { position: absolute; inset: 0; }
.m-imgbox, .m-imgpop { width: 100%; height: 100%; }
.dq-mascot-svg, .dq-mascot-img { width: 100%; height: 100%; display: block; overflow: visible; object-fit: contain; filter: drop-shadow(0 22px 30px rgba(0,0,0,.55)); }
.dq-nameplate { position: absolute; left: 50%; top: 100%; margin-top: 6px; transform: translateX(-50%); z-index: 2; font-family: var(--font-display); letter-spacing: .12em; font-size: clamp(14px, 1.3vw, 19px); color: #fff; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.28); border-radius: 6px; padding: 3px 14px 2px; white-space: nowrap; opacity: 0; }
.dq-nameplate b { color: var(--red-hot); font-weight: 400; }

.dq-ticker { position: absolute; left: 1.5%; top: 7%; width: 58%; max-height: 86%; padding: 18px 22px 20px; border-radius: 12px; background: rgba(8, 10, 22, .78); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.03); font-family: var(--font-type); opacity: 0; backdrop-filter: blur(3px); }
.dq-tk-head { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .14em; color: #ff8aa0; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,.2); }
.dq-tk-head i { width: 9px; height: 9px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 8px var(--red-hot); animation: dq-blink 1s steps(2, jump-none) infinite; }
.dq-tk-head span { margin-left: auto; color: rgba(255,255,255,.45); letter-spacing: .04em; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dq-tk-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; min-height: 10.5em; overflow: hidden; font-size: clamp(15px, 1.6vw, 24px); line-height: 1.25; }
.dq-tk-lines li { display: flex; align-items: baseline; gap: 8px; color: rgba(255,255,255,.62); }
.dq-tk-lines li .lbl { white-space: nowrap; letter-spacing: .02em; }
.dq-tk-lines li .dots { flex: 1; border-bottom: 2px dotted rgba(255,255,255,.22); transform: translateY(-.25em); min-width: 14px; }
.dq-tk-lines li .val { color: #ffd166; font-weight: 700; white-space: nowrap; }
.dq-tk-lines li.stat::before { content: '\2713'; color: #5ee08a; }
.dq-tk-lines li.msg { color: rgba(255,255,255,.52); font-style: italic; }
.dq-tk-lines li.msg::before { content: '\203A'; color: var(--red-hot); }
.dq-tk-lines li.quip { color: #ff9db0; }
.dq-tk-lines li.quip::before { content: '\21B3'; color: var(--red-hot); }
.dq-tk-lines li:last-child .caret::after { content: '\258B'; margin-left: 2px; animation: dq-blink .8s steps(2, jump-none) infinite; color: #fff; }
.dq-tk-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 14px; position: relative; }
.dq-tk-bar i { position: absolute; top: 0; bottom: 0; width: 34%; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--red-hot), transparent); animation: dq-slide 1.3s ease-in-out infinite; }
@keyframes dq-slide { from { left: -34%; } to { left: 100%; } }

.dq-exhibit { position: absolute; left: 1.5%; top: 7%; width: 58%; padding: 0; opacity: 0; transform-origin: 50% 50%; z-index: 4; }
.dq-ex-card { position: relative; background: #fdf9ee; color: var(--ink); border-radius: 6px; padding: 22px 24px 20px; box-shadow: 0 30px 70px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.2); }
.dq-ex-card::before { content: ''; position: absolute; left: 24px; top: -10px; width: 90px; height: 26px; background: rgba(255,224,138,.88); transform: rotate(-4deg); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.dq-ex-tab { display: inline-block; font-family: var(--font-display); letter-spacing: .14em; font-size: clamp(22px, 2.3vw, 34px); color: #fff; background: var(--red); padding: 2px 16px 0; border-radius: 4px; transform: rotate(-2deg); box-shadow: 0 4px 12px rgba(225,29,72,.5); }
.dq-ex-where { font-family: var(--font-type); font-size: clamp(12px, 1.2vw, 17px); color: #6b6680; margin: 12px 0 8px; letter-spacing: .02em; }
.dq-ex-quote { margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: clamp(20px, 2.3vw, 33px); line-height: 1.22; color: #1d1736; }
.dq-ex-quote::before { content: '\201C'; color: var(--red); margin-right: .06em; }
.dq-ex-quote::after { content: '\201D'; color: var(--red); margin-left: .04em; }
.dq-ex-why { margin: 12px 0 0; font-family: var(--font-pen); font-size: clamp(16px, 1.7vw, 24px); color: #b0102d; line-height: 1.2; }
.dq-ex-seal { position: absolute; right: -10px; bottom: -14px; font-family: var(--font-display); font-size: clamp(11px, 1vw, 14px); letter-spacing: .1em; color: #0f5a2d; background: #c9f5d9; border: 2px solid #1f9d55; border-radius: 4px; padding: 3px 10px 1px; transform: rotate(3deg); box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.dq-ex-seal.warn { color: #7a4a00; background: #ffe9b0; border-color: #d99a00; }

.dq-badge { position: absolute; left: 1.5%; top: 9%; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 16px 28px 16px 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(40,32,12,.92), rgba(18,14,6,.94)); border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(255,207,92,.15), 0 26px 60px rgba(0,0,0,.6), 0 0 60px rgba(255,207,92,.25); opacity: 0; transform-origin: 50% 50%; }
.dq-badge-emoji { flex: none; width: clamp(64px, 7vw, 96px); height: clamp(64px, 7vw, 96px); border-radius: 50%; display: grid; place-items: center; font-size: clamp(36px, 4.2vw, 58px); line-height: 1; background: radial-gradient(circle at 35% 30%, #fff3c4, #ffcf5c 55%, #c98a10); box-shadow: inset 0 -6px 12px rgba(0,0,0,.25), 0 0 0 4px rgba(255,255,255,.14); position: relative; overflow: hidden; }
.dq-badge-emoji::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 30%; left: -50%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-20deg); animation: dq-shine 2.6s ease-in-out 0.5s infinite; }
@keyframes dq-shine { 0%, 60% { left: -50%; } 100% { left: 140%; } }
.dq-badge-kicker { font-family: var(--font-display); letter-spacing: .2em; font-size: clamp(12px, 1.15vw, 16px); color: var(--gold); }
.dq-badge-title { font-family: var(--font-serif); font-weight: 700; font-style: italic; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.1; margin-top: 4px; color: #fff; }

.dq-credit { position: absolute; left: 1.5%; bottom: 3%; font-family: var(--font-type); font-size: 12px; color: rgba(255,255,255,.35); opacity: 0; }

/* ---------- caption bar (subtitles) ---------- */
.dq-captionbar { position: relative; z-index: 4; display: flex; align-items: center; justify-content: center; padding: 6px 4vw 18px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55) 30%, rgba(0,0,0,.78)); }
.dq-cap { width: min(1180px, 100%); text-align: center; min-height: 3.5em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.dq-cap-who { font-family: var(--font-display); font-size: clamp(12px, 1.15vw, 16px); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); opacity: 0; }
.dq-cap-who.dry { color: #ff8a9f; }
.dq-cap-who.sys { color: rgba(255,255,255,.55); }
.dq-cap-lines { position: relative; width: 100%; }
.dq-line { margin: 0; font-weight: 800; font-size: clamp(22px, 3.1vw, 46px); line-height: 1.16; letter-spacing: -.005em; text-wrap: balance; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.55), 0 4px 22px rgba(0,0,0,.7); }
.dq-line.m { font-size: clamp(20px, 2.7vw, 40px); }
.dq-line.s { font-size: clamp(18px, 2.3vw, 34px); }
.dq-line.sys { font-weight: 600; font-size: clamp(18px, 2.2vw, 32px); color: rgba(255,255,255,.88); }
.dq-line.punch { color: #fff; text-shadow: 0 2px 0 rgba(120,0,20,.9), 0 0 26px rgba(255,40,70,.6), 0 4px 22px rgba(0,0,0,.7); }
.dq-line .w { display: inline-block; white-space: pre; }
.dq-line .hot { color: #ffd166; }
.dq-line.punch .hot { color: #ff7a93; text-decoration: underline wavy rgba(255, 90, 120, .85); text-decoration-thickness: .08em; text-underline-offset: .12em; }
.dq-line.out { position: absolute; left: 0; right: 0; top: 0; }
.dq-think { position: absolute; left: 50%; bottom: calc(100% - 8px); transform: translateX(-50%); font-size: 14px; color: rgba(255,255,255,.7); background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 4px 14px; opacity: 0; pointer-events: none; white-space: nowrap; }

.dq-actions { position: absolute; z-index: 12; left: 0; right: 0; bottom: 0; height: clamp(130px, 22vh, 210px); display: none; align-items: center; justify-content: center; gap: 18px; padding: 0 4vw 8px; flex-wrap: wrap; }
.dq-actions.show { display: flex; }
.dq-btn { appearance: none; cursor: pointer; border-radius: 12px; padding: 16px 30px; font-size: clamp(17px, 1.7vw, 24px); font-weight: 800; letter-spacing: .01em; border: 2px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; transition: transform .15s, background .15s, box-shadow .15s; }
.dq-btn:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.dq-btn.primary { background: linear-gradient(180deg, #ff4d6d, #d4122e); border-color: #ff8aa0; box-shadow: 0 10px 28px rgba(225,29,72,.5); }
.dq-btn.primary:hover { background: linear-gradient(180deg, #ff6a85, #e11d48); box-shadow: 0 14px 34px rgba(225,29,72,.65); }
.dq-btn:focus-visible, .dq-skip:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* ---------- big beats: receipt, however, error ---------- */
.dq-receipt-wrap { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.dq-receipt { width: min(340px, 78vw); background: #fbfaf5; color: #26232f; font-family: var(--font-type); padding: 18px 20px 26px; border-radius: 2px 2px 0 0; box-shadow: 0 30px 60px rgba(0,0,0,.6);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 94% 100%, 88% calc(100% - 10px), 82% 100%, 76% calc(100% - 10px), 70% 100%, 64% calc(100% - 10px), 58% 100%, 52% calc(100% - 10px), 46% 100%, 40% calc(100% - 10px), 34% 100%, 28% calc(100% - 10px), 22% 100%, 16% calc(100% - 10px), 10% 100%, 4% calc(100% - 10px), 0 100%); opacity: 0; font-size: 15px; line-height: 1.5; }
.dq-receipt .rc-h { text-align: center; font-size: 22px; letter-spacing: .1em; }
.dq-receipt .rc-s { text-align: center; font-size: 12px; letter-spacing: .08em; color: #77747f; }
.dq-receipt hr { border: 0; border-top: 2px dashed #b9b6c2; margin: 10px 0; }
.dq-receipt .rc-big { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: .04em; color: #167a43; }
.dq-receipt .rc-row { display: flex; justify-content: space-between; gap: 12px; }
.dq-receipt .rc-row span:last-child { text-align: right; word-break: break-all; }
.dq-receipt .rc-bar { height: 34px; margin: 12px auto 4px; width: 78%; background: repeating-linear-gradient(90deg, #222 0 2px, transparent 2px 4px, #222 4px 5px, transparent 5px 9px, #222 9px 12px, transparent 12px 14px); }
.dq-receipt .rc-f { text-align: center; font-size: 12px; color: #77747f; }
.dq-receipt .rc-stamp { color: var(--stamp); font-family: var(--font-display); letter-spacing: .1em; text-align: center; font-size: 20px; margin-top: 8px; transform: rotate(-4deg); }

.dq-however { position: absolute; inset: 0; z-index: 11; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.dq-however span { font-family: var(--font-serif); font-style: italic; font-weight: 900; font-size: clamp(64px, 14vw, 230px); line-height: 1; color: #fff; letter-spacing: -.02em;
  text-shadow: -.04em 0 0 rgba(0, 255, 255, .8), .04em 0 0 rgba(255, 20, 60, .9), 0 .06em .5em rgba(0,0,0,.8), 0 0 .6em rgba(255, 30, 60, .55); }

.dq-error { position: absolute; z-index: 14; inset: 0; display: none; pointer-events: none; }
.dq-error.show { display: block; }
.dq-err-text { position: absolute; left: 4%; top: 15%; width: 46%; pointer-events: auto; opacity: 0; }
.dq-err-text h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 400; letter-spacing: .03em; line-height: 1.02; font-size: clamp(40px, 5.6vw, 86px); text-shadow: 0 4px 0 rgba(120,0,20,.7); }
.dq-err-text h2 b { color: var(--red-hot); font-weight: 400; }
.dq-err-text p { margin: 0 0 18px; font-size: clamp(17px, 1.8vw, 26px); line-height: 1.35; color: rgba(255,255,255,.88); }
.dq-err-real { font-family: var(--font-type); font-size: clamp(12px, 1.1vw, 15px); color: rgba(255,255,255,.55); background: rgba(0,0,0,.45); border-left: 3px solid var(--red-hot); padding: 8px 12px; margin: 0 0 24px; word-break: break-word; max-width: 100%; }
.dq-err-mascot { position: absolute; right: 3%; bottom: 0; width: min(46%, 640px); aspect-ratio: 580 / 550; opacity: 0; transform-origin: 50% 100%; }

/* ---------- screen effects ---------- */
.dq-tint { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; }
.dq-tint.gold { background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(255, 207, 92, .30), rgba(255, 170, 60, .10) 60%, transparent 90%); mix-blend-mode: screen; }
.dq-tint.red { background: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(190, 10, 36, .34), rgba(120, 0, 20, .52) 100%); mix-blend-mode: multiply; }
.dq-tint.red2 { background: rgba(255, 30, 60, .16); mix-blend-mode: screen; }
.dq-vig { position: absolute; inset: 0; pointer-events: none; opacity: .6; background: radial-gradient(ellipse 75% 70% at 50% 48%, transparent 40%, rgba(0,0,0,.75) 100%); }
.dq-glitch { position: absolute; inset: 0; z-index: 13; pointer-events: none; opacity: 0; overflow: hidden; }
.dq-glitch .bar { position: absolute; left: 0; right: 0; background: rgba(255, 255, 255, .22); mix-blend-mode: difference; }
.dq-glitch .scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 2px, transparent 2px 4px); }
.dq-flash { position: absolute; inset: 0; z-index: 15; background: #fff; opacity: 0; pointer-events: none; }
.dq-confetti { position: absolute; inset: 0; z-index: 10; width: 100%; height: 100%; pointer-events: none; }
.dq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- static fallback (if GSAP cannot load) ---------- */
.dq-static { position: absolute; inset: 0; z-index: 20; overflow: auto; padding: 5vh 6vw; background: #0c1126; color: #fff; display: none; }
.dq-static.show { display: block; }
.dq-static h2 { font-family: var(--font-display); font-weight: 400; font-size: 44px; margin: 0 0 8px; }
.dq-static p { font-size: 20px; line-height: 1.45; max-width: 60ch; }

/* ---------- portrait / narrow screens ---------- */
.dq-callstack { position: absolute; z-index: 6; left: 1.5%; bottom: 3%; width: min(40%, 460px); display: flex; flex-direction: column; gap: 38px; pointer-events: none; }
.dq-callstack.top { bottom: auto; top: 4%; }
.dq-callstack .dq-co { position: relative; width: 100%; left: auto; top: auto; }
.dq-callstack .dq-co-card { font-size: clamp(15px, 1.45vw, 21px); }
.dq-callstack .dq-co-arrow { left: auto; right: 6%; top: -40px; width: 50px; height: 50px; }
@media (max-aspect-ratio: 1/1), (max-width: 760px) {
  .dq-shake { grid-template-rows: 46px minmax(0, 1fr) clamp(140px, 24vh, 215px); }
  .dq-course, .dq-live { display: none; }
  .dq-chip { font-size: 12px; padding: 4px 10px; white-space: nowrap; }
  .dq-logo { font-size: 22px; }
  .dq-main { grid-template-columns: 1fr; grid-template-rows: 31% 1fr; }
  .dq-left { grid-row: 1; }
  .dq-right { grid-row: 2; }
  .dq-mascot-slot { width: min(44%, 230px); right: 2%; bottom: 3%; }
  .dq-nameplate { display: none; }
  .dq-ticker { left: 3%; top: 2%; width: 94%; max-height: 90%; padding: 12px 14px 14px; }
  .dq-tk-lines { min-height: 7.5em; font-size: 14px; }
  .dq-exhibit { left: 3%; top: 3%; width: 94%; }
  .dq-ex-card { padding: 16px 16px 16px; }
  .dq-badge { left: 3%; top: 3%; width: 94%; padding: 12px 16px 12px 12px; }
  .dq-callstack { left: 3%; right: 3%; width: auto; top: 73%; bottom: auto; gap: 14px; }
  .dq-callstack.top { top: 73%; }
  .dq-callstack .dq-co-card { font-size: 14px; }
  .dq-callstack .dq-co-arrow { display: none; }
  .dq-line { font-size: clamp(19px, 5.2vw, 30px); }
  .dq-line.m { font-size: clamp(18px, 4.8vw, 27px); }
  .dq-line.s { font-size: clamp(16px, 4.2vw, 24px); }
  .dq-queue { top: 48px; max-width: 94vw; font-size: 14px; padding: 7px 14px 7px 12px; white-space: normal; }
  .dq-err-text { left: 6%; top: 6%; width: 88%; }
  .dq-err-text h2 { font-size: clamp(34px, 11vw, 60px); }
  .dq-err-mascot { width: 72%; right: 14%; }
  .dq-credit { display: none; }
  .dq-btn { padding: 12px 20px; font-size: 17px; }
  .dq-actions { gap: 10px; }
  .dq-stamp { width: 135%; }
}

/* ---------- reduced motion: keep fades, drop shake, flash, glitch and blinking ---------- */
@media (prefers-reduced-motion: reduce) {
  .dq-live i, .dq-tk-head i, .dq-queue i, .dq-tk-bar i, .dq-badge-emoji::after, .dq-tk-lines li:last-child .caret::after { animation: none; }
  .dq-glitch, .dq-flash { display: none; }
  .dq-btn { transition: none; }
}
