/* ============================================================
   GiverGames Deal or No Deal -- dnd.css
   Uses the tokens from style.css (teal, ink, charcoal, yellow).
   ============================================================ */

/* Anything marked hidden stays hidden, even if it has a display style */
.dnd-page [hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.dnd-page { background: var(--ink); }

.dnd-stage {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 64px);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(19,199,182,0.18), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, #0A1C20 100%);
  color: var(--white);
  padding: 40px 0 72px;
}

/* Sweeping stage spotlights */
.dnd-spotlights { position: absolute; inset: 0; pointer-events: none; }
.spot {
  position: absolute;
  top: -20%;
  width: 46%;
  height: 120%;
  background: linear-gradient(180deg, rgba(253,205,44,0.10), transparent 75%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  filter: blur(6px);
}
.spot-1 { left: 2%;  animation: sweep 9s ease-in-out infinite alternate; }
.spot-2 { right: 2%; animation: sweep 11s ease-in-out infinite alternate-reverse; }
@keyframes sweep {
  from { transform: rotate(-14deg); }
  to   { transform: rotate(14deg); }
}

.dnd-wrap {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.dnd-muted { color: rgba(255,255,255,0.62); }

/* The screens are <section>s; skip the site-wide section padding */
.dnd-screen { padding: 0; }


/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: relative;
  max-width: 560px;
  margin: 0 auto 36px;
  padding: 26px 28px 22px;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(180deg, #1D3238, var(--charcoal));
  box-shadow: 0 0 0 3px rgba(253,205,44,0.55), 0 18px 50px rgba(0,0,0,0.45), inset 0 0 40px rgba(0,0,0,0.35);
}

/* Chasing light bulbs around the frame */
.marquee-bulbs {
  position: absolute;
  inset: 7px;
  border-radius: 16px;
  pointer-events: none;
  --bulb: radial-gradient(circle, #FFF6C8 0 2.5px, var(--yellow) 3px, rgba(253,205,44,0.35) 4.5px, transparent 5.5px);
  background:
    var(--bulb) 0 0 / 22px 14px repeat-x,
    var(--bulb) 0 100% / 22px 14px repeat-x,
    var(--bulb) 0 0 / 14px 22px repeat-y,
    var(--bulb) 100% 0 / 14px 22px repeat-y;
  animation: chase 1.1s steps(2) infinite;
}
@keyframes chase {
  0%   { background-position: 0 0, 11px 100%, 0 11px, 100% 0; opacity: 1; }
  50%  { opacity: 0.55; }
  100% { background-position: 22px 0, 33px 100%, 0 33px, 100% 22px; opacity: 1; }
}

.marquee-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.marquee-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mt-deal, .mt-nodeal {
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  background: linear-gradient(180deg, #FFF3B0 0%, var(--yellow) 45%, #D49A00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.35)) drop-shadow(0 0 18px rgba(253,205,44,0.35));
}
.mt-or {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--teal);
  font-style: italic;
  text-transform: lowercase;
}

.marquee-sub {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}


/* Smaller marquee while a game is on, so the board fits the screen */
.dnd-stage.playing .marquee { max-width: 420px; padding: 20px 26px; margin-bottom: 18px; }
.dnd-stage.playing .marquee-kicker,
.dnd-stage.playing .marquee-sub { display: none; }
.dnd-stage.playing .mt-deal,
.dnd-stage.playing .mt-nodeal { font-size: clamp(1.5rem, 6vw, 2rem); }
.dnd-stage.playing .marquee-bulbs { inset: 3px; }
.marquee > :not(.marquee-bulbs) { position: relative; z-index: 1; }


/* ============================================================
   CARDS + GATE
   ============================================================ */
.dnd-card {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-card);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: rise 0.45s ease both;
}
.dnd-card h2 { font-size: 1.6rem; margin-bottom: 8px; }
.dnd-card > p { margin-bottom: 20px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.platform-pick {
  border: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin: 4px 0 20px;
  background: rgba(0,0,0,0.25);
  border-radius: var(--r-pill);
}
.platform-opt { position: relative; cursor: pointer; }
.platform-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.platform-opt span {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s ease, color 0.2s ease;
}
.platform-opt input:checked + span { background: var(--teal); color: var(--ink); }
.platform-opt input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

.gate-label {
  display: block;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}
.gate-input {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: inherit;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.gate-input::placeholder { color: rgba(255,255,255,0.35); }
.gate-input:focus { border-color: var(--teal); background: rgba(255,255,255,0.11); }

.gate-error {
  min-height: 1.4em;
  margin: 8px 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--yellow);
  text-align: left;
}

.btn-big { width: 100%; justify-content: center; padding: 16px 24px; font-size: 1.05rem; }
.btn-primary[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.gate-rules {
  list-style: none;
  counter-reset: rule;
  text-align: left;
  margin: 26px 0 18px;
  display: grid;
  gap: 10px;
}
.gate-rules li {
  counter-increment: rule;
  position: relative;
  padding-left: 40px;
  font-size: 0.94rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.gate-rules li::before {
  content: counter(rule);
  position: absolute;
  left: 0; top: -1px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(19,199,182,0.16);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.gate-rules strong { color: var(--white); }

.gate-fine { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.gate-fine strong { color: rgba(255,255,255,0.85); }


/* ============================================================
   GAME BOARD
   ============================================================ */
.game-status {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  min-height: 1.6em;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.game-status em { font-style: normal; color: var(--yellow); }

.board {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  gap: 24px;
  align-items: center;
}

/* Value ladder */
.ladder { display: grid; gap: 8px; }
.ladder li {
  position: relative;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
  letter-spacing: -0.01em;
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.4s ease;
}
.ladder-low li  { background: linear-gradient(90deg, rgba(19,199,182,0.30), rgba(19,199,182,0.12)); color: #BFF5EF; }
.ladder-high li { background: linear-gradient(90deg, rgba(253,205,44,0.14), rgba(253,205,44,0.34)); color: #FFE88A; }
.ladder li small { font-size: 0.7em; font-weight: 700; opacity: 0.7; margin-left: 2px; }

.ladder li.gone {
  opacity: 0.22;
  transform: scale(0.94);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
}
.ladder li.gone::after {
  content: '';
  position: absolute;
  left: 12%; right: 12%; top: 50%;
  height: 2px;
  background: currentColor;
  transform: rotate(-6deg);
}
.ladder li.just-gone { animation: knock 0.6s ease; }
@keyframes knock {
  0%   { transform: scale(1); opacity: 1; }
  35%  { transform: scale(1.18); opacity: 1; box-shadow: 0 0 22px rgba(255,255,255,0.4); }
  100% { transform: scale(0.94); opacity: 0.22; }
}


/* Briefcases */
.cases {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px 14px;
  perspective: 900px;
}

.case {
  position: relative;
  aspect-ratio: 1.25 / 1;
  border: none;
  background: none;
  padding: 0;
  margin-top: 10px; /* room for the handle */
  border-radius: 12px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.case:disabled { cursor: default; }
.case:not(:disabled):hover { transform: translateY(-4px); }
.case:not(:disabled):active { transform: translateY(0) scale(0.97); }

.case-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(.3,1.4,.5,1);
}
.case.open .case-inner { transform: rotateY(180deg); }

.case-face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Front: gold briefcase */
.case-front {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 38%),
    linear-gradient(180deg, #FFE27A 0%, var(--yellow) 40%, #D9A300 100%);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,0.16), inset 0 0 0 2px rgba(255,255,255,0.25), 0 8px 18px rgba(0,0,0,0.35);
}
/* Handle */
.case-front::before {
  content: '';
  position: absolute;
  top: -10px; left: 50%;
  width: 34%; height: 12px;
  transform: translateX(-50%);
  border: 3px solid #B88A00;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
/* Latches */
.case-front::after {
  content: '';
  position: absolute;
  top: 7px; left: 14%; right: 14%;
  height: 5px;
  background:
    linear-gradient(#8A6A00, #8A6A00) left / 14% 100% no-repeat,
    linear-gradient(#8A6A00, #8A6A00) right / 14% 100% no-repeat;
  border-radius: 2px;
}

.case-num {
  min-width: 46%;
  padding: 3px 6px;
  background: var(--white);
  color: var(--charcoal);
  border-radius: 7px;
  font-weight: 900;
  font-size: clamp(0.95rem, 2.6vw, 1.35rem);
  line-height: 1.15;
  text-align: center;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.1);
}

/* Back: value revealed */
.case-back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #23434A, var(--charcoal));
  border: 2px solid rgba(19,199,182,0.6);
  box-shadow: 0 0 24px rgba(19,199,182,0.35);
  flex-direction: column;
  gap: 0;
}
.case-back .val {
  font-size: clamp(1.15rem, 3.4vw, 1.7rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.case-back .unit {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 3px;
}
.case.high .case-back { border-color: rgba(253,205,44,0.75); box-shadow: 0 0 26px rgba(253,205,44,0.4); }
.case.high .case-back .unit { color: var(--yellow); }

/* After the moment, opened cases settle back */
.case.settled { opacity: 0.4; transform: scale(0.94); }
.case.settled .case-back { box-shadow: none; }

/* Suspense wobble before opening */
.case.wobble .case-inner { animation: wobble 0.5s ease; }
@keyframes wobble {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-6deg) scale(1.05); }
  40% { transform: rotate(5deg)  scale(1.08); }
  60% { transform: rotate(-4deg) scale(1.08); }
  80% { transform: rotate(2deg)  scale(1.04); }
}

/* Picking phase: cases glow invitingly */
.cases.picking .case:not(:disabled) .case-front { animation: beckon 2.4s ease-in-out infinite; }
.cases.picking .case:nth-child(2n) .case-front { animation-delay: -1.2s; }
@keyframes beckon {
  0%, 100% { box-shadow: inset 0 -5px 0 rgba(0,0,0,0.16), inset 0 0 0 2px rgba(255,255,255,0.25), 0 8px 18px rgba(0,0,0,0.35); }
  50%      { box-shadow: inset 0 -5px 0 rgba(0,0,0,0.16), inset 0 0 0 2px rgba(255,255,255,0.25), 0 0 26px rgba(253,205,44,0.55); }
}

/* Slot left behind by the player's own case */
.case.mine-slot { cursor: default; }
.case.mine-slot .case-inner { display: none; }
.case.mine-slot::after {
  content: 'Yours';
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(253,205,44,0.45);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253,205,44,0.75);
}


/* Your case podium */
.podium {
  margin: 30px auto 0;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: rise 0.5s ease both;
}
.podium-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
}
.podium-slot {
  width: 132px;
  padding: 14px 18px 18px;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 100%, rgba(253,205,44,0.28), transparent 70%);
  perspective: 900px;
}
.podium-slot .case { width: 100%; cursor: default; }
.podium-slot .case-num { font-size: 1.4rem; }
.podium-slot .case-back .val { font-size: 1.9rem; }
.podium-slot .case.drumroll .case-inner { animation: drum 0.16s linear infinite; }
@keyframes drum {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px) rotate(-1deg); }
  75% { transform: translateX(2px)  rotate(1deg); }
}


/* ============================================================
   THE DEALER
   ============================================================ */
.dealer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 14, 16, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade 0.3s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.dealer-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 34px 26px 28px;
  border-radius: 26px;
  text-align: center;
  background: linear-gradient(180deg, #1F3A40, var(--charcoal));
  box-shadow: 0 0 0 2px rgba(253,205,44,0.5), 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(19,199,182,0.2);
  animation: panelIn 0.5s cubic-bezier(.2,1.4,.4,1) both;
  overflow: hidden;
}
@keyframes panelIn {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.dealer-name {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  color: var(--teal);
  margin-bottom: 14px;
}

.dealer-calling p {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  animation: blink 1s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.45; } }

.ring {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 6px auto 16px;
}
.ring span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  animation: ripple 1.5s ease-out infinite;
}
.ring span:nth-child(2) { animation-delay: 0.5s; }
.ring span:nth-child(3) { animation-delay: 1s; }
.ring::after {
  content: '';
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 24px var(--yellow);
}
@keyframes ripple {
  from { transform: scale(0.35); opacity: 1; }
  to   { transform: scale(1);    opacity: 0; }
}

.dealer-offer { animation: rise 0.4s ease both; }
.offer-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.offer-label.final { color: var(--yellow); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.offer-amount {
  margin: 4px 0 6px;
  font-size: clamp(3.6rem, 16vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #FFF3B0 0%, var(--yellow) 50%, #D49A00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(253,205,44,0.45));
}
.offer-amount.landed { animation: thump 0.45s ease; }
@keyframes thump {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
.offer-unit { font-size: 0.32em; letter-spacing: 0.05em; }

.offer-context {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 22px;
}

.offer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.btn-deal, .btn-nodeal {
  padding: 16px 10px;
  border-radius: 16px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-deal {
  background: linear-gradient(180deg, #FFE27A, var(--yellow) 50%, #D9A300);
  color: var(--charcoal);
  box-shadow: 0 6px 0 #9C7400, 0 10px 24px rgba(253,205,44,0.35);
}
.btn-nodeal {
  background: linear-gradient(180deg, #2B4A51, #1A3036);
  color: var(--white);
  box-shadow: 0 6px 0 #0B1A1D, inset 0 0 0 2px rgba(19,199,182,0.55);
}
.btn-deal:hover, .btn-nodeal:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-deal:active, .btn-nodeal:active { transform: translateY(4px); box-shadow: none; }
.btn-deal:disabled, .btn-nodeal:disabled { opacity: 0.6; cursor: wait; }

.dealer-stamp {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.4rem;
  font-weight: 900;
  color: var(--yellow);
  background: rgba(24,34,40,0.9);
  text-shadow: 0 0 30px rgba(253,205,44,0.7);
  animation: stamp 0.5s cubic-bezier(.2,1.6,.4,1) both;
}
.dealer-stamp.nodeal { color: var(--teal); text-shadow: 0 0 30px rgba(19,199,182,0.7); font-size: 3.4rem; }
@keyframes stamp {
  from { transform: scale(2.2) rotate(-12deg); opacity: 0; }
  to   { transform: scale(1)   rotate(-6deg);  opacity: 1; }
}


/* ============================================================
   RESULT + CODE
   ============================================================ */
.result { position: relative; overflow: hidden; }
.result-kicker {
  font-size: 0.85rem !important;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px !important;
}
.result-points {
  font-size: clamp(3.4rem, 15vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 10px !important;
  color: var(--yellow);
  text-shadow: 0 0 30px rgba(253,205,44,0.4);
}
.result-unit { font-size: 0.3em; letter-spacing: 0.04em; color: var(--white); text-shadow: none; }
.result-line { color: rgba(255,255,255,0.75); margin-bottom: 24px !important; }

.code-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: rgba(0,0,0,0.28);
  border: 1.5px dashed rgba(253,205,44,0.55);
}
.code-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.code-value {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white);
  user-select: all;
  -webkit-user-select: all;
  word-break: break-all;
}
.code-box .btn-primary { justify-content: center; width: 100%; }

.code-steps {
  text-align: left;
  margin: 0 0 14px 20px;
  list-style: decimal;
  display: grid;
  gap: 6px;
  font-size: 0.93rem;
  color: rgba(255,255,255,0.78);
}
.result .gate-fine { margin-bottom: 20px; }

.all-cases {
  margin-top: 22px;
  text-align: left;
}
.all-cases summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
  text-align: center;
}
.all-cases-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.all-cases-grid div {
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
}
.all-cases-grid b { display: block; font-size: 1rem; color: var(--white); }
.all-cases-grid .is-mine { background: rgba(253,205,44,0.18); color: var(--yellow); }

/* Celebration sparks */
.spark {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  pointer-events: none;
  animation: burst 1.3s cubic-bezier(.1,.7,.3,1) forwards;
}
@keyframes burst {
  from { transform: translate(0,0) rotate(0); opacity: 1; }
  to   { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .dnd-stage { padding: 24px 0 56px; }
  .marquee { margin-bottom: 24px; padding: 22px 20px 18px; }

  .board {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* Ladder becomes two rows of chips: low above, high below */
  .ladder { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .ladder li { padding: 7px 2px; font-size: 0.85rem; border-radius: 8px; }
  .ladder li small { display: none; }
  .ladder-high { order: 3; }

  .cases { gap: 14px 8px; }
  .case { margin-top: 9px; }
  .case-front::before { height: 10px; top: -9px; border-width: 2.5px; }
  .case-front::after { top: 5px; height: 4px; }

  .game-status { font-size: 1.02rem; margin-bottom: 16px; }
  .podium { margin-top: 22px; }

  .dnd-card { padding: 26px 20px; }
}

@media (max-width: 380px) {
  .cases { gap: 12px 6px; }
  .ladder li { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .spot, .marquee-bulbs, .cases.picking .case .case-front, .ring span, .dealer-calling p { animation: none !important; }
  .case-inner { transition-duration: 0.01ms !important; }
}
