:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111315;
  color: #f7edd2;
  --slot-safe-top: env(safe-area-inset-top, 0px);
  --slot-safe-right: env(safe-area-inset-right, 0px);
  --slot-safe-bottom: env(safe-area-inset-bottom, 0px);
  --slot-safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(153, 39, 56, 0.28), transparent 32%),
    linear-gradient(135deg, #101418 0%, #20272b 50%, #151313 100%);
}

#gameShell {
  position: fixed;
  left: var(--slot-cabinet-center-x, 50vw);
  top: var(--slot-cabinet-center-y, 50dvh);
  container-type: inline-size;
  width: var(--slot-cabinet-width, min(100vw, calc(100dvh * 1672 / 941)));
  height: var(--slot-cabinet-height, auto);
  aspect-ratio: 1672 / 941;
  max-width: calc(100vw - var(--slot-safe-left) - var(--slot-safe-right));
  max-height: calc(100dvh - var(--slot-safe-top) - var(--slot-safe-bottom));
  overflow: hidden;
  transform: translate(-50%, -50%);
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  background: #151515;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
}

#gameCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

#transitionCanvas {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.preloader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(71, 255, 114, 0.18), transparent 17%),
    radial-gradient(circle at 50% 47%, rgba(255, 193, 46, 0.14), transparent 31%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.94) 67%),
    #020303;
  opacity: 1;
  transition: opacity 900ms ease, visibility 0s linear 900ms;
  isolation: isolate;
}

.preloader::before,
.preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.preloader::before {
  background:
    linear-gradient(90deg, transparent, rgba(137, 255, 158, 0.06), transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8px);
  mix-blend-mode: screen;
  opacity: 0.42;
  animation: preloaderScan 3.8s linear infinite;
}

.preloader::after {
  inset: 16%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(82, 255, 120, 0.2), rgba(255, 188, 50, 0.08) 32%, transparent 66%);
  filter: blur(24px);
  opacity: 0.78;
  animation: preloaderAura 2.6s ease-in-out infinite;
}

.preloader.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.preloaderPanel {
  position: relative;
  z-index: 1;
  width: min(720px, 70%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  box-shadow: none;
}

.preloaderPanel h1 {
  margin: 0 0 26px;
  color: #fff2a8;
  font-size: clamp(38px, 5.4vw, 78px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-shadow:
    0 4px 0 rgba(91, 27, 8, 0.98),
    0 0 18px rgba(255, 196, 63, 0.62),
    0 0 38px rgba(71, 255, 104, 0.34);
  animation: preloaderTitlePulse 2.7s ease-in-out infinite;
}

.preloaderTrack {
  position: relative;
  height: 34px;
  overflow: hidden;
  border: 1px solid rgba(160, 255, 138, 0.54);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(3, 10, 7, 0.96), rgba(0, 0, 0, 0.98));
  box-shadow:
    inset 0 2px 9px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(255, 233, 150, 0.12),
    0 0 22px rgba(82, 255, 87, 0.24),
    0 0 52px rgba(255, 191, 55, 0.1);
}

.preloaderTrack::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0 9px, transparent 9px 18px);
  opacity: 0.22;
  animation: preloaderStripes 1.1s linear infinite;
}

.preloaderTrack::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -20%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  filter: blur(8px);
  transform: skewX(-18deg);
  animation: preloaderSweep 1.8s ease-in-out infinite;
}

.preloaderBar {
  width: 0%;
  height: 100%;
  position: relative;
  z-index: 1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 92% 50%, rgba(255, 255, 255, 0.8), transparent 13px),
    linear-gradient(90deg, #0ad35a, #baff4e 47%, #fff19b 66%, #21f072),
    #2ddc48;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -9px 16px rgba(6, 94, 32, 0.32),
    0 0 18px rgba(78, 255, 92, 0.78),
    0 0 34px rgba(255, 214, 74, 0.22);
  transition: width 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.preloaderPanel strong {
  display: block;
  margin-top: 18px;
  color: #dcffbb;
  font-size: clamp(26px, 3.2vw, 46px);
  font-weight: 950;
  line-height: 1;
  text-shadow:
    0 0 12px rgba(36, 255, 83, 0.54),
    0 0 26px rgba(255, 204, 61, 0.2);
}

.preloaderPanel span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 244, 200, 0.86);
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 199, 62, 0.28);
}

@keyframes preloaderAura {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.58;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.92;
  }
}

@keyframes preloaderScan {
  from {
    background-position: -160px 0, 0 0;
  }

  to {
    background-position: 160px 0, 0 64px;
  }
}

@keyframes preloaderStripes {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 36px 0;
  }
}

@keyframes preloaderSweep {
  0% {
    left: -32%;
    opacity: 0;
  }

  35%,
  65% {
    opacity: 0.82;
  }

  100% {
    left: 108%;
    opacity: 0;
  }
}

@keyframes preloaderTitlePulse {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.16);
  }
}

.footerHud,
.controls,
.autoSpinChoice,
.gameMenuPanel,
.testControls,
.messageBar {
  position: absolute;
  z-index: 3;
}

.footerHud {
  inset: 0;
  pointer-events: none;
}

.meter {
  position: absolute;
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  padding: 0;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
}

.meter span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.meter strong {
  display: block;
  width: 92%;
  max-width: 92%;
  min-width: 0;
  overflow: hidden;
  padding-inline: 0;
  white-space: nowrap;
  color: #fff4b8;
  font-size: var(--meter-fit-font-size, clamp(14px, 1.95cqw, 34px));
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.balanceMeter {
  left: 12.6%;
  top: 91.1%;
  width: 13.35%;
  height: 4.8%;
}

.betMeter {
  left: 30%;
  top: 91.1%;
  width: 11.6%;
  height: 4.8%;
}

.winMeter strong {
  color: #ffe66d;
}

.winMeter {
  left: 66.8%;
  top: 91.1%;
  width: 17.2%;
  height: 4.8%;
}

.freeMeter {
  display: none;
}

.freeMeter strong {
  color: #fff4b8;
  font-size: clamp(16px, 2vw, 32px);
}

.controls {
  inset: 0;
  pointer-events: none;
}

.imageButton {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: pointer;
  opacity: 0;
  pointer-events: auto;
  filter: none;
  transition: transform 120ms ease, opacity 120ms ease, filter 120ms ease;
}

.imageButton:focus,
.imageButton:focus-visible {
  outline: 0;
}

.imageButton:hover {
  opacity: 1;
  transform: none;
  filter: none;
}

.imageButton:active,
.imageButton.active {
  opacity: 1;
  transform: none;
  filter: none;
}

.imageButton:disabled {
  cursor: not-allowed;
  opacity: 0;
  transform: none;
}

.spinButton {
  left: 45.63%;
  top: 80.87%;
  width: 10.59%;
  aspect-ratio: 1;
  background-image: url("../assets/spinbuttonpress.png");
}

.spinButton:hover {
  background-image: url("../assets/spinbuttonover.png");
}

.spinButton.spinStopping {
  opacity: 1;
  background-image: url("../assets/stopbuttonover.png");
}

.spinButton.spinStopping:hover {
  background-image: url("../assets/stopbuttonover.png");
}

.spinButton.spinStopping:active {
  background-image: url("../assets/stopbuttonpress.png");
}

.spinButton.autoplayRunning {
  opacity: 1;
  background-image: none;
}

.spinButton.autoplayRunning:hover {
  background-image: url("../assets/spinbuttonover.png");
}

.spinButton.spinStopping.autoplayRunning {
  background-image: url("../assets/stopbuttonover.png");
}

.spinButton.spinStopping.autoplayRunning:hover {
  background-image: url("../assets/stopbuttonover.png");
}

.spinButton.autoplayRunning::after {
  content: attr(data-autoplay-count);
  position: absolute;
  z-index: 2;
  left: 50.2%;
  top: calc(52.4% - 7px);
  width: 36%;
  transform: translate(-50%, -50%);
  color: #151c20;
  font-size: clamp(22px, 2.85vw, 44px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 249, 205, 0.92),
    0 0 6px rgba(255, 239, 160, 0.82),
    0 3px 6px rgba(255, 210, 92, 0.5);
  pointer-events: none;
}

.spinButton.autoplayLargeCount::after {
  width: 42%;
  font-size: clamp(18px, 2.3vw, 36px);
}

.spinButton:not(.spinStopping):active {
  background-image: url("../assets/spinbuttonpress.png");
}

.spinButton.autoplayComplete {
  opacity: 1;
  animation: autoplayDonePulse 860ms ease-out;
  filter: drop-shadow(0 0 14px rgba(255, 230, 108, 0.86));
}

.gameIdle .spinButton:not(:disabled):not(.autoplayRunning) {
  opacity: 0.82;
  animation: idleSpinPulse 1800ms ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(255, 214, 80, 0.58));
}

