/* PLANKX — arcade cabinet chrome */
:root {
  --wood-dark: #24140c;
  --wood: #3a2214;
  --wood-mid: #5a3420;
  --wood-lite: #7a4a2c;
  --brass: #c9a227;
  --brass-dim: #8a7018;
  --crt-black: #07080a;
  --neon: #ffb000;
  --tang: #ff6a00;
  --tang-hot: #ff3b00;
  --neon-red: #ff3b3b;
  --panel: #1a120e;
  --text: #f3e2b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: #0a0706;
  color: var(--text);
  font-family: "Special Elite", "Courier New", Georgia, serif;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; }
a { color: var(--neon); }

.room {
  position: relative;
  min-height: 100%;
  min-height: 100dvh;
  padding: 16px 12px 28px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(180, 90, 20, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0,0,0,0.9), transparent 50%),
    linear-gradient(180deg, #140c08 0%, #0a0604 40%, #050302 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.room::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("../assets/gallery-bg.png") center / cover no-repeat;
  opacity: 0.18;
}
.haze {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.03) 4px);
  z-index: 0;
}

.cabinet-wrap {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.75));
}

.cabinet {
  background-color: var(--wood);
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.22) 0px,
      rgba(90,50,22,0.18) 2px,
      rgba(20,10,4,0.12) 4px,
      rgba(120,70,30,0.22) 7px,
      rgba(0,0,0,0.18) 10px,
      rgba(80,45,20,0.1) 14px
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      rgba(255,210,140,0.035) 28px,
      transparent 56px
    ),
    linear-gradient(90deg, #1a0e08 0%, #4a2a18 12%, #3a2214 50%, #5a3420 88%, #1a0e08 100%);
  border: 4px solid #120a06;
  border-radius: 8px 8px 4px 4px;
  padding: 10px 14px 0;
  box-shadow:
    inset 8px 0 18px rgba(0,0,0,0.45),
    inset -8px 0 18px rgba(0,0,0,0.45),
    inset 0 8px 12px rgba(255,200,120,0.08),
    0 0 0 2px #6a4428;
}

.cab-top { padding: 4px 4px 8px; }

.marquee {
  background: #080604;
  border: 3px solid var(--brass-dim);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 0 0 2px #1a1008,
    inset 0 0 20px rgba(255, 90, 0, 0.18),
    0 0 24px rgba(255, 90, 0, 0.28);
}
.bulb-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 8px;
  background: #120c08;
}
.bulb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe38a, #ffb000 45%, #a06000);
  box-shadow: 0 0 8px #ffb000;
  animation: blink 1.1s ease-in-out infinite;
}
.bulb:nth-child(odd) { animation-delay: 0.55s; }
@keyframes blink {
  0%, 100% { opacity: 1; filter: brightness(1.1); }
  50% { opacity: 0.45; filter: brightness(0.6); }
}
html.plankx-hidden .bulb,
html.plankx-hidden .start-lamp {
  animation-play-state: paused !important;
}

