/* Wolf Riot's illustrated midnight city. Geometry and the approved lettering
   stay in presentation.css; these rules only unify artwork and materials. */
body.noir-edition {
  --panel-red: #32161c;
  --panel-red-edge: #85583f;
}

/* The club is part of the same city, including its later collector levels. */
.noir-edition #game.disco .scene {
  background-image: url('assets/noir/disco-scene.webp');
  background-size: cover;
  background-position: left center;
  opacity: 1;
  filter: none !important;
  transform: none !important;
  animation: none !important;
}
.noir-edition #game.disco .scene-film { display: none; }
.noir-edition #game.disco .light,
.noir-edition #game.disco .scene::after { display: none; }
.noir-edition #game.disco .grain {
  background: linear-gradient(0deg,#0c1017bb,transparent 32%),linear-gradient(90deg,transparent 27%,#0c10171a 55%,#0c10174d);
}
.noir-edition #game.disco h1 {
  color: #eee0bb;
  text-shadow: 0 2px #8b683c,0 5px #080b12;
}
.noir-edition #game.disco h1 span { color: #db493e; text-shadow: inherit; }
.noir-edition #game .transition,
.noir-edition #game .chase-scene {
  background: linear-gradient(0deg,#0c101ad9,#0c101a88),url('assets/noir/scene.webp') left center / cover no-repeat;
}
.noir-edition #game.disco .transition,
.noir-edition #game .chase-scene[data-bonus=disco] {
  background-image: linear-gradient(0deg,#0c101ad9,#0c101a88),url('assets/noir/disco-scene.webp');
}
.noir-edition #game .transition::before,
.noir-edition #game .chase-scene::before {
  display: none;
}
.noir-edition #game .transition h2 {
  color: #f0e4ca;
  text-shadow: 0 3px #32161c;
}
.noir-edition #game .transition p { text-shadow: 0 2px #080b10; }