@keyframes autoplayDonePulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 230, 108, 0));
  }
  38% {
    transform: scale(1.045);
    filter: drop-shadow(0 0 18px rgba(255, 230, 108, 0.9));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 230, 108, 0));
  }
}

@keyframes idleSpinPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(255, 214, 80, 0.44));
  }
  50% {
    transform: scale(1.035);
    filter: drop-shadow(0 0 18px rgba(255, 230, 108, 0.78));
  }
}

.autoButton {
  left: 86.32%;
  top: 87.67%;
  width: 5.38%;
  aspect-ratio: 1;
  background-image: url("../assets/autoplaybuttonpress.png");
}

.autoButton:hover {
  background-image: url("../assets/autoplaybuttonover.png");
  background-position: calc(50% + 1px) 50%;
}

.autoButton.active {
  background-image: url("../assets/autoplaybuttonactive.png");
}

.autoButton.active:hover {
  opacity: 1;
  filter: none;
  background-image: url("../assets/autoplaybuttonactive.png");
}

.autoButton:active {
  left: 86.32%;
  background-image: url("../assets/autoplaybuttonpress.png");
}

.autoSpinChoice {
  right: 1.7%;
  bottom: 15.6%;
  z-index: 6;
  display: block;
  width: 18.4%;
  aspect-ratio: 433 / 577;
  padding: 0;
  overflow: hidden;
  background: url("../assets/autospinchoice.png") center / contain no-repeat;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.56));
  opacity: 0;
  pointer-events: none;
  transform: translateY(120vh);
  transition: transform 340ms cubic-bezier(0.18, 0.84, 0.26, 1), opacity 160ms ease;
}

.autoSpinChoice.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.autoSpinChoice[hidden] {
  display: none;
}

.gameMenuPanel {
  left: 0.9%;
  bottom: calc(15.6% - 46px);
  z-index: 6;
  display: block;
  width: 18.4%;
  aspect-ratio: 433 / 577;
  padding: 0;
  overflow: hidden;
  background: url("../assets/menuoff.png") center / contain no-repeat;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.56));
  opacity: 0;
  pointer-events: none;
  transform: translateY(120vh);
  transition: transform 340ms cubic-bezier(0.18, 0.84, 0.26, 1), opacity 160ms ease;
}

.gameMenuPanel.allOn {
  background-image: url("../assets/menuon.png");
}

.gameMenuPanel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.gameMenuPanel[hidden] {
  display: none;
}

.menuHit {
  position: absolute;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.menuHit:focus,
.menuHit:focus-visible {
  outline: 0;
}

.menuPaytableHit {
  left: 20%;
  top: 22.5%;
  width: 63%;
  height: 19%;
}

.menuToggleHit {
  left: 60.2%;
  width: 19.4%;
  height: 7.2%;
  border-radius: 999px;
}

.menuSoundHit {
  top: 46.0%;
}

.menuFastSpinHit {
  top: 61.1%;
}

.menuToggleHit::after {
  content: attr(data-state);
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding-right: 18%;
  border: 1px solid rgba(255, 218, 118, 0.62);
  border-radius: inherit;
  color: #fff7cb;
  font-size: clamp(6px, 0.76vw, 13px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.22),
    inset 0 -3px 5px rgba(0, 0, 0, 0.34),
    0 2px 4px rgba(0, 0, 0, 0.38);
}

.menuToggleHit::before {
  content: "";
  position: absolute;
  top: 12%;
  z-index: 1;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff6d1 0 15%, #d8a947 42%, #72431e 100%);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.58),
    inset 0 -2px 4px rgba(0, 0, 0, 0.55),
    0 1px 4px rgba(0, 0, 0, 0.72);
}

.menuToggleHit.isOn::after {
  background: linear-gradient(90deg, #0a4f1e 0%, #158233 54%, #0c4e20 100%);
}

.menuToggleHit.isOn::before {
  right: 5.5%;
}

.menuToggleHit.isOff::after {
  padding-right: 0;
  padding-left: 18%;
  background: linear-gradient(90deg, #5b0b0d 0%, #a6211d 52%, #581012 100%);
}

.menuToggleHit.isOff::before {
  left: 5.5%;
}

.autoSpinChoice button {
  position: absolute;
  left: 20%;
  width: 60%;
  height: 13.6%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.autoSpinChoice button[data-spins="500"] {
  top: 13.9%;
}

.autoSpinChoice button[data-spins="100"] {
  top: 28.7%;
}

.autoSpinChoice button[data-spins="50"] {
  top: 43.4%;
}

.autoSpinChoice button[data-spins="25"] {
  top: 58.2%;
}

.autoSpinChoice button[data-spins="10"] {
  top: 72.9%;
}

.autoSpinChoice button::before {
  content: "";
  position: absolute;
  left: calc(-33.333% + 1px);
  width: calc(166.667% - 2px);
  height: 735.4%;
  background: url("../assets/autospinchoiceover.png") center / 100% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
}

.autoSpinChoice button[data-spins="500"]::before {
  top: -102.2%;
}

.autoSpinChoice button[data-spins="100"]::before {
  top: -210.9%;
}

.autoSpinChoice button[data-spins="50"]::before {
  top: -319.1%;
}

.autoSpinChoice button[data-spins="25"]::before {
  top: -427.9%;
}

.autoSpinChoice button[data-spins="10"]::before {
  top: -536.0%;
}

.autoSpinChoice button:hover::before,
.autoSpinChoice button.hovering::before,
.autoSpinChoice button:focus-visible::before {
  opacity: 1;
}

.autoSpinChoice button:focus,
.autoSpinChoice button:focus-visible {
  outline: 0;
}

.menuButton {
  left: 6.22%;
  top: 87.78%;
  width: 4.49%;
  aspect-ratio: 1;
  background-image: url("../assets/menubuttonpress.png");
}

.menuButton:hover {
  background-image: url("../assets/menubuttonover.png");
  background-position: calc(50% - 1px) calc(50% - 1px);
}

.menuButton:active {
  background-image: url("../assets/menubuttonpress.png");
}

.betUpButton,
.betDownButton {
  top: 88.95%;
  width: 4.19%;
  aspect-ratio: 1;
}

.betUpButton {
  left: 39.95%;
  background-image: url("../assets/betupbuttonpress.png");
}

.betUpButton:hover {
  background-image: url("../assets/betupbuttonover.png");
  background-position: calc(50% - 1px) calc(50% - 1px);
}

.betUpButton:active {
  background-image: url("../assets/betupbuttonpress.png");
}

.betDownButton {
  left: 27.51%;
  background-image: url("../assets/betdownbuttonpress.png");
}

.betDownButton:hover {
  background-image: url("../assets/betdownbuttonover.png");
}

.betDownButton:active {
  background-image: url("../assets/betdownbuttonpress.png");
}

.maxBetButton {
  left: 58.49%;
  top: 88.10%;
  width: 6.64%;
  aspect-ratio: 111 / 85;
  background-image: url("../assets/maxbetbuttonpress.png");
}

.maxBetButton:hover {
  background-image: url("../assets/maxbetbuttonover.png");
  background-position: 50% calc(50% - 1px);
}

.maxBetButton:active {
  background-image: url("../assets/maxbetbuttonpress.png");
}

.testControls {
  top: 2.1%;
  right: 2.6%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.testControls button {
  min-width: 148px;
  min-height: 34px;
  border: 1px solid rgba(255, 230, 134, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(82, 28, 31, 0.94), rgba(25, 10, 12, 0.94)),
    rgba(0, 0, 0, 0.74);
  color: #fff3b7;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 5px 14px rgba(0, 0, 0, 0.35);
}

.testControls .testMenuButton {
  --test-menu-size: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 var(--test-menu-size);
  width: var(--test-menu-size);
  min-width: var(--test-menu-size);
  height: var(--test-menu-size);
  min-height: var(--test-menu-size);
  padding: 0;
  border-radius: 50%;
  touch-action: manipulation;
}

.testMenuIcon {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: transform 140ms ease;
}

.testMenuButton[aria-expanded="true"] {
  border-color: rgba(121, 240, 215, 0.72);
  color: #79f0d7;
}

.testMenuButton[aria-expanded="true"] .testMenuIcon {
  transform: scale(1.08);
}

.testMenuButton:focus-visible {
  outline: 2px solid #79f0d7;
  outline-offset: 2px;
}

.testMenuPanel {
  display: grid;
  gap: 5px;
  min-width: 158px;
  padding: 7px;
  border: 1px solid rgba(255, 230, 134, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(29, 14, 16, 0.96), rgba(8, 8, 10, 0.92)),
    rgba(0, 0, 0, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.46);
}

.testMenuPanel[hidden] {
  display: none;
}

.testMenuPanel button {
  min-width: 144px;
}

.testControls button:hover {
  border-color: rgba(121, 240, 215, 0.72);
  color: #79f0d7;
}

.testControls button:active {
  transform: translateY(1px);
}

.messageBar {
  display: none;
}

dialog {
  width: min(1110px, 94vw);
  max-height: 95vh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f8edd1;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.dialogArt {
  position: relative;
  max-height: 95vh;
  overflow: auto;
  padding: 10px 14px 12px;
  border: 1px solid rgba(255, 234, 171, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(29, 18, 17, 0.78), rgba(8, 10, 11, 0.9) 52%, rgba(18, 11, 10, 0.96)),
    url("../assets/popup.png") center / cover;
  box-shadow:
    inset 0 0 0 2px rgba(62, 28, 8, 0.66),
    inset 0 0 38px rgba(255, 190, 74, 0.1),
    0 24px 90px rgba(0, 0, 0, 0.7);
}

.closeButton {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(17, 18, 19, 0.82);
  color: #fff4cc;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 2px;
  color: #fff0a6;
  font-size: clamp(30px, 4.15vw, 52px);
  line-height: 0.95;
  text-shadow: 0 4px 0 rgba(77, 18, 11, 0.92), 0 0 24px rgba(255, 180, 72, 0.3);
}

h2 {
  color: #ffe889;
  font-size: 20px;
  text-transform: uppercase;
}

.subhead {
  margin-bottom: 14px;
  color: #f7dba0;
  font-weight: 800;
  letter-spacing: 0;
}

.featurePanel,
.paytablePanel {
  padding: 14px 18px;
  border: 1px solid rgba(255, 211, 96, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(34, 18, 12, 0.76), rgba(5, 8, 9, 0.74)),
    rgba(3, 6, 7, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 169, 0.15),
    0 10px 26px rgba(0, 0, 0, 0.3);
}

.paytableList {
  display: grid;
  gap: 14px;
}

.featurePanel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.featurePanel p {
  margin: 0;
  max-width: 660px;
  color: #f8e5bd;
  font-size: 14px;
  line-height: 1.45;
}

.panelKicker {
  display: block;
  margin-bottom: 6px;
  color: #79f0d7;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bonusAwards {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 8px;
}

.bonusAwards strong {
  display: grid;
  place-items: center;
  min-height: 62px;
  border: 1px solid rgba(139, 255, 214, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(119, 240, 213, 0.2), transparent 58%),
    rgba(0, 0, 0, 0.44);
  color: #fff0ad;
  font-size: 25px;
  line-height: 1;
  box-shadow: inset 0 0 18px rgba(119, 240, 213, 0.1);
}

.bonusAwards span {
  color: #79f0d7;
  font-size: 13px;
  font-weight: 900;
}

.paytablePanel {
  padding: 10px 14px;
}

.payHeader,
.payRow {
  display: grid;
  grid-template-columns: 72px minmax(128px, 1fr) repeat(3, minmax(70px, 0.45fr));
  align-items: center;
  gap: 10px;
}

.payHeader {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  padding: 0 10px 6px;
  color: #79f0d7;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.payHeader div {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(70px, 0.45fr));
  align-items: center;
  gap: 10px;
}

.payHeader strong {
  color: #fff0ad;
  text-align: right;
}

.payRows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.payRow {
  min-height: 54px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 226, 143, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(118, 246, 213, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.075);
  font-size: 14px;
}

.payRow span {
  color: #f9e3b0;
  font-weight: 900;
}

.payRow img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.55));
}

.payRow strong {
  color: #fff2ad;
  font-size: 13px;
  text-align: right;
}

.paytableViewer {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.paytableStage {
  position: relative;
  width: min(1056px, calc(94vw - 28px));
  aspect-ratio: 1056 / 600;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 196, 67, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(24, 14, 7, 0.96), rgba(9, 12, 12, 0.98) 16%, rgba(10, 13, 13, 0.98) 84%, rgba(24, 14, 7, 0.96)),
    #101313;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.54),
    0 0 0 1px rgba(255, 226, 143, 0.22);
}

.paytableOverlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.paytableBuiltPage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 2px solid rgba(166, 103, 29, 0.95);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 190, 47, 0.16), transparent 10%),
    radial-gradient(circle at 86% 18%, rgba(255, 190, 47, 0.16), transparent 10%),
    linear-gradient(180deg, rgba(45, 33, 20, 0.92), rgba(7, 10, 11, 0.98) 18%, rgba(7, 10, 11, 0.98) 82%, rgba(45, 30, 16, 0.94)),
    #0a0d0e;
  box-shadow:
    inset 0 0 0 10px rgba(4, 5, 5, 0.72),
    inset 0 0 0 12px rgba(207, 139, 39, 0.42),
    inset 0 0 44px rgba(0, 0, 0, 0.78);
}

