:root {
  --bg0: #0a0e12;
  --bg1: #121a22;
  --ink: #f2f5f0;
  --muted: #8a9a8e;
  --accent: #c8f542;
  --accent-dim: #8fb82e;
  --warn: #ffb020;
  --danger: #ff5c5c;
  --panel: rgba(18, 28, 34, 0.88);
  --line: rgba(200, 245, 66, 0.22);
  --display: "Bebas Neue", Impact, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html.ncg-demo {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05070a;
}
html.ncg-demo body {
  position: relative;
  flex: 0 0 auto;
  width: min(100vw, calc(100vh * 9 / 16 + 100px));
  height: min(100vh, calc(100vw * 16 / 9));
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.55);
}
html.ncg-demo #root {
  height: 100%;
}
html.ncg-demo .game-overlay,
html.ncg-demo .law-enforcement-overlay,
html.ncg-demo .game-boot-overlay,
html.ncg-demo .toast {
  position: absolute;
}
html.ncg-demo .cab-top {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 10px;
  padding: 12px 12px 6px;
}
html.ncg-demo .cab-top-right {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
}
html.ncg-demo .brand-mark {
  font-size: 1.7rem;
}
html.ncg-demo .credit-pill {
  min-width: 0;
  padding: 6px 10px;
}
html.ncg-demo .credit-pill .value {
  font-size: 1.35rem;
}
html.ncg-demo .btn-law-enforcement,
html.ncg-demo .demo-add-five,
html.ncg-demo .cab-top-right .btn-games-hub,
html.ncg-demo .cab-top-right .btn-attract-return,
html.ncg-demo .cab-top-right .btn-cashout {
  padding: 8px 10px;
  font-size: 0.72rem;
}
html.ncg-demo .cab-main {
  padding: 6px 12px 12px;
}
html.ncg-demo .game-grid--carousel-page {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
}
html.ncg-demo .game-overlay.game-overlay-portrait .game-overlay-frame {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  flex: 1 1 auto;
}
html, body {
  height: 100%;
  margin: 0;
  background: var(--bg0);
  color: var(--ink);
  font-family: var(--body);
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
#root { height: 100%; }

.cabinet {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(200, 245, 66, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 80% 100%, rgba(255, 176, 32, 0.08), transparent 50%),
    linear-gradient(180deg, #0d1418 0%, #070a0c 100%);
}

.cabinet::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 3px
    );
  pointer-events: none;
  opacity: 0.5;
}

.cab-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px 10px;
}
.cab-top-right {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}
.cab-top-right .btn-tech-access,
.cab-top-right .btn-location-access,
.cab-top-right .btn-attract-return,
.cab-top-right .btn-games-hub,
.cab-top-right .btn-law-enforcement,
.cab-top-right .demo-add-five {
  margin-top: 0;
}
.btn-cashout {
  white-space: nowrap;
  padding: 12px 18px !important;
  font-size: 1rem !important;
}
.btn-cashout-lg {
  padding: 16px 22px !important;
  font-size: 1.15rem !important;
  min-width: 140px;
}
.game-overlay-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.game-overlay-credits {
  min-width: 96px;
  padding: 6px 10px;
}
.game-overlay-credits .value {
  font-size: 1.25rem;
}
.game-overlay-actions .btn {
  padding: 10px 16px;
  font-size: 0.95rem;
}

