/* Vivid cabinet — presentation only. Gameplay, timings and grid footprints stay intact. */
body.noir-edition {
  --cabinet: #222352;
  --cabinet-paper: #fff4d5;
  --cabinet-muted: #dbe9ff;
  --cabinet-rail: #4edbff;
  --cabinet-line: #87eaff;
  --cabinet-brass: #ffdc82;
  --paper: #fff4d5;
  --line: #6a9fe7;
  --accent: #ffda72;
  background: #161b43;
}
.noir-edition #game.game {
  --rim-light: #64e8ff;
  --feature-colour: #56dfff;
  background: #1c2454;
}
.noir-edition #game.game.lunar { --feature-colour: #70efff; }
.noir-edition #game.game.blood-night { --feature-colour: #ff7a95; }
.noir-edition #game.game.disco { --feature-colour: #e297ff; }
.noir-edition #game.game .grain {
  background: linear-gradient(0deg, #202154f0, #27255970 23%, transparent 60%);
  opacity: 1;
}
.noir-edition #game.game .icon-button {
  background: #162146df;
  border-color: #80daff;
  color: #f5faff;
}
.noir-edition #game.game h1, .noir-edition .intro-title {
  color: #fff1b9;
  text-shadow: 0 2px #ad743c, 0 4px #17162e;
}
.noir-edition #game.game h1 span, .noir-edition .intro-title span {
  color: #ff655e;
  text-shadow: 0 2px #a42d54, 0 4px #17162e;
}

/* Corner clasps sit on the cabinet edge and cannot intercept taps. */
.noir-edition #game.game .cabinet-ornaments {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  user-select: none;
}
.noir-edition #game.game .cabinet-clasp {
  position: absolute;
  bottom: 0;
  width: 23px;
  height: 23px;
  background: linear-gradient(135deg, #fff1bc 0 22%, #f7bd58 23% 38%, #657bcd 39% 61%, #88ebff 62% 72%, #293a7c 73%);
  clip-path: polygon(0 0, 34% 0, 100% 66%, 100% 100%, 0 100%);
}
.noir-edition #game.game .cabinet-clasp-left { left: -2px; }
.noir-edition #game.game .cabinet-clasp-right { right: -2px; transform: scaleX(-1); }
.noir-edition #game.game .machine-top {
  background: linear-gradient(180deg, #364d9b, #25356c);
  border-color: #84e5ff;
  border-radius: 10px 10px 0 0;
  box-shadow: inset 0 2px #d8f6ff66, inset 0 -2px #111d50;
  color: #fff2c9;
}
.noir-edition #game.game .machine-top > span:last-child { color: #d5f6ff; }
.noir-edition #game.game:not(.disco) .machine-top > #mult-label.multiplier-badge {
  background: #14264e;
  border-color: #92eaff;
  box-shadow: inset 0 1px #87eaff42;
}
.noir-edition #game.game #mult-label.multiplier-badge b { color: #ffe59a; }
.noir-edition #game.game #mult-label.multiplier-badge small { color: #c3f5ff; }
.noir-edition #game.game .feature-state-readout > strong { color: #fff0bf; }
.noir-edition #game.game .feature-state-readout > span { color: #b7f4ff; }
.noir-edition #game.game .feature-state-readout[data-mode=blood] > span { color: #ffd2da; }
.noir-edition #game.game .reel-frame {
  background: linear-gradient(90deg, #83d5f3, #3a6fbc 2%, #14275b 4%, #14275b 96%, #3a6fbc 98%, #83d5f3);
  border-color: #86e4ff;
  box-shadow: inset 0 0 0 1px #bcf0ff, 0 3px #101a40, 0 0 0 2px #233e80;
}
.noir-edition #game.game .reel-frame::before,
.noir-edition #game.game .reel-frame::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  height: auto;
  left: auto;
  right: auto;
  inset-inline-start: 0;
  z-index: 9;
  pointer-events: none;
  background: var(--feature-colour, var(--rim-light));
  opacity: .5;
  transform: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.noir-edition #game.game .reel-frame::after { inset-inline-start: auto; inset-inline-end: 0; }
/* One reflection on the glass, above faces AND seams. The cabinet edges stay
   steady. Only transform/opacity animate; no extra nodes, blur or spin delay. */
