:root {
  color-scheme: dark;
  --black: #06101f;
  --black-soft: #0b1a31;
  --coal: #122b4b;
  --ember: #ff5a00;
  --orange: #ff8500;
  --amber: #ffad18;
  --gold: #ffd15a;
  --gold-pale: #ffe8a3;
  --ink: #fffaf0;
  --muted: #cbd5e4;
  --line: rgba(255, 157, 27, .31);
  --line-bright: rgba(255, 190, 75, .64);
  --panel: rgba(8, 22, 43, .36);
  --panel-soft: rgba(15, 36, 66, .24);
  --hit: #ffab19;
  --miss: #7c2f20;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--black); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--black);
  background-image:
    linear-gradient(145deg, rgba(2, 7, 16, .58), rgba(5, 17, 35, .42) 50%, rgba(3, 10, 23, .58)),
    radial-gradient(circle at 52% 42%, rgba(8, 26, 52, .18), rgba(2, 8, 18, .32) 72%),
    url("../assets/rush-bg.webp");
  background-position: center, center, center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background:
    repeating-linear-gradient(118deg, transparent 0 48px, rgba(255, 157, 30, .2) 49px, transparent 51px 98px),
    radial-gradient(ellipse at 58% 35%, rgba(255, 108, 0, .18), transparent 48%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
.hidden { display: none !important; }

.rush-atmosphere { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient { position: absolute; border-radius: 999px; filter: blur(94px); opacity: .3; }
.ambient-one { width: 390px; height: 390px; background: #ff5200; top: -170px; right: -160px; }
.ambient-two { width: 420px; height: 420px; background: #1676d2; bottom: -230px; left: -170px; opacity: .26; }
.speed-line {
  position: absolute;
  width: min(58vw, 820px);
  height: 2px;
  right: -12vw;
  background: linear-gradient(90deg, transparent, rgba(255, 154, 23, .72), transparent);
  box-shadow: 0 0 14px rgba(255, 90, 0, .48);
  transform: rotate(-15deg);
  opacity: .2;
}
.line-one { top: 27%; }
.line-two { top: 42%; right: -4vw; width: min(44vw, 620px); opacity: .14; }
.line-three { top: 61%; right: -16vw; width: min(70vw, 980px); opacity: .1; }

.topbar {
  width: min(1500px, calc(100% - 38px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.brand img {
  display: block;
  width: clamp(158px, 24vw, 222px);
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .38));
}
.product-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 121, 0, .16), rgba(255, 177, 45, .05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 32px rgba(255, 94, 0, .11);
  font-size: .77rem;
  font-weight: 950;
  letter-spacing: .14em;
}
.product-pill b { color: var(--orange); font-size: .95rem; filter: drop-shadow(0 0 7px rgba(255, 95, 0, .75)); }
.top-actions { display: flex; align-items: center; gap: 9px; }
.fullscreen-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 181, 59, .32);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(12, 34, 63, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  font-size: .7rem;
  font-weight: 850;
}
.fullscreen-toggle span { color: var(--gold); font-size: 1rem; }
.fullscreen-toggle b { font: inherit; white-space: nowrap; }
.fullscreen-toggle[hidden],
:fullscreen .fullscreen-toggle { display: none !important; }

.shell { width: min(1500px, calc(100% - 30px)); margin: 20px auto 58px; position: relative; z-index: 1; }
.panel, .board-card, .stat, .result-card, .prizes {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.065), transparent 34%),
    var(--panel);
  box-shadow: 0 26px 78px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.075);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.loading-card { max-width: 420px; margin: 18vh auto 0; padding: 42px; border-radius: 24px; text-align: center; }
.loader { display: inline-block; width: 32px; height: 32px; border: 3px solid rgba(255,255,255,.13); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.experience { width: 100%; }
.experience-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 4px 0 22px;
}
.experience-heading > div { max-width: 820px; }
.eyebrow { color: var(--amber); font-size: .75rem; font-weight: 950; letter-spacing: .18em; }
h1 {
  margin: 7px 0 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(3.1rem, 8vw, 5.75rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: none;
}
h1 span {
  color: inherit;
  background: none;
}
.experience-heading p { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.55; }
h2 { margin: 8px 0 10px; font-size: clamp(1.7rem, 3vw, 2.22rem); line-height: 1.08; letter-spacing: -.03em; }
.lead { color: var(--muted); line-height: 1.58; margin: 0 0 24px; }

.play-layout { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
.side-rail { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.play-main { min-width: 0; width: min(780px, 100%); margin: 0 auto; }

.access-card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 166, 36, .48);
  background:
    linear-gradient(145deg, rgba(255, 137, 0, .11), transparent 35%),
    linear-gradient(160deg, rgba(19, 45, 79, .36), rgba(7, 20, 40, .24));
}
.access-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -112px;
  top: -112px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 99, 0, .34), transparent 67%);
  pointer-events: none;
}
.access-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(transparent, var(--orange), var(--gold), transparent);
  box-shadow: 0 0 18px rgba(255, 93, 0, .62);
}
.access-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #1b0800;
  background: linear-gradient(145deg, #ffe177, var(--orange));
  box-shadow: 0 14px 32px rgba(255, 91, 0, .25), inset 0 1px 0 rgba(255,255,255,.55);
  font-size: 1.45rem;
  font-weight: 950;
}
label { display: block; margin-bottom: 9px; font-size: .84rem; font-weight: 850; }
.key-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 176, 58, .38);
  border-radius: 14px;
  padding: 15px 16px;
  color: var(--ink);
  background: rgba(4, 13, 28, .84);
  outline: none;
}
input::placeholder { color: #8492a8; }
input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 112, 0, .14), 0 0 28px rgba(255, 77, 0, .08); }
small { color: var(--muted); }
#keyHelp { display: block; margin-top: 9px; font-size: .72rem; }