.brand-mark {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(200, 245, 66, 0.35);
}
.brand-sub {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.brand-block {
  min-width: 0;
}
.brand-device {
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(242, 245, 240, 0.55);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.brand-device-id {
  color: rgba(200, 245, 66, 0.75);
}
.brand-device-sep {
  opacity: 0.55;
}
.brand-device-ip {
  color: rgba(242, 245, 240, 0.55);
}

.brand-block .brand-last-ticket {
  margin-top: 4px;
  white-space: nowrap;
}

.brand-block .brand-cashout-wrap {
  margin-top: 8px;
}
.brand-block .brand-cashout {
  padding: 10px 18px;
  font-size: 0.95rem;
}
.action-row--attract-only {
  margin-bottom: 8px;
}

.credit-pill {
  min-width: 160px;
  text-align: right;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 4px;
}
.credit-pill .label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.credit-pill .value {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
}

.cab-top-credit-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.cab-top-credit-stack .hub-mobile-qr {
  padding: 0;
  gap: 2px;
  align-self: center;
}
.cab-top-credit-stack .hub-mobile-qr img {
  width: clamp(88px, 11vw, 120px);
  height: clamp(88px, 11vw, 120px);
}
.cab-top-credit-stack .hub-mobile-qr-label {
  font-size: clamp(0.65rem, 1.1vw, 0.78rem);
}
.cab-top-credit-stack .hub-mobile-qr-code {
  font-size: clamp(0.5rem, 0.9vw, 0.62rem);
}

.cab-main {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 28px 24px;
}

/* Attract */
.attract {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  gap: 14px;
  width: 100%;
  padding: 12px 16px 20px;
}
.attract-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  letter-spacing: 0.06em;
  line-height: 0.9;
  margin: 0;
  background: linear-gradient(180deg, #f7ffe0 0%, var(--accent) 55%, var(--accent-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pulseGlow 2.8s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
.attract-line {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
.attract-demo-stage {
  position: relative;
  /* ~50% larger than prior 560×840 stage */
  width: min(96vw, 840px);
  aspect-ratio: 9 / 16;
  max-height: min(86vh, 1260px);
  margin: 2px 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: 4px;
  background: #050810;
  box-shadow:
    0 0 0 1px rgba(200, 245, 66, 0.18),
    0 18px 40px rgba(0, 0, 0, 0.45);
  flex-shrink: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.attract-demo-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center center;
  filter: saturate(1.08) brightness(0.92);
  opacity: 1;
  transition: opacity 0.55s ease, filter 0.55s ease;
  pointer-events: none;
}
.attract-demo-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 10, 12, 0.05) 0%, transparent 18%, rgba(7, 10, 12, 0.42) 100%);
  box-shadow: inset 0 0 0 1px rgba(242, 245, 240, 0.06);
  z-index: 3;
}
.attract-demo-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 4;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7.5vw, 4.4rem);
  letter-spacing: 0.1em;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  color: #f2f5f0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(0, 0, 0, 0.6);
  padding: 0 14px;
}
.attract-cta {
  margin-top: 4px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.4vw, 2.1rem);
  letter-spacing: 0.14em;
  color: var(--ink);
  border: 2px solid var(--accent);
  padding: 10px 28px;
  animation: blinkCta 1.4s steps(2, end) infinite;
  position: relative;
  z-index: 2;
}
.attract-hint {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 28rem;
  line-height: 1.45;
  position: relative;
  z-index: 2;
}
@media (max-height: 820px) {
  .attract { gap: 8px; }
  .attract-demo-stage {
    width: min(92vw, 720px);
    max-height: min(78vh, 960px);
  }
}

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(200, 245, 66, 0.25)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 22px rgba(200, 245, 66, 0.55)); transform: scale(1.015); }
}
@keyframes blinkCta {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Hub / selector */
.hub-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.hub-head h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.06em;
  margin: 0;
}
.hub-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.hub-last-ticket {
  margin: 6px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(242, 245, 240, 0.45);
  font-variant-numeric: tabular-nums;
}

.orient-toggle {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid rgba(138, 154, 142, 0.35);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}
.orient-opt {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  cursor: pointer;
  white-space: nowrap;
}
.orient-opt.is-on {
  background: rgba(34, 211, 238, 0.18);
  color: #67e8f9;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  border: none;
  border-radius: 4px;
  padding: 16px 22px;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.1s, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  color: #10160c;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-warn {
  background: var(--warn);
  color: #1a1200;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}

.game-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  overflow: auto;
  padding: 4px 2px 12px;
  align-content: start;
}
.game-grid--paged {
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  align-content: stretch;
}
.game-hub-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding: 8px 4px 4px;
  flex-shrink: 0;
}
.game-hub-page-btn {
  min-width: 132px;
  min-height: 52px;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}
.game-hub-page-label {
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.game-hub-page-label span {
  display: block;
  margin-top: 4px;
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.game-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  min-height: 220px;
  padding: 0;
  border: 1px solid rgba(255, 200, 120, 0.28);
  background: linear-gradient(160deg, rgba(30, 42, 48, 0.95), rgba(12, 18, 22, 0.95));
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}
.game-tile.has-art {
  background: #0a0604;
}
.game-tile:hover, .game-tile:focus-visible {
  border-color: rgba(255, 200, 100, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 180, 60, 0.35), 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(-3px);
  outline: none;
}
.game-tile-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 0.2s ease;
}
.game-tile-art-video-wrap {
  overflow: hidden;
}
.game-tile-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: transparent;
  pointer-events: none;
}
.game-tile:hover .game-tile-art,
.game-tile:focus-visible .game-tile-art {
  transform: scale(1.06);
}
.game-tile-art-fallback {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 140, 40, 0.35), transparent 55%),
    linear-gradient(160deg, #2a1810, #0a0604);
}
.game-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.78) 78%,
    rgba(0,0,0,0.92) 100%);
  pointer-events: none;
}
.game-tile-meta {
  position: relative;
  z-index: 2;
  padding: 16px 16px 18px;
}
.game-tile h3 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: 0.05em;
  margin: 0 0 4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}