.noir-edition #game.game .reels {
  --reel-sheen-duration: 650ms;
  position: relative;
  isolation: isolate;
  background: #111936;
}
.noir-edition #game.game.fast-mode .reels { --reel-sheen-duration: 420ms; }
.noir-edition #game.game.turbo-mode .reels { --reel-sheen-duration: 230ms; }
.noir-edition #game.game .reels::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 38%;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(175deg, #c4f0ff00, #c4f0ff06 30%, #c4f0ff13 50%, #c4f0ff06 70%, #c4f0ff00);
  opacity: 0;
  transform: translateY(-105%);
}
.noir-edition #game.game.spin-feedback-reeling .reels::after {
  animation: reel-surface-sheen var(--reel-sheen-duration) linear 1;
}
@keyframes reel-surface-sheen {
  0% { transform: translateY(-105%); opacity: 0; }
  18%,78% { opacity: 1; }
  100% { transform: translateY(365%); opacity: 0; }
}
.noir-edition #game.game .reels .symbol {
  --card-edge: #4a5290;
  background: #282b56;
  box-shadow: inset 0 1px #6b78b329, inset 0 -1px #121a38;
}
.noir-edition #game.game .reels .symbol:nth-child(even) { background: #2d2b59; }
.noir-edition #game.game .reels .symbol .slot-art { filter: saturate(1.16) brightness(1.06); }
.noir-edition #game.game .reels .symbol.w,
.noir-edition #game.game .reels .symbol.d { background: #234968; --card-edge: #7bdeff; }
.noir-edition #game.game .reels .symbol.t { background: #372647; --card-edge: #f6b184; }
.noir-edition #game.game .reels .symbol .wild-caption,
.noir-edition #game.game .pack-reel-reveal .pack-reveal-cell b {
  background: #c43656;
  border-color: #ffd69e;
  color: #fff4da;
}
.noir-edition #game.game .reels .symbol.d .wild-caption { background: #8a3d96; color: #fff4da; }
.noir-edition #game.game .reels .symbol .bonus-art-label { background: #252750; color: #e3f6ff; }
.noir-edition #game.game .reels .symbol.t .bonus-art-label { background: #491f46; color: #ffe4cd; }
.noir-edition #game.game .reels .symbol.outcome-hit {
  background: #356078;
  --card-edge: #ffe19a;
  box-shadow: inset 0 0 0 2px #ffe19a;
}
.noir-edition #game.game .reels .symbol.outcome-scatter,
.noir-edition #game.game .reels .symbol.outcome-trigger {
  background: #563551;
  --card-edge: #ffce9d;
  box-shadow: inset 0 0 0 2px #ffce9d;
}
.noir-edition #game.game .reels .symbol.sticky::before { background-color: #153e60; color: #e6fbff; border-color: #80e4ff; }
.noir-edition #game.game .reels .symbol.sticky::after { border-color: #82e8ff; box-shadow: inset 0 0 0 1px #1b3961; }
.noir-edition #game.game .ticker {
  background: linear-gradient(180deg, #293a76, #20295d);
  border-color: #78cfe9;
  box-shadow: inset 0 1px #73cdf43d;
}
.noir-edition #game.game .ticker #message { color: #ffedbd; }

