/* ===== "Try it" demos, set B: Rock Paper Scissors, Higher or Lower, High Striker, Gumball Machine, Rocket Launch =====
   JS: assets/demo-game-rock-paper-scissors.js, -higher-or-lower.js, -high-striker.js, -gumball.js, -rocket.js.
   Each game is recreated from its real plugin (plugins/game-<key>/frontend), restyled to the site's Matinee 2 look:
   paper/white cards, navy ink, ticket red, orange, flat fills. No pink, purple, violet or teal; green only for a win.
   Every selector is scoped under .dgb so nothing meets the site's or the other demos' classes.
   Reduced motion: competitions.js passes opts.reduce, the demos add .is-reduced (rules at the end of each block). */

.dgb { position: relative; width: 100%; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; font-family: var(--f-body); color: var(--text); }
.dgb p { margin: 0; }
.dgb [hidden] { display: none !important; }
.dgb button { font-family: inherit; }

/* Top row: a red pen note pointing at the game, and the real host's "Skip to result" (RevealGameHost.tsx:40-53) */
.dgb-bar { display: flex; align-items: flex-end; gap: 10px; min-height: 34px; }
.dgb-pen { flex: 1 1 auto; min-width: 0; margin: 0 0 -6px; font: 400 1.08rem/1.15 var(--f-hand); color: var(--accent); transform: rotate(-1.5deg); transform-origin: 0 50%; }
.dgb-pen::after { content: ""; display: inline-block; width: 30px; height: 20px; margin-left: 8px; vertical-align: -9px; background: currentColor;
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 30' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3C7 17 20 24 39 22M39 22l-8-6M39 22l-9 5'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: var(--m); mask: var(--m); }
.dgb-skip { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font: 500 .75rem/1.2 var(--f-body); cursor: pointer; transition: color .1s ease-in-out; }
.dgb-skip:hover { color: var(--text); }
.dgb-skip svg { width: 16px; height: 16px; flex: none; }

/* The game's window: a white ticket on the dialog's paper */
.dgb-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 8px 12px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-soft); user-select: none; -webkit-user-select: none; }
/* Fixed two-line room, as every real game's hint: it changes during play and must never move the controls */
.dgb-hint { width: 100%; min-height: 2.8em; font-size: 14px; line-height: 1.4; text-align: center; color: var(--muted); }

/* ---------- the result that follows the game (RevealPrizePopup.tsx:94-204 + RevealOutcomeMessage.tsx:73-79) ---------- */
.dgb-result { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 18px 18px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-soft); animation: dgb-result-in .45s cubic-bezier(.16,1.2,.3,1) both; }
.dgb-result.is-win { border: 2px solid var(--ga); }
.dgb-r-kicker { font: 700 1.125rem/1.2 var(--f-display); margin-bottom: 4px !important; }
.dgb-r-head { font: 900 1.6rem/1.1 var(--f-display); margin-bottom: 12px !important; }
.dgb-result.is-win .dgb-r-kicker, .dgb-result.is-win .dgb-r-head { color: var(--good); }
.dgb-result.is-loss .dgb-r-kicker { color: var(--faint); }
.dgb-result.is-loss .dgb-r-head { color: var(--bad); }
.dgb-r-prize { font-size: .95rem; font-weight: 500; color: var(--text); }
.dgb-r-prize b { font-weight: 900; color: var(--accent); }
.dgb-r-note, .dgb-r-lines { max-width: 28rem; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.dgb-r-note { margin-top: 14px !important; }
.dgb-again { width: 100%; margin-top: 16px; }
@keyframes dgb-result-in { from { opacity: 0; transform: scale(.92) translateY(8px); } }
.dgb.is-reduced .dgb-result { animation: none; }
@media (min-width: 520px) {
  .dgb-r-kicker { font-size: 1.5rem; }
  .dgb-r-head { font-size: 2.1rem; }
  .dgb-r-prize { font-size: 1.15rem; }
}

/* ---------- 3-2-1 before a self-playing game (RevealCountdown.tsx: 600 ms a step) ---------- */
.dgb-count { position: absolute; left: 50%; top: 50%; z-index: 9; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--ink); box-shadow: 0 14px 30px -14px rgba(19,24,54,.6); }
.dgb-count span { font: 800 48px/1 var(--f-display); color: var(--ink); animation: dgb-count-in .3s ease both; }
@keyframes dgb-count-in { from { opacity: 0; transform: scale(1.5); } }
.dgb.is-reduced .dgb-count span { animation: none; }