/* Dark enamel, restrained brass edges and warm paper. No additional panels. */
.noir-edition .game .machine-top,
.noir-edition .game .ticker,
.noir-edition #game.disco .machine-top,
.noir-edition #game.disco .ticker {
  background: var(--panel-red);
  border-color: var(--panel-red-edge);
  box-shadow: inset 0 1px #e9bd7620, inset 0 -1px #0a0d1480;
  color: #ecd5aa;
}
.noir-edition .game .reel-frame,
.noir-edition #game.disco .reel-frame {
  background: #242125;
  border-color: #806346;
  box-shadow: 0 5px 14px #05070c66, inset 0 1px #c29a6233;
}
.noir-edition .game .reels .symbol,
.noir-edition #game.disco .reels .symbol {
  --card-edge: #34363e;
  background: #0d111a;
}
.noir-edition .game .controls {
  border-color: #805740;
  box-shadow: inset 0 1px #dbac7220, 0 3px #080a10;
}
.noir-edition .game .chance-button { border-color: #805740; }
.noir-edition .game .reels .symbol.w,
.noir-edition .game .reels .symbol.d { --card-edge: #95654a; }

/* Compensate for each square export's different painted bounds. Individual
   scale preserves transform animations used by the win and landing systems. */
.noir-edition .game .reels .symbol .slot-art { transform-origin: center; }
.noir-edition .game .reels .symbol.v .slot-art { scale: 1.2; }
.noir-edition .game .reels .symbol.b .slot-art { scale: 1.14; }
.noir-edition .game .reels .symbol.n .slot-art { scale: 1.13; }
.noir-edition .game .reels .symbol.f .slot-art { scale: 1.04; }
.noir-edition .game .reels .symbol.g .slot-art { scale: 1.2; }
.noir-edition .game .reels .symbol.t .slot-art { scale: 1.2; }

/* Portraits fill the card; the caption overlays the jacket rather than
   removing a third of the already small desktop illustration. */
.noir-edition .game .reels .symbol.w .slot-art,
.noir-edition .game .reels .symbol.d .slot-art {
  position: absolute;
  top: 0;
  width: 100%;
  height: 112%;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center top;
  align-self: auto;
}
.noir-edition .game .reels .symbol.d .slot-art { height: 106%; }
.noir-edition .pack-reel-reveal .pack-reveal-cell img {
  position: absolute;
  top: 0;
  width: 100%;
  height: 112%;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center top;
  align-self: auto;
}
.noir-edition .game .reels .symbol .wild-caption,
.noir-edition .pack-reel-reveal .pack-reveal-cell b {
  z-index: 4;
  background: #32161cf2;
  border-top-color: #9b7550;
  color: #f1dfb9;
  letter-spacing: .25px;
  box-shadow: 0 5px #32161c;
}
.noir-edition .game .reels .symbol.d .wild-caption {
  background: #352719f5;
  box-shadow: 0 5px #352719;
  font-size: clamp(5px,calc(var(--fit-symbol-height,76px)*.12),9px);
  letter-spacing: 0;
  white-space: nowrap;
}
.noir-edition .game .reels .symbol .bonus-art-label {
  color: #dcc59d;
  background: #10151cf2;
  letter-spacing: .2px;
}
.noir-edition .game .reels .symbol.t .bonus-art-label { color: #e6aaa0; }

/* All cash tiers share the same enamel face. Metal rims identify their tier;
   GLOBAL retains its square silhouette and red rim. Values remain unchanged. */
.noir-edition .game .value-coin {
  --token-rim: #b98b52;
  --token-highlight: #edd0a1;
  border-color: var(--token-rim);
  background: #4d392a;
  box-shadow: inset 0 0 0 2px #16171b, inset 0 3px #ecd1a15c, 0 2px #070a10;
}
.noir-edition .game .value-coin.silver {
  --token-rim: #a6b8bb;
  --token-highlight: #deecea;
  border-color: var(--token-rim);
  background: #3d4b50;
}
.noir-edition .game .value-coin.gold {
  --token-rim: #d7af64;
  --token-highlight: #f4dfa9;
}
.noir-edition .game .value-coin.multiplier {
  --token-rim: #c47b63;
  --token-highlight: #f0bd98;
  border-color: var(--token-rim);
  background: #713d35;
}
.noir-edition .game .value-coin::before,
.noir-edition .game .value-coin.silver::before,
.noir-edition .game .value-coin.multiplier::before {
  background: #172029;
  border-color: var(--token-rim);
  box-shadow: inset 0 2px #05090c80;
}
.noir-edition .game .coin-number { color: var(--token-highlight); text-shadow: 0 2px #080b10; }
.noir-edition .game .coin-unit { color: #e2d2b4; letter-spacing: .2px; }

/* Keep collection feedback local and readable instead of recoloring the set. */
.noir-edition #game.disco .disco-hud { background: #32161c; }
.noir-edition #game.disco .party-progress {
  background: #26151b;
  box-shadow: inset 0 -1px #80574066;
}
.noir-edition #game.disco .party-meter { background: #171b23; border-color: #8d6651; }
.noir-edition #game.disco .party-meter i { background: #b55242; box-shadow: none; }
.noir-edition #game.disco .party-meter i::after { display: none; }
.noir-edition #game.disco .party-meter b { background: #20151b; box-shadow: none; }
.noir-edition #game.disco .party-meter-heading strong { color: #ebd9b9; text-shadow: none; }
.noir-edition #game.disco #party-count { background: #74372e; color: #f6e5c2; box-shadow: none; }
.noir-edition #game.disco[data-meter-ready=true] .party-meter,
.noir-edition #game.disco[data-meter-ready=true] #party-count { animation: none; }
.noir-edition #game.disco.multi-wave .reel-frame { box-shadow: inset 0 0 0 1px #d6b477,0 5px 14px #05070c66 !important; }
.noir-edition #game.disco .multi-stamp { background: #dfc187; color: #20191a; box-shadow: none; }

@media (min-width:1000px) and (min-height:500px) {
  .noir-edition .game .reels .symbol .wild-caption { font-size: 8px; }
  .noir-edition .game .reels .symbol.d .wild-caption { font-size: 8px; min-height: 12px; padding: 1px 2px; }
  .noir-edition #game.disco .disco-hud span { letter-spacing: .15px; }
}
@media (max-width:650px) and (min-height:461px) {
  .noir-edition #game.disco .scene {
    background-position: 12% top;
    background-size: auto 330px;
    background-repeat: no-repeat;
    background-color: #0b1019;
  }
  .noir-edition #game.disco .grain { background: linear-gradient(0deg,#0b1019 0%,#0b1019dc 62%,transparent 92%); }
  .noir-edition .game .controls { box-shadow: none; }
}
@media (max-height:460px) {
  .noir-edition .game .reels .symbol.w .slot-art,
  .noir-edition .game .reels .symbol.d .slot-art,
  .noir-edition .pack-reel-reveal .pack-reveal-cell img { height: 105%; }
}

/* Original cut-enamel ranks. Actual letter paths, not outlined font glyphs.
   Each keeps the existing symbol footprint and the board's gold/ice/red code. */
.noir-edition .game .reels .rank-art {
  display: block;
  width: 90%;
  height: 90%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 64%;
}

/* Pressed club counters. The illustration is decorative; live amounts above
   it remain selectable DOM text and keep the existing value/overflow logic. */
.noir-edition .game .value-coin {
  border: 0;
  border-radius: 0;
  background: url('assets/noir/token-copper.svg') center / contain no-repeat;
  box-shadow: none;
}
.noir-edition .game .value-coin.silver { background: url('assets/noir/token-silver.svg') center / contain no-repeat; }
.noir-edition .game .value-coin.gold { background: url('assets/noir/token-gold.svg') center / contain no-repeat; }
.noir-edition .game .value-coin.multiplier { background: url('assets/noir/token-global.svg') center / contain no-repeat; }
.noir-edition .game .value-coin::before { content: none; }
.noir-edition .game .value-coin .coin-number {
  color: #f1dfbb;
  text-shadow: 0 1px #080e15;
  -webkit-text-stroke: 0;
  font-size: min(33px,calc(var(--fit-symbol-height,76px)*.34));
  max-width: 72%;
}
.noir-edition .game .value-coin .coin-number.compact {
  font-size: min(27px,calc(var(--fit-symbol-height,76px)*.9/var(--coin-digits,4)));
}
@supports(font-size:1cqw) {
  .noir-edition .game .value-coin .coin-number,
  .noir-edition .game .value-coin .coin-number.compact {
    font-size: min(33px,30cqw,calc(80cqw / var(--coin-digits,3)));
  }
}
.noir-edition .game .value-coin .coin-unit {
  color: #cfbea2;
  font-size: clamp(4px,calc(var(--fit-symbol-height,76px)*.07),7px);
  letter-spacing: 0;
  line-height: 1;
  margin-top: 3px;
}
.noir-edition .game .value-coin.multiplier .coin-number { color: #f3c5ab; }

/* One small piece of city hardware, reused deliberately where panels join.
   No added overlays over symbols, no repeated shadows on every control. */
.noir-edition .game .machine-top {
  background-image: url('assets/noir/plate-corner.svg');
  background-size: 26px 26px;
  background-position: 3px 2px;
  background-repeat: no-repeat;
}
.noir-edition .game .reel-frame::before,
.noir-edition .game .reel-frame::after {
  content: '';
  position: absolute;
  bottom: -1px;
  width: 24px;
  height: 24px;
  z-index: 10;
  background: url('assets/noir/plate-corner.svg') center / contain no-repeat;
  pointer-events: none;
}
.noir-edition .game .reel-frame::before { left: -1px; transform: rotate(-90deg); }
.noir-edition .game .reel-frame::after { right: -1px; transform: rotate(180deg); }
.noir-edition .buy-card {
  border-radius: 2px;
  border-top: 3px solid var(--buy-accent);
  background-image: url('assets/noir/plate-corner.svg');
  background-size: 40px 40px;
  background-position: 3px 3px;
  background-repeat: no-repeat;
}
.noir-edition .buy-stars > span {
  display: inline-block;
  width: 17px;
  height: 17px;
  font-size: 0;
  color: transparent;
  background: url('assets/noir/rating-mark.svg') center / contain no-repeat;
  opacity: .22;
  filter: grayscale(1);
}
.noir-edition .buy-stars > span.filled { opacity: 1; filter: none; }
@media(max-height:460px) {
  .noir-edition .game .reel-frame::before,
  .noir-edition .game .reel-frame::after { width: 14px; height: 14px; }
}