/* Bright controls, with the established sizes and tap separation preserved. */
.noir-edition #game.game .bonus-button {
  color: #192343;
  background: linear-gradient(180deg, #ffe68a, #ffc644);
  border-color: #fff1b6;
  box-shadow: inset 0 2px #fff5bd, inset 0 -3px #d88b27, 0 2px #131d42;
  text-shadow: none;
}
.noir-edition #game.game .bonus-button small { color: #48391d; }
.noir-edition #game.game .chance-button {
  color: #f0f8ff;
  background: #293e78;
  border-color: #76c9fa;
  box-shadow: inset 0 1px #b9eaff38;
}
.noir-edition #game.game .chance-button small { color: #c5eaff; }
.noir-edition #game.game .chance-button[aria-pressed=true] { background: #305391; border-color: #aff1ff; }
.noir-edition #game.game.super-active #chance { border-color: #e1a2ff; }
.noir-edition #game.game .spin-button,
.noir-edition #game.game.disco.blood-night .spin-button {
  background: linear-gradient(160deg, #c83a55 0%, #c12d59 56%, #95235e 100%);
  border-color: #ffe8a3;
  color: #fff9e6;
  box-shadow: inset 0 2px #ffd9b582, inset 0 -4px #8c2659, 0 3px #111d44;
}
.noir-edition #game.game #auto.auto-button,
.noir-edition #game.game #fast {
  background: linear-gradient(#c9f4ff, #7bd8ff);
  color: #13365d;
  border-color: #e8fcff;
  box-shadow: inset 0 1px #fff, inset 0 -2px #469dcc, 0 2px #12234c;
}
.noir-edition #game.game #auto.auto-button[aria-pressed=true],
.noir-edition #game.game #fast[aria-pressed=true] { background: #43c9f6; color: #102c4b; border-color: #c9f7ff; }
.noir-edition #game.game .controls {
  background: #202952;
  border-color: #7099ce;
  box-shadow: inset 0 1px #a6dfff40, 0 3px #101a38;
}
.noir-edition #game.game .metric strong,
.noir-edition #game.game #bet-select #bet { color: #fff7dc; }
.noir-edition #game.game .metric > span,
.noir-edition #game.game .bet-control > span { color: #c9e9ff; }
.noir-edition #game.game .win strong { color: #ffe184; }
.noir-edition #game.game .bet-control #minus,
.noir-edition #game.game .bet-control #plus,
.noir-edition #game.game #bet-select { background: #18264a; color: #f2faff; border-color: #78bbeb; }
.noir-edition #game.game .bottom-line,
.noir-edition #game.game #cost { color: #d2e9ff; }
.noir-edition #game.game button:focus-visible,
.noir-edition #game.game .spin-button:focus-visible {
  outline: 3px solid #fff6b7;
  outline-offset: 3px;
}
.noir-edition #game.game .feature-bar #bonus-meter {
  background: linear-gradient(125deg, #722d65, #aa3456);
  border-color: #ffbba5;
  box-shadow: inset 0 1px #ffd2c244, inset 0 -2px #582245;
}
.noir-edition #game.game.lunar .feature-bar #bonus-meter { background: linear-gradient(125deg, #263982, #166882); border-color: #a0f0ff; }
.noir-edition #game.game.disco .feature-bar #bonus-meter { background: linear-gradient(125deg, #66348b, #983969); border-color: #e9b0ff; }
.noir-edition #game.game.disco .disco-hud { background: #303062; }
.noir-edition #game.game.disco .disco-hud span { color: #d9e8ff; }
.noir-edition #game.game.disco .disco-hud strong { color: #ffe3a2; }
.noir-edition #game.game.disco .party-progress { background: #252354; box-shadow: inset 0 -1px #7367a6; }
.noir-edition #game.game.disco .party-meter { background: #171c40; border-color: #c195e9; }
.noir-edition #game.game.disco .party-meter i { background: #e38cff; }
.noir-edition #game.game.disco #party-count { background: #694987; color: #fff1d3; }
.noir-edition #game.game .party-callout { background: #342659; border-color: #e5b2ff; color: #fff0c6; }

/* Bonus Buy: illustrated hero panels, white cards, unmistakable real prices.
   Decorative backgrounds contain no numbers, text or artificial payout claims. */