.paytableBuiltPage::before,
.paytableBuiltPage::after {
  content: "";
  position: absolute;
  top: 92px;
  bottom: 55px;
  width: 58px;
  background: url("../assets/paytable/paytable_side_pipe.png") center / 100% 100% no-repeat;
  filter:
    drop-shadow(0 6px 8px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 9px rgba(255, 181, 42, 0.25));
}

.paytableBuiltPage::before {
  left: 42px;
}

.paytableBuiltPage::after {
  right: 42px;
}

.paytablePipe {
  position: absolute;
  left: 48px;
  right: 48px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d5993e, #3b1c0a 48%, #110807);
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 151, 0.42),
    0 5px 13px rgba(0, 0, 0, 0.62);
}

.paytablePipeTop {
  top: 19px;
}

.paytablePipeBottom {
  bottom: 24px;
}

.paytableTitlePlate {
  position: absolute;
  left: 24%;
  top: 5.2%;
  width: 52%;
  height: 14%;
  border: 2px solid rgba(201, 137, 42, 0.96);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(167, 105, 34, 0.94), rgba(58, 28, 11, 0.96) 26%, rgba(13, 17, 17, 0.98) 54%, rgba(117, 70, 23, 0.96));
  box-shadow:
    inset 0 0 0 3px rgba(27, 13, 6, 0.8),
    inset 0 0 22px rgba(255, 187, 45, 0.22),
    0 9px 18px rgba(0, 0, 0, 0.55);
}

.paytablePayItem,
.paytableFeatureSymbol,
.paytableStepCard {
  position: absolute;
}

.paytablePayItem {
  display: grid;
  grid-template-columns: minmax(0, 0.43fr) minmax(0, 0.57fr);
  gap: 12px;
  align-items: stretch;
}

.paytablePayItem.low {
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: 10px;
}

.paytableDivider {
  position: absolute;
  left: 50%;
  top: 22%;
  bottom: 11%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 202, 95, 0.35), transparent);
  box-shadow: 0 0 18px rgba(255, 181, 42, 0.22);
}

.paytableSymbolFrame,
.paytablePayoutGrid,
.paytableAwardCard,
.paytableStepCard,
.paytableStatsPanel,
.paytableWaysDiagram,
.paytableWaysNote,
.paytableNotePanel {
  border: 2px solid rgba(190, 124, 35, 0.94);
  background:
    linear-gradient(180deg, rgba(38, 23, 11, 0.98), rgba(8, 13, 14, 0.98));
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.65),
    inset 0 0 17px rgba(255, 187, 42, 0.11),
    0 7px 13px rgba(0, 0, 0, 0.48);
}

.paytableSymbolFrame {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border-radius: 8px;
  padding: 8px;
}

.paytablePayItem.low .paytableSymbolFrame {
  padding: 11px;
}

.paytableSymbolFrame.large {
  width: 100%;
  height: 100%;
  padding: 18px;
}

.paytableSymbolFrame.small {
  width: 92%;
  height: 62%;
  margin: 11px auto 2px;
  padding: 4px;
}

.paytablePayoutGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 36% 64%;
  overflow: hidden;
  border-radius: 7px;
}

