/* NCG "Vegas Night" hub skin — kiosk 483 (K-D7B41BB2) only.
   Every rule is scoped to html.ncg-casino483, which cash483-casino.js adds.
   Animations use transform/opacity only (GPU-composited) to stay light on the Pi. */

html.ncg-casino483 {
  --accent: #f6c945;
  --accent-dim: #c9962a;
  --line: rgba(246, 201, 69, 0.38);
  --panel: rgba(34, 8, 20, 0.9);
  --muted: #cdb68a;
  --bg0: #12050c;
  --c483-gold: linear-gradient(180deg, #fff6cf 0%, #f8d66a 32%, #c8922a 58%, #ffe9a0 78%, #a8741c 100%);
  --c483-gold-edge: linear-gradient(160deg, #fff1b8 0%, #c8922a 28%, #6e4a12 52%, #f6c945 76%, #8a5a14 100%);
  --c483-velvet: linear-gradient(180deg, #4a0f22 0%, #2a0713 55%, #16040b 100%);
  --c483-serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --c483-led: "Orbitron", "DM Sans", monospace;
}

/* ---------- Casino floor backdrop ---------- */
html.ncg-casino483 body { background: #07030a; }
html.ncg-casino483 .cabinet {
  background:
    radial-gradient(ellipse 85% 32% at 50% 0%, rgba(255, 196, 84, 0.24), transparent 62%),
    radial-gradient(ellipse 95% 60% at 50% 58%, rgba(150, 16, 44, 0.34), transparent 72%),
    repeating-linear-gradient(45deg, rgba(255, 215, 120, 0.032) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(-45deg, rgba(255, 215, 120, 0.032) 0 2px, transparent 2px 28px),
    linear-gradient(180deg, #1c0612 0%, #0d0818 55%, #05040a 100%);
}
html.ncg-casino483 .cabinet::before {
  background-image: radial-gradient(ellipse 75% 60% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 1;
}

/* ---------- Marquee header ---------- */
html.ncg-casino483 .cab-top {
  background:
    linear-gradient(180deg, rgba(74, 15, 34, 0.92) 0%, rgba(30, 6, 16, 0.94) 100%);
  border-bottom: 3px solid #c8922a;
  box-shadow: 0 1px 0 #fff1b8 inset, 0 10px 28px rgba(0, 0, 0, 0.6), 0 2px 0 #6e4a12;
  padding-bottom: 30px;
}
html.ncg-casino483 .cab-top::before,
html.ncg-casino483 .cab-top::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 7px;
  height: 14px;
  pointer-events: none;
  background-image: radial-gradient(circle at 7px 7px, #fffbe6 0 2.5px, #ffd75e 3.5px, rgba(255, 190, 60, 0.55) 5px, transparent 7px);
  background-size: 36px 14px;
  background-repeat: repeat-x;
  will-change: opacity;
}
html.ncg-casino483 .cab-top::before { animation: c483-bulbs 1.1s steps(1, end) infinite; }
html.ncg-casino483 .cab-top::after {
  background-position: 18px 0;
  animation: c483-bulbs 1.1s steps(1, end) infinite reverse;
}
@keyframes c483-bulbs {
  0% { opacity: 1; }
  50% { opacity: 0.18; }
}

html.ncg-casino483 .brand-mark {
  font-family: var(--c483-serif);
  font-weight: 900;
  font-size: 2.9rem;
  letter-spacing: 0.12em;
  background: var(--c483-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 0 #5a3408) drop-shadow(0 0 14px rgba(246, 201, 69, 0.35));
}
html.ncg-casino483 .brand-sub {
  font-family: var(--c483-serif);
  font-weight: 700;
  color: #ffe08a;
  letter-spacing: 0.16em;
}
html.ncg-casino483 .brand-device,
html.ncg-casino483 .brand-device-image {
  opacity: 0.42;
  font-size: 0.62rem;
}
html.ncg-casino483 .brand-last-ticket { color: #e8cf94; }

/* Header chips (Law Enforcement / Attract / Technician / Location) */
html.ncg-casino483 .cab-top-right .btn-law-enforcement,
html.ncg-casino483 .cab-top-right .btn-attract-return,
html.ncg-casino483 .cab-top-right .btn-games-hub,
html.ncg-casino483 .cab-top-right .btn-tech-access,
html.ncg-casino483 .cab-top-right .btn-location-access {
  border: 1px solid rgba(246, 201, 69, 0.7);
  border-radius: 999px;
  background: var(--c483-velvet);
  color: #ffe08a;
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.28), 0 3px 10px rgba(0, 0, 0, 0.55);
  font-family: var(--c483-serif);
  font-weight: 700;
}
html.ncg-casino483 .cab-top-right button:active { transform: scale(0.96); }

/* LED credit meter */
html.ncg-casino483 .credit-pill {
  position: relative;
  border: 2px solid #c8922a;
  border-radius: 12px;
  background: linear-gradient(180deg, #160308 0%, #000 100%);
  box-shadow: inset 0 0 18px rgba(255, 70, 40, 0.28), 0 0 0 3px rgba(0, 0, 0, 0.6), 0 0 22px rgba(246, 201, 69, 0.28);
  text-align: center;
}
html.ncg-casino483 .credit-pill .label {
  font-family: var(--c483-serif);
  font-weight: 700;
  color: #f6c945;
  letter-spacing: 0.3em;
}
html.ncg-casino483 .credit-pill .value,
html.ncg-casino483 .credit-pill .c483-count {
  font-family: var(--c483-led);
  font-weight: 700;
  font-size: 1.45rem;
  white-space: nowrap;
  color: #ffb347;
  text-shadow: 0 0 6px rgba(255, 120, 40, 0.9), 0 0 16px rgba(255, 80, 20, 0.55);
}
html.ncg-casino483 .credit-pill.c483-counting .value { visibility: hidden; }
html.ncg-casino483 .credit-pill .c483-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  line-height: 1;
  pointer-events: none;
}
html.ncg-casino483 .credit-pill.c483-pop { animation: c483-pop 0.6s ease-out; }
@keyframes c483-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Mobile wallet */
html.ncg-casino483 .hub-mobile-qr img {
  border: 3px solid #c8922a;
  border-radius: 10px;
  box-shadow: 0 0 0 2px #2a0713, 0 6px 16px rgba(0, 0, 0, 0.5);
}
html.ncg-casino483 .hub-mobile-qr-label { color: #ffe08a; font-family: var(--c483-serif); font-weight: 700; }
html.ncg-casino483 .btn-primary {
  background: var(--c483-gold);
  color: #2a1200;
  border: 1px solid #fff1b8;
  box-shadow: 0 0 0 2px rgba(80, 30, 0, 0.55), 0 6px 16px rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Cash Out */
html.ncg-casino483 .btn-cashout {
  background: linear-gradient(180deg, #d4243f 0%, #8e0d24 55%, #4f0613 100%);
  color: #fff3d6;
  border: 2px solid #f6c945;
  border-radius: 10px;
  box-shadow: 0 0 0 2px #3a0610, 0 6px 16px rgba(0, 0, 0, 0.55);
  font-family: var(--c483-serif);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* ---------- Marquee ticker row ---------- */
html.ncg-casino483 .action-row--attract-only {
  display: flex;
  align-items: center;
  gap: 14px;
}
html.ncg-casino483 .action-row--attract-only > .btn-ghost {
  flex: 0 0 auto;
  border: 1px solid rgba(246, 201, 69, 0.6);
  border-radius: 999px;
  color: #ffe08a;
  background: rgba(40, 8, 20, 0.7);
  font-family: var(--c483-serif);
}
html.ncg-casino483 .c483-ticker {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  overflow: hidden;
  border-radius: 999px;
  border: 2px solid #c8922a;
  background: linear-gradient(180deg, #0c0206 0%, #22060f 100%);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.8), 0 0 16px rgba(246, 201, 69, 0.2);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  pointer-events: none;
}
html.ncg-casino483 .c483-ticker-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: c483-ticker 40s linear infinite;
}
html.ncg-casino483 .c483-ticker-track span {
  padding-right: 48px;
  font-family: var(--c483-serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: #ffd75e;
  text-shadow: 0 0 8px rgba(255, 190, 60, 0.55);
}
@keyframes c483-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Game tiles as slot cabinets ---------- */
html.ncg-casino483 .game-tile,
html.ncg-casino483 .game-tile.has-art {
  border: 3px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(#0a0604, #0a0604) padding-box,
    var(--c483-gold-edge) border-box;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.7);
}
html.ncg-casino483 .game-tile-art-slot { border-radius: 13px; overflow: hidden; }
html.ncg-casino483 .game-tile:active {
  transform: scale(0.965);
  box-shadow: 0 0 0 2px #fff1b8, 0 0 28px rgba(246, 201, 69, 0.6);
}
html.ncg-casino483 .game-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 244, 210, 0.3) 50%, transparent 64%);
  transform: translateX(-130%);
  will-change: transform;
  animation: c483-sheen 9s ease-in-out infinite;
}
@keyframes c483-sheen {
  0% { transform: translateX(-130%); }
  13% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}
html.ncg-casino483 .game-tile:nth-child(1)::after { animation-delay: 0s; }
html.ncg-casino483 .game-tile:nth-child(2)::after,
html.ncg-casino483 .game-tile:nth-child(4)::after { animation-delay: 0.35s; }
html.ncg-casino483 .game-tile:nth-child(3)::after,
html.ncg-casino483 .game-tile:nth-child(5)::after,
html.ncg-casino483 .game-tile:nth-child(7)::after { animation-delay: 0.7s; }
html.ncg-casino483 .game-tile:nth-child(6)::after,
html.ncg-casino483 .game-tile:nth-child(8)::after,
html.ncg-casino483 .game-tile:nth-child(10)::after { animation-delay: 1.05s; }
html.ncg-casino483 .game-tile:nth-child(9)::after,
html.ncg-casino483 .game-tile:nth-child(11)::after { animation-delay: 1.4s; }
html.ncg-casino483 .game-tile:nth-child(12)::after { animation-delay: 1.75s; }

/* Brass nameplate */
html.ncg-casino483 .game-grid--carousel-page .game-tile-meta {
  margin: 0 8px 8px;
  padding: 7px 10px 8px;
  text-align: center;
  border-radius: 9px;
  border: 1px solid rgba(246, 201, 69, 0.75);
  background: linear-gradient(180deg, rgba(74, 15, 34, 0.94) 0%, rgba(26, 5, 13, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.25), 0 4px 12px rgba(0, 0, 0, 0.6);
}
html.ncg-casino483 .game-grid--carousel-page .game-tile h3 {
  font-family: var(--c483-serif);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  line-height: 1.15;
  background: var(--c483-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
html.ncg-casino483 .game-grid--carousel-page .game-tile span {
  font-family: var(--c483-serif);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: #e8cf94;
  text-shadow: none;
}
html.ncg-casino483 .game-grid--carousel-page .game-tile-meta span::before { content: "\25B6\00A0"; color: #f6c945; }

/* ---------- Poker-chip page buttons ---------- */
html.ncg-casino483 .game-hub-carousel-wrap--flip .game-hub-page-nums { gap: 18px; }
html.ncg-casino483 .game-hub-carousel-wrap--flip .game-hub-page-num {
  width: 54px;
  min-width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff3d6;
  font-family: var(--c483-serif);
  font-weight: 900;
  font-size: 1.3rem;
  background:
    radial-gradient(circle, #7a0f24 0 50%, #f3e6c8 50% 55%, #7a0f24 55% 62%, transparent 62%),
    repeating-conic-gradient(#f3e6c8 0 15deg, #7a0f24 15deg 45deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65), inset 0 0 0 2px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s ease;
}
html.ncg-casino483 .game-hub-carousel-wrap--flip .game-hub-page-num.is-active {
  color: #2a1200;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  background:
    radial-gradient(circle, #f6c945 0 50%, #fff6cf 50% 55%, #c8922a 55% 62%, transparent 62%),
    repeating-conic-gradient(#fff6cf 0 15deg, #c8922a 15deg 45deg);
  box-shadow: 0 0 0 2px #2a0713, 0 0 22px rgba(246, 201, 69, 0.7), 0 6px 12px rgba(0, 0, 0, 0.6);
  transform: translateY(-3px) scale(1.12);
}

/* ---------- Add Money (hub dock only; in-game bar untouched) ---------- */
html.ncg-casino483 .arc-add-money-topbar--hub .arc-add-money-hint {
  background: rgba(34, 8, 20, 0.92);
  border: 1px solid rgba(246, 201, 69, 0.55);
  color: #ffd75e;
}
html.ncg-casino483 .arc-add-money-topbar--hub .arc-add-money-topbtn,
html.ncg-casino483 .arc-add-money-topbar--hub .arc-add-money-topbtn--idle {
  position: relative;
  overflow: visible;
  font-family: var(--c483-serif);
  font-weight: 900;
  color: #2a1200;
  border: 2px solid #fff1b8;
  border-radius: 14px;
  background: var(--c483-gold);
  box-shadow: 0 0 0 3px rgba(80, 30, 0, 0.65), 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 24px rgba(246, 201, 69, 0.45);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: none;
}
html.ncg-casino483 .arc-add-money-topbar--hub .arc-add-money-topbtn--live {
  border-color: #86efac;
  box-shadow: 0 0 0 3px rgba(5, 46, 22, 0.8), 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 26px rgba(74, 222, 128, 0.55);
}
html.ncg-casino483 .arc-add-money-topbar--hub .arc-add-money-topbtn::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 18px;
  border: 2px solid rgba(255, 225, 120, 0.85);
  pointer-events: none;
  will-change: transform, opacity;
  animation: c483-ring 1.8s ease-out infinite;
}
html.ncg-casino483 .arc-add-money-topbar--hub .arc-add-money-topbtn--live::after { border-color: rgba(134, 239, 172, 0.9); }
@keyframes c483-ring {
  0% { opacity: 0.95; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(1.14); }
}

html.ncg-casino483 .arc-add-money-panel {
  background: linear-gradient(180deg, #2c0a17 0%, #12040a 100%);
  border: 2px solid #c8922a;
  box-shadow: 0 0 0 1px #fff1b8 inset, 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 40px rgba(246, 201, 69, 0.2);
}
html.ncg-casino483 .arc-add-money-panel h2 { font-family: var(--c483-serif); font-weight: 900; color: #ffd75e; }

html.ncg-casino483 #cash483-status { border: 1px solid rgba(246, 201, 69, 0.45); }

/* ---------- Credit celebration ---------- */
html.ncg-casino483 .credit-celebrate {
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(246, 201, 69, 0.3), transparent 60%),
    rgba(8, 2, 6, 0.76);
}
html.ncg-casino483 .credit-celebrate-card {
  border: 3px solid #c8922a;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 196, 84, 0.18), transparent 55%), var(--c483-velvet);
  box-shadow: 0 0 0 1px #fff1b8 inset, 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(246, 201, 69, 0.3);
}
html.ncg-casino483 .credit-celebrate-label { font-family: var(--c483-serif); font-weight: 900; color: #ffd75e; }
html.ncg-casino483 .credit-celebrate-amount {
  color: #ffe9a8;
  text-shadow: 0 0 28px rgba(255, 190, 60, 0.6), 0 8px 0 rgba(0, 0, 0, 0.4);
}

/* Coin burst */
.c483-coin {
  position: fixed;
  z-index: 10090;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fffbe6 0 12%, #ffd75e 30%, #c8922a 70%, #7a4e10 100%);
  box-shadow: inset 0 0 0 4px rgba(122, 78, 16, 0.75), 0 4px 10px rgba(0, 0, 0, 0.45);
  color: #6e4a12;
  font: 900 26px/50px Georgia, serif;
  text-align: center;
  will-change: transform, opacity;
}

/* Pause decorative motion while a game is open */
html.ncg-casino483.c483-ingame .cab-top::before,
html.ncg-casino483.c483-ingame .cab-top::after,
html.ncg-casino483.c483-ingame .game-tile::after,
html.ncg-casino483.c483-ingame .c483-ticker-track,
html.ncg-casino483.c483-ingame .arc-add-money-topbtn::after {
  animation-play-state: paused;
}