.noir-edition #modal { background: #191d3b; border-color: #80bfe8; }
.noir-edition #modal:has(.bonus-shop) {
  background: #10152df5;
  border: 1px solid #6d85b5;
  border-radius: 16px;
  padding: 48px 24px 24px;
  scrollbar-color: #93c7ff #151932;
}
.noir-edition #modal::backdrop { background: #080d21d9; backdrop-filter: blur(4px); }
.noir-edition #modal .close,
.noir-edition #modal:has(.bonus-shop) > .close {
  color: #102943;
  background: #62dbff;
  border-color: #bcf5ff;
  border-radius: 10px;
}
.noir-edition #modal .bonus-shop #buy-title {
  font-family: Bungee, Impact, sans-serif;
  color: #70e3ff;
  text-shadow: 0 3px #142d57;
  letter-spacing: .02em;
  font-size: clamp(23px, 3.5vw, 34px);
  line-height: 1.3;
}
.noir-edition #modal .bonus-shop .buy-bet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 18px;
  width: min(100%, 390px);
  margin: 0 auto 24px;
  padding: 14px 18px;
  background: #f9fcff;
  color: #172341;
  border: 1px solid #d9ecff;
  box-shadow: 0 4px #050d22;
}
.noir-edition #modal .bonus-shop .buy-bet > span { grid-column: 1; color: #344765; font-size: 12px; }
.noir-edition #modal .bonus-shop .buy-bet > strong { grid-column: 1; grid-row: 2; color: #172341; margin: 0; font-size: 25px; }
.noir-edition #modal .bonus-shop .buy-bet-controls { grid-column: 2; grid-row: 1 / 3; }
.noir-edition #modal .bonus-shop .buy-bet-controls button {
  background: #1b2b4c;
  color: #fff;
  border-color: #42618a;
  border-radius: 7px;
}
.noir-edition #modal .bonus-shop .buy-card-grid { gap: 18px; }
.noir-edition #modal .bonus-shop .buy-card {
  --buy-accent: #25c7f3;
  --buy-ink: #08799d;
  --hero-dark: #0877b1;
  --hero-light: #66edff;
  --hero-edge: #173fa2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  padding: 0 0 12px;
  border: 2px solid #fff;
  border-radius: 13px;
  background: #fff;
  color: #172341;
  box-shadow: 0 5px #080e24;
  text-align: center;
  overflow: hidden;
}
.noir-edition #modal .bonus-shop .buy-blood {
  --buy-accent: #f94e6e;
  --buy-ink: #c42953;
  --hero-dark: #ad2454;
  --hero-light: #ffac93;
  --hero-edge: #6b2375;
}
.noir-edition #modal .bonus-shop .buy-disco {
  --buy-accent: #b383ff;
  --buy-ink: #7951ba;
  --hero-dark: #6b30ac;
  --hero-light: #f0a4fa;
  --hero-edge: #344aaa;
}
.noir-edition #modal .bonus-shop .buy-art {
  --buy-emblem-size: 136px;
  order: -1;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  height: 148px;
  min-height: 148px;
  flex: 0 0 148px;
  margin: 0 0 5px;
  background: radial-gradient(ellipse at 50% 40%, var(--hero-light), var(--hero-dark) 65%, var(--hero-edge));
  border-bottom: 3px solid var(--buy-accent);
  overflow: hidden;
}
.noir-edition #modal .bonus-shop .buy-art::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  box-sizing: content-box;
  width: calc(var(--buy-emblem-size) - 4px);
  height: calc(var(--buy-emblem-size) - 4px);
  border: 2px solid #fff8d77a;
  border-radius: 50%;
  box-shadow: 0 0 0 9px #ffffff13, 0 0 0 11px #ffffff24;
}
.noir-edition #modal .bonus-shop .buy-art .buy-menu-art {
  width: var(--buy-emblem-size);
  height: var(--buy-emblem-size);
  flex: 0 0 var(--buy-emblem-size);
  filter: drop-shadow(0 5px 2px #13193c70);
}
/* Centre the painted circular rims, not the uneven transparent atlas cells.
   Percent offsets scale with both the normal and compact-landscape emblem. */
