:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111315;
  color: #f7edd2;
}

* {
  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: relative;
  width: min(100vw, calc(100vh * 1672 / 941));
  aspect-ratio: 1672 / 941;
  max-height: 100vh;
  overflow: hidden;
  -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;
  overflow: visible;
  width: auto;
  white-space: nowrap;
  color: #fff4b8;
  font-size: clamp(14px, 1.95vw, 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:nth-child(1) {
  top: 13.9%;
}

.autoSpinChoice button:nth-child(2) {
  top: 28.7%;
}

.autoSpinChoice button:nth-child(3) {
  top: 43.4%;
}

.autoSpinChoice button:nth-child(4) {
  top: 58.2%;
}

.autoSpinChoice button:nth-child(5) {
  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:nth-child(1)::before {
  top: -102.2%;
}

.autoSpinChoice button:nth-child(2)::before {
  top: -210.9%;
}

.autoSpinChoice button:nth-child(3)::before {
  top: -319.1%;
}

.autoSpinChoice button:nth-child(4)::before {
  top: -427.9%;
}

.autoSpinChoice button:nth-child(5)::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 {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    overflow-y: visible;
    padding-inline: 1px;
    font-size: clamp(7px, min(1.45vw, 2.58vh), 20px);
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-overflow: clip;
  }
}
