/* Supplied art is composed over a full-viewport scene. See assets/redesign/README.md. */
body { display: block; padding: 0; }
#loaderRetry { width: auto; margin-top: 20px; padding: 12px 24px; }
#loaderRetry[hidden] { display: none; }
.popup__artwork[hidden], .bonus-art-fallback[hidden] { display: none !important; }
.popup--bonus-art {
  width: min(68%, 360px);
  transform-origin: center;
  animation: popupIn .45s ease-out both, bonusPopupPulse 2.2s ease-in-out .45s infinite;
}
.popup--bonus-art .popup__artwork { max-height: 48dvh; }
.overlay, .overlay.is-bonus-popup, .win-presentation {
  background: #06101940;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.overlay__card { max-width: min(84%, 520px); }
@keyframes bonusPopupPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.055); }
}
@media (prefers-reduced-motion: reduce) {
  .popup--bonus-art { animation: none; }
}
.win-presentation {
  position: absolute; inset: 0; z-index: 21;
  display: grid; place-items: center;
  pointer-events: auto;
}
.win-presentation[hidden], .win-popup [hidden] { display: none; }
.win-popup {
  position: relative; display: block; padding: 0; margin: 0;
  width: min(84%, 620px, calc(50dvh * 1672 / 941));
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  cursor: pointer; color: #fff5c8; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.win-popup:focus-visible { outline: none; }
.win-popup:focus-visible .win-popup__continue { text-decoration: underline; text-underline-offset: 4px; }
.win-popup__body {
  position: relative; display: block; width: 100%; aspect-ratio: 1672 / 941;
  container-type: inline-size;
  animation: bonusPopupPulse 2.2s ease-in-out .45s infinite;
}
.win-popup__art { display: block; width: 100%; height: 100%; object-fit: contain; }
.win-popup__amount {
  position: absolute; left: 50%; top: 67%; transform: translate(-50%, -50%);
  width: 65%; text-align: center; white-space: nowrap;
  color: #fff5c8; font: 700 clamp(18px, 8cqw, 52px)/1 Georgia, serif;
  font-variant-numeric: tabular-nums;
  -webkit-text-stroke: .5px #643000;
  text-shadow: 0 2px 1px #6c2600, 0 0 8px #ffad3266;
}
.win-popup--jackpot .win-popup__amount { top: 74%; }
.win-popup__continue {
  display: block; margin-top: 6px; color: #fff0c3;
  font: 600 clamp(12px, 2vw, 17px)/1.5 Arial, sans-serif;
  letter-spacing: .08em; text-shadow: 0 2px 4px #000, 0 0 5px #000;
}
.win-popup__fallback {
  position: absolute; inset: 20% 8% 12%; display: block;
  border: 2px solid #e9bc4e; border-radius: 18px; padding-top: 5%;
  background: #03242dee; color: #ffdc67; font: 700 clamp(24px, 6vw, 64px)/1.2 Georgia, serif;
}
@media (prefers-reduced-motion: reduce) {
  .win-popup__body { animation: none; }
}
.app {
  width: calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right));
  height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  aspect-ratio: auto; display: block; overflow: clip; padding: 0;
}
.bg-still, .bg-video {
  position: fixed; inset: 0; width: 100%; height: 100dvh; object-fit: cover; object-position: center;
  display: block; pointer-events: none; transform: none; filter: brightness(.86);
}
.bg-still { z-index: -3; }
.bg-video { z-index: -2; opacity: 0; }
.top, .dock, .play-controls { display: contents; }
.dock::before, .dock::after, .top::before, .top::after { content: none; }
.scene-logo { position: absolute; object-fit: contain; z-index: 4; pointer-events: none; }
/* The supplied cutouts include loose pixels from neighboring artwork. */
.scene-logo, .loader__logo {
  clip-path: polygon(0 0, 100% 0, 100% 90%, 58% 90%, 55% 100%, 45% 100%, 42% 90%, 0 90%);
}
.top .jackpots { position: absolute; padding: 0; margin: 0; z-index: 5; }
.jackpot-grid { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-rows: 1fr; gap: 1%; }
.jackpot-tile {
  position: relative; display: block; padding: 0; border: 0; border-radius: 0; box-shadow: none;
  background: url('../assets/redesign/jackpot-ember.png') center bottom / 100% auto no-repeat;
  clip-path: polygon(38% 0, 62% 0, 62% 18%, 100% 38%, 100% 100%, 0 100%, 0 38%, 38% 18%);
  isolation: auto; overflow: visible; order: 0;
}
.jackpot-tile--dragon-crown {
  clip-path: polygon(30% 0, 70% 0, 70% 18%, 100% 38%, 100% 100%, 0 100%, 0 38%, 30% 18%);
}
.jackpot-tile--flame { background-image: url('../assets/redesign/jackpot-flame.png'); }
.jackpot-tile--inferno { background-image: url('../assets/redesign/jackpot-inferno.png'); }
.jackpot-tile--dragon-crown { background-image: url('../assets/redesign/jackpot-dragon-crown.png'); }
.jackpot-tile::before, .jackpot-tile::after { content: none; }
.jackpot-tile__icon { display: none; }
.jackpot-tile__name, .sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important;
}
.jackpot-tile__val, .jackpot-tile--dragon-crown .jackpot-tile__val {
  position: absolute; left: 4%; bottom: 12%; width: 92%; max-width: 100%;
  color: #ffed64; font: 700 calc(var(--board-width) * .027)/1 Georgia,serif;
  text-align: center; letter-spacing: -.025em; white-space: nowrap; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px #110900, 0 0 3px #512900;
}
.stage { position: absolute; padding: 0; display: block; z-index: 3; }
.stage__content, .grid-frame, .grid-shell { width: 100%; height: 100%; margin: 0; padding: 0; display: block; transform: none; }
.grid-shell { border: 0; border-radius: 0; box-shadow: none; background: none; }
.board-art {
  /* Bleed under the inner gold rails so their transparent/antialiased edges
     cannot expose the scenery between the felt and the frame. */
  position: absolute; inset: -1.4% -.9%; border: 0;
  background: #002b31 url('../assets/redesign/reel-board.png') center / 100% 100% no-repeat;
  box-shadow: none;
}
.board-frame-art {
  /* PNG is 1225 x 824; its transparent opening is (50,49), 1124 x 719.
     Align that opening to the reels using an ordinary image on every browser. */
  position: absolute; left: -4.44839858%; top: -6.81502086%;
  width: 108.98576512%; height: 114.60361613%; max-width: none;
  display: block; object-fit: fill; border: 0; border-image: none;
  clip-path: none; pointer-events: none; z-index: 5;
}
.grid { overflow: hidden; clip-path: inset(0); transform-origin: 0 0; }
.grid .symbol img.supplied-symbol, .grid .reel__cell img.supplied-symbol {
  position: absolute; width: var(--symbol-fill); height: var(--symbol-fill); object-fit: contain;
  inset: 0; margin: auto; transform: none; filter: none;
}
.grid .symbol.is-win img.supplied-symbol { filter: brightness(1.1); }
.grid .symbol.is-dim img.supplied-symbol { opacity: .64; }
.grid .fc-plate {
  position: absolute; inset: 0; margin: auto; transform: none;
  width: calc(min(var(--cell),var(--cell-h)) * .97); height: calc(min(var(--cell),var(--cell-h)) * .97);
  min-width: 0; min-height: 0; aspect-ratio: auto;
}
.grid .fc-plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: none; }
.grid .fc-val {
  left: 50%; top: 51%; font: 700 calc(min(var(--cell),var(--cell-h)) * .46)/1 Georgia,serif;
  color: #ffe85c; letter-spacing: -.05em; -webkit-text-stroke: 1.5px #421400; paint-order: stroke fill;
  text-shadow: 0 2px 2px #240800;
}
.grid .fc-val.is-long { font-size: calc(min(var(--cell),var(--cell-h)) * .33); }
.grid .is-counted .fc-plate img { filter: brightness(.9); }
.grid .is-counting .fc-plate { filter: drop-shadow(0 0 5px #e2bc7477); }
.guide-symbol[data-guide-symbol] img { transform: none; object-fit: contain; }
.frame-status { position: absolute; z-index: 6; pointer-events: none; container-type: inline-size; }
.frame-status > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.frame-status .forge-banner {
  position: absolute; left: 33%; top: 36%; width: 12%; height: 40%; display: flex;
  padding: 0; margin: 0; justify-content: center; align-items: center; gap: 0; background: none;
}
.frame-status .forge-banner > strong, .frame-status .forge-banner > strong.is-long {
  font: 700 4cqw/1 Georgia,serif; color: #ffdf52; letter-spacing: -.04em;
  text-shadow: 0 2px 2px #321600;
}
.frame-status .forge-banner > strong.is-long { font-size: 3.2cqw; }
.frame-status .win-control {
  position: absolute; left: 54%; top: 54%; width: 40%; height: 30%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
}
.frame-status .win-control > strong {
  width: 100%; display: block; opacity: 1; visibility: visible; transform: none;
  color: #fff9dc; font: 700 4cqw/1 Georgia,serif;
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000;
}
.dock .art-button {
  position: absolute; display: grid; place-items: center; min-width: 44px; min-height: 44px;
  margin: 0; padding: 0; border: 0; border-radius: 50%; aspect-ratio: 1; background: transparent; box-shadow: none;
  cursor: pointer; z-index: 8; transform: none; filter: drop-shadow(0 3px 4px #0008);
  transition: filter .15s, transform .15s, opacity .15s;
}
.dock .art-button img, .dock .spin #stopImg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; animation: none; }
.dock .art-button [hidden] { display: none !important; }
.dock .art-button::before, .dock .art-button::after { content: none; }
.dock .art-button:active:not(:disabled) { transform: scale(.94); filter: brightness(.86); }
.dock .art-button:disabled { opacity: .55; filter: saturate(.4); cursor: default; }
.dock .art-button[aria-pressed='true'] { filter: brightness(1.2) drop-shadow(0 0 8px #ffc427); outline: 2px solid #fff0a3; outline-offset: 3px; }
@media (hover:hover) { .dock .art-button:hover:not(:disabled) { filter: brightness(1.15) drop-shadow(0 0 5px #f5a02c); } }
.bet-sheet { inset: auto; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(340px,92%); max-height: 90%; }
/* Modal sheets share the celebration backdrop without blurring their content. */
.app:has(> .settings-sheet:not([hidden]), > .sheet:not([hidden]))::after {
  content: ''; position: absolute; inset: 0; z-index: 24;
  background: #06101940;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.balance-readout {
  position: absolute; z-index: 8; left: 12px; bottom: 9px; display: flex; align-items: center;
  color: #d5d8d8; font: 400 12px/1.2 Arial, sans-serif; text-shadow: 0 1px 3px #000;
  pointer-events: none;
}
.balance-readout > span { font: inherit; white-space: pre; }
#balanceVal { font-variant-numeric: tabular-nums; }
.bet-toggle {
  position: absolute; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; min-width: 44px; min-height: 44px; padding: 4px 7px; border: 0;
  border-radius: 6px; color: #fff8df; background: none; box-shadow: none; isolation: isolate;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.bet-toggle::before { content: ''; position: absolute; inset: 4px 0; z-index: -1; border: 1px solid #dcad6380; border-radius: 6px; background: #06192385; box-shadow: 0 1px 6px #0005; }
.bet-toggle > span { font: 600 9px/1 var(--font-ui); white-space: nowrap; }
.bet-toggle > strong { display: block; width: 100%; font: 700 clamp(14px,1.1vw,17px)/1 Georgia,serif; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
.bet-toggle:hover:not(:disabled)::before, .bet-toggle:focus-visible::before { background: #0c293ab8; border-color: #f1c377; }
.bet-toggle:disabled { opacity: .55; cursor: default; }
.buy-bonus-sheet { inset: auto; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(340px,92%); max-height: 90%; }
.spin-settings-sheet { inset: auto; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(360px,92%); max-height: calc(100% - 24px); }
.settings-sheet { width: min(320px, 86%); }
.sheet--menu { width: min(520px, 88%); }
.buy-bonus-copy { color: #f4e8c7; }
.buy-bonus-price { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 18px 0; align-items: center; }
.buy-bonus-price > span { color: #e4c78b; font: 600 13px var(--font-ui); }
.buy-bonus-price > strong { color: #fff8dd; font: 700 20px Georgia,serif; text-align: right; }
.bet-picker { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0; }
.bet-picker > button { width: 48px; height: 48px; border: 1px solid #c49e52; border-radius: 8px; color: #ffe4a0; background: #14252b; font-size: 27px; cursor: pointer; }
.bet-picker > strong { font-size: 27px; font-variant-numeric: tabular-nums; }
.autospin-picker { display: flex; align-items: center; gap: 10px; }
.autospin-picker button { width: 44px; height: 44px; border: 1px solid #c49e52; border-radius: 8px; color: #ffe4a0; background: #14252b; font: 27px/1 var(--font-ui); cursor: pointer; }
.autospin-picker button:disabled { opacity: .45; cursor: default; }
.autospin-picker strong { min-width: 3ch; text-align: center; color: #fff8dd; font: 700 20px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.hud-icon {
  position: absolute; z-index: 9; width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  display: grid; place-items: center; padding: 7px; border: 0; border-radius: 0;
  background: none; color: #d5d8d8; opacity: .78; box-shadow: none; cursor: pointer;
}
#menuOpen { left: 12px; top: 10px; }
.hud-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hud-icon:hover, .hud-icon:focus-visible { background: none; opacity: 1; }
.dock #turboButton.is-turbo-on, .dock #turboButton.is-autospin { filter: brightness(1.2) drop-shadow(0 0 8px #ffc427); }
.sheet-close { width: 44px; height: 44px; }
.setting-switch { min-height: 44px; }
.setting-switch > span { inset-block: 6px; }
.settings-rules summary { min-height: 44px; display: flex; align-items: center; }
.sheet--menu .test button, .sheet--menu .turbo { min-height: 44px; }
.bonus-textbox { cursor: default; pointer-events: none; }
.test-notice { top: auto; bottom: 8px; left: 20%; width: 60%; font-size: 12px; text-align: center; }
.win-banner { bottom: 8px; max-width: 94%; font-size: 14px; }
@media (orientation:portrait) {
  .balance-readout { bottom: 4px; }
  .jackpot-tile__val, .jackpot-tile--dragon-crown .jackpot-tile__val { font-size: calc(var(--board-width) * .031); }
  .test-notice { left: 5%; width: 90%; font-size: 10px; }
}
@media (prefers-reduced-motion:reduce) { .art-button { transition: none !important; } }