.paytablePayoutGrid > * {
  border-left: 1px solid rgba(206, 139, 41, 0.78);
}

.paytablePayoutGrid > *:nth-child(3n + 1) {
  border-left: 0;
}

.paytableGridHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(206, 139, 41, 0.78);
  background: linear-gradient(180deg, rgba(120, 70, 20, 0.9), rgba(26, 15, 8, 0.92));
}

.paytableGridValue {
  position: relative;
  display: grid;
  place-items: center;
  color: #fff0ae;
  font-size: clamp(12px, 1.72vw, 21px);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 3px 0 rgba(80, 24, 10, 0.96),
    0 0 12px rgba(255, 194, 67, 0.38),
    0 0 3px rgba(0, 0, 0, 0.9);
}

.paytablePayItem.premium .paytableGridValue {
  font-size: clamp(15px, 1.95vw, 23px);
}

.paytableAwardCard {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff0ae;
  font-size: clamp(17px, 2.34vw, 30px);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 3px 0 rgba(80, 24, 10, 0.96),
    0 0 12px rgba(255, 194, 67, 0.38),
    0 0 3px rgba(0, 0, 0, 0.9);
}

.paytableNotePanel {
  position: absolute;
  left: 15%;
  bottom: 7.6%;
  width: 70%;
  margin: 0;
  padding: 11px 18px;
  border-radius: 8px;
  color: #fff0ae;
  font-size: clamp(13px, 1.85vw, 22px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 3px 0 rgba(80, 24, 10, 0.96);
}

.paytableStepCard {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 66px;
  align-items: center;
  border-radius: 8px;
}

.paytableBuiltPage-sticky .paytableFeatureSymbol .paytableSymbolFrame.large {
  padding: 10px;
}

.paytableBuiltPage-sticky .paytableStepCard .paytableSymbolInline {
  transform: scale(1.15);
}

.paytableBuiltPage-sticky .paytableStepCard .paytableSymbolInline.board {
  transform: scale(1.32);
}

.paytableStepCard strong {
  color: #fff0ae;
  font-size: clamp(12px, 1.58vw, 19px);
  font-weight: 950;
  line-height: 0.95;
  text-align: center;
  text-shadow:
    0 3px 0 rgba(80, 24, 10, 0.96),
    0 0 10px rgba(255, 194, 67, 0.34);
}

.paytableStepCard strong span {
  display: block;
}

.paytableStepArrow {
  position: absolute;
  top: 43%;
  right: -28px;
  color: #ffd05e;
  font-size: 25px;
  font-weight: 950;
  text-shadow: 0 0 12px rgba(255, 191, 48, 0.55);
}

.paytableWaysDiagram {
  position: absolute;
  left: 27%;
  top: 22%;
  width: 46%;
  height: 43%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(190, 124, 35, 0.94);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 199, 57, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(38, 23, 11, 0.94), rgba(8, 13, 14, 0.97));
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.65),
    inset 0 0 24px rgba(255, 187, 42, 0.13),
    0 10px 18px rgba(0, 0, 0, 0.5);
}

.paytableWaysGraphic {
  display: block;
  width: min(310px, 72%);
  max-height: 74%;
  object-fit: contain;
  transform: translateY(-3%);
  filter:
    drop-shadow(0 12px 12px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 16px rgba(255, 184, 40, 0.24));
}

.paytableWaysNote {
  position: absolute;
  bottom: 8%;
  width: 34%;
  height: 96px;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 18px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff0ae;
  font-size: clamp(14px, 1.78vw, 21px);
  font-weight: 900;
  line-height: 1.04;
  text-align: center;
  text-shadow: 0 3px 0 rgba(80, 24, 10, 0.96);
}

.paytableWaysNoteLeft {
  left: 12%;
}

.paytableWaysNoteRight {
  right: 12%;
}

.paytableStatsPanel {
  position: absolute;
  left: 21%;
  top: 25%;
  width: 58%;
  display: grid;
  gap: 10px;
  padding: 20px 26px;
  border-radius: 8px;
}

.paytableStatRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  color: #ffe998;
  font-size: clamp(14px, 1.78vw, 22px);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 3px 0 rgba(80, 24, 10, 0.96),
    0 0 11px rgba(255, 194, 67, 0.34);
}

.paytableStatRow em {
  color: #fff4ba;
  font-style: normal;
}

.paytableText {
  position: absolute;
  display: grid;
  place-items: center;
  color: #ffe998;
  font-weight: 950;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 3px 0 rgba(85, 25, 8, 0.98),
    0 0 13px rgba(255, 188, 45, 0.52),
    0 0 4px rgba(0, 0, 0, 0.94);
  white-space: normal;
}

.paytableText span {
  display: block;
}

.paytableText.title {
  font-size: clamp(25px, 4vw, 48px);
  letter-spacing: 0;
}

.paytableText.spriteTitle {
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: none;
}

.paytableTitleGlyph,
.paytableTitleNumberGlyph,
.paytableColumnNumberGlyph {
  display: inline-block;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  filter:
    drop-shadow(0 4px 0 rgba(84, 25, 8, 0.9))
    drop-shadow(0 0 10px rgba(255, 190, 49, 0.44));
}

.paytableTitleGlyph {
  background-image: url("../assets/letters_keyed.png");
}

.paytableTitleNumberGlyph {
  background-image: url("../assets/numbers_keyed.png?v=paytable-title-key-2");
}

.paytableColumnSprite {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paytableColumnNumberGlyph {
  background-image: url("../assets/numbers_keyed.png?v=paytable-title-key-2");
}

.paytableTitleSpace {
  display: inline-block;
  flex: 0 0 auto;
}

.paytableTitleFallback {
  display: inline-grid;
  place-items: center;
  color: #ffe998;
  font-family: Impact, "Arial Black", sans-serif;
  font-weight: 950;
  line-height: 1;
  text-shadow:
    0 4px 0 rgba(84, 25, 8, 0.95),
    0 0 10px rgba(255, 190, 49, 0.44);
}

.paytableText.column {
  color: #fff0ae;
  font-size: clamp(16px, 2.15vw, 27px);
}

.paytableText.award {
  color: #fff0ae;
  font-size: clamp(17px, 2.45vw, 30px);
  line-height: 1;
}

.paytableText.step {
  color: #ffe998;
  font-size: clamp(11px, 1.72vw, 20px);
  line-height: 0.95;
}

.paytableText.note {
  color: #fff0ae;
  font-size: clamp(13px, 1.95vw, 23px);
  line-height: 1.08;
  text-transform: none;
}

.paytableText.stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  color: #ffe998;
  font-size: clamp(13px, 1.85vw, 22px);
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}

.paytableText.stat em {
  color: #fff4ba;
  font-style: normal;
  text-align: right;
  white-space: nowrap;
}

.paytableSymbol {
  position: absolute;
  object-fit: contain;
  filter:
    drop-shadow(0 8px 9px rgba(0, 0, 0, 0.68))
    drop-shadow(0 0 10px rgba(255, 203, 78, 0.22));
}

.paytableSymbolInline {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.paytableVideoSymbol {
  object-fit: unset;
}

.paytableSymbol.letter,
.paytableSymbolInline.letter {
  transform: scale(0.92);
}

.paytableSymbol.board,
.paytableSymbolInline.board {
  filter:
    drop-shadow(0 7px 8px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 8px rgba(255, 193, 49, 0.16));
}

.paytablePayoutValue {
  position: absolute;
  display: grid;
  place-items: center;
  width: 5.75%;
  height: 4.667%;
  color: #fff0ae;
  font-size: clamp(12px, 1.85vw, 21px);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 3px 0 rgba(80, 24, 10, 0.96),
    0 0 12px rgba(255, 194, 67, 0.38),
    0 0 3px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

.paytablePayoutValue.splitMultiplier {
  display: block;
  position: absolute;
  padding: 0;
  font-size: clamp(14px, 2vw, 23px);
  line-height: 0.88;
  white-space: normal;
}

.paytableGridValue.splitMultiplier {
  display: block;
  position: relative;
  padding: 0;
  line-height: 0.88;
  white-space: normal;
}

.paytablePayoutAmount {
  display: block;
  position: absolute;
  top: 34%;
  left: 0;
  width: 100%;
  max-width: 100%;
  transform: translateY(-50%) scaleX(0.92);
}

.paytablePayoutX {
  display: block;
  position: absolute;
  top: 62%;
  left: 0;
  width: 100%;
  font-size: 1.32em;
  line-height: 0.78;
  transform: translateY(-50%) scaleX(1.08);
}

.paytableControls {
  display: grid;
  grid-template-columns: 44px auto 44px;
  align-items: center;
  gap: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 211, 96, 0.24);
  border-radius: 8px;
  background: rgba(4, 6, 7, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 238, 169, 0.12);
}

.paytableNavButton,
.paytableDot {
  cursor: pointer;
}

.paytableNavButton {
  width: 44px;
  height: 34px;
  border: 1px solid rgba(255, 226, 143, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(117, 59, 20, 0.98), rgba(35, 15, 9, 0.96));
  color: #fff0ae;
  font-size: 30px;
  font-weight: 950;
  line-height: 0.8;
  text-shadow: 0 2px 0 rgba(80, 24, 10, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 238, 169, 0.2);
}

.paytableNavButton:hover {
  border-color: rgba(121, 240, 215, 0.72);
  color: #79f0d7;
}

.paytableDots {
  display: flex;
  gap: 9px;
}

.paytableDot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid rgba(255, 226, 143, 0.42);
  border-radius: 50%;
  background: rgba(23, 14, 9, 0.96);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.34);
}