.primary, .secondary, .ghost, .icon-button {
  border-radius: 14px;
  border: 0;
  font-weight: 900;
  transition: transform .15s ease, filter .15s ease, background .15s ease, box-shadow .15s ease;
}
.primary {
  padding: 14px 20px;
  color: #1b0800;
  background: linear-gradient(135deg, #ffd561, #ff9700 58%, #ff5d00);
  box-shadow: 0 13px 28px rgba(255, 82, 0, .24), inset 0 1px 0 rgba(255,255,255,.55);
}
.secondary { width: 100%; padding: 13px 18px; color: var(--gold-pale); background: rgba(255, 100, 0, .13); border: 1px solid rgba(255, 145, 20, .34); }
.ghost { padding: 10px 14px; color: var(--muted); background: rgba(255, 132, 0, .055); border: 1px solid var(--line); white-space: nowrap; }
.icon-button { width: 40px; height: 40px; flex: 0 0 auto; color: var(--gold); background: rgba(255, 120, 0, .1); border: 1px solid rgba(255, 159, 23, .24); font-size: 1.25rem; }
button:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 30px rgba(255, 80, 0, .18); }

.rules-brief { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 26px; }
.rules-brief div { padding: 12px 5px; text-align: center; border-radius: 13px; background: rgba(28, 69, 116, .32); border: 1px solid rgba(255, 169, 38, .18); }
.rules-brief strong, .rules-brief span { display: block; }
.rules-brief strong { color: var(--gold); font-size: 1.15rem; }
.rules-brief span { margin-top: 3px; color: var(--muted); font-size: .66rem; }