/* ===== Rock Paper Scissors (RpsGame.module.css) ===== */
.dgb-rps .rps-round { font: 600 12px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.dgb-rps .rps-arena { position: relative; width: min(380px, 100%); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 6px; padding-top: 40px; }
.dgb-rps .rps-side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dgb-rps .rps-who { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.dgb-rps .rps-hand { position: relative; width: min(118px, 28vw); aspect-ratio: 100 / 112; border-radius: 50%; transition: opacity .3s, background-color .3s; }
.dgb-rps .rps-hand svg { width: 100%; height: 100%; display: block; }
.dgb-rps .rps-hand.is-house svg { transform: scaleX(-1); }
.dgb-rps .rps-hand.shake { animation: dgb-rps-shake .38s ease-in-out 3; }
@keyframes dgb-rps-shake { 50% { transform: translateY(-16px) rotate(-4deg); } }
.dgb-rps .rps-hand.throw { animation: dgb-rps-throw .3s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes dgb-rps-throw { from { transform: scale(.8); } }
.dgb-rps .rps-hand.won { background-color: var(--st0); }        /* a flat gold disc behind the round's winner */
.dgb-rps .rps-hand.lost { opacity: .45; }
.dgb-rps .rps-vs { font: 800 18px var(--f-display); color: var(--faint); padding-bottom: 46px; }
.dgb-rps .rps-word { position: absolute; left: 50%; top: 0; z-index: 2; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font: 800 26px/1.2 var(--f-display); color: var(--ink); animation: dgb-rps-pop .38s ease-out; }
@keyframes dgb-rps-pop { from { transform: translateX(-50%) scale(1.5); opacity: 0; } }
.dgb-rps .rps-word.shoot { color: var(--ga); font-size: 30px; }
.dgb-rps .rps-pips { display: flex; gap: 5px; }
.dgb-rps .rps-pips i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); transition: background .3s; }
.dgb-rps .rps-pips.you i.on { background: var(--ink); border-color: var(--ink); }
.dgb-rps .rps-pips.house i.on { background: var(--ga); border-color: var(--ga); }
.dgb-rps .rps-picks { display: flex; gap: 10px; justify-content: center; width: min(380px, 100%); }
.dgb-rps .rps-pick { flex: 1; max-width: 112px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 14px;
  border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); font: 600 13px var(--f-body); cursor: pointer;
  transition: transform .15s, border-color .2s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.dgb-rps .rps-pick svg { width: 46px; height: auto; display: block; }
.dgb-rps .rps-pick:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--ink); }
.dgb-rps .rps-pick:disabled { opacity: .45; cursor: default; }
.dgb-rps .rps-pick.chosen { opacity: 1; border-color: var(--ga); box-shadow: 0 0 0 2px rgba(224, 32, 42, .22); }
.dgb.is-reduced.dgb-rps .rps-hand.shake, .dgb.is-reduced.dgb-rps .rps-hand.throw, .dgb.is-reduced.dgb-rps .rps-word { animation: none; }
.dgb.is-reduced.dgb-rps .rps-pick, .dgb.is-reduced.dgb-rps .rps-hand, .dgb.is-reduced.dgb-rps .rps-pips i { transition: none; }


/* ===== Higher or Lower (HiloGame.module.css) ===== */
.dgb-hilo .hl-ladder { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(300px, 100%); }
.dgb-hilo .hl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
.dgb-hilo .hl-step { height: 30px; border-radius: 9px; border: 1.5px solid var(--line-2); background: var(--bg); display: flex; justify-content: center; align-items: center;
  font: 700 13px var(--f-display); color: var(--faint); white-space: nowrap; overflow: hidden; transition: background .3s, border-color .3s, color .3s; }