.game-tile span {
  color: rgba(255, 230, 180, 0.85);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

@media (min-width: 700px) {
  .game-grid:not(.game-grid--paged) {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* Insert money / cash-out panels */
.panel {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}
.panel h2 {
  font-family: var(--display);
  font-size: 2.6rem;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.panel p { color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.panel .big {
  font-family: var(--display);
  font-size: 3.4rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 12px 0 20px;
}
.panel .status {
  min-height: 1.4em;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.panel .status.err { color: var(--danger); }
.panel .status.ok { color: var(--accent); }

.cashout-done .big { color: var(--warn); }

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 280px;
  margin: 12px auto 18px;
}
.pin-pad button {
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  padding: 16px 0;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #0b1014;
  color: var(--ink);
  cursor: pointer;
}
.pin-pad button:active { transform: scale(0.97); background: #152018; }
.pin-dots {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.35em;
  min-height: 2.2rem;
  color: var(--accent);
  margin: 8px 0 4px;
}

.setup {
  max-width: 520px;
  margin: auto;
  padding: 28px;
  text-align: center;
}
.setup input {
  width: 100%;
  padding: 16px;
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  text-align: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #0b1014;
  color: var(--ink);
  margin: 12px 0 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 50;
  background: #152018;
  border: 1px solid var(--accent);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  animation: toastIn 0.25s ease-out;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Full-screen bill credit celebration */
.credit-celebrate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(200, 245, 66, 0.28), transparent 60%),
    rgba(4, 8, 10, 0.72);
  animation: creditCelebrateIn 0.28s ease-out;
  pointer-events: none;
}
.credit-celebrate-card {
  text-align: center;
  min-width: min(92vw, 720px);
  padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 48px);
  border: 2px solid rgba(200, 245, 66, 0.55);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(24, 36, 28, 0.96), rgba(10, 16, 14, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(200, 245, 66, 0.18);
  transform: scale(1);
  animation: creditCardPop 0.35s cubic-bezier(0.2, 1.4, 0.3, 1);
}
.credit-celebrate-label {
  font-family: var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--accent);
  margin-bottom: 8px;
}
.credit-celebrate-amount {
  font-family: var(--display);
  font-size: clamp(5rem, 18vw, 10rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: #f7ffe8;
  text-shadow:
    0 0 24px rgba(200, 245, 66, 0.45),
    0 8px 0 rgba(0, 0, 0, 0.35);
  margin: 6px 0 18px;
}
.credit-celebrate-total {
  font-size: clamp(1.2rem, 3.2vw, 1.8rem);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.credit-celebrate-done .credit-celebrate-amount {
  color: var(--accent);
  animation: creditAmountFlash 0.45s ease-out;
}
.credit-celebrate-out {
  animation: creditCelebrateOut 0.3s ease-in forwards;
}

/* Dragon Ember Gate — match in-game gold / ember / shrine cards */
.credit-celebrate.credit-celebrate--dragon {
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 120, 30, 0.22), transparent 58%),
    radial-gradient(ellipse 50% 40% at 50% 70%, rgba(180, 40, 0, 0.18), transparent 55%),
    rgba(4, 1, 0, 0.78);
}
.credit-celebrate--dragon .credit-celebrate-card {
  position: relative;
  overflow: hidden;
  border: 2px solid #c8922a;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 140, 40, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(36, 22, 8, 0.98) 0%, rgba(10, 6, 2, 0.99) 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(255, 140, 30, 0.22),
    inset 0 1px 0 rgba(255, 220, 140, 0.18),
    inset 0 0 40px rgba(0, 0, 0, 0.45);
}
.credit-celebrate--dragon .credit-celebrate-card::before {
  content: '';
  position: absolute;
  left: 12px; right: 12px; top: 12px; bottom: 12px;
  border: 1px solid rgba(255, 190, 80, 0.22);
  border-radius: 12px;
  pointer-events: none;
}
.credit-celebrate--dragon .credit-celebrate-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(255, 80, 0, 0.14), transparent);
  pointer-events: none;
}
.credit-celebrate--dragon .credit-celebrate-label {
  position: relative;
  z-index: 1;
  color: #ffd334;
  text-shadow: 0 0 16px rgba(255, 180, 40, 0.45);
  letter-spacing: 0.22em;
}
.credit-celebrate--dragon .credit-celebrate-amount {
  position: relative;
  z-index: 1;
  color: #ffe9a8;
  text-shadow:
    0 0 28px rgba(255, 160, 40, 0.55),
    0 0 8px rgba(255, 100, 0, 0.35),
    0 8px 0 rgba(0, 0, 0, 0.4);
}
.credit-celebrate--dragon .credit-celebrate-total {
  position: relative;
  z-index: 1;
  color: #d9b25a;
}
.credit-celebrate--dragon.credit-celebrate-done .credit-celebrate-amount {
  color: #ffd334;
}

@keyframes creditCelebrateIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes creditCelebrateOut {
  to { opacity: 0; }
}
@keyframes creditCardPop {
  from { transform: scale(0.72); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes creditAmountFlash {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #000;
  display: flex;
  flex-direction: column;
}
.game-overlay-slim {
  /* No host chrome — game owns bottom controls */
}
.game-device-id {
  position: absolute;
  top: 10px;
  left: 14px;
  z-index: 45;
  pointer-events: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(200, 245, 66, 0.9);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}
.game-overlay-bar {
  display: none;
}
.game-overlay-title {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
}
.game-overlay-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
/* Portrait lock: letterbox a 9:16 cabinet on landscape monitors */
.game-overlay.game-overlay-portrait {
  align-items: center;
  justify-content: center;
  background: #05070c;
}
.game-overlay.game-overlay-portrait .game-overlay-frame {
  flex: 0 0 auto;
  width: min(100vw, calc(100vh * 9 / 16));
  height: min(100vh, calc(100vw * 16 / 9));
  max-width: 100vw;
  max-height: 100vh;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 80px rgba(0, 0, 0, 0.55);
}

.err-banner {
  margin: auto;
  max-width: 520px;
  padding: 24px;
  border: 1px solid var(--danger);
  color: #ffd0d0;
  text-align: center;
  border-radius: 8px;
  background: rgba(40, 10, 10, 0.7);
}

@media (max-width: 700px) {
  .cab-top, .cab-main { padding-left: 16px; padding-right: 16px; }
  .credit-pill { min-width: 120px; }
  .credit-pill .value { font-size: 1.5rem; }
}

/* Route activation — on-screen keyboard (fixed to bottom of screen) */
.setup-with-osk {
  margin: 0 auto;
  align-self: flex-start;
  padding-top: 8px;
  padding-bottom: 480px;
}
body.osk-active .cab-main {
  overflow-y: auto;
}
.setup-with-osk input {
  font-size: 1.25rem;
  padding: 14px 16px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  direction: ltr;
}
.input-secret {
  -webkit-text-security: disc;
}
html.setup-flip body {
  transform: rotate(180deg);
  transform-origin: center center;
}

.btn-setup-flip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.4rem;
  margin: 10px 0 8px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(200, 245, 66, 0.45);
  background: rgba(200, 245, 66, 0.14);
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}
.btn-setup-flip[aria-pressed="true"] {
  background: rgba(200, 245, 66, 0.32);
  border-color: var(--accent);
  color: #10200a;
}
.cab-top-right .btn-setup-flip {
  width: auto;
  min-width: 9.5rem;
  min-height: 3rem;
  margin: 0;
  font-size: 0.95rem;
}
.setup-flip-hint {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0 0 8px;
}
.cabinet-setup .cab-main {
  padding-top: 5.2rem;
  padding-bottom: 5.2rem;
}
.btn-setup-flip-dock {
  position: fixed;
  left: 16px;
  right: 16px;
  z-index: 10050;
  width: auto;
  min-height: 4.4rem;
  margin: 0;
  font-size: 1.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.btn-setup-flip-dock.top { top: 12px; }
.btn-setup-flip-dock.bottom { bottom: 12px; }
.cabinet-setup .cab-top-right .btn-setup-flip {
  display: inline-flex;
}
.btn-setup-flip-dock { z-index: 2147483000; }

.pw-field {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 12px 0 16px;
}
.pw-field input {
  flex: 1;
  margin: 0 !important;
}
.pw-show-btn {
  flex: 0 0 auto;
  min-width: 5.5rem;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}
.pw-show-btn:active,
.pw-show-btn[aria-pressed="true"] {
  background: rgba(60, 140, 255, 0.28);
  border-color: rgba(120, 180, 255, 0.55);
  color: #fff;
}
.osk-panel {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  padding: 14px 10px max(14px, env(safe-area-inset-bottom));
  border-radius: 14px 14px 0 0;
  background: rgba(8, 12, 22, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.55);
  touch-action: manipulation;
  user-select: none;
}
.osk-panel.on {
  display: block;
}
.osk-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.osk-key {
  flex: 1 1 0;
  min-width: 0;
  max-width: 5.5rem;
  height: 4.5rem;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text, #e8ecf4);
  font-size: 1.5rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.osk-key:active {
  background: rgba(120, 180, 255, 0.25);
}
.osk-wide {
  flex: 2 1 0;
  max-width: 14rem;
}
.osk-row-edit .osk-key {
  max-width: none;
  flex: 1 1 0;
  min-height: 4.6rem;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.osk-clear,
.osk-delete {
  background: rgba(255, 92, 92, 0.18);
  border-color: rgba(255, 92, 92, 0.4);
  color: #ffd0d0;
}
.field-clear-btn {
  color: #ffd0d0;
  border-color: rgba(255, 92, 92, 0.4);
}
.osk-done {
  background: rgba(60, 140, 255, 0.35);
  flex: 1.2 1 0;
  max-width: 8rem;
}
.osk-mod {
  flex: 1.35 1 0;
  max-width: 6.5rem;
  font-size: 1.25rem;
}
.osk-mod-active {
  background: rgba(60, 140, 255, 0.42);
  border-color: rgba(120, 180, 255, 0.65);
  color: #fff;
}
.osk-row-actions .osk-key {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.btn-location-access {
  border: 1px solid rgba(120, 200, 255, 0.55);
  background: rgba(120, 200, 255, 0.12);
  color: #9fd4ff;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}


.demo-add-five {
  border: 1px solid rgba(74, 222, 128, 0.75);
  background: rgba(74, 222, 128, 0.16);
  color: #bbf7d0;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.demo-attract-poster {
  background: #000 center/cover no-repeat;
}
.btn-law-enforcement {
  border: 1px solid rgba(255, 196, 84, 0.7);
  background: rgba(255, 196, 84, 0.14);
  color: #ffd78a;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.law-enforcement-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  color: #f4f1ea;
  display: flex;
  font-family: Georgia, serif;
}
.law-enforcement-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 28px 36px 32px;
}
.law-enforcement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.law-enforcement-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.law-enforcement-close {
  flex: 0 0 auto;
  min-height: 64px;
  min-width: 160px;
  border-radius: 12px;
  border: 2px solid rgba(255, 196, 84, 0.7);
  background: #1a140c;
  color: #ffd78a;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.law-enforcement-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  white-space: pre-wrap;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.45;
}
.law-enforcement-pages {
  background: #111;
  padding: 8px 12px 20px;
}
.law-enforcement-pages .ncg-law-page {
  display: block;
  width: min(1100px, 100%);
  height: auto;
  margin: 0 auto 16px;
  background: #fff;
}

.btn-games-hub {
  border: 1px solid rgba(140, 255, 160, 0.55);
  background: rgba(140, 255, 160, 0.12);
  color: #b8ffc8;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.btn-attract-return {
  border: 1px solid rgba(96, 220, 255, 0.55);
  background: rgba(96, 220, 255, 0.12);
  color: #9ee8ff;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.btn-tech-access {
  border: 1px solid rgba(255, 176, 32, 0.55);
  background: rgba(255, 176, 32, 0.14);
  color: var(--warn);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.btn-tech-access-lg {
  font-size: 16px !important;
  padding: 14px 24px !important;
  width: min(360px, 90vw);
}
.attract-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  gap: 12px;
}
.attract-tech-row {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}
.tech-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 8, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tech-panel {
  width: min(520px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
}
.tech-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.tech-panel-head h2 { margin: 0; font-family: var(--display); letter-spacing: 0.06em; }
.tech-close { background: none; border: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.tech-panel-body, .tech-panel-foot { padding: 16px 18px; }
.tech-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tech-tab {
  flex: 1 1 auto;
  min-width: 4.5rem;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}
.tech-tab.on { color: var(--accent); border-color: var(--accent-dim); }
.tech-report {
  font-family: ui-monospace, monospace;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  line-height: 1.55;
}
.tech-report-head { font-weight: 700; letter-spacing: 0.08em; }
.tech-report-period { font-size: 1.05rem; margin: 4px 0 12px; }
.tech-report-net { font-weight: 700; margin-top: 8px; }
.tech-history-item {
  display: block; width: 100%; text-align: left; margin: 0 0 8px; padding: 12px;
  border-radius: 8px; border: 1px solid var(--line); background: rgba(0,0,0,0.2);
  color: var(--ink); cursor: pointer;
}
.tech-pager { display: flex; align-items: center; justify-content: center; margin-top: 14px; gap: 8px; }
.tech-num-input {
  width: 100%;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 14px 12px;
  margin: 8px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
}
.tech-numpad {
  margin: 4px 0 12px;
  touch-action: manipulation;
  user-select: none;
}
.tech-numpad-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.tech-numpad-key {
  min-height: 3.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
  font-family: var(--body);
  cursor: pointer;
}
.tech-numpad-key:active {
  background: rgba(200, 245, 66, 0.22);
  border-color: var(--accent-dim);
}
.tech-panel {
  max-height: 96vh;
}

.tech-hw-out {
  margin-top: 14px;
  white-space: pre-wrap;
  line-height: 1.45;
  min-height: 3em;
}
.tech-hw-out.ok { color: #86efac; }
.tech-hw-out.err, .tech-hw-out.msg.error { color: #fca5a5; }
/* Touch calibration wizard (Technician → Printer / BV) */
.tech-cal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.tech-cal-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 24px;
  max-width: 100%;
}
.tech-cal-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tech-cal-stage {
  position: relative;
  flex: 1;
  min-height: 50vh;
  margin: 12px 0;
  border: 2px dashed rgba(251, 191, 36, 0.35);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
}
.tech-cal-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  text-align: center;
  font-size: 1.1rem;
  color: #e2e8f0;
  pointer-events: none;
  z-index: 1;
}
.tech-cal-target {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-cal-target span {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fef3c7;
  text-align: center;
  line-height: 1.1;
  text-transform: uppercase;
}
.tech-cal-target {
  pointer-events: none;
  z-index: 3;
}
.tech-cal-target.pos-tl { top: 0; left: 0; transform: translate(-50%, -50%); }
.tech-cal-target.pos-tr { top: 0; right: 0; transform: translate(50%, -50%); }
.tech-cal-target.pos-br { bottom: 0; right: 0; transform: translate(50%, 50%); }
.tech-cal-target.pos-bl { bottom: 0; left: 0; transform: translate(-50%, 50%); }
.tech-cal-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 4px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.35);
}
.tech-cal-ring::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  background: conic-gradient(#86efac calc(var(--cal-pct, 0) * 1%), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}
.tech-cal-target.armed .tech-cal-ring { animation: tech-cal-pulse 1.2s ease-in-out infinite; }
.tech-cal-target.holding .tech-cal-ring { animation: none; border-color: #86efac; }
.tech-cal-target.done .tech-cal-ring { border-color: #86efac; background: rgba(134, 239, 172, 0.25); }
@keyframes tech-cal-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}
.tech-cal-status.ok { color: #86efac; }
.tech-cal-status.err { color: #fca5a5; }
.tech-cal-cancel { margin-top: auto; width: 100%; }

/* Touch Assist — targets + center card so dead chrome still works */
.ta-overlay, .ta-confirm {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(0, 0, 0, 0.94);
}
.ta-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ta-confirm-card {
  width: min(520px, 86vw);
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: #0f172a;
  text-align: center;
}
.ta-confirm-card h2 {
  margin: 0 0 10px;
  color: #fbbf24;
  font-size: 1.5rem;
  text-transform: uppercase;
}
.ta-confirm-card p { margin: 0; color: #e2e8f0; line-height: 1.4; }
.ta-panel {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ta-title {
  margin: 12vh 0 8px;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.4rem;
}
.ta-status {
  max-width: 80%;
  text-align: center;
  color: #e2e8f0;
  font-size: 1.05rem;
  min-height: 1.4em;
}
.ta-status.ok { color: #86efac; }
.ta-status.err { color: #fca5a5; }
.ta-card {
  width: min(560px, 84vw);
  margin-top: 12px;
  text-align: center;
  z-index: 3;
}
.ta-line { margin: 0 0 8px; color: #cbd5e1; line-height: 1.4; }
.ta-line.ok { color: #86efac; }
.ta-line.err { color: #fca5a5; }
.ta-lock-banner {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ta-actions {
  width: min(420px, 80vw);
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 4;
}
.ta-mid-btn { width: 100%; min-height: 3.2rem; font-size: 1.15rem; }
.ta-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.ta-hint {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 78%;
  text-align: center;
  color: #f8fafc;
  font-size: 1.15rem;
  line-height: 1.35;
  text-shadow: 0 2px 8px #000;
  z-index: 1;
  pointer-events: none;
}
.ta-target {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid #fbbf24;
  background: rgba(251, 191, 36, 0.28);
  box-shadow: 0 0 32px rgba(251, 191, 36, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tech-cal-pulse 1.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.ta-target-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.65);
  animation: ta-ring-spin 2.4s linear infinite;
}
.ta-target.ta-target-confirm .ta-target-ring { border-color: #6f6; box-shadow: 0 0 18px rgba(100,255,120,0.55); }
.ta-target.ta-target-wait {
  animation: tech-cal-pulse 1.2s ease-in-out infinite, ta-target-glow 1.8s ease-in-out infinite;
}
@keyframes ta-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes ta-target-glow {
  0%, 100% { box-shadow: 0 0 32px rgba(251, 191, 36, 0.7); }
  50% { box-shadow: 0 0 48px rgba(251, 191, 36, 1); }
}
.ta-target span {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fffbeb;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.1;
  padding: 6px;
}
.ta-target.pos-tl { top: 10px; left: 10px; }
.ta-target.pos-tr { top: 10px; right: 10px; }
.ta-target.pos-br { bottom: 10px; right: 10px; }
.ta-target.pos-bl { bottom: 10px; left: 10px; }
.ta-target.pos-center {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.ta-target.pos-mid-left {
  top: 50%; left: 28%;
  transform: translate(-50%, -50%);
}
.ta-target.pos-mid-right {
  top: 50%; left: 72%;
  transform: translate(-50%, -50%);
}
.ta-verify-hit {
  position: absolute;
  min-width: 140px;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 3px solid #fbbf24;
  background: #b45309;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: auto;
}
.ta-verify-hit.pos-tl { top: 16px; left: 16px; }
.ta-verify-hit.pos-tr { top: 16px; right: 16px; }
.ta-verify-hit.pos-bl { bottom: 16px; left: 16px; }
.ta-cancel {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  width: min(420px, 80vw);
  z-index: 5;
}
.tech-ticket-view-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
}
.tech-ticket-view-panel {
  width: min(420px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px 18px 18px;
}
.tech-ticket-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.tech-ticket-view-head h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.06em;
  font-weight: 400;
  font-size: 1.25rem;
}
.tech-ticket-view-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 16px;
}
.tech-ticket-view-actions .btn { width: auto; margin: 0; }
.ticket-preview {
  background: #fff;
  color: #111;
  border-radius: 8px;
  padding: 16px 18px 18px;
  font-family: "Courier New", Courier, monospace;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.ticket-preview .ticket-store { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.ticket-preview .ticket-line { font-size: 13px; line-height: 1.35; margin: 2px 0; }
.ticket-preview .ticket-amt { font-size: 28px; font-weight: 700; margin: 10px 0 4px; }
.ticket-preview .ticket-words { font-size: 14px; font-weight: 700; margin: 4px 0 8px; }
.ticket-preview .ticket-qr { text-align: center; margin: 10px 0 4px; }
.ticket-preview .ticket-qr img { width: 180px; height: 180px; }
.ticket-preview .ticket-qr-amt { text-align: center; font-size: 14px; font-weight: 700; margin-top: 4px; }
.ticket-preview .ticket-reprint {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  color: #666;
}
.ticket-preview .ticket-foot { margin-top: 10px; font-size: 11px; color: #444; }
.tech-ticket-reprints { margin-top: 4px; }
.tech-ticket-reprint-line {
  margin: 0 !important;
  font-size: 0.72rem !important;
  line-height: 1.35;
  opacity: 0.82;
}
.attract-wrap--video {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: #000;
}
.attract-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}
.attract-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(24px, 6vh, 56px) 16px;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
.attract-wrap--video .attract-cta {
  pointer-events: auto;
  animation: blinkCta 1.4s steps(2, end) infinite;
}

/* Hub swipe carousel — K-E25BAEBB test kiosk only (classes unused elsewhere) */
.hub-body--carousel .hub-head {
  margin-bottom: 8px;
}
.hub-body--carousel .hub-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.hub-body--carousel .action-row {
  margin-bottom: 4px;
}
.game-hub-carousel-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.game-hub-carousel-viewport {
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
}
.game-hub-carousel-stage {
  overflow: hidden;
  position: relative;
  touch-action: manipulation;
  scroll-snap-type: none;
}
.game-hub-carousel-viewport::-webkit-scrollbar {
  display: none;
}
.game-hub-carousel-track {
  display: flex;
  height: 100%;
  min-height: 0;
}
.game-hub-carousel-page {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}
.game-hub-carousel-stage .game-hub-carousel-page {
  position: absolute;
  inset: 0;
  flex: none;
  scroll-snap-align: none;
  opacity: 1;
  transition: opacity 280ms ease;
}
.game-hub-carousel-stage .game-hub-carousel-page.is-enter,
.game-hub-carousel-stage .game-hub-carousel-page.is-leave {
  opacity: 0;
  pointer-events: none;
}
.game-tile-art-slot {
  position: absolute;
  inset: 0;
}
.game-grid--carousel-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 2px 0 4px;
  align-content: stretch;
}
.game-grid--carousel-page .game-tile {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  aspect-ratio: auto;
}
.game-grid--carousel-page .game-tile-meta {
  padding: 8px 10px 10px;
}
.game-grid--carousel-page .game-tile h3 {
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  margin: 0 0 2px;
}
.game-grid--carousel-page .game-tile span {
  font-size: 0.65rem;
}
.game-hub-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 6px 12px 2px;
}
.game-hub-carousel-dot {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
}
.game-hub-carousel-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: rgba(242, 245, 240, 0.28);
  transition: background 0.15s, transform 0.15s;
}
.game-hub-carousel-dot.is-active::after {
  background: var(--accent);
  transform: scale(1.2);
}
.game-hub-carousel-wrap--flip .game-hub-page-nums {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 4px 12px;
}
.game-hub-carousel-wrap--flip .game-hub-page-num {
  min-width: 52px;
  min-height: 48px;
  padding: 0 10px;
  border: 1px solid rgba(255, 200, 120, 0.28);
  border-radius: 10px;
  background: rgba(10, 12, 18, 0.55);
  color: rgba(242, 245, 240, 0.72);
  font-family: var(--display, inherit);
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.game-hub-carousel-wrap--flip .game-hub-page-num.is-active {
  color: #10200a;
  background: var(--accent, #d4b45a);
  border-color: var(--accent, #d4b45a);
}
.hub-mobile-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 4px;
  text-align: center;
  pointer-events: none;
  user-select: none;
  align-self: center;
  justify-self: center;
}
.hub-mobile-qr img {
  width: clamp(72px, 9vw, 108px);
  height: clamp(72px, 9vw, 108px);
  border-radius: 6px;
  background: #fff;
  padding: 3px;
  box-sizing: border-box;
}
.hub-mobile-qr-label {
  font-family: var(--display);
  font-size: clamp(0.58rem, 1.1vw, 0.72rem);
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1.15;
}
.hub-mobile-qr-code {
  font-family: var(--mono);
  font-size: clamp(0.48rem, 0.85vw, 0.6rem);
  color: #8a949e;
  letter-spacing: 0.02em;
}

.mobile-wallet-entry-row {
  margin-bottom: 10px;
}
.mobile-wallet-entry-btn {
  width: 100%;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  padding: 14px 18px;
}
.mobile-wallet-panel {
  max-width: 520px;
  margin: 0 auto;
}
.mobile-wallet-actions {
  margin-top: 12px;
}

.mw-deposit-ledger {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(0,0,0,0.25);
}
.mw-ledger-line {
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.5;
  padding: 2px 0;
}
.mw-ledger-start {
  color: rgba(255,255,255,0.85);
}
.mw-ledger-bill {
  color: var(--accent, #c8ff00);
}
.mw-ledger-current {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-weight: 700;
  color: #fff;
}

.hub-mobile-qr-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  align-self: center;
}
.hub-mobile-qr-tap {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: center;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(200, 255, 0, 0.25);
}
.hub-mobile-qr-tap:focus-visible {
  outline: 2px solid var(--accent, #c8ff00);
  outline-offset: 2px;
}
.hub-mobile-wallet-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 150px;
}
.hub-mobile-wallet-btn {
  font-size: clamp(0.78rem, 1.35vw, 0.95rem);
  padding: 12px 14px;
  line-height: 1.2;
  max-width: 150px;
  white-space: normal;
  text-align: center;
}
.hub-mobile-wallet-url {
  font-family: var(--mono);
  font-size: clamp(0.5rem, 0.9vw, 0.62rem);
  color: #8a949e;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
}
.hub-mobile-qr-help-panel {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.hub-mobile-qr-help-qr {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}
.hub-mobile-qr-help-qr img {
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.hub-mobile-qr-code--lg {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.hub-mobile-qr-help-steps {
  text-align: left;
  margin: 12px auto 0;
  padding-left: 1.25rem;
  max-width: 420px;
  line-height: 1.5;
}
.hub-mobile-qr-help-steps li {
  margin-bottom: 8px;
}
.cab-top-credit-stack .hub-mobile-qr-row .hub-mobile-qr img {
  width: clamp(88px, 11vw, 120px);
  height: clamp(88px, 11vw, 120px);
}

.hub-qr-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.hub-qr-help-modal {
  position: relative;
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  text-align: center;
  margin: 0;
}
.hub-qr-help-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.hub-qr-help-lead {
  margin: 8px 0 12px;
}
.hub-mobile-qr-tap-hint {
  font-size: clamp(0.5rem, 0.9vw, 0.62rem);
  color: var(--accent, #c8ff00);
  margin-top: 2px;
}
.hub-qr-help-modal .hub-mobile-qr-help-qr img {
  width: min(340px, 78vw);
  height: min(340px, 78vw);
}

/* hub-tile-loading */
.hub-tile-loading-bar {
  height: 10px;
  max-width: min(360px, 88vw);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.hub-tile-loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent, #6cf), #9f6);
  transition: width 0.12s ease-out;
}

/* hub-tile-stream */
.game-tile {
  position: relative;
}
.game-tile-ssd-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(6, 8, 14, 0.72);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.game-tile-ssd-overlay span {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}
.hub-ssd-spinner,
.game-tile-ssd-overlay i {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.18);
  border-top-color: var(--accent, #d4b45a);
  border-radius: 50%;
  animation: hub-ssd-spin 0.7s linear infinite;
}
.game-tile--loading {
  pointer-events: none;
}
.hub-body--carousel {
  position: relative;
}
.hub-ssd-gate,
.game-boot-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 12, 0.88);
}
.game-boot-overlay {
  position: fixed;
  z-index: 80;
  background: #000;
}
.hub-ssd-gate-card,
.game-boot-overlay-card {
  text-align: center;
  max-width: 420px;
  padding: 28px 24px;
}
.hub-ssd-gif {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto;
}
.hub-ssd-gate-card h2,
.game-boot-overlay-card h2 {
  font-family: var(--display, inherit);
  letter-spacing: 0.08em;
  margin: 16px 0 8px;
}
.hub-ssd-gate-card p,
.game-boot-overlay-card p {
  margin: 0;
  opacity: 0.7;
}
.hub-ssd-count {
  margin-top: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  opacity: 0.9;
}
.hub-ssd-gate.is-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
@keyframes hub-ssd-spin {
  to { transform: rotate(360deg); }
}
.game-tile-art-placeholder {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.14));
  animation: hub-tile-placeholder-pulse 1.2s ease-in-out infinite;
}
@keyframes hub-tile-placeholder-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}
.game-tile--loading .game-tile-meta { opacity: 0.75; }
.hub-tile-stream-progress.is-done { opacity: 0.5; }
.hub-tile-stream-progress {
  flex: 0 0 auto;
  text-align: center;
  padding: 6px 12px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--muted, #aaa);
}


.brand-device-image {
  margin-top: 2px;
}
.brand-device-image--current {
  color: rgba(134, 239, 172, 0.78);
}
.brand-device-image--update {
  color: rgba(251, 191, 36, 0.92);
}
.brand-device-image--unknown {
  color: rgba(251, 146, 60, 0.88);
}
.brand-device-image--checking {
  color: rgba(242, 245, 240, 0.45);
}
