:root {
  color-scheme: dark;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --gold: #ffd56a;
  --deep-gold: #a55a13;
  --red: #7f150d;
  --ink: #130705;
  --panel: rgba(25, 9, 5, 0.86);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  display: grid;
  place-items: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

button {
  font: inherit;
  color: inherit;
}

.game-stage {
  position: relative;
  width: min(100vw, 56.25vh);
  width: min(100vw, 56.25svh);
  height: min(177.7778vw, 100vh);
  height: min(177.7778vw, 100svh);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  isolation: isolate;
  background: #1b0a05;
  box-shadow: 0 0 64px rgba(0, 0, 0, 0.95);
  touch-action: none;
}

.geometry-locked {
  position: absolute;
  transform-origin: center;
}

.scene-bg {
  position: absolute;
  inset: 0;
  z-index: -5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 520ms ease;
  pointer-events: none;
}

.scene-bg.is-visible {
  opacity: 1;
}

.scene-shade {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(180deg, rgba(11, 4, 2, 0.3) 0%, transparent 18%, transparent 52%, rgba(8, 2, 0, 0.76) 100%),
    radial-gradient(circle at 50% 35%, transparent 28%, rgba(8, 2, 0, 0.3) 88%);
  pointer-events: none;
}

.top-tools {
  z-index: 20;
  top: 1.2%;
  left: 3.2%;
  right: 3.2%;
  height: 5.8%;
  display: grid;
  grid-template-columns: 12% 1fr auto;
  align-items: center;
  gap: 2%;
}

.icon-button,
.game-button,
.collect-button,
.text-button,
.close-button,
.menu-tab {
  appearance: none;
  border: 0;
  outline: 0;
  cursor: pointer;
}

.icon-button {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 0.25em 0.25em rgba(0, 0, 0, 0.68));
  transition: transform 90ms ease, filter 140ms ease, opacity 140ms ease;
}

.icon-button img,
.game-button img,
.collect-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.icon-button:active,
.game-button:active,
.collect-button:active,
.text-button:active,
.menu-tab:active {
  transform: scale(0.93);
}

.icon-button[aria-pressed="false"] {
  opacity: 0.56;
  filter: grayscale(0.55) drop-shadow(0 0.2em 0.2em rgba(0, 0, 0, 0.8));
}

.icon-button[aria-pressed="false"]::after {
  content: "";
  position: absolute;
  top: 13%;
  left: 48%;
  width: 8%;
  height: 74%;
  border-radius: 999px;
  background: #ff4b38;
  box-shadow: 0 0 0.12em #2b0501;
  transform: rotate(-43deg);
}

.player-chip {
  min-width: 0;
  height: 76%;
  display: flex;
  align-items: center;
  gap: 3%;
  padding: 0.3em 0.7em 0.3em 0.35em;
  border: 1px solid rgba(255, 213, 106, 0.64);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(58, 20, 9, 0.86), rgba(16, 6, 3, 0.82));
  box-shadow: inset 0 0 0.35em rgba(255, 185, 60, 0.22), 0 0.2em 0.35em rgba(0, 0, 0, 0.42);
}

.player-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.35em;
  height: 2.35em;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffe886, #b52a0d 62%, #4d0703);
  color: #fff7c4;
  font-size: clamp(12px, 2.65vw, 25px);
  font-weight: 900;
  text-shadow: 0 2px 2px #3b0500;
}

.player-copy {
  min-width: 0;
  display: grid;
  line-height: 1.15;
}