.noir-edition #modal .bonus-shop .buy-menu-art-lunar { transform: translate(.62%, 4%); }
.noir-edition #modal .bonus-shop .buy-menu-art-blood { transform: translate(-.17%, 4.12%); }
.noir-edition #modal .bonus-shop .buy-menu-art-disco { transform: translate(-.17%, 3.89%); }
.noir-edition #modal .bonus-shop .buy-card h3 {
  margin: 0;
  padding: 0 10px;
  font-family: Bungee, Impact, sans-serif;
  font-size: clamp(18px, 2.15vw, 23px);
  line-height: 1.35;
  color: #18243e;
  text-shadow: none;
  text-align: center;
}
.noir-edition #modal .bonus-shop .buy-volatility {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.noir-edition #modal .bonus-shop .buy-volatility > span { color: #4b5e74; font-size: 9px; letter-spacing: .07em; }
.noir-edition #modal .bonus-shop .buy-stars { color: #d4dce5; font-size: 21px; gap: 3px; }
.noir-edition #modal .bonus-shop .buy-stars > span {
  width: 19px;
  height: 19px;
  color: transparent;
  background: #77879b;
  mask: url('assets/noir/rating-mark.svg') center / contain no-repeat;
  -webkit-mask: url('assets/noir/rating-mark.svg') center / contain no-repeat;
  opacity: 1;
  filter: none;
}
.noir-edition #modal .bonus-shop .buy-stars > span.filled { background: var(--buy-ink); }
.noir-edition #modal .bonus-shop .feature-description {
  color: #39495e;
  margin: 0;
  padding: 0 14px;
  min-height: 60px;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
}
.noir-edition #modal .bonus-shop .buy-card-price {
  margin: auto 12px 0;
  max-width: calc(100% - 24px);
  color: #101e36;
  font-size: 31px;
  line-height: 1.2;
  overflow-wrap: normal;
  white-space: nowrap;
}
.noir-edition #modal .bonus-shop .buy-cost-multiplier { color: #53627a; font-size: 10px; padding-inline: 12px; }
.noir-edition #modal .bonus-shop .buy-card-button {
  width: calc(100% - 20px);
  min-height: 50px;
  margin: 3px 10px 0;
  border: 0;
  border-bottom: 4px solid #162d4930;
  border-radius: 8px;
  background: var(--buy-accent);
  color: #14243e;
  font-family: Bungee, Impact, sans-serif;
  font-size: 22px;
  letter-spacing: .02em;
  text-shadow: none;
}
.noir-edition #modal .bonus-shop .buy-card-button:disabled {
  background: #dce3eb;
  color: #536173;
  border-bottom-color: #b9c5d3;
  opacity: 1;
  font-size: 16px;
}
.noir-edition #modal .bonus-shop button:focus-visible {
  outline: 3px solid #14243e;
  outline-offset: -6px;
  box-shadow: inset 0 0 0 3px #fff;
}
.noir-edition #modal .bonus-shop .buy-round-note { color: #cfdef1; font-size: 12px; line-height: 1.5; }
.noir-edition #modal .chance-mode-option { background: #25315b; color: #fff1d0; border-color: #678cc4; }
.noir-edition #modal .chance-mode-option[aria-pressed=true] { background: #314c80; border-color: #8feaff; }
.noir-edition #modal .chance-mode-option small { color: #e2edff; }
.noir-edition .riot-intro { background: #1a2450; }
.noir-edition .intro-start,
.noir-edition .primary-button { background: #ffe08a; color: #1e2b48; border-color: #fff0b8; }
.noir-edition #game.game .transition { background-color: #25234d; }
.noir-edition #game.game .feature-step { background: #29315c; border-color: #799ed5; border-top-color: #83e6ff; }
.noir-edition #game.game .transition[data-feature-brief=blood] .feature-step { border-top-color: #ff8fa4; }
.noir-edition #game.game .transition[data-feature-brief=disco] .feature-step { border-top-color: #e4a0ff; }
.noir-edition .riot-win,
.noir-edition .riot-win[data-level="4"] { background: #282450; border-color: #ffe1a3; box-shadow: 0 7px 24px #0c113cb3, inset 0 0 0 2px #59609b; }

@media (max-width: 650px) {
  .noir-edition #game.game .cabinet-clasp { width: 16px; height: 16px; }
  .noir-edition #modal:has(.bonus-shop) { padding: 48px 12px 18px; width: calc(100% - 16px); }
  .noir-edition #modal .bonus-shop .buy-card-grid { gap: 20px; }
  .noir-edition #modal .bonus-shop .buy-card { display: flex; gap: 9px; padding: 0 0 12px; text-align: center; }
  .noir-edition #modal .bonus-shop .buy-art { height: 150px; min-height: 150px; flex-basis: 150px; width: 100%; align-self: stretch; }
  .noir-edition #modal .bonus-shop .buy-card h3 { font-size: 23px; }
  .noir-edition #modal .bonus-shop .feature-description { min-height: 0; font-size: 15px; padding: 0 20px; }
  .noir-edition #modal .bonus-shop .buy-card-price { font-size: 32px; margin-top: 3px; align-self: center; }
  .noir-edition #modal .bonus-shop .buy-cost-multiplier { font-size: 10px; }
  .noir-edition #modal .bonus-shop .buy-card-button { font-size: 23px; }
}
@media (max-width: 650px) and (min-height: 461px) {
  .noir-edition #game.game .grain {
    background: linear-gradient(0deg, #1b234e 0%, #252756 30%, #223663e6 52%, transparent 86%);
  }
  .noir-edition #game.game .controls { background: transparent; box-shadow: none; }
  .noir-edition #game.game .controls::before {
    background: #212b55;
    border-color: #7fa6d7;
    box-shadow: inset 0 1px #c5eaff33, 0 3px #131c3e;
  }
  .noir-edition #game.game .bet-control #minus,
  .noir-edition #game.game .bet-control #plus,
  .noir-edition #game.game #bet-select { background: transparent; }
}
@media (max-width: 360px) {
  .noir-edition #modal .bonus-shop .buy-card h3 { font-size: 20px; }
  .noir-edition #modal .bonus-shop .buy-bet { padding: 12px 10px; gap: 3px 8px; }
  .noir-edition #modal .bonus-shop .buy-bet > strong { font-size: 23px; }
  .noir-edition #modal .bonus-shop .buy-bet-controls button { width: 44px; }
}
/* Compact landscape has no spare room for protruding decoration. */
@media (max-height: 460px) {
  .noir-edition #game.game .cabinet-clasp { width: 11px; height: 11px; }
  .noir-edition #modal .bonus-shop .buy-art { --buy-emblem-size: 106px; height: 112px; min-height: 112px; flex-basis: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .noir-edition #game.game .reels::after,
  .noir-edition #game.game.spin-feedback-reeling .reels::after { content: none; animation: none; }
}
