:root {
  --bg: #110b19;
  --panel: #21152b;
  --panel-2: #271930;
  --line: rgba(255, 212, 230, .17);
  --text: #fff5ef;
  --muted: #d4bdce;
  --lime: #ffc28b;
  --coral: #ff8a9f;
  --pink: #ff83b6;
  --mint: #8df6dc;
}

.buyer-page { position: relative; isolation: isolate; background: #110b19; }
.vice-backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #140b20ed 0%, #190c24ab 23%, #1c10244d 51%, #160c2329 100%),
    linear-gradient(0deg, #110b19 0%, #160d20a8 21%, transparent 63%),
    url('/vice-coast-20261127.webp') 70% 52% / cover no-repeat #2a1234;
}
.site-header { position: relative; height: 78px; border-color: #ffe1ee3b; }
.brand { gap: 10px; font-size: 16px; letter-spacing: .08em; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(140deg, #ff86be, #ffbe81); color: #2b0c25; box-shadow: 0 4px 18px #ff6daf42; }
.brand > span:last-child > span { color: #ffa6cb; }
.secure-chip { color: #ffebef; background: #220e288c; font-size: 12px; }
.pulse { background: var(--mint); box-shadow: 0 0 0 4px #8df6dc1c; }
.buyer-main { min-height: calc(100svh - 149px); grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: clamp(16px,6vw,94px); padding: 44px 0; }
.hero-copy { padding: 15px 0; }
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--mint); letter-spacing: .24em; text-shadow: 0 2px 13px #0c0711; }
.hero-copy .eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--mint); }
.hero-copy h1 { font-size: clamp(68px,9vw,132px); font-weight: 1000; line-height: .79; letter-spacing: -.085em; text-transform: uppercase; text-shadow: 0 10px 44px #15061980; }
.hero-copy h1 span { display: inline-block; padding: .07em .08em .05em 0; color: transparent; background: linear-gradient(166deg,#ffe0a8 8%,#ff9c95 39%,#ff79b9 73%); background-clip: text; -webkit-text-stroke: 0; text-shadow: none; }
.hero-text { color: #fff0ec; max-width: 366px; margin: 24px 0 22px; font-size: 17px; text-shadow: 0 2px 8px #150a1d; }
.rules-row { display: flex; flex-wrap: wrap; gap: 10px; }
.rules-row span { gap: 7px; padding: 7px 10px; color: #ffe8e8; border: 1px solid #ffcee533; background: #201025a8; border-radius: 7px; font-size: 11px; }
.rules-row b { color: #ffb2d0; }
.experience-card {
  min-width: 0;
  min-height: 0;
  border: 1px solid #ffe0ee47;
  border-radius: 20px;
  background: linear-gradient(160deg,#291931f5,#160e20f0 72%);
  box-shadow: 0 28px 60px #0b0417b3;
}
.experience-card::after { background: var(--pink); }
.card-topline { height: 50px; padding: 0 23px; color: #e9bdd2; font-size: 10px; letter-spacing: .19em; }
.state-panel { padding: clamp(21px,3vw,32px); }
.centered-state { min-height: 315px; }
.centered-state h2 { margin-top: 8px; font-size: clamp(21px,2.8vw,29px); }
.centered-state p { margin: 0; max-width: 310px; }
.ready-intro { min-height: 245px; gap: 2px; }
.ready-intro h2 { font-size: clamp(28px,3vw,42px); }
.ready-intro p:last-child { margin-top: 10px; max-width: 240px; font-size: 14px; }
.ready-intro .eyebrow { color: #ffb2d0; margin: 14px 0 7px; font-size: 10px; }
.primary-button { border-radius: 11px; min-height: 54px; color: #291026; background: linear-gradient(115deg,#ffa3c7,#ffc890); box-shadow: 0 12px 32px #ff78ae29; }
.primary-button i { width: 33px; height: 33px; border-radius: 8px; background: #301426; color: #ffc4d7; }
.result-card { min-height: 168px; grid-template-columns: 92px minmax(0,1fr); background: #33203f; }
.game-info { padding: 18px; }
.game-info h2 { overflow-wrap: anywhere; }
.result-actions { gap: 8px; }
.result-actions > button { min-width: 0; }
.decision-note { color: #dac5d5; }
.key-box { min-width: 0; }
.key-box code { min-width: 0; overflow-wrap: anywhere; }
.review-bonus { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; margin: 0 0 22px; padding: 15px; border: 1px solid #fdb6b357; border-radius: 13px; background: radial-gradient(ellipse at 0% 0%,#e16d9f22,transparent 80%),linear-gradient(122deg,#3a213d,#271b34); }
.review-bonus-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ffd4b951; border-radius: 10px; background: #f4959926; color: #ffccab; }
.review-bonus-label { display: block; color: #ffbcac; font-size: 9px; font-weight: 850; line-height: 1.3; letter-spacing: .14em; }
.review-bonus h3 { margin: 5px 0 6px; color: #fff6ef; font-size: clamp(15px, 2.2vw, 19px); line-height: 1.18; letter-spacing: -.025em; }
.review-bonus p { margin: 0; color: #eed8e7; font-size: 13px; line-height: 1.45; }
.review-bonus .review-bonus-step { margin-top: 8px; color: #ffd6bd; font-weight: 700; }
.modal-card { background: #27182f; }
.toast { z-index: 150; }
footer { position: relative; min-height: 54px; height: 68px; color: #d8bacf; gap: 12px; }
footer span:last-child { text-align: right; }

/* The strip is visual only; the card under the pointer comes from the API. */
.night-case { display: block; width: min(100%, 338px); height: auto; margin-top: -14px; overflow: visible; pointer-events: none; }
.night-case + .eyebrow { margin-top: 5px; }
.case-brand-text { fill: #ffe8d3; font: italic 1000 19px system-ui,sans-serif; letter-spacing: 1.9px; paint-order: stroke; stroke: #572741; stroke-width: 2px; }
.case-lid { transform-box: view-box; transform-origin: 315px 80px; }
.case-open-light, .case-interior, .case-sparks { opacity: 0; }
.night-case.is-opening .case-lid { animation: case-hinge 1.04s cubic-bezier(.25,.72,.25,1) both; }
.night-case.is-opening .case-open-light { animation: case-light 1.14s ease-out both; }
.night-case.is-opening .case-interior { animation: case-interior 1.14s ease-out both; }
.night-case.is-opening .case-sparks { animation: case-sparks 1s .12s ease-out both; }
#spin-button[aria-busy="true"] { color: #3b1e39; }
@keyframes case-hinge {
  0%, 11% { transform: none; }
  21% { transform: translateY(-3px) rotate(1deg); }
  76% { transform: translateY(-23px) rotate(12deg); }
  100% { transform: translateY(-20px) rotate(11deg); }
}
@keyframes case-light { 0%, 16% { opacity: 0; } 55% { opacity: 1; } 100% { opacity: .72; } }
@keyframes case-interior { 0%, 22% { opacity: 0; } 60%, 100% { opacity: .86; } }
@keyframes case-sparks { 0%, 18% { opacity: 0; transform: translateY(15px); } 55% { opacity: 1; } 100% { opacity: .28; transform: translateY(-13px); } }
.is-spinning { overflow: hidden; }
.reel-overlay { position: fixed; z-index: 100; inset: 0; overflow: auto; overscroll-behavior: contain; background: linear-gradient(0deg,#100817fa,#190f24e8 49%,#27112bc9),url('/vice-coast-20261127.webp') 72% 63% / cover no-repeat #190e22; }
.reel-overlay-top { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 0 max(16px,calc((100vw - 1150px)/2)); }
.reel-edition { color: #f4c4dd; font-size: 10px; font-weight: 850; letter-spacing: .17em; }
.reel-stage { display: grid; justify-items: center; align-content: center; min-height: min(690px,calc(100svh - 68px)); padding: 40px 20px; text-align: center; }
.reel-stage .eyebrow { margin: 0 0 12px; color: var(--mint); font-size: 11px; letter-spacing: .24em; }
.reel-stage h2 { margin: 0; font-size: clamp(32px,5vw,68px); line-height: .99; font-weight: 950; letter-spacing: -.055em; }
.reel-stage h2:focus { outline: none; }
.reel-help { margin: 12px auto 0; color: #ecd3e3; font-size: 14px; }
.reel-board { position: relative; width: min(970px,100%); min-width: 0; margin-top: 39px; padding: 9px; border: 1px solid #ffabd57d; border-radius: 18px; background: #110d1b; box-shadow: 0 0 40px #ff72bb2e,0 20px 54px #0c0516ad; }
.reel-viewport { position: relative; overflow: hidden; border-radius: 10px; border: 1px solid #ffbcdd26; }
.reel-viewport::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg,#100b19b0,transparent 15%,transparent 85%,#100b19b0); }
.reel-track { position: relative; display: flex; width: max-content; gap: 10px; will-change: transform; }
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.has-cover > .cover-art { visibility: visible; }
.game-cover.has-cover > .cover-art { z-index: 3; }
.reel-tile { --tile-fg: #f8a3c9; position: relative; flex: 0 0 207px; width: 207px; aspect-ratio: 460 / 215; display: grid; place-items: center; overflow: hidden; border: 1px solid #e5abd341; border-radius: 9px; color: var(--tile-fg); background: repeating-linear-gradient(144deg,transparent 0 32px,#ffffff0e 32px 33px,transparent 33px 42px),linear-gradient(135deg,#4c264b,#211529); }
.reel-mark { display: grid; place-items: center; height: 100%; font-size: 42px; line-height: 1; font-weight: 950; font-style: italic; text-shadow: 0 0 14px currentColor; }
.reel-tile.has-cover > .reel-mark { visibility: hidden; }
.reel-tile.tone-gta { --tile-fg: #fff2a9; color: #211305; border-color: #ffeeb0; background: linear-gradient(141deg,#fff29aeb,#f6be4bc4 55%,#b87024),url('/vice-coast-20261127.webp') 85% 66% / cover; box-shadow: inset 0 0 22px #ffe59a; }
.reel-tile.tone-gta .reel-mark { align-content: center; gap: 2px; font-size: 52px; text-shadow: 0 1px 0 #ffe090; }
.reel-tile.tone-gta .reel-mark::after { content: attr(data-caption); font: 900 11px/1 system-ui,sans-serif; letter-spacing: .2em; }
.reel-tile.tone-winner { --tile-fg: #a1ffe0; }
.reel-tile.tone-winner-premium { --tile-fg: #ffe4b4; }
.reel-tile.is-winner { border-color: var(--tile-fg); }
.reel-tile.is-winner::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px var(--tile-fg); border-radius: 8px; }
.reel-pointer { position: absolute; z-index: 2; pointer-events: none; inset: -8px auto; left: 50%; width: 2px; transform: translateX(-50%); border-radius: 2px; background: linear-gradient(#ffd5ec66,transparent 32%,transparent 68%,#ffd5ec66); }
.reel-pointer::before,.reel-pointer::after { content: ""; position: absolute; left: 50%; width: 19px; height: 17px; transform: translateX(-50%); background: #ffd2e9; clip-path: polygon(0 0,100% 0,50% 100%); }
.reel-pointer::before { top: 0; }
.reel-pointer::after { bottom: 0; transform: translateX(-50%) rotate(180deg); }
.reel-board.is-landed { border-color: #a2ffe0a8; box-shadow: 0 0 40px #8effd92b,0 20px 54px #0c0516ad; }
.is-landed .reel-pointer::before,.is-landed .reel-pointer::after { background: var(--mint); }
.reel-result { display: grid; gap: 4px; max-width: 88vw; margin-top: 24px; animation: reel-title .28s ease both; }
.reel-result[hidden] { display: none; }
.reel-result span { color: var(--mint); font-size: 10px; font-weight: 900; letter-spacing: .17em; }
.reel-result strong { font-size: clamp(19px,4vw,35px); overflow-wrap: anywhere; line-height: 1.15; }
.reel-note { max-width: 390px; margin: 18px auto 0; color: #d8bed0; font-size: 12px; }
.reel-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: 10px; letter-spacing: .16em; font-weight: 850; color: #f6c9df; }
.reel-status > span { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px #8df6dca8; }
.reel-status .is-hot { background: var(--pink); animation: reel-signal .9s ease infinite alternate; }
.primary-button:focus-visible,.secondary-button:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
@keyframes reel-title { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes reel-signal { to { opacity: .42; } }

@media (max-width: 900px) {
  .buyer-main { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 21px; }
  .hero-copy h1 { font-size: clamp(56px,10vw,86px); }
}
@media (max-width: 650px) {
  .review-bonus { grid-template-columns: 33px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .review-bonus-icon { width: 33px; height: 33px; }
  .review-bonus-icon svg { width: 19px; height: 19px; }
  .shell { width: calc(100% - 30px); }
  .site-header { height: 60px; }
  .vice-backdrop { position: absolute; inset: 0 0 auto; height: 520px; background-position: center,center,64% center; background-size: auto,auto,auto 100%; }
  .buyer-main { grid-template-columns: minmax(0,1fr); gap: 10px; padding: 28px 0 20px; min-height: calc(100svh - 116px); }
  .hero-copy { padding: 0 0 8px; text-align: left; }
  .hero-copy .eyebrow { font-size: 10px; margin-bottom: 14px; }
  .hero-copy h1 { font-size: clamp(60px,13.8vw,91px); }
  .hero-text { font-size: 14px; max-width: 248px; margin: 12px 0; line-height: 1.45; }
  .rules-row { gap: 5px; }
  .rules-row span { padding: 5px 6px; font-size: 10px; gap: 5px; }
  .card-topline { height: 38px; }
  .centered-state { min-height: 196px; padding-block: 20px; }
  .centered-state .state-icon { margin-bottom: 8px; width: 42px; height: 42px; }
  .ready-intro { min-height: 157px; }
  .night-case { width: min(100%, 238px); margin-top: -14px; }
  .ready-intro h2 { font-size: 27px; }
  .ready-intro p:last-child { font-size: 13px; }
  .result-card { grid-template-columns: 72px minmax(0,1fr); min-height: 120px; }
  .result-card .game-cover { height: auto; min-height: 100%; }
  .result-card .mystery-ring { width: 60%; height: auto; aspect-ratio: 1; }
  .result-card .game-mystery { font-size: 34px; }
  .game-info h2 { font-size: 26px; }
  .reel-overlay-top { min-height: 56px; }
  .reel-edition { font-size: 8px; letter-spacing: .1em; }
  .reel-stage { min-height: min(580px,calc(100svh - 56px)); padding: 25px 12px; }
  .reel-help { font-size: 13px; }
  .reel-board { margin-top: 28px; padding: 6px; border-radius: 13px; }
  .reel-track { gap: 7px; }
  .reel-tile { flex-basis: 133px; width: 133px; }
  .reel-mark { font-size: 24px; }
  .reel-tile.tone-gta .reel-mark { font-size: 32px; }
  .reel-tile.tone-gta .reel-mark::after { font-size: 8px; }
  .reel-note { max-width: 270px; font-size: 11px; }
  footer { height: auto; min-height: 54px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-result, .reel-status > span { animation: none !important; }
  .night-case.is-opening * { animation: none !important; }
}
