@font-face {
  font-family: BigDots;
  src: url(lcd-media/BigDots.ttf) format("truetype");
  font-display: swap;
}
* { box-sizing: border-box; }
body { --cine-menu-height: 72px; margin: 0; padding-bottom: var(--cine-menu-height); background: #160e13; color: #fff2bb; font: 16px system-ui, sans-serif; }
.scene { position: relative; width: min(100%, 390px); margin-inline: auto; container-type: inline-size; }
@media (max-width: 540px) { .scene { width: 100%; } }
@media (max-width: 760px) and (orientation: portrait) {
  .scene.is-mobile-framed {
    width: min(100%, calc((100dvh - var(--cine-menu-height) - 50px) * 854 / (1842 * .829)));
  }
}
.cinema-art { display: block; width: 100%; height: auto; }
.cinema-facade { display: block; }
.tablet-light-desktop { display: none; }

.lcd {
  --player-bar-height: 34px;
  position: absolute;
  inset: 17.1% 7.49% 42.94%;
  overflow: hidden;
  border: clamp(5px, 2cqw, 9px) solid #050507;
  border-bottom-color: #17171c;
  background: #0a1230;
  color: #d6faff;
}
.lcd:not(:fullscreen, .fullscreen-layout)::after {
  content: '';
  position: absolute;
  z-index: 4;
  inset: 0;
  box-shadow: inset 0 0 0 1px #000, inset 0 4px 10px #000c, inset 3px 0 7px #0009,
    inset -3px -2px 6px #0008;
  pointer-events: none;
}

.lcd-interface {
  --player-bar-width: min(max(145px, 53%), 240px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1.6cqw;
  height: 100%;
  padding: 2cqw;
  background: repeating-linear-gradient(#101a42 0 2px, #0d1739 2px 4px);
}
.boulevard {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  background: #1e1f26;
  pointer-events: none;
}
.lcd-interface:not([data-view="home"]) .boulevard { display: block; }
.boulevard-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: filter 210ms ease-out;
}
.boulevard.is-lit-for-gold .boulevard-art {
  filter: brightness(.57) saturate(.72);
  transition-duration: 120ms;
}
.boulevard-celebration-light {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse at 24% 57%, color-mix(in srgb, var(--gold-glow, #ffc65d), transparent 42%), transparent 72%);
  mix-blend-mode: screen;
  transition: opacity 210ms ease-out;
}
.boulevard.is-lit-for-gold .boulevard-celebration-light {
  opacity: 1;
  transition-duration: 120ms;
}
.boulevard.is-storm .boulevard-art {
  filter: brightness(.27) saturate(.5) hue-rotate(24deg);
  transition-duration: 280ms;
}
.boulevard.is-storm .boulevard-celebration-light {
  opacity: .8;
  background: radial-gradient(ellipse at 50% 36%, #a694eb84, transparent 62%);
}
.boulevard.is-storm .wind-munky { visibility: hidden; }
.boulevard.is-storm ~ .reveal .revealed-cards { filter: brightness(.55); }
.full-art-sequence {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.full-art-sequence::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: brightness(.38) saturate(.68);
  background:
    radial-gradient(circle at var(--full-art-source-x, 50%) var(--full-art-source-y, 60%), #e3383238, transparent 28%),
    radial-gradient(ellipse at 56% 38%, #99182374, #30040c63 60%, #0b0106b0 100%);
  animation: full-art-light-in 300ms ease-out both;
}
@keyframes full-art-light-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.full-art-actor {
  position: absolute;
  inset: max(14%, calc(var(--player-bar-height) + 10px)) 0 max(15%, 44px);
  margin-inline: auto;
  width: min(85%, 520px);
  filter: drop-shadow(0 0 12px #e7343daa) drop-shadow(0 8px 4px #160006d9);
}
.full-art-actor img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transition: opacity 65ms ease-out;
}
.full-art-actor[data-pose="0"] [data-frame="0"],
.full-art-actor[data-pose="1"] [data-frame="1"],
.full-art-actor[data-pose="2"] [data-frame="2"] { opacity: 1; }
.full-art-backdrop {
  position: absolute;
  inset: 0;
}
.full-art-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  filter: brightness(.76) saturate(.87);
  animation: full-art-arena-in 680ms 80ms ease-out both;
}
@keyframes full-art-arena-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.full-art-sequence[data-scene="scarface"] .full-art-backdrop img {
  object-position: center 46%;
  filter: brightness(.88) saturate(.94);
}
.full-art-sequence[data-scene="scarface"] .full-art-actor {
  inset-block-end: -4px;
}
.full-art-sequence[data-scene="gladiator"]::before {
  background:
    radial-gradient(circle at var(--full-art-source-x, 50%) var(--full-art-source-y, 60%), #ffa54e66, transparent 35%),
    linear-gradient(180deg, #5223094d, #170c086e);
}
.full-art-sequence[data-scene="gladiator"] .full-art-actor {
  inset: max(6%, 16px) 0 -5px;
  width: min(92%, 540px);
  filter: drop-shadow(0 0 12px #ffaf5c85) drop-shadow(0 8px 5px #241109dd);
}
.full-art-sequence[data-scene="mask"]::before {
  background:
    radial-gradient(circle at var(--full-art-source-x, 50%) var(--full-art-source-y, 60%), #c6ff635d, transparent 35%),
    radial-gradient(ellipse at 55% 42%, #6ca92589, #31255b8c 66%, #0c0618e0);
}
.full-art-sequence[data-scene="mask"] .full-art-backdrop img {
  object-position: 40% center;
  filter: brightness(.88) saturate(.96);
}
.full-art-sequence[data-scene="mask"] .full-art-actor {
  inset: max(15%, calc(var(--player-bar-height) + 9px)) 0 0;
  width: min(93%, 590px);
  filter: drop-shadow(0 0 13px #abfd516e) drop-shadow(0 7px 4px #10071bdd);
}
.full-art-sequence[data-scene="mask"] [data-pose="2"] [data-frame="2"] {
  transform-origin: 50% 75%;
  animation: full-art-mask-pop 380ms ease-out;
}
@keyframes full-art-mask-pop {
  0% { transform: scale(.95, .98); }
  28% { transform: scale(1.045, 1.025); }
  55% { transform: scale(.985, .995); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .full-art-sequence::before, .full-art-backdrop img, .full-art-actor img,
  .full-art-sequence[data-scene="mask"] [data-pose="2"] [data-frame="2"] {
    animation: none;
    transition: none;
  }
}
.gorilla-transformation {
  position: absolute;
  z-index: 3;
  inset: 22% 0 auto;
  margin-inline: auto;
  width: min(65%, 400px);
  height: 49%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px #0b091c) drop-shadow(0 0 11px #9e8bdf);
}
.gorilla-transformation.is-gorilla {
  inset: auto 0 29%;
  width: min(90%, 520px);
  height: 66%;
}
@media (prefers-reduced-motion: no-preference) {
  .lcd-interface.is-roaring {
    animation: gorilla-impact-shake 620ms ease-out, gorilla-rumble 680ms ease-in-out 620ms infinite;
  }
}
@keyframes gorilla-impact-shake {
  0%, 100% { translate: 0 0; }
  7% { translate: -6px 2px; }
  15% { translate: 5px -3px; }
  24% { translate: -4px -1px; }
  34% { translate: 4px 2px; }
  47% { translate: -3px 1px; }
  60% { translate: 2px -1px; }
  74% { translate: -1px 1px; }
  87% { translate: 1px 0; }
}
@keyframes gorilla-rumble {
  0%, 100% { translate: 0 0; }
  18% { translate: -2px 1px; }
  36% { translate: 2px -1px; }
  54% { translate: -1px -1px; }
  72% { translate: 2px 1px; }
  88% { translate: -1px 1px; }
}
:is(.gorilla-zap, .gorilla-lightning) {
  position: absolute;
  z-index: 4;
  inset: 6% 0 auto;
  margin-inline: auto;
  width: min(100%, 720px);
  height: 67%;
  object-fit: contain;
  pointer-events: none;
}
.gorilla-lightning { z-index: 5; }
.lcd:not(:fullscreen, .fullscreen-layout) .lcd-interface {
  --transformation-top: calc(var(--player-bar-height) + env(safe-area-inset-top) + 10px);
  --transformation-bottom: max(60px, 19%);
}
.lcd:not(:fullscreen, .fullscreen-layout) .gorilla-transformation {
  inset: auto 0 var(--transformation-bottom);
  max-height: calc(100% - var(--transformation-top) - var(--transformation-bottom));
}
.lcd:not(:fullscreen, .fullscreen-layout) :is(.gorilla-zap, .gorilla-lightning) {
  inset: var(--transformation-top) 0 auto;
  height: calc(100% - var(--transformation-top) - var(--transformation-bottom));
}
@media (prefers-reduced-motion: reduce) {
  .boulevard-art, .boulevard-celebration-light { transition: none; }
}
.wind-munky {
  position: absolute;
  bottom: 33%;
  left: 50%;
  height: 38%;
  aspect-ratio: 2 / 3;
  transform: translateX(-48%);
}
.wind-munky::before {
  content: '';
  position: absolute;
  inset: auto 29% 2% 24%;
  height: 4%;
  background: radial-gradient(ellipse, #06060fd6 0 20%, transparent 74%);
}
.wind-munky img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
[data-gold-effect] { --gold-glow: #ffc65d; }
[data-gold-effect="holo"] { --gold-glow: #99e9ff; }
.wind-munky {
  transition: left 300ms cubic-bezier(.23,.85,.36,1), transform 300ms ease;
}
.wind-munky.is-celebrating {
  left: clamp(17%, 72px, 24%);
  z-index: 2;
  transform-origin: 48% 96%;
  transform: translateX(-48%) scale(1.24);
}
.wind-munky.is-celebrating img {
  image-rendering: auto;
  filter: drop-shadow(0 0 4px var(--gold-glow));
}
.wind-munky.is-celebrating::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -9% -30%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--gold-glow), transparent 57%), transparent 66%);
  animation: gentleman-neon-in 360ms ease-out both;
}
@keyframes gentleman-neon-in { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
.wind-litter { position: absolute; inset: 0; overflow: hidden; }
.wind-litter i {
  position: absolute;
  top: var(--top);
  left: -10%;
  width: var(--width);
  aspect-ratio: 1.5;
  background: linear-gradient(#e5cf9f 0 36%, #a99077 36% 55%, #c5af95 55% 80%, #5b5158 80%);
  clip-path: polygon(13% 0, 76% 0, 76% 16%, 100% 16%, 100% 64%, 83% 64%, 83% 100%,
    24% 100%, 24% 84%, 0 84%, 0 23%, 13% 23%);
  animation: street-gust var(--period) var(--delay) linear infinite;
}
.wind-litter i:nth-child(3n + 2) {
  background: linear-gradient(#bd776d 0 30%, #e3b99b 30% 55%, #824940 55% 80%, #ce957d 80%);
}
.wind-litter i:nth-child(3n) {
  background: linear-gradient(#91aa9f 0 26%, #526d6d 26% 61%, #7b9b99 61% 100%);
}
@keyframes street-gust {
  0% { transform: translate(0, 0) rotate(0deg); }
  29% { transform: translate(28cqw, -6cqw) rotate(155deg); }
  60% { transform: translate(57cqw, 2cqw) rotate(310deg); }
  100% { transform: translate(103cqw, -4cqw) rotate(540deg); }
}
.boulevard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 70%, #15151bb3 100%);
}
@media (prefers-reduced-motion: reduce) {
  .wind-litter i { display: none; }
}
.lcd-footer { position: relative; }
.lcd .attract {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0 2.5cqw;
  overflow: hidden;
  border: 0;
  background: #101923;
}
.attract-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.attract::after {
  content: '';
  position: absolute;
  inset: 38% 0;
  background: linear-gradient(transparent, #080c178c 45% 55%, transparent);
  pointer-events: none;
}
.attract-cta {
  position: relative;
  z-index: 1;
  color: #afffeb;
  font-size: clamp(13px, 5.1cqw, 26px);
  letter-spacing: .07em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 2px 2px #0b2636, 0 0 7px #19ffd0, 0 0 16px #00bdc9;
  pointer-events: none;
  animation: fullscreen-blink 1.65s steps(1, end) infinite;
}
.intro-dialogue {
  position: absolute;
  z-index: 2;
  top: 5%;
  left: 9%;
  max-width: 82%;
  padding: .7em .85em;
  border: 2px solid #221829;
  border-radius: 4px;
  background: #fff1cf;
  box-shadow: 3px 4px #24142aaa;
  color: #261e33;
  font: 800 clamp(12px, 3.8cqw, 18px) / 1.2 ui-monospace, monospace;
  text-align: left;
  visibility: hidden;
  pointer-events: none;
}
.intro-dialogue::after {
  content: '';
  position: absolute;
  top: calc(100% - 1px);
  left: 24%;
  width: 17px;
  height: 14px;
  background: #fff1cf;
  clip-path: polygon(0 0, 100% 0, 78% 25%, 54% 25%, 54% 50%, 30% 50%, 30% 75%, 0 75%);
}
.attract.is-speaking .intro-dialogue { visibility: visible; }
.intro-promo {
  position: absolute;
  z-index: 2;
  inset: 10% 4% auto;
  display: none;
  justify-items: center;
  gap: .05em;
  transform: rotate(var(--promo-angle));
  color: var(--promo-ink);
  font: 400 clamp(24px, 8.4cqw, 40px) / 1.08 BigDots, Impact, sans-serif;
  letter-spacing: .035em;
  text-transform: uppercase;
  pointer-events: none;
}
.intro-promo > span {
  position: relative;
  display: block;
  padding: .03em .08em;
  -webkit-text-stroke: 1.15px #000;
  paint-order: stroke fill;
  text-shadow: 0 2px 0 #000, 0 0 9px var(--promo-shadow);
}
.intro-promo > span:first-child { translate: -.22em; font-size: .83em; }
.intro-promo > span:last-child { translate: .12em; white-space: nowrap; }
.promo-collect {
  --promo-angle: -5deg;
  --promo-ink: #ffeb48;
  --promo-shadow: #c92f50;
}
.promo-earn {
  --promo-angle: 4deg;
  --promo-ink: #beff55;
  --promo-shadow: #008f99;
  inset: auto 4% 10%;
}
.promo-climb {
  --promo-angle: -4deg;
  --promo-ink: #ff7bd9;
  --promo-shadow: #6334b8;
  --promo-duration: 2.16s;
}
.promo-earn, .promo-climb { font-size: clamp(19px, 6.8cqw, 32px); }
.attract[data-promo="1"] .promo-collect,
.attract[data-promo="2"] .promo-earn,
.attract[data-promo="3"] .promo-climb {
  display: grid;
  animation: promo-drift var(--promo-duration, 2.02s) ease-in-out both;
}
@keyframes promo-drift {
  0% { opacity: 0; translate: -7px 6px; }
  24%, 76% { opacity: 1; translate: 0; }
  100% { opacity: 0; translate: 5px -3px; }
}
.channel-switch {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  background: #23232a;
}
.channel-switch canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.channel-switch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent 0 2px, #0a0b1252 2px 4px);
  box-shadow: inset 0 0 6cqw #0a0a12;
}
.channel-switch::before {
  content: '';
  position: absolute;
  inset: -36% 0 auto;
  height: 36%;
  background: linear-gradient(transparent, #d8edf83a 66%, #131a224d 75%, transparent);
  animation: channel-roll .24s linear both;
}
@keyframes channel-roll { to { transform: translateY(380%); } }
.lcd [hidden] { display: none; }
.lcd button {
  cursor: pointer;
  touch-action: manipulation;
  color: #d6faff;
  border: 1px solid #4957a2;
  background: #141a43;
  font: bold 3.35cqw ui-monospace, monospace;
}
.lcd button:hover, .lcd button:focus-visible { outline: 2px solid #70f4ff; outline-offset: -2px; }
.lcd-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.6cqw, 12px);
  padding-inline: 8px;
}
.lcd :is(.reveal-cards, .collect-cards) {
  flex: 0 1 140px;
  min-height: 40px;
  min-width: 0;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: clamp(15px, 2.2cqw, 20px);
}
.lcd .reveal-cards {
  border-color: #84eaff;
  background: #142f4c;
  color: #dcfaff;
  box-shadow: 0 3px 0 #0a1d2d;
}
.lcd .collect-cards {
  border-color: #a1fff0;
  background: linear-gradient(#b0ffed, #57e9ca);
  color: #082c27;
  box-shadow: 0 0 14px #39eac67a, 0 3px 0 #135647;
}
.lcd :is(.reveal-cards, .collect-cards):disabled {
  opacity: .55;
  cursor: default;
  outline: 0;
  box-shadow: none;
}
.lcd .collect-cards:focus-visible { outline-color: #082c27; }
.purchase { display: grid; align-items: end; justify-items: center; min-height: 0; }
.lcd .fullscreen-toggle {
  position: relative;
  min-height: 48px;
  margin-bottom: 1.5cqw;
  padding: 0;
  border: 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  color: #afffeb;
  font: 900 clamp(19px, 8cqw, 30px) ui-monospace, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-shadow: 2px 2px #0b2636, 0 0 7px #19ffd0, 0 0 16px #00bdc9;
  animation: fullscreen-blink 1.65s steps(1, end) infinite;
}
@keyframes fullscreen-blink { 0%, 100% { opacity: 1; } 68% { opacity: .42; } }
.lcd .fullscreen-toggle:is(:hover, :focus-visible) { outline: 0; color: #fff; }
.lcd .fullscreen-toggle:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
@media (prefers-reduced-motion: reduce) {
  .lcd .fullscreen-toggle { animation: none; }
}
.lcd.fullscreen-layout {
  --player-bar-height: 56px;
  position: fixed;
  inset: 0 0 var(--cine-menu-height);
  width: 100%;
  height: auto;
  border: 0;
  z-index: 10;
}
body:has(.lcd.fullscreen-layout) { overflow: hidden; }
.lcd:is(:fullscreen, .fullscreen-layout) .boulevard { container-type: size; }
.lcd:is(:fullscreen, .fullscreen-layout) .boulevard-art { object-position: center bottom; }
.lcd:is(:fullscreen, .fullscreen-layout) .wind-munky {
  /* Match the road level in the portrait art, including when it is cropped. */
  bottom: calc(max(100cqh, 100cqw * 1672 / 941) * .395);
  height: min(32cqh, 42cqw);
}
.lcd:is(:fullscreen, .fullscreen-layout) .fullscreen-toggle,
.lcd-interface[data-view="opening"] .fullscreen-toggle { display: none; }
.purchase > .choices {
  position: absolute;
  inset: calc(100% - max(100%, 100vw * 1672 / 941) * .395 + 6px) 4% 0;
  display: grid;
  grid-template-columns: minmax(0, 210px);
  justify-content: center;
  align-content: center;
  gap: clamp(4px, 1.1dvh, 9px) 3cqw;
  padding: 8px 5%;
  isolation: isolate;
}
.player-bar {
  position: absolute;
  z-index: 3;
  inset: 0 auto auto 50%;
  translate: -50% 0;
  width: var(--player-bar-width);
  display: grid;
  grid-template-columns: 1.25fr .95fr .72fr 1fr;
  align-items: center;
  min-height: calc(var(--player-bar-height) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 0 0;
  color: #fff0cf;
  background: linear-gradient(180deg, #25282a, #101617 55%, #101112);
  border: 1px solid #99805a;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 -2px #57432f, 0 3px 8px #000c;
  overflow: hidden;
  text-align: center;
  font-family: ui-monospace, monospace;
}
.lcd .lcd-interface > .fullscreen-toggle {
  position: absolute;
  z-index: 3;
  inset: 0 calc(50% + var(--player-bar-width) / 2 + 4px) auto 4px;
  height: var(--player-bar-height);
  min-height: 0;
  margin: 0;
  padding: 2px;
  animation: none;
}
.purchase > .fullscreen-toggle img,
.lcd-interface > .fullscreen-toggle span { display: none; }
.lcd-interface > .fullscreen-toggle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lcd-interface > .fullscreen-toggle:hover img { filter: brightness(1.18); }
.lcd .lcd-interface > .fullscreen-toggle:focus-visible {
  outline: 2px solid #d6fff4;
  outline-offset: -3px;
}
.player-stat {
  display: grid;
  gap: 2px;
  padding: 0 2px;
  border-inline-end: 1px solid #75664d78;
}
.player-stat > span {
  color: #dac9a6;
  font-size: clamp(8px, 2.25cqw, 11px);
  text-transform: uppercase;
}
.player-stat > strong { font-size: clamp(9px, 2.5cqw, 12px); white-space: nowrap; }
.player-stat > .pack-balance { color: #b1fce7; }
.player-stat > .pack-balance.is-debit {
  color: #ffe098;
  text-shadow: 0 0 8px #ffb64e;
  white-space: nowrap;
}
.player-stat > .player-rank { color: #ffd68d; }
.lcd .pack-buy {
  align-self: stretch;
  display: grid;
  place-content: center;
  gap: 2px;
  padding: 3px;
  border: 0;
  color: #edffdb;
  background: linear-gradient(#26744b, #10452c 78%);
  box-shadow: inset 0 0 0 1px #8ef5ab99, inset 0 -3px #123423;
  text-shadow: 0 0 7px #70f397;
}
.pack-buy strong { font-size: clamp(11px, 3.1cqw, 15px); }
.pack-buy span { font-size: clamp(8px, 2.2cqw, 11px); white-space: nowrap; }
.lcd .pack-buy:disabled { opacity: .55; cursor: default; }
.lcd:is(:fullscreen, .fullscreen-layout) .player-bar {
  width: min(92%, 680px);
  border-radius: 0 0 12px 12px;
}
.lcd:is(:fullscreen, .fullscreen-layout) .player-stat > span { font-size: clamp(10px, 3cqw, 14px); }
.lcd:is(:fullscreen, .fullscreen-layout) .player-stat > strong { font-size: clamp(14px, 4.3cqw, 20px); }
.lcd:is(:fullscreen, .fullscreen-layout) .pack-buy strong { font-size: clamp(16px, 4.7cqw, 23px); }
.lcd:is(:fullscreen, .fullscreen-layout) .pack-buy span { font-size: clamp(10px, 3.15cqw, 14px); }
.jp-shortage, .pack-confirmation {
  width: min(310px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid #66dbd1;
  background: #111a2b;
  color: #e9fffc;
  box-shadow: 0 0 22px #2dc3bc55;
  text-align: center;
}
.jp-shortage::backdrop, .pack-confirmation::backdrop { background: #060b14d9; }
.jp-shortage h2, .pack-confirmation h2 { margin: 0; font-size: 1.15rem; }
.pack-confirmation form { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.lcd .pack-confirmation form button { min-width: 76px; min-height: 44px; padding: 7px 12px; }
.lcd .pack-confirmation button[value="buy"]:enabled { background: #83e8d5; color: #102028; }
.jp-shortage p { font-size: .92rem; }
.jp-shortage a {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 6px;
  background: #83e8d5;
  color: #102028;
  font-weight: bold;
}
.lcd .jp-shortage form button { margin-top: 12px; padding: 7px 10px; }

.pack-roll {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.pack-roll > span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 3px;
  border: 1px solid #78b8c0;
  border-radius: 10px;
  background: #102938eb;
  color: #e0f8fc;
  font: bold clamp(10px, 2.9cqw, 14px) ui-monospace, monospace;
  text-align: center;
  white-space: nowrap;
}
.pack-roll > .is-lit {
  border-color: #d3fff9;
  background: #087b7d;
  color: #fff;
  box-shadow: inset 0 0 10px #b9ffdb, 0 0 13px #64ffde;
}
.pack-roll > .is-winner {
  border-color: #fff0a4;
  background: #795217;
  box-shadow: inset 0 0 10px #ffec9a, 0 0 16px #ffbd4b;
}
@media (orientation: landscape) {
  .lcd:is(:fullscreen, .fullscreen-layout) .boulevard-art { object-position: center 62%; }
  .lcd:is(:fullscreen, .fullscreen-layout) .wind-munky { bottom: 42%; }
  .purchase > .choices {
    inset: auto max(4%, calc(50% - 280px)) 0;
    min-height: 36%;
  }
}
.lcd:not(:fullscreen, .fullscreen-layout) .choices {
  inset: 41px 4% auto;
  gap: 5px;
  min-height: 0;
  padding: 6px;
}
.lcd:not(:fullscreen, .fullscreen-layout) .wind-munky { bottom: 24%; height: 36%; }
.lcd .fullscreen-exit { display: none; }
.lcd:is(:fullscreen, .fullscreen-layout) .fullscreen-exit {
  position: absolute;
  z-index: 4;
  top: calc(var(--player-bar-height) + 2px + env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  display: block;
  min-height: 44px;
  padding: 0 10px;
  background: #15162be8;
}

.lcd-interface[data-view="opening"] .choices { visibility: hidden; }
.reveal {
  position: absolute;
  inset: 43px 4% max(60px, 13%);
  container-type: size;
}
.lcd:is(:fullscreen, .fullscreen-layout) .reveal {
  top: calc(var(--player-bar-height) + 51px + env(safe-area-inset-top));
  bottom: calc(env(safe-area-inset-bottom) + 62px);
}
@media (orientation: landscape) {
  .lcd:is(:fullscreen, .fullscreen-layout) .lcd-interface:is([data-view="opening"], [data-view="reveal"]) .wind-munky {
    bottom: 28%;
  }
}
.lcd-interface[data-view="reveal"] .lcd-footer {
  position: absolute;
  inset: auto 0 calc(10px + env(safe-area-inset-bottom));
}
.revealed-cards {
  --columns: var(--portrait-columns);
  --rows: var(--portrait-rows);
  --card-gap: clamp(7px, 3cqw, 17px);
  --card-width: min(174px, calc((100cqw - (var(--columns) - 1) * var(--card-gap)) / var(--columns)),
    calc((100cqh - (var(--rows) - 1) * var(--card-gap)) / var(--rows) * 2 / 3));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: space-evenly;
  gap: var(--card-gap);
  width: min(100%, calc(var(--columns) * var(--card-width) + (var(--columns) - 1) * var(--card-gap) + 1px));
  height: 100%;
  margin-inline: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .revealed-cards { transition: filter 210ms ease-out; }
}
@media (orientation: landscape) {
  .lcd:is(:fullscreen, .fullscreen-layout) .revealed-cards {
    --columns: var(--landscape-columns);
    --rows: var(--landscape-rows);
  }
}
.lcd-interface[data-view="opening"] .revealed-cards:not(.is-dealing) { visibility: hidden; }
.lcd .flip-card {
  position: relative;
  flex: 0 0 auto;
  width: var(--card-width);
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 0;
  background: transparent;
  perspective: 600px;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.lcd .flip-card:hover { outline: 0; }
.lcd .flip-card:focus-visible { outline: 0; filter: drop-shadow(0 0 6px #a8fffa); }
.flip-card.is-gold-highlight::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--gold-glow), 0 0 14px var(--gold-glow);
  pointer-events: none;
  animation: gold-highlight-in 460ms ease-out both;
}
@keyframes gold-highlight-in {
  from { opacity: .45; }
  36% { opacity: 1; box-shadow: 0 0 0 2px var(--gold-glow), 0 0 20px var(--gold-glow); }
  to { opacity: .7; }
}
@media (prefers-reduced-motion: reduce) {
  .wind-munky { transition: none; }
  .wind-munky.is-celebrating::after, .flip-card.is-gold-highlight::after { animation: none; }
}
.flip-card-inner {
  position: absolute;
  inset: 0;
  transition: transform .52s;
  transform-style: preserve-3d;
  animation: card-float 3s var(--float-delay) ease-in-out infinite;
}
@keyframes card-float { 50% { translate: 0 -5px; } }
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }
/* The badge is part of the front face and follows the physical card flip. */
.full-art-label, .holo-label {
  position: absolute;
  inset: auto 4% 8%;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .015em;
  font: 900 clamp(8px, calc(var(--card-width) * .16), 28px) / 1 Impact, 'Arial Black', sans-serif;
  letter-spacing: .015em;
  white-space: nowrap;
  pointer-events: none;
  backface-visibility: hidden;
  transform: rotateY(180deg) translateZ(1px);
  visibility: hidden;
  -webkit-text-stroke: .035em #140f32;
  paint-order: stroke fill;
  text-shadow: 0 .07em 0 #140f32, 0 .12em .12em #07061c;
}
.flip-card.is-flipped :is(.full-art-label, .holo-label) { visibility: visible; }
.full-art-label-space { width: .28em; }
.full-art-label-letter, .holo-label-letter { display: inline-block; transform-origin: 50% 55%; }
.full-art-label-letter:nth-child(1) { color: #ffdc38; }
.full-art-label-letter:nth-child(2) { color: #ff7650; }
.full-art-label-letter:nth-child(3) { color: #ff65c8; }
.full-art-label-letter:nth-child(4) { color: #bb87ff; }
.full-art-label-letter:nth-child(6) { color: #59cfff; }
.full-art-label-letter:nth-child(7) { color: #67ef91; }
.full-art-label-letter:nth-child(8) { color: #ffaf3e; }
@media (prefers-reduced-motion: no-preference) {
  .flip-card.is-flipped :is(.full-art-label-letter, .holo-label-letter) {
    animation: full-art-letter-swell 2s calc(var(--letter-index) * .12s) ease-in-out infinite;
  }
}
@keyframes full-art-letter-swell {
  0%, 28%, 100% { transform: scale(1); }
  14% { transform: scale(1.45); }
}
/* Blue holographic lettering; clipped echoes add short digital glitches. */
.holo-label {
  bottom: 5%;
  gap: .045em;
  -webkit-text-stroke: .018em #17437a;
  text-shadow: none;
  filter: drop-shadow(0 .04em .03em #071e40) drop-shadow(0 0 .12em #55d7ff);
}
.full-art-label + .holo-label { bottom: 24%; }
.holo-label-letter {
  position: relative;
  color: #8ee5ff;
  background: linear-gradient(175deg, #ecfbff 0%, #83deff 24%, #3b9de3 43%, #e7ffff 49%, #90eaff 55%, #419bdb 72%, #c5f5ff 100%) 0 0 / 100% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.holo-label-letter::before, .holo-label-letter::after {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  opacity: 0;
  -webkit-text-stroke: 0;
  -webkit-text-fill-color: #d5fbff;
  pointer-events: none;
}
.holo-label-letter::before { clip-path: inset(22% 0 56%); }
.holo-label-letter::after { clip-path: inset(63% 0 18%); -webkit-text-fill-color: #42bfff; }
@media (prefers-reduced-motion: no-preference) {
  .flip-card.is-flipped .holo-label-letter {
    animation: full-art-letter-swell 2s calc(var(--letter-index) * .12s) ease-in-out infinite,
      holo-letter-sheen 3s linear infinite;
  }
  .flip-card.is-flipped .holo-label-letter::before,
  .flip-card.is-flipped .holo-label-letter::after {
    animation: holo-letter-glitch 2.7s calc(var(--letter-index) * .12s) steps(1) infinite;
  }
  .flip-card.is-flipped .holo-label-letter::after { animation-direction: reverse; }
}
@keyframes holo-letter-sheen { 50% { background-position: 0 100%; } }
@keyframes holo-letter-glitch {
  0%, 81%, 89%, 96%, 100% { opacity: 0; transform: translateX(0); }
  82%, 94% { opacity: .9; transform: translateX(.08em); }
  85%, 95% { opacity: .85; transform: translateX(-.07em); }
  87% { opacity: .6; transform: translateX(.03em); }
}
.card-smoke {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  font-size: clamp(4px, 1.8cqw, 8px);
  pointer-events: none;
}
.card-smoke::before,
.card-smoke::after {
  content: '';
  position: absolute;
  width: 1em;
  height: 1em;
  background: #fff1d5;
  box-shadow: -2em -1em #b5a8b0, -1em -2em #e5d6ca, 0 -2em #fff3d8,
    1em -2em #eee0d1, 2em -1em #ab99a4, -2em 0 #ddd0c5, -1em 0 #ffefdd,
    1em 0 #fff3df, 2em 0 #e1d0c6, -2em 1em #9e8d9e, -1em 1em #ded0c6,
    0 1em #efe2d0, 1em 1em #c3b0b2, 0 2em #a18e9e;
  animation: pixel-smoke .55s steps(8, end) var(--burst-delay) both;
}
.card-smoke::after {
  background: #ffd79b;
  box-shadow: -3em -2em #e8d4c7, 3em -2em #bdadba, -3em 2em #b7a2ae,
    3em 1em #e0cbbc, 1em 3em #b29aa9, -1em -3em #ecdbc9;
  animation-name: pixel-smoke-sparks;
}
@keyframes pixel-smoke {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.25); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  52% { opacity: .82; transform: translate(-50%, -65%) scale(1.75); }
  100% { opacity: 0; transform: translate(-50%, -120%) scale(2.65); }
}
@keyframes pixel-smoke-sparks {
  0% { opacity: 0; transform: scale(.15); }
  24% { opacity: .85; transform: scale(.75); }
  100% { opacity: 0; transform: translateY(-1em) scale(1.85); }
}
.duplicate-reward {
  position: absolute;
  z-index: 5;
  color: #fff3a3;
  font: 900 clamp(16px, 5.5cqw, 28px) ui-monospace, monospace;
  white-space: nowrap;
  text-shadow: 0 2px 2px #2e1604, 0 0 6px #ffb840, 0 0 14px #f9691b;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.digital-card, .card-reverse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}
.digital-card { object-fit: contain; transform: rotateY(180deg); -webkit-user-drag: none; }
.card-reverse {
  object-fit: contain;
  -webkit-user-drag: none;
}
.card-viewer {
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.card-viewer::backdrop { background: #060813ed; }
.lcd .card-viewer-close {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
  -webkit-tap-highlight-color: transparent;
}
.lcd .card-viewer-close:hover:not(:focus-visible) { outline: 0; }
.card-viewer img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  object-fit: contain;
  filter: drop-shadow(0 6px 24px #000b);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (prefers-reduced-motion: reduce) {
  .attract-cta { animation: none; }
  .attract .intro-promo { animation: none; }
  .intro-dialogue { visibility: visible; }
  .flip-card-inner { transition: none; animation: none; }
}
.popcorn-glass {
  position: absolute;
  inset: 65.05% 45.8% 20.12% 6.2%;
  overflow: hidden;
  pointer-events: none;
}
.popcorn-glass i {
  position: absolute;
  left: var(--left);
  bottom: var(--base);
  width: var(--size);
  aspect-ratio: 1;
  clip-path: polygon(20% 0, 52% 0, 52% 16%, 82% 16%, 82% 34%, 100% 34%,
    100% 69%, 79% 69%, 79% 86%, 53% 86%, 53% 100%, 19% 100%, 19% 77%, 0 77%, 0 24%, 20% 24%);
  background: linear-gradient(135deg, #fff3bd 0 36%, #ffd268 37% 68%, #b96a2a 69%);
  animation: kernel-pop var(--period) var(--delay) infinite;
}
@keyframes kernel-pop {
  0%, 100% { opacity: 0; transform: translate(0, 15%) scale(.65); }
  10% { opacity: 1; }
  43% { opacity: 1; transform: translate(var(--drift), var(--rise)) rotate(75deg); }
  86% { opacity: 1; }
}
.tablet-light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #92ddff;
  mix-blend-mode: screen;
  opacity: .25;
  pointer-events: none;
  animation: tablet-film-light 7.8s ease-in-out infinite;
}
@keyframes tablet-film-light {
  0%, 100% { color: #1594ff; opacity: .47; }
  13% { color: #12caff; opacity: .88; }
  29% { color: #c34bff; opacity: .77; }
  47% { color: #ff7a32; opacity: .84; }
  65% { color: #5759ff; opacity: .39; }
  83% { color: #2dffbc; opacity: .88; }
}
@media (prefers-reduced-motion: reduce) {
  .popcorn-glass i { display: none; }
  .tablet-light { animation: none; }
}

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  body { background: #0b0d12; overflow-x: clip; }
  .scene {
    /* Keep the original facade's coordinate system for the LCD and animations. */
    width: min(100%, max(100% * 2 / 3, min(3840px, calc((100svh - var(--cine-menu-height)) * 16 / 9))));
    aspect-ratio: 16 / 9;
  }
  .cinema-facade {
    position: absolute;
    top: 0;
    left: 50%;
    translate: -50% 0;
    width: min(150%, 100vw);
    overflow: clip;
  }
  .cinema-art {
    position: relative;
    left: 50%;
    translate: -50% 0;
    width: 150cqw;
    max-width: none;
  }
  .lcd:not(:fullscreen, .fullscreen-layout) {
    --player-bar-height: 46px;
    inset: 22.2% 21.35% 23.7% 21.4%;
    border-width: clamp(5px, .65cqw, 10px);
  }
  .lcd .attract { background: radial-gradient(ellipse at center, #17252e, #070b13 75%); }
  .intro-dialogue {
    top: 9%;
    left: 32%;
    font-size: clamp(15px, 2.4cqw, 24px);
  }
  .intro-promo {
    font-size: clamp(32px, 6cqw, 60px);
  }
  .lcd .boulevard { container-type: size; background: #080b12; }
  .lcd:not(:fullscreen, .fullscreen-layout) .boulevard-art,
  .lcd:is(:fullscreen, .fullscreen-layout) .boulevard-art { object-fit: cover; object-position: center; }
  .lcd:not(:fullscreen, .fullscreen-layout) .wind-munky,
  .lcd:is(:fullscreen, .fullscreen-layout) .wind-munky {
    bottom: calc(50% - max(100cqh, 100cqw * 941 / 1672) * .22);
  }
  .lcd:not(:fullscreen, .fullscreen-layout) .wind-munky {
    height: min(29cqh, 177px);
  }
  .lcd:is(:fullscreen, .fullscreen-layout) .wind-munky {
    height: 33cqh;
  }
  .lcd:is(:fullscreen, .fullscreen-layout) .lcd-interface:is([data-view="opening"], [data-view="reveal"]) .wind-munky {
    bottom: calc(50% - max(100cqh, 100cqw * 941 / 1672) * .22);
  }
  .wind-litter i { width: calc(var(--width) * .45); }
  .lcd:not(:fullscreen, .fullscreen-layout) .lcd-interface { --player-bar-width: min(68%, 510px); }
  .lcd .purchase > .fullscreen-toggle { margin-bottom: 4px; }
  .lcd:not(:fullscreen, .fullscreen-layout) .choices { inset: auto 12% 52px; }
  .lcd:not(:fullscreen, .fullscreen-layout) .reveal { inset: 54px 5% 62px; }
  .lcd .revealed-cards { --columns: var(--landscape-columns); --rows: var(--landscape-rows); }
  .lcd .fullscreen-exit { font-size: clamp(12px, 1.1cqw, 16px); }
  .popcorn-glass { inset: 32.25% 83.3% 35.55% 2.85%; }
  .popcorn-glass i { width: calc(var(--size) * .34); }
  .tablet-light-mobile { display: none; }
  .tablet-light-desktop { display: block; }
}


.full-art-mini {
  position: absolute;
  inset: 0;
  z-index: 14;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #100c22ce;
  container-type: size;
  font-family: system-ui, sans-serif;
}
.runner-bubble {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 9px;
  width: min(100%, 870px);
  max-height: 100%;
  padding: 12px;
  border: 2px solid #e8b979;
  border-radius: 17px;
  background: linear-gradient(145deg, #39263f, #191829);
  box-shadow: 0 0 0 4px #291d2b, 0 0 35px #d9975033;
}
.runner-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.runner-eyebrow { font-size: 10px; letter-spacing: .18em; color: #74e2d4; font-weight: 800; }
.runner-header h2 { margin: 2px 0 0; color: #ffdda1; font-size: clamp(14px, 3.4cqw, 26px); line-height: 1.1; }
.runner-progress { font-size: clamp(13px, 3.3cqw, 23px); color: #c4fff1; font-weight: 800; font-variant-numeric: tabular-nums; }
.runner-track {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid #a78565;
  border-radius: 9px;
}
.runner-track canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.runner-message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 9%;
  text-align: center;
  color: #fff1d7;
  background: #160d29c9;
  pointer-events: none;
}
.runner-message strong { font-size: clamp(17px, 5cqw, 36px); color: #ffdc98; }
.runner-message span { font-size: clamp(11px, 2.7cqw, 17px); max-width: 30em; line-height: 1.4; }
.runner-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; min-height: 36px; }
.runner-hint { font-size: clamp(10px, 2.6cqw, 14px); color: #d5d0dd; }
.runner-actions { display: flex; gap: 7px; margin-left: auto; }
.lcd .runner-actions button {
  padding: 6px 13px;
  min-height: 36px;
  border-radius: 7px;
  border: 1px solid #c49b63;
  background: #30233b;
  color: #ffe3b3;
  font: 800 clamp(11px, 2.7cqw, 15px)/1.1 system-ui, sans-serif;
}
.lcd .runner-actions .runner-double { background: linear-gradient(#ffe3a0, #dda252); color: #322034; }
.runner-bubble:has(.runner-double:not([hidden])) .runner-actions { width: 100%; justify-content: center; }
.pack-jp-summary dd { overflow-wrap: anywhere; }
.full-art-mini[data-phase="running"] .runner-footer { justify-content: center; }
.lcd .runner-track canvas:focus-visible { outline: 2px solid #81e7d6; outline-offset: -3px; }
@container (max-height: 300px) {
  .runner-bubble { gap: 5px; padding: 7px; }
  .runner-eyebrow { display: none; }
  .runner-track { max-height: calc(100cqh - 95px); }
  .runner-message { gap: 3px; }
  .runner-footer { gap: 4px; }
  .lcd .runner-actions button { min-height: 30px; padding: 4px 10px; }
}

/* The course occupies the LCD surface, with floating instructions and choices. */
.lcd .full-art-mini { padding: 0; background: #14112f; }
.lcd .runner-bubble { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: none; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.lcd .runner-track { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border: 0; border-radius: 0; }
.lcd .runner-header { position: absolute; inset: 8px 12px auto; z-index: 2; pointer-events: none; }
.lcd .runner-header h2, .lcd .runner-eyebrow { display: none; }
.lcd .runner-progress { margin-left: auto; text-shadow: 0 2px 5px #000; }
.lcd .runner-instructions { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44%; max-width: 340px; padding: clamp(8px,2cqw,15px); border: 3px solid #fff0a5; border-radius: 20px; background: linear-gradient(130deg,#d42585,#7133bb); color: #fff; display: grid; gap: 10px; text-align: center; box-shadow: 0 0 0 4px #381044,0 10px 32px #0009,0 0 28px #e3349466; pointer-events: none; z-index: 3; }
.lcd .runner-instructions strong { font-size: clamp(9px, 2.5cqw, 15px); color: #ffe396; }
.lcd .runner-instructions span { font-size: clamp(12.5px, 3.75cqw, 26px); font-weight: 950; line-height: 1.12; text-wrap: balance; text-shadow: 0 3px 0 #4c164f; }
.lcd .runner-countdown { position: absolute; inset: 12% 5% auto; text-align: center; color: #ffe1a1; font: 900 clamp(26px, 9cqw, 80px)/1.2 system-ui; text-shadow: 0 3px 0 #62303d, 0 0 24px #ffbb4a; pointer-events: none; }
.lcd .runner-bonus-marker, .lcd .runner-bonus-held { position: absolute; z-index: 2; color: #3b2004; background: radial-gradient(ellipse at 35% 20%,#fff7bf,#ffc335 65%,#ef8e15); border: 2px solid #fff1a0; border-radius: 50%; padding: 4px 12px; font: 950 clamp(25px,6cqw,48px)/1.15 system-ui; box-shadow: 0 0 0 3px #8f4a18,0 0 20px #ffcc4caa; pointer-events: none; }
.lcd .runner-bonus-marker { translate: -50% -100%; animation: runner-bonus-float 1s ease-in-out infinite alternate; }
.lcd .runner-bonus-held { top: 10px; left: 12px; border-style: dashed; font-size: clamp(20px,5cqw,32px); }
.lcd .runner-bonus-marker[hidden], .lcd .runner-bonus-held[hidden] { display: none; }
@keyframes runner-bonus-float { from {transform:translateY(0)} to {transform:translateY(-7px)} }
@media(prefers-reduced-motion:reduce) { .lcd .runner-bonus-marker {animation:none} }
.lcd .runner-message { inset: 28% 6% auto; min-height: 20%; padding: 14px 5%; background: #20162de6; border: 1px solid #be9661; border-radius: 13px; }
.lcd .runner-footer { position: absolute; top: 55%; left: 5%; right: 5%; z-index: 3; min-height: 0; display: block; }
.lcd .runner-actions, .lcd .runner-bubble:has(.runner-double:not([hidden])) .runner-actions { display: flex; justify-content: center; width: 100%; margin: 0; gap: 12px; }
.lcd .runner-actions button { min-height: 40px; padding: 10px 18px; }
.lcd .full-art-mini[data-phase="running"] .runner-footer,
.lcd .full-art-mini[data-phase="countdown"] .runner-footer { display: none; }
.lcd .runner-instructions[hidden], .lcd .runner-countdown[hidden] { display: none; }
.lcd .full-art-mini[data-phase="won"]:has(.runner-double:not([hidden])) .runner-message { top: 39%; min-height: 0; padding: 0; background: none; border: 0; }
.lcd .full-art-mini[data-phase="won"]:has(.runner-double:not([hidden])) .runner-footer { top: 50%; }

.bonus-stage {
  position: absolute;
  z-index: 12;
  inset: 0;
  isolation: isolate;
  container-type: size;
  display: grid;
  grid-template-rows: auto minmax(min-content, 1fr) auto;
  gap: 5px;
  overflow: auto;
  padding: 7px 9px 8px;
  color: #fff2d9;
  background: #160d24;
  text-align: center;
  font-family: system-ui, sans-serif;
  animation: full-art-light-in 260ms ease-out both;
}
.bonus-stage::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(#180c2580, #19051a28 39%, #170c28b3), var(--bonus-art) center / cover;
  pointer-events: none;
}
.bonus-heading {
  position: relative;
  justify-self: center;
  width: min(100%, 500px);
  padding-inline: 40px;
}
.bonus-heading h2 {
  margin: 0;
  font: 900 clamp(22px, 5.9cqw, 43px)/1 Georgia, serif;
  letter-spacing: .04em;
  color: #ffe4a9;
  text-transform: uppercase;
  text-shadow: 0 2px #7e3924, 0 3px 12px #df642578;
}
.bonus-result {
  margin: 4px 0 0;
  font-size: clamp(11px, 3.15cqw, 15px);
  color: #f4dfbd;
}
.lcd .bonus-exit { display: none; }
.lcd:is(:fullscreen, .fullscreen-layout):has(.bonus-stage:not([hidden])) .fullscreen-exit { display: none; }
.lcd:is(:fullscreen, .fullscreen-layout) .bonus-exit {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0 1px auto auto;
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #c48f5c8c;
  border-radius: 50%;
  background: #1f1025eb;
  color: #ffdfb0;
  font: 600 23px/1 system-ui,sans-serif;
  padding: 0 0 2px;
}
.bonus-board {
  --wheel-diameter: min(100%, max(92px, 100cqh - 220px), 194px);
  width: min(100%, 585px);
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  align-content: center;
  gap: clamp(6px, 2cqw, 26px);
  padding-block: 7px 2px;
}
.bonus-option { min-width: 0; }
.bonus-wheel-slot { display: grid; justify-items: center; }
.bonus-option[data-bonus-mode="free"] {
  --rim: #a2d5e3; --rim-light: #e8fbff; --rim-dark: #294c67; --rim-shadow: #080c22; --wheel-size: .84;
}
.bonus-option[data-bonus-mode="boosted"] {
  --rim: #eaa347; --rim-light: #fff0b0; --rim-dark: #986025; --rim-shadow: #39190e; --wheel-size: 1;
}
.bonus-wheel {
  position: relative;
  width: calc(var(--wheel-size) * var(--wheel-diameter));
  aspect-ratio: 1;
  border: 1px solid var(--rim-light);
  border-radius: 50%;
  background: conic-gradient(from 15deg, var(--rim-dark), var(--rim-light) 16%, var(--rim) 26%, var(--rim-shadow) 42%,
    var(--rim-light) 62%, var(--rim) 74%, var(--rim-dark));
  box-shadow: 0 4px 0 1px var(--rim-shadow), 0 0 0 2px var(--rim-dark), 0 0 24px color-mix(in srgb, var(--rim), transparent 56%);
}
.bonus-wheel::before {
  content: '';
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  border: 1px solid var(--rim-light);
  background: var(--rim-dark);
  box-shadow: inset 0 0 6px var(--rim-shadow);
}
.bonus-rim-lights { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.bonus-rim-lights span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 47%;
  height: 0;
  transform-origin: 0 0;
  transform: rotate(var(--lamp-angle));
}
.bonus-rim-lights span::after {
  content: '';
  position: absolute;
  inset: auto 0 auto auto;
  width: 5.8%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--rim-light);
  box-shadow: 0 0 5px var(--rim), 0 0 1px 1px var(--rim-shadow);
}
.bonus-disc {
  position: absolute;
  inset: 6%;
  border: 1px solid var(--rim-light);
  border-radius: 50%;
  background: radial-gradient(circle, #14091c69, transparent 44%, #00000042 91%),
    linear-gradient(135deg, #ffffff36, transparent 48%, #00000024 83%), var(--segments);
  box-shadow: inset 0 0 0 2px #150b24a0, inset 0 0 16px #150a27a6;
  container-type: size;
}
.bonus-disc::after {
  content: '✦';
  position: absolute;
  inset: 41%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rim-light);
  background: radial-gradient(circle at 30% 22%, var(--rim-light), var(--rim) 48%, var(--rim-dark) 86%);
  box-shadow: 0 1px 0 1px var(--rim-shadow), 0 1px 6px #120719;
  color: var(--rim-shadow);
  font: 900 11cqw/1 Georgia, serif;
}
.bonus-sector-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 43%;
  text-align: right;
  padding-right: 2%;
  color: #fff8e7;
  font: 900 clamp(7px, 7.5cqw, 19px)/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px #0a0715, 0 0 1px #000;
  transform-origin: left center;
  transform: translateY(-50%) rotate(var(--label-angle));
}
.bonus-sector-label.is-fail { color: #ffbfc2; }
.bonus-sector-label.is-reversed {
  padding-right: 0;
  padding-left: 2%;
  text-align: left;
  transform: translateY(-50%) rotate(var(--label-angle)) translateX(100%) rotate(180deg);
}
.bonus-pointer {
  position: absolute;
  top: -5%;
  left: 50%;
  z-index: 2;
  width: 11%;
  height: 15%;
  transform: translateX(-50%);
  background: linear-gradient(110deg, var(--rim-dark), var(--rim-light) 45%, var(--rim) 54%, var(--rim-dark));
  clip-path: polygon(11% 0, 89% 0, 100% 22%, 50% 100%, 0 22%);
}
.bonus-option h3 {
  margin: 9px 0 4px;
  color: var(--rim-light);
  font: 800 clamp(11px, 3.8cqw, 17px)/1.15 system-ui, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bonus-option[data-bonus-mode="free"] { padding-bottom: 2.15em; }
.bonus-controls {
  width: min(100%, 490px);
  justify-self: center;
  padding: 3px 5px;
  border-radius: 7px;
  background: #150d22d9;
}
.lcd :is(.bonus-spin, .bonus-continue) {
  min-height: 34px;
  padding: 4px 9px;
  border-radius: 5px;
  font: 800 clamp(10px, 3.05cqw, 15px)/1.1 system-ui, sans-serif;
  border-color: var(--rim-light, #ffe09e);
  background: linear-gradient(var(--rim-light, #ffe09e), var(--rim, #e6a74e));
  color: #281724;
  box-shadow: 0 2px 0 var(--rim-dark, #814e3d), inset 0 1px #fff9;
}
.lcd .bonus-spin:disabled { opacity: .55; cursor: default; }
.bonus-boost-price {
  margin: 5px auto 0;
  max-width: 26em;
  color: #ffe5ad;
  font-size: clamp(9px, 2.6cqw, 13px);
  line-height: 1.15;
  text-shadow: 0 1px 3px #170b17;
}
.bonus-details { color: #ecd8c2; font-size: clamp(10px, 2.6cqw, 13px); }
.bonus-details summary { cursor: pointer; }
.bonus-odds { margin: 2px 0; }
.bonus-result { color: #fff1ab; font-weight: 900; }
.bonus-result:empty { display: none; }
.lcd .bonus-continue { margin-block: 4px; }

.lcd-footer:has(.pack-jp-summary:not([hidden])) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 140px));
}
.pack-jp-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
  padding: 7px 4px;
  border: 1px solid #bb8d50;
  border-radius: 9px;
  background: linear-gradient(145deg, #361a33, #1b1427);
  color: #ffe2ab;
  text-align: center;
  font: 700 clamp(10px, 3.4cqw, 14px)/1.2 system-ui, sans-serif;
}
.pack-jp-summary dd {
  margin: 3px 0 0;
  color: #fff4da;
  font-variant-numeric: tabular-nums;
}
.lcd-interface:has(.pack-jp-summary:not([hidden])) .reveal {
  bottom: calc(max(60px, 13%) + 53px + env(safe-area-inset-bottom));
}

@media (max-width: 760px) and (orientation: portrait) {
  .lcd:not(:fullscreen, .fullscreen-layout) .bonus-stage {
    padding: 7px 8px 5px;
    gap: 2px;
  }
  .lcd:not(:fullscreen, .fullscreen-layout) .bonus-heading h2 { font-size: clamp(17px, 7cqw, 26px); }
  .lcd:not(:fullscreen, .fullscreen-layout) .bonus-board {
    --wheel-diameter: min(100%, 46cqw, max(70px, 100cqh - 148px));
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: 0 10px;
    align-items: end;
    padding: 7px 0 1px;
  }
  .lcd:not(:fullscreen, .fullscreen-layout) .bonus-stage:not(.is-single-wheel) .bonus-option {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    align-self: stretch;
  }
  .lcd:not(:fullscreen, .fullscreen-layout) .bonus-wheel-slot { align-self: end; }
  .lcd:not(:fullscreen, .fullscreen-layout) .bonus-option[data-bonus-mode="free"] { padding-bottom: 0; }
  .lcd:not(:fullscreen, .fullscreen-layout) .bonus-option h3 { margin: 7px 0 4px; }
  .lcd:not(:fullscreen, .fullscreen-layout) .bonus-spin {
    width: 100%;
    min-height: 36px;
    padding-inline: 4px;
  }
  .lcd:not(:fullscreen, .fullscreen-layout) .bonus-boost-price {
    max-width: 15em;
    margin-top: 5px;
  }
}

@media (max-width: 760px) and (orientation: portrait) {
  .lcd:is(:fullscreen, .fullscreen-layout) .bonus-stage {
    padding: max(13px, env(safe-area-inset-top)) 14px 11px;
  }
  .lcd:is(:fullscreen, .fullscreen-layout) .bonus-stage::before {
    background: linear-gradient(#1d081526, #1d081514 67%, #1c0b24c7), var(--bonus-portrait-art) center / 100% 100%;
  }
  .lcd:is(:fullscreen, .fullscreen-layout) .bonus-board {
    --wheel-diameter: min(72cqw, 32cqh, max(104px, 50cqh - 120px), 290px);
    grid-template-columns: 1fr;
    gap: clamp(14px, 2.7cqh, 25px);
    padding: 7px 0 3px;
  }
  .lcd:is(:fullscreen, .fullscreen-layout) .bonus-option[data-bonus-mode="boosted"] { grid-row: 1; }
  .lcd:is(:fullscreen, .fullscreen-layout) .bonus-option[data-bonus-mode="free"] { padding-bottom: 0; }
  .lcd:is(:fullscreen, .fullscreen-layout) .bonus-heading h2 { font-size: clamp(24px, 8cqw, 40px); }
  .lcd:is(:fullscreen, .fullscreen-layout) .bonus-option h3 { margin-block: 9px 5px; font-size: clamp(13px, 4.1cqw, 19px); }
  .lcd:is(:fullscreen, .fullscreen-layout) :is(.bonus-spin, .bonus-continue) { min-height: 40px; padding-inline: 15px; font-size: 14px; }
  .lcd:is(:fullscreen, .fullscreen-layout) .bonus-boost-price { font-size: 11px; }
  .lcd:is(:fullscreen, .fullscreen-layout) .bonus-details { padding: 4px 0; }
}

.lcd .bonus-stage.is-single-wheel {
  grid-template-rows: minmax(32px, 1fr) auto minmax(58px, 1fr);
}
.lcd .bonus-stage.is-single-wheel .bonus-board {
  --wheel-diameter: min(70cqw, 100cqh - 170px, 360px);
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  padding-block: 3px 0;
}
.lcd .bonus-stage.is-single-wheel .bonus-option {
  --wheel-size: 1;
  grid-row: 1;
  grid-column: 1;
  padding-bottom: 0;
}
.lcd .bonus-stage.is-single-wheel .bonus-controls {
  display: grid;
  justify-items: center;
  align-self: start;
  background: none;
}
.bonus-stage.is-single-wheel .bonus-result {
  display: block;
  block-size: 1lh;
  line-height: 1.2;
}
.lcd .bonus-stage.is-single-wheel .bonus-continue[hidden] {
  display: block;
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .bonus-stage { animation: none; }
}

/* Lives earned by revealed Full Art cards, retained until the pack course ends. */
.lcd .pack-runner-lives, .lcd .runner-lives {
  color: #fff2e0; background: linear-gradient(135deg,#162c35ed,#341d3aeb);
  border: 1px solid #78e6d1; border-radius: 9px;
  padding: 5px 11px; font: 800 clamp(12px,2.7cqw,21px)/1.2 system-ui;
  box-shadow: 0 0 12px #31d9ba44,inset 0 0 9px #31d9ba18;
  text-shadow: 0 0 9px #ef6190; white-space: nowrap;
}
.lcd .pack-runner-lives { position: absolute; top: clamp(45px,10cqw,84px); left: 10px; z-index: 8; pointer-events: none; }
.lcd .pack-runner-lives[hidden] { display: none; }
.lcd-interface:has(.bonus-stage:not([hidden])) .pack-runner-lives { top: 8px; z-index: 13; }
.lcd .runner-lives { margin-right: auto; }
.lcd .runner-level { margin-inline: 8px; color: #ffe0a0; font: 800 clamp(11px,2.5cqw,19px)/1.2 system-ui; white-space: nowrap; }
.lcd .runner-cashout { background: linear-gradient(#b6ffe2,#56d4a8); color: #072d28; border-color: #d2ffef; }
.lcd .runner-advance { background: linear-gradient(#d73573,#8d244b); color: #fff3d7; border-color: #ffbe81; }
.lcd .full-art-mini[data-phase="choice"] .runner-message { inset: 25% 6% auto; }
.lcd .full-art-mini[data-phase="choice"] .runner-actions { flex-wrap: wrap; }
.lcd .full-art-mini[data-phase="choice"] .runner-footer { top: 59%; }
.lcd .full-art-mini[data-phase="choice"] .runner-actions button { font-size: clamp(12px,2.7cqw,20px); max-width: 100%; }

/* Pirate Full Art 04: preserve the original close portrait and replace poses cleanly. */
.full-art-sequence[data-scene="pirate"]::before { background: #1c0d09b8; }
.full-art-sequence[data-scene="pirate"] .full-art-backdrop img {
  object-position: center 54%; filter: brightness(.86) saturate(.95);
}
.full-art-sequence[data-scene="pirate"] .full-art-actor {
  inset: 4% 0 0; width: 100%;
  filter: drop-shadow(0 7px 5px #170902b3);
}
.full-art-sequence[data-scene="pirate"] .full-art-actor img {
  transition: none; image-rendering: auto;
}
.full-art-sequence[data-scene="pirate"] .full-art-actor img:not([data-frame]) { display: none; }
.pirate-smoke { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.lcd .runner-bonus-held { top: 54px; }
.full-art-sequence[data-scene="good"]::before { background: #68451f55; }
.full-art-sequence[data-scene="good"] .full-art-backdrop img {
  filter: brightness(.92) saturate(.95); object-position: center 54%;
}
.full-art-sequence[data-scene="good"] .full-art-actor {
  inset: 5% 0 3%; width: 100%;
  filter: drop-shadow(0 7px 5px #38200db3);
}
.full-art-sequence[data-scene="good"] .full-art-actor img { transition: none; image-rendering: auto; }
.full-art-sequence[data-scene="bloodsport"]::before { background: #30140980; }
.full-art-sequence[data-scene="bloodsport"] .full-art-backdrop img {
  filter: brightness(.85) saturate(.95); object-position: center 54%;
}
.full-art-sequence[data-scene="bloodsport"] .full-art-actor {
  inset: 5% 0 3%; width: 100%;
  filter: drop-shadow(0 7px 5px #160901b3);
}
.full-art-sequence[data-scene="bloodsport"] .full-art-actor img { transition: none; image-rendering: auto; }
.full-art-sequence[data-scene="ryu"]::before { background: #02132a90; }
.full-art-sequence[data-scene="ryu"] .full-art-backdrop img { filter: brightness(.85) saturate(1.05); }
.full-art-sequence[data-scene="ryu"] .full-art-actor {
  inset: 5% 0 3%; width: 100%; z-index: 1;
  filter: drop-shadow(0 5px 6px #020817b3);
}
.full-art-sequence[data-scene="ryu"] .full-art-actor img { transition: none; image-rendering: auto; }
.hadouken-effects { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.full-art-sequence[data-scene="ryu"]:has(.full-art-actor[data-pose="2"])::after {
  content: "KO"; position: absolute; inset: 0; display: grid; place-items: center; z-index: 3;
  color: transparent; font: italic 900 clamp(86px,26cqw,260px)/1 Impact,"Arial Black",sans-serif;
  background: repeating-linear-gradient(to bottom, #67dfff50 0 2px, #148bff27 2px 5px);
  background-clip: text; -webkit-background-clip: text;
  letter-spacing: -.055em; -webkit-text-stroke: clamp(1px,.23cqw,2.5px) #a0edffc4;
  text-shadow: 0 0 7px #32cfff55, 0 0 22px #087dff44;
  filter: drop-shadow(0 0 3px #22bfff66);
  animation: hadouken-ko-in 260ms cubic-bezier(.18,.85,.3,1.15) both;
  pointer-events: none;
}
@keyframes hadouken-ko-in {
  from { opacity: 0; transform: scale(1.3) rotate(-6deg); }
  to { opacity: 1; transform: scale(1) rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .full-art-sequence[data-scene="ryu"]:has(.full-art-actor[data-pose="2"])::after { animation: none; transform: rotate(-6deg); }
}

/* Bonus prompts are illuminated text, without a panel or button background. */
.lcd .runner-start {
  width: 100%; min-width: 0; max-width: 100%; min-height: 44px; padding: 6px 10px;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  color: #c7faff; font: 900 clamp(12px, 2.8cqw, 20px)/1.25 system-ui;
  text-align: center; text-wrap: balance; white-space: normal; overflow-wrap: normal;
  text-shadow: 0 0 5px #7ceaff, 0 0 14px #36bfff, 0 2px 2px #062035;
  cursor: pointer;
}
.lcd .runner-start:is(:hover, :focus-visible) { outline: none; }
.lcd .runner-start:hover { color: #fff; text-shadow: 0 0 7px #fff, 0 0 19px #42dfff; }
.lcd .runner-start:focus-visible { outline: none; text-decoration: underline; text-underline-offset: .18em; }
.lcd .runner-start[hidden] { display: none; }
.lcd-footer:has(.runner-start:not([hidden])) :is(.reveal-cards, .collect-cards) { display: none; }
.lcd .pack-runner-lives { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.full-art-life-gain {
  position: absolute; z-index: 6; top: 38%; left: 0; width: 100%;
  color: #ecffff; font: 900 clamp(10px, calc(var(--card-width) * .19), 32px)/1.2 system-ui;
  text-shadow: 0 0 .12em #fff, 0 0 .35em #65edff, 0 0 .7em #32b6ff, 0 .05em .1em #071934;
  pointer-events: none; white-space: nowrap;
  animation: full-art-life-gain 2.2s .35s ease-out both;
}
@keyframes full-art-life-gain {
  0% { opacity: 0; transform: translateY(.2em) scale(.85); }
  15%, 45% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-.65em) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .full-art-life-gain { animation-name: full-art-life-fade; }
}
@keyframes full-art-life-fade { 0%, 100% { opacity: 0; } 15%, 45% { opacity: 1; } }

/* Level success and its choices are floating illuminated text only. */
.lcd .full-art-mini[data-phase="choice"] .runner-message {
  inset: 30% 4% auto; min-height: 0; padding: 0;
  background: none; border: 0; border-radius: 0; box-shadow: none;
}
.lcd .full-art-mini[data-phase="choice"] .runner-message > span:empty { display: none; }
.lcd .runner-success-title {
  max-width: 100%; color: #fff0b4;
  font: 950 clamp(18px, 5.4cqw, 44px)/1.5 system-ui, sans-serif;
  text-wrap: balance;
  text-shadow: 0 2px 3px #251425, 0 0 7px #ffda6d, 0 0 20px #ffb536;
}
.lcd .runner-success-title .runner-result-word { display: inline-block; white-space: nowrap; font: inherit; }
.lcd .runner-success-title .runner-result-letter {
  display: inline-block; font: inherit; transform-origin: center;
}
.lcd .full-art-mini[data-phase="choice"] .runner-footer { top: 50%; left: 4%; right: 4%; }
.lcd .full-art-mini[data-phase="choice"] .runner-actions { gap: clamp(8px, 3cqw, 26px); align-items: center; }
.lcd .full-art-mini[data-phase="choice"] .runner-actions button {
  flex: 0 1 auto; min-width: 0; max-width: 100%; min-height: 44px;
  padding: 6px 10px; border: 0; border-radius: 0; background: none; box-shadow: none;
  color: #c9fbff; font: 900 clamp(12px, 3.2cqw, 25px)/1.35 system-ui, sans-serif;
  white-space: normal; text-wrap: balance;
  text-shadow: 0 1px 3px #07142a, 0 0 6px #77dfff, 0 0 18px #2ebfff;
}
.lcd .full-art-mini[data-phase="choice"] .runner-actions .runner-advance {
  color: #fff0ad; text-shadow: 0 1px 3px #301c21, 0 0 6px #ffe16d, 0 0 18px #f5aa31;
}
.lcd .full-art-mini[data-phase="choice"] .runner-actions button:is(:hover, :focus-visible) {
  outline: none; text-decoration: underline; text-underline-offset: .2em;
}
@media (prefers-reduced-motion: no-preference) {
  .runner-success-title .runner-result-letter {
    animation: full-art-letter-swell 2s calc(var(--letter-index) * .075s) ease-in-out infinite;
  }
}

/* A reserved top-bar slot keeps course lives readable at every screen size. */
.lcd .player-bar { grid-template-columns: 1.3fr 1fr .65fr .85fr 1fr; }
.lcd:not(:fullscreen, .fullscreen-layout) .player-bar {
  width: calc(100% - 144px); left: 50%; right: auto; translate: -50% 0;
}
.lcd:not(:fullscreen, .fullscreen-layout) .lcd-interface > .fullscreen-toggle {
  inset: 0 auto auto 4px; width: 64px;
}
.lcd .player-lives { align-self: center; align-content: normal; background: none; }
.lcd .player-lives > .pack-runner-lives {
  position: static; padding: 0; margin: 0; background: none; border: 0;
  color: #fff0f5; font-family: inherit; font-size: clamp(9px, 2.5cqw, 12px); font-weight: 700; line-height: normal;
  text-shadow: 0 0 2px #ff9dc080; white-space: nowrap;
}
.lcd .player-lives-label { color: #fbd6e1; }
.lcd:is(:fullscreen, .fullscreen-layout) .player-lives > .pack-runner-lives { font-size: clamp(14px, 4.3cqw, 20px); }
/* Clear a real gap between card rows for the larger, clickable launch text. */
.lcd-interface.has-runner-start .lcd-footer { display: none; }
.lcd .reveal > .runner-start {
  position: absolute; z-index: 9; left: 0; width: 100%; top: 50%;
  transform: translateY(-50%); margin: 0; padding: 6px 4px;
  font-size: clamp(18px, 5.5cqw, 32px); line-height: 1.2;
  text-shadow: 0 2px 3px #000, 0 0 5px #000, 0 0 9px #78eaff;
}
.lcd-interface.has-runner-start .revealed-cards {
  --runner-row-gap: clamp(76px, 15cqh, 112px);
  --card-width: min(174px, calc((100cqw - (var(--columns) - 1) * var(--card-gap)) / var(--columns)),
    calc((100cqh - (var(--rows) - 1) * var(--runner-row-gap)) / var(--rows) * 2 / 3));
  row-gap: var(--runner-row-gap);
}
/* Compact black backing separates game text from the busy illustration. */
.lcd .runner-header { background: none; padding: 6px 10px; }
.lcd .runner-header :is(.runner-level, .runner-progress) { background: #000c; padding: 3px 6px; border-radius: 3px; }
.lcd .runner-header .runner-lives { background: none; border: 0; padding: 0; box-shadow: none; text-shadow: 0 2px 3px #000, 0 0 5px #000; }
.lcd .runner-message { background: #000d; border-color: transparent; }
.lcd .full-art-mini[data-phase="choice"] .runner-message { background: none; }
.lcd .runner-success-title { display: inline-block; padding: 5px 12px; background: #000d; border-radius: 4px; }
.lcd .full-art-mini[data-phase="choice"] .runner-actions button {
  background: #000d; border-radius: 4px; text-shadow: 0 1px 2px #000, 0 0 7px #64dfff;
}
.lcd .runner-instructions { background: #000e; border: 0; box-shadow: none; }
.lcd .runner-countdown { background: #000b; }

/* Framed comic panels replace the flat black text backing. */
.lcd .runner-message,
.lcd .full-art-mini[data-phase="choice"] .runner-message {
  background: linear-gradient(145deg, #263e60f5, #45283ff5 55%, #1d344df5);
  border: 2px solid #e6c37d;
  border-radius: clamp(12px, 3cqw, 20px);
  box-shadow: 0 0 0 3px #1d1838, inset 0 0 0 2px #ffe8ac25, 0 6px 18px #15162e99;
}
.lcd .full-art-mini[data-phase="choice"] .runner-message {
  --runner-result-font: clamp(26px, min(8.1cqw, 12cqh), 62px);
  inset: 29% 5% auto; padding: clamp(9px, 2.6cqw, 18px) 12px;
}
.lcd .runner-success-title {
  display: block; width: 100%; padding: 0; background: none; border-radius: 0;
  font-size: clamp(26px, min(8.1cqw, 12cqh), 62px); line-height: 1.5;
  color: #fff0b1;
  text-shadow: 0 2px 1px #51343d, 0 0 8px #ffe19e88;
}
.lcd .full-art-mini[data-phase="choice"] .runner-footer {
  top: max(52%, calc(29% + clamp(26px, min(8.1cqw, 12cqh), 62px) * 1.5 + clamp(9px, 2.6cqw, 18px) * 2 + 24px));
  left: 5%; right: 5%;
}
.lcd .full-art-mini[data-phase="choice"] .runner-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr; align-items: stretch; gap: clamp(10px, 3cqw, 24px);
}
.lcd .full-art-mini[data-phase="choice"] .runner-actions button {
  width: 100%; height: 100%; min-height: clamp(58px, 12cqw, 78px);
  padding: 10px 8px; border: 2px solid #bdebd7;
  border-radius: clamp(10px, 2.5cqw, 16px);
  background: linear-gradient(160deg, #326b75, #234355 60%, #1a3349);
  box-shadow: 0 3px 0 #142138, inset 0 1px 0 #eaffef55;
  color: #e0fff1; font-size: clamp(13px, 3.6cqw, 25px); line-height: 1.3;
  text-shadow: 0 2px 2px #173449; text-decoration: none;
}
.lcd .full-art-mini[data-phase="choice"] .runner-actions .runner-advance {
  background: linear-gradient(160deg, #79536c, #51324f 60%, #392c48);
  border-color: #efcf8b; color: #fff0b8; text-shadow: 0 2px 2px #4c2c45;
}
.lcd .full-art-mini[data-phase="choice"] .runner-actions button:hover {
  filter: brightness(1.12); text-decoration: none;
}
.lcd .full-art-mini[data-phase="choice"] .runner-actions button:focus-visible {
  outline: 2px solid #fff0b8; outline-offset: 3px; text-decoration: none;
}
.lcd .full-art-mini[data-phase="choice"] .runner-actions:has(.runner-advance[hidden]) {
  grid-template-columns: minmax(0, 1fr); max-width: 360px; margin-inline: auto;
}
.lcd .runner-header :is(.runner-level, .runner-progress) {
  background: linear-gradient(145deg, #324761ee, #3c2b4dee);
  border: 1px solid #d9bd81; border-radius: 6px;
}
.lcd .runner-instructions {
  background: linear-gradient(145deg, #59376a, #253b59); border: 2px solid #e6c37d;
}
.lcd .runner-countdown { background: none; text-shadow: 0 2px 3px #30203f, 0 0 16px #ffd36d; }

/* A fixed comic frame keeps the launch action clear while its lettering blinks. */
.lcd .reveal > .runner-start {
  left: 8px; width: calc(100% - 16px); min-height: 54px; padding: 8px 10px;
  background: linear-gradient(145deg, #2b4e68f5, #3c304ef5 65%, #223c54f5);
  border: 2px solid #edce8c; border-radius: clamp(10px, 2.7cqw, 17px);
  box-shadow: 0 0 0 2px #23213d, inset 0 1px 0 #fff0ba40, 0 4px 10px #19243e99;
  color: #dbfbff; text-shadow: 0 2px 2px #23344c, 0 0 7px #89e9ff88;
}
.lcd .runner-start-label { display: block; }
.lcd .reveal > .runner-start:is(:hover, :focus-visible) { text-decoration: none; border-color: #fff1bd; }
.lcd .reveal > .runner-start:focus-visible { outline: 2px solid #b8f5ff; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .runner-start:not([hidden]) .runner-start-label { animation: runner-launch-blink 1.8s ease-in-out infinite; }
}
@keyframes runner-launch-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