.paytableDot.active {
  border-color: rgba(255, 244, 176, 0.96);
  background: radial-gradient(circle, #fff3ac 0 28%, #ffad23 42%, #733113 100%);
  box-shadow:
    0 0 12px rgba(255, 189, 47, 0.68),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

@media (max-width: 780px) {
  .payRows,
  .featurePanel,
  .payHeader {
    grid-template-columns: 1fr;
  }

  .payHeader div:nth-child(2) {
    display: none;
  }

  .bonusAwards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dialogArt {
    padding: 26px 18px;
  }
}

@media (max-width: 900px), (max-height: 600px) {
  .testControls .testMenuButton {
    --test-menu-size: clamp(28px, min(7vw, 12.44vh), 38px);
  }

  .balanceMeter strong,
  .betMeter strong,
  .winMeter strong {
    overflow-x: clip;
    overflow-y: visible;
    padding-inline: 0;
    font-size: var(--meter-fit-font-size, clamp(7px, min(1.45cqw, 2.58vh), 20px));
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-overflow: clip;
  }
}

/* Mobile cabinet fit: the authored 1672x941 scene remains one coherent
   canvas, while the runtime reserves browser chrome/notch safe areas. */
.orientationHint {
  display: none;
}

@media (orientation: landscape) and (max-height: 430px),
       (orientation: landscape) and (max-width: 700px) {
  .imageButton:not(.spinButton)::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100%, 48px);
    height: max(100%, 48px);
    background: transparent;
    transform: translate(-50%, -50%);
  }

  .autoSpinChoice,
  .gameMenuPanel {
    bottom: 8%;
    width: 38%;
  }

  .gameMenuPanel {
    left: 0.5%;
  }

  .autoSpinChoice {
    right: 0.5%;
  }

  .autoSpinChoice button,
  .menuToggleHit {
    min-height: 44px;
  }

  .menuToggleHit {
    height: 13.6%;
  }

  .menuSoundHit {
    top: 42.8%;
  }

  .menuFastSpinHit {
    top: 57.9%;
  }

  .menuToggleHit::after {
    inset: auto 0;
    top: 23.5%;
    height: 53%;
  }

  .menuToggleHit::before {
    top: 30%;
    width: 14%;
  }

  .testControls .testMenuButton {
    --test-menu-size: 44px;
  }

  dialog {
    width: min(1110px, calc(100vw - var(--slot-safe-left) - var(--slot-safe-right) - 12px));
    max-height: calc(100dvh - var(--slot-safe-top) - var(--slot-safe-bottom) - 12px);
  }

  .dialogArt {
    max-height: calc(100dvh - var(--slot-safe-top) - var(--slot-safe-bottom) - 12px);
  }

  .closeButton,
  .paytableNavButton {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Portrait keeps the original illustrated cabinet, control sprites and meters.
   The native canvas composes the original factory scene above and behind them. */
#portraitCanvas,
#portraitPanelBackdrop,
.portraitOnly { display: none; }

@media (orientation: portrait) {
  body {
    background:
      radial-gradient(ellipse at center, rgba(69, 46, 27, .32), rgba(4, 9, 12, .94) 85%),
      url("../assets/mobile/original/panel-texture.png") center / 480px auto repeat;
  }
  #gameShell {
    --portrait-spin-size: clamp(84px, 24cqw, 120px);
    --portrait-control-bottom-fallback: 26px;
    --portrait-bet-bottom: calc(var(--portrait-control-bottom, var(--portrait-control-bottom-fallback)) + var(--portrait-spin-size) + 18px);
    --portrait-reel-bottom: calc(var(--portrait-reel-top, 30%) + var(--portrait-reel-height, 50.4cqw));
    aspect-ratio: auto;
    visibility: visible;
    pointer-events: auto;
    background: #111719;
    box-shadow: 0 14px 45px #000c, 0 0 26px #ad682322;
  }
  #gameCanvas, #transitionCanvas { visibility: hidden; }
  #portraitCanvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .portraitOnly { display: block; }
  .footerHud { z-index: 3; }
  .meter {
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent center / 100% 100% no-repeat;
    box-shadow: none;
    overflow: visible;
  }
  .meter > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .meter strong {
    position: absolute;
    top: 68%;
    transform: translateY(-50%);
    left: 11%;
    width: 78%;
    max-width: 78%;
    font-size: var(--meter-fit-font-size, clamp(18px, 5.4cqw, 30px));
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: #fff4b8;
    text-shadow: 0 2px 4px #000;
  }
  /* Centers and bounds are measured from the painted black readout interiors. */
  .balanceMeter, .winMeter, .betMeter, .freeMeter, .bonusTotalMeter {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: clamp(3px, .8cqw, 6px); min-height: 0; padding: 0; background: none;
  }
  .balanceMeter, .winMeter {
    top: calc(var(--portrait-console-top) + 13.8671875cqw);
    width: 38.18359375%; height: 16.50390625cqw;
  }
  .balanceMeter { left: 7.71484375%; }
  .winMeter { left: 54.1015625%; right: auto; }
  .balanceMeter > span, .winMeter > span, .betMeter > span,
  .freeMeter > span, .bonusTotalMeter > span {
    position: static; flex: none; width: 90%; height: auto;
    clip: auto; overflow: visible; text-align: center;
    color: #e9d3a4; font-size: clamp(10px, 2.8cqw, 18px);
    font-weight: 800; line-height: 1.15; letter-spacing: .06em;
    text-indent: .06em; text-transform: uppercase;
  }
  .balanceMeter strong, .winMeter strong, .betMeter strong,
  .freeMeter strong, .bonusTotalMeter strong {
    position: static; flex: none; transform: none; width: 90%; max-width: 90%;
    text-align: center; line-height: 1.1; letter-spacing: 0;
  }
  .balanceMeter strong, .winMeter strong {
    font-size: var(--meter-fit-font-size, clamp(20px, 6cqw, 38px));
  }
  .winMeter > span, .winMeter strong { color: #ffe66d; }
  .betMeter {
    top: calc(var(--portrait-console-bottom-top) + 7.32421875cqw); bottom: auto;
    left: 27.44140625%; width: 27.24609375%; height: 8.7890625cqw; gap: 1px;
  }
  .betMeter > span { font-size: clamp(8px, 2.25cqw, 14px); }
  .betMeter strong { font-size: var(--meter-fit-font-size, clamp(14px, 4.4cqw, 27px)); }
  .freeMeter, .bonusTotalMeter {
    top: calc(var(--portrait-bonus-top) + var(--portrait-bonus-inset-y));
    width: calc(var(--portrait-bonus-width) - 2 * var(--portrait-bonus-inset-x));
    height: calc(var(--portrait-bonus-height) - 2 * var(--portrait-bonus-inset-y));
    gap: clamp(2px, .64cqw, 3px); visibility: hidden;
  }
  .freeMeter { left: calc(var(--portrait-bonus-free-x) + var(--portrait-bonus-inset-x)); }
  .bonusTotalMeter { left: calc(var(--portrait-bonus-total-x) + var(--portrait-bonus-inset-x)); right: auto; }
  .freeMeter > span, .bonusTotalMeter > span {
    color: #e9d3a4; font-size: clamp(9px, 2.3cqw, 13px); line-height: 1.05;
  }
  .freeMeter strong, .bonusTotalMeter strong {
    color: #ffe66d; font-size: var(--meter-fit-font-size, clamp(16px, 4.1cqw, 24px));
    line-height: 1.05;
  }
  #gameShell.mobileBonusMetersVisible .freeMeter,
  #gameShell.mobileBonusMetersVisible .bonusTotalMeter { visibility: visible; }
  .messageBar {
    display: block; position: absolute;
    top: 0; left: 0; right: auto; width: 1px; height: 1px;
    padding: 0; margin: -1px; border: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%);
    white-space: nowrap; pointer-events: none;
  }
  .controls { z-index: 4; }
  #gameShell .imageButton {
    min-width: 44px;
    min-height: 44px;
    opacity: 1;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    padding: 0;
    background-color: transparent;
    background-image: var(--portrait-button-art);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    box-shadow: none;
    filter: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  #gameShell .imageButton:active:not(:disabled) { transform: none; }
  #gameShell .imageButton:disabled { opacity: 0.45; cursor: default; filter: saturate(0.55); }
  button:focus-visible,
  #gameShell .imageButton:focus-visible,
  .menuHit:focus-visible,
  .autoSpinChoice button:focus-visible { outline: 3px solid #fff4c7; outline-offset: 2px; }
  .mobileControl { display: none; }
  .menuButton, .menuButton:active {
    --portrait-button-art: url("../assets/mobile/original/menu-normal.png");
    left: 6%; top: auto;
    bottom: calc(var(--portrait-control-bottom, var(--portrait-control-bottom-fallback)) + 16px);
    width: 58px; height: 58px;
  }
  .menuButton:hover { --portrait-button-art: url("../assets/menubuttonover.png"); }
  .menuButton:active { --portrait-button-art: url("../assets/menubuttonpress.png"); }
  .autoButton, .autoButton:active {
    --portrait-button-art: url("../assets/mobile/original/auto-normal.png");
    left: auto; right: 6%; top: auto;
    bottom: calc(var(--portrait-control-bottom, var(--portrait-control-bottom-fallback)) + 16px);
    width: 58px; height: 58px;
  }
  .autoButton:hover { --portrait-button-art: url("../assets/autoplaybuttonover.png"); }
  .autoButton:active { --portrait-button-art: url("../assets/autoplaybuttonpress.png"); }
  .autoButton.active, .autoButton.active:hover { --portrait-button-art: url("../assets/autoplaybuttonactive.png"); }
  .betDownButton, .betUpButton { top: auto; bottom: calc(var(--portrait-bet-bottom) + 3px); width: 48px; height: 48px; }
  .betDownButton { --portrait-button-art: url("../assets/mobile/original/bet-down-normal.png"); left: calc(50% - 113px); }
  .betDownButton:hover { --portrait-button-art: url("../assets/betdownbuttonover.png"); }
  .betDownButton:active { --portrait-button-art: url("../assets/betdownbuttonpress.png"); }
  .betUpButton { --portrait-button-art: url("../assets/mobile/original/bet-up-normal.png"); left: calc(50% + 65px); }
  .betUpButton:hover { --portrait-button-art: url("../assets/betupbuttonover.png"); }
  .betUpButton:active { --portrait-button-art: url("../assets/betupbuttonpress.png"); }
  .maxBetButton, .maxBetButton:active {
    --portrait-button-art: url("../assets/mobile/portrait-max-bet-original-normal.webp");
    top: auto; left: auto; right: 3.5%;
    bottom: calc(var(--portrait-bet-bottom) + 5px);
    width: 58px; height: 44px;
  }


  #gameShell .spinButton {
    --portrait-button-art: url("../assets/mobile/original/spin-normal.png");
    top: auto;
    left: calc(50% - var(--portrait-spin-size) / 2);
    bottom: var(--portrait-control-bottom, var(--portrait-control-bottom-fallback));
    width: var(--portrait-spin-size);
    height: var(--portrait-spin-size);
    animation: none;
  }
  #gameShell .spinButton:hover { --portrait-button-art: url("../assets/spinbuttonover.png"); }
  #gameShell .spinButton:not(.spinStopping):active { --portrait-button-art: url("../assets/spinbuttonpress.png"); }
  #gameShell .spinButton.spinStopping,
  #gameShell .spinButton.spinStopping:hover { --portrait-button-art: url("../assets/stopbuttonover.png"); }
  #gameShell .spinButton.spinStopping:active { --portrait-button-art: url("../assets/stopbuttonpress.png"); }
  /* The 177px stop sprites share the same white-square center (89,85.5). */
  #gameShell .spinButton.autoplayRunning::after {
    left: calc(50% + var(--art-width) * .00282486);
    top: calc(50% - var(--art-height) * .01694915); right: auto;
    width: calc(var(--art-width) * .37288136);
    height: calc(var(--art-height) * .38983051);
    display: grid; place-items: center;
    transform: translate(-50%, -50%); padding: 0;
    border: 0; border-radius: 0; background: none;
    color: #151c20; font-size: calc(var(--art-width) * .27);
    line-height: 1; font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 0 #fff9cd99;
  }
  #gameShell .spinButton.autoplayRunning.autoplayLargeCount::after {
    font-size: calc(var(--art-width) * .19);
  }
  .testControls { top: auto; bottom: calc(var(--portrait-bet-bottom) + 1px); left: 3.5%; right: auto; z-index: 5; align-items: flex-start; }
  .testControls .testMenuButton { --test-menu-size: 44px; }
  .testMenuPanel { position: absolute; left: 0; bottom: 54px; }
  .testMenuPanel button { min-height: 44px; }
  /* Dedicated portrait artwork. Coordinates register to each1024×1280 panel. */
  #portraitPanelBackdrop {
    position: absolute; inset: 0; z-index: 11; display: block;
    background: #020708cf; pointer-events: auto; touch-action: none;
  }
  #portraitPanelBackdrop[hidden] { display: none; }
  #gameShell .autoSpinChoice, #gameShell .gameMenuPanel, #gameShell .gameMenuPanel.allOn,
  #gameShell .testMenuPanel {
    --panel-close-x: 81.25%; --panel-close-y: 14.8046875%;
    position: absolute; z-index: 12; left: 50%; right: auto; top: 50%; bottom: auto;
    width: min(calc(100% - 20px), 430px, calc((var(--slot-cabinet-height) - 24px) * .8));
    height: auto; aspect-ratio: 4 / 5; min-height: 0;
    display: block; padding: 0; border: 0; border-radius: 5%;
    container-type: inline-size; isolation: isolate; overflow: visible;
    background: url('../assets/mobile/portrait-settings.webp') center / 100% 100% no-repeat;
    box-shadow: none; filter: drop-shadow(0 12px 22px #000a);
    transform: translate(-50%, calc(-50% + 20px));
    transition: transform 220ms cubic-bezier(.2,.7,.2,1), opacity 160ms ease;
  }
  #gameShell .autoSpinChoice {
    --panel-close-x: 84.521484375%; --panel-close-y: 14.453125%;
    background-image: url('../assets/mobile/portrait-autoplay.webp');
  }
  #gameShell .autoSpinChoice.open, #gameShell .gameMenuPanel.open,
  #gameShell .testMenuPanel { transform: translate(-50%, -50%); }
  #gameShell .autoSpinChoice[hidden], #gameShell .gameMenuPanel[hidden],
  #gameShell .testMenuPanel[hidden] { display: none; }
  #gameShell .mobileSheetHeader {
    position: absolute; inset: 0; display: block; pointer-events: none;
  }
  .portraitPanelTitle {
    position: absolute; left: 12.5%; top: 14.6%; width: 56%;
    transform: translateY(-50%); text-align: left;
  }
  .portraitPanelTitle > span {
    display: block; margin-bottom: 5px; font-size: clamp(9px, 2.6cqw, 12px);
    font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #c9a578;
  }
  #gameShell .mobileSheetHeader h2 {
    margin: 0; color: #fff0b7; font-family: Impact, 'Arial Black', sans-serif;
    font-size: clamp(22px, 8cqw, 34px); line-height: 1; letter-spacing: .025em;
    text-transform: uppercase; text-shadow: 0 2px 2px #000;
  }
  #gameShell .mobileSheetHeader button {
    position: absolute; left: calc(var(--panel-close-x) - 22px); top: calc(var(--panel-close-y) - 22px);
    display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px;
    padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none;
    color: #ffe6b0; cursor: pointer; overflow: visible; pointer-events: auto;
  }
  #gameShell .mobileSheetHeader button::before, #gameShell .mobileSheetHeader button::after { display: none; }
  .mobileSheetHeader button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
  #gameShell .gameMenuPanel .menuHit, #gameShell .testMenuPanel > button {
    position: absolute; left: 9.08203125%; right: auto; width: 81.93359375%;
    height: 12.109375%; min-height: 44px; padding: 0 4cqw;
    display: flex; align-items: center; justify-content: flex-start; gap: 3cqw;
    border: 0; border-radius: 12px; background: none; box-shadow: none;
    color: #fff0c6; font-size: clamp(13px, 3.8cqw, 17px); font-weight: 800;
    text-align: left; text-shadow: 0 1px 3px #000; cursor: pointer;
  }
  #gameShell .menuPaytableHit, #gameShell #instantTeaseButton { top: 28.28125%; }
  #gameShell .menuSoundHit, #gameShell #instantSmallWinButton { top: 43.5546875%; }
  #gameShell .menuFastSpinHit, #gameShell #instantBonusButton { top: 58.9453125%; }
  #gameShell #mobileTestMenuButton, #gameShell #instantBigWinButton { top: 74.5703125%; }
  .portraitRowIcon { flex: 0 0 auto; width: 6cqw; height: 6cqw; max-width: 25px; max-height: 25px; fill: none; stroke: #d6b57c; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .portraitRowLabel { display: block; min-width: 0; line-height: 1.15; }
  .portraitRowLabel small { display: block; margin-top: 4px; color: #c0ae93; font-size: clamp(9px, 2.8cqw, 12px); font-weight: 500; }
  .menuToggleHit .portraitRowLabel { padding-right: 48px; }
  .mobileMenuArrow { margin-left: auto; color: #e7c489; font-size: 28px; line-height: 1; }
  #gameShell .menuToggleHit::after {
    inset: auto 4cqw auto auto; top: 50%; transform: translateY(-50%);
    width: 54px; height: 27px; box-sizing: border-box; padding: 0 18px 0 0;
    border: 1px solid #b38c45; border-radius: 15px; font-size: 9px; letter-spacing: .03em;
    box-shadow: inset 0 2px 4px #0009, 0 1px 1px #ffd87a33;
  }
  #gameShell .menuToggleHit.isOn::after { background: #185f2d; color: #e2ffd4; }
  #gameShell .menuToggleHit.isOff::after { padding: 0 0 0 18px; background: #372d27; color: #d4c3a5; }
  #gameShell .menuToggleHit::before {
    display: block; position: absolute; left: auto; right: calc(4cqw + 4px); top: calc(50% - 9px);
    width: 18px; height: 18px; border-radius: 50%; z-index: 1;
    background: radial-gradient(circle at 35% 25%, #ffe1a1, #bf863d 64%, #62401f);
    box-shadow: inset 0 1px 1px #fff6ca88, 0 1px 3px #000b;
  }
  #gameShell .menuToggleHit.isOff::before { left: auto; right: calc(4cqw + 32px); }
  #gameShell .mobileSheetIntro {
    position: absolute; top: 24.9%; left: 9%; width: 82%; height: 5%; display: grid; place-items: center;
    margin: 0; color: #d9c8ab; font-size: clamp(11px, 3.2cqw, 14px); line-height: 1.2; text-align: center;
  }
  #gameShell .autoSpinChoice button[data-spins] {
    position: absolute; display: grid; place-items: center;
    width: 39.74609375%; height: 16.015625%; min-height: 44px;
    border: 0; border-radius: 10px; padding: 0; overflow: visible;
    background: none; box-shadow: none; color: #fff0b7;
    font-size: clamp(25px, 9.8cqw, 40px); font-weight: 900; line-height: 1;
    text-shadow: 0 2px 3px #000;
  }
  #gameShell .autoSpinChoice button[data-spins]::before { display: none; }
  #gameShell .autoSpinChoice button[data-spins='10'], #gameShell .autoSpinChoice button[data-spins='50'] { left: 8.69140625%; }
  #gameShell .autoSpinChoice button[data-spins='25'], #gameShell .autoSpinChoice button[data-spins='100'] { left: 51.5625%; }
  #gameShell .autoSpinChoice button[data-spins='10'], #gameShell .autoSpinChoice button[data-spins='25'] { top: 31.953125%; }
  #gameShell .autoSpinChoice button[data-spins='50'], #gameShell .autoSpinChoice button[data-spins='100'] { top: 50.7421875%; }
  #gameShell .autoSpinChoice button[data-spins='500'] { left: 8.88671875%; top: 69.8828125%; width: 82.2265625%; height: 13.28125%; }
  #gameShell .autoSpinChoice button[data-spins] > span { display: flex; flex-direction: column; align-items: center; gap: 5px; }
  #gameShell .autoSpinChoice button[data-spins] small { margin: 0; color: #c9b186; font-size: clamp(9px, 2.6cqw, 12px); letter-spacing: .14em; font-weight: 700; }
  .portraitPanelHint { position: absolute; left: 10%; top: 85.8%; width: 80%; margin: 0; text-align: center; color: #c2b299; font-size: clamp(9px, 2.7cqw, 12px); }
  #gameShell .menuHit:hover, #gameShell .autoSpinChoice button[data-spins]:hover,
  #gameShell .testMenuPanel > button:hover { background: #ffcc7310; filter: none; }
  #gameShell .menuHit:active, #gameShell .autoSpinChoice button[data-spins]:active,
  #gameShell .testMenuPanel > button:active { background: #ffcc7320; }
  #gameShell .menuHit:focus-visible, #gameShell .autoSpinChoice button:focus-visible,
  #gameShell .testMenuPanel button:focus-visible { outline: 2px solid #ffe1a2; outline-offset: -3px; }
  #gameShell .testMenuPanel .mobileSheetHeader h2 { font-size: clamp(20px, 6.5cqw, 28px); }
  dialog {
    width: calc(100vw - var(--slot-safe-left) - var(--slot-safe-right) - 18px);
    max-width: 640px;
    max-height: calc(var(--slot-viewport-height, 100dvh) - var(--slot-safe-top) - var(--slot-safe-bottom) - 24px);
    border-radius: 15px;
  }

  .dialogArt {
    max-height: calc(var(--slot-viewport-height, 100dvh) - var(--slot-safe-top) - var(--slot-safe-bottom) - 24px);
    padding: 60px 12px 14px;
    border-color: #a3773d;
    border-radius: 15px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    background: #11191a url("../assets/mobile/original/popup-panel.png") center / 100% 100% no-repeat;
  }

  .closeButton {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }

  .paytableViewer { gap: 14px; }
  .paytableStage { width: 100%; aspect-ratio: auto; overflow: visible; border-radius: 8px; }
  .paytableOverlay { position: static; pointer-events: auto; }

  .paytableBuiltPage {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 14px;
    overflow: visible;
    min-height: 360px;
    border: 1px solid #77502b;
    background: #0c1415 url("../assets/mobile/original/panel-texture.png") center / cover;
    box-shadow: inset 0 1px 0 #c48c3b40;
  }

  .paytableBuiltPage::before,
  .paytableBuiltPage::after,
  .paytablePipe,
  .paytableTitlePlate,
  .paytableDivider { display: none; }

  .paytableText.spriteTitle {
    position: static;
    width: auto !important;
    height: auto !important;
    min-height: 34px;
    margin: 0 0 5px;
    color: #ffe7a4;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 25px;
    line-height: 1.1;
    text-transform: none;
  }

  .paytableText.spriteTitle::before { content: attr(aria-label); }
  .paytableText.spriteTitle > * { display: none; }

  .paytablePayItem,
  .paytablePayItem.low {
    position: static;
    width: 100% !important;
    height: 96px !important;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 9px;
  }

  .paytableSymbolFrame { padding: 5px; }
  .paytablePayoutGrid { grid-template-rows: 32px 1fr; }
  .paytableGridHeader::before { content: attr(aria-label); color: #efcd87; font-size: 15px; font-weight: 900; }
  .paytableGridHeader > * { display: none; }
  .paytableGridValue,
  .paytablePayItem.premium .paytableGridValue { font-size: 16px; }
  .paytablePayoutAmount { top: 29%; }
  .paytablePayoutX { top: 67%; font-size: 1em; }

  .paytableFeatureSymbol {
    position: static;
    justify-self: center;
    width: 135px !important;
    height: 135px !important;
  }

  .paytableAwardStack { display: grid; gap: 8px; }
  .paytableAwardCard {
    position: static;
    width: 100% !important;
    height: auto !important;
    min-height: 48px;
    padding: 12px;
    font-size: 17px;
  }

  .paytableNotePanel,
  .paytableWaysNote {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 14px;
    font-size: 14px;
    line-height: 1.45;
  }

  .paytableStepRow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .paytableStepCard {
    position: static;
    width: auto !important;
    height: 152px !important;
    grid-template-rows: minmax(0, 1fr) 55px;
  }

  .paytableStepCard strong { padding: 0 4px; font-size: 11px; line-height: 1.15; }
  .paytableStepArrow { display: none; }
  .paytableWaysDiagram { position: static; width: auto; height: 180px; }
  .paytableStatsPanel { position: static; width: auto; padding: 14px 10px; gap: 17px; }
  .paytableStatRow { gap: 10px; font-size: 12px; line-height: 1.4; }
  .paytableControls { grid-template-columns: 44px minmax(0, 1fr) 44px; width: 100%; padding: 5px; gap: 5px; }
  .paytableNavButton { height: 44px; }
  .paytableDots { display: grid; grid-template-columns: repeat(3, 44px); justify-content: center; gap: 0; }
  .paytableDot { position: relative; width: 44px; height: 44px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .paytableDot::after { content: ""; position: absolute; top: 16px; left: 16px; width: 12px; height: 12px; border: 1px solid #ad7b3e; border-radius: 50%; background: #24170c; }
  .paytableDot.active { background: transparent; box-shadow: none; }
  .paytableDot.active::after { background: #f1c66a; box-shadow: 0 0 10px #f1bb4b80; }


  .preloaderPanel { width: 82%; }
  .preloaderPanel h1 { font-size: clamp(35px, 11cqw, 62px); }
  .preloaderTrack { height: 18px; }
  .preloaderPanel strong { margin-top: 18px; font-size: 30px; }
  .preloaderPanel span { font-size: 11px; }
}
@media (orientation: portrait) and (max-width: 359px) {
  .maxBetButton, .maxBetButton:active { right: 1.5%; }
  .testControls { left: 2%; }
  .betDownButton { left: calc(50% - 101px); width: 44px; }
  .betUpButton { left: calc(50% + 51px); width: 44px; }

  .mobileSheetHeader h2 { font-size: 21px; }
  .paytableBuiltPage { padding: 10px; }
  .paytablePayItem, .paytablePayItem.low { grid-template-columns: 65px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}



#portraitEffectsCanvas { display: none; }
@media (orientation: portrait) {
  #portraitEffectsCanvas { position: absolute; inset: 0; z-index: 8; display: block; width: 100%; height: 100%; pointer-events: none; }
}

/* Controls use the measured socket coordinates published by responsive-layout.js. */
@media (orientation: portrait) {
  /* Touch targets and artwork are independent:44px targets never enlarge a face. */
  #menuButton { --socket-x: var(--portrait-menu-x); --socket-y: var(--portrait-menu-y); --art-width: var(--portrait-menu-art-width); --art-height: var(--portrait-menu-art-height); }
  #autoButton { --socket-x: var(--portrait-auto-x); --socket-y: var(--portrait-auto-y); --art-width: var(--portrait-auto-art-width); --art-height: var(--portrait-auto-art-height); }
  #spinButton { --socket-x: var(--portrait-spin-x); --socket-y: var(--portrait-spin-y); --art-width: var(--portrait-spin-art-width); --art-height: var(--portrait-spin-art-height); }
  #betDownButton { --socket-x: var(--portrait-down-x); --socket-y: var(--portrait-down-y); --art-width: var(--portrait-down-art-width); --art-height: var(--portrait-down-art-height); }
  #betUpButton { --socket-x: var(--portrait-up-x); --socket-y: var(--portrait-up-y); --art-width: var(--portrait-up-art-width); --art-height: var(--portrait-up-art-height); }
  #maxBetButton { --socket-x: var(--portrait-max-x); --socket-y: var(--portrait-max-y); --art-width: var(--portrait-max-art-width); --art-height: var(--portrait-max-art-height); }
  #gameShell .imageButton, #gameShell .imageButton:active {
    left: calc(var(--socket-x) - max(44px, var(--art-width)) / 2);
    top: calc(var(--socket-y) - max(44px, var(--art-height)) / 2);
    right: auto; bottom: auto;
    width: max(44px, var(--art-width)); height: max(44px, var(--art-height));
    background: none; transform: none;
  }
  #gameShell .imageButton::before {
    content: ''; position: absolute; pointer-events: none;
    left: calc(50% - var(--art-width) / 2); top: calc(50% - var(--art-height) / 2);
    width: var(--art-width); height: var(--art-height);
    background: var(--portrait-button-art) center / 100% 100% no-repeat;
    border-radius: 50%;
  }
  #gameShell .maxBetButton:hover:not(:disabled) { --portrait-button-art: url("../assets/mobile/portrait-max-bet-original-hover.webp"); }
  #gameShell .maxBetButton:active:not(:disabled) { --portrait-button-art: url("../assets/mobile/portrait-max-bet-original-press.webp"); }
  #gameShell .maxBetButton::before {
    border-radius: calc(var(--art-width) / 11);
    filter: none;
  }
  #gameShell .maxBetButton:hover:not(:disabled)::before { filter: none; }
  #gameShell .maxBetButton:active:not(:disabled)::before { filter: none; }
  #gameShell .testControls { inset: 0; width: auto; height: auto; z-index: 10; pointer-events: none; }
  #gameShell.portraitTestPanelOpen .testControls { z-index: 12; }
  .testControls .testMenuButton { display: none; }
  #gameShell .testMenuPanel { pointer-events: auto; }

}


/* Console v2: all bounds use the measured black interiors of the painted artwork. */
@media (orientation: portrait) {
  #gameShell .balanceMeter, #gameShell .winMeter {
    top: calc(var(--portrait-meter-housing-top) + 8.59375cqw);
    width: 34.27734375%; height: 9.375cqw; gap: clamp(1.5px, .5cqw, 3px);
  }
  #gameShell .balanceMeter { left: 10.546875%; }
  #gameShell .winMeter { left: 55.2734375%; }
  #gameShell .balanceMeter > span, #gameShell .winMeter > span { font-size: clamp(8px, 2.3cqw, 12px); line-height: 1; }
  #gameShell .balanceMeter strong, #gameShell .winMeter strong { font-size: var(--meter-fit-font-size, clamp(16px, 5.1cqw, 27px)); line-height: 1; }
  #gameShell .betMeter {
    left: 38.037109375%; width: 23.92578125%;
    top: calc(var(--portrait-console-bottom-top) + 5.224609375cqw); height: 9.08203125cqw;
  }
  #gameShell .freeMeter { left: calc(var(--portrait-bonus-free-x) + var(--portrait-bonus-inset-x)); }
  #gameShell .bonusTotalMeter { left: calc(var(--portrait-bonus-total-x) + var(--portrait-bonus-inset-x)); }
  #turboButton {
    --socket-x: var(--portrait-turbo-x); --socket-y: var(--portrait-turbo-y);
    --art-width: var(--portrait-turbo-art-width); --art-height: var(--portrait-turbo-art-height);
    --portrait-button-art: url('../assets/mobile/portrait-turbo-off-inset.webp'); display: block;
  }
  #turboButton.isOn { --portrait-button-art: url('../assets/mobile/portrait-turbo-on-inset.webp'); }
  #gameShell .turboButton::before { border-radius: calc(var(--art-width) / 11); transition: filter .15s; }
  #gameShell .turboButton:hover::before { filter: brightness(1.1); }
  #gameShell .turboButton:active::before { filter: brightness(.84); }
}

/* Release menu: a dedicated three-row plate, with no developer slot. */
html[data-production="true"] #mobileTestMenuButton,
html[data-production="true"] .testControls { display: none !important; }
@media (orientation: portrait) {
  html[data-production="true"] #gameShell .gameMenuPanel,
  html[data-production="true"] #gameShell .gameMenuPanel.allOn { background: none; }
  html[data-production="true"] #gameShell .gameMenuPanel::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: url('../assets/mobile/portrait-settings-production.webp') center / 100% 100% no-repeat;
    clip-path: inset(1.2% 1.6% 4.9% round 5.8% / 4.65%);
  }
  html[data-production="true"] #gameShell .menuPaytableHit { top: 29%; height: 14.25%; }
  html[data-production="true"] #gameShell .menuSoundHit { top: 47.15%; height: 14.3%; }
  html[data-production="true"] #gameShell .menuFastSpinHit { top: 65.35%; height: 15.8%; }
}