.dgb-hilo .hl-step.is-prize { background: var(--st0); border-color: var(--st0); color: var(--ink); }
.dgb-hilo .hl-step.ok { background: var(--ink); border-color: var(--ink); color: #fff; }
.dgb-hilo .hl-step.bad { background: var(--ga); border-color: var(--ga); color: #fff; }
.dgb-hilo .hl-ladder small { color: var(--faint); font-size: 12px; }
.dgb-hilo .hl-table { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 6vw, 40px); }
.dgb-hilo .hl-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; perspective: 900px; }
.dgb-hilo .hl-slot > span:last-child { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.dgb-hilo .hl-card, .dgb-hilo .hl-flip { width: clamp(92px, 26vw, 118px); aspect-ratio: 5 / 7; position: relative; }
.dgb-hilo .hl-card { border-radius: 12px; box-shadow: 0 10px 22px -12px rgba(19, 24, 54, .55); }
.dgb-hilo .hl-face { position: absolute; inset: 0; border-radius: 12px; background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); overflow: hidden; }
.dgb-hilo .hl-face::before { content: ""; position: absolute; inset: 6px; border-radius: 8px; border: 1px solid var(--line); }
.dgb-hilo .hl-face.red { color: var(--ga); }
.dgb-hilo .hl-corner { position: absolute; left: 8px; top: 6px; display: flex; flex-direction: column; align-items: center; font: 700 clamp(17px, 4.6vw, 21px)/1 var(--f-display); }
.dgb-hilo .hl-corner i { font-style: normal; font-size: .8em; margin-top: 2px; }
.dgb-hilo .hl-corner.br { left: auto; top: auto; right: 8px; bottom: 6px; transform: rotate(180deg); }
.dgb-hilo .hl-pip { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; font-size: clamp(42px, 12vw, 54px); }
.dgb-hilo .hl-court { position: absolute; left: 22%; right: 22%; top: 20%; bottom: 20%; border-radius: 8px; background: var(--st0); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; align-items: center; }
.dgb-hilo .hl-court b { font: 700 clamp(30px, 8vw, 38px)/1 var(--f-display); }
.dgb-hilo .hl-court i { font-style: normal; font-size: 18px; }
.dgb-hilo .hl-flip { transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, .7, .3, 1); }
.dgb-hilo .hl-flip.flipped { transform: rotateY(180deg); }
.dgb-hilo .hl-flip.still { transition: none; }
.dgb-hilo .hl-flip > .hl-card { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.dgb-hilo .hl-front { transform: rotateY(180deg); }
/* Card back: flat ticket red, a white border and a dashed perforation, "SC" printed in the middle */
.dgb-hilo .hl-back { background: var(--ga); border: 4px solid #fff; outline: 1.5px solid var(--line-2); }
.dgb-hilo .hl-back::before { content: ""; position: absolute; inset: 6px; border-radius: 7px; border: 1.5px dashed rgba(255, 255, 255, .55); }
.dgb-hilo .hl-back::after { content: "SC"; position: absolute; inset: 0; display: flex; justify-content: center; align-items: center;
  font: 800 18px var(--f-display); color: #fff; letter-spacing: .08em; }
.dgb-hilo .hl-mark { position: absolute; right: -10px; top: -10px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
  font: 700 16px var(--f-display); color: #fff; animation: dgb-hl-pop .3s cubic-bezier(.3, 1.6, .5, 1) both; }
.dgb-hilo .hl-mark.ok { background: var(--ink); }
.dgb-hilo .hl-mark.bad { background: var(--ga); }
@keyframes dgb-hl-pop { from { transform: scale(0); } }
.dgb-hilo .hl-arrive { animation: dgb-hl-arrive .35s ease-out; }
@keyframes dgb-hl-arrive { from { transform: translateX(40%) scale(.92); opacity: 0; } }
.dgb-hilo .hl-buttons { display: flex; gap: 10px; }
.dgb-hilo .hl-guess { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
  font: 650 15px var(--f-body); cursor: pointer; transition: transform .12s, background .2s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.dgb-hilo .hl-guess svg { width: 14px; height: 14px; }
.dgb-hilo .hl-guess:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 86%, var(--ga)); transform: translateY(-1px); }
.dgb-hilo .hl-guess:disabled { opacity: .35; cursor: default; }
.dgb.is-reduced.dgb-hilo .hl-flip, .dgb.is-reduced.dgb-hilo .hl-step, .dgb.is-reduced.dgb-hilo .hl-guess { transition: none; }
.dgb.is-reduced.dgb-hilo .hl-mark, .dgb.is-reduced.dgb-hilo .hl-arrive { animation: none; }


/* ===== High Striker (StrikerGame.module.css) ===== */
.dgb-striker .hs-wrap { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 14px; width: 100%; }
.dgb-striker .hs-col { position: relative; display: flex; flex-direction: column; align-items: center; }
.dgb-striker .hs-bell { position: relative; z-index: 2; width: 64px; height: 56px; transform-origin: 50% 0; }
.dgb-striker .hs-bell svg { width: 100%; height: 100%; display: block; }
.dgb-striker .hs-bell.ring { animation: dgb-hs-ring .9s ease-out; }
@keyframes dgb-hs-ring { 15% { transform: rotate(14deg); } 35% { transform: rotate(-12deg); } 55% { transform: rotate(8deg); } 75% { transform: rotate(-4deg); } }
.dgb-striker .hs-flash { position: absolute; left: 50%; top: 28px; z-index: 1; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; pointer-events: none; opacity: 0; }
.dgb-striker .hs-flash.on { animation: dgb-hs-flash .9s ease-out; }
@keyframes dgb-hs-flash { 0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 201, 61, .9), 0 0 0 0 rgba(255, 201, 61, .5); } 100% { opacity: 0; box-shadow: 0 0 0 70px rgba(255, 201, 61, 0), 0 0 0 120px rgba(255, 201, 61, 0); } }
.dgb-striker .hs-ding { position: absolute; top: 6px; left: calc(50% + 38px); z-index: 3; white-space: nowrap; font: 800 22px var(--f-display); color: var(--ga);
  transform: rotate(-8deg) scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.dgb-striker .hs-ding.on { transform: rotate(-8deg) scale(1); }
.dgb-striker .hs-tower { position: relative; width: 66px; height: 224px; margin-top: -4px; border-radius: 10px 10px 4px 4px;
  background: repeating-linear-gradient(180deg, #1d2346 0 28px, #131836 28px 56px); border: 2px solid var(--ink); box-shadow: inset 0 0 0 4px #0e1230; }
.dgb-striker .hs-lights { position: absolute; top: 6px; bottom: 6px; width: 8px;
  background: radial-gradient(circle, #ffc93d 2.6px, transparent 3.2px) 0 0 / 8px 14px repeat-y; animation: dgb-hs-chase 1.2s linear infinite; }
.dgb-striker .hs-lights.l { left: 3px; }
.dgb-striker .hs-lights.r { right: 3px; animation-direction: reverse; }
@keyframes dgb-hs-chase { to { background-position: 0 14px; } }
.dgb-striker .hs-rail { position: absolute; left: 50%; top: 8px; bottom: 8px; width: 14px; margin-left: -7px; border-radius: 7px; background: #0a0d1f; }
.dgb-striker .hs-tick { position: absolute; left: -22px; right: -22px; height: 2px; background: rgba(255, 255, 255, .18); }
.dgb-striker .hs-tick.top { background: #ffc93d; opacity: .7; }
.dgb-striker .hs-puck { position: absolute; left: 50%; bottom: 0; z-index: 1; width: 30px; height: 18px; margin-left: -15px; border-radius: 9px; background: #ffc93d; box-shadow: inset 0 -3px 0 #d9a521; }
.dgb-striker .hs-scale { position: relative; height: 204px; width: 78px; margin-bottom: 72px; }
.dgb-striker .hs-scale span { position: absolute; left: 0; transform: translateY(50%); white-space: nowrap; font: 600 11px var(--f-body); letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); transition: color .3s; }
.dgb-striker .hs-scale span::before { content: ""; display: inline-block; width: 10px; height: 2px; margin-right: 6px; vertical-align: middle; background: currentColor; }
.dgb-striker .hs-scale span.hit { color: var(--ga); }
.dgb-striker .hs-side { width: 78px; height: 280px; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 4px; }
.dgb-striker .hs-power { font: 800 30px/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.dgb-striker .hs-power small { font-size: 14px; color: var(--faint); }
.dgb-striker .hs-power-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.dgb-striker .hs-base { position: relative; width: 150px; height: 64px; margin-top: -2px; }
.dgb-striker .hs-pad { position: absolute; left: 0; bottom: 0; width: 140px; height: 60px; padding: 0; border: 0; border-radius: 30px; background: none; cursor: pointer;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.dgb-striker .hs-pad svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dgb-striker .hs-pad[disabled] { cursor: default; }
.dgb-striker .hs-pad-top { transition: transform .12s; transform-origin: 70px 30px; }
.dgb-striker .hs-pad.pressed .hs-pad-top { transform: translateY(3px) scaleY(.7); }
.dgb-striker .hs-mallet { position: absolute; right: -46px; bottom: 26px; width: 96px; height: 42px; pointer-events: none; transform-origin: 94% 50%;
  transform: rotate(55deg); transition: transform .16s cubic-bezier(.6, 0, .9, .5); }
.dgb-striker .hs-mallet svg { width: 100%; height: 100%; display: block; transform: scaleX(-1); }
.dgb-striker .hs-mallet.down { transform: rotate(-6deg); transition-duration: .12s; }
.dgb-striker .hs-swings { display: flex; gap: 8px; align-items: center; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.dgb-striker .hs-swings i { width: 12px; height: 12px; border-radius: 50%; background: var(--ga); transition: background .3s; }
.dgb-striker .hs-swings i.used { background: var(--surface-2); }
.dgb-striker .hs-close { position: absolute; left: calc(50% + 40px); white-space: nowrap; pointer-events: none; font: 800 13px var(--f-display); color: var(--ga);
  animation: dgb-hs-close 1.2s ease-out forwards; }
@keyframes dgb-hs-close { from { opacity: 0; transform: translateX(-6px); } 20% { opacity: 1; transform: none; } 80% { opacity: 1; } to { opacity: 0; } }
@media (max-width: 420px) {
  .dgb-striker .hs-side { width: 56px; }
  .dgb-striker .hs-scale { width: 64px; }
  .dgb-striker .hs-power { font-size: 24px; }
}
.dgb.is-reduced.dgb-striker .hs-bell.ring, .dgb.is-reduced.dgb-striker .hs-flash.on, .dgb.is-reduced.dgb-striker .hs-lights, .dgb.is-reduced.dgb-striker .hs-close { animation: none; }
.dgb.is-reduced.dgb-striker .hs-puck { transition: none !important; }
.dgb.is-reduced.dgb-striker .hs-mallet, .dgb.is-reduced.dgb-striker .hs-pad-top, .dgb.is-reduced.dgb-striker .hs-ding { transition: none; }


/* ===== Gumball Machine (GumballGame.module.css) ===== */
.dgb-gumball .gb-scene { position: relative; width: 240px; height: 330px; }
.dgb-gumball .gb-cap { position: absolute; left: 50%; top: 0; z-index: 3; width: 64px; height: 20px; margin-left: -32px; border-radius: 32px 32px 6px 6px; background: var(--ga); }
.dgb-gumball .gb-cap::after { content: ""; position: absolute; left: 50%; top: -10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--ga); }
.dgb-gumball .gb-globe { position: absolute; left: 20px; top: 14px; z-index: 2; width: 200px; height: 200px; border-radius: 50%; overflow: hidden;
  background: #f4f8ff; box-shadow: inset 0 0 0 3px var(--ink); }
.dgb-gumball .gb-glass { position: absolute; inset: 0; z-index: 5; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse 30% 18% at 32% 22%, rgba(255, 255, 255, .85), transparent 70%); }
.dgb-gumball .gb-ball { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--c);
  box-shadow: inset -2px -3px 0 rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(19, 24, 54, .25); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), opacity .3s; }
.dgb-gumball .gb-ball::after { content: ""; position: absolute; left: 6px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .8); }
.dgb-gumball .gb-ball.gold { z-index: 1; background: #ffc93d; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #d9a521, inset -2px -3px 0 rgba(150, 100, 0, .3); }
.dgb-gumball .gb-ball.jostle { animation: dgb-gb-jostle .42s ease-out; }
@keyframes dgb-gb-jostle { 35% { transform: translate(var(--jx), var(--jy)); } }
.dgb-gumball .gb-ball.gone { animation: dgb-gb-gone .3s ease-in forwards; }
@keyframes dgb-gb-gone { to { transform: translateY(40px) scale(.4); opacity: 0; } }
.dgb-gumball .gb-neck { position: absolute; left: 50%; top: 206px; z-index: 3; width: 120px; height: 14px; margin-left: -60px; border-radius: 4px; background: var(--ink); }
.dgb-gumball .gb-base { position: absolute; left: 50%; top: 218px; z-index: 2; width: 176px; height: 98px; margin-left: -88px; border-radius: 6px;
  clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%); background: var(--ga); }
.dgb-gumball .gb-label { position: absolute; left: 14px; top: 12px; font: 700 10px var(--f-display); letter-spacing: .14em; color: #fff; }
.dgb-gumball .gb-crank { position: absolute; left: 50%; top: 226px; z-index: 4; width: 58px; height: 58px; margin-left: -29px; padding: 0; border: 3px solid var(--ink); border-radius: 50%;
  background: #fff; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.dgb-gumball .gb-crank:disabled { cursor: default; }
.dgb-gumball .gb-crank:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dgb-gumball .gb-handle { position: absolute; inset: 0; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.dgb-gumball .gb-crank.dragging .gb-handle { transition: none; }
.dgb-gumball .gb-handle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 10px; margin: -5px 0 0 -22px; border-radius: 5px; background: var(--ink); }
.dgb-gumball .gb-handle::after { content: ""; position: absolute; left: calc(50% + 12px); top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 0 2px var(--ink); }
.dgb-gumball .gb-chute { position: absolute; left: 50%; top: 290px; z-index: 3; width: 48px; height: 22px; margin-left: -24px; border-radius: 8px 8px 4px 4px; background: #0a0d1f; box-shadow: 0 0 0 3px #fff; }
.dgb-gumball .gb-tray { position: absolute; left: 50%; top: 312px; z-index: 3; width: 96px; height: 16px; margin-left: -48px; border-radius: 0 0 40px 40px; background: var(--ink); }
.dgb-gumball .gb-out { position: absolute; left: 50%; top: 286px; z-index: 4; width: 30px; height: 30px; margin-left: -15px; opacity: 0; }
.dgb-gumball .gb-out.roll { animation: dgb-gb-roll .8s cubic-bezier(.4, 0, .6, 1) forwards; }
@keyframes dgb-gb-roll { 0% { opacity: 1; transform: translate(0, -6px) rotate(0); } 60% { opacity: 1; transform: translate(18px, 16px) rotate(220deg); } 100% { opacity: 1; transform: translate(4px, 12px) rotate(300deg); } }
.dgb-gumball .gb-out i { position: absolute; inset: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(19, 24, 54, .3); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.dgb-gumball .gb-out.is-gold i { background: #ffc93d; box-shadow: inset 0 0 0 2px #d9a521; }
.dgb-gumball .gb-out .h1 { clip-path: inset(0 50% 0 0); }
.dgb-gumball .gb-out .h2 { clip-path: inset(0 0 0 50%); }
.dgb-gumball .gb-out.open .h1 { transform: translate(-14px, -4px) rotate(-35deg); }
.dgb-gumball .gb-out.open .h2 { transform: translate(14px, -4px) rotate(35deg); }
.dgb-gumball .gb-prize { position: absolute; left: 50%; top: 78px; z-index: 6; max-width: 260px; padding: 10px 16px; border-radius: 12px; text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%) scale(0); transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.dgb-gumball .gb-prize.show { transform: translateX(-50%) scale(1); }
.dgb-gumball .gb-prize.win { background: var(--st0); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 16px 30px -16px rgba(19, 24, 54, .6); font-size: 13px; font-weight: 600; }
.dgb-gumball .gb-prize.loss { background: var(--surface); color: var(--muted); border: 1.5px solid var(--line-2); box-shadow: var(--shadow-soft); font-size: 13px; }
.dgb-gumball .gb-prize b { display: block; font: 800 24px var(--f-display); }
.dgb-gumball .gb-turns { display: flex; gap: 6px; align-items: center; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.dgb-gumball .gb-turns i { width: 12px; height: 12px; border-radius: 50%; background: var(--surface-2); transition: background .3s; }
.dgb-gumball .gb-turns i.on { background: var(--ga); }
/* Reduced motion: no jostle, roll or split — the ball and card land in place; the pauses stay */
.dgb.is-reduced.dgb-gumball .gb-ball.jostle { animation: none; }
.dgb.is-reduced.dgb-gumball .gb-ball.gone { animation: none; opacity: 0; }
.dgb.is-reduced.dgb-gumball .gb-out.roll { animation: none; opacity: 1; transform: translate(4px, 12px); }
.dgb.is-reduced.dgb-gumball .gb-out i, .dgb.is-reduced.dgb-gumball .gb-handle, .dgb.is-reduced.dgb-gumball .gb-prize { transition: none; }


/* ===== Rocket Launch (RocketGame.module.css) — world 1520 px, pad 40 px, Moon top 1360 px at 72 % across ===== */
.dgb-rocket .rk-sky { position: relative; width: 100%; height: 320px; border-radius: 12px; overflow: hidden; background: #131836; isolation: isolate; }
/* The sky in flat bands: pale blue to the Clouds line, light blue to Space, blue to Orbit, navy above */
.dgb-rocket .rk-air, .dgb-rocket .rk-world { position: absolute; left: 0; right: 0; bottom: 0; height: 1520px; will-change: transform; }
.dgb-rocket .rk-air { z-index: 0; background: linear-gradient(0deg, #cfe3ff 0 300px, #a9c4f0 300px 640px, #24479c 640px 980px, #131836 980px); }
.dgb-rocket .rk-far { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #fff 1px, transparent 1.6px) 0 0 / 53px 47px, radial-gradient(circle, #cfe3ff .8px, transparent 1.4px) 21px 13px / 37px 41px,
    radial-gradient(circle, #ffe08a 1px, transparent 1.7px) 9px 29px / 71px 61px; }
.dgb-rocket .rk-world { z-index: 2; }
.dgb-rocket .rk-near { position: absolute; left: 0; right: 0; top: 0; bottom: 640px; pointer-events: none;
  background: radial-gradient(circle, #fff 1.4px, transparent 2.2px) 13px 7px / 97px 89px, radial-gradient(circle, #ffe08a 1.2px, transparent 2px) 50px 40px / 131px 113px; }
.dgb-rocket .rk-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: var(--st3); border-top: 2px solid var(--ink); }
.dgb-rocket .rk-padblock { position: absolute; left: 50%; bottom: 32px; width: 84px; height: 12px; margin-left: -42px; border-radius: 3px; background: var(--ink); }
.dgb-rocket .rk-gantry { position: absolute; left: calc(50% - 60px); bottom: 40px; width: 16px; height: 124px;
  background: repeating-linear-gradient(45deg, transparent 0 7px, var(--ga) 7px 9px), repeating-linear-gradient(-45deg, transparent 0 7px, var(--ga) 7px 9px);
  border-left: 3px solid var(--ga); border-right: 3px solid var(--ga); }
.dgb-rocket .rk-gantry::after { content: ""; position: absolute; top: 34px; left: 13px; width: 24px; height: 4px; background: var(--ga); border-radius: 2px; }
.dgb-rocket .rk-cloud { position: absolute; }
.dgb-rocket .rk-cloud svg { display: block; }
.dgb-rocket .rk-planet { position: absolute; left: 20%; bottom: 760px; width: 62px; height: 62px; }
.dgb-rocket .rk-moon { position: absolute; left: 72%; bottom: 1200px; width: 160px; height: 160px; margin-left: -80px; border-radius: 50%; background: #efeadf; box-shadow: inset -14px -16px 0 #ddd6c6; }
.dgb-rocket .rk-moon i { position: absolute; border-radius: 50%; background: #d6cfbd; }
.dgb-rocket .rk-band { position: absolute; left: 0; right: 0; border-top: 1.5px dashed rgba(255, 255, 255, .6); pointer-events: none; }
.dgb-rocket .rk-band span { position: absolute; left: 8px; bottom: 4px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .9); white-space: nowrap;
  font: 600 10px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); transition: background .3s; }
.dgb-rocket .rk-band span b { margin-right: 6px; font: 700 12px var(--f-display); letter-spacing: .02em; text-transform: none; color: var(--ink); }
.dgb-rocket .rk-band.on { border-top-color: #ffc93d; }
.dgb-rocket .rk-band.on span { background: var(--st0); color: var(--ink); }
.dgb-rocket .rk-craft { position: absolute; left: 50%; bottom: 40px; z-index: 4; width: 44px; height: 110px; transform: translateX(-50%); transform-origin: 50% 70%; }
.dgb-rocket .rk-body { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; }
.dgb-rocket .rk-flame { position: absolute; left: 50%; top: 92px; z-index: 1; width: 26px; height: 62px; margin-left: -13px; transform-origin: 50% 0; opacity: 1;
  animation: dgb-rk-flicker .09s ease-in-out infinite alternate; transition: opacity .25s; }
@keyframes dgb-rk-flicker { from { transform: scaleY(.88) scaleX(1.04); } to { transform: scaleY(1.14) scaleX(.94); } }
.dgb-rocket .rk-craft[data-flame="land"] .rk-flame { animation-name: dgb-rk-flicker-small; }
@keyframes dgb-rk-flicker-small { from { transform: scaleY(.42); } to { transform: scaleY(.56); } }
.dgb-rocket .rk-craft[data-flame="sputter"] .rk-flame { animation: dgb-rk-sputter .5s steps(1) forwards; }
@keyframes dgb-rk-sputter { 0% { opacity: 1; transform: scaleY(.7); } 15% { opacity: .1; } 30% { opacity: .9; transform: scaleY(.45); } 45% { opacity: 0; } 60% { opacity: .6; transform: scaleY(.3); } 75%, 100% { opacity: 0; } }
.dgb-rocket .rk-craft[data-flame="off"] .rk-flame { opacity: 0; animation: none; }
.dgb-rocket .rk-craft.shake .rk-body { animation: dgb-rk-shake .07s linear infinite; }
@keyframes dgb-rk-shake { 0% { transform: translate(0, 0); } 25% { transform: translate(-1.2px, .6px); } 50% { transform: translate(1px, -.5px); } 75% { transform: translate(-.6px, -.8px); } }
.dgb-rocket .rk-smoke { position: absolute; bottom: 36px; z-index: 3; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: #fff; box-shadow: inset 0 -4px 0 rgba(19, 24, 54, .1); animation: dgb-rk-smoke 1.8s ease-out forwards; }
@keyframes dgb-rk-smoke { 0% { opacity: .95; transform: translate(0, 0) scale(.4); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(2.4); } }
.dgb-rocket .rk-flag { position: absolute; left: calc(72% + 20px); bottom: 1350px; z-index: 3; width: 58px; height: 58px; transform-origin: 8% 100%; transform: scale(0); }
.dgb-rocket .rk-flag.show { animation: dgb-rk-flag .6s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes dgb-rk-flag { to { transform: scale(1); } }
.dgb-rocket .rk-flag svg { width: 100%; height: 100%; display: block; }
.dgb-rocket .rk-dust { position: absolute; bottom: 1352px; z-index: 3; width: 18px; height: 10px; margin-left: -9px; border-radius: 50%; background: #efeadf; pointer-events: none;
  animation: dgb-rk-dust .9s ease-out forwards; }
@keyframes dgb-rk-dust { from { opacity: .9; transform: translateX(0) scale(.5); } to { opacity: 0; transform: translateX(var(--dx)) scale(2); } }
.dgb-rocket .rk-hud { position: absolute; top: 10px; left: 10px; z-index: 6; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1.5px solid var(--ink); }
.dgb-rocket .rk-hud small { display: block; font: 600 9px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.dgb-rocket .rk-hud b { font: 800 18px var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.dgb-rocket .rk-status { position: absolute; top: 10px; right: 10px; z-index: 6; padding: 5px 10px; border-radius: 99px; white-space: nowrap;
  font: 600 11px var(--f-body); letter-spacing: .08em; text-transform: uppercase; background: var(--surface); color: var(--accent); border: 1.5px solid var(--ga); }
.dgb-rocket .rk-status.good { background: var(--st0); color: var(--ink); border-color: var(--ink); }
.dgb-rocket .rk-status.bad { background: var(--surface-2); color: var(--muted); border-color: var(--line-2); }
.dgb-rocket .rk-banner { position: absolute; left: 50%; top: 56px; z-index: 6; padding: 4px 14px; border-radius: 10px; white-space: nowrap; opacity: 0; transform: translateX(-50%) scale(.6);
  font: 800 24px var(--f-display); letter-spacing: -.01em; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .25s; }
.dgb-rocket .rk-banner.show { opacity: 1; transform: translateX(-50%) scale(1); }
.dgb-rocket .rk-banner.win { background: var(--st0); color: var(--ink); border: 2px solid var(--ink); }
.dgb-rocket .rk-banner.loss { background: var(--surface); color: var(--ink); border: 2px solid var(--line-2); }
@media (max-width: 480px) {
  .dgb-rocket .rk-sky { height: 300px; }
  .dgb-rocket .rk-banner { font-size: 20px; }
  .dgb-rocket .rk-hud b { font-size: 15px; }
  .dgb-rocket .rk-status { font-size: 9.5px; letter-spacing: .04em; padding: 4px 8px; }
}
/* Reduced motion: no shake, flicker, smoke or dust; the flight steps every 700 ms instead of gliding (RocketGame.tsx) */
.dgb.is-reduced.dgb-rocket .rk-flame, .dgb.is-reduced.dgb-rocket .rk-craft.shake .rk-body { animation: none; }
.dgb.is-reduced.dgb-rocket .rk-craft[data-flame="sputter"] .rk-flame { opacity: 0; }
.dgb.is-reduced.dgb-rocket .rk-smoke, .dgb.is-reduced.dgb-rocket .rk-dust { display: none; }
.dgb.is-reduced.dgb-rocket .rk-flag.show { animation: none; transform: scale(1); }
.dgb.is-reduced.dgb-rocket .rk-banner { transition: none; }