.stats { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
.stat { min-width: 0; padding: 17px 18px; border-radius: 18px; }
.stat span, .stat strong, .stat small { display: block; }
.stat span { color: var(--muted); font-size: .74rem; font-weight: 750; }
.stat strong { margin-top: 5px; font-size: 1.28rem; white-space: nowrap; }
.main-stat { border-color: rgba(255, 161, 28, .34); }
.main-stat strong { color: var(--gold); font-size: 1.65rem; text-shadow: 0 0 20px rgba(255, 129, 0, .18); }
.withdrawal-stat small { margin-top: 4px; font-size: .67rem; }
.withdrawal-stat.ready { border-color: rgba(255, 181, 58, .48); box-shadow: 0 20px 55px rgba(0,0,0,.35), inset 0 0 26px rgba(255, 112, 0, .055); }
.withdrawal-stat.ready small { color: var(--gold); }

.board-card {
  padding: clamp(17px, 3vw, 27px);
  border-radius: 25px;
  overflow: hidden;
  border-color: rgba(255, 159, 28, .5);
  background:
    linear-gradient(135deg, rgba(255, 118, 0, .12), transparent 35%),
    linear-gradient(315deg, rgba(41, 102, 165, .14), transparent 40%),
    rgba(6, 19, 38, .36);
  box-shadow: 0 30px 86px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,230,190,.09), 0 0 48px rgba(255, 96, 0, .08);
}
.board-copy { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.board-kicker { display: block; margin-bottom: 5px; color: var(--amber); font-size: .67rem; font-weight: 950; letter-spacing: .15em; }
.board-copy p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.45vw, 12px); margin-top: 18px; }
.tile {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 166, 38, .38);
  border-radius: 15px;
  color: #fff8ea;
  background:
    linear-gradient(145deg, rgba(255, 144, 19, .12), transparent 45%),
    linear-gradient(145deg, #18385f, #0b1e3a);
  box-shadow: inset 0 1px 0 rgba(255,240,211,.12), inset 0 -12px 24px rgba(0,0,0,.16), 0 8px 19px rgba(0,0,0,.23);
  font-size: clamp(1rem, 3vw, 1.36rem);
  font-weight: 950;
  overflow: hidden;
}
.tile:not(:disabled):hover {
  border-color: var(--orange);
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 142, 0, .34), rgba(17, 43, 76, .98));
  box-shadow: inset 0 1px 0 rgba(255,236,190,.11), 0 0 24px rgba(255, 91, 0, .2);
}
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,220,151,.22), transparent 70%); transform: translateX(-120%); }
.tile.pending { border-color: var(--orange); box-shadow: 0 0 25px rgba(255, 95, 0, .24); }
.tile.pending::after { animation: sweep .72s linear infinite; }
@keyframes sweep { to { transform: translateX(120%); } }
.tile.hit {
  color: #241000;
  background: linear-gradient(145deg, #ffe383, #ffad1a 54%, #ff6b00);
  border-color: #ffe497;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62), 0 0 28px rgba(255, 96, 0, .38);
  animation: reveal .32s ease both;
}
.tile.miss {
  color: #f0c8c4;
  background: linear-gradient(145deg, #6b2934, #28121f);
  border-color: rgba(232, 91, 73, .58);
  animation: reveal .32s ease both;
}
.tile.chosen { color: #1f0c00; background: linear-gradient(145deg, #ffe6a0, #d9891d); border-color: var(--gold); }
@keyframes reveal { from { transform: scale(.78) rotate(-4deg); opacity: .25; } to { transform: scale(1); opacity: 1; } }
.board.flash-win { animation: winGlow .8s ease; }
@keyframes winGlow { 50% { filter: drop-shadow(0 0 27px rgba(255, 128, 0, .54)); } }
.access-mode .tile:disabled { opacity: .92; filter: saturate(.82); }
.access-mode .board-card { border-color: rgba(255, 153, 25, .42); }
.access-mode #refreshButton { visibility: hidden; }
.access-mode .legend { opacity: .72; }

.legend { display: flex; gap: 18px; justify-content: center; margin-top: 18px; color: var(--muted); font-size: .75rem; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.legend-dot.hit { background: var(--hit); box-shadow: 0 0 8px rgba(255, 144, 0, .5); }
.legend-dot.miss { background: var(--miss); }

.result-card { margin: 0; padding: 22px; border-radius: 20px; text-align: center; border-color: rgba(255, 175, 43, .5); background: linear-gradient(145deg, rgba(255, 117, 0, .12), rgba(8, 25, 48, .36)); }
.result-card > span { display: block; color: var(--amber); font-size: .72rem; font-weight: 950; letter-spacing: .13em; }
.result-card > strong { display: block; margin-top: 5px; font-size: 1.8rem; }
.result-card p { margin: 5px 0 15px; color: var(--muted); }
.message { margin-top: 14px; padding: 13px 15px; border-radius: 13px; border: 1px solid rgba(255, 166, 45, .18); background: rgba(255, 130, 0, .055); color: var(--muted); line-height: 1.42; }
.message.error { color: #ffd8c5; border-color: rgba(255, 90, 38, .42); background: rgba(160, 45, 10, .17); }
.message.success { color: #ffe9bd; border-color: rgba(255, 183, 64, .38); background: rgba(255, 135, 0, .11); }
#retryButton { margin-top: 10px; }
.prizes { margin-top: 14px; border-radius: 16px; padding: 0 16px; }
.prizes-title { padding: 14px 0 5px; color: var(--gold-pale); font-size: .8rem; font-weight: 900; }
.prize-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 0 16px; }
.prize-grid span { padding: 10px 12px; border-radius: 10px; background: rgba(25, 64, 108, .34); border: 1px solid rgba(255, 164, 29, .16); color: var(--muted); }
.prize-grid b { float: right; color: var(--gold); }
footer { padding: 0 20px 28px; text-align: center; color: #8ea0b9; font-size: .72rem; }
noscript { display: block; margin: 20px; padding: 16px; color: white; background: #8b2f15; text-align: center; }

body:not(.rush-started) { overflow: hidden; }
.launch-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background-color: #030814;
  background-image:
    linear-gradient(145deg, rgba(2, 7, 16, .68), rgba(4, 15, 31, .48) 55%, rgba(3, 10, 22, .64)),
    radial-gradient(circle at 50% 48%, rgba(5, 17, 35, .08), rgba(2, 7, 16, .28) 72%),
    url("../assets/rush-bg.webp");
  background-position: center, center, center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  transition: opacity .32s ease, visibility .32s ease;
}

@media (orientation: portrait) {
  body {
    background-image:
      linear-gradient(180deg, rgba(2, 7, 16, .52), rgba(4, 14, 29, .42) 48%, rgba(2, 7, 16, .56)),
      radial-gradient(circle at 50% 44%, rgba(5, 19, 40, .14), rgba(2, 7, 16, .26) 76%),
      url("../assets/rush-bg-mobile.webp");
    background-position: center, center, center;
    background-size: cover, cover, cover;
    background-attachment: scroll;
  }
  .launch-screen {
    background-image:
      linear-gradient(180deg, rgba(2, 7, 16, .64), rgba(4, 14, 29, .46) 50%, rgba(2, 7, 16, .58)),
      radial-gradient(circle at 50% 44%, rgba(5, 19, 40, .08), rgba(2, 7, 16, .24) 76%),
      url("../assets/rush-bg-mobile.webp");
    background-position: center, center, center;
    background-size: cover, cover, cover;
  }
}
.launch-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background: repeating-linear-gradient(118deg, transparent 0 54px, rgba(255, 150, 24, .24) 55px, transparent 57px 110px);
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 74%);
  mask-image: radial-gradient(circle at center, #000, transparent 74%);
}
.launch-screen.leaving { opacity: 0; visibility: hidden; }
.launch-card {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(27px, 4vw, 42px);
  border: 1px solid rgba(255, 170, 43, .48);
  border-radius: 30px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 127, 0, .1), transparent 36%),
    rgba(7, 24, 48, .38);
  box-shadow: 0 34px 100px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.1), 0 0 55px rgba(255, 102, 0, .09);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.launch-logo { display: block; width: min(210px, 58%); height: auto; margin: 0 auto 22px; }
.launch-mark {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: auto auto;
  place-content: center;
  gap: 4px;
  border: 1px solid rgba(255, 216, 117, .72);
  border-radius: 50%;
  color: #1d0a00;
  background: linear-gradient(145deg, #ffe27b, #ff9a00 58%, #ff5d00);
  box-shadow: 0 0 32px rgba(255, 101, 0, .34), inset 0 1px 0 rgba(255,255,255,.6);
}
.launch-mark span { font-size: 1.2rem; }
.launch-mark b { font-size: 1.45rem; }
.launch-eyebrow { color: var(--amber); font-size: .7rem; font-weight: 950; letter-spacing: .18em; }
.launch-card h1 {
  margin: 7px 0 10px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.35rem, 6vw, 3.35rem);
  font-style: normal;
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: none;
  text-shadow: 0 0 28px rgba(255, 128, 0, .2);
}
.launch-card > p { max-width: 390px; margin: 0 auto; color: var(--muted); line-height: 1.5; }
.launch-actions { display: grid; gap: 11px; margin-top: 27px; }
.launch-primary, .launch-secondary {
  width: 100%;
  min-height: 56px;
  padding: 13px 18px;
  border-radius: 15px;
  font-weight: 900;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.launch-primary {
  border: 0;
  color: #1b0800;
  background: linear-gradient(135deg, #ffd45e, #ff9800 58%, #ff5d00);
  box-shadow: 0 14px 30px rgba(255, 85, 0, .25), inset 0 1px 0 rgba(255,255,255,.55);
}
.launch-secondary {
  border: 1px solid rgba(255, 172, 43, .24);
  color: var(--ink);
  background: rgba(37, 68, 108, .62);
}
.launch-primary:not(:disabled):hover, .launch-secondary:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.08); }
.launch-primary:disabled, .launch-secondary:disabled { cursor: wait; opacity: .7; }
.launch-status { min-height: 1.3em; margin-top: 11px !important; font-size: .72rem; }

@media (min-width: 900px) and (orientation: landscape) {
  html, body { height: 100%; }
  body.rush-started { height: 100dvh; min-height: 0; overflow: hidden; }
  .topbar { width: min(1120px, calc(100% - 48px)); height: clamp(48px, 5.9dvh, 64px); }
  .brand img { width: clamp(165px, 16vw, 215px); }
  .shell {
    width: 100%;
    height: calc(100dvh - clamp(48px, 5.9dvh, 64px));
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
  }
  .experience {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .experience-heading { width: min(1120px, calc(100% - 48px)); align-items: center; margin: 0 auto clamp(6px, 1vh, 10px); }
  .experience-heading > div { max-width: none; }
  .experience-heading .eyebrow { font-size: .69rem; }
  .experience-heading p { font-size: clamp(.8rem, 1.55vh, .94rem); line-height: 1.3; }
  h1 { margin: 3px 0; font-size: clamp(3rem, 7vh, 4.7rem); }

  .play-layout {
    width: min(1120px, calc(100% - 48px));
    height: 100%;
    min-height: 0;
    max-height: 100%;
    margin: 0 auto;
    padding: clamp(8px, 1.2vh, 12px);
    grid-template-columns: clamp(300px, 30%, 350px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 166, 36, .46);
    border-radius: 28px;
    background:
      linear-gradient(120deg, rgba(255, 136, 0, .1), transparent 28%),
      linear-gradient(145deg, rgba(20, 49, 84, .36), rgba(6, 20, 40, .24));
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    box-shadow: 0 34px 90px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.09), 0 0 55px rgba(255, 102, 0, .07);
  }
  .side-rail { align-self: stretch; min-height: 0; max-height: 100%; justify-content: center; gap: 9px; padding: 2px 18px 2px 2px; border-right: 1px solid rgba(255, 172, 48, .2); }
  .play-main { width: min(100%, calc((100dvh - 205px) * .8)); max-height: 100%; margin: 0 auto; }

  .access-card {
    padding: clamp(15px, 2.1vh, 22px);
    border: 0;
    border-radius: 18px;
    background: rgba(5, 18, 37, .28);
    box-shadow: none;
    backdrop-filter: none;
  }
  .access-card::after { display: none; }
  .access-card::before { opacity: .65; }
  .access-icon { width: 46px; height: 46px; margin-bottom: 12px; border-radius: 14px; font-size: 1.12rem; }
  .access-card .eyebrow { font-size: .63rem; }
  h2 { margin: 5px 0 7px; font-size: clamp(1.55rem, 3.35vh, 1.95rem); }
  .lead { margin-bottom: 13px; font-size: .86rem; line-height: 1.42; }
  label { margin-bottom: 6px; font-size: .76rem; }
  input { padding: 11px 13px; }
  .primary { padding: 11px 16px; }
  #keyHelp { margin-top: 6px; font-size: .65rem; }
  .rules-brief { margin-top: 13px; gap: 6px; }
  .rules-brief div { padding: 8px 4px; }
  .rules-brief strong { font-size: 1rem; }
  .rules-brief span { font-size: .59rem; }

  .stats { gap: 7px; }
  .stat { padding: 11px 14px; border-radius: 14px; }
  .stat strong { margin-top: 2px; font-size: 1.08rem; }
  .main-stat strong { font-size: 1.42rem; }
  .result-card { padding: 13px; border-radius: 16px; }
  .result-card > strong { font-size: 1.42rem; }
  .result-card p { margin: 3px 0 9px; }
  .side-rail .message { margin-top: 0; padding: 10px 12px; font-size: .78rem; }

  .board-card {
    padding: 12px;
    border-radius: 20px;
    background:
      linear-gradient(135deg, rgba(255, 124, 0, .08), transparent 32%),
      rgba(4, 16, 33, .36);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 45px rgba(0,0,0,.2);
  }
  .board-copy { min-height: 34px; }
  .board-kicker { margin-bottom: 2px; font-size: .59rem; }
  .board-copy p { font-size: .76rem; line-height: 1.25; }
  .icon-button { width: 34px; height: 34px; font-size: 1.05rem; }
  .board { gap: clamp(5px, .8vw, 8px); margin-top: 9px; }
  .tile { border-radius: 10px; font-size: clamp(.9rem, 2.6vh, 1.2rem); }
  .legend { gap: 15px; margin-top: 9px; font-size: .66rem; }
  .prizes { margin-top: 8px; padding: 7px 9px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; border-radius: 13px; }
  .prizes-title { padding: 0; white-space: nowrap; font-size: .68rem; letter-spacing: .02em; }
  .prize-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 0; }
  .prize-grid span { padding: 7px 9px; font-size: .74rem; }

  footer { position: fixed; z-index: 3; left: 0; right: 0; bottom: 4px; padding: 0; pointer-events: none; font-size: .61rem; }
}

@media (max-width: 880px) {
  .play-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .access-card .key-row { grid-template-columns: minmax(0, 1fr) auto; }
  .access-card .primary { white-space: nowrap; }
}

@media (max-width: 620px) {
  body::before { opacity: .09; }
  .topbar { height: 66px; }
  .product-pill { padding: 8px 11px; font-size: .66rem; }
  .top-actions { gap: 6px; }
  .fullscreen-toggle { width: 38px; min-height: 36px; padding: 6px; }
  .fullscreen-toggle b { display: none; }
  .shell { margin-top: 10px; }
  .experience-heading { align-items: center; margin-bottom: 16px; }
  .experience-heading p { font-size: .88rem; }
  h1 { font-size: clamp(3rem, 19vw, 4.8rem); }
  .access-card .key-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .withdrawal-stat { grid-column: 1 / -1; }
  .board-card { padding: 14px; border-radius: 20px; }
  .board { gap: 7px; }
  .tile { border-radius: 11px; }
  .rules-brief span { font-size: .62rem; }
  .prizes-title { padding-top: 12px; }
  .launch-screen { padding: 15px; }
  .launch-card { padding: 24px 19px; border-radius: 23px; }
  .launch-logo { margin-bottom: 17px; }
  .launch-mark { width: 66px; height: 66px; margin-bottom: 14px; }
  .launch-actions { margin-top: 21px; }
  .launch-primary, .launch-secondary { min-height: 51px; }
}

@media (max-width: 899px) and (orientation: landscape) {
  html, body {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }
  body.rush-started {
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .topbar {
    width: calc(100% - 18px);
    height: clamp(38px, 10.5dvh, 44px);
  }
  .brand img { width: clamp(108px, 18vw, 145px); }
  .top-actions { gap: 5px; }
  .product-pill { padding: 5px 9px; font-size: .58rem; }
  .fullscreen-toggle { width: 32px; min-height: 30px; padding: 4px; }
  .fullscreen-toggle b { display: none; }
  .shell {
    width: 100%;
    height: calc(100dvh - clamp(38px, 10.5dvh, 44px));
    min-height: 0;
    margin: 0;
    overflow: hidden;
  }
  .experience {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }
  .experience-heading {
    width: calc(100% - 16px);
    min-height: 0;
    align-items: center;
    margin: 0 auto 2px;
  }
  .experience-heading .eyebrow { font-size: .5rem; letter-spacing: .11em; }
  .experience-heading p { display: none; }
  .experience-heading h1 { margin: 0; font-size: clamp(1.75rem, 8.2dvh, 2.35rem); line-height: .88; }
  .experience-heading .ghost { padding: 5px 8px; border-radius: 9px; font-size: .62rem; }
  .play-layout {
    width: calc(100% - 12px);
    height: 100%;
    min-height: 0;
    max-height: 100%;
    margin: 0 auto;
    padding: 4px 6px;
    grid-template-columns: minmax(205px, 36%) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 166, 36, .42);
    border-radius: 16px;
    background:
      linear-gradient(120deg, rgba(255, 136, 0, .08), transparent 28%),
      linear-gradient(145deg, rgba(20, 49, 84, .32), rgba(6, 20, 40, .2));
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 12px 32px rgba(0,0,0,.24);
  }
  .side-rail {
    align-self: stretch;
    min-height: 0;
    max-height: 100%;
    justify-content: center;
    gap: 4px;
    padding: 2px 8px 2px 0;
    overflow: hidden;
    border-right: 1px solid rgba(255, 172, 48, .18);
  }
  .play-main {
    width: min(100%, calc(100dvh - 142px));
    min-width: 0;
    max-height: 100%;
    margin: 0 auto;
  }
  .access-card {
    padding: 7px 9px;
    border: 0;
    border-radius: 12px;
    background: rgba(5, 18, 37, .22);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .access-card::after { display: none; }
  .access-card::before { width: 120px; height: 120px; opacity: .45; }
  .access-icon { display: none; }
  .access-card .eyebrow { font-size: .48rem; letter-spacing: .09em; }
  .access-card h2 { margin: 2px 0 3px; font-size: clamp(1.08rem, 4.8dvh, 1.35rem); }
  .access-card .lead {
    max-width: 100%;
    margin: 0 0 5px;
    overflow: hidden;
    color: var(--muted);
    font-size: .61rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .access-card label { margin-bottom: 3px; font-size: .6rem; }
  .access-card .key-row { grid-template-columns: minmax(0, 1fr) auto; gap: 5px; }
  .access-card input { padding: 7px 8px; border-radius: 9px; font-size: .7rem; }
  .access-card .primary { padding: 7px 9px; border-radius: 9px; font-size: .66rem; white-space: nowrap; }
  #keyHelp { margin-top: 3px; font-size: .5rem; }
  .access-card .message { margin-top: 4px; padding: 5px 7px; font-size: .58rem; line-height: 1.15; }
  .rules-brief { margin-top: 5px; gap: 4px; }
  .rules-brief div { padding: 4px 2px; border-radius: 8px; }
  .rules-brief strong { font-size: .78rem; }
  .rules-brief span { margin-top: 1px; font-size: .48rem; }
  .stats { grid-template-columns: 1fr; gap: 4px; }
  .stat {
    min-height: 0;
    padding: 6px 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 8px;
    border-radius: 10px;
  }
  .stat span { font-size: .57rem; }
  .stat strong, .main-stat strong { margin: 0; font-size: .86rem; }
  .withdrawal-stat { grid-column: auto; }
  .withdrawal-stat small { grid-column: 1 / -1; margin: 0; font-size: .48rem; }
  .result-card { padding: 7px; border-radius: 10px; }
  .result-card > span { font-size: .5rem; }
  .result-card > strong { margin-top: 2px; font-size: 1rem; }
  .result-card p { margin: 2px 0 5px; font-size: .62rem; }
  .result-card .primary { padding: 6px 9px; font-size: .62rem; }
  .side-rail .message { margin-top: 0; padding: 5px 7px; font-size: .58rem; line-height: 1.15; }
  .side-rail .secondary { padding: 6px 8px; font-size: .6rem; }
  .board-card { padding: 5px; border-radius: 12px; }
  .board-copy { min-height: 20px; gap: 5px; }
  .board-kicker { margin-bottom: 1px; font-size: .47rem; }
  .board-copy p { font-size: .56rem; line-height: 1.1; white-space: nowrap; }
  .icon-button { width: 25px; height: 25px; font-size: .78rem; }
  .board { gap: 3px; margin-top: 4px; }
  .tile { border-radius: 6px; font-size: clamp(.7rem, 3.8dvh, .92rem); }
  .legend { display: none; }
  .prizes {
    margin-top: 4px;
    padding: 4px 5px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    border-radius: 9px;
  }
  .prizes-title { padding: 0; white-space: nowrap; font-size: .52rem; }
  .prize-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 0; }
  .prize-grid span { padding: 4px 5px; border-radius: 6px; font-size: .54rem; white-space: nowrap; }
  footer { display: none; }

  .launch-screen { padding: 7px; }
  .launch-card {
    width: min(620px, calc(100% - 14px));
    max-height: calc(100dvh - 14px);
    padding: 9px 16px;
    overflow: hidden;
    border-radius: 18px;
  }
  .launch-logo { width: min(135px, 28%); margin-bottom: 5px; }
  .launch-mark { width: 48px; height: 48px; margin-bottom: 4px; }
  .launch-mark span { font-size: .82rem; }
  .launch-mark b { font-size: 1rem; }
  .launch-eyebrow { font-size: .48rem; }
  .launch-card h1 { margin: 2px 0; font-size: clamp(2rem, 10dvh, 2.8rem); }
  .launch-card p { margin: 3px auto 0; font-size: .62rem; line-height: 1.2; }
  .launch-actions { margin-top: 7px; gap: 5px; }
  .launch-primary, .launch-secondary { min-height: 35px; padding: 7px 10px; border-radius: 9px; font-size: .66rem; }
  .launch-status { min-height: 1em; margin-top: 4px !important; font-size: .52rem; }
}

/* Composicion movil horizontal V2: encabezado tipo Keno/Clave 5,
   tablero completo y premios laterales sin desplazamientos. */
@media (max-width: 899px) and (orientation: landscape) {
  .topbar {
    position: fixed;
    z-index: 5;
    inset: 0 0 auto;
    width: 100%;
    height: clamp(54px, 16dvh, 62px);
    padding: 0 10px;
  }
  .brand img { width: clamp(118px, 24vw, 176px); }
  .product-pill { display: none; }
  .fullscreen-toggle {
    width: 32px;
    min-height: 31px;
    padding: 4px;
    background: rgba(10, 27, 51, .58);
  }
  .shell {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    padding-top: clamp(54px, 16dvh, 62px);
    overflow: hidden;
  }
  .experience {
    position: relative;
    height: 100%;
    min-height: 0;
    display: block;
    overflow: hidden;
  }
  .experience-heading {
    position: fixed;
    z-index: 4;
    top: 4px;
    left: clamp(145px, 30vw, 230px);
    right: 58px;
    width: auto;
    height: clamp(46px, 14dvh, 55px);
    min-height: 0;
    margin: 0;
    display: flex;
    align-items: center;
  }
  .experience-heading > div { max-width: none; }
  .experience-heading .eyebrow {
    font-size: clamp(.48rem, 1.7dvh, .62rem);
    line-height: 1;
    letter-spacing: .16em;
  }
  .experience-heading h1 {
    margin: 3px 0 0;
    font-size: clamp(1.8rem, 8.2dvh, 2.55rem);
    line-height: .88;
  }
  .experience-heading p { display: none; }
  .experience-heading .ghost {
    position: fixed;
    z-index: 6;
    top: 13px;
    right: 49px;
    padding: 5px 8px;
    border-radius: 9px;
    font-size: .58rem;
  }
  .play-layout {
    width: calc(100% - 10px);
    height: 100%;
    min-height: 0;
    max-height: 100%;
    margin: 0 auto;
    padding: 4px 5px;
    grid-template-columns: minmax(205px, 36%) minmax(0, 1fr);
    gap: 7px;
    align-items: stretch;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
  }
  .side-rail {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    justify-content: center;
    gap: 4px;
    padding: 2px 7px 2px 0;
    overflow: hidden;
  }
  .play-main {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(96px, 23%, 132px);
    grid-template-rows: minmax(0, 1fr);
    gap: 5px;
    align-items: stretch;
    overflow: hidden;
  }
  .board-card {
    width: auto;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1;
    justify-self: end;
    padding: 5px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border-radius: 12px;
  }
  .board-copy { min-height: 20px; gap: 4px; }
  .board-kicker { margin-bottom: 1px; font-size: .46rem; }
  .board-copy p {
    max-width: 100%;
    overflow: hidden;
    font-size: .54rem;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .icon-button { width: 24px; height: 24px; font-size: .76rem; }
  .board {
    min-width: 0;
    min-height: 0;
    height: 100%;
    margin-top: 3px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: 3px;
  }
  .tile {
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 6px;
    font-size: clamp(.68rem, 3.5dvh, .92rem);
  }
  .legend { display: none; }
  .prizes {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    border-radius: 10px;
  }
  .prizes-title {
    padding: 0;
    text-align: center;
    white-space: normal;
    font-size: .52rem;
    line-height: 1.05;
  }
  .prize-grid {
    min-height: 0;
    flex: 1;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 3px;
  }
  .prize-grid span {
    min-height: 0;
    padding: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-align: center;
    white-space: normal;
    font-size: clamp(.46rem, 1.8dvh, .58rem);
    line-height: 1.05;
  }
  .prize-grid b {
    float: none;
    margin-top: 2px;
    font-size: clamp(.66rem, 2.5dvh, .82rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ===== RUSH · TRANSPARENCIA NIVEL CLAVE 5 ===== */

:root {
  --panel: rgba(5, 14, 29, 0.08);
  --panel-soft: rgba(10, 27, 49, 0.05);
}

/* Paneles secundarios, estadísticas y premios */
.panel,
.stat,
.prizes {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.025),
      transparent 34%
    ),
    rgba(5, 14, 29, 0.08);

  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* Panel para ingresar la clave */
.access-card {
  background:
    linear-gradient(
      145deg,
      rgba(255, 137, 0, 0.045),
      transparent 35%
    ),
    rgba(5, 15, 31, 0.055);

  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Panel del tablero */
.board-card {
  background:
    linear-gradient(
      135deg,
      rgba(255, 124, 0, 0.035),
      transparent 32%
    ),
    linear-gradient(
      315deg,
      rgba(41, 102, 165, 0.03),
      transparent 40%
    ),
    rgba(4, 13, 28, 0.07);

  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

/* Panel de resultado */
.result-card {
  background:
    linear-gradient(
      145deg,
      rgba(255, 117, 0, 0.045),
      rgba(5, 15, 31, 0.07)
    );
}

/* Cuadro completo de premios */
.prizes {
  background: rgba(5, 14, 29, 0.07);
}

/* Celdas individuales de premios */
.prize-grid span {
  background: rgba(18, 48, 82, 0.16);
}

/* Cuadros informativos: $1, 5 selecciones y 25 casillas */
.rules-brief div {
  background: rgba(20, 54, 92, 0.13);
}

/* Pantalla inicial */
.launch-card {
  background:
    linear-gradient(
      145deg,
      rgba(255, 127, 0, 0.045),
      transparent 36%
    ),
    rgba(5, 16, 33, 0.11);

  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* Pantalla horizontal de escritorio */
@media (min-width: 900px) and (orientation: landscape) {
  .play-layout {
    background:
      linear-gradient(
        120deg,
        rgba(255, 136, 0, 0.035),
        transparent 28%
      ),
      rgba(4, 12, 26, 0.075);

    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .access-card {
    background: rgba(5, 15, 31, 0.045);
  }

  .board-card {
    background:
      linear-gradient(
        135deg,
        rgba(255, 124, 0, 0.03),
        transparent 32%
      ),
      rgba(4, 13, 28, 0.065);
  }
}

/* Pantalla horizontal de móvil */
@media (max-width: 899px) and (orientation: landscape) {
  .play-layout {
    background:
      linear-gradient(
        120deg,
        rgba(255, 136, 0, 0.025),
        transparent 28%
      ),
      rgba(4, 12, 26, 0.055);

    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
  }

  .access-card {
    background: rgba(5, 15, 31, 0.04);
  }

  .board-card {
    background:
      linear-gradient(
        135deg,
        rgba(255, 124, 0, 0.025),
        transparent 32%
      ),
      rgba(4, 13, 28, 0.055);
  }
}