











:root {
  --game-safe-top: env(safe-area-inset-top, 0px);
  --game-safe-left: env(safe-area-inset-left, 0px);
  --game-safe-right: env(safe-area-inset-right, 0px);

  --hit-min: 44px;
  --primary-min: 88px;
  --gap: 8px;
  --gap-money: 12px;
  --edge-money: 22px;


  --ink: #f4ecd8;
  --ink-dim: #b7a98c;
  --panel: rgba(18, 12, 20, 0.82);
  --panel-edge: rgba(226, 190, 108, 0.35);
  --gold: #e2be6c;
  --gold-hot: #ffd97a;
  --violet: #6b3fa0;
  --violet-hot: #a97ee8;
  --green: #35a05a;
  --danger: #c8465e;
  --board-bg: #43222a;

  --chrome-h: 150px;






















  --canvas-u: min(calc(100vw / 1920), calc(100dvh / 1080));










































  --panel-w: max(
    var(--fine-panel-min, 0px),
    calc(1369 * var(--canvas-u)),
    min(calc(1369 * 100vw / 1920), calc(9.2568 * (var(--chrome-h) - 12px)))
  );




  --panel-u: calc(var(--panel-w) / 1369);













  --font: "Noto Sans", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}














@font-face {
  font-family: "Noto Sans"; font-style: normal;
  font-weight: 100 900; font-stretch: 100%; font-display: swap;
  src: url("../assets/fonts/noto-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans"; font-style: normal;
  font-weight: 100 900; font-stretch: 100%; font-display: swap;
  src: url("../assets/fonts/noto-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Sans"; font-style: normal;
  font-weight: 100 900; font-stretch: 100%; font-display: swap;
  src: url("../assets/fonts/noto-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}


@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-variable.woff2") format("woff2");
}

* { box-sizing: border-box; }



[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0a0710;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

button { font-family: inherit; color: inherit; cursor: pointer; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }













.boot {
  position: fixed; inset: 0; z-index: 100;
  background: #0a0710; overflow: hidden;
}
.boot__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: 1;
}







.boot__logo {













  position: absolute; z-index: 1;
  left: calc(50% - 201 * var(--canvas-u)); top: calc(50% - 287 * var(--canvas-u));
  width: calc(402 * var(--canvas-u)); height: calc(347 * var(--canvas-u));
  object-fit: contain;
  filter: drop-shadow(0 6px 22px rgba(0,0,0,0.8));
}

.boot__provider {
  position: absolute; z-index: 1; left: 50%; bottom: max(24px, 5dvh);
  width: min(20vw, 26dvh, 220px); height: auto;
  transform: translateX(-66.5%); object-fit: contain;
  filter: drop-shadow(0 2px 7px #000a);
}
@media (orientation: portrait) {
  .boot__provider { width: min(38vw, 20dvh, 210px); }
}
.boot--failed .boot__provider { display: none; }


.boot__bar {
  position: absolute; z-index: 1;
  left: calc(50% - 327 * var(--canvas-u)); top: calc(50% + 125 * var(--canvas-u));
  width: calc(654 * var(--canvas-u)); height: calc(105 * var(--canvas-u));
}
.boot__bar-frame {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: fill;
}




.boot__bar-track {
  position: absolute; left: 2.599%; top: 26.667%; width: 94.648%; height: 46.667%;
  object-fit: fill; padding: 0;
}
.boot__bar-frame { z-index: 2; pointer-events: none; }



.boot__fill-clip {
  position: absolute; left: 2.599%; top: 26.667%; width: 94.648%; height: 46.667%;
  overflow: hidden; z-index: 1;
}










.boot__fill {
  width: 100%; height: 100%; object-fit: fill;
  clip-path: inset(0 calc(100% - var(--boot-progress, 0%)) 0 0);
  transition: clip-path 0.25s linear;
}




.boot__pct {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}



















.boot__slow {
  position: absolute; z-index: 1; left: 0; right: 0; top: 74%;
  width: max-content; margin-inline: auto; max-width: min(420px, 92vw); padding: 12px 16px; text-align: center;
  font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.72);
  text-shadow: 0 2px 6px #000;
}

.boot__err {

  position: absolute; z-index: 1; left: 0; right: 0; top: 74%;
  width: max-content; margin-inline: auto; max-width: min(420px, 92vw); padding: 16px; text-align: center;
  font-size: 14px; line-height: 1.5; color: #ffb4c0;
  background: rgba(10,7,16,0.85); border-radius: 10px;
}



.boot--failed {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(12px, 3dvh, 24px);
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.boot--failed .boot__logo {
  position: relative; left: auto; top: auto; flex: 0 0 auto;
  width: min(200px, 44vw); height: min(150px, 22dvh);
}
.boot--failed .boot__bar,
.boot--failed .boot__pct,
.boot--failed .boot__slow { display: none; }
.boot--failed .boot__err {
  position: relative; top: auto; left: auto; right: auto;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  flex: 0 1 auto; min-height: 0; width: min(420px, 100%); max-width: 100%; margin: 0;
  overflow-y: auto; overflow-wrap: anywhere;
}
.boot--failed .boot__err > .btn {
  flex: 0 0 auto; min-height: 44px; max-width: 100%; margin: 0;
}







.intro {
  position: fixed; inset: 0; z-index: 90;
  background: #0a0710;
  animation: introIn 0.42s cubic-bezier(0.3, 1.4, 0.5, 1);
  overflow: hidden;
}
@keyframes introIn { from { opacity: 0; } to { opacity: 1; } }



.intro__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }












.intro__canvas {
  position: absolute; z-index: 1;
  left: calc(50% - 960 * var(--canvas-u)); top: calc(50% - 540 * var(--canvas-u));
  width: calc(1920 * var(--canvas-u)); height: calc(1080 * var(--canvas-u));
  pointer-events: none;
}
.intro__canvas > * { pointer-events: auto; }



.intro__mechanics {
  position: absolute; z-index: 1;
  left: calc(228 * var(--canvas-u)); top: calc(159 * var(--canvas-u));
  width: calc(833 * var(--canvas-u)); height: calc(773 * var(--canvas-u));
  display: grid; grid-template-rows: repeat(3, 1fr); gap: calc(25 * var(--canvas-u));
  overflow: visible;
}
.intro__mechanic {
  position: relative; min-width: 0; min-height: 0;
  background: url('../assets/ui/intro-plank.webp') center / 100% 100% no-repeat;
}
.intro__mechanic-art {
  position: absolute; display: block; object-fit: contain;
  left: calc(-6 * var(--canvas-u)); top: calc(-19 * var(--canvas-u));
  width: calc(243 * var(--canvas-u)); height: calc(229 * var(--canvas-u));
}
.intro__mechanic:nth-child(3) > .intro__mechanic-art {
  left: calc(-21 * var(--canvas-u)); top: calc(-38 * var(--canvas-u));
  width: calc(272 * var(--canvas-u)); height: calc(267 * var(--canvas-u));
}
.intro__mechanic-copy {
  position: absolute; left: 33.974%; top: 13.278%; width: 57.14%; min-width: 0;
}
.intro__mechanic h2 {
  position: relative;
  margin: 0 0 calc(12 * var(--canvas-u)); font-size: calc(32 * var(--canvas-u));
  line-height: 1.375; font-weight: 900; color: #200303;
  -webkit-text-stroke: calc(6 * var(--canvas-u)) #200303; paint-order: stroke fill;
  text-shadow: none; filter: drop-shadow(0 calc(3 * var(--canvas-u)) 0 #000);
}


.intro__mechanic h2::after {
  content: attr(data-plate-ink) / '';
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #ead577 41.582%, #a0682b 73.527%, #ead577 83.97%);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 0;
}
.intro__mechanic p {
  margin: 0; font-size: calc(24 * var(--canvas-u)); font-weight: 900;
  line-height: 1.375; color: #fdf1d9; text-shadow: 0 calc(3 * var(--canvas-u)) 0 #000;
  overflow-wrap: anywhere;
}
@media (orientation: landscape) and (min-width: 1025px) {

  .intro__mechanic-copy { top: calc(32 * var(--canvas-u)); }
  .intro__mechanic h2 { margin-bottom: calc(8 * var(--canvas-u)); }
  .intro__mechanic:nth-child(n+2) .intro__mechanic-copy { top: calc(40 * var(--canvas-u)); }
  .intro__mechanic:nth-child(n+2) h2 { margin-bottom: calc(13 * var(--canvas-u)); }
}







.intro__reel {
  position: absolute; z-index: 1;
  left: calc(149 * var(--canvas-u)); top: calc(59 * var(--canvas-u));
  width: calc(1006 * var(--canvas-u)); height: calc(886 * var(--canvas-u));
}
.intro__reel-art     { position: absolute; left: 7.31%; top: 0; width: 85.35%; height: 96.83%; object-fit: fill; }
.intro__reel-herbs   { position: absolute; left: 0; top: 3.74%; width: 13.34%; height: 46.61%; object-fit: contain; }
.intro__reel-branch  { position: absolute; left: 82.99%; top: 0; width: 17.01%; height: 48.66%; object-fit: contain; }
.intro__reel-skull   { position: absolute; left: 2.19%; top: 2.8%; width: 9.32%; height: 18.78%; object-fit: contain; }
.intro__reel-candles { position: absolute; left: 1.89%; top: 79.46%; width: 29.32%; height: 20.54%; object-fit: contain; z-index: 2; }


.intro__sym { position: absolute; z-index: 1; }
.intro__sym img { display: block; width: 100%; height: 100%; object-fit: contain; }
.intro__sym span { display: none; }
.intro__sym--missing {
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, var(--symbol-tint), rgba(0,0,0,0.45));
  border: 1px solid rgba(248,226,181,.45);
  border-radius: 12%;
}
.intro__sym--missing img { display: none; }
.intro__sym--missing span {
  display: block; color: #fff0c9; font-weight: 900;
  font-size: clamp(12px, 2.2vw, 26px); line-height: 1;
  text-shadow: 0 2px 3px #160d12;
}
.intro__sym--big { z-index: 2; }


.intro__maxwin {
  position: absolute; z-index: 2;
  left: calc(276 * var(--canvas-u)); top: calc(949.5 * var(--canvas-u));
  width: calc(736.3 * var(--canvas-u)); height: calc(36.7 * var(--canvas-u));
  display: grid; place-items: center;
  text-align: center; white-space: nowrap;
  font-size: calc(31 * var(--canvas-u)); font-weight: 900; color: #FBEEBA;
  text-shadow: 0 3px 0 #000;
}
.intro__maxwin b { color: #FBEEBA; }






.intro__maxwin-money {
  position: absolute; z-index: 2;
  left: calc(276 * var(--canvas-u)); top: calc(986.2 * var(--canvas-u));
  width: calc(736.3 * var(--canvas-u));
  display: grid; place-items: center;
  text-align: center; white-space: nowrap;
  font-size: calc(20 * var(--canvas-u)); font-weight: 700; color: #C9B98A;
  text-shadow: 0 2px 0 #000;
}
.intro__maxwin-money:empty { display: none; }














.intro__col { display: contents; }

.intro__logo {
  position: absolute; z-index: 3;
  left: calc(1299 * var(--canvas-u)); top: calc(140 * var(--canvas-u));
  width: calc(314 * var(--canvas-u)); height: calc(271 * var(--canvas-u));
  object-fit: contain;
  filter: drop-shadow(0 8px 26px rgba(0,0,0,0.85));
}

.intro__spin {
  position: absolute; z-index: 3;
  left: calc(1365 * var(--canvas-u)); top: calc(494 * var(--canvas-u));
  width: calc(182 * var(--canvas-u)); height: calc(182 * var(--canvas-u));
  background: none; border: 0; padding: 0; border-radius: 50%;
}






.intro__spin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.intro__spin, .spin-btn { -webkit-touch-callout: none; }
.intro__spin img, .spin-btn__art {
  -webkit-user-drag: none;
  pointer-events: none;
}


.spin-art-fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.spin-art--missing .spin-art-fallback { display: block; }
.intro__spin.spin-art--missing img,
.spin-btn.spin-art--missing .spin-btn__art { display: none; }


.intro__halo { position: absolute; display: block; inset: -3%; border-radius: 50%; box-shadow: 0 0 calc(18 * var(--canvas-u)) calc(7 * var(--canvas-u)) #ffbd26b3; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .intro__spin:hover img { transform: rotate(-30deg) scale(1.06); transition: transform 200ms cubic-bezier(0.34,1.56,0.64,1); }
}
.intro__spin img { transition: transform 200ms cubic-bezier(0.165,0.84,0.44,1); }

.intro__vol {
  position: absolute; z-index: 3;
  left: calc(1270 * var(--canvas-u)); top: calc(704 * var(--canvas-u));
  width: calc(372 * var(--canvas-u)); height: calc(202 * var(--canvas-u));
}
.intro__vol-plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }


.intro__vol-body {
  position: absolute; inset: 24.8% 13.7% 24.3% 13.7%; z-index: 1;
  display: grid; place-items: center; align-content: center; gap: 6px;
}



.intro__vol-k {
  font-size: calc(20 * var(--canvas-u)); letter-spacing: 0;
  color: #fff; font-weight: 900; text-transform: uppercase;
  -webkit-text-stroke: calc(2 * var(--canvas-u)) #000; paint-order: stroke fill;
  text-shadow: 0 calc(2 * var(--canvas-u)) 0 #000;
}


.intro__vol-k i { font-style: normal; }
.intro__feathers { display: flex; gap: calc(7 * var(--canvas-u)); }
.intro__feathers img { width: calc(49 * var(--canvas-u)); height: auto; }
.intro__feathers img.is-off { opacity: 0.28; }
.intro__feathers img.is-partial {
  -webkit-mask-image: linear-gradient(to right, #000 var(--feather-fill), rgba(0,0,0,.28) var(--feather-fill));
  mask-image: linear-gradient(to right, #000 var(--feather-fill), rgba(0,0,0,.28) var(--feather-fill));
}



.cell__hold-roll {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  z-index: 2; border-radius: 10px;
}
.cell__hold-reel {
  position: absolute; inset: 0;
}
.cell__hold-symbol {
  position: absolute; left: 3%; top: 6%; width: 94%; height: 88%;
  object-fit: contain; pointer-events: none;
  transform-origin: 50% 50%;

  filter: blur(2px);
  animation: holdReel var(--hold-roll-duration, 420ms) linear infinite;
  animation-delay: var(--hold-book-delay, 0ms);
}
@keyframes holdReel {
  0% { transform: translate3d(-12%, -135%, 0) rotate(-18deg) scale(.76); opacity: 0; }
  18% { opacity: .65; }
  50% { transform: translate3d(0, 0, 0) rotate(-2deg) scale(.9); opacity: .8; }
  82% { opacity: .65; }
  100% { transform: translate3d(12%, 135%, 0) rotate(14deg) scale(.76); opacity: 0; }
}
.levels__mark.is-near:not(.is-active) .levels__chest {
  animation: nextChest 1.6s ease-in-out infinite;
}
@keyframes nextChest {
  0%, 100% { transform: translate(-50%, 0) scale(1); filter: brightness(1); }
  50% { transform: translate(-50%, 0) scale(1.06); filter: brightness(1.14) drop-shadow(0 0 7px #f2da77); }
}
.bet-cell--saved-progress { position: relative; }
.bet-progress-key { color: #aee690; font-size: 12px; text-align: center; margin: -4px 0 6px; }
.bet-cell__progress {
  position: absolute; right: 6px; top: 0; line-height: 1; font-size: 18px;
  color: #92d573; pointer-events: none;
}
.rules-art.rules-hw-example { display: block; max-width: 500px; margin: 18px auto; }
.rules-hw-example__counter { color: #f4d384; font-weight: 800; text-align: center; margin-bottom: 8px; }
.rules-hw-example__board { position: relative; width: 100%; aspect-ratio: 1; container-type: inline-size; }
.rules-hw-example__grid { display: grid; grid-template: repeat(6, 1fr) / repeat(6, 1fr); gap: 2px; height: 100%; }
.rules-hw-example__cell { position: relative; min-width: 0; min-height: 0; background: #21161c; border-radius: 5px; }
.rules-hw-example__cell[data-book="1"] { background: #422a24; }
.rules-hw-example .rules-hw-example__cell img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rules-hw-example__value {
  position: absolute; bottom: 3px; left: 2px; right: 2px;
  border: 1px solid #806531; border-radius: 3px; background: #221906;
  color: #ffe698; font-weight: 800; font-size: clamp(10px, 2.8cqw, 14px);
  line-height: 1.35; text-align: center;
}
.rules-hw-example__frame {
  position: absolute; pointer-events: none; box-sizing: border-box;
  top: calc((var(--row) - 1) * 100% / 6 + 1px);
  left: calc((var(--col) - 1) * 100% / 6 + 1px);
  width: calc(var(--cols) * 100% / 6 - 2px);
  height: calc(var(--rows) * 100% / 6 - 2px);
  border: 2px solid #b38ce5; border-radius: 5px;
}
.rules-hw-example__frame[data-full="true"] { border-color: #a6e877; }
.rules-hw-example__coefficient {
  position: absolute; right: 1px; top: 1px; padding: 0 3px;
  color: #e3c7ff; background: #22152c; border-radius: 3px;
  font: 900 clamp(10px, 2.8cqw, 14px)/1.3 var(--font);
}
.rules-hw-example__frame[data-full="true"] .rules-hw-example__coefficient { color: #bff2a0; }
.rules-hw-example__caption { margin-top: 10px; font-size: 12px; line-height: 1.5; text-align: center; color: #ddd1b6; }
.rules-art.rules-frames-example { display: flex; flex-wrap: wrap; gap: 18px; }
.rules-frames-example__panel { flex: 1 1 180px; min-width: 0; }
.rules-frames-example__label { margin-bottom: 8px; text-align: center; font-size: 13px; color: #e3c7ff; }
.rules-frames-example__frame {
  position: relative; display: grid; grid-template-columns: repeat(var(--frame-cols), 1fr);
  width: calc(var(--frame-cols) * 100% / 3); aspect-ratio: var(--frame-cols);
  max-width: 300px; margin: auto; gap: 2px; padding: 3px; box-sizing: border-box;
  border: 2px solid #b38ce5; border-radius: 5px; container-type: inline-size;
}
.rules-frames-example__panel[data-full="true"] .rules-frames-example__frame { border-color: #a6e877; }
.rules-frames-example__panel[data-full="true"] .rules-frames-example__label,
.rules-frames-example__panel[data-full="true"] .rules-hw-example__coefficient { color: #bff2a0; }
.rules-frames-example > .rules-hw-example__caption { flex: 1 0 100%; margin-top: 0; }





.intro__skip {
  position: absolute; z-index: 3;
  left: calc(1342.9 * var(--canvas-u)); top: calc(938 * var(--canvas-u));
  width: calc(253.1 * var(--canvas-u)); height: calc(33 * var(--canvas-u));
  display: flex; align-items: center; gap: calc(8 * var(--canvas-u)); cursor: pointer;
  font-size: calc(20 * var(--canvas-u)); font-weight: 700; color: #FBEEBA;
  text-shadow: 0 3px 0 #000; white-space: nowrap;
}
.intro__skip input {
  width: calc(33 * var(--canvas-u)); height: calc(33 * var(--canvas-u)); flex: 0 0 auto;
  appearance: none; margin: 0; cursor: pointer;
  background: rgba(0, 0, 0, 0.5); border: 1.5px solid #C2A17C; border-radius: 0;
}
.intro__skip input:checked { background: #C2A17C; }


























@media (orientation: portrait) {

  .intro__bg { object-position: 67.454068% center; }


  .intro__canvas {
    --intro-u: min(calc(100vw / 360), calc(100dvh / 631));
    --canvas-u: var(--intro-u);
    position: absolute; inset: auto;
    left: calc(50% - 180 * var(--intro-u)); top: calc(50% - 315.5 * var(--intro-u));
    width: calc(360 * var(--intro-u)); height: calc(631 * var(--intro-u));
  }
  .intro__mechanics {
    left: calc(6 * var(--intro-u)); top: calc(109 * var(--intro-u));
    width: calc(339 * var(--intro-u)); height: calc(322 * var(--intro-u));
    grid-template-rows: repeat(3, calc(99 * var(--intro-u))); gap: calc(12.5 * var(--intro-u));
  }
  .intro__mechanic > .intro__mechanic-art {
    left: calc(11 * var(--intro-u)); top: calc(-7 * var(--intro-u));
    width: calc(105 * var(--intro-u)); height: calc(99 * var(--intro-u));
  }
  .intro__mechanic:nth-child(3) > .intro__mechanic-art {
    left: calc(5 * var(--intro-u)); top: calc(-20 * var(--intro-u));
    width: calc(117 * var(--intro-u)); height: calc(115 * var(--intro-u));
  }
  .intro__mechanic-copy { left: 34.81%; top: 4%; width: 61%; }
  .intro__mechanic h2 {
    margin-bottom: calc(9 * var(--intro-u)); font-size: calc(16 * var(--intro-u)); line-height: 1.375;
    -webkit-text-stroke-width: calc(4 * var(--intro-u));
    filter: drop-shadow(0 calc(3 * var(--intro-u)) 0 #000);
  }
  .intro__mechanic p { font-size: calc(13 * var(--intro-u)); line-height: 1.385; text-shadow: 0 calc(2 * var(--intro-u)) 0 #000; }

  .intro__reel {
    left: -3.33%; top: 14.90%; width: 106.67%; height: 53.57%;
  }
  .intro__logo {
    left: 35.56%; top: 2.06%; width: 28.61%; height: 13.95%;
  }



  .intro__maxwin {
    left: 26.39%; top: 67.19%; width: 45.83%; height: 3.49%;
    font-size: calc(16 * var(--intro-u)); white-space: nowrap;
  }














  .intro__maxwin-money {
    left: 5%; top: 70.9%; width: 90%; height: 3.2%;
    font-size: clamp(9px, calc(12 * var(--intro-u)), 20px); white-space: nowrap;
  }



  .intro__spin {
    --intro-spin-size: calc(78 * var(--intro-u));
    left: 12.22%; top: 75.75%;
    width: var(--intro-spin-size); height: var(--intro-spin-size);
    translate: none;
  }
  .intro__vol  { left: 44.17%; top: 74.96%; width: 44.84%; height: 13.95%; }



  .intro__vol-body { gap: 3px; }
  .intro__vol-k {
    font-size: calc(10 * var(--intro-u)); line-height: 1.2; color: #fff;
    -webkit-text-stroke-width: calc(1 * var(--intro-u)); text-shadow: 0 calc(1 * var(--intro-u)) 0 #000;
  }
  .intro__feathers { gap: calc(3 * var(--intro-u)); }
  .intro__feathers img { width: calc(21 * var(--intro-u)); }




  .intro__skip {
    left: 26.39%; top: min(calc(579 * var(--intro-u) - max(0px, (44px - 25 * var(--intro-u)) / 2)), calc(100% - 44px - env(safe-area-inset-bottom))); width: 47.22%; height: 3.96%;
    min-height: 44px;
    gap: calc(7 * var(--intro-u)); font-size: max(12px, calc(13 * var(--intro-u)));
  }


  .intro__skip input { width: calc(25 * var(--intro-u)); height: calc(25 * var(--intro-u)); min-width: 24px; min-height: 24px; }
}




@media (orientation: landscape) and (max-width: 1024px) {
  .intro__canvas {
    --intro-reel-width: min(56vw, calc((100dvh - 72px) * 1006 / 886));
    --intro-reel-height: calc(var(--intro-reel-width) * 886 / 1006);
    --intro-reel-top: calc((100dvh - var(--intro-reel-height) - 44px) / 2);
    --intro-logo-height: clamp(60px, 24dvh, 140px);
    --intro-play-size: clamp(48px, 18dvh, 88px);
    --intro-vol-height: clamp(64px, 24dvh, 110px);
    inset: 0; width: auto; height: auto;
  }
  .intro__reel {
    left: calc(30vw - var(--intro-reel-width) / 2); top: var(--intro-reel-top);
    width: var(--intro-reel-width); height: var(--intro-reel-height);
  }
  .intro__mechanics {
    left: 4%; top: var(--intro-reel-top); width: 52%; height: var(--intro-reel-height);
    --intro-card-art: clamp(40px, 12dvh, 88px); gap: 6px;
  }
  .intro__mechanic { gap: 8px; padding: 6px 10px; }
  .intro__mechanic h2 { margin-bottom: 3px; font-size: clamp(14px, 2vw, 20px); }
  .intro__mechanic p { font-size: clamp(12px, 1.6vw, 16px); line-height: 1.2; }
  .intro__maxwin, .intro__maxwin-money {
    left: 4%; width: 52%; height: 20px; line-height: 1.2;
    text-shadow: 0 1px 0 #000;
  }
  .intro__maxwin {
    top: calc(var(--intro-reel-top) + var(--intro-reel-height) + 2px);
    font-size: clamp(12px, 1.8vw, 18px);
  }
  .intro__maxwin-money {
    top: calc(var(--intro-reel-top) + var(--intro-reel-height) + 22px);
    font-size: clamp(11px, 1.6vw, 16px);
  }
  .intro__col {
    position: absolute; left: 60%; right: 4%;
    top: max(8px, calc(env(safe-area-inset-top) + 8px));
    bottom: max(8px, calc(env(safe-area-inset-bottom) + 8px));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px;
  }
  .intro__col > * { position: relative; inset: auto; flex: 0 0 auto; }
  .intro__logo {
    width: calc(var(--intro-logo-height) * 314 / 271); height: var(--intro-logo-height);
  }
  .intro__spin {
    width: var(--intro-play-size); height: var(--intro-play-size); translate: none;
  }
  .intro__vol {
    width: calc(var(--intro-vol-height) * 372 / 202); height: var(--intro-vol-height);
  }
  .intro__vol-body { inset: 20% 10% 18%; gap: 3px; }
  .intro__vol-k {
    font-size: clamp(12px, 1.4vw, 16px); line-height: 1.1; white-space: nowrap;
    color: #302419; text-shadow: 0 1px 0 #f5e2b8;
  }
  .intro__feathers { gap: calc(var(--intro-vol-height) * 0.04); }
  .intro__feathers img { width: calc(var(--intro-vol-height) * 0.24); }
  .intro__skip {
    width: 100%; height: 44px; min-height: 44px; gap: 8px; justify-content: center;
    font-size: clamp(12px, 1.6vw, 16px); line-height: 1.2; white-space: normal;
    text-shadow: 0 1px 0 #000;
  }
  .intro__skip input { width: 24px; height: 24px; }
  .intro__skip span { min-width: 0; }
}

@media (max-width: 560px), (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .boot__logo { left: 25.28%; top: 28.84%; width: 49.44%; height: 24.25%; }
  .boot__bar  { left: 5.56%;  top: 57.85%; width: 88.91%; height: 8.14%; }
}













.game { position: fixed; inset: 0; display: block; }
.game > .chrome { position: absolute; left: 0; right: 0; bottom: 0; }
.scene { height: 100%; }

.scene {
  position: relative; flex: 1; min-height: 0; overflow: visible;



  display: grid; justify-items: center; align-items: start;
}






.scene__bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.scene__bg:not([src]) { display: none; }


.game[data-phase="bg1"] .scene__sky,
.game[data-phase="bg2"] .scene__sky { display: none; }
.scene__mascot-window { position: absolute; inset: 0; pointer-events: none; }




.game[data-phase="base"] > .scene::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(24, 15, 11, 0) 55%,
    rgba(24, 15, 11, 0.10) 78%, rgba(24, 15, 11, 0.22) 100%);
}






.scene__logo       { z-index: 1; }
.scene__mascot     { z-index: 2; }
#reservoirMeter    { z-index: 3; }
#energyMeter       { z-index: 4; }
#ingredients       { z-index: 5; }
.board-wrap        { z-index: 6; }
#payScroll         { z-index: 7; }


















#bonusTotal        { z-index: 7; }
.chrome            { z-index: 8; }

.scene__mascot {



  position: absolute; pointer-events: none;
  right: 0.5%; bottom: -2%; height: 62%; width: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6));
}
.scene__mascot:not([src]) { display: none; }

.scene__logo {
  position: absolute; pointer-events: none;
  right: 1.5%; top: 2%; width: min(160px, 14vw); height: auto;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.7));
}
.scene__logo:not([src]) { display: none; }

















.board-wrap { position: absolute; inset: 0; display: grid;
              justify-items: center; align-items: start; }







.board-fit {
  position: relative;

  width: 1094px;
  height: 963px;
}

.board {
  position: absolute; left: 0; top: 0;
  width: 1094px;
  height: 963px;
  transform-origin: top left;

}

.board__part { position: absolute; pointer-events: none; }
.board__part:not([src]) { display: none; }

.board__part--base    { left: 80px;  top: 0;     width: 934px; height: 933px; z-index: 0; }
.board__part--bar     { left: 134.5px; top: 46px; width: 825.75px; height: 55.5px; z-index: 2; }
.board__part--branch  { left: 908px; top: 0;     width: 186px; height: 469px; z-index: 3; }
.board__part--herbs   { left: 0;     top: 36px;  width: 146px; height: 449px; z-index: 3; }
.board__part--skull   { left: 24px;  top: 27px;  width: 102px; height: 181px; z-index: 4; }
.board__part--eye     { left: 64.5px; top: 59.5px; width: 40.5px; height: 42.75px; z-index: 5;
                        animation: eyeGlow 3.4s ease-in-out infinite; }
.board__part--candles { left: 21px;  top: 766px; width: 320px; height: 197px; z-index: 4; }







.board__waiting {
  position: absolute; left: 547px; top: 494px; z-index: 7;
  transform: translate(-50%, -50%);
  min-width: 440px; max-width: 740px; padding: 18px 28px;
  border: 2px solid rgba(218, 172, 96, 0.82); border-radius: 14px;
  background: rgba(28, 19, 27, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.52), inset 0 1px rgba(255, 240, 193, 0.16);
  color: #fff0c4; font-size: 38px; font-weight: 800; line-height: 1.2;
  text-align: center; white-space: nowrap; pointer-events: none;
}

@keyframes eyeGlow { 50% { opacity: 0.45; } }


















.board__clock {
  position: absolute; left: 397px; top: 55px; width: 300px;
  z-index: 7; font-size: 24px; line-height: 33px; text-align: center;
  font-weight: 900; font-variant-numeric: tabular-nums;
  background: linear-gradient(#ead577 41.58%, #a0682b 73.53%, #ead577 83.97%);
  background-clip: text; -webkit-background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #000);
}


.board__cells {
  position: absolute; left: 137px; top: 105px; width: 820px; height: 778px;



  z-index: 6;


  clip-path: var(--board-cell-clip, inset(0));
  display: grid;



















  grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows, 6), minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 5.6px;
}

.cell {
  position: relative; display: grid; place-items: center;






















  grid-template: 100% / 100%;
}




.cell__img { width: 100%; height: 100%; object-fit: contain; }















.cell--back .cell__img { animation: cellBack var(--gone, 160ms) ease-out; }
@keyframes cellBack {
  from { opacity: 0; transform: scale(0.45) rotate(-8deg); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cell--back .cell__img { animation: none; }
}









.cells--gpu .cell__img { visibility: hidden; }












.cell--solo .cell__img { opacity: 0; transition: opacity 140ms linear; }


.board__cells[data-bonus="1"] .cell--solo .cell__img,
.board__cells.cells--authored-book-trigger .cell--solo .cell__img { transition: none; }


.cell--special .cell__img { width: 100%; height: 100%; }



.cell--special { --k0: 1; --kh0: 1; }
.board__cells[data-bonus="1"] .cell--special { --k0: 1; --kh0: 1; }
.cell--special.cell--grow .cell__img {
  animation: specialGrow 140ms cubic-bezier(0.22, 0.90, 0.24, 1) both;
}
@keyframes specialGrow {
  from { transform: scale(var(--k0, 1), var(--kh0, 1)); }
  to   { transform: scale(1, 1); }
}























































.cell--special:not(.cell--win):not(.cell--grow):not(.cell--fall):not(.cell--out):not(.cell--gone):not(.cell--solo) .cell__img[src*="/sc."] {
  animation: scatterIdle 3.7s ease-in-out infinite;
}


















.cell--special:not(.cell--win):not(.cell--grow):not(.cell--fall):not(.cell--sticky):not(.cell--out):not(.cell--gone):not(.cell--solo):not(.cell--book-preview) .cell__img[src*="/bs."] {
  animation: bookIdle 4.3s ease-in-out infinite;
}










@keyframes scatterIdle {
  0%, 100% { transform: rotate(0deg) scale(1);
             filter: drop-shadow(0 0 6px rgba(255, 196, 84, 0.3)); }
  25%      { transform: rotate(-.5deg) scale(1.004);
             filter: drop-shadow(0 0 10px rgba(255, 202, 96, 0.5)); }
  62%      { transform: rotate(.5deg) scale(1.008);
             filter: drop-shadow(0 0 14px rgba(255, 208, 110, 0.72)); }
}
@keyframes bookIdle {
  0%, 100% { transform: rotate(0deg) translateY(0);
             filter: drop-shadow(0 0 6px rgba(126, 214, 255, 0.28)); }
  25%      { transform: rotate(-1.8deg) translateY(-1px);
             filter: drop-shadow(0 0 10px rgba(138, 220, 255, 0.48)); }
  62%      { transform: rotate(1.8deg) translateY(-3px);
             filter: drop-shadow(0 0 15px rgba(150, 226, 255, 0.7)); }
}





















.board__cells[data-bonus="1"] .cell--special .cell__img { width: 100%; height: 100%; }
































.cell__img:not([src]) { display: none; }

.cell { overflow: visible; }
.cell--special { z-index: 2; }
.cell__name {
  position: absolute; font-size: 13px; font-weight: 700; color: var(--ink);
  text-shadow: 0 1px 3px #000;
}































.cell--yield .cell__img { animation: cellYield 360ms cubic-bezier(0.25, 0.9, 0.3, 1); }






.cells--snap { animation: cellsSnapIn 220ms cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes cellsSnapIn {
  0%   { opacity: 0.35; transform: scale(0.985); filter: brightness(1.5); }
  100% { opacity: 1;    transform: scale(1);     filter: none; }
}
@keyframes cellYield {
  0%   { filter: none; transform: scale(1); }
  22%  { filter: brightness(1.75) drop-shadow(0 0 12px rgba(150, 245, 175, 0.95));
         transform: scale(1.09); }
  100% { filter: none; transform: scale(1); }
}

.cell--gone .cell__img {
  opacity: 0; transform: scale(0.45) rotate(-8deg);
  transition: opacity var(--gone, 160ms) ease-in,
              transform var(--gone, 160ms) cubic-bezier(0.5, -0.4, 0.7, 0.2);
  transition-delay: var(--gone-delay, 0ms);
}












.cell--shudder .cell__img { animation: cellShudder var(--shudder, 160ms) ease-in-out; }
@keyframes cellShudder {
  0%, 100% { transform: translateY(0); }
  32%      { transform: translateY(3.2%); }
  68%      { transform: translateY(-1.4%); }
}
@media (prefers-reduced-motion: reduce) {
  .cell--shudder .cell__img { animation: none; }
}



















































.cell--fall .cell__img {


  transition-property: filter;
  animation: cellFall var(--fall-dur, 300ms) var(--fall-ease, cubic-bezier(0.4, 0, 0.35, 1))
             var(--fall-delay, 0ms) backwards;
}
.cell--fall {
  animation: cellLand var(--land-dur, 260ms) cubic-bezier(0.175, 0.885, 0.32, 1.275)
             calc(var(--fall-delay, 0ms) + var(--fall-dur, 300ms)) backwards;
}
@keyframes cellFall {
  from { transform: translate(var(--fall-x, 0px), var(--fall, -130px)) scale(var(--fall-scale, 1)); }
  to   { transform: translate(0, 0) scale(1); }
}















@keyframes cellLand {
  0%   { transform: scale(1, 1); }
  25%  { transform: scale(1.05, 0.95); }
  100% { transform: scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .cell--fall .cell__img, .cell--fall { animation: none; }
}














.cell--sticky .cell__img { animation: stickyGlow 2.1s ease-in-out infinite; }

.board__cells[data-bonus="1"] .cell--sticky { z-index: 3; }
@keyframes stickyGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(226,190,108,0.35)); }
  50%      { filter: drop-shadow(0 0 12px rgba(226,190,108,0.95)); }
}






.cells--dimmed .cell--sticky:not(.cell--win) .cell__img { animation: none; }





















.cell__nominal {
  --nom-x: -50%;
  --nom-s: 1;





  --nom-fg-base: #201408;
  position: absolute; bottom: 6%; left: 50%;
  transform: translateX(var(--nom-x)) scale(var(--nom-s));
  z-index: 2; font-size: calc(13px * var(--nom-fit, 1)); font-weight: 700;
  color: var(--nom-fg, var(--nom-fg-base));
  background: linear-gradient(var(--gold-hot), var(--gold));
  border-radius: 4px; padding: 0 6px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
























































































.board__cells[data-bonus="1"] .cell__nominal,
.board__cells .cell__nominal--preview {



  --nom-x: 0%;
  --nom-fg-base: var(--gold-hot);
  left: 11%; right: 11%; width: auto;
  bottom: 19.5%; height: 19.5%; padding: 0;
  display: grid; place-items: center;
  border-radius: 3px;
  background: linear-gradient(#33220f, #1a1109);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.85);
  font-weight: 900;



  font-size: calc(max(15px, calc(10px / var(--board-scale, 1))) * var(--nom-fit, 1));
  line-height: 1; letter-spacing: -0.01em;
  text-shadow: 0 1px 0 #000;
}




@media (orientation: landscape) and (max-height: 500px) {
  .board__cells[data-bonus="1"] .cell__nominal,
.board__cells .cell__nominal--preview {
    left: 3%; right: 3%;
    height: max(20%, calc(12px / var(--board-scale, 1)));
    font-size: calc(max(15px, calc(10px / var(--board-scale, 1))) * var(--nom-fit, 1));
    line-height: 1;
  }
}


































.cell--out .cell__img,
.cell--out .cell__name:not(:empty) {
  animation: cellOut var(--out-dur, 260ms) cubic-bezier(0.5, 0, 0.85, 0.4)
             var(--out-delay, 0ms) both;
}
@keyframes cellOut {
  0%   { transform: translateY(0);      opacity: 1; }
  12%  { transform: translateY(-9px);   opacity: 1; }
  62%  {                                opacity: 1; }
  100% { transform: translateY(430px);  opacity: 0; }
}















.cell--pending::after {
  content: ''; position: absolute; inset: 6%;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 50%,
              rgba(150, 255, 195, 0.13), rgba(150, 255, 195, 0.02) 62%, rgba(0, 0, 0, 0));
  box-shadow: inset 0 0 14px rgba(150, 255, 195, 0.10);
  animation: gnezdo 2.2s ease-in-out infinite;









  pointer-events: none;
}








@keyframes gnezdo { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }









.cells--slow .cell--pending::after { animation-duration: 0.9s; }






.cell--fall.cell--pending::after { animation: none; opacity: 0.3; }



.cell--awaited::after {
  content: ''; position: absolute; inset: 4%;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 50%,
              rgba(237, 183, 21, 0.42), rgba(237, 183, 21, 0.10) 60%, rgba(0, 0, 0, 0));
  box-shadow: inset 0 0 20px rgba(237, 183, 21, 0.28);
  animation: gnezdo 0.42s ease-in-out infinite;
  pointer-events: none;
}














.board__cells[data-bonus="1"] .cell--pending::after {
  background: radial-gradient(ellipse at 50% 50%,
              rgba(150, 255, 195, 0.30), rgba(150, 255, 195, 0.07) 62%, rgba(0, 0, 0, 0));
  box-shadow: inset 0 0 0 1.5px rgba(150, 255, 195, 0.38), inset 0 0 18px rgba(150, 255, 195, 0.22);
}
.board__cells[data-bonus="1"] .cell--awaited::after {
  background: radial-gradient(ellipse at 50% 50%,
              rgba(255, 205, 60, 0.62), rgba(237, 183, 21, 0.16) 60%, rgba(0, 0, 0, 0));
  box-shadow: inset 0 0 0 2px rgba(255, 214, 92, 0.75), inset 0 0 26px rgba(237, 183, 21, 0.45);
}






























.cell--hushed .cell__img { filter: brightness(0.42) saturate(0.55); }

.cells--tease .cell--pending::after {
  background: radial-gradient(ellipse at 50% 50%,
              rgba(237, 183, 21, 0.38), rgba(237, 183, 21, 0.08) 62%, rgba(0, 0, 0, 0));
  animation: gnezdo 0.62s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {


  .cell--pending::after,
  .cells--tease .cell--pending::after,
  .cell--awaited::after { animation: none; opacity: 0.85; }
  .cell--out .cell__img, .cell--out .cell__name { animation: none; opacity: 0; }
}
































.cell--veiled .cell__img,
.cell--veiled .cell__name { visibility: hidden; }











.cell--blank::before {
  content: ''; position: absolute; inset: 9%;
  border-radius: 10%;
  background: linear-gradient(180deg, rgba(28, 18, 34, 0.55), rgba(16, 10, 20, 0.68));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.cell--blank { position: relative; }



.game[data-phase="bg2"][data-hw-cue="last"] .board__cells[data-bonus="1"] .cell--blank:not(.cell--sticky)::before {
  box-shadow: inset 0 0 0 1px rgba(150, 255, 195, 0.32), inset 0 0 14px rgba(150, 255, 195, 0.16);
}
































.board__overlay {











  position: absolute; inset: 0; z-index: 7; pointer-events: none;
  display: grid; place-items: center;
}

.board__overlay::before {
  content: ""; position: absolute; inset: 68px 95px 58px; z-index: 0;
  pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, rgba(8,4,12,.42) 0%, rgba(8,4,12,.42) 58%, rgba(8,4,12,.25) 78%, rgba(8,4,12,0) 100%);
  transition: opacity 140ms ease-out;
}
.board__overlay:has(> .win-amount--total:not(.win-amount--out))::before {
  opacity: 1; transition-duration: 180ms;
}
@media (prefers-reduced-motion: reduce) {
  .board__overlay::before { transition: none; }
}











.board-note {
  position: relative; z-index: 5;
  padding: 10px 22px; border-radius: 10px;
  background: rgba(12, 8, 16, 0.9); border: 1px solid var(--panel-edge);
  font-size: max(20px, calc(11px / var(--board-scale, 1))); letter-spacing: 0.06em; text-align: center;
  animation: cardChildIn 0.3s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .board-note { animation: none; }
}
.board-note--big { font-size: 44px; line-height: 1.15; max-width: 88%; color: var(--gold-hot); }
.board__overlay:has(.win-amount) > .board-note:not(.board-note--big):not(.board-note--solo):not(.board-note--feature) {
  align-self: start; margin-top: 7%;
}

.board-note--feature {
  position: absolute; left: 137px; bottom: calc(100% - 100px); width: 820px;
  box-sizing: border-box; margin: 0; padding: 3px 10px;
  border-radius: 6px; color: var(--gold-hot); background: rgba(19, 12, 21, 0.94);
  font-size: max(30px, calc(14px / var(--board-scale, 1)));
  line-height: 1.08; font-weight: 800; letter-spacing: 0.015em; white-space: nowrap;
  animation: featureReceiptIn 180ms ease-out both;
}
@keyframes featureReceiptIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .board-note--feature { animation: none; }
}











.board-note--solo {
  background: none; border-color: transparent; padding: 0;
  font-size: 52px; font-weight: 800;
  text-shadow: 0 0 18px rgba(255, 214, 120, 0.55), 0 2px 0 rgba(0, 0, 0, 0.5);
}












.fly--text {
  display: grid; place-items: center;





  font-size: 34px;
  font-weight: 800; line-height: 1;
  color: var(--gold-hot); white-space: nowrap;
  text-shadow: 0 0 18px rgba(255, 214, 120, 0.55), 0 2px 0 rgba(0, 0, 0, 0.5);
}











.frame-box {
  position: absolute; pointer-events: none; box-sizing: border-box;
}
.frame-box::before {
  content: ''; position: absolute; inset: 0; z-index: 1; box-sizing: border-box;


  border: clamp(3px, calc(2.5px / var(--board-scale, 1)), 9px) solid var(--zone, #71D246);
  background: transparent; clip-path: inset(0);
  transition: opacity 120ms ease-out;
}
.frame-box--authored::before {
  border: 0;
  background: var(--zone, #71D246);
  -webkit-mask: var(--zone-mask) center / 100% 100% no-repeat;
  mask: var(--zone-mask) center / 100% 100% no-repeat;
  mask-mode: alpha;
}
.frame-box[data-hue="0"], [data-frame-hue="0"] { --zone: #71D246; }
.frame-box[data-hue="1"], [data-frame-hue="1"] { --zone: #8D66E8; }
.frame-box[data-hue="2"], [data-frame-hue="2"] { --zone: #E8669A; }
.frame-box[data-hue="3"], [data-frame-hue="3"] { --zone: #66E8BA; }
.frame-box[data-hue="4"], [data-frame-hue="4"] { --zone: #669EE8; }
.frame-box--inactive::before { --zone-opacity: 0.38; opacity: 0.38; }
.frame-box--inactive .frame-box__coeff { opacity: 0.65; }







.frame-box--just::before { animation: frameFill 720ms ease-out both; }
@keyframes frameFill {
  0%   { opacity: calc(var(--zone-opacity, 1) * 0.65); }
  35%  { opacity: var(--zone-opacity, 1); }
  100% { opacity: var(--zone-opacity, 1); }
}






.cell__nominal--boosted {
  --nom-fg: #FFD166;
  --nom-s: 1.12;
  font-weight: 900;
}



.cell__nominal--just { animation: nominalBoost 0.42s cubic-bezier(0.3, 1.5, 0.5, 1); }

.cell__nominal-arrival { display: inline-block; animation: nominalArrival 360ms ease-out; }
@keyframes nominalArrival {
  0% { transform: translateY(0); }
  45% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
@keyframes nominalBoost {
  0%   { transform: translateX(var(--nom-x)) scale(1.12); }
  35%  { transform: translateX(var(--nom-x)) scale(1.12); filter: brightness(1.3); }
  100% { transform: translateX(var(--nom-x)) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .frame-box--just::before { animation: none; }
  .cell__nominal--just { animation: none; }
  .cell__nominal-arrival { animation: none; }
  .cell__nominal--boosted { --nom-s: 1; }
}

.frame-box__coeff {
  position: absolute; z-index: 3; top: 5px; right: 5px;
  padding: 0; border: 0; background: none; color: var(--zone);
  -webkit-text-stroke: .1875em #000; paint-order: stroke fill;

  font-size: max(32px, calc(11px / var(--board-scale, 1)));
  line-height: 1.375; font-weight: 900; white-space: nowrap; text-shadow: 0 .09375em 0 #000;
  transition: opacity 120ms ease-out;
}

.cell__nominal[data-frame-focus="1"],
.book-nominal-cover[data-frame-focus="1"] {
  outline: 2px solid var(--zone, #FFD166); outline-offset: 1px;
}



.meter { position: absolute; z-index: 2; display: grid; place-items: center; }
.meter__help {
  position: absolute; z-index: 9; inset: 0;
  min-width: 44px; min-height: 44px;
  padding: 0; border: 0; border-radius: 50%; appearance: none;
  background: transparent; cursor: pointer; touch-action: manipulation;
}
.meter__help::after {
  content: '?'; position: absolute; right: 0; bottom: 0;
  display: grid; place-items: center; width: 20px; height: 20px;
  border: 1px solid #bd9d5c; border-radius: 50%;
  background: #21191a; color: #ffe5a3; font: 700 14px/1 var(--font);
  box-shadow: 0 1px 4px #0009;
}
@media (hover: hover) and (pointer: fine) {
  .meter__help:hover:not(:disabled)::after { background: #493723; }
}
.meter__help:active:not(:disabled)::after { background: #6b4c28; }
.meter__help:disabled { cursor: default; }
.meter--energy .meter__help::after { top: 0; bottom: auto; }

.meter--reservoir .meter__help { inset: 43% auto auto 21%; width: 58%; height: 31%; border-radius: 14px; }
.meter--reservoir .meter__help::after { top: 0; bottom: auto; right: 0; }



@media (orientation: landscape) and (max-height: 500px) {
  .scene:has(> #ingredients[data-off="1"]) #reservoirMeter:not([data-plaque="1"]) .meter__help {
    top: calc(65.6% - 14px); right: auto; bottom: auto; left: 34%;
    width: 44px; height: 44px;
  }
  .scene:has(> #ingredients[data-off="1"]) #reservoirMeter:not([data-plaque="1"]) .meter__help::after {
    top: auto; right: auto; bottom: 0; left: 0;
  }
}




@media (orientation: landscape) and (min-width: 761px) and (min-height: 501px) {
  .scene:has(> #ingredients[data-off="1"]) #reservoirMeter:not([data-plaque="1"]) .meter__help {
    top: calc(65.6% + 2px); right: auto; bottom: auto; left: 34%;
    width: 44px; height: 44px;
  }
  .scene:has(> #ingredients[data-off="1"]) #reservoirMeter:not([data-plaque="1"]) .meter__help::after {
    top: auto; right: auto; bottom: 0; left: 0;
  }
}


@media (orientation: landscape) and (min-width: 761px) and (min-height: 501px) and (max-height: 600px) {
  .scene:has(> #ingredients[data-off="1"]) #reservoirMeter:not([data-plaque="1"]) .meter__help {
    left: 100%; top: 55%;
  }
}
.meter--energy { left: 2%; top: 8%; width: min(150px, 13vw); }
.meter--reservoir { right: 13%; bottom: 4%; width: min(160px, 14vw); }

































.meter--reservoir { container-type: inline-size; }


















.meter--reservoir .meter__value {
  position: absolute; left: 48.32%; top: 65.6%;
  transform: translate(-50%, -50%);
  z-index: 3; white-space: nowrap;





  font-size: max(13px, 11cqw); font-weight: 900;
  color: #EAD577; font-variant-numeric: tabular-nums;
  text-shadow:
    0 0 2px #200303, 0 2px 0 #200303, 2px 0 0 #200303,
    -2px 0 0 #200303, 0 -2px 0 #200303;
}
.meter__art { width: 100%; height: auto; }
.meter__art:not([src]) { display: none; }



















.meter--energy.is-tick { animation: sealTick 0.52s cubic-bezier(0.3, 1.1, 0.5, 1); }




















@keyframes sealTick {
  0%   { transform: scale(1);     filter: none; }
  30%  { transform: scale(1.035); filter: brightness(1.22) drop-shadow(0 0 9px rgba(107, 255, 168, 0.5)); }
  100% { transform: scale(1);     filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .meter--energy.is-tick { animation: none; }
}
.meter__ring { display: none; }















.meter--reservoir[data-ingredients="1"] .meter__value {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}















.scene:has(> .ingredients[data-short="1"]) .meter--reservoir[data-ingredients="1"] .meter__value {
  position: absolute; width: auto; height: auto; overflow: visible;
  clip-path: none;
}


















.meter--reservoir[data-ingredients="1"]:not(.meter--empty) .meter__value {


  position: absolute; width: auto; height: auto; overflow: visible;
  clip-path: none;
}
















.scene:has(> .ingredients[data-off="1"]) .meter--reservoir[data-ingredients="1"] .meter__value {
  position: absolute; width: auto; height: auto; overflow: visible;
  clip-path: none;
}




.ingredients { transition: opacity 220ms ease; }
.ingredients--held { visibility: hidden; pointer-events: none; }











.ingredients.is-swap { animation: setSwap 420ms ease-out; }
.meter--reservoir.is-swap .meter__value { animation: setSwap 420ms ease-out; }
@keyframes setSwap {
  0%   { opacity: 1;    transform: translateY(0);     filter: blur(0); }
  38%  { opacity: 0;    transform: translateY(-6px);  filter: blur(3px); }
  39%  { opacity: 0;    transform: translateY(7px);   filter: blur(3px); }
  100% { opacity: 1;    transform: translateY(0);     filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ingredients { transition: none; }
}



.chrome {
  position: relative; flex: 0 0 auto;
  min-height: var(--chrome-h);


  padding: 10px max(var(--edge-money), env(safe-area-inset-right))
           calc(var(--edge-money) + env(safe-area-inset-bottom))
           max(var(--edge-money), env(safe-area-inset-left));









  background: none;
}







.chrome__row::before {
  content: ''; position: absolute; z-index: -1; inset: 0;






















  background: rgba(7, 7, 7, 0.82);
  -webkit-mask: url('../assets/ui/bet-panel-chassis-desktop.svg') center / 100% 100% no-repeat,
                url('../assets/ui/bet-panel-chassis-desktop.svg') center / 100% 100% no-repeat;
  mask: url('../assets/ui/bet-panel-chassis-desktop.svg') center / 100% 100% no-repeat,
        url('../assets/ui/bet-panel-chassis-desktop.svg') center / 100% 100% no-repeat;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}











.chrome__row {
  height: 100%; display: flex; align-items: center; justify-content: center;
  gap: clamp(10px, 1.9vw, 30px);
  width: var(--panel-w); max-width: 100%; margin: 0 auto; padding: 0 1.6%;
}













@media (min-width: 761px) and (orientation: landscape), (orientation: landscape) and (max-height: 500px) {




  .chrome {
    min-height: 0;
    padding: 0 0 calc(14 * var(--panel-u) + env(safe-area-inset-bottom));
  }
  .chrome__row {
    position: relative; display: block;
    width: var(--panel-w); aspect-ratio: 1369 / 148;






    height: auto;
    margin: 0 auto; padding: 0;
  }
}



@media (min-width: 761px) and (orientation: landscape), (orientation: landscape) and (max-height: 500px) {
  .panel--entries, .panel--data, .panel--action { display: contents; }












  .chrome__row .side-btns--left,
  .chrome__row .buy-btn,
  .chrome__row #btnMenu,
  .chrome__row .stat,
  .chrome__row .stake-group,
  .chrome__row #btnSpin,
  .chrome__row .side-btns:not(.side-btns--left),
  .chrome__row #segs,
  .chrome__row .ante { position: absolute; transform: none; }







  .chrome__row .side-btns--left { display: contents; }





  .chrome__row .side-btns .icon-btn {
    position: absolute; width: 4.09%; height: auto; aspect-ratio: 1;
    padding: calc(12 * var(--panel-u));
  }
  .chrome__row #btnSound { left: 0.66%; top: 8.78%; }






















  .chrome__row #btnInfo {
    left: 0.73%; top: 54.73%;
    padding: calc(7.31 * var(--panel-u)) calc(12 * var(--panel-u)) calc(12.69 * var(--panel-u));
  }





  .chrome__row .buy-btn { left: 4.82%; top: 2.70%; width: 10.66%; height: auto; aspect-ratio: 1; margin: 0; }



  .chrome__row #btnMenu {
    left: 15.56%; top: 39.19%; width: 3.07%; height: 26.35%;
    background: none; padding: 0; border-radius: 0;
  }


  .chrome__row .stat--inline { left: 20.09%; top: 38.51%; width: 23.74%; height: 27.03%; }


  .chrome__row .stat--win {
    left: 44.85%; top: 19.59%; width: 18.77%; height: 45.95%;
  }


  .chrome__row .stat--win .stat__v {
    width: 100%; min-width: 0; margin-top: auto; height: 58.8%;
    display: grid; place-items: center;
  }











  .chrome__row .stake-group {
    left: 64.94%; top: 19.59%; width: 16.51%; height: 45.95%;
    position: absolute; display: block;
  }

  .chrome__row .stake-group .stake {
    position: absolute; left: 0; top: 0; width: 76.11%; height: 100%;
    display: flex; flex-direction: column; align-items: center;
    min-width: 0; min-height: 0; padding: 0; background: none; border: 0;
  }







  .chrome__row .stake-group .stake__v {
    width: 100%; min-width: 0; margin-top: auto; height: 58.82%;
    display: grid; place-items: center;
    background: #111; border-radius: calc(10 * var(--panel-u));
    transition: background 0.15s;
  }


  @media (hover: hover) and (pointer: fine) {
    .chrome__row .stake-group .stake:hover:not([disabled]) { background: none; }
    .chrome__row .stake-group .stake:hover:not([disabled]) .stake__v { background: #1e1e1e; }
  }

  .chrome__row .stake-group .step-btn {
    position: absolute; left: 82.30%; width: 17.61%; height: auto; aspect-ratio: 1;










    padding: 0; background: #111; border: 0; border-radius: 50%;
  }
  .chrome__row .stake-group .step-btn svg { width: 100%; height: 100%; }
  .chrome__row #betUp   { top: 8.82%; }
  .chrome__row #betDown { top: 73.53%; }
  .chrome__row .step-btn__chev { display: inline; }
  .chrome__row .step-btn__pm { display: none; }





















  .chrome__row .ante {
    left: 20.09%; top: 2.7%; width: 23.74%; height: 25%;
    min-height: 0; padding: 0 calc(10 * var(--panel-u));


    grid-template-columns: minmax(0, 1fr) auto max-content;
    grid-template-rows: minmax(0, 1fr); justify-content: center; gap: 0 6%;
  }














  @media (pointer: coarse) {





















    .chrome__row #btnMenu::after {
      content: ''; position: absolute; left: 0; top: 50%;
      width: max(var(--hit-min), 100%); height: max(var(--hit-min), 100%);
      transform: translateY(-50%);
    }
    .chrome__row .side-btns .icon-btn::after {
      content: ''; position: absolute; left: 50%; top: 50%;
      width: max(var(--hit-min), 100%); height: max(var(--hit-min), 100%);
      transform: translate(-50%, -50%);
    }




























    .chrome__row #btnSound::after { top: auto; bottom: 0; left: auto; right: 0; transform: none; }
    .chrome__row #btnInfo::after  { top: 0; bottom: auto; left: auto; right: 0; transform: none; }
    .chrome__row #btnAuto::after  { top: auto; bottom: 0; left: 0; right: auto; transform: none; }
    .chrome__row #btnTurbo::after { top: 0; bottom: auto; left: 0; right: auto; transform: none; }






























    .chrome__row .stake-group .step-btn::after {
      content: ''; position: absolute; left: 50%;
      width: calc(100% + 16px); height: max(var(--hit-min), 100%);
      transform: translateX(-50%);
    }




    .chrome__row .ante::after {
      content: ''; position: absolute; left: 0; top: 50%;
      width: 100%; height: max(var(--hit-min), 100%);
      transform: translateY(-50%);
    }








    .chrome__row .stake::after {
      content: ''; position: absolute; left: 0; top: 50%;
      width: 100%; height: max(var(--hit-min), 100%);
      transform: translateY(-50%);
    }
    .chrome__row #betUp::after   { bottom: 0; }
    .chrome__row #betDown::after { top: 0; }
  }

  @media (pointer: fine) {
    .chrome__row .side-btns .icon-btn::after {
      content: ''; position: absolute;
      width: max(44px, 100%); height: max(44px, 100%);
      transform: none;
    }
    .chrome__row #btnSound::after { top: auto; bottom: 0; left: auto; right: 0; }
    .chrome__row #btnInfo::after { top: 0; bottom: auto; left: auto; right: 0; }
    .chrome__row #btnAuto::after { top: auto; bottom: 0; left: 0; right: auto; }
    .chrome__row #btnTurbo::after { top: 0; bottom: auto; left: 0; right: auto; }
    .chrome__row .stake::after, .chrome__row .ante::after {
      content: ''; position: absolute; left: 0; top: 50%;
      width: 100%; height: max(44px, 100%); transform: translateY(-50%);
    }
    .chrome__row #btnMenu::after {
      content: ''; position: absolute; left: 0; top: 0;
      width: max(44px, 100%); height: max(44px, 100%); transform: none;
    }
    .chrome__row #btnMenu { z-index: 1; }


    .chrome__row :is(#betUp, #betDown)::after {
      content: ''; position: absolute;
      --bet-hit-w: min(max(44px, 100%), calc(81.9 * var(--panel-u) + var(--bet-hit-extra, 0px) - 2px));
      width: var(--bet-hit-w); height: max(44px, 100%);
      left: clamp(calc(-14 * var(--panel-u) + 1px),
        calc((100% - var(--bet-hit-w)) / 2),
        calc(67.9 * var(--panel-u) + var(--bet-hit-extra, 0px) - 1px - var(--bet-hit-w)));
      transform: none;
    }
    .chrome__row #betUp::after { top: auto; bottom: 0; }
    .chrome__row #betDown::after { top: 0; bottom: auto; }
  }







  .chrome__row .ante__k {
    grid-row: auto; min-width: 0; max-width: none;
    font-size: max(8px, calc(15 * var(--panel-u)));
    line-height: 1.05;
  }
  .chrome__row .ante__track {
    width: calc(40 * var(--panel-u)); height: calc(20 * var(--panel-u));
  }
  .chrome__row .ante__knob {
    top: calc(2 * var(--panel-u)); left: calc(2 * var(--panel-u));
    width: calc(14 * var(--panel-u)); height: calc(14 * var(--panel-u));
  }
  .chrome__row .ante[aria-pressed="true"] .ante__knob {
    transform: translateX(calc(20 * var(--panel-u)));
  }
  .chrome__row .ante__v { font-size: clamp(10px, 0.7vw, 12px); white-space: nowrap; }





















  .chrome__row .stat__k, .chrome__row .stake__k {
    font-size: max(9px, calc(18 * var(--panel-u)));
    line-height: calc(25 * var(--panel-u));
    letter-spacing: 0;
  }

  .chrome__row .stat--inline .stat__k { font-size: max(9px, calc(20 * var(--panel-u))); }
  .chrome__row .stat__v, .chrome__row .stake__v {








    font-size: max(11px, calc(20 * var(--panel-u)));
    line-height: calc(27 * var(--panel-u));
    padding: 0; min-width: 0;
  }





  .chrome__row .stat--inline .stat__k {
    position: absolute; left: 8.31%; width: 32.00%; margin: 0; text-align: left;
  }
  .chrome__row .stat--inline .stat__v {
    position: absolute; left: 32.62%; width: 67.38%; margin: 0; text-align: center;
  }








  .chrome__row #statMid {
    left: 52.23%; top: 38.51%; width: 25.27%; height: 27.03%;
    display: flex; align-items: center; justify-content: flex-start;
  }
  .chrome__row #statMid .stat__k {
    position: absolute; left: 4.62%; width: 42.49%; margin: 0; text-align: left;
    top: 50%; transform: translateY(-50%);
  }
  .chrome__row #statMid .stat__v {
    position: absolute; left: 47.11%; right: 0; width: auto; height: auto;
    top: 50%; transform: translateY(-50%);
    margin: 0; text-align: center; background: none; padding: 0;
  }







  .chrome__row #segs {
    left: 54.64%; top: 31.08%; width: 20.45%; height: 47.30%;
    display: grid; justify-items: center; align-content: start; gap: 0;

    grid-template-columns: minmax(0, 1fr);
  }












  .chrome__row .segs__row {
    display: flex; justify-content: space-between; width: 100%; min-width: 0; gap: 0;
  }
  .chrome__row .seg {
    flex: 1 1 0; min-width: 0; margin-inline: 1.4%;
    height: calc(33 * var(--panel-u));
  }
  .chrome__row .seg:first-child { margin-left: 0; }
  .chrome__row .seg:last-child { margin-right: 0; }
  .chrome__row .segs__label {
    margin-top: calc(4 * var(--panel-u));
    font-size: calc(20 * var(--panel-u)); line-height: calc(25 * var(--panel-u));
  }


  .chrome__row #btnSpin { left: 83.49%; top: 4.73%; width: 9.93%; height: auto; aspect-ratio: 1; }



  .chrome__row .side-btns:not(.side-btns--left) { display: contents; }
  .chrome__row #btnAuto  { left: 93.86%; top: 6.76%; }









  .chrome__row #btnTurbo { left: 93.86%; top: 56.08%; padding: 0; }
}

.panel { display: flex; align-items: center; gap: var(--gap); }
.panel--entries { flex: 0 0 auto; gap: clamp(8px, 1.2vw, 20px); }
.panel--data { flex: 0 0 auto; justify-content: center; gap: clamp(10px, 1.4vw, 24px); min-width: 0; }
.panel--action { flex: 0 0 auto; gap: clamp(12px, 1.4vw, 24px); }


















.stat--empty .stat__v { opacity: 0.62; }











.stat {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 0; min-width: 0;
}
.stat__k {
  font-size: 11px; letter-spacing: 0; color: #fff; white-space: nowrap;
  font-weight: 900;
}
.stat__v {
  display: block; padding: 6px 14px; min-width: 96px;
  background: #111; border-radius: 10px;
  font-size: 17px; font-weight: 900; color: #fff;
  font-variant-numeric: tabular-nums; white-space: nowrap; text-align: center;
}



.stat__money-text { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.stat--hot .stat__v { color: var(--gold-hot); }





.icon-btn {
  width: var(--hit-min); height: var(--hit-min); flex: 0 0 auto;
  display: grid; place-items: center; padding: 10px;
  background: #111; border: none; border-radius: 50%;
  transition: background 125ms ease, transform 125ms ease, scale 125ms ease;
}
.icon-btn--sm { width: var(--hit-min); height: var(--hit-min); padding: 11px; }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { background: #232323; }
}
.icon-btn:active { transform: scale(0.93); }
.icon-btn__glyph { font-size: 20px; font-style: italic; font-weight: 700; }















#btnSound .sound-mute-slash { display: none; fill: none; stroke-linecap: round; }
#btnSound[aria-pressed="false"] .sound-mute-slash { display: block; }
#btnSound .sound-mute-slash--outline { stroke: #111; stroke-width: 5.4; }
#btnSound .sound-mute-slash--line { stroke: #f6dfab; stroke-width: 2.7; }
#btnTurbo[aria-pressed="true"] {
  background: linear-gradient(180deg, #F2D06B, #C79A2E);
  color: #201408;
}
#btnTurbo[aria-pressed="true"] svg { color: #201408; }
@media (hover: hover) and (pointer: fine) {

  #btnTurbo:not([aria-pressed="true"]):hover { background: #010101; color: #AD63BE; }
  #btnTurbo:not([aria-pressed="true"]):hover svg { color: #AD63BE; }
  #btnTurbo[aria-pressed="true"]:hover { background: linear-gradient(180deg, #FFE08A, #D9A93A); }
}







.buy-btn {
  width: 96px; height: 96px; flex: 0 0 auto; margin-left: 4px;
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: none; border-radius: 50%;


  background: radial-gradient(circle, #581127 0 42%, #d5a75c 43% 45%, transparent 46%);
  transition: transform 125ms ease, filter 125ms ease;
}
.buy-btn::before {
  content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: url('../assets/ui/buy-bonus.webp') center / contain no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  .buy-btn:hover { filter: brightness(1.12); }
}
.buy-btn:active { transform: scale(0.94); }
.buy-btn__l1, .buy-btn__l2 {
  position: relative; display: block; color: #f7e7b9; font-size: clamp(9px, 17cqw, 17px);
  font-weight: 900; line-height: 0.93; white-space: nowrap;
  text-shadow: 0 2px 1px #12070b;
}
.buy-btn { container-type: inline-size; }








.stake-group {
  display: flex; align-items: center; gap: 4px; flex: 0 0 auto; flex-wrap: nowrap;
}



.stake {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 104px; min-height: var(--hit-min); padding: 6px 14px; gap: 3px;
  background: #111; border: none; border-radius: 10px;
  transition: background 0.15s;
}
@media (hover: hover) and (pointer: fine) {
  .stake:hover:not([disabled]) { background: #1e1e1e; }
}
.stake:active:not([disabled]) { transform: scale(0.97); }
.stake__k { font-size: 11px; letter-spacing: 0; font-weight: 900; color: #fff; }
.stake__v { font-size: 17px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }

.bet-step { display: flex; flex-direction: column; gap: 4px; }


.step-btn {
  width: var(--hit-min); height: var(--hit-min);
  display: grid; place-items: center; padding: 8px;
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 8px;
  touch-action: manipulation; user-select: none;
}
.step-btn:not([disabled]):not([aria-disabled="true"]) {
  transition: filter 125ms ease, transform 125ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .step-btn:hover:not([disabled]):not([aria-disabled="true"]) { filter: brightness(1.18); }
}
.step-btn:active:not([disabled]):not([aria-disabled="true"]) { transform: scale(0.9); }

.step-btn__chev { display: none; }




.spin-btn {
  width: var(--primary-min); height: var(--primary-min); flex: 0 0 auto;
  position: relative; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: none;
  background: none;
  color: var(--violet);
  transition: transform 125ms ease, scale 125ms ease, filter 125ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .spin-btn:hover { filter: brightness(1.1); }
}
























.spin-btn.is-holding:not([disabled]) { scale: 0.96; }
@media (prefers-reduced-motion: reduce) {
  .spin-btn.is-holding:not([disabled]) { scale: 1; filter: brightness(1.12); }
}
.spin-btn__icon { grid-area: 1/1; width: 100%; height: 100%; }






.spin-btn__count {
  position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%);
  z-index: 2; width: max-content; max-width: 80%; padding: 2px 4px;
  border: 1px solid rgba(244, 236, 216, 0.3); border-radius: 4px;
  background: #241D20; color: #F4ECD8;
  font-size: clamp(10px, 18cqw, 15px); font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.spin-btn { container-type: inline-size; }










button, .bet-cell, .menu__row, .card__knob,
#board, .board__cells, #fxLayer { touch-action: manipulation; }



.side-btns--left { flex-direction: column; gap: 6px; }

.side-btns { display: flex; flex-direction: column; gap: 4px; }


















button[disabled], button[aria-disabled="true"] {
  opacity: 0.76; filter: saturate(0.25); cursor: not-allowed;
  transition: opacity 125ms ease 125ms, filter 125ms ease 125ms,
    transform 125ms ease, scale 125ms ease, background-color 125ms ease,
    color 125ms ease, border-color 125ms ease;
}


#betValue[disabled], #betValue[aria-disabled="true"] {
  opacity: 1; filter: none;
}
button:not([disabled]):not([aria-disabled="true"]) {
  transition: opacity 125ms ease, filter 125ms ease, transform 125ms ease,
    scale 125ms ease, background-color 125ms ease, color 125ms ease,
    border-color 125ms ease;
}














.spin-btn--spinning[disabled],
.spin-btn--spinning[aria-disabled="true"],
:where(html:has(.cells--spinning)) .spin-btn[disabled] {
  opacity: 1; filter: none; cursor: progress;
}
button[disabled]:active, button[aria-disabled="true"]:active { transform: none; }




:focus, :focus-visible { outline: none; outline-offset: 0; }



















.overlays { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
            animation: fadeIn 0.2s ease-out; }
.overlays:not(:has(.overlay-host--full)) {
  box-sizing: border-box;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.overlays.is-closing { animation: overlayOut 0.16s ease-in both; pointer-events: none; }
@keyframes overlayOut { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {


  .overlays { animation: none; }
  .overlays.is-closing { animation-duration: 1ms; }
}










.backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }









.overlay-host {
  position: relative; max-width: min(560px, 92vw); max-height: 88dvh;

  overflow: visible;
}







.overlay-host:has(.card--history) { max-width: min(820px, 92vw); }



.overlay-host:not(.overlay-host--full) { padding-top: 26px; margin-top: -26px; }

.card {
  background: linear-gradient(rgba(30, 20, 34, 0.98), rgba(16, 10, 20, 0.98));
  border: 2px solid var(--panel-edge); border-radius: 14px;
  padding: 26px 28px; box-shadow: 0 24px 70px rgba(0,0,0,0.7);
}
.card--spin-wins { width: min(350px, 92vw); box-sizing: border-box; padding: 22px 20px 18px; }
.spin-wins { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.spin-wins__row {
  display: grid; grid-template-columns: 36px max-content minmax(0, 1fr); gap: 8px;
  align-items: center; min-height: 42px; padding: 2px 10px;
  color: #f9e7bb; border: 1px solid rgba(210, 170, 99, .45);
  border-radius: 8px; background: linear-gradient(180deg, #4a3027, #24191b);
}
.spin-wins__count, .spin-wins__amount { font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.spin-wins__count { grid-column: 2; grid-row: 1; white-space: nowrap; }
.spin-wins__symbol { grid-column: 1; grid-row: 1; width: 36px; height: 36px; object-fit: contain; }
.spin-wins__row > .spin-wins__amount { grid-column: 3; grid-row: 1; }
.spin-wins__amount { text-align: right; white-space: nowrap; }
.spin-wins__receipt, .spin-wins__total {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(72px, auto); gap: 10px;
  align-items: center; padding: 9px 10px; color: #f9e7bb;
  border-top: 1px solid rgba(210, 170, 99, .45); font-size: 13px;
}
.spin-wins__receipt-label { min-width: 0; line-height: 1.35; }
.spin-wins__receipt-label small { display: block; color: #d6be8d; font-size: 12px; }
.spin-wins__total { padding-top: 7px; padding-bottom: 3px; font-weight: 900; }
.card--spin-wins .btn {
  color: #fff0c9; font-weight: 800; border-color: #d6a962;
  background: linear-gradient(180deg, #7c5938, #422b22);
}
@media (hover: hover) and (pointer: fine) {
  .card--spin-wins .btn:hover:not(:disabled) { background: linear-gradient(180deg, #966d43, #513123); }
}





.card--menu {
  width: 299px; padding: 32px 16px 25px;
  background: linear-gradient(145deg, #302322, #211b20);
  border: 1px solid rgba(210, 173, 96, .38); border-radius: 22px;
  box-shadow: 0 12px 36px rgba(0,0,0,.42), inset 0 1px rgba(255,228,170,.08);
  overflow: visible;
}











.card--menu .menu {
  overflow-y: auto; overflow-x: hidden; min-height: 0; color-scheme: dark;

  scrollbar-width: thin; scrollbar-color: rgba(199, 169, 113, 0.42) transparent;
  grid-auto-rows: max-content; align-content: start;
}
.card--menu .menu::-webkit-scrollbar { width: 5px; }
.card--menu .menu::-webkit-scrollbar-track { background: transparent; }
.card--menu .menu::-webkit-scrollbar-thumb {
  background: rgba(199, 169, 113, 0.42); border-radius: 5px;
}
.menu__more {
  position: absolute; left: 50%; bottom: 5px;
  width: 30px; height: 18px; transform: translateX(-50%);
  pointer-events: none; opacity: 0; transition: opacity .15s ease;
}
.menu__more::before {
  content: ''; position: absolute; left: 10px; top: 1px;
  width: 10px; height: 10px; transform: rotate(45deg);
  border-right: 2px solid #d5af6b; border-bottom: 2px solid #d5af6b;
  filter: drop-shadow(0 1px 2px #000);
}
.card--menu-more .menu__more { opacity: 1; }
@media (max-width: 560px) and (max-height: 500px) {

  .card--menu .menu { gap: 5px; }
}


.card__knob {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);


  z-index: 5;
  width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  background: #070707; color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  transition: background 125ms ease, transform 125ms ease;
}






.ico { width: auto; height: auto; }
.ico path { stroke: none; }
.ico--stroke path { stroke: currentColor; fill: none; }
.ico--mixed path[stroke] { stroke: currentColor; }
.card__knob .ico { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .card__knob:hover { background: #2a2a2a; }
}
.card__knob:active { scale: 0.92; }
.card__knob.is-pointer-pressed:not([disabled]) {
  background: #2a2a2a;
  scale: 0.92;
}

.menu { display: grid; gap: 8px; }



.menu__row {
  display: grid; grid-template-columns: 38px 1fr auto;
  align-items: center; gap: 12px;
  width: 100%; min-height: 45px; height: auto; padding: 4px 8px 4px 10px;
  background: #313131; color: #fff;
  border: none; border-radius: 14px; cursor: pointer;
  font: inherit; text-align: left;
  transition: background 125ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .menu__row:hover:not([aria-disabled="true"]) { background: #3d3d3d; }
}
.menu__row:active:not([aria-disabled="true"]) { background: #2a2a2a; }
.menu__row.is-pointer-pressed:not([aria-disabled="true"]) { background: #454545; }



.menu__unavailable-status {
  margin: -2px 2px 2px; padding: 9px 11px;
  border: 1px solid rgba(210, 173, 96, .42); border-radius: 10px;
  background: #251d1e; color: #f7dfb4;
  font-size: 12px; line-height: 1.3;
}

.menu__ico { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; }
.menu__ico .ico { display: block; }

.menu__label {
  font-size: 16px; font-weight: 900; letter-spacing: 0; text-transform: uppercase;
}
@media (max-width: 560px) {

  .menu__row--ante .menu__label { font-size: 13px; letter-spacing: 0; }
}



.menu__switch {
  position: relative; width: 60px; height: 32px; flex: none;
  background: #676767; border-radius: 16px;
  transition: background 0.18s ease;
}
.menu__switch > i {
  position: absolute; top: 3px; left: 3px;
  width: 27px; height: 26px; border-radius: 50%;
  background: #fff;
  transition: transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.18s ease;
}
.menu__row[data-on="1"] .menu__switch { background: #32672B; }
.menu__row[data-on="1"] .menu__switch > i { transform: translateX(27px); background: #2AA11F; }




@media (forced-colors: active) {
  .menu__switch {
    box-sizing: border-box;
    border: 2px solid ButtonText;
    background: Canvas;
  }
  .menu__switch > i {
    top: 1px; left: 1px;
    background: ButtonText;
  }
  .menu__row[data-on="1"] .menu__switch {
    border-color: Highlight;
    background: Highlight;
  }
  .menu__row[data-on="1"] .menu__switch > i { background: HighlightText; }
}



.card--flat {




  width: min(406px, 92vw); padding: 26px 15px 24px;
  background: linear-gradient(145deg, #302322, #211b20);
  border: 1px solid rgba(210, 173, 96, .38); border-radius: 22px;
  box-shadow: 0 12px 36px rgba(0,0,0,.42), inset 0 1px rgba(255,228,170,.08);
  overflow: visible;
}
.card--flat .card__title {
  margin: 0 0 19px; color: #f1d591; text-align: center;
  font-size: 20px; font-weight: 800; letter-spacing: 0.06em;
}

.bet-chooser.card--flat .card__title,
.card--auto.card--flat .card__title { font-size: 19px; font-weight: 900; letter-spacing: 0; }




.bet-chooser .bet-chooser__controls {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px; align-items: center; flex: 0 0 auto; margin-bottom: 14px;
}
.bet-chooser__step, .bet-chooser__edge {
  min-height: 44px; padding: 0 10px;
  border: 1px solid rgba(218, 179, 101, 0.54);
  background: linear-gradient(160deg, #554038, #352a2d);
  color: #f6dfaa; cursor: pointer;
  font-weight: 800; font-variant-numeric: tabular-nums;
  transition: background 125ms ease, scale 125ms ease, opacity 125ms ease;
}
.bet-chooser__step {
  width: 44px; border-radius: 50%; font-size: 27px; line-height: 1;
}
.bet-chooser__current {
  display: grid; place-items: center; min-width: 0; min-height: 44px;
  padding: 0 8px; border: 1px solid rgba(218, 179, 101, 0.28);
  border-radius: 13px; background: rgba(16, 12, 18, 0.57);
  color: #f9e7c6; font-size: clamp(15px, 4vw, 19px);
  font-weight: 800; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden;
}
.bet-chooser .bet-chooser__ends {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; flex: 0 0 auto; margin-top: 14px;
}
.bet-chooser__edge { border-radius: 13px; font-size: 13px; letter-spacing: .1em; }
@media (hover: hover) and (pointer: fine) {
  .bet-chooser__step:hover:not(:disabled), .bet-chooser__edge:hover:not(:disabled) {
    background: #705044;
  }
}
.bet-chooser__step:active:not(:disabled), .bet-chooser__edge:active:not(:disabled) { scale: .95; }
.bet-chooser__step:disabled, .bet-chooser__edge:disabled { opacity: .76; cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .bet-chooser__step:active:not(:disabled), .bet-chooser__edge:active:not(:disabled) {
    scale: 1; filter: brightness(1.18);
  }
}
.card--flat .bet-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 9px; margin: 0;
}





.card--flat .bet-cell {
  height: 28px; min-height: 0; padding: 0 4px;
  background: #493637; color: #fff;
  border: none; border-radius: 14px; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: 0;
  transition: background 125ms ease, color 125ms ease, scale 125ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .card--flat .bet-cell:hover:not(:disabled) { background: #604847; }
}















.card--flat .bet-cell:active:not(:disabled) { scale: 0.95; }
.bet-cell.is-pointer-pressed:not(:disabled) { scale: 0.95; }
@media (prefers-reduced-motion: reduce) {
  .card--flat .bet-cell:active:not(:disabled) { scale: 1; filter: brightness(1.25); }
  .bet-cell.is-pointer-pressed:not(:disabled) { scale: 1; filter: brightness(1.25); }
}

.card--flat .bet-cell[data-picked="1"] { background: #EDB715; color: #252525; }
.card--flat .bet-cell:disabled { opacity: 0.76; cursor: default; }
@media (pointer: coarse) {
  .card--flat .bet-cell { height: var(--hit-min); }
}










.card--sound { width: 442px; padding: 20px; }
.snd { position: relative; width: 402px; height: 64px; margin: 0 auto 20px; }
.snd:last-child { margin-bottom: 0; }


.snd__pill { position: absolute; inset: 0; background: #2E2E2E; border-radius: 32px; }
.snd__mute {
  position: absolute; left: 4px; top: 4px; width: 56px; height: 56px; z-index: 1;
  display: grid; place-items: center; padding: 13px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: #1A1A1A; color: #fff;
}
.snd__mute svg { width: 100%; height: 100%; }


.snd[data-off="1"] .snd__mute { background: #7B7B7B; }







.snd__track {
  position: absolute; left: 85px; top: 25px; width: 260px; height: 14px;
  border-radius: 7px; background: #D9D9D9; overflow: hidden;
}
.snd__fill {
  position: absolute; left: 0; bottom: 0; width: var(--fill, 0%); height: 100%;
  background: #26913F;
}







.snd__range {
  position: absolute; left: 85px; top: 18px; width: 260px; height: 28px;
  appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer;
  background: transparent; border: 0;
}


.snd__range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  background: transparent; border: 0; cursor: pointer;
}
.snd__range::-moz-range-thumb { width: 14px; height: 14px; background: transparent; border: 0; }
.snd__num {
  position: absolute; left: 361px; top: 15px; width: 26px; height: 33px;
  display: grid; place-items: center;
  font-size: 24px; font-weight: 900; color: #fff;
  font-variant-numeric: tabular-nums;
}






























@media (max-width: 560px), (orientation: portrait), (max-width: 760px) and (min-height: 501px) {









  .card--sound {
    width: auto; padding: calc(24 * var(--u));
    display: flex; flex-direction: row; justify-content: center; align-items: flex-start;
    gap: calc(34 * var(--u));
    background: #131313;
  }
  .snd {
    width: auto; height: auto; margin: 0;
    display: flex; flex-direction: column; align-items: center;
    gap: calc(12 * var(--u));
  }








  .snd__mute {
    position: static; width: calc(40.46 * var(--u)); height: calc(40.46 * var(--u));
    min-width: var(--hit-min); min-height: var(--hit-min);
    padding: calc(9 * var(--u));
    background: #232323;
  }


  .snd__pill {
    position: relative; inset: auto;
    width: calc(40.46 * var(--u)); height: calc(254.13 * var(--u));
    background: #232323; border-radius: 999px;
  }


  .snd__track {
    left: 23.67%; top: 8.12%; width: 54.62%; height: 77.68%;
    border-radius: 0;
  }

  .snd__fill { width: 100%; height: var(--fill, 0%); }










  .snd__range {
    left: 50.98%; top: 46.96%;
    width: calc(254.13 * 0.7768 * var(--u)); height: var(--hit-min);
    transform: translate(-50%, -50%) rotate(-90deg);
  }


  .snd__num {
    left: 0; right: 0; width: auto;
    top: 85.8%; height: 14.2%;


    font-size: max(12px, calc(14.73 * var(--u))); line-height: 1;
  }
}




@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .game[data-phase="base"] .chrome__row #betUp,
  .game[data-phase="base"] .chrome__row #betDown { display: none; }
  .chrome__row .stake-group .stake {
    left: 0; top: 50%; width: 100%; height: 44px; min-height: 44px;
    transform: translateY(-50%); padding: 2px 3px; gap: 1px;
    justify-content: center;
    border: 1px solid #aa8d61; border-radius: 8px;
    background: linear-gradient(#342820, #151012);
    box-shadow: 0 1px 2px #000, inset 0 1px rgba(255, 236, 191, 0.16);
  }
  .chrome__row .stake-group .stake:active:not([disabled]) {
    transform: translateY(-50%) scale(0.96);
  }
  .chrome__row .stake-group .stake__k {
    font-size: 9px; line-height: 1.1;
  }
  .chrome__row .stake-group .stake__v {
    width: 100%; height: auto; min-height: 0; margin: 0;
    background: none; font-size: 11px; line-height: 1.1;
    white-space: nowrap;
  }
}




@media (orientation: landscape) and (max-height: 500px) and (max-width: 600px) and (pointer: coarse) {
  .chrome__row #btnMenu {
    position: fixed; left: auto;
    right: max(8px, calc(env(safe-area-inset-right) + 8px));
    top: max(8px, calc(env(safe-area-inset-top) + 8px));
    width: 44px; height: 44px; padding: 12px;
    border-radius: 0; background: none; z-index: 9;
  }
  .chrome__row #btnMenu::after { content: none; }
  .chrome__row #btnMenu svg {
    width: 20px; height: 20px; filter: drop-shadow(0 2px 2px #000);
  }



  .chrome__row #btnInfo, .chrome__row #btnTurbo { display: none !important; }



  .chrome__row .buy-btn {
    left: calc(4.82% + 4px); top: auto; bottom: 0;
    width: max(44px, 10.66%); height: auto;
  }




  .chrome__row #btnSound {
    left: calc(0.66% - 8px); top: calc(8.78% - 4px);
    width: 22px; height: auto; padding: 1px;
  }
  .chrome__row #btnAuto {
    top: calc(6.76% - 4px); width: 22px; height: auto; padding: 1px;
    transform: translateX(7px);
  }
  .chrome__row #btnSpin::after {
    content: ''; position: absolute; left: 50%; top: calc(50% - 1px);
    width: 44px; height: 44px; transform: translate(-50%, -50%);
  }
}





@media (orientation: landscape) and (max-height: 500px) and (min-width: 601px) and (max-width: 1024px) and (pointer: coarse) {
  .chrome__row #btnMenu {
    position: fixed; left: auto;
    right: max(8px, calc(env(safe-area-inset-right) + 8px));
    top: max(8px, calc(env(safe-area-inset-top) + 8px));
    width: 44px; height: 44px; padding: 12px;
    border-radius: 0; background: none; z-index: 9;
  }
  .chrome__row #btnMenu::after { content: none; }
  .chrome__row #btnMenu svg {
    width: 20px; height: 20px; filter: drop-shadow(0 2px 2px #000);
  }
  .chrome__row #btnInfo, .chrome__row #btnTurbo { display: none !important; }
}





@media (orientation: landscape) and (max-height: 300px) and (max-width: 459px) and (pointer: coarse) {
  .chrome__row .buy-btn {
    position: fixed;
    left: max(8px, calc(env(safe-area-inset-left) + 8px));
    bottom: calc(56px + env(safe-area-inset-bottom));
    width: 44px; height: 44px; z-index: 8;
  }


  .game[data-phase="bg1"] .chrome__row .buy-btn,
  .game[data-phase="bg2"] .chrome__row .buy-btn { display: none; }
  .chrome__row #btnSpin { top: calc(4.73% - 7px); }
  .chrome__row #btnAuto { transform: translateX(10px); }
}







.card--auto { width: 261px; }


.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.card--auto .chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 9px; }








.card--auto .bet-cell {
  height: 38px; padding: 0 12px; border-radius: 19px;
  font-size: 19px; font-weight: 900;
}




@media (pointer: coarse) {
  .card--auto .bet-cell { height: var(--hit-min); }
}
.card--auto .card__actions { margin-top: 18px; }



.card--auto .card__scroll {
  scrollbar-gutter: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(189, 160, 111, 0.65) rgba(27, 20, 22, 0.6);
}
@media (orientation: portrait) and (max-height: 500px) {
  .card--auto .card__actions { margin-top: 12px; }
}
.bet-note {
  margin: 16px 0 0; text-align: center;
  font-size: 12px; line-height: 1.5; color: rgba(255,255,255,0.66);
}
.bet-note--funds { color: var(--ink); }




.card__text.card__sum { font-size: 26px; font-weight: 800; color: var(--gold-hot); margin-bottom: 6px; }



.btn--slim { padding: 0 12px; }
.card__title { margin: 0 0 6px; font-size: 21px; letter-spacing: 0.08em; color: var(--gold); }
.card__text { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--ink-dim); }
.card__code {
  display: block; margin: 0 0 6px; font-family: ui-monospace, Menlo, monospace;
  font-size: 12px; color: var(--ink-dim);
}
.card__trace {
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--ink-dim);
  word-break: normal;
}
.card__trace > span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.card__trace > .btn { flex-shrink: 0; white-space: nowrap; }
.card__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  min-height: var(--hit-min); padding: 0 22px;
  border-radius: 9px; border: 1px solid var(--panel-edge);
  background: rgba(60, 40, 70, 0.7); font-size: 15px;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: linear-gradient(var(--green), #24713f); border-color: #4ac177; font-weight: 700; }
.btn--danger { background: linear-gradient(var(--danger), #8e2740); border-color: #e2708a; }




.btn--go {
  width: 100%; justify-content: center;



  background: #218F17; color: #fff; border-color: #218F17;




  border-radius: 22px;
  font-size: 19px; font-weight: 900; letter-spacing: 0;
}
@media (hover: hover) and (pointer: fine) {
  .btn--go:hover:not(:disabled) { background: #33bd26; border-color: #33bd26; }
}



























.cauldron__bubbles {
  position: absolute; left: 26%; right: 26%; top: 38%; height: 6.5%;
  pointer-events: none;
}
.cauldron__bubbles i {
  position: absolute; bottom: 0; width: 12%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(190,255,190,0.9), rgba(90,210,110,0.35) 60%, transparent 72%);
  animation: bubble 2.6s ease-in-out infinite;
}
.cauldron__bubbles i:nth-child(1) { left: 8%;  animation-delay: 0s;    }
.cauldron__bubbles i:nth-child(2) { left: 34%; animation-delay: 0.7s;  }
.cauldron__bubbles i:nth-child(3) { left: 58%; animation-delay: 1.35s; }
.cauldron__bubbles i:nth-child(4) { left: 78%; animation-delay: 1.9s;  }
@keyframes bubble {
  0%   { transform: translateY(0) scale(0.4); opacity: 0; }
  25%  { opacity: 0.85; }
  70%  { transform: translateY(-120%) scale(1); opacity: 0.85; }

  85%  { transform: translateY(-140%) scale(1.35); opacity: 0.35; }
  100% { transform: translateY(-150%) scale(1.5); opacity: 0; }
}



.intro__reel-branch { transform-origin: 90% 6%; animation: sway 6.7s ease-in-out infinite; }
.intro__reel-herbs  { transform-origin: 40% 8%; animation: sway 8.3s ease-in-out infinite reverse; }








.intro__reel-eye     { animation: eyeGlow 3.4s ease-in-out infinite; }
.intro__reel-candles { animation: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .cauldron__bubbles, .cauldron__fire { display: none; }
  .intro__reel-branch, .intro__reel-herbs,
  .intro__reel-eye, .intro__reel-candles { animation: none !important; }
}


















.cauldron__fire {
  position: absolute; left: 19.6%; right: 18%; top: 76%; height: 14%;
  pointer-events: none; z-index: 1; mix-blend-mode: screen;
  background: radial-gradient(ellipse at 50% 60%,
    rgba(255, 196, 96, 0.55) 0%, rgba(255, 140, 40, 0.28) 42%, transparent 72%);
  animation: cauldronFire 1.7s ease-in-out infinite;
}
@keyframes cauldronFire {
  0%, 100% { opacity: 0.62; transform: scale(1, 1); }
  27%      { opacity: 1;    transform: scale(1.04, 1.1); }
  53%      { opacity: 0.5;  transform: scale(0.97, 0.94); }
  78%      { opacity: 0.88; transform: scale(1.02, 1.05); }
}



.cauldron__pulse {
  position: absolute; left: 50%; top: 41.5%; width: 64%; aspect-ratio: 2.4;
  transform: translate(-50%, -50%) scale(0.55);
  border-radius: 50%; z-index: 2;
  background: radial-gradient(ellipse at center,
    rgba(190, 255, 195, 0.78) 0%,
    rgba(82, 220, 125, 0.48) 32%,
    rgba(38, 175, 87, 0.18) 59%, transparent 77%);
  opacity: 0; pointer-events: none;
}
.meter--reservoir.is-full .cauldron__pulse { animation: cauldronPulse 1.35s ease-out both; }
@keyframes cauldronPulse {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.55); }
  18%  { opacity: 1; transform: translate(-50%, -50%) scale(0.88); }
  46%  { opacity: 0.72; transform: translate(-50%, -50%) scale(1.07); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.32); }
}




.reward-fly {
  position: fixed; z-index: 9; pointer-events: none;
  font-size: clamp(20px, 2.6vw, 46px); font-weight: 900;
  color: #EAD577; text-shadow: 0 3px 0 #000, 0 0 18px rgba(150,255,170,0.8);
  animation: rewardOut 1.5s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes rewardOut {
  0%   { transform: translate(-50%, 0) scale(0.4); opacity: 0; }
  18%  { transform: translate(-50%, -30%) scale(1.15); opacity: 1; }
  70%  { transform: translate(-50%, -150%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -210%) scale(0.92); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cauldron__pulse, .reward-fly { display: none; }
}











.buy, .rules-shell { animation: cardIn 0.34s cubic-bezier(0.3, 1.5, 0.5, 1); }






















.card > *, .buy > *, .rules-shell > * {
  animation: cardChildIn 0.3s cubic-bezier(0.3, 1.5, 0.5, 1) backwards;
}



.note__stage > * { animation: cardChildIn 0.3s cubic-bezier(0.3, 1.5, 0.5, 1) backwards; }
.note__stage > *:nth-child(1) { animation-delay: 0.16s; }
.note__stage > *:nth-child(2) { animation-delay: 0.20s; }
.note__stage > *:nth-child(3) { animation-delay: 0.24s; }
.note__stage > *:nth-child(n+4) { animation-delay: 0.30s; }

.card > *:nth-child(1), .buy > *:nth-child(1), .rules-shell > *:nth-child(1) { animation-delay: 0.10s; }
.card > *:nth-child(2), .buy > *:nth-child(2), .rules-shell > *:nth-child(2) { animation-delay: 0.15s; }
.card > *:nth-child(3), .buy > *:nth-child(3), .rules-shell > *:nth-child(3) { animation-delay: 0.20s; }
.card > *:nth-child(n+4), .buy > *:nth-child(n+4), .rules-shell > *:nth-child(n+4) { animation-delay: 0.25s; }
@keyframes cardChildIn {
  0%   { transform: scale(0.9); opacity: 0; }
  60%  { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); }
}










.card > .card__knob:not(.card__knob--corner) { animation-name: knobIn; }
@keyframes knobIn {
  0%   { transform: translateX(-50%) scale(0.9);  opacity: 0; }
  60%  { transform: translateX(-50%) scale(1.03); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); }
}







































.card {
  position: relative; max-width: 100%;
  max-height: calc(100dvh - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
}
.card > .bet-grid {
  min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  align-content: start; grid-auto-rows: max-content;
  padding: 2px 8px 2px 0; scrollbar-gutter: stable;
}
.card__scroll {










  overflow: auto; min-height: 0;

  scrollbar-gutter: stable;
}
.card__scroll, .card > .bet-grid {
  scrollbar-width: thin;
  scrollbar-color: rgba(199, 169, 113, 0.42) transparent;
  color-scheme: dark;
}
.card__scroll::-webkit-scrollbar,
.card > .bet-grid::-webkit-scrollbar { width: 5px; height: 5px; }
.card__scroll::-webkit-scrollbar-track,
.card > .bet-grid::-webkit-scrollbar-track { background: transparent; }
.card__scroll::-webkit-scrollbar-thumb,
.card > .bet-grid::-webkit-scrollbar-thumb {
  background: rgba(199, 169, 113, 0.42); border-radius: 5px;
}


.card > .card__title, .card > .card__actions { flex: 0 0 auto; }













.card__scroll table { width: max-content; min-width: 100%; }













.card--history { width: min(820px, 92vw); max-height: 88dvh; }
.card--history .card__title { margin-bottom: 12px; }
.history__summary { margin: 0 0 8px; color: var(--ink-dim); font-size: 13px; line-height: 1.4; }
.history__status, .history__copy-status {
  margin: 0; color: var(--ink-dim); font-size: 13px; line-height: 1.4;
}
.history__status:not(:empty) { margin-bottom: 8px; }
.history__copy-status:not(:empty) { margin-top: 8px; }
.history__scroll { overscroll-behavior: contain; color-scheme: dark; }
.history__table { border-collapse: collapse; font-size: 13px; line-height: 1.35; }


.card--history .history__table { width: 100%; min-width: 0; }
.history__table th, .history__table td {
  padding: 8px; text-align: left; vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.history__table th { color: var(--gold); white-space: nowrap; }
.history__table td { color: var(--ink); }
.history__table time { white-space: nowrap; }
.history__cost { display: block; color: var(--ink-dim); white-space: nowrap; }
.history__reference { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.history__reference code {
  min-width: 0; max-width: 220px; overflow-wrap: anywhere;
  user-select: text; -webkit-user-select: text;
}
.history__reference .btn { flex: none; }
.history__more { margin-top: 10px; align-self: flex-start; }
.history__end { margin: 12px 0 0; color: var(--ink-dim); font-size: 12px; text-align: center; }



@media (max-width: 900px) and (orientation: portrait), (max-width: 820px) {
  .card--history table, .card--history tbody { display: block; width: 100%; }
  .card--history thead { display: none; }
  .card--history tbody tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px; row-gap: 5px; padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.16);
  }
  .card--history td {
    display: block; width: auto; min-width: 0; white-space: normal;
    text-align: left; padding: 0; border: 0;
  }
  .card--history td::before {
    content: attr(data-label) ' '; opacity: 0.62; margin-right: 6px;
  }
  .history__table { min-width: 0 !important; width: 100% !important; }
  .history__reference { display: inline-flex; max-width: 100%; vertical-align: middle; }
  .history__reference code { max-width: min(24vw, 220px); }
}


@media (min-width: 821px) and (max-width: 900px) and (orientation: landscape) {
  .history__table th, .history__table td { padding-inline: 4px; }
}
@media (max-width: 560px) {
  .card--history tbody tr { display: block; padding: 10px 0; }
  .card--history td { padding: 2px 0; }
  .history__reference code { max-width: min(38vw, 220px); }
}
.rules-shell { position: relative; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .buy, .rules-shell,
  .card > *, .buy > *, .rules-shell > *,
  .note__stage > * { animation: none !important; }
}
























.buy {
  position: absolute; top: 0; left: calc(50% - 960 * var(--canvas-u));
  width: calc(1920 * var(--canvas-u)); height: calc(1080 * var(--canvas-u));
















  perspective: calc(1400 * var(--canvas-u));
  perspective-origin: 50% calc(490 * var(--canvas-u));
}














.buy__ribbon {
  position: absolute;
  left: calc(833.5 * var(--canvas-u)); top: calc(61 * var(--canvas-u));
  width: calc(255.5 * var(--canvas-u)); height: calc(77 * var(--canvas-u));
  display: grid; place-items: center;
  background: url('../assets/buy/buy-title-ribbon.svg') center / 100% 100% no-repeat;
  font-size: calc(34 * var(--canvas-u)); font-weight: 900; color: #fff;
  -webkit-text-stroke: .1764705882em #000; paint-order: stroke fill;
  text-shadow: 0 .0882352941em 0 #000; letter-spacing: 0; white-space: nowrap;
}









.buy-grid { display: contents; perspective: 220vw; }

















.buy__pager { display: none; }
@media (orientation: portrait), (max-width: 760px) and (min-height: 501px) {


  body:has(#overlays:not([hidden]) .buy) .panel--action { visibility: hidden; }
  .buy__pager {
    display: flex; align-items: center; justify-content: space-between;

    width: min(52.5vw, 23.4dvh); margin: min(4.4vw, 1.96dvh) 0 0;
  }



  .buy__pager-arrow {
    position: relative; display: grid; place-items: center;
    width: 5vw; height: 6.93vw; padding: 0;
    background: none; border: none; cursor: pointer;
  }
  .buy__pager-arrow::before {
    content: ''; width: 4.9vw; height: 4.9vw;
    border-top: 1.2vw solid #fff; border-right: 1.2vw solid #fff;
    transform: rotate(45deg);


    filter: drop-shadow(0 0 0.28vw rgba(11, 16, 19, 0.9));
  }
  .buy__pager-arrow--prev::before { transform: rotate(-135deg); }


  .buy__pager-arrow::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: max(var(--hit-min), 100%); height: max(var(--hit-min), 100%);
    transform: translate(-50%, -50%);
  }
  .buy__pager-arrow:disabled { opacity: 0.76; cursor: default; }
  .buy__pager-dots { display: flex; align-items: center; gap: 6.11vw; }
  .buy__pager-dot {
    width: 2.78vw; height: 2.78vw; border-radius: 50%; background: #fff;
    opacity: 0.55;
  }
  .buy__pager-dot.is-on {
    background: var(--gold-hot); opacity: 1; transform: scale(1.25);
    box-shadow: 0 0 0 1px #352718, 0 0 5px rgba(234, 213, 119, 0.35);
  }
}



.buy-card { animation: cardFlip 0.46s cubic-bezier(0.25, 1.25, 0.45, 1) both; }
.buy-card.is-silver { animation-delay: 0.14s; }
.buy-card.is-gold   { animation-delay: 0.24s; }
.buy-card.is-royal  { animation-delay: 0.34s; }
@keyframes cardFlip {
  0%   { transform: rotateY(-96deg) translateY(10px); opacity: 0; }
  65%  { transform: rotateY(8deg) translateY(0); opacity: 1; }
  100% { transform: rotateY(0) translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .buy-card { animation: none !important; } }



.buy-card {
  --buy-title-color: #fbfbee;
  position: absolute; text-align: center; border: none; padding: 0;
  background: center / 100% 100% no-repeat;
  transition: filter 0.15s;
}
.buy-card.is-silver {
  --card-y: 197;
  left: calc(262 * var(--canvas-u));   top: calc(197 * var(--canvas-u));
  width: calc(423 * var(--canvas-u));  height: calc(597 * var(--canvas-u));
  background-image: url('../assets/buy/buy-card-frame-silver.webp');
}
.buy-card.is-gold {
  --card-y: 160;
  left: calc(733.8 * var(--canvas-u)); top: calc(160 * var(--canvas-u));
  width: calc(452.2 * var(--canvas-u)); height: calc(653 * var(--canvas-u));
  background-image: url('../assets/buy/buy-card-frame-gold.webp');
}
.buy-card.is-royal {
  --card-y: 135;
  left: calc(1201 * var(--canvas-u));  top: calc(135 * var(--canvas-u));
  width: calc(513 * var(--canvas-u));  height: calc(710 * var(--canvas-u));
  background-image: url('../assets/buy/buy-card-frame-royal.webp');
}
@media (hover: hover) and (pointer: fine) {
  .buy-card:hover { filter: brightness(1.06); }
}




.buy-card__name, .buy-card__desc, .buy-card__plate,
.buy-card__price, .buy-card__go, .buy-card__why { position: absolute; }

.buy-card__name {
  left: calc(50% - 127 * var(--canvas-u)); width: calc(254 * var(--canvas-u));
  top: calc((251 - var(--card-y)) * var(--canvas-u));
  height: calc(33 * var(--canvas-u)); display: grid; place-items: center;
  font-size: calc(24 * var(--canvas-u)); font-weight: 900;
  color: var(--buy-title-color);
  -webkit-text-stroke: .1666666667em #000; paint-order: stroke fill;
  text-shadow: 0 .125em 0 #000; letter-spacing: 0;
  text-transform: uppercase; white-space: nowrap;
}
.buy-card__desc {
  left: calc(50% - 170 * var(--canvas-u)); width: calc(340 * var(--canvas-u));
  top: calc((292 - var(--card-y)) * var(--canvas-u));
  font-size: max(14px, calc(16 * var(--canvas-u)));
  line-height: 1.3; color: #000; font-weight: 500;
}
.buy-card__plate {
  left: calc(50% - 95.5 * var(--canvas-u)); width: calc(191 * var(--canvas-u));
  top: calc((561 - var(--card-y)) * var(--canvas-u));
  height: calc(59 * var(--canvas-u));
  display: grid; place-items: center;
  background: url('../assets/buy/buy-fs-plate.webp') center / 100% 100% no-repeat;









  white-space: nowrap;
  font-size: calc(48 * var(--canvas-u)); font-weight: 900;

  color: transparent;
  background-image:
    linear-gradient(#F2E7BA 45.88%, #BA6508 74.45%, #EAD577 83.97%),
    url('../assets/buy/buy-fs-plate.webp');
  background-clip: text, padding-box;
  -webkit-background-clip: text, padding-box;
  background-size: 100% 100%, 100% 100%;
}




.buy-card__plate-ink {
  position: relative; display: inline-block; white-space: inherit;
  color: #000; -webkit-text-fill-color: #000;
  -webkit-text-stroke: .2083333333em #000; paint-order: stroke fill;
  text-shadow: none;
}
.buy-card__plate-ink::after {
  content: attr(data-plate-ink) / '';
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(#F2E7BA 45.88%, #BA6508 74.45%, #EAD577 83.97%);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0; text-shadow: none;
}




@supports (-moz-appearance: none) {
  .buy-card__plate {
    color: #f4cf7b;
    background-image: url('../assets/buy/buy-fs-plate.webp');
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    background-size: 100% 100%;
  }
  .buy-card__plate-ink::after {
    background: none; color: #f4cf7b; -webkit-text-fill-color: #f4cf7b;
  }
}


















.buy-card__plate--long {
  font-size: calc(25 * var(--canvas-u));


  padding-top: .32em;
  line-height: 1;
}

.buy-card__price {
  left: calc(50% - 100 * var(--canvas-u)); width: calc(200 * var(--canvas-u));
  top: calc((627 - var(--card-y)) * var(--canvas-u));
  height: calc(44 * var(--canvas-u)); display: grid; place-items: center;
  font-size: calc(32 * var(--canvas-u)); font-weight: 900; color: #000;
  -webkit-text-stroke: .125em #e8d1a6; paint-order: stroke fill;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}


@media (orientation: landscape) {
  .buy-card.is-royal .buy-card__price {
    border-radius: 2px; background: rgba(230, 219, 185, 0.96);
  }
}
.buy-card__go {
  left: calc(50% - 99.5 * var(--canvas-u)); width: calc(199 * var(--canvas-u));
  top: calc((686 - var(--card-y)) * var(--canvas-u));
  height: calc(49 * var(--canvas-u)); padding: 0;
  display: grid; place-items: center;
  background: url('../assets/buy/buy-activate-button.webp') center / 100% 100% no-repeat;
  border: none; cursor: pointer;
  font-size: calc(22.692 * var(--canvas-u)); font-weight: 900; color: #fff;
  -webkit-text-stroke: .2644161338em #32150e; paint-order: stroke fill;
  letter-spacing: 0;
}














.buy-card__go::after,
.buy-card__back::after,
.buy-card__buy::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: max(var(--hit-min), 100%); height: max(var(--hit-min), 100%);
  transform: translate(-50%, -50%);
}
@media (hover: hover) and (pointer: fine) {
  .buy-card__go:hover:not(:disabled) { filter: brightness(1.12); }
}
.buy-card__go:active:not(:disabled) { filter: brightness(0.9); }
.buy-card__go:disabled { filter: grayscale(0.7) brightness(0.7); cursor: default; }
.buy-card:not(.buy-card--confirm) .buy-card__why {
  left: 50%; right: auto;
  top: calc((745 - var(--card-y)) * var(--canvas-u));
  width: max-content; max-width: calc(100% - 12px);
  transform: translateX(-50%);
  padding: 2px 6px; border: 1px solid #9b7663; border-radius: 5px;
  background: rgba(29, 16, 19, 0.95); color: #ffe8d2;
  font-size: max(12px, calc(18 * var(--canvas-u))); line-height: 1.1;
  font-weight: 700; text-shadow: none;
}


.buy-card--confirm .buy-card__why {
  top: calc(100% + 18px); left: -8%; right: -8%;
  padding: 6px 8px; border-radius: 8px;
  background: rgba(22, 15, 20, 0.94);
  font-size: clamp(12px, 2.7vw, 16px); line-height: 1.3;
}




















.buy--confirm .buy-grid { display: none; }
.buy__ribbon--wide {
  left: calc(727 * var(--canvas-u)); top: calc(61 * var(--canvas-u));
  width: calc(469 * var(--canvas-u)); height: calc(77 * var(--canvas-u));
  background-image: url('../assets/buy/confirm-title-ribbon.svg');
}





















.buy-card.buy-card--confirm {
  --card-y: 138;
  left: calc(673 * var(--canvas-u)); top: calc(138 * var(--canvas-u));
  width: calc(573 * var(--canvas-u)); height: calc(828 * var(--canvas-u));
  background-image: url('../assets/buy/buy-card-frame-gold.webp');
}
.buy-card.buy-card--confirm.is-silver {
  --card-y: 199;
  left: calc(703 * var(--canvas-u)); top: calc(199 * var(--canvas-u));
  width: calc(512 * var(--canvas-u)); height: calc(740 * var(--canvas-u));
  background-image: url('../assets/buy/buy-card-frame-silver.webp');
}
.buy-card.buy-card--confirm.is-royal {
  --card-y: 111;
  left: calc(640 * var(--canvas-u)); top: calc(111 * var(--canvas-u));
  width: calc(638 * var(--canvas-u)); height: calc(882 * var(--canvas-u));
  background-image: url('../assets/buy/buy-card-frame-royal.webp');
}
.buy-card--confirm .buy-card__name {
  left: calc(50% - 129 * var(--canvas-u)); width: calc(258 * var(--canvas-u));
  top: calc((262 - var(--card-y)) * var(--canvas-u));
}
.buy-card--confirm .buy-card__desc {
  left: calc(50% - 176 * var(--canvas-u)); width: calc(353 * var(--canvas-u));
  top: calc((304 - var(--card-y)) * var(--canvas-u));
}









.buy-card--confirm .buy-card__plate {
  left: calc(50% - 102 * var(--canvas-u)); width: calc(204 * var(--canvas-u));
  top: calc((651 - var(--card-y)) * var(--canvas-u));
  height: calc(63 * var(--canvas-u)); font-size: calc(48 * var(--canvas-u));
}





.buy-card--confirm .buy-card__plate--long { font-size: calc(26.7 * var(--canvas-u)); }


:where(.buy:not(.buy--large-text)) .buy-card--confirm .buy-card__plate--long {
  padding: calc(4 * var(--canvas-u)) 0 0 calc(14 * var(--canvas-u));
  line-height: 1;
}
.buy-card--confirm .buy-card__price {
  top: calc((729 - var(--card-y)) * var(--canvas-u));
  height: calc(47 * var(--canvas-u)); font-size: calc(32 * var(--canvas-u));
}






.buy-card__stepper.stake-group--modal {
  position: absolute; margin: 0;
  left: calc(50% - 163 * var(--canvas-u));
  top: calc((783 - var(--card-y)) * var(--canvas-u));
  width: calc(326 * var(--canvas-u)); height: calc(74 * var(--canvas-u));
}
.buy-card__stepper .step-btn {
  position: absolute; top: calc(9 * var(--canvas-u));
  width: calc(56 * var(--canvas-u)); height: calc(56 * var(--canvas-u));
}
.buy-card__stepper .step-btn:first-of-type { left: 0; }
.buy-card__stepper .step-btn:last-of-type  { left: calc(270 * var(--canvas-u)); }
.buy-card__stepper .stake {
  position: absolute; left: calc(69 * var(--canvas-u)); top: 0;
  width: calc(189 * var(--canvas-u)); height: calc(74 * var(--canvas-u));
}





.buy-card__stepper .step-btn,
.buy__stepper .step-btn {
  border-radius: 50%; background: #5F413A; border: 3px solid #000;
  color: #F4F4F4; font-size: clamp(15px, 1.5vw, 28px); font-weight: 900;
  box-shadow: 0 4px 0 rgba(0,0,0,0.55);
}
@media (hover: hover) and (pointer: fine) {
  .buy-card__stepper .step-btn:hover,
  .buy__stepper .step-btn:hover { background: #6f4d44; }
}
.buy-card__stepper .stake,
.buy__stepper .stake {
  background: #5F413A; border: 3px solid #000; border-radius: 0;
  box-shadow: 0 4px 0 rgba(0,0,0,0.55);
  padding: clamp(3px, 0.5vw, 8px) clamp(8px, 1.1vw, 20px);
}
.buy-card__stepper .stake__k,
.buy__stepper .stake__k {
  color: #F4F4F4; font-weight: 900;
  -webkit-text-stroke: .2857142857em #000; paint-order: stroke fill;
}
.buy-card__stepper .stake__v,
.buy__stepper .stake__v {
  color: #fff; font-weight: 900;
  -webkit-text-stroke: .25em #000; paint-order: stroke fill;
}
.buy-card__stepper .stake__k { -webkit-text-stroke-width: .2em; }
.buy-card__stepper .stake__v { -webkit-text-stroke-width: .1666666667em; }



.buy-card__back, .buy-card__buy {
  position: absolute;
  display: grid; place-items: center; padding: 0; border: none; cursor: pointer;
  font-size: calc(34 * var(--canvas-u)); font-weight: 900; color: #fff;
  -webkit-text-stroke: .1764705882em #000; paint-order: stroke fill;
  text-shadow: 0 .0882352941em 0 #000;
  background: center / 100% 100% no-repeat;
}


.buy-card__back {
  left: calc(50% - 194.5 * var(--canvas-u)); top: calc((886 - var(--card-y)) * var(--canvas-u));
  width: calc(161.5 * var(--canvas-u)); height: calc(80 * var(--canvas-u));
  --buy-action-art: url('../assets/buy/confirm-back-button.svg');
}
.buy-card__buy {
  left: calc(50% + 28.5 * var(--canvas-u)); top: calc((889 - var(--card-y)) * var(--canvas-u));
  width: calc(166 * var(--canvas-u)); height: calc(77 * var(--canvas-u));
  --buy-action-art: url('../assets/buy/confirm-buy-button.svg');
}
@media (hover: hover) and (pointer: fine) {
  .buy-card__back:hover, .buy-card__buy:hover { filter: brightness(1.12); }
}
.buy-card__back:active, .buy-card__buy:active { transform: scale(0.96); }






























.buy .buy-card__stepper .step-btn,
.buy .buy__stepper .step-btn {
  font-size: 0;
  background-origin: border-box; background-repeat: no-repeat;
  background-position: center;
















}







.buy .buy-card__stepper .step-btn::after,
.buy .buy__stepper .step-btn::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: max(var(--hit-min), 100%); height: max(var(--hit-min), 100%);
  transform: translate(-50%, -50%);
}
.buy .buy-card__stepper .step-btn:first-of-type,
.buy .buy__stepper .step-btn:first-of-type {
  background-image: url('../assets/buy/stepper-minus.svg');
  background-size: 74.107% 16.071%;
}
.buy .buy-card__stepper .step-btn:last-of-type,
.buy .buy__stepper .step-btn:last-of-type {
  background-image: url('../assets/buy/stepper-plus.svg');
  background-size: 74.107% 70.073%;
}



html.buy-minus-art-missing .buy .buy-card__stepper .step-btn:first-of-type,
html.buy-minus-art-missing .buy .buy__stepper .step-btn:first-of-type,
html.buy-plus-art-missing .buy .buy-card__stepper .step-btn:last-of-type,
html.buy-plus-art-missing .buy .buy__stepper .step-btn:last-of-type {
  background-image: none;
  font-size: clamp(19px, 2.4vw, 30px);
  line-height: 1;
}
html.buy-activate-art-missing .buy-card__go {
  background: #784136; border-radius: 6px;
  box-shadow: inset 0 0 0 2px #d8ab70, 0 3px 0 #1d0d0e;
}
html.buy-back-art-missing .buy-card__back {
  --buy-action-art: none;
  background: #594840; border-radius: 6px;
  box-shadow: inset 0 0 0 2px #d7b28b, 0 3px 0 #1d0d0e;
}
html.buy-confirm-art-missing .buy-card__buy {
  --buy-action-art: none;
  background: #2e6445; border-radius: 6px;
  box-shadow: inset 0 0 0 2px #a8d7a1, 0 3px 0 #0c1d13;
}
.buy .buy-card__stepper .stake,
.buy .buy__stepper .stake {
  background: none; isolation: isolate; overflow: visible;
  border: none; box-shadow: none;
}
.buy .buy-card__stepper .stake::before,
.buy .buy__stepper .stake::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  background: center / 100% 100% no-repeat;
}
.buy .buy__stepper .stake::before {
  left: -3.042%; top: -6.363%; width: 106.040%; height: 118.622%;
  background-image: url('../assets/buy/buy-bet-field.svg');
}
.buy .buy-card__stepper .stake::before {
  left: -2.346%; top: -5.631%; width: 104.650%; height: 116.548%;
  background-image: url('../assets/buy/confirm-bet-field.svg');
}















.buy__stepper.stake-group--modal {
  position: absolute;
  left: calc(778 * var(--canvas-u)); top: calc(863 * var(--canvas-u));
  width: calc(363 * var(--canvas-u)); height: calc(127 * var(--canvas-u));


  margin: 0;
  background: none;
}
.buy__stepper .step-btn {
  position: absolute; top: calc(34 * var(--canvas-u));
  width: calc(56 * var(--canvas-u)); height: calc(56 * var(--canvas-u));
}
.buy__stepper #buyBetDown, .buy__stepper .step-btn:first-of-type { left: calc(39 * var(--canvas-u)); }
.buy__stepper .step-btn:last-of-type { left: calc(269 * var(--canvas-u)); }
.buy__stepper .stake {
  position: absolute; left: calc(110 * var(--canvas-u)); top: calc(28 * var(--canvas-u));
  width: calc(143.5 * var(--canvas-u)); height: calc(66 * var(--canvas-u));
}























.buy .buy__ribbon {
  background-size: 100% 100%; background-position: center;
}
.buy .buy__ribbon--wide {
  background-size: 100% 100%; background-position: center;
}
.buy .buy__stepper,
.buy .buy-card__back,
.buy .buy-card__buy {
  isolation: isolate; overflow: visible;
}



.buy .buy__stepper::before,
.buy .buy-card__back::before,
.buy .buy-card__buy::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  background: center / 100% 100% no-repeat;
}
.buy .buy__stepper::before {
  left: -2.336%; top: -3.184%; width: 104.740%; height: 112.732%;
  background-image: var(--buy-stepper-art, url('../assets/buy/buy-stepper-backplate.svg'));
}
.buy .buy-card__back::before {
  left: -2.697%; top: -5.236%; width: 105.340%; height: 115.411%;
  background-image: var(--buy-action-art);
}
.buy .buy-card__buy::before {
  left: -2.534%; top: -5.413%; width: 105.107%; height: 116.158%;
  background-image: var(--buy-action-art);
}














@media (orientation: portrait), (max-width: 760px) and (min-height: 501px) {

  .buy {




    --buy-u: min(calc(100vw / 360), calc((100dvh
      - max(3.2dvh, calc(env(safe-area-inset-top) + 8px))
      - max(2dvh, calc(env(safe-area-inset-bottom) + 8px)) - 42px) / 598.188));
    position: relative; left: auto; top: auto; width: 100%; height: 100%;
    display: grid; grid-template-rows: auto 1fr auto auto;
    align-items: center; justify-items: center;
    padding: max(3.2dvh, calc(env(safe-area-inset-top) + 8px)) 0
             max(2dvh, calc(env(safe-area-inset-bottom) + 8px));
  }
  .buy.buy--confirm { grid-template-rows: auto 1fr; }


  .buy .buy__pager {
    width: calc(189 * var(--buy-u)); margin: calc(12 * var(--buy-u)) 0 12px;
    min-height: 44px;
  }
  .buy .buy__pager-arrow {
    width: calc(18 * var(--buy-u)); height: calc(24.93 * var(--buy-u));
  }
  .buy .buy__pager-arrow::before {
    width: calc(17.64 * var(--buy-u)); height: calc(17.64 * var(--buy-u));
    border-width: calc(4.32 * var(--buy-u));
  }
  .buy .buy__pager-dots { gap: calc(22 * var(--buy-u)); }
  .buy .buy__pager-dot {
    width: calc(10 * var(--buy-u)); height: calc(10 * var(--buy-u));
  }






  .buy .buy__ribbon {
    position: static; width: calc(192 * var(--buy-u)); height: auto; aspect-ratio: 255.5 / 77;








    font-size: clamp(14px, calc(24 * var(--buy-u)), 37px);
  }











  .buy .buy__ribbon--wide {
    width: calc(247 * var(--buy-u)); aspect-ratio: 247 / 71;

    padding: 0 calc(29.64 * var(--buy-u)); text-align: center;
    font-size: clamp(14px, calc(24 * var(--buy-u)), 37px);
    white-space: normal; line-height: 0.8326;
  }




  .buy .buy-grid {




    display: flex; gap: 5vw; align-items: center;
    overflow-x: auto; scroll-snap-type: x mandatory;

    padding: 0;
    padding-left: calc((100vw - 241.862 * var(--buy-u)) / 2);
    padding-right: calc((100vw - 294 * var(--buy-u)) / 2);
    width: 100%;
    scrollbar-width: none;
  }
  .buy .buy-grid::-webkit-scrollbar { display: none; }
  .buy-card { position: relative; left: auto; top: auto; height: auto;
              scroll-snap-align: center; flex: 0 0 auto; }

























  .buy-card.is-silver { left: auto; top: auto; width: calc(241.862 * var(--buy-u)); height: auto; aspect-ratio: 423 / 597; }
  .buy-card.is-gold   { left: auto; top: auto; width: calc(268 * var(--buy-u)); height: auto; aspect-ratio: 452.2 / 653; }
  .buy-card.is-royal  { left: auto; top: auto; width: calc(294 * var(--buy-u)); height: auto; aspect-ratio: 513 / 710; }





  .buy-card.buy-card--confirm {
    left: auto; top: auto; width: calc(304 * var(--buy-u)); height: auto; aspect-ratio: 573 / 828;
    justify-self: center;
  }





  .buy-card.buy-card--confirm.is-silver {
    left: auto; top: auto; height: auto;
    width: calc(285.13 * var(--buy-u)); aspect-ratio: 285.13 / 402;
  }
  .buy-card.buy-card--confirm.is-royal {
    left: auto; top: auto; height: auto;
    width: calc(331 * var(--buy-u)); aspect-ratio: 331 / 478;
  }






























  .buy-card { container-type: inline-size; }
  .buy-card__name  { left: 0; right: 0; width: auto; top: 9.2%;  height: auto;
                     font-size: clamp(10px, 6.34cqw, 26px);
                     -webkit-text-stroke-width: .2352941176em;
                     text-shadow: 0 .1764705882em 0 #000; }
  .buy-card__desc  { left: 8%; right: 8%; width: auto; top: 16.8%;
                     font-size: clamp(8px, 2.82cqw, 15px); }
















  .buy-card.is-gold  .buy-card__name { top: 13.9%; }
  .buy-card.is-royal .buy-card__name { top: 16.3%; }
  .buy-card.is-gold  .buy-card__desc { top: 23.2%; }
  .buy-card.is-royal .buy-card__desc { top: 25%; }
  .buy-card__plate { left: 27.5%; width: 45%; top: 61%; height: 9.9%;
                     font-size: clamp(14px, 13.44cqw, 56px); }











  .buy-card__plate--long { font-size: clamp(9px, 5.89cqw, 24px); }
  .buy-card__price { left: 0; right: 0; width: auto; top: 72%; height: auto;
                     font-size: clamp(12px, 6.34cqw, 26px);
                     -webkit-text-stroke-width: .2352941176em; }














  .buy-card__go    { left: 50%; margin-left: -24.46cqw; width: 48.92cqw;
                     top: 81.2%; height: auto; aspect-ratio: 131 / 33;
                     font-size: clamp(9px, 5.23cqw, 22px);
                     -webkit-text-stroke-width: .2857142857em; }

  .buy-card__plate-ink { -webkit-text-stroke-width: .1111111111em; }


  .buy-card:not(.buy-card--confirm) .buy-card__why {
    left: 50%; right: auto; top: 91%;
    width: max-content; max-width: calc(100% - 16px);
    transform: translateX(-50%);
    padding: 2px 6px; border: 1px solid #9b7663; border-radius: 5px;
    background: rgba(29, 16, 19, 0.95); color: #ffe8d2;
    font-size: clamp(12px, 4.2cqw, 15px); line-height: 1.1;
    font-weight: 700; text-shadow: none;
  }




  .buy-card--confirm .buy-card__name  { left: 0; right: 0; width: auto; top: 15%; }
  .buy-card--confirm .buy-card__desc  { left: 8%; right: 8%; width: auto; top: 20.1%; }














  .buy-card--confirm .buy-card__plate {
    top: 60%; left: 27.75%; width: 45.3%;









    height: 1.4em;
    font-size: clamp(14px, 13.98cqw, 66px);
  }




  .buy-card--confirm .buy-card__plate--long { font-size: clamp(13px, 5.93cqw, 34px); }
  :where(.buy:not(.buy--large-text)) .buy-card--confirm .buy-card__plate--long {


    height: auto; aspect-ratio: 279 / 86;
    padding: .89cqw 0 0 3.11cqw;
  }
  .buy-card--confirm .buy-card__price { top: 71.4%; font-size: clamp(12px, 6.6cqw, 31px); }












  .buy .buy__stepper.stake-group--modal {
    position: relative; left: auto; top: auto; margin: 0;


    width: calc(272 * var(--buy-u)); height: auto; aspect-ratio: 363 / 127;
  }
  .buy .buy__stepper .step-btn {
    position: absolute; top: 26%; width: 15.4%; height: auto; aspect-ratio: 1;
  }
  .buy .buy__stepper .step-btn:first-of-type { left: 10.7%; }
  .buy .buy__stepper .step-btn:last-of-type  { left: 74%; }
  .buy .buy__stepper .stake {
    position: absolute; left: 30.3%; top: 22%; width: 39.5%; height: 52%;
  }












  .buy-card__stepper.stake-group--modal {
    left: 17.4%; top: 79.1%; width: 64.5%; height: 10.4%;
  }
  .buy-card__stepper.stake-group--modal .step-btn {
    position: absolute; top: 12.2%; width: 17.2%; height: auto; aspect-ratio: 1;
  }
  .buy-card__stepper.stake-group--modal .step-btn:first-of-type { left: 0; }
  .buy-card__stepper.stake-group--modal .step-btn:last-of-type  { left: 82.8%; }
  .buy-card__stepper.stake-group--modal .stake {
    position: absolute; left: 21.2%; top: 0; width: 58%; height: 100%;
  }
  .buy-card__back, .buy-card__buy {
    top: auto; bottom: -2%; height: auto;
    font-size: clamp(11px, 3vw, 20px);
  }
  .buy-card__back { left: 16.2%; width: 28.2%; aspect-ratio: 161.5 / 80; }
  .buy-card__buy  { left: auto; right: 15.9%; width: 29%; aspect-ratio: 166 / 77; }



















  .buy .card__knob--corner {




    top: max(7.78vw, calc(23 * var(--u) + 30px), calc(env(safe-area-inset-top) + 52px));
    right: max(min(7.88vw, 3.5dvh), calc(env(safe-area-inset-right) + 8px));
    width: min(9.90vw, 4.4dvh); height: min(9.90vw, 4.4dvh);
  }
  .buy .card__knob--corner .ico { width: min(5.56vw, 2.47dvh); height: min(5.56vw, 2.47dvh); }
  .buy .card__knob--corner::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: max(var(--hit-min), 100%); height: max(var(--hit-min), 100%);
    transform: translate(-50%, -50%);
  }
}




@media (orientation: landscape) and (max-width: 760px) and (min-height: 501px) {
  .buy.buy--confirm:not(.buy--large-text) {
    --hit-min: 44px;
    width: min(calc(100vw - 32px), calc((100dvh - 110px) * .69), 540px);
    height: max-content; max-width: 100%;
    margin: auto; padding: 0; display: block; perspective: none;
  }
  .buy.buy--confirm:not(.buy--large-text) .buy-card.buy-card--confirm { position: relative; margin: 0; width: 100%; }
  .buy.buy--confirm:not(.buy--large-text) .buy__ribbon--wide {
    position: absolute; left: 7%; top: -3%; width: 86%;
    z-index: 2; padding-inline: 10%;
  }
  .buy.buy--confirm:not(.buy--large-text) .card__knob--corner {
    top: 0; right: -1%; width: 36px; height: 36px; z-index: 3;
  }
  .buy.buy--confirm:not(.buy--large-text) .buy-card__plate { top: 58%; height: 1.3em; font-size: 9.5cqw; }
  .buy.buy--confirm:not(.buy--large-text) .buy-card__plate--long { height: auto; font-size: 5.93cqw; }
  .buy.buy--confirm:not(.buy--large-text) .buy-card__price { top: 68.5%; height: auto; font-size: 6cqw; line-height: 1.2; }
  .buy.buy--confirm:not(.buy--large-text) .buy-card__stepper.stake-group--modal { top: 74.5%; height: 9%; }
  .buy.buy--confirm:not(.buy--large-text) .buy-card__stepper .stake { left: 24.2%; width: 52%; min-width: 0; }
  .buy.buy--confirm:not(.buy--large-text) :is(.is-gold, .is-royal) .buy-card__price {
    left: 20%; right: 20%; width: auto;
    border-radius: 2px; background: rgba(230, 219, 185, .96);
  }
  .buy.buy--confirm:not(.buy--large-text) .buy-card__back,
  .buy.buy--confirm:not(.buy--large-text) .buy-card__buy { bottom: 4%; }
}


@media (orientation: portrait) {
  .buy.buy--confirm {
    --hit-min: 44px;
    --confirm-paper-extension: 120px;
    --confirm-art-height: 144.5cqw;
    --confirm-row-height: max(44px, 10cqw);
    --confirm-row-gap: max(15px, 3cqw);
    --confirm-price-height: calc(clamp(16px, 6cqw, 24px) * 1.2);
    --confirm-price-y: calc(var(--confirm-art-height) * .79);
    width: min(calc(100vw - 32px), calc((100dvh - 176px) * .69), 540px);
    height: max-content; max-width: 100%;
    margin: auto; padding: 0; display: block; perspective: none;
    container-type: inline-size;
  }
  .buy.buy--confirm .buy-card.buy-card--confirm {
    --confirm-art: url('../assets/buy/buy-card-frame-gold.webp');
    --confirm-price-y: calc(var(--confirm-art-height) * .79);
    position: relative; margin: 0; width: 100%;
    height: calc(var(--confirm-art-height) + var(--confirm-paper-extension));
    aspect-ratio: auto; background-image: none; isolation: isolate;
  }
  .buy.buy--confirm .buy-card.buy-card--confirm.is-silver {
    --confirm-art: url('../assets/buy/buy-card-frame-silver.webp');
    --confirm-art-height: 141cqw;
  }
  .buy.buy--confirm .buy-card.buy-card--confirm.is-royal {
    --confirm-art: url('../assets/buy/buy-card-frame-royal.webp');
  }



  .buy.buy--confirm .buy-card.buy-card--confirm::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border-style: solid; border-color: transparent;
    border-width: calc(var(--confirm-art-height) * .78) 18cqw calc(var(--confirm-art-height) * .14);
    border-image-source: var(--confirm-art);
    border-image-slice: 78% 18% 14% fill;
    border-image-width: 1; border-image-repeat: stretch;
  }
  .buy.buy--confirm .buy__ribbon--wide {
    position: absolute; left: 7%; top: -3%; width: 86%;
    z-index: 2; padding-inline: 10%;
  }
  .buy.buy--confirm .card__knob--corner {
    top: 0; right: -1%; width: 36px; height: 36px; z-index: 3;
  }


  .buy.buy--confirm .buy-card--confirm .buy-card__name {
    position: relative; left: auto; right: auto; top: auto; width: auto;
    margin: 0 4%; padding-top: calc(var(--confirm-art-height) * .15);
    line-height: 1.4;
  }
  .buy.buy--confirm .is-gold .buy-card__name { padding-top: calc(var(--confirm-art-height) * .139); }
  .buy.buy--confirm .is-royal .buy-card__name { padding-top: calc(var(--confirm-art-height) * .163); }
  .buy.buy--confirm .buy-card--confirm .buy-card__desc {
    position: relative; left: auto; right: auto; top: auto; width: auto;
    margin: 8px 8% 0; line-height: 1.4;
  }
  .buy.buy--confirm .buy-card__plate { top: calc(var(--confirm-art-height) * .58); height: 1.3em; font-size: 9.5cqw; }
  .buy.buy--confirm .buy-card__plate--long { height: auto; font-size: 5.93cqw; }
  .buy.buy--confirm .buy-card__price {
    top: var(--confirm-price-y); height: var(--confirm-price-height);
    font-size: clamp(16px, 6cqw, 24px); line-height: 1.2;
  }
  .buy.buy--confirm .buy-card__stepper.stake-group--modal {
    top: calc(var(--confirm-price-y) + var(--confirm-price-height) + 8px);
    height: var(--confirm-row-height);
  }
  .buy.buy--confirm .buy-card__stepper .stake {
    left: 24.2%; width: 52%; min-width: 0; min-height: 44px; padding: 2px 4px;
  }
  .buy.buy--confirm .buy-card__stepper.stake-group--modal .step-btn {
    width: min(var(--confirm-row-height), 11.094cqw);
    height: min(var(--confirm-row-height), 11.094cqw);
    top: calc(50% - min(var(--confirm-row-height), 11.094cqw) * .5);
  }
  .buy.buy--confirm :is(.is-gold, .is-royal) .buy-card__price {
    left: 20%; right: 20%; width: auto;
    border-radius: 2px; background: rgba(230, 219, 185, .96);
  }
  .buy.buy--confirm .buy-card__back,
  .buy.buy--confirm .buy-card__buy {
    top: calc(var(--confirm-price-y) + var(--confirm-price-height) + 8px + var(--confirm-row-height) + var(--confirm-row-gap));
    bottom: auto; width: 29%; height: var(--confirm-row-height);
    font-size: clamp(12px, 4.2cqw, 20px);
  }
  .buy.buy--confirm .buy-card__back { left: 18%; }
  .buy.buy--confirm .buy-card__buy { right: 18%; }
}




@media (orientation: portrait) and (max-height: 559px) {
  .buy.buy--confirm {
    width: min(calc(100vw - 16px), 360px);
    max-height: calc(100dvh - 16px); height: auto; box-sizing: border-box;
    padding: 24px 12px 16px; overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bda77c transparent;
  }
  .buy.buy--confirm .buy__ribbon--wide {
    left: 10%; top: 8px; width: 80%;
  }
  .buy.buy--confirm .card__knob--corner {
    top: 24px; right: 8px;
  }
}



@media (orientation: portrait) and (max-width: 560px) and (min-height: 392px) and (max-height: 600px) {
  .buy .card__knob--corner {
    right: max(calc(7.88vw - 6px), calc(env(safe-area-inset-right) + 8px));
  }
}


.card__knob--corner {
  position: absolute;
  top: max(2.2dvh, calc(env(safe-area-inset-top) + 8px));
  right: max(2vw, calc(env(safe-area-inset-right) + 8px));
  left: auto; transform: none;
  width: clamp(44px, 3.7vw, 71px); height: clamp(44px, 3.7vw, 71px);
  background: rgba(7, 7, 7, 0.5);




















  z-index: 1;
}
.card__knob--corner:active { scale: 0.92; }













@media (min-width: 761px) and (orientation: landscape), (min-width: 561px) and (orientation: landscape) and (max-height: 500px) {
  .buy .card__knob--corner {
    top: max(calc(50 * var(--canvas-u)), calc(env(safe-area-inset-top) + 8px));
    right: max(calc(50.5 * var(--canvas-u)), calc(env(safe-area-inset-right) + 8px));
    width: calc(71.5 * var(--canvas-u)); height: calc(71.5 * var(--canvas-u));
  }
  @media (pointer: coarse) {
    .buy .card__knob--corner::after {
      content: ''; position: absolute; left: 50%; top: 50%;
      width: max(var(--hit-min), 100%); height: max(var(--hit-min), 100%);
      transform: translate(-50%, -50%);
    }
  }


















  .buy-card__stepper .stake__k { font-size: calc(20 * var(--canvas-u)); }
  .buy-card__stepper .stake__v { font-size: calc(24 * var(--canvas-u)); }
  .buy__stepper .stake__k { font-size: calc(14 * var(--canvas-u)); }
  .buy__stepper .stake__v { font-size: calc(16 * var(--canvas-u)); }
}


.bet-grid { display: grid; gap: 8px; grid-template-columns: repeat(5, 1fr); }
.bet-cell {
  min-height: var(--hit-min); border-radius: 8px;
  border: 1px solid var(--panel-edge); background: rgba(50, 32, 58, 0.55);
  font-size: 14px; font-variant-numeric: tabular-nums;
}
.bet-cell[aria-pressed="true"] { background: var(--gold); color: #201408; font-weight: 700; }

.bet-chooser.card--flat .bet-cell,
.card--auto .bet-cell[aria-pressed="true"] { font-weight: 900; }








.rules-shell {
  position: relative;
  width: min(1390px, 94vw); height: min(758px, 84dvh);








  background: rgba(7, 7, 7, 0.8235);
  border-radius: 16px; overflow: hidden;
}
.rules-shell .card__knob--corner {
  top: 28px; right: 19px;
  width: clamp(44px, 3.75vw, 72px); height: clamp(44px, 3.75vw, 72px);




  background: #0C0F0C;
}

.rules {
  height: 100%; overflow-y: auto;
  padding: 99px 0 60px;
  scrollbar-width: thin; scrollbar-color: #C3C3C3 #474747;
}
.rules > * { width: 67.5%; margin-left: auto; margin-right: auto; }


.card--failure .card__scroll { padding: 8px; }
.rules [data-rules-section] { scroll-margin-top: 16px; }
.rules-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rules-modes__button {
  flex: 1 1 130px; min-width: 0; min-height: 44px;
  padding: 8px 10px; color: #fff; line-height: 1.25;
  background: #46352b; border-color: #84724f;
}
@media (hover: hover) and (pointer: fine) {
  .rules-modes__button:hover:not([aria-pressed="true"]) { background: #604b32; }
}
.rules-modes__button[aria-pressed="true"] { background: #edb715; color: #252525; }
.rules .rules-mode-note { margin-top: 0; }









@media (hover: hover) and (pointer: fine) {
  [data-scrollable] { cursor: grab; }
  [data-scrollable][data-dragging] { cursor: grabbing; }
}





.a11y-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.rules::-webkit-scrollbar { width: 13px; }














.rules::-webkit-scrollbar-track {
  background: #474747; border-radius: 6.5px; margin: 133px 0 48px;
}
.rules::-webkit-scrollbar-thumb { background: #C3C3C3; border-radius: 6.5px; }
@media (max-width: 1024px), (orientation: portrait) {

  .rules { scrollbar-color: rgba(199, 169, 113, 0.5) transparent; }
  .rules::-webkit-scrollbar { width: 5px; }
  .rules::-webkit-scrollbar-track { background: transparent; }
  .rules::-webkit-scrollbar-thumb { background: rgba(199, 169, 113, 0.5); border-radius: 5px; }
}








.rules h3 {
  margin-top: 49px; margin-bottom: 44px; text-align: center;
  font-size: clamp(16px, 1.56vw, 30px); font-weight: 700;
  color: #EDB715; text-transform: uppercase; letter-spacing: 0;
}
.rules h3:first-child { margin-top: 0; }







.rules p {
  margin-top: 0; margin-bottom: 0; text-align: center;
  font-size: clamp(12px, 1.25vw, 24px); line-height: 1.38; color: #fff;
}

.rules p b { font-weight: 700; }

.rules p.rules-howto b { font-weight: 900; }
.rules .rules-payouts-title {
  font-family: "Inter", var(--font); font-optical-sizing: none;
}

.rules > .paytable .paytable__pay {
  font-family: "Inter", var(--font); font-optical-sizing: none;
}
.rules-keyboard {
  border-collapse: separate;
  border-spacing: 0 6px;
  table-layout: fixed;
  color: #f7f0d9;
  font-size: clamp(12px, 1.1vw, 18px);
  line-height: 1.25;
}
.rules-keyboard th,
.rules-keyboard td {
  padding: 10px 12px;
  background: #313131;
  text-align: left;
  overflow-wrap: anywhere;
}
.rules-keyboard th { width: 38%; color: #edc46f; font-weight: 800; border-radius: 9px 0 0 9px; }
.rules-keyboard td { border-radius: 0 9px 9px 0; }















.limits__lead {
  margin: 0 0 14px; text-align: center;
  font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.66);
}
.facts { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 15px; }
.facts tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.facts td {
  display: flex; align-items: center; height: auto; min-height: 45px; padding: 8px 12px;
  line-height: 1.25; background: #313131; border: none;
}
.facts td:first-child { border-radius: 14px 0 0 14px; color: #fff; }
.facts td:last-child {
  border-radius: 0 14px 14px 0; justify-content: flex-end;
  color: #EDB715; font-weight: 800; font-variant-numeric: tabular-nums;
}











.paytable {
  display: grid; grid-template-columns: repeat(6, 1fr);












  gap: clamp(24px, 3.75vw, 72px) 0; align-items: start; justify-items: center;



  margin-top: 8px; margin-bottom: 18px;
}
.paytable__cell { display: grid; justify-items: center; width: 103%; }

.paytable__sym { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.paytable__sym--stub {
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border-radius: 8px;
  font-size: clamp(9px, 0.94vw, 18px); color: var(--ink-dim);
}
.paytable__pays { display: grid; justify-items: center; margin-top: 2%; }
.paytable__pay {
  font-size: clamp(13px, 1.25vw, 24px); line-height: 1.14; color: #fff;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}



@media (max-width: 900px) {
  .paytable { grid-template-columns: repeat(3, 1fr); }
}



@media (max-width: 560px), (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .paytable { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 24px 12px; }
  .paytable__cell { width: 100%; }
  .paytable__sym { width: min(100%, 112px); }
  .paytable__pay { font-size: 14px; line-height: 1.25; }
}



@media (max-width: 420px) and (orientation: portrait) {
  .paytable { grid-template-columns: minmax(0, 1fr); }
  .paytable__pays { width: 100%; min-width: 0; }
  .paytable__pay { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
  .rules h3 { overflow-wrap: anywhere; }
}














.celebration {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; align-content: center; gap: clamp(6px, 2dvh, 16px);


  background: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } }

.celebration__hit {
  position: absolute; inset: 0; z-index: 3;
  background: none; border: 0; padding: 0; cursor: pointer;
}











.celebration__stage {


  position: absolute; z-index: 1; top: 0;
  left: calc(50% - 960 * var(--canvas-u));
  width: calc(1920 * var(--canvas-u)); height: calc(1080 * var(--canvas-u));
  animation: celebrateIn 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}
@keyframes celebrateIn {
  0%   { transform: scale(0.6) translateY(24px); opacity: 0; }
  62%  { transform: scale(1.05) translateY(0);   opacity: 1; }
  100% { transform: scale(1)    translateY(0);   opacity: 1; }
}




.celebration__rays {
  position: absolute; pointer-events: none; object-fit: contain;
  inset: auto;
  left: calc(348 * var(--canvas-u)); top: calc(-173 * var(--canvas-u));
  width: calc(1224 * var(--canvas-u)); height: calc(1224 * var(--canvas-u));




  animation: raysPulse 2.6s ease-in-out infinite, winGlowSpin 30s linear infinite;
}




.celebration__rays--scroll {
  left: calc(105 * var(--canvas-u)); top: calc(-265 * var(--canvas-u));
  width: calc(1711 * var(--canvas-u)); height: calc(1543 * var(--canvas-u));
  opacity: 0.55;
  animation: raysPulse 3.4s ease-in-out infinite, winGlowSpin 46s linear infinite;
}

.celebration[data-kind="tier"]   .celebration__rays--scroll { display: none; }
.celebration[data-kind="scroll"] .celebration__rays--tier   { display: none; }
@keyframes raysPulse { 0%,100% { opacity: 0.72; } 50% { opacity: 1; } }












.celebration[data-kind="tier"] .celebration__scroll,
.celebration[data-kind="tier"] .celebration__lead,
.celebration[data-kind="tier"] .celebration__slot--scroll,
.celebration[data-kind="tier"] .celebration__sub { display: none; }
.celebration[data-kind="scroll"] .celebration__plate { display: none; }








.celebration__plate { position: absolute; z-index: 2; line-height: 0; }
.celebration[data-tier="big"] .celebration__plate {
  left: calc(767 * var(--canvas-u)); top: calc(259 * var(--canvas-u));
  width: calc(385 * var(--canvas-u)); height: calc(461 * var(--canvas-u));
}
.celebration[data-tier="mega"] .celebration__plate {
  left: calc(763 * var(--canvas-u)); top: calc(260 * var(--canvas-u));
  width: calc(394 * var(--canvas-u)); height: calc(482 * var(--canvas-u));
}
.celebration[data-tier="sensational"] .celebration__plate {
  left: calc(724 * var(--canvas-u)); top: calc(224 * var(--canvas-u));
  width: calc(472 * var(--canvas-u)); height: calc(520 * var(--canvas-u));
}










.celebration__art {
  display: block; width: 100%; height: 100%; object-fit: contain;
}
.celebration__art:not([src]) { display: none; }



























.celebration[data-kind="tier"] .celebration__slot:not(.celebration__slot--scroll) {



  position: absolute; z-index: 3;
  width: calc(183 * var(--canvas-u)); height: calc(65 * var(--canvas-u));
  display: grid; place-items: center; text-align: center; white-space: nowrap;


  font-size: calc(48 * var(--canvas-u) * var(--fit, 1)); font-weight: 900;




  color: #f1b534; font-variant-numeric: tabular-nums;
  text-shadow: 0 calc(3 * var(--canvas-u)) 0 #000;
}



.celebration[data-tier="big"] .celebration__slot:not(.celebration__slot--scroll) {
  left: calc(101 * var(--canvas-u)); top: calc(360 * var(--canvas-u));
}
.celebration[data-tier="mega"] .celebration__slot:not(.celebration__slot--scroll) {
  left: calc(105 * var(--canvas-u)); top: calc(377 * var(--canvas-u));
}
.celebration[data-tier="sensational"] .celebration__slot:not(.celebration__slot--scroll) {
  left: calc(144 * var(--canvas-u)); top: calc(413 * var(--canvas-u));
}



















.celebration__scrollbox { position: absolute; inset: 0; z-index: 2; }




















.celebration__scrollbox::before {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  left: 35.68%; top: 35.37%; width: 28.59%; height: 26.76%;
  border-radius: 50%; background: #FFF5CD;
  filter: blur(calc(36 * var(--canvas-u)));
}

.celebration[data-kind="tier"] .celebration__scrollbox::before { display: none; }

.celebration__stage[data-reward-renderer="spine"] .celebration__scrollbox::before { display: none; }

.celebration__scroll {
  position: absolute; z-index: 1; pointer-events: none; object-fit: contain;
  left: calc(535 * var(--canvas-u)); top: calc(52 * var(--canvas-u));
  width: calc(850 * var(--canvas-u)); height: calc(910 * var(--canvas-u));
}













.celebration__banner {
  position: absolute; z-index: 2;
  left: calc(672 * var(--canvas-u)); top: calc(213 * var(--canvas-u));
  width: calc(575 * var(--canvas-u)); height: calc(75 * var(--canvas-u));
  display: grid; place-items: center; white-space: nowrap;
  text-align: center; font-weight: 800;
  font-size: calc(56 * var(--canvas-u)); letter-spacing: 0;
  color: #fcd563; text-shadow: 0 calc(3 * var(--canvas-u)) 0 #000;
}
.celebration__lead {
  position: absolute; z-index: 2;
  left: calc(798 * var(--canvas-u)); top: calc(359 * var(--canvas-u));
  width: calc(323 * var(--canvas-u)); height: calc(54 * var(--canvas-u));
  display: grid; place-items: center; white-space: nowrap;
  text-align: center; font-weight: 700;
  font-size: calc(40 * var(--canvas-u)); letter-spacing: 0;

  color: #38200f; text-shadow: 0 min(1px, calc(3 * var(--canvas-u))) 0 rgba(255, 244, 205, 0.5);
}


.celebration__slot--scroll {
  position: absolute; z-index: 2;




  left: calc(710 * var(--canvas-u)); top: calc(445 * var(--canvas-u));
  width: calc(501 * var(--canvas-u)); height: calc(171 * var(--canvas-u));










  display: grid; place-items: center; padding-bottom: calc(38 * var(--canvas-u));
  text-align: center; white-space: nowrap;




  background: url('../assets/win/text-plate-dark-plank.webp') center / 100% 100% no-repeat;


  font-size: calc(72 * var(--canvas-u) * var(--fit, 1)); font-weight: 900;
  font-variant-numeric: tabular-nums;


  background-image:
    linear-gradient(#ead577 41.58%, #a0682b 73.53%, #ead577 83.97%),
    url('../assets/win/text-plate-dark-plank.webp');
  background-clip: text, padding-box;
  -webkit-background-clip: text, padding-box;
  background-size: 100% 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  color: transparent;
  filter: drop-shadow(0 calc(8 * var(--canvas-u)) calc(0.8 * var(--canvas-u)) rgba(0,0,0,0.85));
}


.celebration[data-award="1"] .celebration__slot--scroll {
  font-size: calc(106 * var(--canvas-u) * var(--fit, 1));
  padding-bottom: 0;
  line-height: 1;
}
.celebration__sub {
  position: absolute; z-index: 2;
  left: calc(782 * var(--canvas-u)); top: calc(624 * var(--canvas-u));
  width: calc(355 * var(--canvas-u)); height: calc(54 * var(--canvas-u));
  display: grid; place-items: center; white-space: nowrap;
  text-align: center; font-weight: 700;
  font-size: calc(40 * var(--canvas-u)); letter-spacing: 0.04em;
  color: #38200f; text-shadow: 0 min(1px, calc(3 * var(--canvas-u))) 0 rgba(255, 244, 205, 0.5);
}



























.celebration__hint {
  pointer-events: none;
  position: absolute; z-index: 4; left: 0; right: 0;
  top: min(calc(955 * var(--canvas-u)),
           calc(100dvh - var(--chrome-h) - 44 * var(--canvas-u) - 10px));
  height: calc(44 * var(--canvas-u));
  text-align: center; line-height: calc(44 * var(--canvas-u));
  font-size: calc(32 * var(--canvas-u)); font-weight: 900; color: #f2efe6;
  animation: hintBlink 1.8s ease-in-out infinite;
}
@keyframes hintBlink { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }




@media (max-width: 1100px) {
  .stat { padding: 7px 11px; }
  .stat__v { font-size: 15px; }
  .scene__logo { width: min(140px, 15vw); }
}


















@media (max-height: 760px) {
  :root {
    --chrome-h: clamp(96px, 17dvh, 150px);
    --hit-min: clamp(44px, 7.6dvh, 53px);
    --primary-min: clamp(56px, 12dvh, 88px);
  }
  .stat__v { padding: 4px 10px; min-width: 78px; font-size: 15px; }
  .stat__k { font-size: 10px; }
  .stake { min-width: 84px; padding: 4px 10px; }
  .stake__v { font-size: 15px; }
  .buy-btn { width: clamp(56px, 12dvh, 96px); height: clamp(56px, 12dvh, 96px); }
}







@media (max-width: 820px) and (orientation: landscape) {
  .chrome { padding-left: 6px; padding-right: 6px; }
  .chrome__row { flex-wrap: nowrap; justify-content: space-between; gap: 4px; }
  .panel { gap: 6px; min-width: 0; }
  .panel--data { flex: 1 1 auto; min-width: 0; justify-content: center; }
  .panel--entries, .panel--action { flex: 0 0 auto; }
  .stat__v { min-width: 0; padding: 4px 8px; font-size: 13px; }
  .stat__k { font-size: 9px; }
  .stake { min-width: 0; padding: 4px 8px; }
  .stake__v { font-size: 13px; }
  .ante { padding: 0 2px; }
  .ante__k { font-size: 8px; }




  .scene__mascot { height: 46%; }

}












































@media (max-width: 560px), (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  :root {
    --u: min(calc(100vw / 360), calc(100dvh / 812));
    --ox: calc((100vw - 360 * var(--u)) / 2);
  }
}
@media (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
















  :root {
    --chrome-h: calc(40 * var(--u));

    --mobile-control-size: clamp(30px, calc(30 * var(--u)), 44px);
  }


  .game { display: block; }
  .scene { position: fixed; inset: 0; }
































  .side-btns--left {
    position: fixed;
    top: max(calc(7 * var(--u) - (44px - 32 * var(--u)) / 2), env(safe-area-inset-top));
    right: max(0px, calc(8 * var(--u) - (44px - 32 * var(--u)) / 2));
    left: auto; bottom: auto; transform: none; z-index: 7;
    flex-direction: row; gap: 6px;
  }



  #btnMenu, #btnSound {
    position: fixed;
    top: max(calc(7 * var(--u) - (44px - 32 * var(--u)) / 2), env(safe-area-inset-top));
    z-index: 7;
    width: 44px; height: 44px; padding: 6px;
    background: none;
  }
  #btnMenu::before, #btnSound::before {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: calc(32 * var(--u)); height: calc(32 * var(--u));
    transform: translate(-50%, -50%);
    background: #111; border-radius: 50%; z-index: -1;
  }
  .side-btns--left #btnSound { position: static; }

  #btnMenu  { left: max(0px, calc(8 * var(--u) - (44px - 32 * var(--u)) / 2)); }
  #btnSound { right: max(0px, calc(8 * var(--u) - (44px - 32 * var(--u)) / 2)); }






















  .chrome {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
    --footer-turbo-left: max(calc(219 * var(--u) + 5px), calc(143.5 * var(--u) + 49px));
    min-height: 0; height: calc(max(44px, 40 * var(--u)) + env(safe-area-inset-bottom));
    padding: 0 0 env(safe-area-inset-bottom);
    background: none;
  }


  .chrome__row::before { content: none; }






  .chrome__row {
    position: relative; display: block;
    width: calc(360 * var(--u)); height: max(44px, calc(40 * var(--u)));
    margin: 0 auto; padding: 0; gap: 0;
  }




  .chrome__row > .panel--entries { position: static; display: contents; }




  .panel--data {
    position: fixed; left: 8px; top: auto;
    bottom: env(safe-area-inset-bottom);
    width: calc(var(--ox) + 142 * var(--u) - 65px);
    height: max(45px, calc(40 * var(--u) + 8px)); min-height: 0;
    pointer-events: none;
  }
  .panel--data .stat {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0; width: 100%; height: 100%; padding: 0; background: none; border: 0;
  }
  .panel--data .stat__k { font-size: max(11px, calc(11 * var(--u))); letter-spacing: 0; line-height: 1.2; }


  .panel--data .stat--inline .stat__k { margin: 0; }
  .panel--data .stat__v {
    width: 100%; max-width: 100%; box-sizing: border-box;
    font-size: max(14px, calc(14 * var(--u))); line-height: 1.3;
  }

  .stat--win, #statMid { display: none !important; }





  .chrome__row #segs {
    position: fixed; left: var(--hw-segs-left, 50%); top: var(--hw-segs-top, 60dvh);
    right: auto; bottom: auto; transform: translateX(-50%);
    width: var(--hw-segs-width, clamp(132px, 44vw, 240px)); height: auto;
    display: grid; grid-template-columns: minmax(0, 1fr);
    justify-items: center; gap: 0; pointer-events: none;
  }
  .chrome__row #segs .segs__row {
    display: flex; width: 100%; min-width: 0; gap: 4px;
  }
  .chrome__row #segs .seg {
    flex: 1 1 0; min-width: 0; width: auto;
    height: clamp(14px, 4vw, 20px); padding: 2px; margin: 0;
    box-shadow: 0 1px 3px #0006;
  }


  .chrome__row #segs .segs__label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%);
    white-space: nowrap;
  }








  .chrome__row .side-btns:not(.side-btns--left) { display: contents; }


  #btnAuto {
    position: fixed; z-index: 8;


    left: calc(var(--ox) + 142 * var(--u) - 49px);
    bottom: calc((max(45px, 40 * var(--u) + 8px) - 44px) / 2 + env(safe-area-inset-bottom));
    width: 44px; height: 44px;
    padding: 0; border: 0; border-radius: 50%; background: transparent; transform: none;
  }
  #btnAuto svg { display: block; width: 78%; height: 78%; visibility: hidden; }
  #btnAuto::before {
    content: ''; position: absolute; z-index: 1; left: 50%; top: 50%; pointer-events: none;
    width: var(--mobile-control-size); height: var(--mobile-control-size);
    transform: translate(-50%, -50%);
    background: url('../assets/ui/mob-icon-autoplay.svg') center / 100% 100% no-repeat;
  }



























  #btnAuto::after, #btnBetMenu::after, .panel--action .stake::after {
    content: ''; position: absolute; bottom: 0; top: auto;
    width: max(44px, 100%); height: max(44px, 100%);
  }
  #btnAuto::after    { right: 0; }
  #btnBetMenu::after { left: 0; }
  .panel--action .stake::after { left: 50%; transform: translateX(-50%); }

  .ante, #btnInfo { display: none !important; }





  .buy-btn {
    position: absolute; left: calc(143.5 * var(--u)); top: auto; bottom: calc(3 * var(--u));
    width: max(44px, calc(73 * var(--u))); height: max(44px, calc(73 * var(--u)));
    margin: 0; z-index: 9;
  }


  #btnBetMenu {
    display: none !important;
    position: absolute; left: calc(219 * var(--u)); top: auto; bottom: calc(5 * var(--u));
    width: calc(30 * var(--u)); height: calc(30 * var(--u));
    padding: 0; border: 0; border-radius: 50%; background: #010101;
  }
  #btnBetMenu svg { display: block; width: 80%; height: 80%; }
  #btnBetMenu::before {
    content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none;
    background: url('../assets/ui/mob-icon-coins.svg') center / 100% 100% no-repeat;
  }


  .chrome__row #btnTurbo {
    display: grid !important; place-items: center;
    position: fixed; z-index: 8; top: auto; right: auto;
    left: calc(var(--ox) + var(--footer-turbo-left));
    bottom: calc((max(45px, 40 * var(--u) + 8px) - 44px) / 2 + env(safe-area-inset-bottom));
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; transform: none;
  }
  .chrome__row #btnTurbo::before {
    content: ''; position: absolute; z-index: -1; left: 50%; top: 50%;
    width: var(--mobile-control-size); height: var(--mobile-control-size);
    transform: translate(-50%, -50%); border-radius: 50%; background: #010101;
  }
  .chrome__row #btnTurbo[aria-pressed="true"]::before { background: #e4b73d; }
  .chrome__row #btnTurbo svg { width: var(--mobile-control-size); height: var(--mobile-control-size); }
  .chrome__row #btnTurbo::after { content: none; }
  @media (hover: hover) and (pointer: fine) {

    .chrome__row #btnTurbo:hover, .chrome__row #btnAuto:hover { background: transparent; }
  }





  .panel--action .stake,







  .mob-counter {
    position: fixed; z-index: 8;


    --bet-left: max(
      calc(var(--ox) + 249 * var(--u) + 8px),
      calc(var(--ox) + var(--footer-turbo-left) + 49px)
    );
    background-image: none;
    background-size: calc(100% - 10px) 3px;
    background-position: center bottom;
    background-repeat: no-repeat;
    border-radius: calc(4 * var(--u));

    left: var(--bet-left);
    bottom: env(safe-area-inset-bottom);
    width: calc(100vw - var(--bet-left) - 8px);
    height: max(45px, calc(40 * var(--u) + 8px));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0; min-width: 0; min-height: 0; padding: 0; border: 0;

    background-color: transparent;
  }



  :where(.game[data-phase="bg2"]) .mob-counter {
    background-image: linear-gradient(to right,
      rgba(255, 209, 102, .82) var(--fill, 0%),
      rgba(255, 209, 102, .16) var(--fill, 0%));
  }
  .panel--action .stake__k {
    font-size: max(11px, calc(11 * var(--u))); letter-spacing: 0; line-height: 1.2;
  }



  .board__cells[data-bonus="1"] .cell__nominal,
.board__cells .cell__nominal--preview {
    left: 3%; right: 3%;
    font-size: calc(max(25px, calc(10px / var(--board-scale, 1))) * var(--nom-fit, 1));
    line-height: 1; height: max(20%, calc(12px / var(--board-scale, 1)));
  }














  .mob-counter .stake__k {
    white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
    letter-spacing: 0.06em; line-height: 1.2;








    font-size: max(10px, calc(8 * var(--u)));
  }
  .panel--action .stake__v, .mob-counter .stake__v {
    font-size: max(14px, calc(14 * var(--u))); line-height: 1.3;
  }


  .game[data-counter="1"] .mob-counter { display: flex; }








  .game[data-counter="1"] .panel--action .stake { display: none; }







  .panel--action {
    position: fixed; left: 0; right: 0; margin: 0 auto; z-index: 7;
    width: calc(145 * var(--u)); height: calc(85 * var(--u));
    bottom: calc(73 * var(--u) + env(safe-area-inset-bottom));
    display: block; padding: 0; border-radius: 0; background: none;
  }
  .panel--action::before {
    content: ''; position: absolute; inset: calc(6 * var(--u));
    border-radius: 999px; background: rgba(0, 0, 0, 0.55);
    filter: blur(calc(9 * var(--u)));
    z-index: 0; pointer-events: none;
  }
  .panel--action .stake-group { display: contents; }
  .panel--action #btnSpin {
    position: absolute; left: calc(36 * var(--u)); top: calc(5 * var(--u));
    width: max(44px, calc(74 * var(--u))); height: max(44px, calc(74 * var(--u)));
    margin: 0; z-index: 2;
  }
















  .panel--action .step-btn {
    position: absolute; top: calc(5 * var(--u) + (max(44px, 74 * var(--u)) - var(--mobile-control-size)) / 2); z-index: 2;
    width: var(--mobile-control-size); height: var(--mobile-control-size);
    padding: calc(var(--mobile-control-size) * 1.64 / 29);
    background: #010101; border: 0; border-radius: 50%;
  }













  .panel--action .step-btn::after {
    content: ''; position: absolute; top: calc(50% - 1px);
    width: max(44px, 100%); height: max(44px, 100%);
    transform: translateY(-50%);
  }


  #betDown::after { left: auto; right: 0; }
  #betUp::after   { left: 0; right: auto; }
  #betDown { left: min(calc(4.5 * var(--u)), calc(36 * var(--u) - var(--mobile-control-size) - 5px)); }
  #betUp   { left: max(calc(112.5 * var(--u)), calc(36 * var(--u) + max(44px, 74 * var(--u)) + 5px)); }
  .panel--action .step-btn svg { stroke: #fff; stroke-width: 3.73; }


  .meter--reservoir .meter__help {
    left: auto; right: 21%; width: max(44px, 40%);
  }

















  .board__clock { top: 46px; font-size: 46px; line-height: 54px; width: 500px; left: 297px; }
  .board__clock--win::before {
    content: 'WIN'; position: absolute; left: 0; right: 0; bottom: 96%;
    font-size: 38px; line-height: 42px; letter-spacing: 0.06em;
    color: #EDB715; -webkit-text-fill-color: #EDB715;
    background: none; -webkit-background-clip: border-box; background-clip: border-box;
  }




  .board-wrap {
    align-items: start; justify-items: center;
    padding-top: 13.3dvh;
    padding-top: calc(13.3dvh + var(--game-safe-top));
  }


  .game[data-levels="1"] .board-wrap {
    padding-top: 21.5dvh;
    padding-top: calc(21.5dvh + var(--game-safe-top));
  }



  #mascotArt { z-index: 0; }









  #reservoirMeter { z-index: 7; }

  #ingredients { z-index: 8; }



















  .scroll__art { display: none; }
  .scroll {
    background: rgba(11, 11, 11, 0.72);
    border-radius: 12px;
  }












  .scroll--total { background: none; border-radius: 0; }
  .scroll--total .scroll__art { display: block; }



























  .scroll .scroll__rows { inset: 3% 5% 3% 7%; gap: 1.5%; }



  .scroll .scroll__row {









    grid-template-columns: 1fr max-content;
    gap: 4%; padding: 0; border-radius: 0;
    background: none !important; border: 0 !important; box-shadow: none !important;
  }



  .scroll .scroll__row { min-height: 0; }


  .scroll .scroll__pay { white-space: nowrap; }






  .scroll .scroll__rank { text-align: left; }

































  .ingredients .ingredient__img { width: 30%; left: -12%; }





  .ingredients .ingredient__n   { font-size: calc(8.6cqw * var(--fit, 1)); }









  .ingredients { grid-template-rows: repeat(2, 34%); row-gap: 12%; }

  .card--flat .bet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}






@media (orientation: portrait) and (max-height: 476px) {
  .panel--action {
    bottom: calc(73 * var(--u) + max(0px, calc(89px - 150 * var(--u))) + env(safe-area-inset-bottom));
  }
  #btnBetMenu { left: max(calc(219 * var(--u)), calc(143.5 * var(--u) + 45px)); }
  .panel--action .stake, .mob-counter {
    --bet-left: max(
      calc(var(--ox) + 249 * var(--u) + 8px),
      calc(var(--ox) + var(--footer-turbo-left) + 49px)
    );
  }
}




@media (orientation: portrait) and (max-height: 476px),
       (orientation: portrait) and (max-width: 599px) and (min-aspect-ratio: 1/2) {
  #reservoirMeter {
    position: fixed; left: auto !important; top: auto !important;
    right: 0; bottom: calc(50px + env(safe-area-inset-bottom));
    transform: scale(0.65); transform-origin: bottom right;
  }
  .meter--reservoir .meter__help {
    top: 30%; width: max(68px, 40%); min-height: 68px;
  }
  .meter--reservoir .meter__help::after {
    width: 30px; height: 30px; font-size: 22px;
  }
  .meter--reservoir .meter__value { font-size: max(20px, 18cqw); }
}






























@media (max-height: 460px) {
  .scene__mascot, .scene__logo, #payScroll { display: none; }
}















@media (max-height: 460px) and (min-width: 700px) {
  :root { --chrome-h: 104px; }
  .chrome { padding-top: 6px; }
}
@media (orientation: landscape) and (max-height: 460px) and (max-width: 699px) {
  :root { --chrome-h: 132px; }
  .chrome { padding-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {















  *, *::before, *::after {
    animation-iteration-count: 1 !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }



  .card { animation: none !important; }
}














@media (prefers-reduced-motion: reduce) {














  .scene *, .chrome *,
  .scene *::before, .scene *::after,
  .chrome *::before, .chrome *::after { animation: none !important; transition: none !important; }

































  .board .cell--win .cell__img {
    animation: winPopCalm 300ms cubic-bezier(0.22, 0.9, 0.24, 1) both !important;
  }
















  .board .cell--gone .cell__img {
    transition: opacity var(--gone, 160ms) ease-in,
                transform var(--gone, 160ms) ease-in !important;
    transition-delay: 0ms !important;
  }
  .board .cell--fall .cell__img {
    animation: cellFall var(--fall-dur, 300ms) ease-in backwards !important;
  }
  @keyframes winPopCalm {
    from { transform: scale(1); }
    to   { transform: scale(1.16) translateY(-2.4%); }
  }
}








.spin-btn { position: relative; overflow: visible; }















.spin-btn__tilt {
  position: absolute; inset: 0; display: block;
  transition: transform 200ms cubic-bezier(0.165, 0.84, 0.44, 1);
}
.spin-btn__art {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.55));
}
.spin-btn__art:not([src]) { display: none; }



@media (hover: hover) and (pointer: fine) {
  .spin-btn:not(.spin-btn--spinning):not(:disabled):hover .spin-btn__tilt {
    transform: rotate(-30deg) scale(1.06);
    transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

.spin-btn--spinning .spin-btn__tilt {
  transform: none;
  transition: transform 150ms cubic-bezier(0.165, 0.84, 0.44, 1);
}


















@keyframes spinPressPop {
  0%   { transform: scale(1); }
  38%  { transform: scale(0.93); }
  100% { transform: scale(1); }
}
.spin-btn--press { animation: spinPressPop 260ms cubic-bezier(0.3, 1.5, 0.5, 1); }
@media (prefers-reduced-motion: reduce) {
  .spin-btn--press { animation: none; }
}







































































@keyframes spinPress { from { transform: rotate(0); } to { transform: rotate(360deg); } }















.spin-btn__turn { display: block; position: relative; width: 100%; height: 100%; }
.spin-btn--press .spin-btn__turn {
  animation: spinPress var(--spin-press, 700ms) cubic-bezier(0.22, 0.85, 0.3, 1);
}
.game[data-turbo="1"] { --spin-press: 320ms; }
@media (prefers-reduced-motion: reduce) {
  .spin-btn--press .spin-btn__turn { animation: none; }
}

























.spin-btn__halo { display: none; }












.spin-btn--stop {
  background: #111;
  box-shadow: inset 0 0 0 2px rgba(244, 236, 216, 0.12);
  color: #F4ECD8;
}
.spin-btn__icon--stop { position: absolute; inset: 28%; width: 44%; height: 44%; }
.spin-btn__icon--stop rect { fill: currentColor; stroke: none; }
.spin-btn--stop:has(.spin-btn__count:not([hidden])) .spin-btn__icon--stop {
  top: 14%; bottom: auto;
}






.board__part--branch { transform-origin: 90% 6%;  animation: sway 6.7s ease-in-out infinite; }
.board__part--herbs  { transform-origin: 40% 8%;  animation: sway 8.3s ease-in-out infinite reverse; }


@keyframes sway {
  0%, 100% { transform: rotate(-0.375deg); }
  50%      { transform: rotate(0.375deg); }
}


.board__part--candles { animation: none; filter: none; }



.scene__mascot { transform-origin: 50% 100%; animation: breathe 5.1s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1)      translateY(0); }
  50%      { transform: scale(1.012)  translateY(-0.4%); }
}





.game { --base-sky-x: 50%; }
.game[data-phase="base"] .scene__bg { object-position: var(--base-sky-x) 0%; }
.scene__sky {
  position: fixed; inset: 0; overflow: hidden;
  z-index: 0; pointer-events: none;
}
.scene__sky-art {
  position: absolute; left: var(--base-sky-x); top: 0;
  width: max(100vw, calc(100dvh * 16 / 9));
  height: max(100dvh, calc(100vw * 9 / 16));
  translate: calc(-1 * var(--base-sky-x)) 0;
}
.scene__sky-art img {
  position: absolute; max-width: none;
  animation-play-state: paused;
}
.scene__sky-stars {
  opacity: 0.65;
  animation: authoredStars 7.3s ease-in-out -1.1s infinite;
}
.scene__sky-stars--1 {
  left: 13.7109375%; top: 0%; width: 86.2890625%; height: 12.4305556%;
}
.scene__sky-stars--2 {
  left: 12.4609375%; top: -0.0694444%; width: 86.7578125%; height: 17.7083333%;
  animation-duration: 9.1s; animation-delay: -5.3s;
}
.scene__sky-stars--3 {
  left: 4.0234375%; top: 2.0833333%; width: 85.7421875%; height: 13.4722222%;
  animation-duration: 8.3s; animation-delay: -3.7s;
}
@keyframes authoredStars {
  0%, 18%, 100% { opacity: 0; }
  48%, 60% { opacity: 1; }
  80% { opacity: 0.25; }
}



.scene__sky-moon {
  left: 72.109375%; top: 1.9444444%; width: 7.1875%; height: 15.6944444%;
  filter: brightness(1.3);
  opacity: 0.35; animation: authoredMoon 8.6s ease-in-out -2s infinite;
}
@keyframes authoredMoon {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.9; }
}
.scene__sky[data-running="1"] .scene__sky-art img { animation-play-state: running; }
.scene__sky[data-calm="1"] .scene__sky-art img { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .scene__sky-art img { animation: none !important; }
}
@media (orientation: portrait), (max-width: 760px) and (min-height: 501px) {

  .game { --base-sky-x: 82.5459318%; }
}



.meter--energy { position: absolute; }

.meter__glow {
  display: none;
  position: absolute; inset: -22%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(107,255,168,0.45) 0%, rgba(107,255,168,0.12) 50%, transparent 72%);
  opacity: 0; transition: opacity 0.5s ease;
}






































.meter--energy[data-phase="1"] .meter__glow { opacity: 0.5; animation: seal 4s ease-in-out infinite; }
.meter--energy[data-phase="2"] .meter__glow { opacity: 0.7; animation: seal 4s ease-in-out infinite; }
.meter--energy[data-phase="3"] .meter__glow {
  opacity: calc(0.6 + 0.35 * var(--seal-rush, 0));
  animation: seal 2s ease-in-out infinite;
}















.meter--energy[data-phase="4"] .meter__glow {












  opacity: 1;
  animation: sealReady 2s ease-in-out infinite;
}
@keyframes sealReady {
  0%, 100% { opacity: 0.86; }
  50%      { opacity: 1; }
}















.meter__label {
  position: absolute; left: 50%; top: 100%;
  --seal-label-x: clamp(calc(8px - var(--energy-label-center, 120px)), -50%, calc(var(--energy-label-right, 100vw) - var(--energy-label-center, 120px) - 100%));
  transform: translate(var(--seal-label-x, -50%), var(--seal-label-y, 0.2em));
  width: max-content; max-width: min(240px, 42vw, var(--energy-label-width, 240px));
  padding: 0.28em 0.7em;
  border-radius: 999px;
  background: rgba(12, 8, 16, 0.86);
  border: 1px solid rgba(255, 214, 120, 0.55);
  color: #FFE9B0; font-weight: 800; letter-spacing: 0.04em;




  font-size: clamp(10px, calc(20 * var(--canvas-u)), 20px);



  line-height: 1.2; text-align: center; text-wrap: balance;
  pointer-events: none; z-index: 6;
  animation: sealLabelIn 0.26s ease-out;
}
@keyframes sealLabelIn {
  from { opacity: 0; transform: translate(var(--seal-label-x, -50%), var(--seal-label-enter-y, 0.8em)); }
  to   { opacity: 1; transform: translate(var(--seal-label-x, -50%), var(--seal-label-y, 0.2em)); }
}
.meter__label[hidden] { display: none; }
@media (min-width: 1025px) and (orientation: landscape) {


  .meter__label {
    top: auto; bottom: calc(100% + 4px);
    max-width: var(--energy-label-width, 323px);
    font-size: clamp(11px, calc(var(--energy-label-height, 58px) * 0.29), 20px);
    --seal-label-y: 0px;
    --seal-label-enter-y: 0px;
  }
}
@media (orientation: portrait), (max-width: 760px) and (min-height: 501px) {


  .game[data-phase="base"] #energyMeter:has(.meter__label:not([hidden])) {
    z-index: 7;
  }
  .meter__label {
    max-width: var(--energy-label-width, calc(100vw - 16px));
    white-space: nowrap; text-wrap: nowrap;
    line-height: 1; padding: 0 0.4em; letter-spacing: 0.02em;
    --seal-label-y: 0px; --seal-label-enter-y: 0px;
  }
}











.meter__receipt {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7; pointer-events: none;
  font-weight: 900; letter-spacing: 0.02em;
  font-size: clamp(14px, calc(46 * var(--canvas-u)), 46px);
  color: #B6FFD0;
  text-shadow: 0 0 10px rgba(107, 255, 168, 0.9), 0 2px 4px rgba(0, 0, 0, 0.9);
}
.meter__receipt[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .meter__label { animation: none; }
}

.meter--energy.is-charged .meter__glow {
  animation: sealCharge 0.9s cubic-bezier(0.2, 0.8, 0.3, 1);
}



@keyframes sealCharge {
  0%   { opacity: 0.5; transform: scale(0.97); }
  40%  { opacity: 1;   transform: scale(1.06); }
  100% { opacity: 1;   transform: scale(1.00); }
}



.game[data-turbo="1"] .meter--energy.is-charged .meter__glow { animation-duration: 0.42s; }








.game[data-turbo="1"] { --pace: 0.45; }
















.game[data-hurry="1"] { --pace: 0.18; }
@media (prefers-reduced-motion: reduce) {
  .meter--energy.is-charged .meter__glow { animation: none; }
  .meter--energy[data-phase="4"] .meter__glow { animation: none; }
}



.meter__art--charged {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0; pointer-events: none;
  transition: opacity 420ms ease;
}
.meter--energy[data-phase="2"] .meter__art--charged { opacity: 0.45; animation: sealBreath 4s ease-in-out infinite; }







.meter--energy[data-phase="3"] .meter__art.meter__art--charged { opacity: 0.85; animation: sealBreath 2s ease-in-out infinite; }
.meter--energy[data-phase="4"] .meter__art--charged { opacity: 1;    animation: sealBreath 2.0s ease-in-out infinite; }


@keyframes sealBreath { 0%, 100% { filter: brightness(0.92); } 50% { filter: brightness(1.10); } }



.meter--energy.is-step { animation: sealStep 460ms cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes sealStep {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.09); }
  100% { transform: scale(1); }
}

.meter--energy[data-phase="2"] .meter__art  { filter: drop-shadow(0 0 8px rgba(107,255,168,0.7)); }





.meter--energy[data-phase="3"] .meter__art  { filter: drop-shadow(0 0 9px rgba(107,255,168,0.8)); animation: sealShake 2s ease-in-out infinite; }











@keyframes seal {
  0%, 100% { transform: scale(0.96); }
  50%      { transform: scale(1.04); }
}
@keyframes sealShake {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25%      { transform: translate(0.3px, -0.2px) rotate(0.2deg); }
  75%      { transform: translate(-0.25px, 0.25px) rotate(-0.18deg); }
}

.meter--energy.is-burst .meter__art { animation: sealBurst 0.62s cubic-bezier(0.3,1.4,0.6,1) forwards; }
.meter--energy.is-burst .meter__glow { animation: sealFlash 0.62s ease-out forwards; }
@keyframes sealBurst {
  0%   { transform: scale(1);    opacity: 1; }
  35%  { transform: scale(1.28); opacity: 1; }
  100% { transform: scale(0.55); opacity: 0; }
}
@keyframes sealFlash {
  0%   { opacity: 1;   transform: scale(1); }
  40%  { opacity: 1;   transform: scale(1.9); }
  100% { opacity: 0;   transform: scale(2.6); }
}



.cauldron__steam { position: absolute; left: 50%; top: -18%; width: 60%; height: 60%; pointer-events: none; }
.cauldron__steam i {
  position: absolute; bottom: 0; width: 18%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(150,255,180,0.5), transparent 68%);
  animation: steam 4.2s ease-in infinite;
}
.cauldron__steam i:nth-child(1) { left: -28%; animation-delay: 0s; }
.cauldron__steam i:nth-child(2) { left: -6%;  animation-delay: 1.4s; }
.cauldron__steam i:nth-child(3) { left: 14%;  animation-delay: 2.7s; }
@keyframes steam {
  0%   { transform: translateY(0) scale(0.5);      opacity: 0; }
  25%  { opacity: 0.75; }
  100% { transform: translateY(-320%) scale(1.5);  opacity: 0; }
}































.cauldron__splash {
  position: absolute; left: 50%; top: 41.5%;
  width: 46%; aspect-ratio: 2.6;
  transform: translate(-50%, -50%) scale(0.35);
  border-radius: 50%;
  border: 0.14em solid rgba(170, 255, 195, 0.85);
  opacity: 0; pointer-events: none; z-index: 3;
}
.meter--reservoir.is-hit .cauldron__splash {
  animation: cauldronSplash calc(420ms * var(--pace, 1)) cubic-bezier(0.2, 0.7, 0.3, 1);
}
@keyframes cauldronSplash {
  0%   { transform: translate(-50%, -50%) scale(0.35); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.1);  opacity: 0; }
}

.meter--reservoir.is-hit .cauldron__bubbles { filter: brightness(1.25); }
@media (prefers-reduced-motion: reduce) {
  .cauldron__splash { animation: none !important; }
  .meter--reservoir.is-hit .cauldron__bubbles { filter: none; }
}



.scroll { position: absolute; z-index: 3; pointer-events: none; }
.scroll__heading { display: none; }

















.scene__bg,
#mascotArt, #logoArt,
.meter, .cauldron__steam, .cauldron__bubbles, .cauldron__pulse,
.ingredients, .levels,
.fx-layer, .transition { pointer-events: none; }


.board-wrap { pointer-events: none; }
.board { pointer-events: auto; }
.meter__help { pointer-events: auto; }
.meter__help:disabled { pointer-events: none; }




@media (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .scroll--empty { display: none; }
}
.scroll__art { width: 100%; height: 100%; object-fit: contain; }


























.scroll--total { display: grid; place-items: center; }
.scroll--total .scroll__art { grid-area: 1 / 1; }



















.scroll--total[data-plate="0"]::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 150cqw; height: 118cqw;
  background: radial-gradient(closest-side ellipse,
    rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.58) 46%,
    rgba(0, 0, 0, 0.34) 72%, rgba(0, 0, 0, 0) 100%);
}
.scroll--total:has(.scroll__total-v:not(:empty))::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 282.2cqw; height: 281.2cqw;
  background: url('../assets/bonus/glow-burst-rays.webp') center / contain no-repeat;
  opacity: .14; transition: opacity 180ms ease;
}

.scroll--total[aria-live="off"]:has(.scroll__total-v:not(:empty))::before { opacity: .6; }




.scroll__total-k {
  position: relative;
  grid-area: 1 / 1; align-self: start;
  margin-top: 33.557cqw;
  white-space: nowrap;
  font-size: calc(10.7383cqw * var(--fit, 1)); letter-spacing: 0; font-weight: 900;
  line-height: normal; text-align: center; text-transform: uppercase;
}














.scroll__total-v {
  position: relative;
  grid-area: 1 / 1; align-self: start;
  margin-top: 47.3154cqw;
  font-weight: 900; letter-spacing: 0; line-height: normal; text-align: center;
  white-space: nowrap;











  font-size: calc(16.1074cqw * var(--fit, 1));
}




.scroll--total { --total-ink-outline: 2.0134cqw; --total-ink-shadow: 1.0067cqw; }
.scroll--total .scroll__total-k,
.scroll--total .scroll__total-v {
  color: #200303; text-shadow: none;
  -webkit-text-stroke: var(--total-ink-outline) #200303;
  paint-order: stroke fill;
  filter: drop-shadow(0 var(--total-ink-shadow) 0 #000);
}
.scroll--total .scroll__total-k::after,
.scroll--total .scroll__total-v::after,
.celebration[data-recap="holdwin"] .celebration__banner::after,
.celebration[data-recap="holdwin"] .celebration__slot--scroll::after {
  content: attr(data-plate-ink) / '';
  position: absolute; inset: 0; display: inherit; place-items: inherit;
  padding: inherit; box-sizing: inherit; pointer-events: none;
  background: linear-gradient(#ead577 41.582%, #a0682b 73.527%, #ead577 83.97%);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 0;
}
@media (orientation: portrait) and (max-width: 599px) {
  .scroll--total { --total-ink-outline: 1.9394cqw; --total-ink-shadow: 1.4545cqw; }
  .scroll__total-k { margin-top: 26.728cqw; font-size: calc(9.6968cqw * var(--fit, 1)); }
  .scroll__total-v { margin-top: 42.243cqw; font-size: calc(15.5149cqw * var(--fit, 1)); }
}
.scroll__art:not([src]) { display: none; }












.scroll__rows {
  position: absolute;



  left: 18.98%; right: 16.42%; top: 18.18%; bottom: 14.69%;
  margin: 0; padding: 0; list-style: none;
  display: grid;


  grid-template-rows: repeat(5, 14.58%);
  align-content: space-between;
}
.scroll__row {
  position: relative;


















  display: grid; grid-template-columns: 12% 1fr; align-items: center;
  column-gap: 24.86%; padding: 0 4.86%;



  border-radius: 7.4px; border: 0;
  background: rgba(0, 0, 0, 0.6);
}



.scroll__row--empty { opacity: 0.42; }



.scroll { container-type: inline-size; }









.scroll__rank {
  font-size: 6.6cqw; line-height: 1.35; font-weight: 900; color: #fff;
  text-align: right; font-variant-numeric: tabular-nums;
}




.scroll__sym  {


  position: absolute; left: 19.1%; top: 50%; transform: translateY(-50%);
  width: 22.6%; height: auto; aspect-ratio: 1; object-fit: contain;
}
.scroll__pay  {
  font-size: 7.3cqw; line-height: 1.35; font-weight: 900; color: #fff;
  text-align: right; font-variant-numeric: tabular-nums;




  white-space: nowrap;
}






.ingredients:empty { display: none !important; }











.ingredients[data-count="1"] {
  grid-template-columns: 72%;
  grid-template-rows: 22.95%;
  justify-content: center; row-gap: 0;
}
.ingredients[data-count="2"] {
  grid-template-rows: 22.95%;
  row-gap: 0;
}


.ingredients[data-count="3"] .ingredient:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  width: 47.46%;
}











@keyframes ingredientDrop {
  0%   { transform: scale(1); }
  38%  { transform: scale(1.14); }
  100% { transform: scale(1); }
}










.seg.is-refill > i {
  animation: segRefill 280ms ease-out;
  box-shadow: 0 0 9px rgba(255, 214, 110, 0.55);
}
@keyframes segRefill {
  0%   { filter: brightness(1); transform: scaleY(1); }
  40%  { filter: brightness(1.2); transform: scaleY(1.08); }
  100% { filter: brightness(1); transform: scaleY(1); }
}
.seg.is-consuming > i { animation: segConsume 220ms ease-out; }
@keyframes segConsume {
  0% { filter: brightness(1.12); }
  100% { filter: brightness(1); }
}
@media (prefers-reduced-motion: reduce) {
  .seg.is-refill > i, .seg.is-consuming > i { animation: none; box-shadow: none; }
}





.ingredient.is-drop { animation: ingredientDrop calc(0.14s * var(--pace, 1)) ease-out; }






.meter--reservoir > .ingredient__plus { bottom: 58%; font-size: 16px; }
.ingredient__plus {
  position: absolute; left: 50%; bottom: 62%;
  transform: translateX(-50%);
  font-size: 13px; font-weight: 800; color: #BFF7A8;
  text-shadow: 0 0 8px rgba(120, 240, 120, 0.85), 0 1px 0 rgba(0, 0, 0, 0.6);
  pointer-events: none; white-space: nowrap;
  animation: ingredientPlus calc(0.7s * var(--pace, 1)) ease-out forwards;
}
@keyframes ingredientPlus {
  0%   { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), 6px) scale(0.8); }
  22%  { opacity: 1; transform: translate(calc(-50% + var(--dx, 0px)), -2px) scale(1.08); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -16px) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ingredient__plus { animation: none; opacity: 0; }
}
.ingredient.is-drop .ingredient__n { color: #FFF3C4; }













.ingredient[data-full="1"] .ingredient__img {
  filter: saturate(0.5) brightness(0.9) drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.65));
}
.ingredient[data-full="1"] .ingredient__n { color: #F7E4A6; }

@media (prefers-reduced-motion: reduce) {
  .ingredient.is-drop { animation: none; }
}























.ingredients {
  position: absolute; z-index: 4; margin: 0; padding: 0; list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 47.46%);
  grid-template-rows: repeat(2, 22.95%);
  justify-content: space-between; align-content: center;
  row-gap: 24.59%; column-gap: 0;
  justify-items: stretch;
  container-type: inline-size;
  pointer-events: none;
}
.ingredient {
  position: relative;
  display: grid; align-items: center; justify-items: end;

  padding: 0 6.25% 0 0;
















  border-radius: 6.58% / 26.3%;











  background: linear-gradient(180deg, rgba(26, 17, 11, 0.72), rgba(0, 0, 0, 0.60) 55%, rgba(0, 0, 0, 0.70));
  box-shadow: 0 0.4cqw 0.85cqw rgba(0, 0, 0, 0.5);
  border: 0;





}














.ingredient::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, rgba(120, 200, 130, 0.30), rgba(150, 235, 165, 0.52));
  transition: width 260ms ease-out;
}


.ingredient[data-full="1"]::before {
  background: linear-gradient(90deg, rgba(212, 170, 70, 0.42), rgba(255, 214, 120, 0.62));
}
@media (prefers-reduced-motion: reduce) {
  .ingredient::before { transition: none; }
}





.ingredient::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 214, 150, 0.20),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(0, 0, 0, 0.32);
}







.ingredient__img { z-index: 3; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.65)); }
.ingredient__n { position: relative; z-index: 3; }




.ingredient__img {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 57.14%; height: auto; aspect-ratio: 1; object-fit: contain;
}
.ingredient__n {







  font-size: calc(8.47cqw * var(--fit, 1));
  line-height: 1.35; font-weight: 900; color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}


.ingredients[data-stack="1"] {
  grid-template-columns: 1fr;
  grid-template-rows: none;
  grid-auto-rows: 24px;
  align-content: end;
  row-gap: 10px;
  padding: 4px 0;
  box-sizing: border-box;
}
.ingredients[data-stack="1"][data-count] > .ingredient {
  grid-column: auto;
  justify-self: stretch;
  width: auto;
  min-width: 0;
  padding: 0 5px 0 36px;
}
.ingredients[data-stack="1"] .ingredient__img { left: 2px; width: 32px; }
.ingredients[data-stack="1"] .ingredient__n { font-size: 12px; }
.ingredient.is-full { animation: ingredientFull 0.6s ease-out; }
@keyframes ingredientFull {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); filter: drop-shadow(0 0 10px rgba(120,255,170,0.9)); }
  100% { transform: scale(1); }
}



.fx-layer { position: absolute; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }






.fly {
  position: absolute; width: 46px; height: 46px; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,225,150,0.9));
  will-change: transform, opacity;
}






.fly-trail {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,225,150,0.6), transparent 70%);
  animation: trailFade 0.2s ease-out forwards;
}















.fly--ingredient {
  filter: drop-shadow(0 0 7px rgba(140, 240, 165, 0.75));
}
.fly-trail--ingredient {
  width: 8px; height: 8px;
  background: radial-gradient(circle, rgba(150, 245, 175, 0.5), transparent 70%);
}






.fly--s6 { filter: drop-shadow(0 0 8px rgba(126, 240, 120, 0.85)); }
.fly-trail--s6 {
  width: 9px; height: 9px;
  background: radial-gradient(circle, rgba(150, 250, 130, 0.55), transparent 70%);
}



.levels.is-hit .levels__trough { animation: ladderHit 0.42s ease-out; }
@keyframes ladderHit {
  0%   { filter: none; }
  35%  { filter: drop-shadow(0 0 12px rgba(126, 240, 120, 0.9)) brightness(1.18); }
  100% { filter: none; }
}


.board-note--tier { align-self: start; margin-top: 7%; }







.levels__mark.is-won .levels__chest { animation: chestWon 0.62s ease-out; }
@keyframes chestWon {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.22); filter: drop-shadow(0 0 12px rgba(255, 214, 110, 0.95)); }
  100% { transform: scale(1); }
}














.fly--mult {

  box-sizing: border-box; border-radius: 0.25em;
  background: rgba(12, 8, 16, 0.9);
  border: 1px solid var(--panel-edge);
  letter-spacing: 0.06em;
  filter: drop-shadow(0 0 4px rgba(255, 214, 120, 0.45));
}
.board-note--multiplier,
.fly--mult-token,
.fly--reservoir-token {
  background: none; border: 0; padding: 0; color: #ffe3a1; letter-spacing: 0;
  -webkit-text-stroke: 1.5px #29160b; paint-order: stroke fill;
  text-shadow: 0 2px 0 #29160b, 0 0 7px #edc96688;
}
.board-note--multiplier { font-size: max(44px, calc(24px / var(--board-scale, 1))); }
.fly-trail--mult-token { background: radial-gradient(circle, #ffdf8799, transparent 70%); }
.fly-trail--reservoir-token { background: radial-gradient(circle, #a2ee99aa, transparent 70%); }
.fly-trail--mult {
  width: 10px; height: 10px;
  background: radial-gradient(circle, rgba(255, 214, 120, 0.6), transparent 70%);
}
@keyframes trailFade {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 0;    transform: scale(0.3); }
}










.cell--drop { animation: dropWeight calc(0.34s * var(--pace, 1)) cubic-bezier(0.22, 1.35, 0.36, 1); }














@keyframes dropWeight {
  0%   { transform: translateY(-70%) scaleY(1.06);
         animation-timing-function: cubic-bezier(0.4, 0, 0.55, 1); }
  62%  { transform: translateY(7%)    scaleY(0.94);
         animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  82%  { transform: translateY(-2%)   scaleY(1.02);
         animation-timing-function: cubic-bezier(0.34, 0, 0.2, 1); }
  100% { transform: translateY(0)     scaleY(1); }
}



























.cell--win .cell__img {












  animation: winPop var(--pop, 520ms) cubic-bezier(0.22, 0.90, 0.24, 1) both;
}



















































@keyframes winPop {
  0%   { transform: scale(1, 1)        rotate(0deg);
         animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  14%  { transform: scale(0.94, 0.86)  rotate(1.6deg);
         animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  40%  { transform: scale(1.24, 1.27)  rotate(-3.4deg);
         animation-timing-function: cubic-bezier(0.34, 0, 0.2, 1); }




  100% { transform: scale(1.16, 1.16)  rotate(0deg) translateY(-2.4%); }
}


























@keyframes shine {
  from { transform: translateX(-130%); }
  to   { transform: translateX(130%); }
}











@keyframes cellShine {
  from { transform: translateX(-100%); opacity: 0; }
  12%  { opacity: 1; }
  72%  { opacity: 1; }
  to   { transform: translateX(100%);  opacity: 0; }
}














































.stat--inline {
  flex-direction: row; align-items: center; gap: 0;
  background: #111; border-radius: 10px; padding: 6px 14px;
}
.stat--inline .stat__k { margin-right: 14px; }
.stat--inline .stat__v { background: none; padding: 0; min-width: 0; border-radius: 0; }

.stat--hot, .stat--counting { position: relative; }


@keyframes winGlowSpin  { to { transform: rotate(360deg); } }
@keyframes winGlowPulse { 0%,100% { opacity: 0.35; } 50% { opacity: 0.85; } }
.stat--counting .stat__v { color: var(--gold-hot); text-shadow: 0 0 12px rgba(255,217,122,0.8); }













.stat--hit { animation: statHit 320ms cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes statHit {
  0%, 100% { transform: scale(1); }
  34%      { transform: scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .stat--hit { animation: none; }
}



.card { animation: cardIn 0.34s cubic-bezier(0.3, 1.5, 0.5, 1); position: relative; }
@keyframes cardIn {
  0%   { transform: scale(0.82) translateY(14px); opacity: 0; }
  60%  { transform: scale(1.03) translateY(0);    opacity: 1; }
  100% { transform: scale(1)    translateY(0);    opacity: 1; }
}




.card.card--menu { animation: menuInStable 0.2s ease-out both; }
.card.card--menu > *,
.card.card--menu > .card__knob:not(.card__knob--corner) { animation: none; }
@keyframes menuInStable {
  from { opacity: 0; }
  to   { opacity: 1; }
}








.note {
  position: fixed; inset: 0; z-index: 62;
  display: grid; place-items: center; align-content: center; gap: clamp(6px, 2dvh, 16px);
  background: rgba(4, 2, 8, 0.62);
  animation: fadeIn 0.2s;
}
.note__hit { position: absolute; inset: 0; z-index: 3; background: none; border: 0; padding: 0; cursor: pointer; }







.note__go {
  position: absolute; left: 16px; right: 16px;
  bottom: max(8%, calc(var(--chrome-h) + 12px));
  text-align: center; white-space: nowrap;
  z-index: 4; pointer-events: none;
  font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 236, 190, 0.85);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.65);
  opacity: 0;
}



@media (orientation: portrait),
       (orientation: landscape) and (max-height: 500px) {
  .note,
  .celebration {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}
@media (orientation: portrait) and (max-width: 1100px) {
  .note[data-big="0"] .note__go { bottom: 28dvh; }
}
@media (orientation: portrait) and (min-width: 561px) and (max-width: 1100px) {
  .note[data-big="0"] .note__go { bottom: 31.5dvh; }
}
.note--ready .note__go,
.celebration.is-ready .celebration__go { animation: noteGo 1.6s ease-in-out infinite; opacity: 1; }

.celebration__go { bottom: max(4%, calc(var(--chrome-h) + 12px)); }
@keyframes noteGo {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .note--ready .note__go { animation: none; opacity: 0.9; }
}












.note__stage {


  position: absolute; z-index: 1; top: 0;
  left: calc(50% - 960 * var(--canvas-u));
  width: calc(1920 * var(--canvas-u)); height: calc(1080 * var(--canvas-u));
  animation: celebrateIn 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}









.note__rays {
  position: absolute; pointer-events: none; object-fit: contain; opacity: 0.85;
  left: calc(348 * var(--canvas-u)); top: calc(-173 * var(--canvas-u));
  width: calc(1224 * var(--canvas-u)); height: calc(1224 * var(--canvas-u));
  animation: raysPulse 2.8s ease-in-out infinite, winGlowSpin 40s linear infinite;
}
.note__frame {
  position: absolute; object-fit: fill;
  left: calc(727 * var(--canvas-u)); top: calc(228 * var(--canvas-u));
  width: calc(467 * var(--canvas-u)); height: calc(455 * var(--canvas-u));
}
.note__paper {
  position: absolute; object-fit: fill;
  left: calc(756 * var(--canvas-u)); top: calc(228 * var(--canvas-u));
  width: calc(408 * var(--canvas-u)); height: calc(455 * var(--canvas-u));
}














.note__banner-art {
  position: absolute; z-index: 1; object-fit: fill;
  left: calc(791.74 * var(--canvas-u)); top: calc(292 * var(--canvas-u));
  width: calc(336.46 * var(--canvas-u)); height: calc(114.89 * var(--canvas-u));
}


.note[data-big="1"] .note__banner-art {
  left: calc(748 * var(--canvas-u)); top: calc(362 * var(--canvas-u));
  width: calc(424 * var(--canvas-u)); height: calc(145 * var(--canvas-u));
}












.note[data-big="1"] .note__title {


  left: calc(748 * var(--canvas-u)); width: calc(424 * var(--canvas-u));
  top: calc(376 * var(--canvas-u)); height: calc(87 * var(--canvas-u));
  font-size: calc(62 * var(--canvas-u));
}













.note__title {
  position: absolute; z-index: 2;
  left: calc(791.74 * var(--canvas-u)); top: calc(296 * var(--canvas-u));
  width: calc(336.46 * var(--canvas-u)); height: calc(90 * var(--canvas-u));


  display: flex; align-items: center; justify-content: center;
  white-space: normal; text-wrap: balance; line-height: 1.05;
  text-align: center; font-weight: 900; letter-spacing: 0;
  font-size: calc(36 * var(--canvas-u));
  color: #E8D4A9;
  -webkit-text-stroke: calc(6 * var(--canvas-u)) #1b1b1b;
  paint-order: stroke fill;
  text-shadow: 0 calc(3 * var(--canvas-u)) 0 #000;
}





.note:not([data-big="1"]) .note__title {
  box-sizing: border-box; padding-inline: .75em;
}

.note__text {
  position: absolute; z-index: 2;
  left: calc(805 * var(--canvas-u)); top: calc(426 * var(--canvas-u));
  width: calc(310 * var(--canvas-u)); height: calc(111 * var(--canvas-u));
  display: grid; place-items: center;
  white-space: pre-line;
  text-align: center; font-weight: 900; line-height: 1.3;
  font-size: calc(24 * var(--canvas-u)); line-height: calc(27 * var(--canvas-u));
  color: #000;
}



























.note__hint {
  pointer-events: none;
  position: absolute; z-index: 4; left: 0; right: 0;
  top: min(calc(955 * var(--canvas-u)),
           calc(100dvh - var(--chrome-h) - 44 * var(--canvas-u) - 10px));
  height: calc(44 * var(--canvas-u));
  text-align: center; line-height: calc(44 * var(--canvas-u));
  font-size: calc(32 * var(--canvas-u)); font-weight: 900; color: var(--ink);
  text-shadow: 0 2px 6px #000; animation: hintBlink 1.8s ease-in-out infinite;
}











.energy-wave {
  position: fixed; z-index: 9; pointer-events: none;
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107,255,168,0.95) 0%, rgba(107,255,168,0.35) 55%, transparent 72%);


  opacity: 0;
}
@media (prefers-reduced-motion: reduce) { .energy-wave { display: none; } }










.transition {
  position: fixed; inset: 0; z-index: 55; pointer-events: none;
  background: rgba(0, 0, 0, 0.28);
  animation: transDim 900ms ease-in-out both;
}
.transition__bats {



  position: absolute; left: 50%; top: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center bottom;
  transform: translateX(-50%);
  animation: transBats 900ms cubic-bezier(0.32, 0.72, 0.36, 1) both;
}
@keyframes transDim {
  0%, 100% { opacity: 0; }
  30%, 70% { opacity: 1; }
}












@keyframes transBats {
  0%   { transform: translate(-50%, 40%); opacity: 0; }
  30%  { transform: translate(-50%, 0);   opacity: 1; }
  70%  { transform: translate(-50%, 0);   opacity: 1; }
  100% { transform: translate(-50%, -110%); opacity: 0; }
}

.game[data-turbo="1"] .transition,
.game[data-turbo="1"] .transition__bats { animation-duration: 420ms; }


@media (prefers-reduced-motion: reduce) {
  .transition__bats { display: none; }






  .transition { animation-duration: 420ms !important; }
}












.game[data-phase="bg1"] .chrome__row .stake,
.game[data-phase="bg2"] .chrome__row .stake,
.game[data-phase="bg1"] .ante,
.game[data-phase="bg2"] .ante,




.game[data-phase="bg1"] .stat--win,
.game[data-phase="bg2"] .stat--win { display: none; }



.game[data-phase="bg2"] #btnBetMenu { display: none; }
















.game[data-phase="bg1"] .buy-btn,
.game[data-phase="bg2"] .buy-btn {
  filter: grayscale(1) brightness(0.62);
  pointer-events: none;
}










.game[data-phase="bg2"] .chrome__row #statMid { display: none; }









.game[data-phase="bg1"] #payScroll,
.game[data-phase="bg2"] #payScroll,
.game[data-phase="bg1"] #energyMeter,
.game[data-phase="bg2"] #energyMeter,
.game[data-phase="bg1"] #reservoirMeter,
.game[data-phase="bg2"] #reservoirMeter,
.game[data-phase="bg1"] #ingredients,
.game[data-phase="bg2"] #ingredients { display: none !important; }


















.game[data-phase="bg1"] .board__part--bar,
.game[data-phase="bg2"] .board__part--bar { display: none; }
.game[data-phase="bg1"] .board__clock,
.game[data-phase="bg2"] .board__clock { visibility: hidden; }
.game[data-phase="bg1"] .board__clock--win,
.game[data-phase="bg2"] .board__clock--win { visibility: visible; }







.segs { display: grid; justify-items: center; gap: 6px; }
.segs__row { display: flex; gap: 5px; }
.seg {
  width: clamp(38px, 4.7vw, 90px); height: clamp(16px, 1.72vw, 33px);
  padding: 3px; border-radius: 12px; background: #0B0B0B;
  display: block;
}



.seg i {
  display: block; height: 100%; border-radius: 10.324px;
  background:
    linear-gradient(#EDB715, #EDB715) left center / var(--fill, 0%) 100% no-repeat,
    #363636;
  transition: background-size 220ms cubic-bezier(0.22, 0.8, 0.35, 1);
}
.game[data-turbo="1"] .seg i { transition-duration: 120ms; }
.game[data-turbo="1"] .seg.is-refill > i { animation-duration: 200ms; }
.game[data-turbo="1"] .seg.is-consuming > i { animation-duration: 120ms; }
.segs__label {
  font-size: clamp(10px, 1.04vw, 20px); font-weight: 900; color: #fff;
  letter-spacing: 0.04em;
}


.game[data-hw-cue="last"] #mobCounterK,
.game[data-hw-cue="last"] #segsLabel,
.game[data-hw-cue="last"] .segs__label--compact { color: var(--gold-hot); }
.game[data-hw-cue="refill"] #mobCounterK,
.game[data-hw-cue="refill"] #segsLabel,
.game[data-hw-cue="refill"] .segs__label--compact,
.game[data-hw-cue="refilled"] #mobCounterK,
.game[data-hw-cue="refilled"] #segsLabel,
.game[data-hw-cue="refilled"] .segs__label--compact { color: #a4f2be; }


.segs__row { border-radius: 14px; transition: filter 240ms ease; }
.game[data-hw-cue="last"] .segs__row {
  filter: drop-shadow(0 0 5px rgba(255, 208, 109, 0.48));
}
.game[data-hw-cue="last"] .seg {
  box-shadow: inset 0 0 0 1px rgba(255, 216, 127, 0.65);
}
.game[data-hw-cue="refilled"] .segs__row {
  filter: drop-shadow(0 0 5px rgba(153, 236, 183, 0.5));
}
.game[data-hw-cue="last"] #mobCounterV,
.game[data-hw-cue="last"] #segsLabel { text-shadow: 0 0 6px rgba(239, 177, 50, 0.4); }
.game[data-hw-cue="complete"] #mobCounterK,
.game[data-hw-cue="complete"] #segsLabel,
.game[data-hw-cue="complete"] .segs__label--compact { color: var(--gold-hot); }
.segs__label--compact { display: none; }



@media (orientation: landscape) and (max-height: 500px) {
  .chrome__row .segs__label {
    font-size: 10px; line-height: 11px; letter-spacing: 0; white-space: nowrap;
  }
  .chrome__row #segsLabel {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%);
  }
  .chrome__row .segs__label--compact { display: block; }
}











.levels {



  container-type: inline-size;




  position: absolute; z-index: 4; pointer-events: none;
}












.levels__need {
  position: absolute; left: 34%; top: -6%;
  width: 62%; height: 5.4%;
  container-type: inline-size;
  display: grid; grid-template-columns: 1fr; align-items: center; justify-items: end;
  padding: 0 6% 0 0;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(28, 18, 34, 0.86), rgba(16, 10, 20, 0.92));
  box-shadow: inset 0 0 0 1px rgba(226, 190, 108, 0.35);
  pointer-events: none;
}
.levels__need-img {
  position: absolute; left: -14%; top: 50%; transform: translateY(-50%);
  width: 40%; height: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

.levels__need-img:not([src]) { display: none; }
.levels__need-n {






  font-size: min(17cqw, 48px); font-weight: 900; line-height: 1;
  color: #EAD577; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 2px #200303, 0 1px 0 #200303, 1px 0 0 #200303, -1px 0 0 #200303, 0 -1px 0 #200303;
}













@media (orientation: landscape) and (max-height: 460px) {
  .levels__need {
    left: -50%; top: 2%;
    width: 46%; height: 8%;
  }


  .levels__need-img { width: 45%; left: -20%; }
  .levels__need-n { font-size: min(22cqw, 48px); }
}




@media (orientation: landscape) and (max-height: 460px) and (max-width: 699px) {
  .levels__need { left: 10%; top: -6%; width: 80%; height: 8%; }
  .levels__need-img { left: -8%; width: 35%; }
  .levels__need-n { font-size: clamp(12px, 19cqw, 20px); }
}


.levels__trough {
  position: absolute; left: 62.1%; top: 3.7%;



  width: 14%; height: 78.3%;
  background: url('../assets/bonus/progress-track-empty.webp') center / 100% 100% no-repeat;
  overflow: hidden;


  display: flex; align-items: flex-end;
}
.levels__fill {
  width: 100%; height: 0;


  background: url('../assets/bonus/progress-fill-green.webp') bottom center / 100% auto repeat-y;
  transition: height 0.45s cubic-bezier(0.3, 1.1, 0.5, 1);
}


.levels__tube {
  position: absolute; inset: 0 0 0 0;
  left: 49.5%; width: 39.2%;
  background: url('../assets/bonus/progress-tube-frame.webp') center / 100% 100% no-repeat;
}

.levels__marks { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }












.levels__mark {
  position: absolute; left: 0; right: 0; bottom: var(--stop, 0);
  height: 0.673%; transform: translateY(50%);
  display: flex; align-items: center;
}










.levels__mark::before {
  content: ''; position: absolute; left: 38%; right: 0; top: 0; bottom: 0;
  min-height: 2px;
  background: #E4C554; border: 0; border-radius: 1px;
}
.levels__chest {
  position: absolute; left: 15%; transform: translate(-50%, 0);
  width: 31%; aspect-ratio: 1 / 1;
}

.levels__chest::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: var(--chest-art) center / contain no-repeat;
}


.levels__value {



  position: absolute; left: 92%; transform: translate(-50%, -53%);
  font-size: clamp(13px, 1.67vw, 32px); font-weight: 900; color: #fff;
  text-shadow: 0 3px 0 #000;
  font-variant-numeric: tabular-nums;
}
.levels__reward {
  position: absolute; left: 40%; top: calc(18 * var(--canvas-u));
  transform: translateX(-50%); z-index: 2;
  padding: 1px 3px; border-radius: 3px; background: rgba(20, 13, 20, .86);
  color: #f5df99; font: 900 clamp(10px, 1vw, 19px)/1.15 var(--font);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  text-shadow: 0 1px 1px #140e13;
}
.levels__reward[hidden] { display: none; }







@media (min-width: 761px) and (orientation: landscape), (orientation: landscape) and (max-height: 500px) {
  .levels__mark[data-tier="1"] .levels__chest { left: 43.4%; width: 20.0%; }
  .levels__mark[data-tier="2"] .levels__chest { left: 41.5%; width: 23.7%; }
  .levels__mark[data-tier="3"] .levels__chest { left: 40.0%; width: 26.8%; }
  .levels__mark[data-tier="4"] .levels__chest { left: 40.0%; width: 26.8%; }
  .levels__mark[data-tier="5"] .levels__chest { left: 37.9%; width: 31.0%; }
}




.levels__mark[data-tier="1"] .levels__chest { --chest-art: url('../assets/bonus/chest-t1-100-closed.webp'); }
.levels__mark[data-tier="2"] .levels__chest { --chest-art: url('../assets/bonus/chest-t2-200-closed.webp'); }
.levels__mark[data-tier="3"] .levels__chest { --chest-art: url('../assets/bonus/chest-t3-500-closed.webp'); }
.levels__mark[data-tier="4"] .levels__chest { --chest-art: url('../assets/bonus/chest-t4-800-closed.webp'); }
.levels__mark[data-tier="5"] .levels__chest { --chest-art: url('../assets/bonus/chest-t5-1000-closed.webp'); }














.levels__mark[data-tier="1"].is-open.is-open-art .levels__chest { aspect-ratio: 145 / 171; }
.levels__mark[data-tier="2"].is-open.is-open-art .levels__chest { aspect-ratio: 168 / 192; }
.levels__mark[data-tier="3"].is-open.is-open-art .levels__chest { aspect-ratio: 181 / 220; }
.levels__mark[data-tier="4"].is-open.is-open-art .levels__chest { aspect-ratio: 183 / 221; }
.levels__mark[data-tier="5"].is-open.is-open-art .levels__chest { aspect-ratio: 216 / 240; }
.levels__mark[data-tier="1"].is-open.is-open-art .levels__chest { --chest-art: url('../assets/bonus/chest-t1-100-open.webp'); }
.levels__mark[data-tier="2"].is-open.is-open-art .levels__chest { --chest-art: url('../assets/bonus/chest-t2-200-open.webp'); }
.levels__mark[data-tier="3"].is-open.is-open-art .levels__chest { --chest-art: url('../assets/bonus/chest-t3-500-open.webp'); }
.levels__mark[data-tier="4"].is-open.is-open-art .levels__chest { --chest-art: url('../assets/bonus/chest-t4-800-open.webp'); }
.levels__mark[data-tier="5"].is-open.is-open-art .levels__chest { --chest-art: url('../assets/bonus/chest-t5-1000-open.webp'); }








@keyframes chestFloat {
  0%, 100% { transform: translate(-50%, 0)    scale(1); }
  50%      { transform: translate(-50%, -6%)  scale(1.02); }
}


@keyframes chestOpen {
  0%   { transform: translate(-50%, 0) scale(0.86); }
  55%  { transform: translate(-50%, -9%) scale(1.16); }
  100% { transform: translate(-50%, 0) scale(1); }
}

.levels__mark.is-open.is-open-art .levels__chest {
  animation: chestOpen 0.42s cubic-bezier(0.3, 1.7, 0.5, 1) both,
             chestFloat 2.8s ease-in-out 0.42s infinite;
}













.levels__mark.is-open.is-open-art .levels__chest::after {
  content: ""; position: absolute; inset: 0;
  animation: chestPop 0.42s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  pointer-events: none;
}
@keyframes chestPop {
  0%   { box-shadow: 0 0 0 0 rgba(255, 233, 166, 0.55); }
  100% { box-shadow: 0 0 0 22px rgba(255, 233, 166, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .levels__mark.is-open.is-open-art .levels__chest,
  .levels__mark.is-open.is-open-art .levels__chest::after { animation: none !important; }
}
.levels__mark.is-open .levels__value { color: #FFE9A6; }




.levels__marks { z-index: 1; }
.levels__glow {
  position: absolute; left: 50%; top: 50%; z-index: 0;
  width: 78cqw; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: url('../assets/bonus/glow-burst-rays.webp') center / contain no-repeat;
  opacity: 0.9; animation: ladderGlow 2.6s ease-in-out infinite;
}
@keyframes ladderGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(0.94); opacity: 0.72; }
  50%      { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }
}




.levels__now {
  position: absolute; left: 69.2%; bottom: 6.9%; transform: translateX(-50%);
  width: 20%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; line-height: 1; gap: 1px;


















  font-size: 7.9cqw; font-weight: 900; color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 4px #3B0C76, 0 0 8px #3B0C76, 0 3px 0 #000;
}
#levelsCount { font-size: 1em; line-height: 1; }
#levelsMult { font-size: .6em; line-height: 1.1; color: #f5d982; }

















.stake-group--modal { justify-content: center; margin-top: 14px; }
.stake--static { pointer-events: none; }
.stake--picker { font: inherit; cursor: pointer; color: inherit; }
.stake--picker:hover:not(:disabled) { filter: brightness(1.12); }




.buy-card--confirm { margin: 0; }


















.cells--dimmed .cell:not(.cell--win) .cell__img {
  filter: brightness(0.8);
}


























.cell__img { transition: filter 250ms ease, transform 180ms cubic-bezier(0.33, 0, 0.2, 1); }

















.cells--dimmed .cell--special:not(.cell--win):not(.cell--grow):not(.cell--fall):not(.cell--out):not(.cell--gone):not(.cell--solo) .cell__img[src] {
  animation: none;
}
.cells--dimmed .cell.cell--win { z-index: 3; }
.cell { transition: opacity 150ms ease; }




.cell--win .cell__img { transform-origin: center; }




.board__cells.cells--feature-trigger .cell--win.cell--special .cell__img {
  visibility: visible; transition: none;
  animation: featureSymbolSettle var(--feature-sequence-duration, 450ms) cubic-bezier(0.22, 0.9, 0.24, 1) var(--feature-sequence-delay, var(--feature-delay, 0ms)) both !important;
  transform: scale(var(--k0, 1), var(--kh0, 1));
}
@keyframes featureSymbolSettle {
  0% { transform: var(--feature-from, none); }
  40% { transform: translateY(-7px) scale(calc(var(--k0, 1) * 1.06), calc(var(--kh0, 1) * 1.06)); filter: brightness(1.15); }
  100% { transform: scale(var(--k0, 1), var(--kh0, 1)); filter: none; }
}
.game[data-turbo="1"] .board__cells.cells--feature-trigger .cell--win.cell--special .cell__img {
  animation-duration: var(--feature-sequence-duration, 225ms) !important;
  animation-delay: var(--feature-sequence-delay, calc(var(--feature-delay, 0ms) * 0.5)) !important;
}
@media (prefers-reduced-motion: reduce) {
  .board__cells.cells--feature-trigger .cell--win.cell--special .cell__img { animation: none !important; }
}




















.win-amount {
  position: absolute; left: 50%; bottom: 407px; transform: translateX(-50%);
  z-index: 5; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  animation: winAmountIn 0.32s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.win-amount--group { bottom: auto; }



.win-amount--group:not(.win-amount--out) {
  animation: winGroupAmountIn 200ms cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes winGroupAmountIn {
  0% { transform: translateX(-50%) scale(0); opacity: 0; }
  70% { transform: translateX(-50%) scale(1.07); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}


















.win-amount::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 430px; height: 250px;
  background: radial-gradient(closest-side ellipse,
    rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.48) 60%,
    rgba(0, 0, 0, 0.26) 78%, rgba(0, 0, 0, 0) 100%);
}




.win-amount--out {
  animation: winAmountOut 0.14s ease-in both;
}
.win-amount--group.win-amount--out {
  animation: winAmountOut 200ms ease-in both;
}


































.win-amount--hit {
  animation:
    winAmountIn 0.32s cubic-bezier(0.3, 1.6, 0.5, 1),
    winAmountHit 320ms cubic-bezier(0.3, 1.5, 0.5, 1);
}
.win-amount--group.win-amount--hit:not(.win-amount--out) {
  animation:
    winGroupAmountIn 200ms cubic-bezier(.34, 1.56, .64, 1),
    winAmountHit 320ms cubic-bezier(0.3, 1.5, 0.5, 1);
}
@keyframes winAmountHit {
  0%, 100% { transform: translateX(-50%) scale(1); }
  34%      { transform: translateX(-50%) scale(1.04); }
}






@keyframes winAmountOut {
  from { opacity: var(--win-exit-opacity, 1); }
  to   { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .win-amount { animation: none; }
  .win-amount--out { animation: none; opacity: 0; }
  .win-amount--hit { animation: none; }
  .win-amount--group,
  .win-amount--group.win-amount--hit,
  .win-amount--group.win-amount--out { animation: none; }
}
.win-amount__sum {




























  min-width: 243px;
  height: 87px; display: grid; place-items: center;
  font-size: 64px; font-weight: 900; color: #fff959;
  font-variant-numeric: tabular-nums;










  text-shadow:
    0 0 10px #EAD577, 0 0 10px #EAD577,
    0 2px 0 #1a0f00, 0 -2px 0 #1a0f00, 2px 0 0 #1a0f00, -2px 0 0 #1a0f00,
    0 3px 6px rgba(0, 0, 0, 0.65);
}


.win-amount--group .win-amount__sum { font-family: var(--font); font-variant-numeric: tabular-nums; }
.win-amount--group.win-amount--bronze .win-amount__sum {
  color: #f3c996;
  text-shadow: 0 0 9px #a75b30, 0 2px 0 #28120e, 0 -2px 0 #28120e,
    2px 0 0 #28120e, -2px 0 0 #28120e, 0 3px 6px #000b;
}
.win-amount--group.win-amount--silver .win-amount__sum {
  color: #e7f0ec;
  text-shadow: 0 0 11px #79b9bb, 0 2px 0 #13282a, 0 -2px 0 #13282a,
    2px 0 0 #13282a, -2px 0 0 #13282a, 0 3px 6px #000b;
}
.win-amount--group.win-amount--gold .win-amount__sum {
  color: #fff1aa;
  text-shadow: 0 0 13px #e7c55c, 0 2px 0 #2b2008, 0 -2px 0 #2b2008,
    2px 0 0 #2b2008, -2px 0 0 #2b2008, 0 3px 7px #000b;
}



.win-amount__what {
  display: flex; align-items: center; gap: 6px;
  font-size: 22px; font-weight: 800; color: #FFE9A6;
  text-shadow: 0 2px 0 #2a1a08, 0 3px 12px rgba(255,180,60,0.6);
  font-variant-numeric: tabular-nums;
}



.win-amount--group .win-amount__what > b {
  font-size: max(22px, calc(13.5px / var(--board-scale, 1)));
}

.win-amount--total > .win-amount__sum {
  color: #e6c887;
  text-shadow:
    0 2px 0 #241608, 0 -1px 0 #241608,
    1px 0 0 #241608, -1px 0 0 #241608,
    0 3px 5px rgba(0, 0, 0, 0.7);
}
.win-amount--total > .win-amount__what {
  color: #cbb995;
  text-shadow: 0 2px 2px rgba(17, 10, 5, 0.9);
}
@media (orientation: portrait), (max-width: 760px) and (min-height: 501px) {


  .game[data-phase="base"] .win-amount--total {
    top: 46px; bottom: auto; width: 500px; max-width: 500px; gap: 0;
  }
  .game[data-phase="base"] .win-amount--total > .win-amount__what {
    position: absolute; bottom: calc(100% + 2px / var(--board-scale, 1));
    height: auto; line-height: 1.05; font-size: max(38px, calc(12px / var(--board-scale, 1)));
    color: #EDB715; white-space: nowrap;
    -webkit-text-stroke: 0;
    text-shadow: 0 calc(1px / var(--board-scale, 1)) 0 #160e05;
  }
  .game[data-phase="base"] .win-amount--total > .win-amount__sum {


    min-width: 0; width: 100%; height: 55.5px;
    font-size: max(46px, calc(12px / var(--board-scale, 1))); line-height: 55.5px; white-space: nowrap;
    color: #241608;
    background: none;
    -webkit-text-fill-color: currentColor;
  }

  .game[data-phase="base"] .win-amount--total > .win-amount__sum {
    -webkit-text-stroke: 0;
    text-shadow: none;
    filter: none;
  }
  .game[data-phase="base"] .win-amount--total::before { content: none; }
  .game[data-phase="base"] .board__overlay:has(> .win-amount--total)::before {
    opacity: 0;
  }
}
.win-amount__sym { width: 34px; height: 34px; object-fit: contain; }
@keyframes winAmountIn {
  0%   { transform: translateX(-50%) scale(0.5); opacity: 0; }
  60%  { transform: translateX(-50%) scale(1.12); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}









.rules-art {
  margin: 0 auto 49px; padding: 0;
  display: flex; align-items: center; justify-content: center; gap: 4%;
}








.rules-art img {
  max-width: 100%; height: auto; display: block;
  max-height: min(320px, 38dvh); object-fit: contain;
}







.rules-art--energy .rules-art__a     { width: 34.4%; }



.rules-art--energy .rules-art__arrow { width: 7.45%; transform: scaleX(-1); }
.rules-art--energy .rules-art__b     { width: 41%; }
.rules-art--cauldron .rules-art__one { width: 34%; }



.rules-art--premium { display: flex; gap: 2%; justify-content: center; flex-wrap: wrap; }
.rules-art--premium .rules-art__sym { width: 17%; max-width: 96px; }




.rules-art--ladder .rules-art__one   { width: 68.4%; height: auto; }
.rules-ladder {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(4px, 1vw, 16px); padding: 12px 0; list-style: none;
  text-align: center; color: #f1d591;
}
.rules-ladder li { min-width: 0; display: grid; justify-items: center; gap: 4px; }
.rules-ladder img { display: block; width: min(100%, 72px); height: 60px; object-fit: contain; }
.rules-ladder strong { font-size: clamp(14px, 1.5vw, 22px); line-height: 1.2; }
.rules-ladder span { color: #f5ecdc; font-size: clamp(11px, 1.1vw, 16px); line-height: 1.2; }
.rules-art--screen .rules-art__one   { width: 86%; }

.rules-art--cascade .rules-art__one  { width: 26.9%; }

.rules-art--frames .rules-art__one   { width: 51.1%; }




.rules-legend {








  list-style: none; margin: 44px 0 44px 38.55%; padding: 0;




  display: grid; gap: 10px; width: min(52%, 520px);
}
.rules-legend li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr);
  align-items: center; gap: 24px;
}
.rules-legend li span:last-child {
  font-size: clamp(12px, 1.25vw, 24px); color: #fff; text-align: left;
}
.rules-legend__mark {
  width: 56px; height: 56px; border-radius: 50%; background: #010101;
  background-repeat: no-repeat; background-position: center;
  background-size: 50% 50%;
}

.rules-legend__mark--spin {
  background: url('../assets/ui/spin.webp') center / contain no-repeat;
}
.rules-legend__mark--buy {
  background: url('../assets/ui/buy-bonus.webp') center / contain no-repeat;
}
.rules-legend__mark--menu {
  background: url('../assets/ui/icon-menu-burger.svg') center / 57% 52% no-repeat;
}
.rules-legend__mark--sound { background-image: url('../assets/ui/btn-sound.svg'); }
.rules-legend__mark--info  { background-image: url('../assets/ui/icon-info.svg'); }
.rules-legend__mark--auto  { background-image: url('../assets/ui/btn-autoplay.svg'); }
.rules-legend__mark--turbo { background-image: url('../assets/ui/btn-turbo.svg'); background-size: 34% 62%; }




.overlay-host--wide { max-width: min(1100px, 92vw); }

.overlay-host--full {
  max-width: none; max-height: none; width: 100%; height: 100%; overflow: visible;
  display: grid; place-items: center;
}















.overlay-host--full { pointer-events: none; }
.overlay-host--full > * { pointer-events: auto; }



.mob-counter { display: none; }



.mob-coins { display: none; }








.ante {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto;
  align-items: center; gap: 2px 8px;
  min-height: var(--hit-min); padding: 4px 10px;
  background: rgba(18, 14, 17, .92); border: 1px solid rgba(210, 173, 96, .38);
  border-radius: 9px; color: inherit; isolation: isolate;
}



.ante__k {
  grid-row: 1 / 3; font-size: 11px; line-height: 1.1; letter-spacing: 0.08em;
  color: #f2e3c4; text-align: right;
  white-space: normal; max-width: 7em;
}
.ante__track {
  position: relative; width: 40px; height: 20px; border-radius: 999px;
  background: rgba(20,14,24,0.9); border: 1px solid var(--panel-edge);
  transition: background 0.16s, border-color 0.16s;
}
.ante__knob {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--ink-dim);
  transition: transform 0.16s cubic-bezier(0.34,1.56,0.64,1), background 0.16s;
}
.ante[aria-pressed="true"] .ante__track { background: rgba(107,255,168,0.22); border-color: var(--green); }
.ante[aria-pressed="true"] .ante__knob { transform: translateX(20px); background: #6bffa8; }
.ante__v { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--gold-hot); }
.ante:disabled { opacity: 0.76; pointer-events: none; }























.slow {

  position: fixed; left: 0; right: 0;
  top: max(18px, calc(env(safe-area-inset-top) + 8px));
  width: max-content; margin-inline: auto; max-width: min(560px, 92vw);
  z-index: 70; display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(10, 7, 16, 0.92); border: 1px solid var(--panel-edge);
  color: var(--ink); font-size: 13px; letter-spacing: 0.04em;
  box-shadow: 0 6px 22px rgba(0,0,0,0.5);
  animation: slowIn 0.22s ease-out;
}



@keyframes slowIn { from { opacity: 0; transform: translateY(-8px); } }
.slow__spin {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(226,190,108,0.35); border-top-color: var(--gold-hot);
  animation: slowTurn 0.8s linear infinite;
}
@keyframes slowTurn { to { transform: rotate(360deg); } }













.funds-hint {
  position: absolute; left: calc((100vw - 1094 * var(--canvas-u)) / 4);
  bottom: calc(100% + 16px); transform: translateX(-50%); width: max-content;
  max-width: min(260px, calc((100vw - 1094 * var(--canvas-u)) / 2 - 24px)); margin: 0;
  padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--panel-edge); background: rgba(25, 17, 21, 0.94);
  color: var(--ink); font-size: 12px; line-height: 1.35;
  text-align: center; white-space: pre-line; overflow-wrap: anywhere;
  pointer-events: none;
}


@media (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .funds-hint {
    position: fixed; left: max(8px, env(safe-area-inset-left));
    bottom: calc(54 * var(--u) + env(safe-area-inset-bottom));
    width: calc(50% - 70 * var(--u) - 16px); max-width: 180px;
    transform: none; padding: 6px;
  }
}

.notices {



  position: fixed; left: 0; right: 0;
  top: max(62px, calc(env(safe-area-inset-top) + 54px));
  width: max-content; margin-inline: auto; max-width: min(560px, 92vw);
  z-index: 72; display: grid; gap: 8px; justify-items: center;
  pointer-events: none;
}
.notice {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 10px;
  background: rgba(10, 7, 16, 0.94); border: 1px solid var(--panel-edge);
  color: var(--ink); font-size: 14px; line-height: 1.35; text-align: left;
  box-shadow: 0 8px 26px rgba(0,0,0,0.55);
  animation: noticeIn 0.24s cubic-bezier(0.3, 1.4, 0.5, 1);
}
@keyframes noticeIn { from { opacity: 0; transform: translateY(-10px); } }
.notice.is-leaving { animation: noticeOut 0.2s ease-in forwards; }
@keyframes noticeOut { to { opacity: 0; transform: translateY(-8px); } }



.notice--info  { border-color: var(--panel-edge); }
.notice--warn  { border-color: var(--gold); }
.notice--warn::before  { content: "!"; color: var(--gold-hot); font-weight: 800; }
.notice--error { border-color: var(--danger); }
.notice--error::before { content: "!"; color: #ffb4c0; font-weight: 800; }











@media (orientation: portrait), (max-width: 760px) and (min-height: 501px) {


  .game[data-phase="bg1"] .scene__bg { object-position: 27.193% center; }
  .game[data-phase="bg2"] .scene__bg { object-position: 53.744% center; }
  .game[data-phase="bg1"] .scene__mascot-window {
    clip-path: inset(0 0 max(0px, calc(100% - var(--fs-mascot-bottom, 100%))) 0);
  }
  .levels { --rail-y: calc(100% - 9.29352cqw); }
  .levels__trough {
    left: 20%; top: calc(var(--rail-y) - 2cqw); width: 76.3%; height: 4cqw;
    align-items: stretch; flex-direction: row;
    border-radius: 5px; overflow: hidden;
  }
  .levels__fill {
    height: 100% !important; width: var(--fill-w, 0);
    position: relative; overflow: hidden; background: none;
    transition: width 0.45s cubic-bezier(0.3, 1.1, 0.5, 1);
  }


  .levels__fill::before {
    content: ''; position: absolute; left: 0; top: 0;
    width: 4cqw; height: 76.3cqw; transform-origin: 0 0;
    transform: translateY(4cqw) rotate(-90deg);
    background: url('../assets/bonus/progress-fill-green.webp') center / 100% 100% no-repeat;
  }
  .levels__tube {
    display: block; left: 50%; top: var(--rail-y); bottom: auto;
    width: 18.58705%; height: 100cqw;
    transform: translate(-50%, -50%) rotate(90deg);
    pointer-events: none;
  }
  .levels__now {
    left: 0; top: var(--rail-y); bottom: auto; width: 18.58705%; height: 14cqw;
    transform: translateY(-50%);
    font-size: clamp(12px, 4.6cqw, 20px); z-index: 3;
    gap: 1px;
    text-shadow: 0 1px 1px #140e13, 0 0 2px #140e13;
  }
  #levelsCount {
    padding-left: 0;
    font-size: min(1em, calc(19.5cqw / var(--count-digits, 2)));
  }
  #levelsMult { font-size: clamp(9px, 2.8cqw, 14px); }
  .levels__need {
    left: 0; top: var(--rail-y); width: 18.58705%; height: 18.58705cqw; padding: 0;
    transform: translateY(-50%); background: none; box-shadow: none;
  }



  .levels__need-img {
    width: clamp(28px, 50%, 40px); left: 50%;
    top: 2px; transform: translate(-50%, -100%);
  }
  .levels__need-n { display: none; }
  .levels__mark {
    left: var(--stop, 0); right: auto; top: 0; bottom: auto;
    width: 16%; margin-left: -8%; height: 100%; transform: none;
    flex-direction: column; justify-content: flex-start;
  }
  .levels__mark::before {
    left: 50%; right: auto; top: calc(var(--rail-y) - 2cqw); bottom: auto;
    width: 1px; height: 4cqw; transform: translateX(-50%);
  }
  .levels__chest {
    left: 50%; bottom: calc(9.29352cqw + 3.5cqw); top: auto; right: auto;
    transform: translateX(-50%); translate: none; height: auto;
  }


  .levels__mark[data-tier="1"] .levels__chest { width: min(calc(34.5 * var(--header-u)), 9.13cqw); }
  .levels__mark[data-tier="2"] .levels__chest { width: min(calc(37.375 * var(--header-u)), 9.8cqw); }
  .levels__mark[data-tier="3"] .levels__chest { width: min(calc(41.975 * var(--header-u)), 10cqw); }
  .levels__mark[data-tier="4"] .levels__chest { width: min(calc(41.975 * var(--header-u)), 10cqw); }
  .levels__mark[data-tier="5"] .levels__chest { width: min(calc(48.3 * var(--header-u)), 10.2cqw); }
  .levels__value {
    left: 50%; top: calc(var(--rail-y) + 4.16cqw); bottom: auto; right: auto;
    transform: translate(-50%, -50%);
    font-size: clamp(12px, 3.65vw, 19px); line-height: 1; z-index: 2;
    text-shadow: 0 1px 3px #140e13, 0 0 4px #140e13;
  }
  .levels__reward {
    left: 50%; top: auto; bottom: calc(9.29352cqw + 3.5cqw - 2px);
    font-size: clamp(9px, 2.7vw, 14px); padding: 1px 2px;
  }
  .levels__glow { width: 25cqw; }



}
@media (max-width: 560px), (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .card--flat .bet-cell { height: var(--hit-min); min-height: var(--hit-min); }
}







@media (max-width: 560px), (orientation: portrait), (max-width: 760px) and (min-height: 501px) {


  .rules-shell {
    width: calc(95.5vw - env(safe-area-inset-left) - env(safe-area-inset-right));
    height: 96.4dvh;
    left: calc((env(safe-area-inset-left) - env(safe-area-inset-right)) / 2);


    padding-top: max(64px, calc(env(safe-area-inset-top) + 62px));
  }






  .rules-shell .card__knob--corner {


    top: max(10px,
      calc(env(safe-area-inset-top) + 8px),
      calc(52px - 1.8dvh),
      calc(23 * var(--u) + 30px - 1.8dvh));
    right: max(10px, calc(env(safe-area-inset-right) + 8px));
    width: var(--hit-min); height: var(--hit-min);
  }
  .rules { padding: 8px 0 max(28px, calc(env(safe-area-inset-bottom) + 28px)); }
  .rules > * { width: 84%; }





  .rules h3 { margin: 26px auto 18px; }
  .rules p { margin: 0 auto 4px; }
  .rules > h3, .rules > p, .rules-legend li span:last-child {
    font-family: "Inter", var(--font); font-optical-sizing: none; font-size: 14px;
  }




  .rules-legend { width: 76.7%; gap: 14px; margin: 20px auto; }
  .rules-legend li { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .rules-legend__mark { width: 36px; height: 36px; }
  .rules-art { margin: 0 auto 26px; }

















  .rules-art--symbol .rules-art__one[src*="/sc."] { width: 50.6% !important; }
  .rules-art--symbol .rules-art__one[src*="/bs."] { width: 60.2% !important; }
  .rules-art--buybtn .rules-art__one { width: 44.5% !important; }
  .rules-art--energy .rules-art__a { width: 36%; }
  .rules-art--energy .rules-art__b { width: 48.7%; }
  .rules-art--cauldron .rules-art__one { width: 66.7%; }
  .rules-art--screen .rules-art__one { width: 98.1%; }

  .rules-art--ladder .rules-art__one { width: 100%; }

  .rules-art--cascade .rules-art__one { width: 80%; }

  .rules-art--frames .rules-art__one { width: 72.6%; }
}












@media (max-width: 560px), (orientation: portrait), (max-width: 760px) and (min-height: 501px) {



  .celebration__stage { left: 0; width: 100%; height: 100%; }



  .note { --phone-note-u: min(calc(100vw / 360), calc(100dvh / 631)); }
  .note__stage {
    left: calc(50% - 180 * var(--phone-note-u));
    top: calc(43.7dvh - 275.747 * var(--phone-note-u));
    width: calc(360 * var(--phone-note-u));
    height: calc(631 * var(--phone-note-u));
  }



  .celebration__rays { left: -55%; top: -19%; width: 210%; height: 130%; }







  .celebration__rays--scroll { left: -64.2%; top: -15.8%; width: 228.2%; height: 117.4%; }

















  .celebration__plate,
  .celebration[data-tier="big"] .celebration__plate {
    --phone-tier-width: min(54.6vw, calc(37.2dvh * 558 / 667));
    left: calc(50% - var(--phone-tier-width) / 2);
    top: calc(44.3% - var(--phone-tier-width) * 667 / 1116);
    width: var(--phone-tier-width); height: calc(var(--phone-tier-width) * 667 / 558);
  }
  .celebration[data-tier="mega"] .celebration__plate {
    --phone-tier-width: min(53.3vw, calc(37.3dvh * 606 / 742));
    left: calc(50% - var(--phone-tier-width) / 2);
    top: calc(42.85% - var(--phone-tier-width) * 742 / 1212);
    width: var(--phone-tier-width); height: calc(var(--phone-tier-width) * 742 / 606);
  }
  .celebration[data-tier="sensational"] .celebration__plate {
    --phone-tier-width: min(69.6vw, calc(43.7dvh * 788 / 868));
    left: calc(50% - var(--phone-tier-width) / 2);
    top: calc(42.65% - var(--phone-tier-width) * 868 / 1576);
    width: var(--phone-tier-width); height: calc(var(--phone-tier-width) * 868 / 788);
  }



  .celebration[data-kind="tier"] .celebration__slot:not(.celebration__slot--scroll),
  .celebration[data-tier="big"] .celebration__slot:not(.celebration__slot--scroll),
  .celebration[data-tier="mega"] .celebration__slot:not(.celebration__slot--scroll),
  .celebration[data-tier="sensational"] .celebration__slot:not(.celebration__slot--scroll) {
    left: 19%; top: 74%; width: 62%; height: 22%;
    font-size: calc(clamp(14px, 5.6vw, 34px) * var(--fit, 1));
  }



  .celebration__scroll { left: 4%; top: 9%; width: 92%; height: 74%; }
  .celebration__banner { left: 14%; top: 24%; width: 72%; height: auto;
                         font-size: clamp(15px, 5.4vw, 32px); }









  .celebration__lead   { left: 20%; top: 38%; width: 60%; height: auto;
                         font-size: clamp(22px, 6.67vw, 39px); }
  .celebration__slot--scroll { left: 18%; top: 45%; width: 64%; height: 13%;
                               font-size: calc(clamp(17px, 6.4vw, 40px) * var(--fit, 1)); }
  .celebration__sub,
  .celebration[data-award="1"] .celebration__sub { left: 14%; top: 63%; width: 72%; height: auto;
                         font-size: clamp(22px, 6.67vw, 39px); }










  .celebration[data-kind="scroll"] .celebration__slot--scroll {
    font-size: calc(clamp(22px, 8.89vw, 54px) * var(--fit, 1));
  }
  .celebration__hint, .note__hint {
    top: auto; bottom: 6dvh; height: auto; line-height: 1.3;
    font-size: clamp(11px, 3.2vw, 18px);
  }













  .note[data-big="1"] {
    --note-big-plank-top: 35.7%;
    --note-big-plank-height: 11.7%;
  }
  .note[data-big="1"] .note__banner-art {
    left: 20%; top: var(--note-big-plank-top); width: 60%;
    height: var(--note-big-plank-height);
  }







  .note__rays  { left: -45.6%; top: -12.4%; width: 191.1%; height: 109%; }













  .note__frame { left: 9.4%; top: 21.1%; width: 81.1%; height: 45.2%; }
  .note__paper { left: 14.4%; top: 21.1%; width: 71.1%; height: 45.2%; }







  .note__banner-art { left: 20.6%; top: 27.4%; width: 58.6%; height: 11.4%; }












  .note__title { left: 20.6%; top: 27.8%; width: 58.6%; height: 9%;
                 font-size: calc(24 * var(--phone-note-u));
                 -webkit-text-stroke-width: calc(4 * var(--phone-note-u));
                 text-shadow: 0 calc(3 * var(--phone-note-u)) 0 #000; }



  .note[data-big="1"] .note__title {
    left: 20%; width: 60%;
    top: calc(var(--note-big-plank-top) + var(--note-big-plank-height) * 14 / 145);
    height: calc(var(--note-big-plank-height) * 87 / 145);
    font-size: calc(28.8 * var(--phone-note-u));
  }
  .note__text  { left: 23.6%; top: 42.2%; width: 52.8%; height: 9.8%;
                 font-size: calc(14 * var(--phone-note-u)); line-height: calc(15 * var(--phone-note-u)); }
}



@media (orientation: portrait) {
  .note[data-big="1"] .note__go {
    top: calc(43.7dvh + 36 * var(--phone-note-u));
    bottom: auto;
    color: #4a3123;
    text-shadow: 0 1px 0 #f7e7c6;
  }
}


.history-peek { display: none; }
.history-peek:not([hidden]) {
  position: absolute; z-index: 7; display: flex; align-items: center;
  justify-content: center; gap: 5px; height: 44px; padding: 0 7px;
  box-sizing: border-box; border: 1px solid #c5a66c; border-radius: 9px;
  color: #f7e8bc; background: linear-gradient(180deg, #4a382e, #1e1a1d 64%, #111416);
  box-shadow: 0 3px 8px #0009, inset 0 1px 0 #ffe4a340;
  cursor: pointer;
}
.history-peek__icon, .history-peek__icon svg { width: 20px; height: 20px; flex: none; }
.history-peek__label { font-size: 11px; font-weight: 900; line-height: 1; letter-spacing: .06em; }
@media (max-width: 400px) and (max-height: 460px) {
  .history-peek:not([hidden]) { gap: 3px; padding: 0 4px; }
  .history-peek__icon, .history-peek__icon svg { width: 16px; height: 16px; }
  .history-peek__label { font-size: 10px; }
}
.game[data-phase="bg1"] #historyPeek,
.game[data-phase="bg2"] #historyPeek { display: none !important; }
@media (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .ingredients { grid-template-rows: repeat(2, 34%); row-gap: 12%; }
  .ingredients[data-compact="1"] {



    --recipe-width: min(360px, calc(var(--recipe-right, 100vw) - max(16px, var(--recipe-left-limit, 16px))));
    left: calc(var(--recipe-right, 100vw) - var(--recipe-width));
    width: var(--recipe-width);
    height: min(64px, var(--recipe-room, 32px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-content: center; column-gap: 6px; row-gap: 4px;
  }
  .ingredients[data-compact="1"][data-count="1"] {
    --recipe-width: min(170px, calc(var(--recipe-right, 100vw) - max(16px, var(--recipe-left-limit, 16px))));
    height: min(32px, var(--recipe-room, 32px));
    grid-template-columns: 1fr; grid-template-rows: 1fr;
  }
  .ingredients[data-compact="1"][data-count="2"] {
    --recipe-width: min(328px, calc(var(--recipe-right, 100vw) - max(16px, var(--recipe-left-limit, 16px))));
    height: min(32px, var(--recipe-room, 32px));
    grid-template-rows: 1fr;
  }
  .ingredients[data-compact="1"][data-count="3"] .ingredient:nth-child(3) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 3px);
  }
  .ingredients[data-compact="1"] .ingredient {
    min-width: 0; box-sizing: border-box; padding: 0 8px 0 32px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(57, 38, 29, .96), rgba(18, 16, 16, .94) 58%, rgba(9, 13, 13, .96));
    box-shadow: 0 3px 8px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(243, 202, 122, .34);
  }
  .ingredients[data-compact="1"] .ingredient::before {
    inset: 3px 3px 3px 29px; width: auto;
    border-radius: 4px;
    transform: scaleX(var(--p, 0)); transform-origin: left;
    background: linear-gradient(90deg, rgba(56, 140, 93, .54), rgba(106, 205, 135, .67));
    transition: transform 260ms ease-out;
  }
  .ingredients[data-compact="1"] .ingredient[data-full="1"]::before {
    background: linear-gradient(90deg, rgba(186, 133, 46, .58), rgba(249, 208, 105, .72));
  }
  .ingredients[data-compact="1"] .ingredient::after {
    box-shadow: inset 0 0 0 1px rgba(210, 170, 99, .62),
                inset 0 1px 0 rgba(255, 229, 170, .28),
                inset 0 -2px 0 rgba(0, 0, 0, .55);
  }
  .ingredients[data-compact="1"] .ingredient__img {
    width: 26px; left: 4px;
  }
  .ingredients[data-compact="1"] .ingredient__n {
    font-size: clamp(11px, 1.5vw, 14px); line-height: 1;
  }



  .ingredients[data-compact="1"][data-count="1"] .ingredient__n {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .ingredients[data-compact="1"][data-count="3"] .ingredient__img,
  .ingredients[data-compact="1"][data-count="4"] .ingredient__img {
    width: clamp(20px, 3vw, 26px); left: 3px;
  }
  .ingredients[data-compact="1"][data-count="3"] .ingredient,
  .ingredients[data-compact="1"][data-count="4"] .ingredient {
    padding-left: clamp(25px, 3.8vw, 32px);
  }
  .ingredients[data-compact="1"][data-count="3"] .ingredient::before,
  .ingredients[data-compact="1"][data-count="4"] .ingredient::before {
    left: clamp(23px, 3.5vw, 29px);
  }
  #payScroll[data-recipe-overlap="1"] { visibility: hidden; }
  .scroll--total[data-compact="1"] {
    grid-template-columns: auto auto; justify-content: center; gap: 12px;
    padding: 4px 10px; border: 1px solid var(--panel-edge); border-radius: 8px;
    background: rgba(26, 17, 23, .92);
  }
  .scroll--total[data-compact="1"] .scroll__art,
  .scroll--total[data-compact="1"]::before,
  .scroll--total[data-compact="1"]::after { display: none; }
  .scroll--total[data-compact="1"] .scroll__total-k,
  .scroll--total[data-compact="1"] .scroll__total-v {
    grid-area: auto; align-self: center; margin: 0; max-width: 100%;
    text-shadow: 0 1px 2px #000; letter-spacing: .02em; line-height: 1.1;
    color: #ead577; -webkit-text-stroke: 0; filter: none;
  }
  .scroll--total[data-compact="1"] :is(.scroll__total-k, .scroll__total-v)::after { content: none; }
  .scroll--total[data-compact="1"] .scroll__total-k { font-size: 11px; }
  .scroll--total[data-compact="1"] .scroll__total-v { font-size: max(14px, calc(18px * var(--fit, 1))); }
  .scroll--total[data-inline="1"] {
    grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 4px 8px;
  }
  .scroll--total[data-inline="1"] .scroll__total-k {
    white-space: normal; font-size: 10px; text-align: left;
  }
  .scroll--total[data-inline="1"] .scroll__total-v {
    min-width: 0; justify-self: end; text-align: right;
    font-size: max(14px, calc(16px * var(--fit, 1)));
  }

  @media (max-height: 740px) {
    .game[data-levels="1"] .board-wrap { bottom: 48px; }
  }
  @media (min-width: 561px) {
    .game[data-levels="1"] .board-wrap { bottom: 48px; }
  }
}



@media (orientation: portrait) and (min-width: 900px) {
  #ingredients[data-compact="0"][data-count="3"],
  #ingredients[data-compact="0"][data-count="4"] {
    align-content: start; row-gap: 6%;
  }
}
@media (max-width: 560px), (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .card.card--sound { flex-direction: row; }
}

.win-amount__parts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; max-width: 100%; }
.win-amount__part { display: inline-flex; align-items: center; gap: 4px; }
.win-amount__symbol { width: 38px; height: 38px; object-fit: contain; }


.note.note--ready .note__hint, .celebration.is-ready .celebration__hint { visibility: hidden; }
.celebration[data-kind="scroll"] .celebration__hint { visibility: hidden; }




@media (orientation: portrait) {
  .celebration[data-kind="scroll"] .celebration__go {
    left: 50%; right: auto; top: var(--reward-prompt-top, 69%); bottom: auto;
    width: max-content; max-width: calc(100vw - 24px);
    transform: translateX(-50%);
    padding: 3px 12px; border: 1px solid rgba(246, 207, 133, .76);
    border-radius: 999px; background: rgba(24, 15, 19, .86);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .36);
    color: #fff0ca; text-shadow: none;
    font-size: clamp(12px, 2.8vw, 15px); letter-spacing: .07em;
  }



  .celebration[data-kind="scroll"]:has(.celebration__stage[data-reward-renderer="fallback"]) .celebration__go {
    top: calc(46dvh + 269 * min(calc(92vw / 850), calc(74dvh / 910)));
  }
  .celebration[data-kind="scroll"].is-ready .celebration__go {
    animation: awardContinueBreathe 1.8s ease-in-out infinite;
  }
}
@keyframes awardContinueBreathe {
  0%, 100% { opacity: .78; }
  50% { opacity: 1; }
}


.is-replacing, .is-replacing .buy-card, .is-replacing .buy__ribbon,
.is-replacing .card__actions, .is-replacing > * { animation: none !important; }


@media (max-width: 560px), (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .buy-card .buy-card__desc {
    left: 17%; right: 17%; width: auto; top: 19%;
    font-size: clamp(14px, 4.6cqw, 18px); line-height: 1.2;
    text-wrap: balance;
  }
  .buy-card--confirm.is-silver .buy-card__desc { top: 22%; }
}


@media (prefers-reduced-motion: reduce) {
  .celebration__stage, .note__stage { animation: none; }
}



@media (min-width: 761px) and (orientation: landscape), (min-width: 561px) and (orientation: landscape) and (max-height: 500px) {
  .celebration[data-kind="scroll"] .celebration__go,
  .celebration[data-kind="scroll"] .celebration__hint {
    top: calc(865 * var(--canvas-u)); bottom: auto; height: auto;
    font-size: clamp(11px, calc(20 * var(--canvas-u)), 20px); line-height: 1.25;
  }
  .celebration[data-kind="scroll"]:not(:has([data-reward-renderer="spine"])) .celebration__go {
    top: calc(790 * var(--canvas-u));
  }

  .celebration[data-award="1"] .celebration__stage:not([data-reward-renderer="spine"]) .celebration__slot--scroll {
    top: calc(445 * var(--canvas-u)); height: calc(171 * var(--canvas-u));
    font-size: calc(106 * var(--canvas-u) * var(--fit, 1)); line-height: 1;
  }
  .celebration[data-award="1"] .celebration__stage:not([data-reward-renderer="spine"]) .celebration__lead {
    top: calc(356 * var(--canvas-u)); height: calc(54.6 * var(--canvas-u));
  }
  .celebration[data-award="1"] .celebration__stage:not([data-reward-renderer="spine"]) .celebration__sub {
    top: calc(716 * var(--canvas-u)); height: calc(75 * var(--canvas-u));
  }
  .celebration[data-kind="scroll"][data-award="1"]:not(:has([data-reward-renderer="spine"])) .celebration__go {
    top: calc(816 * var(--canvas-u));
  }

}




.celebration__slot { transition: none !important; }






@media (orientation: portrait) {
  .celebration__stage[data-reward-renderer="fallback"],
  .celebration__stage[data-reward-renderer="fallback"] * { transition: none !important; }
  .celebration__stage[data-reward-renderer="fallback"] {
    --fallback-reward-u: min(calc(92vw / 850), calc(74dvh / 910));
    --fallback-reward-left: calc(50vw - 425 * var(--fallback-reward-u));
    --fallback-reward-top: calc(46dvh - 455 * var(--fallback-reward-u));
  }
  .celebration__stage[data-reward-renderer="fallback"] .celebration__scroll {
    left: var(--fallback-reward-left); top: var(--fallback-reward-top);
    width: calc(850 * var(--fallback-reward-u)); height: calc(910 * var(--fallback-reward-u));
  }
  .celebration__stage[data-reward-renderer="fallback"] .celebration__banner {
    left: calc(var(--fallback-reward-left) + 137 * var(--fallback-reward-u));
    top: calc(var(--fallback-reward-top) + 161 * var(--fallback-reward-u));
    width: calc(575 * var(--fallback-reward-u)); height: calc(75 * var(--fallback-reward-u));
    font-size: calc(56 * var(--fallback-reward-u));
  }
  .celebration__stage[data-reward-renderer="fallback"] .celebration__lead {
    left: calc(var(--fallback-reward-left) + 263 * var(--fallback-reward-u));
    top: calc(var(--fallback-reward-top) + 307 * var(--fallback-reward-u));
    width: calc(323 * var(--fallback-reward-u)); height: calc(54 * var(--fallback-reward-u));
    font-size: calc(40 * var(--fallback-reward-u));
  }
  .celebration[data-kind="scroll"] .celebration__stage[data-reward-renderer="fallback"] .celebration__slot--scroll {
    left: calc(var(--fallback-reward-left) + 175 * var(--fallback-reward-u));
    top: calc(var(--fallback-reward-top) + 393 * var(--fallback-reward-u));
    width: calc(501 * var(--fallback-reward-u)); height: calc(171 * var(--fallback-reward-u));
    padding-bottom: calc(38 * var(--fallback-reward-u));
    font-size: calc(72 * var(--fallback-reward-u) * var(--fit, 1));
  }
  .celebration .celebration__stage[data-reward-renderer="fallback"] .celebration__sub {
    left: calc(var(--fallback-reward-left) + 220 * var(--fallback-reward-u));
    top: calc(var(--fallback-reward-top) + 572 * var(--fallback-reward-u));
    width: calc(410 * var(--fallback-reward-u)); height: calc(54 * var(--fallback-reward-u));
    font-size: calc(40 * var(--fallback-reward-u)); letter-spacing: 0;
  }
  .celebration[data-kind="scroll"][data-award="1"] .celebration__stage[data-reward-renderer="fallback"] .celebration__slot--scroll {
    top: calc(var(--fallback-reward-top) + 393 * var(--fallback-reward-u));
    height: calc(171 * var(--fallback-reward-u));
    padding-bottom: 0;
    font-size: calc(106 * var(--fallback-reward-u) * var(--fit, 1));
  }
  .celebration[data-award="1"] .celebration__stage[data-reward-renderer="fallback"] .celebration__lead {
    top: calc(var(--fallback-reward-top) + 304 * var(--fallback-reward-u));
    height: calc(54.6 * var(--fallback-reward-u));
  }
  .celebration[data-award="1"] .celebration__stage[data-reward-renderer="fallback"] .celebration__sub {
    top: calc(var(--fallback-reward-top) + 664 * var(--fallback-reward-u));
    height: calc(75 * var(--fallback-reward-u));
    font-size: calc(56 * var(--fallback-reward-u));
  }
  .celebration[data-kind="scroll"][data-award="1"]:has(.celebration__stage[data-reward-renderer="fallback"]) .celebration__go {
    top: calc(46dvh + 309 * min(calc(92vw / 850), calc(74dvh / 910)));
  }
  .celebration__stage[data-reward-renderer="fallback"] .celebration__scrollbox::before {
    left: calc(var(--fallback-reward-left) + 150 * var(--fallback-reward-u));
    top: calc(var(--fallback-reward-top) + 330 * var(--fallback-reward-u));
    width: calc(549 * var(--fallback-reward-u)); height: calc(289 * var(--fallback-reward-u));
    filter: blur(calc(36 * var(--fallback-reward-u)));
  }
  .celebration__stage[data-reward-renderer="fallback"] .celebration__rays--scroll {
    left: calc(50vw - 855.5 * var(--fallback-reward-u));
    top: calc(46dvh - 771.5 * var(--fallback-reward-u));
    width: calc(1711 * var(--fallback-reward-u)); height: calc(1543 * var(--fallback-reward-u));
  }
}






@media (orientation: landscape) and (max-height: 560px) {
  .celebration {
    --reward-u: min(calc(92vw / 850), calc(82dvh / 910));
    --reward-left: calc(50vw - 425 * var(--reward-u));
    --reward-top: calc(46dvh - 455 * var(--reward-u));
    --tier-u: min(calc(84vw / 250.56), calc(76dvh / 276));
  }
  .celebration__stage { left: 0; width: 100%; height: 100%; }

  .celebration__plate,
  .celebration[data-tier="big"] .celebration__plate {
    --tier-height: calc(234.97 * var(--tier-u));
    --tier-width: calc(var(--tier-height) * 558 / 667);
  }
  .celebration[data-tier="mega"] .celebration__plate {
    --tier-height: calc(235.07 * var(--tier-u));
    --tier-width: calc(var(--tier-height) * 606 / 742);
  }
  .celebration[data-tier="sensational"] .celebration__plate {
    --tier-height: calc(276 * var(--tier-u));
    --tier-width: calc(var(--tier-height) * 788 / 868);
  }
  .celebration__plate,
  .celebration[data-tier="big"] .celebration__plate,
  .celebration[data-tier="mega"] .celebration__plate,
  .celebration[data-tier="sensational"] .celebration__plate {
    left: calc(50% - var(--tier-width) / 2);
    top: calc(46dvh - var(--tier-height) / 2);
    width: var(--tier-width); height: var(--tier-height);
  }
  .celebration[data-kind="tier"] .celebration__slot:not(.celebration__slot--scroll),
  .celebration[data-tier="big"] .celebration__slot:not(.celebration__slot--scroll),
  .celebration[data-tier="mega"] .celebration__slot:not(.celebration__slot--scroll),
  .celebration[data-tier="sensational"] .celebration__slot:not(.celebration__slot--scroll) {
    left: 19%; top: 74%; width: 62%; height: 22%;
    font-size: calc(32 * var(--tier-u) * var(--fit, 1));
  }
  .celebration__rays--tier {
    left: calc(50% - 344 * var(--tier-u));
    top: calc(46dvh - 344 * var(--tier-u));
    width: calc(688 * var(--tier-u)); height: calc(688 * var(--tier-u));
  }




  .celebration__scroll {
    left: var(--reward-left); top: var(--reward-top);
    width: calc(850 * var(--reward-u)); height: calc(910 * var(--reward-u));
  }
  .celebration__banner {
    left: calc(var(--reward-left) + 137 * var(--reward-u));
    top: calc(var(--reward-top) + 161 * var(--reward-u));
    width: calc(575 * var(--reward-u)); height: calc(75 * var(--reward-u));
    font-size: calc(56 * var(--reward-u));
    text-shadow: 0 calc(3 * var(--reward-u)) 0 #000;
  }
  .celebration__lead {
    left: calc(var(--reward-left) + 263 * var(--reward-u));
    top: calc(var(--reward-top) + 307 * var(--reward-u));
    width: calc(323 * var(--reward-u)); height: calc(54 * var(--reward-u));
    font-size: calc(40 * var(--reward-u));
    text-shadow: 0 min(1px, calc(3 * var(--reward-u))) 0 rgba(255, 244, 205, 0.5);
  }
  .celebration[data-kind="scroll"] .celebration__slot--scroll {
    left: calc(var(--reward-left) + 175 * var(--reward-u));
    top: calc(var(--reward-top) + 393 * var(--reward-u));
    width: calc(501 * var(--reward-u)); height: calc(171 * var(--reward-u));
    padding-bottom: calc(38 * var(--reward-u));
    font-size: calc(72 * var(--reward-u) * var(--fit, 1));
  }
  .celebration__sub,
  .celebration[data-award="1"] .celebration__sub {
    left: calc(var(--reward-left) + 220 * var(--reward-u));
    top: calc(var(--reward-top) + 572 * var(--reward-u));
    width: calc(410 * var(--reward-u)); height: calc(54 * var(--reward-u));
    font-size: calc(40 * var(--reward-u)); letter-spacing: 0;
  }
  .celebration__sub {
    text-shadow: 0 min(1px, calc(3 * var(--reward-u))) 0 rgba(255, 244, 205, 0.5);
  }
  .celebration[data-award="1"] .celebration__sub {
    text-shadow: 0 calc(3 * var(--reward-u)) 0 #000;
  }
  .celebration[data-kind="scroll"][data-award="1"] .celebration__slot--scroll {
    top: calc(var(--reward-top) + 393 * var(--reward-u));
    height: calc(171 * var(--reward-u));
    padding-bottom: 0;
    font-size: calc(106 * var(--reward-u) * var(--fit, 1));
  }
  .celebration[data-award="1"] .celebration__stage:not([data-reward-renderer="spine"]) .celebration__lead {
    top: calc(var(--reward-top) + 304 * var(--reward-u));
    height: calc(54.6 * var(--reward-u));
  }
  .celebration[data-award="1"] .celebration__stage:not([data-reward-renderer="spine"]) .celebration__sub {
    top: calc(var(--reward-top) + 664 * var(--reward-u));
    height: calc(75 * var(--reward-u));
    font-size: calc(56 * var(--reward-u));
  }
  .celebration__scrollbox::before {
    left: calc(var(--reward-left) + 150 * var(--reward-u));
    top: calc(var(--reward-top) + 330 * var(--reward-u));
    width: calc(549 * var(--reward-u)); height: calc(289 * var(--reward-u));
    filter: blur(calc(36 * var(--reward-u)));
  }
  .celebration__rays--scroll {
    left: calc(50% - 855.5 * var(--reward-u));
    top: calc(46dvh - 771.5 * var(--reward-u));
    width: calc(1711 * var(--reward-u)); height: calc(1543 * var(--reward-u));
  }
  .celebration .celebration__go,
  .celebration .celebration__hint,
  .celebration[data-kind="scroll"] .celebration__go,
  .celebration[data-kind="scroll"] .celebration__hint,
  .celebration[data-kind="scroll"]:not(:has([data-reward-renderer="spine"])) .celebration__go {
    top: auto; bottom: max(3dvh, calc(env(safe-area-inset-bottom) + 8px)); height: auto;
    left: 50%; right: auto; width: max-content; max-width: calc(100vw - 24px);
    transform: translateX(-50%); padding: 3px 10px;
    border: 1px solid #766347; border-radius: 12px; background: #100d12;
    color: #ffecbe; text-shadow: 0 1px 1px #000;
    animation-name: landscapeHintPulse;
    font-size: clamp(11px, 3.5dvh, 16px); line-height: 1.25;
  }




  .celebration[data-kind="scroll"]:has(.celebration__stage[data-reward-renderer="spine"]) .celebration__go {
    top: calc(var(--reward-top) + 790 * var(--reward-u)); bottom: auto;
  }
  .celebration[data-kind="scroll"]:has(.celebration__stage[data-reward-renderer="fallback"]) .celebration__go {
    top: calc(var(--reward-top) + 700 * var(--reward-u)); bottom: auto;
  }
  .celebration[data-kind="scroll"][data-award="1"]:has(.celebration__stage[data-reward-renderer="fallback"]) .celebration__go {
    top: calc(var(--reward-top) + 764 * var(--reward-u));
  }




  .note {
    --note-u: min(calc(84vw / 467), calc(74dvh / 455));
    --note-top: calc(46dvh - 227.5 * var(--note-u));
    --note-banner-y: 64;
    --note-banner-height: 114.89;
    --note-title-y: 68;
    --note-title-height: 90;
    --note-title-size: 36;
  }
  .note[data-big="1"] {
    --note-banner-y: 134;
    --note-banner-height: 145;
    --note-title-y: 148;
    --note-title-height: 87;
    --note-title-size: 62;
  }
  .note__stage { left: 0; top: 0; width: 100%; height: 100%; }
  .note__frame {
    width: calc(455 * var(--note-u) * 512 / 499);
    height: calc(455 * var(--note-u));
    left: calc(50% - 227.5 * var(--note-u) * 512 / 499);
    top: var(--note-top);
  }
  .note__paper {
    width: calc(455 * var(--note-u) * 432 / 483);
    height: calc(455 * var(--note-u));
    left: calc(50% - 227.5 * var(--note-u) * 432 / 483);
    top: var(--note-top);
  }
  .note__banner-art,
  .note[data-big="1"] .note__banner-art {
    width: calc(var(--note-banner-height) * var(--note-u) * 369 / 126);
    height: calc(var(--note-banner-height) * var(--note-u));
    left: calc(50% - var(--note-banner-height) * var(--note-u) * 369 / 252);
    top: calc(var(--note-top) + var(--note-banner-y) * var(--note-u));
  }
  .note__title,
  .note[data-big="1"] .note__title {
    width: calc(var(--note-banner-height) * var(--note-u) * 369 / 126);
    height: calc(var(--note-title-height) * var(--note-u));
    left: calc(50% - var(--note-banner-height) * var(--note-u) * 369 / 252);
    top: calc(var(--note-top) + var(--note-title-y) * var(--note-u));
    font-size: calc(var(--note-title-size) * var(--note-u));
    -webkit-text-stroke-width: calc(6 * var(--note-u));
    text-shadow: 0 calc(3 * var(--note-u)) 0 #000;
  }
  .note__text {
    left: calc(50% - 155 * var(--note-u));
    top: calc(var(--note-top) + 198 * var(--note-u));
    width: calc(310 * var(--note-u)); height: calc(111 * var(--note-u));
    font-size: calc(24 * var(--note-u)); line-height: calc(27 * var(--note-u));
  }
  .note__rays {
    left: calc(50% - 612 * var(--note-u));
    top: calc(46dvh - 612 * var(--note-u));
    width: calc(1224 * var(--note-u)); height: calc(1224 * var(--note-u));
  }
  .note .note__go,
  .note .note__hint {
    top: auto; bottom: max(3dvh, calc(env(safe-area-inset-bottom) + 8px)); height: auto;
    left: 50%; right: auto; width: max-content; max-width: calc(100vw - 24px);
    transform: translateX(-50%); padding: 3px 10px;
    border: 1px solid #766347; border-radius: 12px; background: #100d12;
    color: #ffecbe; text-shadow: 0 1px 1px #000;
    animation-name: landscapeHintPulse;
    font-size: clamp(11px, 3.5dvh, 16px); line-height: 1.25;
  }

  @keyframes landscapeHintPulse {
    0%, 100% { color: #cfbc90; }
    50% { color: #ffecbe; }
  }
}





@media (orientation: landscape) and (max-height: 500px) {
  .buy .buy__ribbon { font-size: max(12px, calc(34 * var(--canvas-u))); }
  .buy .buy-card__go {
    left: calc(50% - max(75px, calc(199 * var(--canvas-u))) * 0.5);
    width: max(75px, calc(199 * var(--canvas-u)));
    height: max(18px, calc(49 * var(--canvas-u)));
    font-size: max(11px, calc(22.692 * var(--canvas-u)));
  }
  .buy-card { --buy-copy-title-y: 246; }
  .buy-card.buy-card--confirm {
    --buy-copy-title-y: 258;


    --confirm-value-height: max(30px, calc(74 * var(--canvas-u)));
    --confirm-control-y: max(calc(820 * var(--canvas-u)),
      calc(776 * var(--canvas-u) + var(--confirm-value-height) * 0.5 + 2px));
    --confirm-action-y: max(calc(927.5 * var(--canvas-u)),
      calc(var(--confirm-control-y) + var(--hit-min) + 4px));
    --confirm-value-width: max(64px, calc(189 * var(--canvas-u)));
    --confirm-action-width: max(72px, calc(166 * var(--canvas-u)));
    --confirm-step-size: max(22px, calc(56 * var(--canvas-u)));
    --confirm-stepper-width: calc(var(--confirm-value-width) + 2 * var(--hit-min) + 12px);
  }
  .buy-card .buy-card__name {
    left: 8%; right: 8%; width: auto;
    top: calc((var(--buy-copy-title-y) - var(--card-y)) * var(--canvas-u));
    height: auto; font-size: 12px; line-height: 1.2;
    text-shadow: none;
  }
  .buy-card .buy-card__desc {
    left: 8%; right: 8%; width: auto;
    top: calc((var(--buy-copy-title-y) - var(--card-y)) * var(--canvas-u) + 17px);
    font-size: 12px; line-height: 1.12; text-wrap: balance;
  }
  .buy-card .buy-card__price {


    left: calc(50% - max(84px, calc(200 * var(--canvas-u))) * 0.5);
    width: max(84px, calc(200 * var(--canvas-u)));
    font-size: max(12px, calc(32 * var(--canvas-u))); line-height: 1.1;
  }



  .buy-card.is-royal .buy-card__desc {
    left: 17%; right: 17%; padding: 1px 3px 2px;
    border-radius: 2px; background: rgba(230, 219, 185, 0.96);
  }


  .buy .buy-card__stepper .stake,
  .buy .buy__stepper .stake {
    min-width: 0; min-height: 30px; padding: 2px; gap: 0;
  }
  .buy-card__stepper .stake__k,
  .buy__stepper .stake__k { font-size: 10px; line-height: 1.1; }
  .buy-card__stepper .stake__v,
  .buy__stepper .stake__v { font-size: 12px; line-height: 1.1; }


  .buy .buy__stepper.stake-group--modal {
    --buy-stepper-width: max(140px, calc(363 * var(--canvas-u)));
    --buy-value-width: max(56px, calc(143.5 * var(--canvas-u)));
    --buy-step-size: max(22px, calc(56 * var(--canvas-u)));
    left: calc(50% - var(--buy-stepper-width) * 0.5);
    width: var(--buy-stepper-width); height: max(44px, calc(127 * var(--canvas-u)));


    top: max(calc(863 * var(--canvas-u)),
      calc(710.5 * var(--canvas-u) + var(--hit-min) * 0.5 + 42px));
  }
  .buy .buy__stepper .stake {
    left: calc(50% - var(--buy-value-width) * 0.5);
    top: calc(50% - max(30px, calc(66 * var(--canvas-u))) * 0.5);
    width: var(--buy-value-width); height: max(30px, calc(66 * var(--canvas-u)));
  }
  .buy .buy__stepper .step-btn {
    top: calc(50% - var(--buy-step-size) * 0.5);
    width: var(--buy-step-size); height: var(--buy-step-size);
  }
  .buy .buy__stepper #buyBetDown,
  .buy .buy__stepper .step-btn:first-of-type {
    left: calc(50% - var(--buy-value-width) * 0.5 - 12px - var(--buy-step-size));
  }
  .buy .buy__stepper .step-btn:last-of-type {
    left: calc(50% + var(--buy-value-width) * 0.5 + 12px);
  }
  .buy .buy-card__stepper.stake-group--modal {
    left: calc(50% - var(--confirm-stepper-width) * 0.5);
    top: calc(var(--confirm-control-y) - var(--card-y) * var(--canvas-u) - var(--hit-min) * 0.5);
    width: var(--confirm-stepper-width); height: var(--hit-min);
  }
  .buy .buy-card__stepper .step-btn {
    top: calc(50% - var(--confirm-step-size) * 0.5);
    width: var(--confirm-step-size); height: var(--confirm-step-size);
  }
  .buy .buy-card__stepper .step-btn:first-of-type {
    left: calc((var(--hit-min) - var(--confirm-step-size)) * 0.5);
  }
  .buy .buy-card__stepper .step-btn:last-of-type {
    left: calc(100% - (var(--hit-min) + var(--confirm-step-size)) * 0.5);
  }
  .buy .buy-card__stepper .stake {
    left: calc(50% - var(--confirm-value-width) * 0.5);
    top: calc(50% - var(--confirm-value-height) * 0.5);
    width: var(--confirm-value-width); height: var(--confirm-value-height);
  }
  .buy .buy-card__stepper .stake::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 100%; height: max(var(--hit-min), 100%);
    transform: translate(-50%, -50%);
  }



  .buy-card--confirm .buy-card__back,
  .buy-card--confirm .buy-card__buy {
    top: calc(var(--confirm-action-y) - var(--card-y) * var(--canvas-u) - var(--hit-min) * 0.5);
    bottom: auto; width: var(--confirm-action-width); height: var(--hit-min);
    font-size: 14px; line-height: 1;
  }
  .buy-card--confirm .buy-card__back {
    left: calc(50% - var(--confirm-action-width) - 4px);
  }
  .buy-card--confirm .buy-card__buy {
    left: calc(50% + 4px);
  }
  .buy-card:not(.buy-card--confirm) .buy-card__why {
    top: calc((710.5 - var(--card-y)) * var(--canvas-u) + var(--hit-min) * 0.5 + 1px);
    left: 3%; right: 3%; width: auto; max-width: none;
    transform: none; padding: 2px 3px;
    font-size: 10px; line-height: 1.2; border-radius: 3px;
    background: rgba(22, 15, 20, 0.94);
  }
  .buy-card--confirm .buy-card__why {


    top: calc(var(--confirm-control-y) - var(--card-y) * var(--canvas-u) - 44px);
    left: calc(100% + 12px); right: auto;
    width: min(180px, calc(50vw - 50% - 24px));
    max-width: none; transform: none;
    font-size: 12px; line-height: 1.2; padding: 4px 6px;
  }
}




@media (orientation: portrait), (max-width: 760px) and (min-height: 501px) {


  #payScroll { background: transparent; }
  #payScroll::before {
    content: ''; position: absolute; left: 0; top: 0; width: 100%;
    height: var(--history-fill, 100%); border-radius: 12px;
    background: rgba(11, 11, 11, .72);
  }
  #payScroll .scroll__row--empty { visibility: hidden; }
  #payScroll .scroll__rows {
    --pay-font-size: clamp(11px, 7.3cqw, 16px);


    --pay-icon-size: clamp(12px, calc(21.5cqw - 7.7px), 20px);
    inset: 2px 4px; gap: 0;
    grid-template-rows: repeat(5, minmax(0, 1fr));
    align-content: stretch;
  }
  #payScroll .scroll__row {
    grid-template-columns: max-content var(--pay-icon-size) minmax(0, 1fr);
    grid-template-rows: var(--pay-icon-size) var(--pay-font-size);
    column-gap: 2px; row-gap: 0; align-content: center;
  }
  #payScroll .scroll__rank {
    grid-column: 1; grid-row: 1;
    font-size: var(--pay-font-size); line-height: 1; text-align: left;
  }
  #payScroll .scroll__sym {
    grid-column: 2; grid-row: 1;
    position: static; transform: none;
    width: var(--pay-icon-size); height: var(--pay-icon-size);
  }
  #payScroll .scroll__pay {
    grid-column: 1 / -1; grid-row: 2; min-width: 0;
    font-size: var(--pay-font-size); line-height: 1; white-space: nowrap;
  }
}




@media (orientation: landscape) and (max-width: 1024px) and (max-height: 500px) {

  .card--menu .menu { grid-auto-rows: max-content; align-content: start; }
}
@media (orientation: landscape) and (max-width: 1024px) and (max-height: 500px) {
  .chrome__row .ante { display: none; }
  .chrome__row .stat--inline {
    top: 19.59%; height: 45.95%;
    flex-direction: column; background: none; padding: 0;
  }
  .chrome__row .stat--inline .stat__k {
    position: static; width: 100%; margin: 0; text-align: center;
  }
  .chrome__row .stat--inline .stat__v {
    position: static; width: 100%; height: 58.8%; margin: auto 0 0;
    display: grid; place-items: center;
    background: #111; border-radius: calc(10 * var(--panel-u));
  }


  .chrome__row #statMid {
    top: 19.59%; height: 45.95%; flex-direction: column;
    justify-content: center; gap: 2px;
  }
  .chrome__row #statMid .stat__k,
  .chrome__row #statMid .stat__v {
    position: static; width: 100%; margin: 0; transform: none;
    line-height: 1.1; text-align: center;
  }
}


@media (orientation: landscape) and (max-width: 520px) and (max-height: 500px) {
  .buy-card .buy-card__name { left: 3%; right: 3%; font-size: 11px; letter-spacing: 0; }
  .buy-card.is-silver .buy-card__desc,
  .buy-card.is-gold .buy-card__desc { left: 4%; right: 4%; }
}



@media (orientation: landscape) and (max-height: 500px) {
  .card--auto { width: min(440px, 88vw); padding-bottom: 16px; }
  .card--auto .card__title { margin-bottom: 8px; }
  .card--auto .card__actions { margin-top: 10px; }
  .card--auto .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}




@media (orientation: landscape) and (max-height: 400px) {
  .card--flat.bet-chooser {
    display: grid; grid-template-columns: minmax(0, 1fr) 100px;
    grid-template-rows: auto auto auto minmax(52px, 1fr) auto;
    column-gap: 8px; padding-bottom: 12px;
  }
  .bet-chooser .card__title {
    grid-column: 1 / -1; grid-row: 1; margin-bottom: 6px;
    font-size: 18px; line-height: 22px;
  }
  .bet-chooser .bet-chooser__controls { grid-column: 1; grid-row: 2; gap: 8px; margin-bottom: 6px; }
  .bet-chooser .bet-chooser__ends { grid-column: 2; grid-row: 2; gap: 6px; margin: 0 0 6px; }
  .bet-chooser .bet-chooser__edge { padding: 0 2px; letter-spacing: 0; }
  .bet-chooser .bet-progress-key { grid-column: 1 / -1; grid-row: 3; margin: 0 0 4px; line-height: 14px; }
  .bet-chooser .bet-grid { grid-column: 1 / -1; grid-row: 4; }
  .bet-chooser .bet-note { grid-column: 1 / -1; grid-row: 5; margin: 4px 0 0; line-height: 16px; }
}

.card--auto .auto-total {
  flex: 0 0 auto; margin: 8px 0 0; color: var(--ink);
  font-size: 16px; text-align: center; overflow-wrap: anywhere;
}
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {


  .card--auto .auto-total { margin-top: 2px; }
}




@media (orientation: landscape) and (max-height: 260px) {
  .card--auto {
    top: -8px; max-height: calc(100dvh - 24px);
    padding-top: 32px; padding-bottom: 4px;
  }
  .card--auto .card__knob { top: -11px; }
  .card--auto .card__title { margin-bottom: 0; font-size: 18px; line-height: 20px; }
  .card--auto .chips { row-gap: 2px; }
  .card--auto .auto-total { margin-top: 0; font-size: 14px; line-height: 19px; }
  .card--auto .card__actions { margin-top: 3px; }
}


@media (hover: hover) and (pointer: fine) {
  .card--flat .bet-cell[data-picked="1"]:hover:not(:disabled) {
    background: #f6ca35; color: #252525;
  }
}



.card__scroll .facts { display: grid; width: 100%; min-width: 0; gap: 8px; border-spacing: 0; }

@media (orientation: landscape) and (min-width: 561px) and (max-height: 500px) {
  .card--failure { padding-bottom: 16px; }
  .card--failure .card__title { margin-bottom: 10px; }
  .card--failure .card__text { margin-bottom: 10px; }
  .card--failure .card__trace { margin-bottom: 8px; }
  .rules { padding: 20px 0 28px; }
  .rules h3 { margin-top: 24px; margin-bottom: 20px; }
  .rules-shell .card__knob--corner {
    top: max(10px, calc(env(safe-area-inset-top) + 8px));
    right: max(10px, calc(env(safe-area-inset-right) + 8px));
  }
}





@media (orientation: landscape) and (max-width: 520px) and (max-height: 340px) and (pointer: coarse) {
  .buy {
    position: fixed; inset: 0; left: 0; top: 0;
    width: 100vw; height: 100dvh;
    padding: 3px 5px 2px;
    display: grid; grid-template-rows: 44px minmax(0, 1fr) 40px;
    gap: 3px; align-items: stretch; justify-items: stretch;
    perspective: none;
    background: linear-gradient(180deg, rgba(19, 17, 23, .80), rgba(16, 13, 18, .91));
  }
  .buy .buy__ribbon, .buy .buy__ribbon--wide {
    position: static; align-self: center; justify-self: center;
    width: 170px; height: 30px; padding: 0;
    font-size: 15px; line-height: 1; white-space: nowrap;
    background-size: 100% 100%; background-position: center;
  }
  .buy .card__knob--corner {
    position: absolute; top: 3px; right: max(5px, env(safe-area-inset-right));
    width: 44px; height: 44px; z-index: 4;
  }
  .buy .buy-grid {
    display: grid; grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: minmax(45px, auto); align-content: start;
    width: 100%; height: 100%; gap: 3px; padding: 0;
    overflow-x: hidden; overflow-y: auto; scroll-snap-type: none;
    scrollbar-width: thin; scrollbar-color: #bda77c transparent;
  }
  .buy .buy-grid .buy-card {
    --buy-title-color: #fbfbee;
    position: relative; left: auto; top: auto;
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr) 72px;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto;
    column-gap: 3px; align-items: center;
    width: 100%; height: auto; min-height: 45px; padding: 1px 2px;
    border: 1px solid #8e744d; border-radius: 7px;
    background: rgba(43, 30, 30, .96);
    box-shadow: inset 0 1px rgba(255, 226, 167, .13);
    animation: none;
  }
  .buy .buy-grid .buy-card__name,
  .buy .buy-grid .buy-card__desc,
  .buy .buy-grid .buy-card__plate,
  .buy .buy-grid .buy-card__price,
  .buy .buy-grid .buy-card__why {
    position: static; left: auto; right: auto; top: auto; bottom: auto;
    width: auto; height: auto; margin: 0; transform: none;
  }
  .buy .buy-grid .buy-card__name {
    grid-column: 1; grid-row: 1;
    display: block; font-size: 10px; line-height: 1.05;
    white-space: normal; letter-spacing: 0; text-align: left;
  }
  .buy .buy-grid .buy-card__desc {
    grid-column: 1; grid-row: 2;
    padding: 0; background: none;
    font-size: 9px; line-height: 1.05; color: #e6d6b9; text-align: left;
  }
  .buy .buy-grid .buy-card__plate,
  .buy .buy-grid .buy-card__plate--long {
    grid-column: 2; grid-row: 1;
    padding: 0;
    display: block; font-size: 10px; line-height: 1;
    color: #edcf7d; white-space: nowrap;
    background: none; background-clip: border-box;
    -webkit-background-clip: border-box;
  }
  .buy .buy-grid .buy-card__price {
    grid-column: 2; grid-row: 2;
    display: block; font-size: 12px; line-height: 1;
    color: #fff1cf; background: none;
  }
  .buy .buy-grid .buy-card__go {
    grid-column: 3; grid-row: 1 / 3;
    position: relative; left: auto; right: auto; top: auto; bottom: auto;
    margin: 0; transform: none; display: grid; place-items: center;
    width: 100%; height: 42px; padding: 0;
    border: 1px solid #d0ac68; border-radius: 6px;
    background: linear-gradient(#664128, #291819);
    color: #fff0c9; font-size: 10px; letter-spacing: 0;
  }
  .buy .buy-grid .buy-card:has(.buy-card__why:not([hidden])) {
    grid-template-rows: 10px 10px 12px;
    align-content: space-between;
  }
  .buy .buy-grid .buy-card__why:not([hidden]) {
    grid-column: 1 / 3; grid-row: 3;
    min-width: 0; max-width: none; padding: 0;
    border: 0; background: none; transform: none;
    font-size: 9px; line-height: 1.1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .buy .buy__stepper.stake-group--modal {
    position: relative; left: auto; top: auto;
    width: 158px; height: 40px; margin: 0 auto;
    background: none; --buy-stepper-art: none;
  }
  .buy .buy__stepper .step-btn {
    top: 0; width: 40px; height: 40px; padding: 0;
  }
  .buy .buy__stepper #buyBetDown,
  .buy .buy__stepper .step-btn:first-of-type { left: 0; }
  .buy .buy__stepper .step-btn:last-of-type { left: 118px; }
  .buy .buy__stepper .stake {
    left: 44px; top: 0; width: 70px; height: 40px;
    padding: 1px 2px;
  }
  .buy .buy__stepper .stake__k { font-size: 10px; line-height: 1; }
  .buy .buy__stepper .stake__v { font-size: 12px; line-height: 1; }


}




@media (orientation: landscape) and (max-width: 520px) and (max-height: 340px) and (pointer: coarse),
       (orientation: landscape) and (max-height: 310px) {
  .buy.buy--confirm .buy__ribbon--wide {
    position: static; align-self: center; justify-self: center;
    width: 170px; height: 30px; padding: 0;
    font-size: 15px; line-height: 1; white-space: nowrap;
    background-size: 100% 100%; background-position: center;
  }
  .buy.buy--confirm .card__knob--corner {
    position: absolute; top: 3px; right: max(5px, env(safe-area-inset-right));
    width: 44px; height: 44px; z-index: 4;
  }
  .buy.buy--confirm {
    position: fixed; inset: 0; left: 0; top: 0;
    width: 100vw; height: 100dvh; padding: 3px 5px 2px;
    display: grid; gap: 3px; align-items: stretch; justify-items: stretch;
    perspective: none;
    background: linear-gradient(180deg, rgba(19, 17, 23, .80), rgba(16, 13, 18, .91));
    grid-template-rows: 44px minmax(0, 1fr);
    overflow-y: auto;
  }
  .buy.buy--confirm .buy-card.buy-card--confirm {
    --buy-title-color: #fbfbee;
    position: relative; left: auto; top: auto;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 23px 17px 25px 44px 44px auto;
    gap: 4px 6px; align-content: center; align-items: center;
    width: min(100%, 300px); height: auto; min-height: 170px;
    margin: auto; padding: 6px;
    border: 1px solid #b2915f; border-radius: 9px;
    background: rgba(43, 30, 30, .98);
    box-shadow: inset 0 1px rgba(255, 226, 167, .14);
    animation: none;
  }
  .buy.buy--confirm .buy-card__name,
  .buy.buy--confirm .buy-card__desc,
  .buy.buy--confirm .buy-card__plate,
  .buy.buy--confirm .buy-card__price,
  .buy.buy--confirm .buy-card__why {
    position: static; left: auto; right: auto; top: auto; bottom: auto;
    width: auto; height: auto; margin: 0; transform: none;
  }
  .buy.buy--confirm .buy-card__name {
    grid-column: 1 / 3; grid-row: 1;
    font-size: 13px; line-height: 1.1; white-space: normal;
  }
  .buy.buy--confirm .buy-card__desc {
    grid-column: 1 / 3; grid-row: 2;
    padding: 0; background: none;
    font-size: 10px; line-height: 1.1; color: #e6d6b9;
  }
  .buy.buy--confirm .buy-card__plate,
  .buy.buy--confirm .buy-card__plate--long {
    grid-column: 1; grid-row: 3;
    padding: 0;
    font-size: 13px; line-height: 1;
    color: #edcf7d; background: none;
    background-clip: border-box; -webkit-background-clip: border-box;
  }
  .buy.buy--confirm .buy-card__price {
    grid-column: 2; grid-row: 3;
    font-size: 17px; line-height: 1; color: #fff1cf; background: none;
  }
  .buy.buy--confirm .buy-card__stepper.stake-group--modal {
    position: relative; left: auto; top: auto;
    grid-column: 1 / 3; grid-row: 4;
    width: 170px; height: 44px; margin: auto;
  }
  .buy.buy--confirm .buy-card__stepper .step-btn {
    top: 0; width: 44px; height: 44px; padding: 0;
  }
  .buy.buy--confirm .buy-card__stepper .step-btn:first-of-type { left: 0; }
  .buy.buy--confirm .buy-card__stepper .step-btn:last-of-type { left: 126px; }
  .buy.buy--confirm .buy-card__stepper .stake {
    left: 48px; top: 0; width: 74px; height: 44px; padding: 1px 2px;
  }
  .buy.buy--confirm .buy-card__stepper .stake__k { font-size: 10px; line-height: 1; }
  .buy.buy--confirm .buy-card__stepper .stake__v { font-size: 12px; line-height: 1; }
  .buy.buy--confirm .buy-card__back,
  .buy.buy--confirm .buy-card__buy {
    position: relative; left: auto; right: auto; top: auto; bottom: auto;
    --buy-action-art: none;
    margin: 0; transform: none; grid-row: 5; display: grid; place-items: center;
    width: 100%; height: 44px; padding: 0;
    border-radius: 6px; font-size: 14px;
  }
  .buy.buy--confirm .buy-card__back {
    grid-column: 1; border: 1px solid #988579;
    background: linear-gradient(#60514b, #31272a);
  }
  .buy.buy--confirm .buy-card__buy {
    grid-column: 2; border: 1px solid #80bb70;
    background: linear-gradient(#43873d, #244327);
  }
  .buy.buy--confirm .buy-card__why:not([hidden]) {
    grid-column: 1 / 3; grid-row: 6;
    max-width: none; padding: 2px 3px;
    font-size: 9px; line-height: 1.1; white-space: normal;
  }
}






@media (orientation: landscape) and (max-width: 520px) and (max-height: 340px) and (pointer: coarse) {
  .chrome__row .stat--inline,
  .chrome__row .stat--win {
    top: calc(100% - 34px);
    height: 30px;
    padding: 0;
    justify-content: flex-start;
    gap: 2px;
  }
  .chrome__row .stat--inline .stat__k,
  .chrome__row .stat--win .stat__k {
    position: static;
    width: 100%; height: 12px;
    margin: 0;
    line-height: 12px;
    text-align: center;
  }
  .chrome__row .stat--inline .stat__v,
  .chrome__row .stat--win .stat__v {
    position: static;
    display: grid; place-items: center;
    width: 100%; height: 15px;
    margin: 0;
    line-height: 15px;
  }
}
@media (orientation: landscape) and (max-width: 459px) and (max-height: 300px) and (pointer: coarse) {


  .chrome__row .stat--inline { left: calc(20.09% - 7px); }


  .chrome__row .stat--win {
    left: calc(44.85% - 6px); width: calc(18.77% + 6px);
  }


  .chrome__row .stat--win .stat__k {
    position: static;
    width: max-content;
    transform: none;
    letter-spacing: 0;
  }
}





@media (orientation: landscape) and (min-width: 761px) and (max-width: 1024px) and (min-height: 501px) {
  .chrome__row #btnMenu {
    position: fixed; left: auto;
    right: max(8px, calc(env(safe-area-inset-right) + 8px));
    top: max(8px, calc(env(safe-area-inset-top) + 8px));
    width: 44px; height: 44px; padding: 12px;
    border-radius: 0; background: none; z-index: 9;
  }
  .chrome__row #btnMenu::after { content: none; }
  .chrome__row #btnMenu svg { width: 20px; height: 20px; filter: drop-shadow(0 2px 2px #000); }
  .chrome__row #btnInfo, .chrome__row #btnTurbo,
  .chrome__row .ante { display: none !important; }
  .chrome__row .stat--inline {
    top: 15%; height: 55%; flex-direction: column;
    align-items: center; justify-content: flex-end; gap: 0;
  }
  .chrome__row .stat--win {
    top: 15%; height: 55%; justify-content: flex-end; gap: 0;
  }
  .chrome__row .stat--inline .stat__k,
  .chrome__row .stat--win .stat__k,
  .chrome__row .stake-group .stake__k {
    font-size: 11px; line-height: 12px;
  }
  .chrome__row .stat--inline .stat__k {
    position: static; width: 100%; text-align: center;
  }
  .chrome__row .stat--inline .stat__v {
    position: static; width: 100%; height: 15px;
    font-size: 13px; line-height: 15px;
  }
  .chrome__row .stat--win .stat__v,
  .chrome__row .stake-group .stake__v {
    font-size: 13px; line-height: 15px;
  }
  .chrome__row .stat--win .stat__v {
    height: 15px; flex: 0 0 15px; margin-top: 0;
  }
}


@media (orientation: portrait) and (max-width: 600px) {
  .buy.buy--large-text {
    grid-template-rows: auto minmax(0,1fr) auto auto;
    gap: 5px;
    padding-top: max(12px, calc(env(safe-area-inset-top) + 8px));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .buy.buy--large-text .buy__ribbon {
    width: min(74vw, 280px); height: 70px;
    padding: 0 24px; box-sizing: border-box;
    font-size: 14px; line-height: 1.05; white-space: nowrap;
  }
  .buy.buy--large-text .buy__ribbon--wide {
    width: min(80vw, 300px); height: 78px;
    font-size: 13px; line-height: 1.05; white-space: normal;
  }
  .buy.buy--large-text .card__knob--corner { z-index: 4; }
  .buy.buy--large-text .buy-grid .buy-card__name {
    left: 7%; right: 7%; width: auto; top: 9%; height: auto;
    font-size: 11px; line-height: 1.05; white-space: normal;
  }
  .buy.buy--large-text .buy-grid .buy-card.is-gold .buy-card__name { top: 13%; }
  .buy.buy--large-text .buy-grid .buy-card.is-royal .buy-card__name { top: 16%; }
  .buy.buy--large-text .buy-grid .buy-card__desc {
    left: 8%; right: 8%; width: auto; top: 22%;
    font-size: 9px; line-height: 1.12;
  }
  .buy.buy--large-text .buy-grid .buy-card.is-gold .buy-card__desc { top: 27%; }
  .buy.buy--large-text .buy-grid .buy-card.is-royal .buy-card__desc {
    top: 38%; padding: 2px 4px; border: 1px solid rgba(237, 194, 117, .55);
    border-radius: 5px; background: rgba(25, 14, 30, .88); color: #fff3d9;
  }
  .buy.buy--large-text .buy-grid .buy-card__plate {
    top: 52%; left: 22%; width: 56%; height: 46px;
    font-size: 16px; line-height: 1;
  }
  .buy.buy--large-text .buy-grid .buy-card__plate--long { left: 17%; width: 66%; font-size: 10px; }
  .buy.buy--large-text .buy-grid .buy-card__price {
    top: 72%; height: 34px; font-size: 13px; line-height: 1;
  }
  .buy.buy--large-text .buy-grid .buy-card__go {
    left: 20%; margin-left: 0; width: 60%;
    top: 86%; height: 35px;
    font-size: 9.5px; line-height: 1;
  }
  .buy.buy--large-text .buy-grid .buy-card__why:not([hidden]) {
    top: 94%; max-width: calc(100% - 8px); font-size: 9px;
  }
}

@media (orientation: portrait) {



  .buy.buy--large-text.buy--confirm {
    --confirm-paper-extension: 184px;
    --confirm-row-height: max(64px, 12cqw);
    --confirm-row-gap: max(20px, 3cqw);
    --confirm-price-height: calc(clamp(18px, 6cqw, 28px) * 1.4);
    width: min(calc(100vw - 16px), 564px);
    max-height: calc(100dvh - 16px); height: auto; box-sizing: border-box;
    padding: 24px 12px 16px; overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bda77c transparent;
  }
  .buy.buy--large-text.buy--confirm .buy-card__name {
    position: relative; inset: auto; width: auto; height: auto;
    font-size: clamp(16px, 6.34cqw, 28px); line-height: 1.4; white-space: normal;
  }
  .buy.buy--large-text.buy--confirm .buy-card__desc {
    position: relative; inset: auto; width: auto; height: auto;
    font-size: clamp(14px, 4.5cqw, 18px); line-height: 1.4;
  }
  .buy.buy--large-text.buy--confirm .buy-card__plate--long {
    height: auto; aspect-ratio: 279 / 86; padding: .89cqw 0 0 3.11cqw;
    font-size: clamp(14px, 5.93cqw, 24px); line-height: 1;
  }
  .buy.buy--large-text.buy--confirm .buy-card__price {
    font-size: clamp(18px, 6cqw, 28px); line-height: 1.4;
  }
  .buy.buy--large-text.buy--confirm .buy-card__stepper .stake { gap: 4px; padding-block: 2px; }
  .buy.buy--large-text.buy--confirm .buy-card__stepper .stake__k { font-size: 14px; line-height: 1.4; }
  .buy.buy--large-text.buy--confirm .buy-card__stepper .stake__v { font-size: 18px; line-height: 1.4; }
  .buy.buy--large-text.buy--confirm .buy-card__back,
  .buy.buy--large-text.buy--confirm .buy-card__buy { font-size: 16px; line-height: 1.4; }
  .buy.buy--large-text.buy--confirm .buy-card__why:not([hidden]) {
    top: calc(100% + 4px); left: 0; right: 0;
    font-size: 14px; line-height: 1.4;
  }
}




@media (orientation: landscape) and (max-height: 450px) and (pointer: coarse) {
  .buy.buy--large-text {
    position: fixed; left: 0; top: 0;
    box-sizing: border-box; width: 100vw; height: 100dvh;
    display: grid; grid-template-rows: 44px minmax(0, 1fr) 44px;
    gap: 5px; padding: 3px max(9px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left));
    align-items: stretch; justify-items: stretch; perspective: none;
    background: linear-gradient(180deg, rgba(19, 17, 23, .96), rgba(16, 13, 18, .98));
  }
  .buy.buy--large-text .buy__ribbon,
  .buy.buy--large-text .buy__ribbon--wide {
    position: static; align-self: center; justify-self: center;
    box-sizing: border-box; width: min(300px, calc(100vw - 100px)); height: 40px;
    padding: 0 15px; background-size: 100% 100%;
    font-size: 13px; line-height: 1; white-space: nowrap;
  }
  .buy.buy--large-text .card__knob--corner {
    position: absolute; top: 3px; right: max(8px, env(safe-area-inset-right));
    width: 44px; height: 44px; z-index: 4;
  }
  .buy.buy--large-text .buy-grid {
    display: grid; grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: minmax(58px, auto); align-content: start;
    box-sizing: border-box; width: min(100%, 780px); height: 100%;
    margin: 0 auto; padding: 0 2px; gap: 5px;
    overflow-x: hidden; overflow-y: auto; scroll-snap-type: none;
    scrollbar-width: thin; scrollbar-color: #bda77c transparent;
  }
  .buy.buy--large-text .buy-grid .buy-card {
    --buy-title-color: #fbfbee;
    position: relative; left: auto; top: auto;
    display: grid; grid-template-columns: minmax(0, 1fr) 132px 112px;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 6px; align-items: center;
    box-sizing: border-box; width: 100%; height: auto; min-height: 58px;
    padding: 3px 8px; border: 1px solid #9e8054; border-radius: 8px;
    background: linear-gradient(120deg, rgba(72, 51, 45, .97), rgba(36, 25, 34, .98));
    box-shadow: inset 0 1px rgba(255, 232, 179, .24), 0 2px 4px #0008;
    animation: none;
  }
  .buy.buy--large-text .buy-grid .buy-card.is-royal { border-color: #bb98d8; }
  .buy.buy--large-text .buy-grid .buy-card__name,
  .buy.buy--large-text .buy-grid .buy-card__desc,
  .buy.buy--large-text .buy-grid .buy-card__plate,
  .buy.buy--large-text .buy-grid .buy-card__price,
  .buy.buy--large-text .buy-grid .buy-card__why {
    position: static; left: auto; right: auto; top: auto; bottom: auto;
    width: auto; height: auto; margin: 0; transform: none;
    min-width: 0; max-width: none;
  }
  .buy.buy--large-text .buy-grid .buy-card__name {
    grid-column: 1; grid-row: 1; display: block;
    font-size: 10px; line-height: 1.05; white-space: normal;
    letter-spacing: 0; text-align: left;
  }
  .buy.buy--large-text .buy-grid .buy-card__desc,
  .buy.buy--large-text .buy-grid .buy-card.is-royal .buy-card__desc {
    grid-column: 1; grid-row: 2;
    padding: 0; border: 0; background: none;
    color: #f1dfc0; font-size: 8px; line-height: 1.05; text-align: left;
  }
  .buy.buy--large-text .buy-grid .buy-card__plate,
  .buy.buy--large-text .buy-grid .buy-card__plate--long {
    grid-column: 2; grid-row: 1; display: block;
    padding: 0;
    font-size: 11px; line-height: 1; white-space: nowrap;
    color: #edcf7d; background: none;
    background-clip: border-box; -webkit-background-clip: border-box;
  }
  .buy.buy--large-text .buy-grid .buy-card__price {
    grid-column: 2; grid-row: 2; display: block;
    font-size: 13px; line-height: 1; color: #fff1cf; background: none;
  }
  .buy.buy--large-text .buy-grid .buy-card__go {
    grid-column: 3; grid-row: 1 / 3;
    position: relative; left: auto; right: auto; top: auto; bottom: auto;
    display: grid; place-items: center;
    width: 100%; height: 44px; margin: 0; padding: 0;
    border: 1px solid #d0ac68; border-radius: 6px;
    background: linear-gradient(#664128, #291819);
    color: #fff0c9; font-size: 9px; line-height: 1; letter-spacing: 0;
  }
  .buy.buy--large-text .buy-grid .buy-card:has(.buy-card__why:not([hidden])) {
    grid-template-rows: minmax(20px, 1fr) minmax(18px, 1fr) auto;
  }
  .buy.buy--large-text .buy-grid .buy-card__why:not([hidden]) {
    grid-column: 1 / 3; grid-row: 3;
    padding: 0; border: 0; background: none;
    font-size: 8px; line-height: 1.1; white-space: normal;
  }
  .buy.buy--large-text .buy__stepper.stake-group--modal {
    position: relative; left: auto; top: auto;
    width: 170px; height: 44px; margin: 0 auto; background: none;
    --buy-stepper-art: none;
  }
  .buy.buy--large-text .buy__stepper .step-btn {
    top: 0; width: 44px; height: 44px; padding: 0;
  }
  .buy.buy--large-text .buy__stepper .step-btn:first-of-type { left: 0; }
  .buy.buy--large-text .buy__stepper .step-btn:last-of-type { left: 126px; }
  .buy.buy--large-text .buy__stepper .stake {
    left: 48px; top: 0; width: 74px; height: 44px; padding: 1px 2px;
  }
  .buy.buy--large-text .buy__stepper .stake__k { font-size: 8px; line-height: 1; }
  .buy.buy--large-text .buy__stepper .stake__v { font-size: 11px; line-height: 1; }

  .buy.buy--large-text.buy--confirm {
    grid-template-rows: 44px minmax(0, 1fr);
    overflow-y: auto;
  }
  .buy.buy--large-text.buy--confirm .buy-card.buy-card--confirm,
  .buy.buy--large-text.buy--confirm .buy-card.buy-card--confirm.is-silver,
  .buy.buy--large-text.buy--confirm .buy-card.buy-card--confirm.is-royal {
    --buy-title-color: #fbfbee;
    position: relative; left: auto; top: auto;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto 32px 44px 46px auto;
    gap: 3px 8px; align-content: center; align-items: center;
    box-sizing: border-box; width: min(100%, 490px); height: auto; min-height: 205px;
    margin: auto; padding: 10px;
    border: 1px solid #b2915f; border-radius: 9px;
    background: linear-gradient(120deg, rgba(72, 51, 45, .98), rgba(36, 25, 34, .99));
    box-shadow: inset 0 1px rgba(255, 226, 167, .18), 0 3px 9px #000a;
    animation: none;
  }
  .buy.buy--large-text.buy--confirm .buy-card.buy-card--confirm.is-royal { border-color: #bb98d8; }
  .buy.buy--large-text.buy--confirm .buy-card__name,
  .buy.buy--large-text.buy--confirm .buy-card__desc,
  .buy.buy--large-text.buy--confirm .buy-card__plate,
  .buy.buy--large-text.buy--confirm .buy-card__price,
  .buy.buy--large-text.buy--confirm .buy-card__why {
    position: static; left: auto; right: auto; top: auto; bottom: auto;
    width: auto; height: auto; margin: 0; transform: none;
  }
  .buy.buy--large-text.buy--confirm .buy-card__name {
    grid-column: 1 / 3; grid-row: 1;
    font-size: 12px; line-height: 1.05; white-space: normal;
  }
  .buy.buy--large-text.buy--confirm .buy-card__desc,
  .buy.buy--large-text.buy--confirm .buy-card.buy-card--confirm.is-royal .buy-card__desc {
    grid-column: 1 / 3; grid-row: 2;
    padding: 0; border: 0; background: none;
    color: #f1dfc0; font-size: 9px; line-height: 1.05;
  }
  .buy.buy--large-text.buy--confirm .buy-card__plate,
  .buy.buy--large-text.buy--confirm .buy-card__plate--long {
    grid-column: 1; grid-row: 3;
    padding: 0;
    font-size: 12px; line-height: 1; white-space: nowrap;
    color: #edcf7d; background: none;
    background-clip: border-box; -webkit-background-clip: border-box;
  }
  .buy.buy--large-text.buy--confirm .buy-card__price {
    grid-column: 2; grid-row: 3;
    font-size: 15px; line-height: 1; color: #fff1cf; background: none;
  }
  .buy.buy--large-text.buy--confirm .buy-card__stepper.stake-group--modal {
    position: relative; left: auto; top: auto;
    grid-column: 1 / 3; grid-row: 4;
    width: 170px; height: 44px; margin: auto;
  }
  .buy.buy--large-text.buy--confirm .buy-card__stepper .step-btn {
    top: 0; width: 44px; height: 44px; padding: 0;
  }
  .buy.buy--large-text.buy--confirm .buy-card__stepper .step-btn:first-of-type { left: 0; }
  .buy.buy--large-text.buy--confirm .buy-card__stepper .step-btn:last-of-type { left: 126px; }
  .buy.buy--large-text.buy--confirm .buy-card__stepper .stake {
    left: 48px; top: 0; width: 74px; height: 44px; padding: 1px 2px;
  }
  .buy.buy--large-text.buy--confirm .buy-card__stepper .stake__k { font-size: 8px; line-height: 1; }
  .buy.buy--large-text.buy--confirm .buy-card__stepper .stake__v { font-size: 11px; line-height: 1; }
  .buy.buy--large-text.buy--confirm .buy-card__back,
  .buy.buy--large-text.buy--confirm .buy-card__buy {
    position: relative; left: auto; right: auto; top: auto; bottom: auto;
    --buy-action-art: none;
    display: grid; place-items: center; grid-row: 5;
    box-sizing: border-box; width: 100%; height: 46px; margin: 0; padding: 0;
    border-radius: 6px; font-size: 12px; line-height: 1;
  }
  .buy.buy--large-text.buy--confirm .buy-card__back {
    grid-column: 1; border: 1px solid #988579;
    background: linear-gradient(#60514b, #31272a);
  }
  .buy.buy--large-text.buy--confirm .buy-card__buy {
    grid-column: 2; border: 1px solid #80bb70;
    background: linear-gradient(#43873d, #244327);
  }
  .buy.buy--large-text.buy--confirm .buy-card__why:not([hidden]) {
    grid-column: 1 / 3; grid-row: 6;
    max-width: none; padding: 2px 3px;
    font-size: 8px; line-height: 1.1; white-space: normal;
  }
}

@media (orientation: landscape) and (max-width: 520px) and (max-height: 340px) and (pointer: coarse) {



  .buy.buy--large-text:not(.buy--confirm)::after {
    content: 'SCROLL ↕'; position: absolute; top: 54px; right: 15px;
    z-index: 3; padding: 2px 5px; border: 1px solid #af9870;
    border-radius: 4px; background: rgba(22, 16, 22, .94);
    color: #f7e3b8; font-size: 7px; line-height: 1;
  }
  .buy.buy--large-text .buy-grid { grid-auto-rows: max-content; }
  .buy.buy--large-text .buy-grid .buy-card {
    grid-template-columns: minmax(0, 1fr) 112px;
    grid-template-rows: auto auto 28px 44px;
    row-gap: 3px; min-height: 0; padding: 6px 8px;
  }
  .buy.buy--large-text .buy-grid .buy-card__name {
    grid-column: 1 / 3; grid-row: 1; font-size: 9px;
  }
  .buy.buy--large-text .buy-grid .buy-card__desc,
  .buy.buy--large-text .buy-grid .buy-card.is-royal .buy-card__desc {
    grid-column: 1 / 3; grid-row: 2; font-size: 8px;
  }
  .buy.buy--large-text .buy-grid .buy-card__plate,
  .buy.buy--large-text .buy-grid .buy-card__plate--long {
    grid-column: 1; grid-row: 3; font-size: 11px;
  }
  .buy.buy--large-text .buy-grid .buy-card__price {
    grid-column: 2; grid-row: 3; font-size: 12px;
  }
  .buy.buy--large-text .buy-grid .buy-card__go {
    grid-column: 1 / 3; grid-row: 4; height: 44px;
  }
  .buy.buy--large-text .buy-grid .buy-card:has(.buy-card__why:not([hidden])) {
    grid-template-rows: auto auto 28px 44px auto;
  }
  .buy.buy--large-text .buy-grid .buy-card__why:not([hidden]) {
    grid-column: 1 / 3; grid-row: 5;
  }
  .buy.buy--large-text.buy--confirm .buy__ribbon--wide {
    width: 196px; height: 44px; padding: 0 12px;
    font-size: 10px; line-height: 1; white-space: normal;
    text-align: center;
  }
  .buy.buy--large-text.buy--confirm .buy-card.buy-card--confirm,
  .buy.buy--large-text.buy--confirm .buy-card.buy-card--confirm.is-silver,
  .buy.buy--large-text.buy--confirm .buy-card.buy-card--confirm.is-royal {
    grid-template-rows: auto auto 28px 44px 44px auto;
    gap: 2px 8px; min-height: 0; padding: 5px 10px;
  }
  .buy.buy--large-text.buy--confirm .buy-card__back,
  .buy.buy--large-text.buy--confirm .buy-card__buy { height: 44px; }
}




@media (forced-colors: active) {
  .step-btn,
  .panel--action .step-btn {
    color: ButtonText;
    background: ButtonFace;
    border: 1px solid ButtonText;
  }
  .panel--action .step-btn svg { stroke: ButtonText; }

  .ante__track {
    background: Canvas;
    border-color: ButtonText;
  }
  .ante__knob { background: ButtonText; }
  .ante[aria-pressed="true"] .ante__track {
    background: Highlight;
    border-color: Highlight;
  }
  .ante[aria-pressed="true"] .ante__knob { background: HighlightText; }



  #btnTurbo[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: 1px; }
}







@media (orientation: portrait),
       (orientation: landscape) and (max-height: 500px) {
  .intro,
  .game {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}






@media (orientation: portrait) and (min-width: 600px) {
  #payScroll {
    box-sizing: border-box; height: auto;
    padding: 9px 11px 11px;
    border: 1px solid rgba(207, 167, 100, .74);
    border-radius: 13px;
    background: linear-gradient(160deg, rgba(57, 37, 32, .96), rgba(20, 18, 22, .96) 68%, rgba(11, 16, 17, .96));
    box-shadow: 0 5px 15px rgba(0, 0, 0, .44), inset 0 1px 0 rgba(255, 226, 157, .18);
  }
  #payScroll::before, #payScroll .scroll__art { display: none; }
  #payScroll .scroll__heading {
    display: block; margin: 0 0 7px 2px;
    color: #ead69b; font-size: clamp(11px, 1.05vw, 15px);
    font-weight: 900; letter-spacing: .1em; line-height: 1.1;
    text-shadow: 0 1px 2px #000;
  }
  #payScroll .scroll__rows {
    position: static; display: flex; flex-direction: column; gap: 4px;
    margin: 0; padding: 0;
  }
  #payScroll .scroll__row {
    display: grid; grid-template-columns: 22px 28px minmax(0, 1fr);
    grid-template-rows: 1fr; align-items: center;
    column-gap: 5px; min-height: clamp(26px, 2.2vw, 33px);
    padding: 0 7px; border-radius: 7px;
    background: rgba(0, 0, 0, .43) !important;
  }
  #payScroll .scroll__row--empty { display: none; }
  #payScroll .scroll__rank {
    grid-column: 1; grid-row: 1; font-size: clamp(12px, 1vw, 16px);
    line-height: 1; text-align: right;
  }
  #payScroll .scroll__sym {
    position: static; grid-column: 2; grid-row: 1;
    width: min(27px, 2.8vw); height: min(27px, 2.8vw);
    transform: none;
  }
  #payScroll .scroll__pay {
    grid-column: 3; grid-row: 1; min-width: 0;
    font-size: clamp(11px, 1vw, 16px); line-height: 1;
    text-align: right; white-space: nowrap;
  }


  #payScroll[data-tight="1"] { padding: 6px 8px 7px; }
  #payScroll[data-tight="1"] .scroll__heading {
    margin-bottom: 4px; font-size: 10.5px;
  }
  #payScroll[data-tight="1"] .scroll__rows { gap: 2px; }
  #payScroll[data-tight="1"] .scroll__row {
    grid-template-columns: 18px 22px minmax(0, 1fr);
    column-gap: 3px; min-height: 21px; padding: 0 4px;
  }
  #payScroll[data-tight="1"] .scroll__rank,
  #payScroll[data-tight="1"] .scroll__pay { font-size: 11px; }
  #payScroll[data-tight="1"] .scroll__sym { width: 20px; height: 20px; }


  #payScroll[data-packed="1"] { display: none; }



  #bonusTotal {
    box-sizing: border-box; display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center; column-gap: 12px;
    padding: 0 clamp(12px, 1.5vw, 20px);
    border: 1px solid rgba(207, 167, 100, .76);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(63, 40, 34, .96), rgba(22, 20, 21, .97) 68%, rgba(11, 17, 17, .96));
    box-shadow: 0 5px 16px rgba(0, 0, 0, .43), inset 0 1px 0 rgba(255, 226, 157, .19);
  }
  #bonusTotal .scroll__art, #bonusTotal::before, #bonusTotal::after { display: none; }
  #bonusTotal .scroll__total-k, #bonusTotal .scroll__total-v {
    grid-area: auto; align-self: center; margin: 0; line-height: 1.1;
    -webkit-text-stroke: 0; filter: none;
  }
  #bonusTotal :is(.scroll__total-k, .scroll__total-v)::after { content: none; }
  #bonusTotal .scroll__total-k {
    color: #ead69b; font-size: clamp(11px, 1.05vw, 15px);
    letter-spacing: .09em;
  }
  #bonusTotal .scroll__total-v {
    color: #ead577; min-width: 0; justify-self: end;
    font-size: clamp(17px, 1.65vw, 25px);
  }
  #bonusTotal .scroll__total-v:empty::after { content: '—'; opacity: .65; }

  #reservoirMeter {
    position: absolute; right: auto; bottom: auto;
    transform: none; transform-origin: center;
  }
  #ingredients {
    box-sizing: border-box; padding: 7px 10px 7px 14px;
    display: grid; align-content: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    column-gap: 6px; row-gap: 5px;
    border: 1px solid rgba(199, 160, 91, .78);
    border-radius: 13px 7px 7px 13px;
    background: linear-gradient(160deg, rgba(67, 43, 35, .96), rgba(22, 19, 19, .96) 50%, rgba(12, 20, 18, .97));
    box-shadow: 0 5px 14px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 228, 160, .19);
  }
  #ingredients::after {
    content: ''; position: absolute; right: -33px; top: 50%;
    width: 32px; height: 2px; transform: translateY(-50%);
    background: linear-gradient(90deg, #aa8550, #f0d78f 60%, transparent);
    box-shadow: 0 0 7px rgba(241, 208, 131, .45);
  }
  #ingredients[data-count="1"] {
    left: var(--tablet-single-left) !important;
    top: var(--tablet-single-top) !important;
    width: var(--tablet-single-size, 96px) !important;
    height: var(--tablet-single-size, 96px) !important;
    padding: 6px; border: 0; border-radius: 50%;
    grid-template-columns: 1fr; grid-template-rows: 1fr;
    background: radial-gradient(circle at 42% 38%, #604a36, #201c20 68%, #0d1413);
    box-shadow: 0 5px 16px #0008, inset 0 0 0 2px #c4a46a,
                inset 0 0 0 5px #211b1a;
  }
  #ingredients[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }
  #ingredients .ingredient {
    min-width: 0; min-height: 0; width: auto; height: auto;
    padding: 0 7px 0 32px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .46);
  }
  #ingredients .ingredient__img { left: 3px; width: 27px; }
  #ingredients .ingredient__n {
    font-size: clamp(11px, 1vw, 15px); line-height: 1;
  }
  #ingredients[data-packed="1"] {
    padding: 4px 7px 4px 10px; row-gap: 2px;
  }
  #ingredients[data-packed="1"] .ingredient {
    padding-left: 24px;
  }
  #ingredients[data-packed="1"] .ingredient__img {
    left: 2px; width: 20px;
  }
  #ingredients[data-packed="1"] .ingredient__n { font-size: 10.5px; }



  #ingredients[data-count="1"] .ingredient {
    width: 100%; height: 100%; padding: 0; border-radius: 50%;
    background: conic-gradient(from -90deg,
      #9ce49b 0 var(--charge, 0%), #5e6248 var(--charge, 0%) 100%);
  }
  #ingredients[data-count="1"] .ingredient[data-full="1"] {
    background: conic-gradient(from -90deg, #ffde84 0 var(--charge, 0%),
      #6b5733 var(--charge, 0%) 100%);
  }
  #ingredients[data-count="1"] .ingredient::before {
    inset: 6px; width: auto; height: auto; border-radius: 50%;
    background: radial-gradient(circle at 40% 30%, #3d302b, #11191a 78%);
  }
  #ingredients[data-count="1"] .ingredient::after {
    inset: 2px; border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 238, 181, .55);
  }
  #ingredients[data-count="1"] .ingredient__img {
    left: 50%; top: 50%; width: 60%;
    transform: translate(-50%, -50%);
  }
  #ingredients[data-count="1"] .ingredient__n {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }

  .panel--data {
    left: max(22px, calc(50vw - 560px));
    width: clamp(150px, 20vw, 240px);
  }
  .panel--action .stake, .mob-counter {
    left: auto; right: max(22px, calc(50vw - 560px));
    width: clamp(150px, 20vw, 240px);
  }


  .mob-counter { background-image: none; }
}



@media (orientation: portrait) and (min-width: 400px) and (max-width: 599px) {
  #payScroll[data-packed="1"] { display: none; }
  #reservoirMeter {
    right: 12px !important;
    bottom: calc(60px + env(safe-area-inset-bottom)) !important;
  }
}

@media (orientation: portrait) and (max-width: 599px) and (max-aspect-ratio: 1/2) {
  #reservoirMeter {
    position: fixed; left: auto !important; top: auto !important;
    right: 12px !important;
    bottom: calc(60px + env(safe-area-inset-bottom)) !important;
    width: clamp(80px, calc(31.6vw - 18px), 156px) !important;
    height: auto !important;
  }
}

@media (orientation: portrait) and (min-width: 360px) and (max-width: 399px) and (min-height: 720px) {
  .meter--energy .meter__help { left: 12px; }
  #reservoirMeter { bottom: calc(70px + env(safe-area-inset-bottom)) !important; }
}

@media (orientation: portrait) and (max-width: 350px) and (min-height: 501px) {
  .meter--energy .meter__help { left: 12px; }
  #payScroll[data-packed="1"] { display: none !important; }
  #reservoirMeter { bottom: calc(70px + env(safe-area-inset-bottom)) !important; }
}




#ingredients[data-plaque="1"][data-count] {
  --recipe-unit: calc(var(--plaque-width) / 236);
  left: var(--plaque-left) !important; top: var(--plaque-top) !important;
  width: var(--plaque-width) !important; height: var(--plaque-height) !important;
  box-sizing: border-box; display: grid; padding: 0 0 0 calc(3 * var(--recipe-unit));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 22.9508%));
  column-gap: calc(9 * var(--recipe-unit)); row-gap: 24.5902%; align-content: center;
  border: 0; border-radius: 0; background: none; box-shadow: none;
}
#ingredients[data-plaque="1"]::after { content: none; }
#ingredients[data-plaque="1"][data-count="1"] {
  grid-template-columns: minmax(0, 82%); grid-template-rows: minmax(0, 22.9508%);
  justify-content: center;
}
#ingredients[data-plaque="1"][data-count="2"] {
  grid-template-rows: minmax(0, 22.9508%);
}
#ingredients[data-plaque="1"][data-count] .ingredient {
  width: auto; height: auto; min-width: 0; min-height: 0;
  --recipe-icon: max(22px, 64 * var(--recipe-unit));
  --recipe-text-inset: max(2px, 6.5 * var(--recipe-unit));
  box-sizing: border-box; padding: 0 var(--recipe-text-inset) 0 calc(var(--recipe-icon) + var(--recipe-unit));
  border-radius: 6.58% / 26.3%; background: rgba(0, 0, 0, .6);
  box-shadow: none;
}
#ingredients[data-plaque="1"][data-count="3"] .ingredient:nth-child(3) {
  grid-column: 1 / -1; justify-self: center; width: 48.0687%;
}
#ingredients[data-plaque="1"][data-count] .ingredient::before {
  content: none;
}
#ingredients[data-plaque="1"][data-count] .ingredient::after {
  content: none;
}
#ingredients[data-plaque="1"][data-count] .ingredient__img {
  left: 0; top: 50%; width: var(--recipe-icon); height: auto;
  transform: translateY(-50%);
}
#ingredients[data-plaque="1"][data-count]:not([data-dense-fractions="1"]):not([data-columns="1"]) .ingredient:nth-child(odd) .ingredient__img {
  left: calc(-3 * var(--recipe-unit));
}
#ingredients[data-plaque="1"][data-count] .ingredient__n {
  position: absolute; right: var(--recipe-text-inset); top: 50%; width: max-content; height: auto; overflow: visible;
  transform: translateY(-50%) scaleX(var(--fit-x, 1)); transform-origin: right center;
  clip-path: none; white-space: nowrap;
  font-size: max(11px, calc(20 * var(--recipe-unit) * var(--fit, 1))); line-height: 1.35;
  color: #fff; text-shadow: 0 calc(3 * var(--recipe-unit)) 0 #000;
}


#ingredients[data-plaque="1"][data-long-fractions="1"] .ingredient {
  --recipe-icon: clamp(18px, 20cqw, 40px);
  padding-left: calc(var(--recipe-icon) + var(--recipe-unit));
}



#ingredients[data-plaque="1"][data-dense-fractions="1"] {
  column-gap: 6px;
}
#ingredients[data-plaque="1"][data-dense-fractions="1"] .ingredient {
  --recipe-icon: 20px; padding-left: 12px; padding-right: 3px;
}
#ingredients[data-plaque="1"][data-dense-fractions="1"] .ingredient__img { left: -10px; }
#ingredients[data-plaque="1"][data-dense-fractions="1"] .ingredient__n { right: 3px; }


#ingredients[data-plaque="1"][data-columns="1"][data-count] {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(var(--recipe-rows, 4), minmax(0, 1fr));
  gap: 0; padding: 0; align-content: center;
}
#ingredients[data-plaque="1"][data-columns="1"][data-count="1"] { --recipe-rows: 1; }
#ingredients[data-plaque="1"][data-columns="1"][data-count="2"] { --recipe-rows: 2; }
#ingredients[data-plaque="1"][data-columns="1"][data-count="3"] { --recipe-rows: 3; }
#ingredients[data-plaque="1"][data-columns="1"][data-count] .ingredient {
  --recipe-icon: clamp(12px, calc(var(--plaque-height) / var(--recipe-rows, 4)), 24px);
  grid-column: auto; justify-self: stretch; width: auto;
  padding-left: var(--recipe-icon); background: none;
}
#ingredients[data-plaque="1"][data-columns="1"][data-count] .ingredient__img {
  left: 0;
}
#ingredients[data-plaque="1"][data-columns="1"][data-count] .ingredient__n {
  right: 0; font-size: max(11px, min(16px, calc(var(--plaque-height) / var(--recipe-rows, 4) * .78)));
}

#reservoirMeter[data-plaque="1"][data-ingredients="1"].meter--empty .meter__value {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}




@media (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  #reservoirMeter[data-plaque="1"] {
    position: absolute; right: auto !important; bottom: auto !important;
    left: var(--kettle-left) !important; top: var(--kettle-top) !important;
    width: var(--kettle-width) !important; height: var(--kettle-height) !important;
    transform: none;
    clip-path: inset(var(--kettle-clip-top, 0px) 0 0);
  }
  #reservoirMeter[data-plaque="1"] .meter__help {
    top: max(calc(var(--kettle-clip-top, 0px) + 2px), 28%);
    right: 14%; width: 44px; height: 44px; min-height: 44px;
  }
  #reservoirMeter[data-plaque="1"] > .spine-scene,
  #reservoirMeter[data-plaque="1"] .meter__art {

    -webkit-mask-image: linear-gradient(to bottom,
      transparent var(--kettle-clip-top, 0px),
      #000 calc(var(--kettle-clip-top, 0px) + var(--kettle-steam-feather, 16px)));
    mask-image: linear-gradient(to bottom,
      transparent var(--kettle-clip-top, 0px),
      #000 calc(var(--kettle-clip-top, 0px) + var(--kettle-steam-feather, 16px)));
  }



  #ingredients[data-plaque="1"][data-plaque-fallback="1"][data-count] {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: none;
    grid-auto-rows: 16px; gap: 1px; align-content: center;
    padding: 1px; border: 1px solid rgba(199, 160, 91, .78); border-radius: 6px;
    background: linear-gradient(160deg, rgba(57, 37, 32, .96), rgba(12, 20, 18, .97));
    box-shadow: 0 2px 5px #0007;
  }
  #ingredients[data-plaque="1"][data-plaque-fallback="1"][data-count] .ingredient {
    display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 4px; align-items: center;
    grid-column: auto; justify-self: stretch; width: auto; height: 16px;
    padding: 0 4px; border-radius: 3px; background: rgba(0, 0, 0, .3);
  }
  #ingredients[data-plaque="1"][data-plaque-fallback="1"][data-count] .ingredient__img {
    position: static; width: 16px; height: 16px; transform: none; object-fit: contain;
  }
  #ingredients[data-plaque="1"][data-plaque-fallback="1"][data-count] .ingredient__n {
    position: static; justify-self: end; width: auto; transform: none;
    font-size: 12px; line-height: 16px;
  }
  #historyPeek[data-recipe-gutter="1"] .history-peek__label { display: none; }
  #historyPeek[data-recipe-gutter="1"] .history-peek__icon,
  #historyPeek[data-recipe-gutter="1"] .history-peek__icon svg { width: 20px; height: 20px; }



  .scene:has(> #ingredients[data-plaque-fallback="1"]) #reservoirMeter[data-plaque="1"][data-ingredients="1"] .meter__value {
    width: 61.37%; height: auto; overflow: visible; clip-path: none;
    font-size: 13px; line-height: 1.1; text-align: center;
  }



  .scene:has(> #ingredients[data-plaque-fallback="1"]) #reservoirMeter[data-plaque="1"] { clip-path: none; }
  .scene:has(> #ingredients[data-plaque-fallback="1"]) #reservoirMeter[data-plaque="1"] .meter__help {
    top: max(0px, calc(var(--kettle-clip-top, 0px) - 44px));
  }

  #payScroll[data-portrait="1"] {
    --pay-padding-y: 4px;
    --pay-row-gap: 2px;
    box-sizing: border-box; padding: 0; border: 0; border-radius: 12px;
    background: transparent; box-shadow: none;
  }
  #payScroll[data-portrait="1"][data-packed="1"] { display: none; }
  #payScroll[data-portrait="1"]::before {
    display: block; content: ''; position: absolute; left: 0; top: 0; width: 100%;


    height: calc(var(--history-fill, 100%) + (5 - var(--history-count, 5)) * (2 * var(--pay-padding-y) - var(--pay-row-gap)) / 5);
    border-radius: 12px;
    background: rgba(11, 11, 11, .72);
  }
  #payScroll[data-portrait="1"] .scroll__heading { display: none; }
  #payScroll[data-portrait="1"] .scroll__rows {
    --pay-font-size: clamp(11px, 9.5cqw, 15px);
    --pay-icon-size: clamp(18px, 17cqw, 24px);
    position: absolute; inset: var(--pay-padding-y) 5px; display: grid; gap: var(--pay-row-gap);
    grid-template-rows: repeat(5, minmax(0, 1fr)); align-content: stretch;
  }
  #payScroll[data-portrait="1"] .scroll__row {
    display: grid; grid-template-columns: var(--pay-icon-size) calc(var(--pay-font-size) * .65 * (var(--pay-count-digits, 2) + 1)) minmax(0, 1fr);
    grid-template-rows: 1fr; align-items: center; column-gap: 3px;
    min-height: 0; padding: 0; border-radius: 0; background: none !important;
  }
  #payScroll[data-portrait="1"] .scroll__row--empty { display: grid; visibility: hidden; }
  #payScroll[data-portrait="1"] .scroll__rank {
    grid-column: 2; grid-row: 1; font-size: var(--pay-font-size); line-height: 1;
    text-align: left; white-space: nowrap;
  }
  #payScroll[data-portrait="1"] .scroll__rank:not(:empty)::before { content: '×'; }
  #payScroll[data-portrait="1"] .scroll__sym {
    grid-column: 1; grid-row: 1; position: static; transform: none;
    width: var(--pay-icon-size); height: var(--pay-icon-size);
  }
  #payScroll[data-portrait="1"] .scroll__pay {
    grid-column: 3; grid-row: 1; min-width: 0; line-height: 1;
    font-size: calc(var(--pay-font-size) * var(--fit, 1));
    text-align: right; white-space: nowrap;
  }
  #payScroll[data-portrait="1"] .scroll__rows:has(.scroll__row[data-dense="1"]) {
    --pay-font-size: 11px; --pay-icon-size: 16px;
  }
}

@media (max-width: 359px) {
  #payScroll[data-portrait="1"] .scroll__rows {
    --pay-font-size: 12px; --pay-icon-size: 19px;
  }
}

.chrome__backdrop { display: none; }
@media (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .chrome {
    --footer-band-height: max(44px, calc(40 * var(--u)));
    --footer-buy-bottom: calc(3 * var(--u));
  }
  .chrome::before { content: none; }




  .chrome__backdrop {
    display: block; position: absolute; z-index: 0;
    left: 4px; right: 4px; bottom: env(safe-area-inset-bottom);
    height: max(var(--footer-band-height), calc(71 * var(--u) + var(--footer-buy-bottom)));
    opacity: .4; pointer-events: none;
  }
  .chrome__backdrop::before {
    content: ''; position: absolute; left: 50%; bottom: var(--footer-buy-bottom);
    width: calc(360 * var(--u)); height: calc(71 * var(--u));
    transform: translateX(-50%); background: #010101;
    -webkit-mask: url('../assets/ui/bet-bar-chassis-mobile.svg') center / 100% 100% no-repeat;
    mask: url('../assets/ui/bet-bar-chassis-mobile.svg') center / 100% 100% no-repeat;
  }
  .chrome__backdrop::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: var(--footer-band-height); border-radius: calc(13 * var(--u));
    background: #010101;
  }
}

@media (orientation: portrait) and (min-width: 600px) {
  .chrome {


    --footer-band-height: max(45px, calc(40 * var(--u) + 8px));
  }
  .chrome__backdrop {
    left: max(10px, calc(50vw - 680px));
    right: max(10px, calc(50vw - 680px));
  }
}

@media (pointer: fine) and (orientation: landscape) and (min-width: 761px) {



  :root { --fine-panel-min: min(calc(100vw - 24px), 820px); }
  .chrome { padding-bottom: max(14px, calc(14 * var(--panel-u))); }


  .chrome__row { --bet-hit-extra: max(0px, calc(46px - 81.9 * var(--panel-u))); }
  .chrome__row #btnSpin { translate: var(--bet-hit-extra) 0; }
}

@media (orientation: landscape) and (min-width: 760px) and (max-width: 1024px) and (max-height: 430px) and (pointer: coarse) {
  #historyPeek { translate: 0 1px; }
}



.intro__sound {
  position: fixed; z-index: 10;
  top: max(8px, calc(env(safe-area-inset-top) + 8px));
  right: max(8px, calc(env(safe-area-inset-right) + 8px));
  display: grid; place-items: center; box-sizing: border-box;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(233, 197, 131, .65); border-radius: 50%;
  background: rgba(10, 12, 15, .9); color: #fff0ce;
  box-shadow: 0 2px 6px #0009, inset 0 1px rgba(255, 238, 198, .2);
  cursor: pointer;
}
.intro__sound img { display: block; width: 100%; height: 100%; object-fit: contain; }
.intro__sound[aria-pressed="false"] img { filter: grayscale(1) brightness(.76); }
.intro__sound[aria-pressed="false"]::after {
  content: ''; position: absolute; left: 10px; top: 20px;
  width: 24px; height: 3px; border-radius: 2px;
  background: #f8ddad; transform: rotate(-45deg);
  box-shadow: 0 0 0 1px #1b1210, 0 1px 2px #000;
  pointer-events: none;
}




.celebration[data-completed="1"] .celebration__lead,
.celebration[data-completed="1"] .celebration__rays { display: none; }
.celebration[data-kind="scroll"][data-completed="1"] .celebration__slot--scroll,
.celebration[data-kind="scroll"][data-completed="1"] .celebration__stage[data-reward-renderer="fallback"] .celebration__slot--scroll {
  font-size: calc(clamp(17px, 4.7vw, 42px) * var(--fit, 1));
  line-height: 1.05;
  white-space: normal; text-wrap: balance;
}



@media (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .game #btnMenu, .game #btnSound { isolation: isolate; display: grid; place-items: center; }
  .game #btnMenu::before, .game #btnSound::before {
    width: clamp(28px, 8.889vw, 40px); height: clamp(28px, 8.889vw, 40px); z-index: 0;
  }
  .game #btnMenu svg, .game #btnSound svg {
    position: relative; z-index: 1; width: 22px; height: 22px;
  }
}




.celebration__holdwin-art { display: none; }
.celebration[data-kind="scroll"][data-recap="holdwin"] { background: transparent; }
.celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__stage { animation: none; }
.celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__scroll,
.celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__lead,
.celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__rays { display: none; }
.celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__scrollbox {
  inset: auto;
  left: calc(87 * var(--canvas-u)); top: calc(391 * var(--canvas-u));
  width: calc(298 * var(--canvas-u)); height: calc(298 * var(--canvas-u));
  container-type: inline-size;
}
.celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__holdwin-art {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; z-index: 1;
}
.celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__scrollbox::before {
  z-index: 0;
  left: -91.1%; top: -90.6%; width: 282.2%; height: 281.2%;
  background: url('../assets/bonus/glow-burst-rays.webp') center / contain no-repeat;
  filter: none; opacity: .5; animation: none; transform: none;
}
.celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__banner {
  left: 16%; top: 33.557%; width: 68%; height: auto;
  font-size: calc(10.7383cqw * var(--fit, 1)); font-weight: 900; letter-spacing: 0; line-height: normal;
}
.celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__slot--scroll {
  left: 16%; top: 47.3154%; width: 68%; height: auto; padding: 0;
  font-size: calc(16.1074cqw * var(--fit, 1)); line-height: normal; letter-spacing: 0;
}
.celebration[data-kind="scroll"][data-recap="holdwin"] :is(.celebration__banner, .celebration__slot--scroll) {
  background: none; color: #200303; -webkit-text-fill-color: currentColor;
  text-shadow: none; -webkit-text-stroke: 2.0134cqw #200303;
  paint-order: stroke fill; filter: drop-shadow(0 1.0067cqw 0 #000);
}
.celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__sub {
  left: 12%; top: 74%; width: 76%; height: 10%;
  font-size: 7cqw; font-weight: 800; line-height: 1; letter-spacing: 0;
  color: #38200f; text-shadow: 0 1px 0 rgba(255, 244, 205, .5);
}
.celebration[data-kind="scroll"][data-recap="holdwin"][data-completed="1"] .celebration__slot--scroll {
  font-size: calc(12cqw * var(--fit, 1)); white-space: pre-line;
}
.celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__go {
  left: calc(236 * var(--canvas-u)); right: auto; top: calc(715 * var(--canvas-u)); bottom: auto;
  width: max-content; max-width: calc(350 * var(--canvas-u));
  transform: translateX(-50%); font-size: clamp(11px, calc(20 * var(--canvas-u)), 20px);
}
body:has(.celebration[data-recap="holdwin"]:not([hidden])) #bonusTotal { visibility: hidden; }
@media (orientation: portrait) {
  .celebration[data-kind="scroll"][data-recap="holdwin"] { background: rgba(0, 0, 0, .35); }
  .celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__banner {
    top: 26.728%; font-size: calc(9.6968cqw * var(--fit, 1));
  }
  .celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__slot--scroll {
    top: 42.243%; font-size: calc(15.5149cqw * var(--fit, 1));
  }
  .celebration[data-kind="scroll"][data-recap="holdwin"] :is(.celebration__banner, .celebration__slot--scroll) {
    -webkit-text-stroke-width: 1.9394cqw;
    filter: drop-shadow(0 1.4545cqw 0 #000);
  }
  .celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__scrollbox {
    --hw-recap-size: min(57.29vw, 34dvh, 350px);
    left: 50%; top: 44.55dvh;
    width: var(--hw-recap-size); height: var(--hw-recap-size);
    transform: translate(-50%, -50%);
  }
  .celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__go {
    left: 50%; top: calc(44.55dvh + min(28.645vw, 17dvh, 175px) + 12px);
    max-width: calc(100vw - 24px); font-size: clamp(12px, 2.8vw, 15px);
  }
}
@media (orientation: landscape) and (max-height: 560px) {
  .celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__scrollbox {
    --hw-recap-size: min(30vw, 55dvh);
    left: 3vw; top: calc(46dvh - var(--hw-recap-size) / 2);
    width: var(--hw-recap-size); height: var(--hw-recap-size);
  }
  .celebration[data-kind="scroll"][data-recap="holdwin"] .celebration__go {
    left: calc(3vw + min(15vw, 27.5dvh)); top: calc(46dvh + min(15vw, 27.5dvh) + 12px);
    max-width: 36vw; font-size: 12px;
  }
}


.ante__help {
  display: none; position: absolute; left: 50%; bottom: calc(100% + 10px);
  width: min(280px, 70vw); transform: translateX(-50%); padding: 12px;
  border: 1px solid #b99a61; border-radius: 10px;
  background: #21191c; color: #f6e7c9; box-shadow: 0 5px 20px #0009;
  font-size: 13px; font-weight: 500; line-height: 1.4; text-align: left;
  pointer-events: none;
}
@media (hover: hover) {
  .ante:hover:not(:disabled) .ante__help { display: block; }
}
.menu__ante-help {
  display: block; margin: 4px 0 0; color: #e2d2b6;
  font-size: 12px; line-height: 1.4; font-weight: 500;
  text-transform: none; letter-spacing: 0;
}
.card--recovery-result {
  width: min(430px, 92vw); min-height: min(390px, 78dvh);
  padding: 36px 34px 32px; justify-content: center; text-align: center;
  font-family: "Noto Sans", sans-serif; letter-spacing: 0;
  background: url('../assets/win/note-frame-wood-gold.webp') center / 100% 100% no-repeat;
  border: 0; border-radius: 0; box-shadow: none;
}
.card--recovery-result :is(.card__title, .recovery-result__sum, .recovery-result__continue-label) {
  font-weight: 900; letter-spacing: 0; paint-order: stroke fill;
  -webkit-text-stroke: .1666666667em #000; text-shadow: none;
  filter: drop-shadow(0 .0833333333em 0 #000);
}
.card--recovery-result .card__title {
  margin-bottom: 12px; color: #fcd563;
  font-size: clamp(17px, 4.4vw, 23px); line-height: 1.35;
}
.card--recovery-result .card__text { text-shadow: none; }
@media (max-height: 450px) {
  .card--recovery-result { padding: 24px 32px; min-height: 0; }
}
.card--recovery-result .recovery-result__sum {
  margin: 8px 0 16px; color: #ead577;
  font-size: clamp(28px, 7vw, 46px); font-weight: 900; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.card--recovery-result .recovery-result__message {
  margin: 0 0 22px; color: #fff2d6; font-size: 16px; font-weight: 700;
  letter-spacing: 0; line-height: 1.5; overflow-wrap: anywhere;
  -webkit-text-stroke: .1em #000; paint-order: stroke fill;
  filter: drop-shadow(0 .0625em 0 #000);
}
.card--recovery-result .recovery-result__continue {
  width: 100%; min-height: 48px; font-weight: 900; letter-spacing: 0;
}
.card--recovery-result .recovery-result__continue-label { display: inline-block; color: #fff2d6; }
.card__support { margin-top: 12px; overflow-wrap: anywhere; font-size: 11px; color: #c9bda6; }
.card__support summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.card__support summary::before { content: '▸'; margin-right: 7px; }
.card__support[open] summary::before { content: '▾'; }
.card__support pre { white-space: pre-wrap; user-select: text; }
.card--auto .auto-stepper { flex: none; margin: 0 0 12px; }
.card--auto .auto-stepper .stake--picker { min-width: 115px; border: 1px solid #b29765; border-radius: 10px; }


@media (orientation: portrait) and (max-width: 599px) and (min-height: 501px) {
  .panel--action {
    width: 184px; height: 88px;
    bottom: calc(max(74px, 73 * var(--u) + 8px) + env(safe-area-inset-bottom));
  }
  .panel--action #btnSpin { left: 52px; top: 4px; width: 80px; height: 80px; }
  .panel--action .step-btn { top: calc(44px - var(--mobile-control-size) / 2); }
  .panel--action #betDown { left: calc(22px - var(--mobile-control-size) / 2); }
  .panel--action #betUp { left: calc(162px - var(--mobile-control-size) / 2); }
  .panel--action::before { inset: 17px -4px; background: rgba(9, 8, 11, .88); filter: blur(5px); }
  #btnBetMenu { width: 44px; height: 44px; bottom: 12px; }
  .buy-btn { bottom: 10px; }


  .buy-btn::before { inset: -6%; }
  .chrome {
    --footer-buy-bottom: 10px;
    --footer-band-height: max(45px, calc(40 * var(--u) + 8px));
  }

  #btnBetMenu { background: transparent; }
  #btnBetMenu > svg { visibility: hidden; }
  #btnBetMenu::before {
    inset: auto; left: 50%; top: 50%;
    width: max(30px, calc(30 * var(--u))); height: max(30px, calc(30 * var(--u)));
    transform: translate(-50%, -50%);
  }
}



.bet-chooser.card--flat .bet-cell { height: 44px; min-height: 44px; min-width: 0; }
.bet-chooser .bet-progress-key { flex: none; line-height: 1.35; }

.card--auto .auto-stepper { display: grid; grid-template-columns: 44px minmax(96px, 140px) 44px; gap: 8px; align-self: center; }
.card--auto .auto-stepper .step-btn { width: 44px; height: 44px; min-height: 44px; font-size: 26px; padding: 0; }
.card--auto .auto-stepper .stake { width: auto; min-width: 0; height: 44px; padding: 3px 12px; }

.boot:has(.boot__slow:not([hidden])) .boot__provider { visibility: hidden; }



.game[data-reward-counting="1"] .stat--win,
.game[data-reward-counting="1"] .win-amount--total { visibility: hidden; }
.frame-box__coeff[hidden] { display: none; }


.celebration__stage[data-tier-renderer="spine"] .celebration__art,
.celebration__stage[data-tier-renderer="spine"] .celebration__rays--tier { visibility: hidden; }
.celebration__stage[data-tier-renderer="spine"] .celebration__slot { background: none; }

.game[data-startup="covered"] :is(.board-wrap, #energyMeter, #anteCard, #payScroll, .scene__mascot-window, #reservoirMeter, #ingredients, #logoArt, .chrome) { opacity: 0; }
.rules-cascade-demo { margin: 12px 0 20px; }
.rules-cascade-demo summary { cursor: pointer; color: var(--gold-hot); padding: 12px 0; }
.rules-cascade-demo video { display: block; width: min(100%, 360px); max-height: 45vh; margin: 12px auto; border-radius: 8px; }
.board__cells.cells--awaiting .cell__img { opacity: .7; }

.intro__cauldron {
  position: absolute; left: calc(11 * var(--canvas-u)); top: calc(-75 * var(--canvas-u));
  width: calc(214 * var(--canvas-u)); height: calc(278 * var(--canvas-u));
}
.intro__cauldron .intro__mechanic-art { inset: 0; width: 100%; height: 100%; }
@media (orientation: portrait) {
  .intro__cauldron { left: calc(17 * var(--intro-u)); top: calc(-34 * var(--intro-u)); width: calc(92 * var(--intro-u)); height: calc(120 * var(--intro-u)); }
}
@media (orientation: landscape) and (max-width: 1024px) {
  .intro__mechanics { overflow-y: auto; padding: 0 3%; box-sizing: border-box; }
  .intro__mechanic { display: grid; grid-template-columns: var(--intro-card-art) minmax(0,1fr); align-items: center; }
  .intro__mechanic-copy { position: static; width: auto; }
  .intro__mechanic > .intro__mechanic-art, .intro__mechanic:nth-child(3) > .intro__mechanic-art,
  .intro__cauldron { position: relative; inset: auto; width: var(--intro-card-art); height: var(--intro-card-art); }
}
.intro__recipe { position: absolute; left: 25%; top: 56%; width: 50%; height: 18%; display: flex; align-items: center; justify-content: center; gap: 1px; }
.intro__recipe img { width: 30%; height: 100%; object-fit: contain; }

.meter__range {
  position: absolute; left: 17%; top: 47%; width: 66%; z-index: 7;
  box-sizing: border-box; padding: 2px 3px; border-radius: 4px;
  background: rgba(20, 13, 20, .88); color: #ffe5a9; text-align: center;
  font: 800 clamp(10px, calc(20 * var(--canvas-u)), 16px)/1.1 var(--font);
  white-space: nowrap; pointer-events: none;
}
.meter__range[hidden] { display: none; }


.cell[data-book-emphasis="exceptional"] .cell__nominal {
  color: #fff0ba; background: #29160bf5;
  font-size: calc(max(15px, calc(10px / var(--board-scale, 1))) * 1.08 * var(--nom-fit, 1));
  box-shadow: inset 0 0 0 1.5px #ffda83, 0 0 10px #ffcd62aa;
  text-shadow: 0 1px 0 #120a05;
}
@media (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .cell[data-book-emphasis="exceptional"] .cell__nominal {
    font-size: calc(max(25px, calc(10px / var(--board-scale, 1))) * 1.08 * var(--nom-fit, 1));
  }
}


.book-arrival-flash {
  position: absolute; z-index: 6; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 44%, #fff1af66 0%, #ffd66dcc 32%, #ffbd4733 56%, transparent 72%);
}
.cell__nominal-arrival--exceptional { animation-name: exceptionalNominalArrival; }
@keyframes exceptionalNominalArrival {
  0% { transform: translateY(0); filter: brightness(1); text-shadow: 0 0 0 transparent; }
  35% { transform: translateY(-3px); filter: brightness(1.45); text-shadow: 0 0 8px #ffd669; }
  100% { transform: translateY(0); filter: brightness(1); text-shadow: 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .cell__nominal-arrival--exceptional { animation: none; }
}




@media (orientation: portrait) and (max-width: 279px) {
  .chrome__row #btnTurbo { display: none !important; }
  .panel--data .stat__k { font-size: 8px; }
  .panel--action .stake, .mob-counter {
    --bet-left: calc(var(--ox) + var(--footer-turbo-left));
  }
}




@media (orientation: landscape) and (max-height: 500px) {
  .scene__mascot[data-landscape="1"] { display: block; }
  #energyMeter[data-landscape="1"] .meter__label {
    top: auto; bottom: calc(100% + 4px);
    max-width: var(--energy-label-width); font-size: 10px;
    line-height: 1.1; padding: 2px 5px; letter-spacing: .02em;
    --seal-label-y: 0px; --seal-label-enter-y: 0px;
  }
  #payScroll[data-landscape="1"] { display: block; }
  #payScroll[data-landscape="1"].scroll--empty { display: none; }
  #payScroll[data-landscape="1"] .scroll__art { display: none; }
  #payScroll[data-landscape="1"] {
    --pay-padding-y: 4px;
    --pay-row-gap: 2px;
    box-sizing: border-box; padding: 0; border: 0; border-radius: 12px;
    background: transparent; box-shadow: none;
  }
  #payScroll[data-landscape="1"][data-packed="1"] { display: none; }
  #payScroll[data-landscape="1"]::before {
    display: block; content: ''; position: absolute; left: 0; top: 0; width: 100%;


    height: calc(var(--history-fill, 100%) + (5 - var(--history-count, 5)) * (2 * var(--pay-padding-y) - var(--pay-row-gap)) / 5);
    border-radius: 12px;
    background: rgba(11, 11, 11, .72);
  }
  #payScroll[data-landscape="1"] .scroll__heading { display: none; }
  #payScroll[data-landscape="1"] .scroll__rows {
    --pay-font-size: clamp(11px, 8.4cqw, 14px);
    --pay-icon-size: clamp(16px, 14cqw, 22px);
    position: absolute; inset: var(--pay-padding-y) 5px; display: grid; gap: var(--pay-row-gap);
    grid-template-rows: repeat(5, minmax(0, 1fr)); align-content: stretch;
  }
  #payScroll[data-landscape="1"] .scroll__row {
    display: grid; grid-template-columns: var(--pay-icon-size) calc(var(--pay-font-size) * .65 * (var(--pay-count-digits, 2) + 1)) minmax(0, 1fr);
    grid-template-rows: 1fr; align-items: center; column-gap: 2px;
    min-height: 0; padding: 0; border-radius: 0; background: none !important;
  }
  #payScroll[data-landscape="1"] .scroll__row--empty { display: grid; visibility: hidden; }
  #payScroll[data-landscape="1"] .scroll__rank {
    grid-column: 2; grid-row: 1; font-size: var(--pay-font-size); line-height: 1;
    text-align: left; white-space: nowrap;
  }
  #payScroll[data-landscape="1"] .scroll__rank:not(:empty)::before { content: '×'; }
  #payScroll[data-landscape="1"] .scroll__sym {
    grid-column: 1; grid-row: 1; position: static; transform: none;
    width: var(--pay-icon-size); height: 100%; max-height: var(--pay-icon-size);
    min-height: 0; aspect-ratio: auto; object-fit: contain;
  }
  #payScroll[data-landscape="1"] .scroll__pay {
    grid-column: 3; grid-row: 1; min-width: 0; line-height: 1;
    font-size: calc(var(--pay-font-size) * var(--fit, 1));
    text-align: right; white-space: nowrap;
  }
  #payScroll[data-landscape="1"] .scroll__rows:has(.scroll__row[data-dense="1"]) {
    --pay-font-size: 11px; --pay-icon-size: 16px;
  }
  #payScroll[data-landscape="1"] .scroll__pay {
    transform: scaleX(var(--fit-x, 1)); transform-origin: right center;
  }



  #payScroll[data-landscape="1"][data-stacked="1"] {
    --pay-padding-y: 2px; --pay-row-gap: 1px; container-type: size;
  }
  #payScroll[data-landscape="1"][data-stacked="1"] .scroll__rows,
  #payScroll[data-landscape="1"][data-stacked="1"] .scroll__rows:has(.scroll__row[data-dense="1"]) {
    --pay-font-size: clamp(9px, calc(10cqh - .8px), 11px);
    --pay-icon-size: 14px;
    inset-inline: 4px;
  }
  #payScroll[data-landscape="1"][data-stacked="1"] .scroll__row {
    grid-template-columns: var(--pay-icon-size) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr)); column-gap: 3px;
  }
  #payScroll[data-landscape="1"][data-stacked="1"] .scroll__sym {
    height: var(--pay-icon-size); max-height: var(--pay-icon-size);
  }
  #payScroll[data-landscape="1"][data-stacked="1"] .scroll__pay {
    grid-column: 1 / -1; grid-row: 2; justify-self: stretch;
  }


  #ingredients[data-landscape="1"] .ingredient:is(.is-drop, .is-full) {
    animation-name: recipeIngredientFeedback;
  }



  #ingredients[data-landscape="1"][data-plaque="1"][data-columns="1"][data-count] .ingredient {
    --recipe-icon: clamp(16px, calc(var(--plaque-height) / var(--recipe-rows, 4) * 1.2), 24px);
  }
  #reservoirMeter[data-landscape="1"] .meter__value { font-size: max(13px, 11cqw); }
  .scene:has(> #ingredients[data-landscape="1"]) #reservoirMeter[data-landscape="1"] .meter__help {
    top: var(--landscape-help-top); left: var(--landscape-help-left);
    right: auto; bottom: auto; width: 44px; height: 44px;
  }
  .scene:has(> #ingredients[data-landscape="1"]) #reservoirMeter[data-landscape="1"] .meter__help::after {
    top: 0; right: 0; left: auto; bottom: auto;
  }
}


#ingredients[data-plaque="1"] .ingredient:is(.is-drop, .is-full) {
  animation-name: recipeIngredientFeedback;
}
@keyframes recipeIngredientFeedback {
  0%, 100% { filter: brightness(1); }
  40% { filter: brightness(1.45); }
}


#ingredients[data-plaque="1"].is-swap { animation-name: plaqueRecipeSwap; }
@keyframes plaqueRecipeSwap {
  0%, 100% { opacity: 1; }
  38%, 39% { opacity: 0; }
}



.cell--fall .cell__nominal--preview {
  transition: none;
  animation: cellFall var(--fall-dur, 300ms) var(--fall-ease, cubic-bezier(0.4, 0, 0.35, 1))
             var(--fall-delay, 0ms) backwards;
}
.cell--out .cell__nominal--preview {
  animation: cellOut var(--out-dur, 260ms) cubic-bezier(0.5, 0, 0.85, 0.4)
             var(--out-delay, 0ms) both;
}
.cell--gone .cell__nominal--preview { visibility: hidden; }
.board__cells.cells--feature-trigger.cells--authored-book-trigger .cell--win.cell--special .cell__img {
  animation: none !important;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .cell--fall .cell__nominal--preview { animation: none; }
  .cell--out .cell__nominal--preview { animation: none; opacity: 0; }
}





.cell--special .cell__img[src*="/sc."] {
  width: var(--scatter-size, 114%); height: var(--scatter-size, 114%);
  translate: var(--scatter-x, 0px) var(--scatter-y, 2.2900763359%);
}


.buy .buy-card__stepper .step-btn,
.buy .buy__stepper .step-btn {
  box-shadow: 0 4px 0 #000;
}




.celebration[data-award="1"] {
  --award-u: var(--canvas-u);
  --award-left: calc(535 * var(--award-u));
  --award-top: calc(52 * var(--award-u));
}
.celebration[data-award="1"] :is(.celebration__banner, .celebration__lead, .celebration__sub) {
  font-family: 'Noto Sans', sans-serif; font-weight: 900; letter-spacing: 0;
  line-height: normal; paint-order: stroke fill; text-shadow: none;
}
.celebration[data-award="1"] .celebration__banner {
  font-size: calc(55 * var(--award-u)); color: #fcd563;
  -webkit-text-stroke: .1090909091em #000;
  filter: drop-shadow(0 .0545454545em 0 #000);
}
.celebration[data-award="1"] .celebration__lead {
  font-size: calc(40 * var(--award-u)); color: #ead577;
  -webkit-text-stroke: .15em #000;
  filter: drop-shadow(0 .075em 0 #000);
}
.celebration[data-award="1"] .celebration__sub {
  font-size: calc(55 * var(--award-u)); color: #ead577;
  -webkit-text-stroke: .1090909091em #141b2b;
  filter: drop-shadow(0 .1090909091em .0145454545em #000);
}
.celebration[data-kind="scroll"][data-award="1"] .celebration__slot--scroll {
  color: #000; -webkit-text-fill-color: #000;
  -webkit-text-stroke: .0636363636em #000;
  paint-order: stroke fill; text-shadow: none;
  filter: drop-shadow(0 .0363636364em .0036363636em #000);
  line-height: normal; padding: 0;
}
.celebration[data-award="1"] .celebration__slot--scroll::after {
  content: attr(data-plate-ink) / '';
  position: absolute; inset: 0; display: inherit; place-items: inherit;
  padding: inherit; box-sizing: inherit; pointer-events: none;
  background: linear-gradient(#ead577 41.58%, #a0682b 73.53%, #ead577 83.97%);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 0; text-shadow: none;
}
.celebration[data-award="1"] .celebration__scrollbox::before { display: none; }
.celebration[data-award="1"] .celebration__scroll {
  content: url('../assets/win/freespins-win-scroll.webp');
}



.celebration[data-award="1"] .celebration__stage:not([data-reward-renderer="spine"]) .celebration__scrollbox::after {
  content: ''; position: absolute; z-index: 1; pointer-events: none;
  left: calc(var(--award-left) + 214 * var(--award-u));
  top: calc(var(--award-top) + 421 * var(--award-u));
  width: calc(423 * var(--award-u)); height: calc(144 * var(--award-u));
  background: url('../assets/win/text-plate-dark-plank.webp') center / 100% 100% no-repeat;
}
.celebration[data-kind="scroll"][data-award="1"] .celebration__stage:not([data-reward-renderer="spine"]) .celebration__banner {
  left: calc(var(--award-left) + 131 * var(--award-u));
  top: calc(var(--award-top) + 161 * var(--award-u));
  width: calc(587 * var(--award-u)); height: calc(75 * var(--award-u));
  font-size: calc(55 * var(--award-u));
  display: grid; place-items: center;
}
.celebration[data-kind="scroll"][data-award="1"] .celebration__stage:not([data-reward-renderer="spine"]) .celebration__lead {
  left: calc(var(--award-left) + 257 * var(--award-u));
  top: calc(var(--award-top) + 297 * var(--award-u));
  width: calc(335 * var(--award-u)); height: calc(54 * var(--award-u));
  font-size: calc(40 * var(--award-u));
  display: grid; place-items: center;
}
.celebration[data-kind="scroll"][data-award="1"] .celebration__stage:not([data-reward-renderer="spine"]) .celebration__sub {
  left: calc(var(--award-left) + 263 * var(--award-u));
  top: calc(var(--award-top) + 656 * var(--award-u));
  width: calc(322 * var(--award-u)); height: calc(75 * var(--award-u));
  font-size: calc(55 * var(--award-u));
  display: grid; place-items: center;
}
.celebration[data-kind="scroll"][data-award="1"] .celebration__stage:not([data-reward-renderer="spine"]) .celebration__slot--scroll {
  left: calc(var(--award-left) + 267 * var(--award-u));
  top: calc(var(--award-top) + 310 * var(--award-u));
  width: calc(314 * var(--award-u)); height: calc(300 * var(--award-u));
  font-size: calc(220 * var(--award-u) * var(--fit, 1));
  display: grid; place-items: center;
  background: none;
}
@media (orientation: portrait) {
  .celebration[data-award="1"] {
    --award-u: min(calc(92vw / 408), calc(74dvh / 437));
    --award-left: calc(50vw - 204 * var(--award-u));
    --award-top: calc(46dvh - 218.5 * var(--award-u));
  }
  .celebration[data-award="1"] :is(.celebration__banner, .celebration__lead, .celebration__sub) {
    font-size: calc(24 * var(--award-u));
    -webkit-text-stroke: .1666666667em #000;
    filter: drop-shadow(0 .0833333333em 0 #000);
  }
  .celebration[data-kind="scroll"][data-award="1"] .celebration__slot--scroll {
    -webkit-text-stroke: .0833333333em #000;
    filter: drop-shadow(0 .0833333333em .0083333333em #000);
  }
  .celebration[data-kind="scroll"][data-award="1"] .celebration__stage:not([data-reward-renderer="spine"]) .celebration__banner {
    left: calc(var(--award-left) + 72.469 * var(--award-u));
    top: calc(var(--award-top) + 83 * var(--award-u));
    width: calc(263 * var(--award-u)); height: calc(33 * var(--award-u));
    font-size: calc(24 * var(--award-u));
    display: grid; place-items: center;
  }
  .celebration[data-kind="scroll"][data-award="1"] .celebration__stage:not([data-reward-renderer="spine"]) .celebration__lead {
    left: calc(var(--award-left) + 99.978 * var(--award-u));
    top: calc(var(--award-top) + 142.863 * var(--award-u));
    width: calc(206 * var(--award-u)); height: calc(33 * var(--award-u));
    font-size: calc(24 * var(--award-u));
    display: grid; place-items: center;
  }
  .celebration[data-kind="scroll"][data-award="1"] .celebration__stage:not([data-reward-renderer="spine"]) .celebration__sub {
    left: calc(var(--award-left) + 129.346 * var(--award-u));
    top: calc(var(--award-top) + 314 * var(--award-u));
    width: calc(148 * var(--award-u)); height: calc(33 * var(--award-u));
    font-size: calc(24 * var(--award-u));
    display: grid; place-items: center;
  }
  .celebration[data-kind="scroll"][data-award="1"] .celebration__stage:not([data-reward-renderer="spine"]) .celebration__slot--scroll {
    left: calc(var(--award-left) + 119.346 * var(--award-u));
    top: calc(var(--award-top) + 159 * var(--award-u));
    width: calc(169 * var(--award-u)); height: calc(131 * var(--award-u));
    font-size: calc(96 * var(--award-u) * var(--fit, 1));
    display: grid; place-items: center;
    background: none;
  }
  .celebration[data-award="1"] .celebration__stage:not([data-reward-renderer="spine"]) .celebration__scrollbox::after {
    left: calc(var(--award-left) + 102.446 * var(--award-u));
    top: calc(var(--award-top) + 202.413 * var(--award-u));
    width: calc(202.521 * var(--award-u)); height: calc(69.154 * var(--award-u));
  }
}
@media (orientation: landscape) and (max-height: 560px) {
  .celebration[data-award="1"] {
    --award-u: var(--reward-u);
    --award-left: var(--reward-left); --award-top: var(--reward-top);
  }
}




.buy .buy__stepper .stake {
  container-type: size; padding: 2px 4px; gap: 2px;
}
.buy .buy__stepper .stake__k {
  font-size: clamp(10px, 27cqh, 20px); line-height: 1;
}
.buy .buy__stepper .stake__v {
  font-size: clamp(12px, 36cqh, 28px); line-height: 1;
}




@media (orientation: portrait), (orientation: landscape) and (max-width: 760px) and (min-height: 501px) {
  .buy.buy--confirm {
    --confirm-header-top: 0px; --confirm-header-height: 64px;
  }
  .buy.buy--confirm .buy__ribbon--wide {
    left: 7%; top: var(--confirm-header-top); width: 86%;
    height: var(--confirm-header-height); aspect-ratio: auto; box-sizing: border-box;
    padding: 4px 60px 4px 12px;
    font-size: clamp(16px, 5.8cqw, 26px); line-height: 1.08;
    text-align: center; white-space: normal;
  }
  .buy.buy--confirm .card__knob--corner {
    top: calc(var(--confirm-header-top) + (var(--confirm-header-height) - 44px) / 2);
    right: calc(7% + 8px); width: 44px; height: 44px; min-width: 44px; min-height: 44px;
    box-sizing: border-box; transform: none; z-index: 4;
    background: #21191b; border: 2px solid #e7d7ad; box-shadow: 0 2px 0 #000;
  }
  .buy.buy--confirm .card__knob--corner .ico { width: 22px; height: 22px; }
  .buy.buy--confirm .card__knob--corner::after { width: 100%; height: 100%; }
  .buy.buy--confirm .buy-card--confirm .buy-card__name {
    padding-top: max(calc(var(--confirm-art-height) * .15), 72px);
  }
  .buy.buy--confirm .buy-card--confirm.is-gold .buy-card__name {
    padding-top: max(calc(var(--confirm-art-height) * .139), 72px);
  }
  .buy.buy--confirm .buy-card--confirm.is-royal .buy-card__name {
    padding-top: max(calc(var(--confirm-art-height) * .163), 72px);
  }
}
@media (orientation: portrait) and (max-height: 559px) {
  .buy.buy--confirm { --confirm-header-top: 8px; }
}
@media (orientation: portrait) {
  .buy.buy--large-text.buy--confirm {
    --confirm-header-top: 8px; --confirm-header-height: 72px;
  }
  .buy.buy--large-text.buy--confirm .buy__ribbon--wide {
    left: 7%; top: var(--confirm-header-top); width: 86%; height: var(--confirm-header-height);
    padding: 4px 60px 4px 12px; font-size: clamp(18px, 6cqw, 28px); line-height: 1.1;
  }
  .buy.buy--large-text.buy--confirm .card__knob--corner {
    top: calc(var(--confirm-header-top) + (var(--confirm-header-height) - 44px) / 2);
    right: calc(7% + 8px);
  }
}