.marquee-art {
  position: relative;
  text-align: center;
  padding: 10px 8px 22px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,140,40,0.18), transparent 62%),
    repeating-linear-gradient(90deg,
      #3a2214 0 10px,
      #4a2c18 10px 12px,
      #2a1810 12px 22px),
    linear-gradient(180deg, #4a2a14, #1a0e08);
}
.marquee-sub {
  font-family: "Bungee", Impact, sans-serif;
  font-size: clamp(10px, 2.6vw, 14px);
  letter-spacing: 0.18em;
  color: #ff6a00;
  text-shadow:
    0 0 8px #ff3b00,
    1px 2px 0 #3a0800;
}

/* PlankX — each glyph is a 3D cream plank board, facing the camera */
.marquee-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
}
.plank-logo {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4px 8px 2px;
  cursor: pointer;
}
.plank-logo img {
  display: block;
  width: auto;
  max-width: 92%;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 3px 0 #1a0c08);
}
.plank-logo:focus { outline: 1px dashed #c9a227; outline-offset: 4px; }
.plank-letter {
  position: relative;
  width: clamp(38px, 9.4vw, 52px);
  height: clamp(56px, 14.5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #c48a38;
  background-image:
    url("../assets/plank-board.png"),
    repeating-linear-gradient(90deg,
      rgba(40,18,4,0.35) 0px,
      rgba(180,110,40,0.18) 2px,
      rgba(90,45,16,0.1) 4px,
      rgba(210,140,60,0.22) 7px,
      rgba(40,18,4,0.28) 10px),
    linear-gradient(180deg, #d4a056 0%, #a86a28 38%, #6a3a14 100%);
  background-size: cover, auto, auto;
  background-position: center 42%, 0 0, 0 0;
  background-repeat: no-repeat, repeat, no-repeat;
  border: 2px solid #f0d090;
  border-radius: 3px 3px 2px 2px;
  box-shadow:
    2px 2px 0 #6a3a12,
    4px 4px 0 #4a280c,
    6px 6px 0 #2a1608,
    8px 10px 14px rgba(0,0,0,0.5),
    inset 0 2px 0 rgba(255,230,170,0.35),
    inset 0 -6px 10px rgba(0,0,0,0.25);
  transform-origin: 50% 100%;
  transform: rotateX(17deg);
}
.plank-letter.short {
  width: clamp(34px, 8.4vw, 46px);
  height: clamp(48px, 12.2vw, 64px);
}
.plank-letter i {
  font-style: normal;
  font-family: "Bungee", Impact, sans-serif;
  font-size: clamp(24px, 6.8vw, 40px);
  line-height: 1;
  color: #fff4d0;
  text-shadow:
    0 1px 0 #ffe8b0,
    0 -1px 0 #5a3010,
    2px 3px 0 #3a1a08;
  -webkit-text-stroke: 1px #3a1808;
}
.plank-letter.short i { font-size: clamp(20px, 5.8vw, 32px); }
.plank-letter.l0 { transform: rotateX(17deg) rotateZ(-1.8deg); }
.plank-letter.l1 { transform: rotateX(16deg) rotateZ(1.5deg); }
.plank-letter.l2 { transform: rotateX(18deg) rotateZ(-0.7deg); }
.plank-letter.l3 { transform: rotateX(16deg) rotateZ(1.1deg); }
.plank-letter.l4 { transform: rotateX(17deg) rotateZ(-1.3deg); }
.plank-letter.l5 { transform: rotateX(18deg) rotateZ(1.8deg); }
.plank-letter::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 4px;
  width: 7px;
  bottom: 2px;
  background: linear-gradient(180deg, #6a4018, #2a1408);
  transform: skewY(18deg);
  transform-origin: top left;
  box-shadow: inset -1px 0 0 #1a0c04;
}
.plank-letter::after {
  content: "";
  position: absolute;
  left: 3px;
  right: -2px;
  top: 100%;
  height: 6px;
  background: linear-gradient(90deg, #3a1c0a, #1a0c04);
  transform: skewX(18deg);
  transform-origin: top left;
}

.marquee-tag {
  margin-top: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: #f3e2b8;
  text-shadow: 0 0 10px #ffb000;
}

.wallet-deck {
  margin-top: 0;
  margin-bottom: 12px;
  background:
    linear-gradient(180deg, #2a2218, #14100c);
  border: 2px solid #c9a227;
  border-radius: 4px;
  padding: 10px 10px 8px;
  box-shadow: inset 0 1px 0 rgba(255,220,140,0.18), 0 2px 0 #1a1008;
  text-align: center;
}
.wallet-title {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #ffd24a;
  margin-bottom: 8px;
}
.wallet-tenders {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.tender-btn {
  flex: 1;
  max-width: 160px;
  height: 42px;
  border-radius: 4px;
  border: 2px solid #5a4010;
  background: linear-gradient(#ffe08a, #c9a227 60%, #8a7018);
  color: #1a1200;
  font-family: "Bungee", Impact, sans-serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  box-shadow: 0 3px 0 #5a4010, inset 0 1px 0 rgba(255,240,180,0.45);
}
.tender-btn.alt {
  border: 2px solid #063012;
  background: linear-gradient(#4dff6e, #14c43a 50%, #0a8a28);
  color: #041808;
  box-shadow: 0 3px 0 #063012, inset 0 1px 0 rgba(220,255,200,0.45);
}
.tender-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #3a1000; }
.tender-btn.is-flash { filter: brightness(1.25); }
.tender-btn.faucet {
  border: 2px solid #3a2010;
  background: linear-gradient(#7a5a38, #4a3018 60%, #2a1808);
  color: #f3e2c4;
  box-shadow: 0 3px 0 #1a0a00, inset 0 1px 0 rgba(255,210,74,0.2);
  font-size: 10px;
  letter-spacing: 0.04em;
  max-width: none;
  min-width: 72px;
  padding: 0 8px;
}
.tender-btn.faucet[hidden] { display: none; }
.crt-under .tender-btn.faucet { font-size: 8px; height: 40px; min-width: 58px; }

.wallet-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  color: #c8f5a0;
  line-height: 1.5;
}
.wallet-stats .k { color: #8a7040; display: block; letter-spacing: 0.12em; }
.wallet-stats .stat { text-align: left; }
.wallet-stats .stat:last-child { text-align: right; }
.wallet-stats .unit { color: #8aaa80; }
.wallet-note {
  margin-top: 6px;
  font-family: "Press Start 2P", monospace;
  font-size: 5px;
  letter-spacing: 0.08em;
  color: #8a7040;
}

.create-plate {
  display: inline-block;
  margin: 6px 4px 4px;
  padding: 6px 10px 5px;
  background: linear-gradient(#3a1408, #1a0a04);
  border: 1px solid #ff6a00;
  color: #f3e2b8;
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  box-shadow: 0 2px 0 #1a1008, inset 0 1px 0 rgba(255,120,40,0.25);
}
.create-plate a {
  color: #ffd24a;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,210,74,0.35);
}

.speaker-grill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 58px;
  height: auto;
  padding: 2px 72px 4px;
  gap: 4px;
  overflow: visible;
}
.grill-slats {
  display: flex;
  gap: 6px;
  justify-content: center;
  order: 2;
}
.speaker-grill > .cups-game { order: 1; width: 100%; }
.grill-slats span {
  width: 12px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(#1a100c, #0a0604);
  box-shadow: inset 0 1px 2px #000, 0 1px 0 rgba(255,200,140,0.15);
}
.cab-mark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #6a4420;
  background: #fede79;
}
.cab-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cab-mark:hover { filter: brightness(1.12); }
.sb-labs {
  right: 10px;
  box-shadow: 0 2px 0 #0a0604, 0 0 10px rgba(255, 80, 180, 0.18);
}
.mm-pro {
  left: 10px;
  box-shadow: 0 2px 0 #0a0604, 0 0 10px rgba(255, 176, 0, 0.22);
}

/* Cups: 5 shells, 10c RNG */
.cups-game {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 0;
  min-height: 0;
  column-gap: 12px;
}
.speaker-grill .tender-btn.alt {
  background-color: #14c43a;
  background-image: linear-gradient(#4dff6e, #14c43a 50%, #0a8a28);
  mix-blend-mode: normal;
  isolation: isolate;
  opacity: 1;
}
#cups-stake-l,
#cups-stake-r {
  grid-row: 1;
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 26px;
  font-size: 11px;
  padding: 0 4px;
  letter-spacing: 0.04em;
}
#cups-stake-l { grid-column: 1; justify-self: end; }
.cups-row { grid-row: 1; grid-column: 2; justify-self: center; }
#cups-stake-r { grid-column: 3; justify-self: start; }
.cups-stake:disabled,
.cups-stake.is-dead {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
.cups-row {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  position: relative;
  z-index: 2;
  margin-bottom: 4px;
  padding-bottom: 2px;
  isolation: isolate;
  filter: none !important;
}
.cup {
  width: 18px;
  height: 28px;
  cursor: pointer;
  position: relative;
  flex: 0 0 18px;
  opacity: 1;
  z-index: 2;
  filter: none !important;
  mix-blend-mode: normal;
}
.cup:hover .cup-lift { transform: translateY(-2px); }
.cup.nudge .cup-lift { transform: translateY(-6px); }
.cup.disabled { cursor: not-allowed; }
.cup-lift {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  transform: translateY(0);
  transition: transform 0.28s ease;
}
.cup.lift .cup-lift { transform: translateY(-14px); }
.cup-ball {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #ffffff !important;
  box-shadow: none;
  border: 0;
  display: none;
  z-index: 0;
  pointer-events: none;
  filter: none !important;
  mix-blend-mode: normal;
}
.cup.has-ball .cup-ball { display: block; }
/* Red body stops above the lip. White lip is its own solid edge on the table. */
.cup-body {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 3px;
  background: #e5392b !important;
  clip-path: polygon(22% 0%, 78% 0%, 100% 100%, 0% 100%);
  border-radius: 0;
  opacity: 1;
  z-index: 1;
  box-shadow: none;
  border: 0;
  filter: none !important;
}
.cup-ring {
  display: block !important;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #ffffff !important;
  border: 0;
  border-radius: 0 0 2px 2px;
  z-index: 2;
  pointer-events: none;
  box-shadow: none;
  filter: none !important;
  mix-blend-mode: normal;
  clip-path: none;
}
.cup.animate { animation: none; }
.cups-game,
.speaker-grill .cups-game {
  filter: none !important;
  isolation: isolate;
}
.cups-pot {
  grid-row: 2;
  grid-column: 1 / -1;
  justify-self: center;
  position: relative;
  font-size: 9px;
  color: #ffd24a;
  white-space: nowrap;
  opacity: 0.6;
  margin-top: 2px;
}
/* Commit / settle needs somewhere to say what the cabinet is waiting on. */
.cups-note {
  grid-row: 3;
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 46ch;
  margin-top: 3px;
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-align: center;
  color: #cbb488;
  text-wrap: balance;
}
.cups-note:empty { display: none; }
.cups-note.is-warn { color: #ffb04a; }
.cups-note.is-win { color: #7cff9a; }
/* A sealed pick stays lit while the settle block is on its way. */
.cup.is-picked .cup-body {
  outline: 2px solid #ffd24a;
  outline-offset: 2px;
}

.bezel {
  position: relative;
  background: linear-gradient(180deg, #2a1c14, #120c0a 40%, #1c1410);
  border: 6px solid #1a120e;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow:
    inset 0 0 0 3px #0a0604,
    inset 0 0 0 6px #3a2a20,
    0 8px 16px rgba(0,0,0,0.5);
}
.bezel-screw {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e8d48a, var(--brass) 40%, #6a5410);
  box-shadow: 0 1px 2px #000, inset 0 -1px 1px #5a4010;
}
.bezel-screw.tl { top: 6px; left: 6px; }
.bezel-screw.tr { top: 6px; right: 6px; }
.bezel-screw.bl { bottom: 6px; left: 6px; }
.bezel-screw.br { bottom: 6px; right: 6px; }
.bezel-screw::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; top: 5px;
  height: 2px;
  background: rgba(0,0,0,0.35);
  transform: rotate(25deg);
}

.crt {
  position: relative;
  background: var(--crt-black);
  border-radius: 18px / 14px;
  overflow: hidden;
  box-shadow:
    inset 0 0 40px rgba(0,0,0,0.8),
    inset 0 0 80px rgba(40, 80, 40, 0.12),
    0 0 20px rgba(80, 255, 120, 0.08);
}
.crt canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
  background: #050806;
  touch-action: none;
  outline: none;
}
.scanlines, .phosphor, .glass-glare { display: none !important; }
.vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 28px 6px rgba(0,0,0,0.28);
}

.control-panel {
  margin-top: 10px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25), transparent 20%),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.18) 0 3px, transparent 3px 8px),
    linear-gradient(180deg, #4a2e1c, #2a1810);
  border-radius: 6px 6px 0 0;
  padding: 12px 12px 10px;
  transform: none;
  transform-origin: top center;
  box-shadow: inset 0 2px 0 rgba(255,210,150,0.12), 0 -4px 12px rgba(0,0,0,0.3);
}

/* On-screen control deck. The only usable controls on a touch device, so the
 * targets are finger-sized and never shrink below the 44px tap guidance. */
.ctrl-deck {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 10px;
}
.ctrl-btn {
  flex: 1;
  min-height: 56px;
  border: 2px solid #120a06;
  border-radius: 6px;
  background: linear-gradient(180deg, #5a3a22, #35200f 55%, #23150a);
  color: #ffd24a;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow:
    inset 0 2px 0 rgba(255, 210, 150, 0.22),
    inset 0 -3px 8px rgba(0,0,0,0.5),
    0 3px 0 #1a1008;
}
.ctrl-btn.ctrl-move { flex: 0 0 22%; font-size: 14px; }
.ctrl-btn.ctrl-act { color: #c8f5a0; }
.ctrl-btn:hover { filter: brightness(1.1); }
.ctrl-btn:active,
.ctrl-btn.is-down {
  transform: translateY(3px);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
  filter: brightness(1.15);
}

.plate {
  background-color: #2a160c;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.32) 0px,
      rgba(90,50,22,0.22) 2px,
      rgba(20,10,4,0.16) 4px,
      rgba(140,80,32,0.20) 7px,
      rgba(0,0,0,0.24) 10px,
      rgba(80,45,20,0.12) 14px
    ),
    linear-gradient(180deg, #4a2a14 0%, #2a160c 45%, #140a06 100%);
  color: #f3e2b8;
  border: 2px solid #c9a227;
  border-radius: 3px;
  padding: 10px 12px;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px #6a4420,
    inset 0 2px 0 rgba(255, 220, 140, 0.22),
    inset 0 -3px 10px rgba(0,0,0,0.5),
    0 2px 0 #1a1008;
  -webkit-font-smoothing: antialiased;
}
.plate-title,
.plate p,
.plate .keys {
  color: #f3e2b8 !important;
  opacity: 1 !important;
  text-shadow: 0 1px 0 #120600;
  -webkit-text-fill-color: #f3e2b8;
}
.plate-title {
  font-family: "Bungee", Impact, sans-serif;
  font-size: 14px;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
  font-weight: 400;
  text-transform: uppercase;
  color: #ffd24a !important;
  -webkit-text-fill-color: #ffd24a;
  text-shadow: 0 2px 0 #1a0800, 0 0 10px rgba(255, 210, 74, 0.35);
}
.plate p {
  font-family: "Press Start 2P", "Bungee", Impact, sans-serif;
  font-size: 7px;
  line-height: 1.85;
  font-weight: 400;
}
.plate .keys {
  margin-top: 8px;
  font-size: 6px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #e8c070 !important;
  -webkit-text-fill-color: #e8c070;
}

.controls-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}
.controls-row.secondary { gap: 8px; }

.arcade-btn {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 5px solid #5a2000;
  background:
    radial-gradient(circle at 35% 28%, #ff9a40, #ff6a00 52%, #a04000);
  box-shadow:
    0 8px 0 #5a1800,
    0 12px 16px rgba(0,0,0,0.5),
    inset 0 -8px 12px rgba(80,20,0,0.45),
    inset 0 8px 8px rgba(255,220,160,0.28);
  color: #fff4e0;
  text-shadow: 0 2px 0 #5a1800;
  transition: transform 0.05s, box-shadow 0.05s, filter 0.15s;
  filter: saturate(0.85) brightness(0.88);
}
.arcade-btn.is-lit {
  background:
    radial-gradient(circle at 35% 28%, #ffc070, #ff6a00 48%, #c04800);
  color: #fffaf0;
  filter: none;
  box-shadow:
    0 8px 0 #5a1800,
    0 12px 16px rgba(0,0,0,0.5),
    0 0 22px rgba(255, 106, 0, 0.65),
    inset 0 -8px 12px rgba(80,20,0,0.28),
    inset 0 8px 8px rgba(255,230,180,0.35);
}
.arcade-btn:hover { filter: brightness(1.08); }
.arcade-btn.is-lit:hover { filter: brightness(1.08); }
.arcade-btn:active,
.arcade-btn.is-down {
  transform: translateY(6px);
  box-shadow:
    0 2px 0 #2a080c,
    0 4px 8px rgba(0,0,0,0.4),
    inset 0 -4px 8px rgba(0,0,0,0.4);
}
.arcade-cap {
  font-family: "Bungee", Impact, sans-serif;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.wood-btn {
  min-width: 64px;
  height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  border: 2px solid #1a1008;
  background: linear-gradient(#6a4a2c, #3a2414);
  color: #f3e2b8;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  box-shadow: 0 4px 0 #1a1008, inset 0 1px 0 rgba(255,220,160,0.25);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.wood-btn:active, .wood-btn.is-down { transform: translateY(3px); box-shadow: 0 1px 0 #1a1008; }
.wood-btn.wide { min-width: 90px; flex: 1; }
.wood-btn.icon { min-width: 48px; }
.wood-btn.muted { color: #8a7060; }

.coin-door, .start-lamp { display: none !important; }



.sticker-sheet {
  margin-top: 12px;
  text-align: center;
  padding: 8px 4px 2px;
}
.peel-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.peel {
  display: inline-block;
  font-family: "Bungee", Impact, sans-serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  padding: 6px 12px 5px;
  line-height: 1;
  user-select: none;
  box-shadow: 2px 3px 0 #000, inset 0 1px 0 rgba(255,255,255,0.25);
}
.peel.orange {
  background: linear-gradient(#ff9a2a, #ff6a00 55%, #e04800);
  color: #1a0800;
  transform: rotate(-2.4deg);
  border: 2px dashed #ffd24a;
  text-shadow: 0 1px 0 rgba(255,220,140,0.5);
}
.peel.dark {
  background: #140800;
  color: #ff6a00;
  transform: rotate(2.8deg);
  border: 2px solid #ff6a00;
  text-shadow: 0 0 8px #ff3b00;
}
.lore-line {
  margin: 10px 8px 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #e8c090;
}
.launch-plate {
  display: inline-block;
  margin-top: 2px;
  padding: 6px 10px 5px;
  background: linear-gradient(#3a2a14, #22180c);
  border: 1px solid #c9a227;
  color: #f3e2b8;
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  box-shadow: 0 2px 0 #1a1008, inset 0 1px 0 rgba(255,210,120,0.2);
}
.launch-plate a {
  color: #ffb000;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,176,0,0.35);
}
.launch-plate a:hover { color: #fff; }

.community {
  margin-top: 12px;
  text-align: center;
  padding: 8px 6px 4px;
}
.tagline {
  font-family: "Bungee", Impact, sans-serif;
  font-size: 18px;
  color: #ffd24a;
  text-shadow: 0 2px 0 #3a1c00;
}
.nft-line {
  margin: 4px 0 8px;
  font-size: 12px;
  color: #d4c09a;
}
.link-sheet, .x-sheet {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.link-sheet a, .x-sheet a {
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
  letter-spacing: 0.04em;
  color: #1a0800;
  background: #ff8a1a;
  text-decoration: none;
  padding: 5px 7px 4px;
  border: 1px solid #3a1000;
  box-shadow: 1px 2px 0 #1a0800;
  transform: rotate(-0.6deg);
}
.link-sheet a:nth-child(even) { transform: rotate(0.8deg); background: #ffd24a; }
.link-sheet a:hover, .x-sheet a:hover { filter: brightness(1.12); color: #3a1000; }
.x-sheet a {
  background: #120c08;
  color: #ffb000;
  border-color: #6a4428;
  box-shadow: 1px 2px 0 #000;
}
.x-lab {
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
  color: #8a7040;
  align-self: center;
  letter-spacing: 0.12em;
}

.ca-row { margin-top: 8px; }
.ca-label {
  display: block;
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
  letter-spacing: 0.14em;
  color: #8a7040;
  margin-bottom: 4px;
}
.ca-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #120c08;
  border: 1px solid #6a4428;
  border-radius: 4px;
  padding: 8px 10px;
  color: #f3e2b8;
}
.ca-btn code {
  font-size: 10px;
  word-break: break-all;
  text-align: left;
  color: #c8f5a0;
}
.ca-copy {
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  color: var(--neon);
  flex-shrink: 0;
}
.chain {
  margin-top: 6px;
  font-size: 11px;
  color: #9a8060;
}


.cab-ad {
  margin: 8px -12px 0;
  background: #062010;
  border: 2px solid #c9a227;
  border-radius: 0;
  padding: 0;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,220,140,0.18), 0 2px 0 #1a1008;
}
.cab-ad-kicker {
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
  letter-spacing: 0.22em;
  color: #8a7040;
  margin-bottom: 6px;
}
.cab-ad-link {
  display: block;
  text-decoration: none;
  padding: 0;
  background: #062010;
  border: none;
  border-radius: 0;
  overflow: hidden;
  height: auto;
}
.cab-ad-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  object-position: center;
}
.cab-ad-link:hover { filter: brightness(1.08); }
.cab-ad-brand {
  font-family: "Bungee", Impact, sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #ffb000;
  text-shadow: 0 2px 0 #3a1c00, 0 0 12px rgba(255,176,0,0.35);
  line-height: 1.1;
}
.cab-ad-line {
  margin-top: 4px;
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  letter-spacing: 0.06em;
  color: #f3e2b8;
  line-height: 1.5;
}
.cab-ad-credit {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #c8a070;
  line-height: 1.4;
}
.cab-ad-credit a {
  color: #ffb000;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,176,0,0.4);
}

.kickplate {
  height: 24px;
  margin: 0 -14px;
  padding: 0 10px;
  background:
    repeating-linear-gradient(90deg, #1a1a1c 0 10px, #111 10px 12px),
    #151516;
  border-top: 2px solid #000;
  border-radius: 0 0 4px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cab-planque, .cab-plaque {
  font-family: "Press Start 2P", monospace;
  font-size: 5px;
  letter-spacing: 0.08em;
  color: #c9a227;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}
.cab-serial {
  font-family: "Press Start 2P", monospace;
  font-size: 5px;
  letter-spacing: 0.12em;
  color: #7a7060;
  opacity: 0.75;
}

.floor-credit {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  max-width: 560px;
  text-align: center;
  font-size: 11px;
  color: #6a5848;
  padding: 0 12px;
}

@media (max-width: 520px) {
  .cabinet { padding: 8px 8px 0; }
  .control-panel { transform: none; }
  .arcade-btn { width: 72px; height: 72px; }
  .plate p { font-size: 6px; color: #f3e2b8; }
  .serial { text-align: center; }
  .peel { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .bulb, .start-lamp { animation: none; }
}

html.shot .bulb, html.shot .start-lamp, html.shot * {
  animation: none !important;
  transition: none !important;
}

.faq-plate-link {
  display: inline-block;
  margin-top: 4px;
  color: #ffd24a !important;
  -webkit-text-fill-color: #ffd24a;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,210,74,0.45);
  letter-spacing: 0.08em;
}
.faq-plate-link:hover { color: #fff4d0 !important; -webkit-text-fill-color: #fff4d0; }

.crt-under {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: auto;
  z-index: 8;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 6px 10px 6px;
  background: linear-gradient(#2a2218f5, #14100cfa);
  border: 2px solid #d4b24a;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,220,140,0.22), 0 3px 0 #1a1008;
}
.crt-coin-copy {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 0;
  padding: 0 4px;
  text-align: center;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: #ffd24a;
}
.crt-insert-label {
  grid-column: 2;
  text-align: center;
  padding-top: 4px;
  white-space: nowrap;
}
/* Deck copy row mirrors around INSERT $1: controls left, readout right. */
.crt-deck-side {
  position: static;
  display: flex;
  align-items: center;
  min-width: 0;
  z-index: 4;
}
.crt-deck-left { grid-column: 1; justify-content: flex-start; }
.crt-deck-right { grid-column: 3; justify-content: flex-end; }

.crt-deck-side .wallet-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 12px;
  margin-top: 0;
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
}
.crt-deck-side .wallet-stats .k {
  display: inline;
}
.crt-deck-side .wallet-stats .stat,
.crt-deck-side .wallet-stats .stat:last-child {
  display: inline;
  text-align: right;
  white-space: nowrap;
}
.crt-coin-ratio {
  margin-top: 4px;
  font-size: 7px;
  letter-spacing: 0.08em;
  color: #c8f5a0;
}
.crt-coin-row {
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: 16px 1fr auto 1fr 16px;
  align-items: center;
  column-gap: 10px;
  min-height: 0;
  padding: 0 8px;
}
.crt-coin-row > .coin-slot-l { grid-column: 1; }
.crt-under .coin-slot-l { left: 4px; }
.crt-under .coin-slot-r { right: 4px; }
/* $1 and $PLANK are a mirrored pair: equal tracks, equal widths, each centred
   in its own track, so PLAY sits on the true axis of the coin door. */
.crt-coin-row > #coin-usd { grid-column: 2; justify-self: center; margin: 0; }
.crt-coin-row > .crt-play {
  grid-column: 3;
  justify-self: center;
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  z-index: 2;
}
.crt-coin-row > .crt-play:active,
.crt-coin-row > .crt-play.is-down {
  transform: none;
}
.crt-coin-row > #coin-plank { grid-column: 4; justify-self: center; margin: 0; }
.crt-coin-row > .coin-slot-r { grid-column: 5; }
.crt-coin-row > .tender-btn {
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: 96px;
  padding: 0 4px;
  z-index: 3;
}
.crt-under .coin-slot {
  --plate-w: 16px;
  pointer-events: none;
  user-select: none;
  position: absolute;
  z-index: 1;
  top: 8px;
  bottom: 8px;
  width: var(--plate-w);
  height: auto;
  align-self: auto;
  border-radius: 4px;
  background-color: #c9a227;
  background-image:
    radial-gradient(circle at 5px 6px, #f4e6b4 0 1.3px, #5a4010 1.7px, transparent 2.15px),
    radial-gradient(circle at calc(100% - 5px) 6px, #f4e6b4 0 1.3px, #5a4010 1.7px, transparent 2.15px),
    radial-gradient(circle at 5px calc(100% - 6px), #f4e6b4 0 1.3px, #5a4010 1.7px, transparent 2.15px),
    radial-gradient(circle at calc(100% - 5px) calc(100% - 6px), #f4e6b4 0 1.3px, #5a4010 1.7px, transparent 2.15px),
    repeating-linear-gradient(
      92deg,
      rgba(255,255,255,0.16) 0 1px,
      rgba(30,20,0,0.08) 1.5px 2.5px,
      transparent 3px 5px
    ),
    linear-gradient(180deg, #e8d392 0%, #c9a227 46%, #8d6e1c 100%);
  border: 1px solid #2a1c08;
  box-shadow:
    inset 0 1px 0 rgba(255,236,180,0.55),
    inset 0 -2px 4px rgba(40,24,0,0.42),
    inset 1px 0 0 rgba(255,230,160,0.16),
    0 1px 0 rgba(232,208,130,0.65),
    0 3px 0 #1a1008;
}
.crt-under .coin-slot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  bottom: 18px;
  width: 4px;
  height: auto;
  transform: translateX(-50%);
  border-radius: 1.5px;
  background: linear-gradient(90deg, #050302, #1a1008 45%, #000);
  box-shadow:
    0 0 0 1px #8e8e8a,
    0 0 0 2px #3a2808,
    inset 1px 0 2px #000,
    inset -1px 0 1px rgba(255,220,140,0.12),
    0 1px 0 rgba(255,230,170,0.28);
}
.crt-under .coin-slot::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  font-family: "Press Start 2P", monospace;
  line-height: 1;
  text-align: center;
  color: #2a1c08;
  text-shadow: 0 1px 0 rgba(255,230,170,0.35);
}
.crt-under .coin-slot-l::after {
  content: "$1";
  font-size: 5px;
  letter-spacing: 0;
}
.crt-under .coin-slot-r::after {
  content: "$PLANK";
  font-size: 5px;
  letter-spacing: -0.5px;
  transform: scale(0.72);
  transform-origin: center bottom;
}

.crt-play {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  z-index: 8;
  width: 72px;
  height: 72px;
  margin: 0;
  flex: 0 0 auto;
  pointer-events: auto;
}
.crt-play .arcade-cap { font-size: 13px; }
.arcade-btn.crt-play:active,
.arcade-btn.crt-play.is-down,
.crt-play:active,
.crt-play.is-down {
  transform: none;
  filter: brightness(1.4) saturate(1.2);
  box-shadow:
    0 8px 0 #5a1800,
    0 12px 16px rgba(0,0,0,0.5),
    0 0 20px 6px rgba(255, 210, 80, 0.95),
    inset 0 8px 8px rgba(255,230,180,0.4);
}
.crt-slot {
  position: relative;
  left: auto;
  bottom: auto;
  pointer-events: none;
  min-width: 88px;
  padding: 10px 12px 8px;
  background: linear-gradient(#2a2a2c, #161618);
  border: 2px solid #0a0a0a;
  border-radius: 6px;
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.06);
  flex: 0 0 auto;
}
.crt-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
}
.cab-nav {
  display: flex;
  gap: 6px;
}
.nav-btn {
  height: 22px;
  padding: 0 8px;
  border: 1px solid #8a7040;
  border-radius: 3px;
  background: #1a120c;
  color: #ffd24a;
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.nav-btn:hover { color: #fff4d0; border-color: #ffd24a; }
.nav-btn:active { transform: translateY(1px); }

/* FREE toggle. Lit green while free play is on so it never reads as a coin. */
.nav-free.is-on {
  background: #06301a;
  border-color: #7cff9a;
  color: #7cff9a;
  box-shadow: 0 0 6px rgba(124,255,154,0.5), inset 0 0 5px rgba(124,255,154,0.25);
}
.crt-under.is-free .crt-insert-label { color: #7cff9a; }

.crt-insert {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 148px;
  width: auto;
}
.crt-tenders {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.crt-tenders .tender-btn {
  flex: 1 1 auto;
  min-width: 64px;
}
#btn-faucet[hidden] { display: none; }
.collect-nudge {
  display: inline;
  margin: 0 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #c9a227;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.collect-nudge[hidden] { display: none !important; }
.collect-nudge:hover { color: #ffd24a; }
.collect-pop {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 45;
  pointer-events: auto;
}
.collect-pop[hidden] { display: none !important; }
.collect-pop-card {
  position: relative;
  width: min(220px, 86%);
  padding: 16px 14px 12px;
  text-align: center;
  background-color: #2a160c;
  background-image:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.32) 0px,
      rgba(90,50,22,0.22) 2px,
      rgba(20,10,4,0.16) 4px,
      rgba(140,80,32,0.20) 7px,
      rgba(0,0,0,0.24) 10px,
      rgba(80,45,20,0.12) 14px),
    linear-gradient(180deg, #4a2a14 0%, #2a160c 45%, #140a06 100%);
  border: 2px solid #c9a227;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,220,140,0.22);
}
.collect-pop-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 1px solid #6a4428;
  background: #1a1008;
  color: #ffd24a;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  cursor: pointer;
}
.collect-pop-title {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #ffd24a;
  margin: 0 12px 10px;
  line-height: 1.4;
}
.collect-pop .tender-btn.faucet {
  width: 100%;
  max-width: none;
  height: 36px;
  font-size: 9px;
}
.crt-under .tender-btn {
  flex: 0 0 auto;
  max-width: none;
  min-width: 64px;
  height: 40px;
  font-size: 13px;
  padding: 0 8px;
}
.crt-under .wallet-stats {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 16px;
  margin-top: 0;
  min-width: 0;
  font-size: 7px;
}
.crt-under .wallet-stats .k { display: inline; }
.crt-under .wallet-stats .stat,
.crt-under .wallet-stats .stat:last-child {
  display: inline;
  text-align: left;
  white-space: nowrap;
}
.crt-faq { display: none !important; }
.crt-faq {
  position: absolute;
  left: auto;
  right: 8px;
  bottom: 10px;
  z-index: 6;
  width: auto;
  max-width: 28%;
  text-align: right;
  font-family: "Press Start 2P", monospace;
  font-size: 5px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: #c9a227;
  text-decoration: none;
  background: #1a1008;
  border: 1px solid #6a4428;
  padding: 6px 7px 5px;
  box-shadow: 0 2px 0 #0a0604, inset 0 1px 0 rgba(255,210,120,0.18);
}
.crt-faq:hover { filter: brightness(1.12); color: #fff4d0; }
.crt-faq[hidden] { display: none !important; }
html.shot .crt-faq { display: none !important; }

html.faq, html.faq body, body.faq-page {
  font-family: "Press Start 2P", "Courier New", monospace;
  color: #f3e2b8;
}
.faq-body {
  margin: 10px 4px 16px;
  background-color: #2a160c;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.32) 0px,
      rgba(90,50,22,0.22) 2px,
      rgba(20,10,4,0.16) 4px,
      rgba(140,80,32,0.20) 7px,
      rgba(0,0,0,0.24) 10px,
      rgba(80,45,20,0.12) 14px
    ),
    linear-gradient(180deg, #4a2a14 0%, #2a160c 45%, #140a06 100%);
  border: 2px solid #c9a227;
  border-radius: 3px;
  padding: 16px 16px 20px;
  box-shadow:
    inset 0 0 0 1px #6a4420,
    inset 0 2px 0 rgba(255, 220, 140, 0.22),
    inset 0 -3px 10px rgba(0,0,0,0.5),
    0 2px 0 #1a1008;
}
.faq-body h1 {
  font-family: "Bungee", Impact, sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-align: center;
  color: #ffd24a;
  margin: 4px 0 12px;
  text-shadow: 0 2px 0 #1a0800, 0 0 10px rgba(255, 210, 74, 0.35);
}
.faq-body h2 {
  font-family: "Bungee", Impact, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #ffd24a;
  margin: 18px 0 8px;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #1a0800;
}
.faq-body p, .faq-body li {
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 9px;
  line-height: 1.9;
  color: #f3e2b8;
  margin: 0 0 10px;
}
.faq-body ul {
  margin: 0 0 10px 14px;
  padding: 0;
}
.faq-body a {
  color: #ffd24a;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,210,74,0.4);
}
.faq-body a:hover { color: #fff4d0; }
.faq-back {
  display: block;
  text-align: center;
  margin: 18px auto 4px;
  font-family: "Bungee", Impact, sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #041808 !important;
  -webkit-text-fill-color: #041808;
  background: linear-gradient(#4dff6e, #14c43a 50%, #0a8a28);
  border: 2px solid #063012;
  padding: 10px 14px 8px;
  box-shadow: 0 3px 0 #063012;
  border-bottom: none;
}
.faq-kicker {
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  letter-spacing: 0.18em;
  text-align: center;
  color: #ff6a00;
  margin-bottom: 2px;
}
.econ-note {
  border: 1px solid #8a7018;
  background: rgba(8,4,2,0.45);
  padding: 10px 12px;
  margin: 0 0 14px;
}
.econ-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}
.econ-coin {
  border: 2px solid #c9a227;
  background: rgba(10,6,2,0.55);
  padding: 12px 10px 10px;
  text-align: center;
}
.econ-coin.hot { border-color: #ff6a00; }
.econ-coin .tag {
  font-size: 7px;
  letter-spacing: 0.16em;
  color: #c8a070;
  margin-bottom: 6px;
}
.econ-coin .amt {
  font-family: "Bungee", Impact, sans-serif;
  font-size: 28px;
  color: #ffd24a;
  line-height: 1;
  text-shadow: 0 2px 0 #1a0800;
}
.econ-coin.hot .amt { color: #ff8a3a; }
.econ-coin .sub { font-size: 8px; margin: 8px 0 0; color: #c8f5a0; line-height: 1.6; }
.econ-bar {
  display: flex;
  height: 28px;
  border: 1px solid #3a2214;
  overflow: hidden;
  margin: 8px 0 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  line-height: 28px;
  text-align: center;
  color: #140a06;
}
.econ-bar span { display: block; }
.econ-bar .cab { width: 85%; background: #c9a227; }
.econ-bar .house { width: 10%; background: #ff6a00; }
.econ-bar .love { width: 2.5%; background: #3cff7a; }
.econ-bar .cups { width: 2.5%; background: #ff3b3b; color: #fff4d0; font-size: 8px; }
.econ-wallets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}
.econ-wallet {
  border: 1px solid #8a7018;
  padding: 10px;
  background: rgba(0,0,0,0.28);
}
.econ-wallet h3 {
  font-family: "Bungee", Impact, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #ffd24a;
  margin: 0 0 6px;
}
.econ-wallet p { font-size: 8px; margin: 0; line-height: 1.7; }
.econ-ladder {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
  font-size: 8px;
}
.econ-ladder th, .econ-ladder td {
  border-bottom: 1px solid #5a3420;
  padding: 6px 4px;
  text-align: left;
  line-height: 1.4;
}
.econ-ladder th { color: #ffd24a; font-size: 7px; letter-spacing: 0.08em; }
.econ-ladder td.n { text-align: right; color: #c8f5a0; }
.econ-ladder tfoot td { color: #ff6a00; }
@media (max-width: 640px) {
  .econ-pair, .econ-wallets { grid-template-columns: 1fr; }
  .econ-bar { font-size: 0; height: 18px; }
}

.lb-panel {
  margin-top: 14px;
  background: linear-gradient(180deg, #2a2218, #14100c);
  border: 2px solid #c9a227;
  border-radius: 4px;
  padding: 10px 10px 8px;
  box-shadow: inset 0 1px 0 rgba(255,220,140,0.18), 0 2px 0 #1a1008;
  text-align: center;
}
.lb-title {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #ffd24a;
  margin-bottom: 8px;
}
.lb-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.lb-name-row label {
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
  letter-spacing: 0.12em;
  color: #8a7040;
}
.lb-name-row input {
  flex: 1;
  min-width: 0;
  background: #120c08;
  border: 1px solid #6a4428;
  border-radius: 3px;
  color: #c8f5a0;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  padding: 7px 8px 6px;
  letter-spacing: 0.04em;
}
.lb-name-row input:focus { outline: 1px solid #c9a227; }
.lb-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 8px;
}
.lb-tab {
  flex: 1;
  max-width: 160px;
  height: 28px;
  border: 1px solid #6a4428;
  background: #1a120c;
  color: #8a7040;
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  letter-spacing: 0.08em;
}
.lb-tab.is-on {
  background: linear-gradient(#3a2a14, #22180c);
  color: #ffd24a;
  border-color: #c9a227;
}
.lb-tab.is-muted,
.lb-tab:disabled {
  opacity: 0.45;
  cursor: default;
}
.lb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  min-height: 72px;
}
.lb-list li {
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  line-height: 1.7;
  color: #f3e2b8;
  padding: 3px 2px;
  border-bottom: 1px solid rgba(201,162,39,0.12);
  word-break: break-all;
}
.lb-list .lb-empty { color: #8a7040; text-align: center; border: none; padding-top: 12px; }
.lb-pts { color: #ffd24a; }
.lb-cash { color: #7cff9a; }
.lb-note {
  margin-top: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 5px;
  letter-spacing: 0.08em;
  color: #8a7040;
}

.how-pop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(4,2,0,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.how-pop[hidden] { display: none !important; }
.how-pop-card {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow: auto;
  background-color: #2a160c;
  background-image:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.32) 0px,
      rgba(90,50,22,0.22) 2px,
      rgba(20,10,4,0.16) 4px,
      rgba(140,80,32,0.20) 7px,
      rgba(0,0,0,0.24) 10px,
      rgba(80,45,20,0.12) 14px),
    linear-gradient(180deg, #4a2a14 0%, #2a160c 45%, #140a06 100%);
  border: 2px solid #c9a227;
  border-radius: 4px;
  padding: 18px 16px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,220,140,0.22);
}
.how-pop-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid #6a4428;
  background: #1a1008;
  color: #ffd24a;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
}
.how-pop-kicker {
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
  letter-spacing: 0.16em;
  color: #ff6a00;
  text-align: center;
  margin-bottom: 8px;
}
.how-pop-card h2 {
  font-family: "Bungee", Impact, sans-serif;
  font-size: 22px;
  text-align: center;
  color: #ffd24a;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-shadow: 0 2px 0 #1a0800;
}
.how-pop-card p, .how-pop-card li {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 1.8;
  color: #f3e2b8;
  margin: 0 0 8px;
}
.how-pop-card ul { margin: 0 0 10px 14px; padding: 0; }
.how-pop-faq {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-family: "Bungee", Impact, sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #041808 !important;
  background: linear-gradient(#4dff6e, #14c43a 50%, #0a8a28);
  border: 2px solid #063012;
  padding: 10px 12px 8px;
  text-decoration: none;
  box-shadow: 0 3px 0 #063012;
}
.floor-credit a {
  color: #9a8060;
  text-decoration: none;
  border-bottom: 1px solid rgba(154,128,96,0.45);
}
.floor-credit a:hover { color: #ffd24a; }
.plankx-ver {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  text-align: right;
  padding: 2px 14px 0;
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
  letter-spacing: 0.08em;
  color: #6a5848;
  opacity: 0.55;
  user-select: none;
}

.cab-ad-kicker { display: none; }
.cab-ad-credit { display: none; }


.instr-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 4px 0 8px;
  padding: 6px 10px;
  background: #1a0e08;
  border: 2px solid #5a3418;
  border-radius: 4px;
  color: #f3e2b8;
  font-family: "Bungee", Impact, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  cursor: pointer;
}
.instr-tab img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transform: rotate(-18deg);
  filter: drop-shadow(0 2px 0 #000);
}
.instr-tab:hover { border-color: #c9a227; color: #ffb000; }


.ctrl-spacer { flex: 1; min-width: 48px; }


@media (max-width: 520px) {
  .crt-coin-row { min-height: 72px; column-gap: 4px; }
  .crt-under { gap: 4px; padding: 5px 4px; }
  .crt-under .tender-btn { max-width: 72px; height: 32px; font-size: 11px; }
  .crt-under .coin-slot {
    --plate-w: 12px;
    --plate-h: 44px;
  }
  .crt-under .coin-slot::before {
    width: 3px;
    height: 18px;
    top: 9px;
    box-shadow:
      0 0 0 1px #7a7a76,
      0 0 0 2px #3a2808,
      inset 1px 0 2px #000;
  }
  .crt-under .coin-slot::after { display: none; }
}
@media (max-width: 400px) {
  .crt-under .coin-slot { display: none; }
}

.wallet-connect {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}
.marquee-art .wallet-connect {
  position: absolute;
  inset: 0;
  z-index: auto;
  pointer-events: auto;
}
.marquee-art .wallet-connect .wc-row,
.marquee-art .wallet-connect .wc-links,
.marquee-art .wallet-connect .wc-btn,
.marquee-art .wallet-connect #wc-connect {
  pointer-events: auto;
  z-index: 12;
}
.marquee-art .wc-row {
  position: absolute;
  top: 6px;
  right: 8px;
  left: auto;
  z-index: 12;
  max-width: 30%;
  justify-content: flex-end;
  gap: 4px;
  opacity: 0.82;
  transform: scale(0.88);
  transform-origin: top right;
}
.marquee-art .wc-links {
  position: absolute;
  left: 8px;
  top: 50%;
  right: auto;
  max-width: 34%;
  margin-top: 0;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  opacity: 0.78;
  transform: translateY(-50%);
}
.marquee-art .wc-btn {
  position: relative;
  z-index: 12;
  pointer-events: auto;
  height: 22px;
  padding: 0 9px;
  font-size: 8px;
  letter-spacing: 0.06em;
  background: transparent;
  color: #d4b07a;
  border: 1px solid rgba(201, 162, 39, 0.4);
  box-shadow: none;
}
.marquee-art .wc-btn.ghost {
  background: transparent;
  color: #a88858;
  border-color: rgba(90, 52, 24, 0.55);
}
.marquee-art .wc-btn:hover {
  opacity: 1;
  color: #ffe7b0;
  border-color: rgba(255, 210, 74, 0.7);
}
.marquee-art .wc-links a {
  color: #e0c090;
  font-size: 7px;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-decoration: none;
  padding: 3px 4px;
  margin: 2px 0;
  display: block;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
}
.marquee-art .wc-links a:hover { color: #ffe7b0; }
.marquee-art .wc-addr,
.marquee-art .wc-bal,
.marquee-art .wc-warn {
  font-size: 6px;
  color: #c9a878;
}
.marquee-art .wc-note,
.marquee-art .wc-err {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  margin: 0;
  font-size: 4px;
  letter-spacing: 0.08em;
  color: #6a5848;
  opacity: 0.5;
  pointer-events: none;
}
.marquee-art .wc-err { color: #a05040; opacity: 0.8; }
.marquee-art .wc-pick {
  position: absolute;
  left: 8px;
  top: calc(100% + 4px);
  z-index: 8;
  opacity: 1;
  background: #120c08;
  border: 1px solid #6a4428;
  padding: 6px;
  display: flex;
  flex-flow: row wrap;
  gap: 6px;
  width: auto;
  max-width: min(420px, 92%);
  height: auto;
}
@media (max-width: 560px) {
  /* Was max-width:34%/opacity:0.38, which shrank CONNECT to an unreadable,
   * barely tappable ghost on exactly the devices that need it most. Keep it
   * legible and finger-sized; the marquee art can afford the room. */
  .marquee-art .wc-row { max-width: 86%; opacity: 1; }
  .marquee-art .wc-links { max-width: 86%; opacity: 0.85; }
  .marquee-art .wc-btn { height: 34px; font-size: 11px; padding: 0 10px; }
}
.wc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.wc-btn {
  height: 36px;
  padding: 0 12px;
  border: 2px solid #063012;
  border-radius: 4px;
  background: linear-gradient(#4dff6e, #14c43a 50%, #0a8a28);
  color: #041808;
  font-family: "Bungee", Impact, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.wc-btn.ghost {
  background: #1a120c;
  color: #f3e2b8;
  border-color: #5a3418;
}
.wc-addr, .wc-bal, .wc-warn {
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  color: #c8f5a0;
}
.wc-warn { color: #ff6a4a; }
.wc-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  margin-top: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
}
.wc-links a {
  color: #ffd24a;
  display: inline-block;
  padding: 6px 10px;
  margin: 0;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 210, 74, 0.35);
}
.wc-note, .wc-err {
  margin-top: 6px;
  font-family: "Press Start 2P", monospace;
  font-size: 5px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-align: center;
  color: #8a7040;
}
.wc-err { color: #ff6a4a; }
.wc-pick {
  display: flex;
  flex-flow: row wrap;
  gap: 6px 8px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
}
.wc-pick .wc-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  display: inline-flex;
}

#wc-pick-overlay {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  pointer-events: auto;
  background: #120c08;
  border: 2px solid #c9a227;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75);
  padding: 8px 10px;
  display: flex;
  flex-flow: row wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 92vw;
  box-sizing: border-box;
}
#wc-pick-overlay .wc-pick-row {
  display: flex;
  flex-flow: row nowrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
}
#wc-pick-overlay .wc-pick-extras {
  flex: 1 0 100%;
}
#wc-pick-overlay .wc-pick-more {
  display: flex;
  flex-flow: row nowrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex: 1 0 100%;
  width: 100%;
}
#wc-pick-overlay .wc-btn {
  flex: 0 0 auto;
  flex-grow: 0;
  width: auto;
  white-space: nowrap;
  pointer-events: auto;
}
#wc-pick-overlay .wc-pick-more .wc-btn {
  height: 22px;
  padding: 0 8px;
  font-size: 9px;
  letter-spacing: 0.06em;
  background: transparent;
  color: #f3e2b8;
  border-color: #5a3418;
  box-shadow: none;
}
#crt #wc-pick-overlay {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 40;
  max-width: 92%;
  width: auto;
  pointer-events: auto;
}
.paddle-tick,
#paddle-tick {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 7;
  overflow: hidden;
  pointer-events: none;
  height: 14px;
  box-sizing: border-box;
  padding: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  line-height: 14px;
}
.paddle-tick-run {
  display: inline-flex;
  flex: 0 0 auto;
  animation: paddle-tick-marquee 14s linear infinite;
  will-change: transform;
}
.paddle-tick-run span {
  flex: 0 0 auto;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 14px;
  color: #f0d24a;
  text-shadow: 0 1px 0 #1a0800;
  padding-right: 2em;
}
@keyframes paddle-tick-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.lose-cta {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 58%;
  z-index: 6;
  display: block;
  text-align: center;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: #041018;
  background: linear-gradient(#7cff9a, #2aa85a);
  border: 2px solid #063012;
  padding: 11px 8px 9px;
  text-decoration: none;
  box-shadow: 0 3px 0 #063012;
}
.lose-cta[hidden] { display: none !important; }
.lose-cta:hover { filter: brightness(1.08); color: #041018; }

.floor-fine {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #5a4a3c;
  opacity: 0.7;
}
.how-fine {
  margin-top: 10px;
  font-size: 11px;
  color: #7a6a58;
  opacity: 0.8;
}


.bg-slot {
  margin-top: 10px;
  padding: 8px 10px 7px;
  background: linear-gradient(180deg, #22180e, #100c08);
  border: 2px solid #5a3418;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,220,140,0.10), 0 2px 0 #1a1008;
  user-select: none;
}
.bg-slot.is-locked { cursor: not-allowed; }
.bg-slot.is-flash { border-color: #ff6a4a; }
.bg-slot-kicker {
  font-family: "Press Start 2P", monospace;
  font-size: 5px;
  letter-spacing: 0.18em;
  color: #8a7040;
  margin-bottom: 6px;
}
.bg-slot-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bg-slot-thumb {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid #6a4428;
  background:
    repeating-linear-gradient(45deg, #2a1a10 0 6px, #1a1008 6px 12px);
  box-shadow: inset 0 0 0 1px #0a0604;
  position: relative;
}
.bg-slot.is-locked .bg-slot-thumb::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid #c9a227;
  border-radius: 2px;
  box-shadow: 0 0 0 2px #120806;
  opacity: 0.85;
  background:
    linear-gradient(135deg, transparent 46%, #c9a227 46%, #c9a227 54%, transparent 54%);
}
.bg-slot-copy { min-width: 0; text-align: left; }
.bg-slot-title {
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  letter-spacing: 0.16em;
  color: #ffd24a;
}
.bg-slot-now {
  margin-top: 5px;
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
  letter-spacing: 0.06em;
  color: #c8f5a0;
}
.bg-slot-lock {
  margin-top: 5px;
  font-family: "Press Start 2P", monospace;
  font-size: 5px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: #8a7040;
}

.perk-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.perk-row .bg-slot { margin-top: 0; }
.lb-pot {
  margin: 0 0 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
  letter-spacing: 0.08em;
  color: #7cff9a;
  line-height: 1.6;
}
.bg-slot-thumb.holder {
  background:
    repeating-linear-gradient(90deg, #3a2410 0 4px, #1a1008 4px 8px);
}
.bg-slot-thumb.tourney {
  background:
    radial-gradient(circle at 50% 45%, #ffd24a 0 6px, #2a1a10 7px 100%);
}