.player-copy strong {
  overflow: hidden;
  font-size: clamp(12px, 2.55vw, 24px);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.player-copy small {
  margin-top: 0.18em;
  overflow: hidden;
  color: #e9cba1;
  font-size: clamp(8px, 1.72vw, 16px);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.top-actions {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.top-actions .icon-button {
  width: auto;
  height: 82%;
}

.metrics {
  z-index: 15;
  top: 8.25%;
  left: 3.5%;
  width: 93%;
  height: 5.5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4%;
}

.metric-card {
  min-width: 0;
  display: grid;
  align-content: center;
  padding: 0.32em 0.65em;
  border: 1px solid #b76c20;
  border-radius: 0.62em;
  background:
    linear-gradient(180deg, rgba(99, 30, 11, 0.94), rgba(24, 7, 4, 0.94)),
    linear-gradient(90deg, transparent, rgba(255, 219, 117, 0.14), transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 217, 100, 0.18), 0 0.22em 0.4em rgba(0, 0, 0, 0.46);
  text-align: center;
}

.metric-card span {
  color: #f6d48f;
  font-size: clamp(8px, 1.8vw, 17px);
  line-height: 1;
}

.metric-value {
  width: 100%;
  margin-top: 0.18em;
  overflow: hidden;
  color: #fff4b8;
  font-size: clamp(13px, 3.15vw, 30px);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  line-height: 1.08;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 2px 2px #460900, 0 0 0.3em rgba(255, 185, 45, 0.55);
  white-space: nowrap;
}

.metric-card--bet {
  background: linear-gradient(180deg, rgba(31, 66, 113, 0.94), rgba(6, 18, 43, 0.95));
}

.metric-card--win {
  background: linear-gradient(180deg, rgba(18, 92, 70, 0.94), rgba(4, 31, 25, 0.95));
}

.jackpot-bar {
  z-index: 14;
  top: 14.45%;
  left: 18%;
  width: 64%;
  height: 3.9%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.48em;
  border: 1px solid rgba(255, 211, 96, 0.86);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(87, 17, 9, 0.93), rgba(25, 5, 3, 0.94));
  box-shadow: inset 0 0 0.7em rgba(255, 186, 61, 0.2), 0 0 0.6em rgba(255, 136, 24, 0.16);
  color: #ffd660;
  font-size: clamp(11px, 2.55vw, 24px);
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px #4a0700;
}

.jackpot-bar strong {
  color: #fff5bc;
  font-size: 1.12em;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
}

.free-status {
  z-index: 16;
  top: 18.75%;
  left: 14%;
  width: 72%;
  height: 3.6%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  border: 1px solid rgba(255, 218, 97, 0.7);
  border-radius: 999px;
  background: rgba(38, 7, 5, 0.82);
  color: #ffe3a0;
  font-size: clamp(9px, 2.05vw, 20px);
  opacity: 0;
  transform: translateY(-22%) scale(0.96);
  transition: opacity 280ms ease, transform 280ms ease;
  pointer-events: none;
}

.free-status.is-visible {
  opacity: 1;
  transform: none;
}

.free-status strong {
  color: #fff8c7;
  font-variant-numeric: tabular-nums;
}

.reel-machine {
  z-index: 10;
  top: 20.8%;
  left: 2.5%;
  width: 95%;
  aspect-ratio: 16 / 9;
}

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

.reel-window {
  position: absolute;
  z-index: 3;
  top: 21.45%;
  left: 16.72%;
  width: 66.55%;
  height: 70.75%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  background: #130903;
}

.reel {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(255, 190, 53, 0.58);
  contain: layout paint;
}

.reel:last-of-type {
  border-right: 0;
}

.reel-track {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  transform: translate3d(0, 0, 0);
  will-change: auto;
  backface-visibility: hidden;
}

.symbol {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  background: #120905;
}

.symbol img {
  width: 100%;
  height: 100%;
  display: block;
  padding: 1.5%;
  object-fit: contain;
  object-position: center;
}

.symbol-tag {
  position: absolute;
  right: 8%;
  bottom: 7%;
  left: 8%;
  z-index: 2;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 229, 139, 0.86);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(127, 27, 9, 0.94), rgba(32, 5, 3, 0.96));
  color: #fff0a3;
  font-size: clamp(7px, 1.45vw, 14px);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 2px #480600;
  white-space: nowrap;
  pointer-events: none;
}

.symbol.is-winning {
  z-index: 4;
  box-shadow: inset 0 0 0 2px #fff0a5;
}

.payline-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.payline-overlay polyline {
  fill: none;
  stroke: #fff68e;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: payline-pulse 700ms ease-in-out 2 alternate;
}

@keyframes payline-pulse {
  from { opacity: 0.58; }
  to { opacity: 1; }
}

.reel-dim {
  position: absolute;
  z-index: 4;
  top: 21.45%;
  left: 16.72%;
  width: 66.55%;
  height: 70.75%;
  background: rgba(5, 1, 0, 0.72);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.reel-dim.is-visible {
  opacity: 1;
}

.result-panel {
  z-index: 14;
  top: 52.4%;
  left: 14%;
  width: 72%;
  height: 8.6%;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 0.45em 1em;
  border: 2px solid #bc721b;
  border-radius: 1.1em;
  background: radial-gradient(ellipse at center, rgba(111, 27, 10, 0.95), rgba(23, 6, 3, 0.96) 72%);
  box-shadow: inset 0 0 1em rgba(255, 184, 51, 0.2), 0 0.35em 0.65em rgba(0, 0, 0, 0.62);
  text-align: center;
}

.result-panel span {
  width: 100%;
  overflow: hidden;
  color: #f8dba2;
  font-size: clamp(11px, 2.45vw, 23px);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-panel strong {
  min-height: 1.16em;
  color: #fff5a9;
  font-size: clamp(24px, 6.7vw, 64px);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  line-height: 1.03;
  letter-spacing: 0.025em;
  text-shadow: 0 0.08em 0 #701200, 0 0 0.28em rgba(255, 181, 29, 0.76);
}

.controls {
  z-index: 18;
  top: 63%;
  left: 5%;
  width: 90%;
  height: 16.4%;
  display: grid;
  grid-template-columns: 13% 18% 28% 18% 13%;
  align-items: center;
  justify-content: space-between;
  gap: 2.5%;
}

.game-button {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 0.3em 0.26em rgba(0, 0, 0, 0.72));
  transition: transform 90ms ease, filter 140ms ease, opacity 140ms ease;
}

.game-button-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #ffe27a;
  font-size: clamp(12px, 3.05vw, 29px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 2px rgba(56, 6, 0, 0.95), 0 0 0.28em rgba(255, 197, 48, 0.48);
  pointer-events: none;
}

.spin-button-label {
  font-size: clamp(17px, 4.4vw, 42px);
}

.spin-button.is-stopping .spin-button-label {
  align-items: end;
  padding-bottom: 23%;
  font-size: clamp(11px, 2.65vw, 25px);
}

.game-button:focus-visible,
.icon-button:focus-visible,
.collect-button:focus-visible,
.text-button:focus-visible,
.menu-tab:focus-visible,
.close-button:focus-visible {
  outline: 3px solid #fff4a0;
  outline-offset: 2px;
}

.spin-button {
  width: 100%;
  filter: drop-shadow(0 0.45em 0.3em rgba(0, 0, 0, 0.72)) drop-shadow(0 0 0.45em rgba(255, 107, 18, 0.38));
}

.spin-button.is-ready {
  animation: none;
}

.game-button[aria-pressed="true"] {
  filter: drop-shadow(0 0 0.48em #ffcf43) brightness(1.18);
}

.game-button:disabled,
.collect-button:disabled,
.text-button:disabled {
  cursor: default;
  filter: grayscale(0.65) brightness(0.55);
  opacity: 0.7;
}

.secondary-controls {
  z-index: 17;
  top: 81.2%;
  left: 8%;
  width: 84%;
  height: 6.3%;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  align-items: center;
  gap: 3%;
}

.collect-button {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
  background: transparent;
  filter: drop-shadow(0 0.2em 0.25em rgba(0, 0, 0, 0.68));
}

.collect-button img {
  object-fit: fill;
}

.collect-button span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-left: 8%;
  color: #fff0a7;
  font-size: clamp(11px, 2.45vw, 24px);
  font-weight: 900;
  text-shadow: 0 2px 2px #3d0600;
}

.text-button {
  height: 72%;
  padding: 0 0.55em;
  border: 1px solid #c8862c;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(85, 27, 10, 0.96), rgba(29, 7, 3, 0.98));
  box-shadow: inset 0 0 0.3em rgba(255, 216, 106, 0.22), 0 0.2em 0.25em rgba(0, 0, 0, 0.46);
  color: #ffe3a0;
  font-size: clamp(10px, 2.15vw, 21px);
  white-space: nowrap;
}

.footer-status {
  z-index: 15;
  right: 4%;
  bottom: 1.1%;
  left: 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 231, 183, 0.76);
  font-size: clamp(8px, 1.72vw, 16px);
}

.footer-status i {
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  margin-right: 0.32em;
  border-radius: 50%;
  background: #5ee49d;
  box-shadow: 0 0 0.45em #5ee49d;
}

.transition-layer {
  position: absolute;
  inset: 0;
  z-index: 45;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.transition-layer.is-active {
  opacity: 1;
}

.transition-fire,
.transition-cloud,
.transition-gate {
  position: absolute;
  display: block;
  object-fit: contain;
}

.transition-fire {
  top: 37%;
  left: -35%;
  width: 56%;
  filter: drop-shadow(0 0 1em #ff7a00);
}

.transition-cloud {
  bottom: -20%;
  left: -15%;
  width: 130%;
  filter: drop-shadow(0 0 1.4em #fff8c7);
}

.transition-gate {
  top: 24%;
  left: 31%;
  width: 38%;
  opacity: 0;
  filter: drop-shadow(0 0 1.6em #ffbd22);
}

.transition-layer.is-active .transition-fire {
  animation: fire-sweep 920ms ease-in-out both;
}

.transition-layer.is-active .transition-cloud {
  animation: cloud-cover 1250ms ease-in-out both;
}

.transition-layer.is-active .transition-gate {
  animation: gate-flash 1250ms ease-in-out both;
}

@keyframes fire-sweep {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translate3d(255%, -15%, 0) scale(1.9); opacity: 0; }
}

@keyframes cloud-cover {
  0% { transform: translate3d(0, 35%, 0) scale(1.15); opacity: 0; }
  45% { opacity: 1; }
  68% { transform: translate3d(0, -38%, 0) scale(3.4); opacity: 1; }
  100% { transform: translate3d(0, -85%, 0) scale(5); opacity: 0; }
}

@keyframes gate-flash {
  0%, 34% { transform: scale(0.5) rotate(-8deg); opacity: 0; }
  58% { transform: scale(2.1) rotate(4deg); opacity: 1; }
  100% { transform: scale(5); opacity: 0; }
}

.win-celebration {
  position: absolute;
  z-index: 50;
  top: 30%;
  left: 8%;
  width: 84%;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.35);
  pointer-events: none;
}

.win-celebration.is-visible {
  animation: celebration-in 2.25s ease both;
}

.win-celebration img {
  grid-row: 1;
  grid-column: 1;
  width: 88%;
  max-height: 11em;
  object-fit: contain;
  filter: drop-shadow(0 0 1em #ff7a00);
}

.celebration-title {
  z-index: 2;
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  max-width: 68%;
  overflow: hidden;
  color: #fff1a0;
  font-size: clamp(27px, 7.6vw, 72px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0.08em 0 #701000, 0 0 0.34em #ff9d00;
  white-space: nowrap;
}

.win-celebration strong {
  grid-row: 2;
  grid-column: 1;
  margin-top: -0.12em;
  color: #fff7a7;
  font-size: clamp(32px, 9.6vw, 92px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 0.08em 0 #8a1600, 0 0 0.45em #ff9d00;
}

@keyframes celebration-in {
  0% { opacity: 0; transform: scale(0.35) rotate(-6deg); }
  16% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  26%, 80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.25); }
}

.toast {
  position: absolute;
  z-index: 80;
  top: 16%;
  left: 15%;
  width: 70%;
  padding: 0.7em 1em;
  border: 1px solid #d68c2e;
  border-radius: 999px;
  background: rgba(22, 6, 3, 0.94);
  color: #ffe5a7;
  font-size: clamp(11px, 2.45vw, 24px);
  text-align: center;
  opacity: 0;
  transform: translateY(-0.5em);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.loading-screen {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 12%;
  background:
    radial-gradient(circle at 50% 42%, rgba(143, 31, 9, 0.82), rgba(16, 4, 2, 0.98) 58%),
    #160502;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.loading-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.loading-emblem {
  display: grid;
  place-items: center;
  width: 3.3em;
  height: 3.3em;
  border: 0.1em solid #ffd05c;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffe978, #be2c0d 60%, #4d0803);
  box-shadow: 0 0 0.7em rgba(255, 137, 22, 0.65), inset 0 0 0.7em rgba(255, 222, 113, 0.36);
  color: #fff3ad;
  font-family: serif;
  font-size: clamp(30px, 10vw, 96px);
  font-weight: 900;
  text-shadow: 0 0.07em 0 #590700;
}

.loading-screen > strong {
  margin-top: 0.45em;
  color: #ffdc78;
  font-size: clamp(21px, 5.2vw, 50px);
  letter-spacing: 0.18em;
  text-shadow: 0 0.12em 0 #5b0900, 0 0 0.55em rgba(255, 139, 24, 0.56);
}

.loading-track {
  width: min(72vw, 25em);
  height: 0.72em;
  margin-top: 1.4em;
  overflow: hidden;
  border: 1px solid #9f5a17;
  border-radius: 999px;
  background: #1c0804;
}

.loading-track i {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #8d1707, #ffb227, #fff08d);
  box-shadow: 0 0 0.5em #ff9618;
  transition: width 120ms linear;
}

.loading-screen > span {
  margin-top: 0.55em;
  color: #ead0a0;
  font-size: clamp(11px, 2.5vw, 24px);
  font-variant-numeric: tabular-nums;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 5%;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 1, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-height: 88%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 2px solid #d7932f;
  border-radius: 1.1em;
  background: linear-gradient(180deg, rgba(77, 18, 7, 0.985), rgba(16, 5, 3, 0.99));
  box-shadow: inset 0 0 1.2em rgba(255, 188, 61, 0.17), 0 0.6em 2em rgba(0, 0, 0, 0.78);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8em 1em 0.55em;
  border-bottom: 1px solid rgba(216, 147, 47, 0.42);
}

.modal-header h1 {
  margin: 0;
  color: #ffe08a;
  font-size: clamp(19px, 4.6vw, 44px);
  letter-spacing: 0.12em;
}

.close-button {
  width: 2em;
  height: 2em;
  padding: 0;
  border: 1px solid #c9862d;
  border-radius: 50%;
  background: #3c0c05;
  color: #ffe4a3;
  font-size: clamp(20px, 4.8vw, 46px);
  line-height: 1;
}

.menu-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0.55em;
  background: rgba(9, 2, 1, 0.55);
}

.menu-tab {
  min-height: 3em;
  padding: 0.55em 0.22em;
  border: 1px solid rgba(198, 126, 35, 0.52);
  border-radius: 0.55em;
  background: rgba(54, 15, 7, 0.95);
  color: #dcbf86;
  font-size: clamp(10px, 2.25vw, 21px);
  line-height: 1.2;
}

.menu-tab.is-active {
  border-color: #ffd36b;
  background: linear-gradient(180deg, #9d2a0e, #4c0e05);
  color: #fff1af;
  box-shadow: inset 0 0 0.45em rgba(255, 219, 118, 0.25);
}

.modal-content {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.9em 1em 1.35em;
  user-select: text;
  -webkit-user-select: text;
}

.tab-panel {
  display: none;
  color: #f2dfbc;
  font-size: clamp(13px, 2.7vw, 25px);
  line-height: 1.62;
}

.tab-panel.is-active {
  display: block;
}

.tab-panel p {
  margin: 0 0 0.8em;
}

.tab-panel h2 {
  margin: 0.85em 0 0.34em;
  color: #ffdb78;
  font-size: 1.18em;
}

.tab-panel h2:first-child {
  margin-top: 0;
}

.tab-panel ol {
  margin: 0;
  padding-left: 1.5em;
}

.tab-panel li + li {
  margin-top: 0.36em;
}

.line-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65em;
}

.line-card {
  padding: 0.5em;
  border: 1px solid rgba(207, 139, 46, 0.48);
  border-radius: 0.65em;
  background: rgba(9, 4, 2, 0.65);
}

.line-card strong {
  display: block;
  margin-bottom: 0.25em;
  color: #ffd878;
  font-size: 0.88em;
}

.line-card svg {
  width: 100%;
  display: block;
  aspect-ratio: 5 / 3;
  border-radius: 0.35em;
  background: #170a05;
}

.line-card circle {
  fill: #75502c;
}

.line-card polyline {
  fill: none;
  stroke: #ffdc58;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px #ff3c00);
}

.paytable-grid {
  display: grid;
  gap: 0.58em;
}

.pay-row {
  display: grid;
  grid-template-columns: 4.05em repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 0.36em;
  min-height: 4.65em;
  padding: 0.4em 0.46em;
  border: 1px solid rgba(207, 139, 46, 0.42);
  border-radius: 0.72em;
  background: linear-gradient(90deg, rgba(69, 17, 7, 0.82), rgba(9, 4, 2, 0.7));
  box-shadow: inset 0 0 0.6em rgba(255, 201, 88, 0.06);
}

.pay-row img {
  width: 100%;
  height: 100%;
  display: block;
  border: 1px solid rgba(255, 211, 107, 0.68);
  border-radius: 0.5em;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 0 0.45em rgba(255, 159, 25, 0.22);
}

.pay-symbol {
  position: relative;
  width: 3.72em;
  height: 3.72em;
  display: block;
}

.pay-symbol .symbol-tag {
  right: 7%;
  bottom: 6%;
  left: 7%;
  font-size: 0.48em;
}

.pay-quote {
  display: grid;
  grid-template-columns: 1.75em 0.45em minmax(0, 1fr);
  align-items: baseline;
  justify-items: center;
  min-width: 0;
  padding: 0.3em 0.28em;
  border: 1px solid rgba(255, 209, 104, 0.22);
  border-radius: 0.5em;
  background: rgba(22, 7, 3, 0.72);
  line-height: 1;
}

.pay-count,
.pay-equals,
.pay-quote strong {
  min-width: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}

.pay-count {
  color: #ffd56d;
  font-size: 0.76em;
  font-weight: 800;
}

.pay-equals {
  color: rgba(255, 229, 166, 0.72);
  font-size: 0.65em;
  font-style: normal;
}

.pay-quote strong {
  width: 100%;
  color: #fff0ad;
  font-size: 0.82em;
  font-weight: 900;
  text-align: center;
}

@media (orientation: landscape) and (max-height: 560px) {
  .game-stage {
    width: min(100vw, 56.25vh);
    height: 100vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spin-button.is-ready,
  .symbol.is-winning,
  .payline-overlay polyline {
    animation: none;
  }
}
