* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html.lock,
html.lock body {
  overflow: hidden;
}

.shop,
.cal-scroll {
  overscroll-behavior: contain;
}

html {
  overflow-x: hidden;
  background: #0b1d3d;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #c9962b #0b1d3d;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: #ffffff;
  font: 500 14px/1.5 "Inter", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(800px 500px at 0 80%, rgba(31, 122, 74, 0.25) 0, rgba(31, 122, 74, 0) 100%),
    radial-gradient(700px 500px at 100% 100%, rgba(200, 16, 46, 0.18) 0, rgba(200, 16, 46, 0) 100%),
    linear-gradient(180deg, #0e2347 0, #081733 100%);
  background-attachment: fixed;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid #c9962b;
  outline-offset: 2px;
}

img {
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.jp b,
.win-banner b,
.coin-value,
.hold-total b,
.balance b,
.bet b,
.last-win b,
.cal-stats b {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.snow,
.fx {
  position: fixed;
  top: 0;
  left: 0;
  max-width: 100%;
  pointer-events: none;
}

.snow {
  z-index: 1;
}

.fx {
  z-index: 60;
}

.lights {
  position: absolute;
  overflow: hidden;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: space-around;
  height: 30px;
  pointer-events: none;
}

.lights::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -20px;
  right: -20px;
  height: 24px;
  border-bottom: 2px solid #23402f;
  border-radius: 0 0 50% 50%;
}

.bulb {
  position: relative;
  width: 9px;
  height: 14px;
  margin-top: 5px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: #ffffff;
  animation: twinkle 2s ease-in-out infinite;
}

.bulb::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 2px;
  width: 5px;
  height: 4px;
  border-radius: 1px;
  background: #3d4d45;
}

@keyframes twinkle {
  50% {
    opacity: 0.35;
    box-shadow: none;
  }
}

.hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 460px;
  background:
    linear-gradient(180deg, rgba(8, 23, 51, 0.2) 0, rgba(14, 35, 71, 0.35) 60%, rgba(14, 35, 71, 0.6) 100%),
    url("img/bg_village.jpg") center 65% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000000 0, #000000 55%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000000 0, #000000 55%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

#app {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 26px 12px 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-red {
  background: linear-gradient(180deg, #d9243f 0, #b10d2a 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(177, 13, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-red:hover:not(:disabled) {
  box-shadow: 0 8px 22px rgba(177, 13, 42, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost,
.btn-line {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-ghost:hover:not(:disabled),
.btn-line:hover:not(:disabled) {
  border-color: #e8b83a;
  background: rgba(255, 255, 255, 0.14);
}

.btn.wide {
  display: flex;
  width: -webkit-fill-available;
  width: -moz-available;
  width: stretch;
  margin-top: 10px;
  padding: 14px 16px;
  font-size: 14px;
}

.top {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid rgba(232, 184, 58, 0.5);
  background: linear-gradient(180deg, rgba(5, 13, 32, 0.92) 0, rgba(10, 26, 56, 0.72) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.top-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "logo account" "bar bar";
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 12px 12px;
}

.logo {
  grid-area: logo;
}

.logo img {
  width: auto;
  height: 34px;
}

.account {
  grid-area: account;
  display: flex;
  gap: 6px;
}

.account .btn {
  padding: 8px 13px;
  font-size: 12px;
}

.bar {
  grid-area: bar;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bar .balance {
  flex: 1;
}

.balance {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px 6px 8px;
  border: 1px solid rgba(232, 184, 58, 0.45);
  border-radius: 999px;
  background: rgba(10, 26, 56, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.balance img {
  width: 30px;
  height: 30px;
}

.balance span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.balance small {
  color: #c9d6ea;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.balance b {
  color: #f6d77a;
  font-size: 18px;
}

.balance.pop b {
  animation: pop 0.6s ease-out;
}

@keyframes pop {
  30% {
    color: #c9962b;
    transform: scale(1.08);
  }
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(232, 184, 58, 0.45);
  border-radius: 999px;
  background: rgba(10, 26, 56, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.12s ease;
}

.chip:hover:not(:disabled) {
  transform: translateY(-1px);
}

.chip img {
  width: 24px;
  height: 24px;
}

.chip:disabled {
  opacity: 0.6;
}

.badge {
  position: absolute;
  top: -6px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #c8102e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 0 0 2px #0e2347;
}

#open-calendar.ready {
  animation: glowChip 1.6s ease-in-out infinite;
}

@keyframes glowChip {
  50% {
    box-shadow: 0 0 0 3px rgba(232, 184, 58, 0.55), 0 6px 22px rgba(232, 184, 58, 0.55);
  }
}

.layout {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.stage {
  position: relative;
  padding: 10px 10px 12px;
  border: 1px solid rgba(232, 184, 58, 0.55);
  border-radius: 28px;
  background:
    radial-gradient(400px 200px at 50% 0, rgba(232, 184, 58, 0.16) 0, rgba(232, 184, 58, 0) 100%),
    linear-gradient(180deg, rgba(16, 40, 80, 0.92) 0, rgba(8, 23, 51, 0.96) 100%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.marquee {
  position: relative;
  margin: 0 0 4px;
  padding: 14px 12px 12px;
  border-radius: 18px;
  background:
    radial-gradient(300px 90px at 50% 40%, rgba(232, 184, 58, 0.2) 0, rgba(232, 184, 58, 0) 100%),
    linear-gradient(180deg, #0a1a3a 0, #050d20 100%);
  box-shadow: inset 0 0 0 2px #e8b83a, inset 0 0 0 5px #0a1a3a, inset 0 0 0 6px rgba(232, 184, 58, 0.45), 0 6px 14px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.bulbs {
  position: absolute;
  inset: 5px;
  pointer-events: none;
}

.bulbs span {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3px 0 0 -3px;
  border-radius: 4px;
  background: #fff3b0;
  box-shadow: 0 0 6px 1px #ffc21f;
  animation: chase 1.2s steps(1) infinite;
}

@keyframes chase {
  50% {
    background: #7a5a10;
    box-shadow: none;
  }
}

.garland {
  position: relative;
  z-index: 4;
  height: 32px;
  margin: -6px -14px -16px;
  background: url("img/garland.svg") repeat-x 0 0 / 190px 34px;
  pointer-events: none;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
}

.stage::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 6px;
  right: 6px;
  z-index: 7;
  height: 40px;
  padding: 0 40px;
  background:
    url("img/snow_left.svg") 0 0 / 44px 40px no-repeat border-box,
    url("img/snow_right.svg") 100% 0 / 44px 40px no-repeat border-box,
    url("img/snow_mid.svg") 0 0 / 200px 40px repeat-x content-box;
  background-origin: border-box, border-box, content-box;
  pointer-events: none;
}

.game-title {
  margin: 0;
}

.game-title img {
  width: auto;
  height: 56px;
  margin: 0 auto;
}

.jackpots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0 4px;
}

.jp {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0 2px 6px;
  overflow: hidden;
  border: 1px solid rgba(232, 184, 58, 0.6);
  border-radius: 12px;
  background: linear-gradient(180deg, #102850 0, #06132b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 14px rgba(0, 0, 0, 0.35);
  line-height: 1.1;
  text-align: center;
}

.jp small {
  align-self: stretch;
  margin: 0 -2px 4px;
  padding: 3px 0;
  background: linear-gradient(180deg, #e8384f 0, #a50e2a 100%);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jp b {
  color: #f6d77a;
  font-size: 14px;
  text-shadow: 0 0 10px rgba(232, 184, 58, 0.45);
}

.jp.grand {
  border-color: #f6d77a;
  box-shadow: 0 0 18px rgba(232, 184, 58, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.jp.grand small {
  background: linear-gradient(180deg, #fff1a8 0, #e8b83a 55%, #b8860b 100%);
  color: #3a2400;
}

.jp.major small {
  background: linear-gradient(180deg, #b98cff 0, #6a2bc9 100%);
}

.jp.minor small {
  background: linear-gradient(180deg, #5aa8ff 0, #1f5d9c 100%);
}

.meter {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 4px;
}

.meter i {
  width: 9px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
}

.meter i.on {
  background: #f6d77a;
  box-shadow: 0 0 6px #e8b83a;
}

.jp.mini .meter i.on {
  background: #ff6b81;
  box-shadow: 0 0 6px #e8384f;
}

.jp.minor .meter i.on {
  background: #7cc0ff;
  box-shadow: 0 0 6px #5aa8ff;
}

.jp.major .meter i.on {
  background: #c9a6ff;
  box-shadow: 0 0 6px #9b6bff;
}

.cell[data-sym="jp"]::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid #f6d77a;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 241, 168, 0.55) 0, rgba(232, 184, 58, 0.15) 60%, rgba(232, 184, 58, 0) 72%);
  box-shadow: 0 0 18px rgba(232, 184, 58, 0.8);
  animation: halo 1.2s ease-in-out infinite;
}

.cell[data-sym="jp"] img {
  filter: drop-shadow(0 0 8px #fff1a8) drop-shadow(0 0 14px rgba(232, 184, 58, 0.8));
  animation: tokenGlow 1.2s ease-in-out infinite;
}

@keyframes tokenGlow {
  50% {
    transform: scale(1.08);
  }
}

.jp.hit {
  animation: jpHit 0.9s ease-out 3;
}

@keyframes jpHit {
  40% {
    transform: scale(1.12);
    box-shadow: 0 0 26px #e8b83a;
  }
}

.window {
  position: relative;
  padding: 6px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff1a8 0, #e8b83a 30%, #a87300 55%, #f6d77a 80%, #c9962b 100%);
  box-shadow: 0 0 0 2px #06132b, 0 0 30px rgba(232, 184, 58, 0.35), 0 16px 30px rgba(0, 0, 0, 0.45);
}

.reels-wrap {
  position: relative;
  border-radius: 15px;
}

.reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: 15px;
  background:
    radial-gradient(300px 220px at 50% 50%, rgba(90, 140, 230, 0.25) 0, rgba(90, 140, 230, 0) 100%),
    linear-gradient(180deg, #06102a 0, #142a5e 50%, #06102a 100%);
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.6);
}

.reel {
  position: relative;
  aspect-ratio: 1 / 3;
  overflow: hidden;
}

.reel + .reel {
  border-left: 1px solid rgba(232, 184, 58, 0.22);
}

.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 10, 0.5) 0, rgba(0, 0, 10, 0) 18%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 10, 0) 82%, rgba(0, 0, 10, 0.5) 100%);
  pointer-events: none;
}

.strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.cell {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  aspect-ratio: 1 / 1;
  padding: 4px;
}

.cell img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.reel.blur .strip {
  filter: blur(1.6px);
}

.cell.win {
  z-index: 3;
}

.cell.win::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid #e8b83a;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(255, 246, 210, 0.95) 0, rgba(246, 227, 168, 0.5) 60%, rgba(246, 227, 168, 0) 100%);
  box-shadow: 0 0 16px rgba(232, 184, 58, 0.8);
}

.cell.win img {
  position: relative;
  animation: winPulse 0.6s ease-in-out 4;
}

@keyframes winPulse {
  50% {
    transform: scale(1.14) rotate(-4deg);
  }
}

.cell.drop img {
  animation: drop 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
}

@keyframes drop {
  0% {
    transform: translateY(-70px);
    opacity: 0;
  }
}

.cell.smash::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0, rgba(185, 214, 239, 0.9) 30%, rgba(185, 214, 239, 0) 70%);
  animation: smash 0.4s ease-out forwards;
}

@keyframes smash {
  to {
    transform: scale(1.8);
    opacity: 0;
  }
}

.reels.pick-cell .cell {
  cursor: crosshair;
}

.reels.pick-cell .cell:hover::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px dashed #c8102e;
  border-radius: 14px;
  background: rgba(200, 16, 46, 0.08);
}

.reels.pick-reel .reel {
  cursor: pointer;
  box-shadow: inset 0 0 0 3px #5aa0e0;
}

.reel.frozen::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0) 50px),
    linear-gradient(180deg, rgba(185, 225, 255, 0.6) 0, rgba(120, 180, 235, 0.45) 100%);
  box-shadow: inset 0 0 22px #ffffff, inset 0 0 0 2px #ffffff;
}

.reel.frozen::before {
  content: "❄ Frozen";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 3px 0;
  background: #0a1a3a;
  color: #bfe6ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.lines {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  overflow: visible;
  pointer-events: none;
}

.lines polyline {
  fill: none;
  stroke: #c8102e;
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 2px #ffffff) drop-shadow(0 0 6px rgba(200, 16, 46, 0.6));
  animation: line 2s ease-out forwards;
}

@keyframes line {
  80% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.win-banner {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}

.win-banner.show {
  animation: banner 2.8s ease-out forwards;
}

.win-banner span {
  padding: 4px 18px;
  border-radius: 999px 999px 0 0;
  background: #c8102e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.win-banner b {
  padding: 4px 28px 8px;
  border: 2px solid #e8b83a;
  border-radius: 18px;
  background: linear-gradient(180deg, #14305e 0, #0a1a3a 100%);
  color: #f6d77a;
  font-size: 30px;
  line-height: 1.15;
  box-shadow: 0 18px 40px rgba(20, 40, 74, 0.35), 0 0 30px rgba(232, 184, 58, 0.5);
}

.win-banner[data-kind="hold"] b {
  font-size: 18px;
  padding: 6px 18px 8px;
}

.win-banner[data-kind="hold"] span {
  background: #17744a;
}

@keyframes banner {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  12% {
    opacity: 1;
    transform: scale(1.08);
  }
  20% {
    transform: scale(1);
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(0.96);
  }
}

.message {
  display: none;
  min-height: 20px;
  margin: 6px 0 0;
  color: #dbe5f3;
  font-size: 12px;
  line-height: 1.5;
  font-style: italic;
  text-align: center;
}

.dock {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 14px 0 18px 0;
  padding: 8px 14px;
  border: 1px solid #f6d77a;
  border-radius: 999px;
  background: linear-gradient(180deg, #14305e 0, #0a1a3a 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

.bet,
.last-win {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.bet small,
.last-win small {
  color: #c9d6ea;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bet b,
.last-win b {
  min-width: 38px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.1;
  text-align: center;
}

.last-win b {
  color: #f6d77a;
}

.last-win.pop b {
  animation: pop 0.6s ease-out;
}

.bet-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}

.step:hover:not(:disabled) {
  border-color: #e8b83a;
}

.max {
  padding: 2px 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #f6d77a;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.step:disabled,
.max:disabled {
  opacity: 0.35;
}

.spin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin: -22px 0;
  padding: 0;
  border: 4px solid #ffffff;
  border-radius: 42px;
  background: radial-gradient(circle at 38% 30%, #f05a70 0, #c8102e 55%, #8a0820 100%);
  box-shadow: 0 0 0 2px #e8b83a, 0 12px 26px rgba(177, 13, 42, 0.45);
  color: #ffffff;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.spin img {
  width: 30px;
  height: 30px;
}

.spin.busy img,
.spin.holding img {
  animation: spinIcon 0.6s linear infinite;
}

@keyframes spinIcon {
  to {
    transform: rotate(360deg);
  }
}

#spin-word {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

#spin-sub {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.9;
}

.spin:hover:not(:disabled) {
  box-shadow: 0 0 0 2px #e8b83a, 0 14px 32px rgba(177, 13, 42, 0.55);
}

.spin:active:not(:disabled) {
  transform: scale(0.96);
}

.spin:disabled {
  filter: saturate(0.6);
}

.spin.free {
  background: radial-gradient(circle at 38% 30%, #7cc0ff 0, #1f6fc0 55%, #123f78 100%);
  box-shadow: 0 0 0 2px #e8b83a, 0 12px 26px rgba(31, 111, 192, 0.45);
}

.spin.free #spin-word {
  font-size: 11px;
}

.spin.holding {
  background: radial-gradient(circle at 38% 30%, #fff3c4 0, #e8b83a 55%, #a87300 100%);
  box-shadow: 0 0 0 2px #ffffff, 0 12px 26px rgba(201, 150, 43, 0.55);
  color: #3a2400;
}

.tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 12px;
}

.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  transition: transform 0.12s ease;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid #e8b83a;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3fbf7f 0, #17744a 55%, #0b4a2e 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.tool img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 2px rgba(20, 40, 74, 0.25));
}

.tool b {
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.tool i {
  position: absolute;
  top: -4px;
  left: 50%;
  margin-left: 14px;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 10px;
  background: #c8102e;
  color: #ffffff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  box-shadow: 0 0 0 2px #0e2347;
}

.tool:hover:not(:disabled) .tool-icon {
  border-color: #fff1a8;
}

.tool:hover:not(:disabled) {
  transform: translateY(-2px);
}

.tool.active .tool-icon {
  border-color: #fff1a8;
  background: radial-gradient(circle at 35% 30%, #fff1a8 0, #e8b83a 60%, #a87300 100%);
  box-shadow: 0 0 0 3px rgba(232, 184, 58, 0.45), 0 6px 18px rgba(201, 150, 43, 0.4);
}

.tool.empty .tool-icon,
.tool.empty b {
  opacity: 0.45;
}

.tool.empty i {
  background: #9fb1c8;
}

.tool:disabled {
  opacity: 0.55;
}

.tool.bump i {
  animation: bumpI 0.6s ease-out;
}

@keyframes bumpI {
  40% {
    transform: scale(1.5);
    background: #e8b83a;
  }
}

.coin-value {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 2;
  margin-top: -0.6em;
  color: #fffbe8;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 0 #6a3a00, 0 -1px 0 #6a3a00, 1px 0 0 #6a3a00, -1px 0 0 #6a3a00, 0 2px 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.coin-value.jp-label {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cell[data-jackpot="mini"] .coin-value {
  text-shadow: 0 1px 0 #5a0010, 0 -1px 0 #5a0010, 1px 0 0 #5a0010, -1px 0 0 #5a0010, 0 2px 4px rgba(0, 0, 0, 0.6);
}

.cell[data-jackpot="minor"] .coin-value {
  text-shadow: 0 1px 0 #04204a, 0 -1px 0 #04204a, 1px 0 0 #04204a, -1px 0 0 #04204a, 0 2px 4px rgba(0, 0, 0, 0.6);
}

.cell[data-jackpot="major"] .coin-value {
  text-shadow: 0 1px 0 #24064a, 0 -1px 0 #24064a, 1px 0 0 #24064a, -1px 0 0 #24064a, 0 2px 4px rgba(0, 0, 0, 0.6);
}

.reels.hold .reel::after {
  background: none;
}

.cell[data-sym="blank"]::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(160, 190, 255, 0.2);
  border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, rgba(60, 100, 190, 0.3) 0, rgba(4, 10, 30, 0.85) 75%);
}

.cell.rolling::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  background: url("img/coin_gold.png") repeat-y center 0 / 80% auto;
  opacity: 0.6;
  filter: blur(2px);
  animation: roll 0.18s linear infinite;
}

@keyframes roll {
  to {
    background-position: center 120px;
  }
}

.cell.locked::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid #e8b83a;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(255, 246, 210, 0.95) 0, rgba(246, 227, 168, 0.35) 70%, rgba(246, 227, 168, 0) 100%);
  box-shadow: 0 0 12px rgba(232, 184, 58, 0.6);
}

.cell.locked img {
  position: relative;
}

.cell.landed img,
.cell.landed .coin-value {
  animation: landCoin 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes landCoin {
  0% {
    transform: scale(0.2) translateY(-40px);
    opacity: 0;
  }
}

.cell.collect img {
  animation: collectCoin 0.5s ease-out;
}

.cell.collect::before {
  border-color: #c8102e;
  box-shadow: 0 0 20px rgba(232, 184, 58, 0.9);
}

@keyframes collectCoin {
  40% {
    transform: scale(1.25);
    filter: brightness(1.3);
  }
}

.respin-bar {
  position: absolute;
  left: 50%;
  bottom: -18px;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid #e8b83a;
  border-radius: 999px;
  background: #0a1a3a;
  box-shadow: 0 8px 20px rgba(20, 40, 74, 0.25);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.pips {
  display: flex;
  gap: 4px;
}

.pips i {
  width: 10px;
  height: 10px;
  border: 1px solid #c9962b;
  border-radius: 5px;
  background: #14305e;
}

.pips i.on {
  background: radial-gradient(circle at 40% 35%, #ffffff 0, #e8b83a 60%, #a87300 100%);
}

.hold-total b {
  margin-left: 4px;
  color: #f6d77a;
  font-size: 14px;
  letter-spacing: 0;
}

.paytable {
  padding: 20px 16px 16px;
  border: 1px solid rgba(232, 184, 58, 0.55);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16, 40, 80, 0.92) 0, rgba(8, 23, 51, 0.96) 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

.side-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: -webkit-fill-available;
  width: -moz-available;
  width: stretch;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}

.chev {
  flex: none;
  width: 10px;
  height: 10px;
  margin: -4px 4px 0 2px;
  border-right: 2px solid #f6d77a;
  border-bottom: 2px solid #f6d77a;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.paytable.open .chev {
  margin-top: 4px;
  transform: rotate(225deg);
}

.pay-body {
  display: none;
  margin-top: 14px;
}

.paytable.open .pay-body {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.side-head p {
  margin-left: auto !important;
}

body.pay-open {
  overflow: hidden;
}

.side-head .pay-title {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #ffffff;
}

.side-head p {
  margin: 0;
  color: #c9d6ea;
  font-size: 12px;
  font-weight: 600;
}

.side-head b {
  color: #ffffff;
  font-weight: 800;
}

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

.pay-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 6px;
  border: 1px solid rgba(232, 184, 58, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.pay-card img {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 3px 3px rgba(20, 40, 74, 0.2));
}

.pay-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 6px;
  margin: 0;
  font-size: 12px;
}

.pay-card dt {
  color: #8fa3c2;
  font-weight: 600;
}

.pay-card dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pay-card dd:first-of-type {
  color: #f6d77a;
}

.pay-special {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.pay-special p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #c9d6ea;
  font-size: 13px;
}

.pay-special img {
  flex: none;
}

.pay-special b {
  display: block;
  color: #ffffff;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
}

.lines-box {
  margin-top: 14px;
}

.lines-box summary {
  color: #f6d77a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.paylines {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.payline {
  color: #8fa3c2;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.payline div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  padding: 3px;
  border-radius: 5px;
  background: #0a1a3a;
}

.payline i {
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background: #1b3560;
}

.payline i.on {
  background: #c8102e;
}

dialog {
  max-width: calc(100vw - 24px);
  padding: 0;
  border: 0;
  color: #ffffff;
  background: transparent;
}

dialog::backdrop {
  background: rgba(3, 10, 25, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

dialog[open] {
  animation: rise 0.3s ease-out;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
}

.sheet-dialog {
  width: 380px;
}

.sheet {
  padding: 26px 22px 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, #14305e 0, #0a1a3a 100%);
  border: 1px solid rgba(232, 184, 58, 0.5);
  box-shadow: 0 30px 70px rgba(14, 35, 71, 0.35);
}

.sheet {
  position: relative;
}

.close-x.sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  color: #c9d6ea;
  font-size: 20px;
}

.close-x.sheet-close:focus-visible {
  outline: none;
  color: #f6d77a;
}

.close-x.sheet-close:hover {
  color: #ffffff;
}

.form-msg:empty {
  display: none;
}

#account-form .tabs {
  margin-right: 40px;
}

.sheet.center {
  text-align: center;
}

.sheet.center > img {
  margin: 0 auto 8px;
}

.sheet h2 {
  margin: 2px 0 8px;
  font-size: 26px;
  line-height: 1.15;
}

.sheet p {
  margin: 8px 0;
  color: #c9d6ea;
}

.kicker {
  margin: 0;
  color: #c9962b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.muted {
  color: #8fa3c2;
  font-size: 12px;
}

.float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}

.welcome-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 14px 0 4px;
}

.welcome-tools i {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 2px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.tab {
  padding: 9px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #c9d6ea;
  font-weight: 700;
}

.tab.on {
  background: #e8b83a;
  color: #3a2400;
  box-shadow: 0 3px 10px rgba(20, 40, 74, 0.12);
}

.field {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.field span {
  color: #c9d6ea;
  font-size: 12px;
  font-weight: 600;
}

.field input {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.form-msg {
  min-height: 18px;
  color: #f6d77a;
  font-size: 13px;
  text-align: center;
}

.full-dialog {
  position: fixed;
  inset: 0;
  width: calc(100% - 24px);
  max-width: 480px;
  height: fit-content;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(232, 184, 58, 0.55);
  border-radius: 24px;
  background: #0a1a3a;
  color: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

#calendar-dialog {
  height: calc(100vh - 96px);
  height: calc(100dvh - 96px);
  max-height: 680px;
}

.full-dialog .cal,
.full-dialog .shop {
  max-width: 100%;
}

.full-dialog[open] {
  display: flex;
  flex-direction: column;
}

.cal,
.shop {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.shop {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 14px 16px;
  scrollbar-width: none;
}

.shop::-webkit-scrollbar {
  display: none;
}

.cal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 18px 14px;
  background:
    radial-gradient(300px 120px at 20% 0, rgba(232, 184, 58, 0.2) 0, rgba(232, 184, 58, 0) 100%),
    linear-gradient(180deg, #14305e 0, #0e2347 100%);
  border-bottom: 3px solid #e8b83a;
}

.shop .cal-head {
  margin: 0 -16px;
}

.cal-head h2 {
  font-size: 24px;
  color: #ffffff;
  text-transform: uppercase;
}

.cal-sub {
  margin: 4px 0 0;
  color: #c9d6ea;
  font-size: 13px;
}

.close-x {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: #c9d6ea;
  font-size: 20px;
  transition: color 0.15s ease;
}

.close-x:hover {
  color: #ffffff;
}

.close-x:focus-visible {
  outline: none;
  color: #f6d77a;
}

.cal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #0a1a3a;
}

.cal-stats p {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 10px 4px;
}

.cal-stats p + p {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.cal-stats b {
  color: #f6d77a;
  font-size: 22px;
  line-height: 1.1;
}

.cal-stats small {
  color: #c9d6ea;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cal-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0, rgba(0, 0, 0, 0) 100%),
    url("img/bg_calendar.jpg") center top / cover no-repeat;
  background-color: #06140f;
}

.cal-scroll {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.path {
  position: relative;
  margin: 0 auto;
  max-width: 560px;
}

.pipe {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}

.pipe path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pipe .shadow {
  stroke: rgba(0, 0, 20, 0.45);
  stroke-width: 40;
  transform: translate(0, 6px);
}

.pipe .glass {
  stroke: rgba(200, 230, 255, 0.22);
  stroke-width: 34;
}

.pipe .rim {
  stroke: rgba(230, 245, 255, 0.55);
  stroke-width: 36;
  stroke-dasharray: 1 0;
  opacity: 0.35;
}

.pipe .rings {
  stroke: #d4a017;
  stroke-width: 40;
  stroke-dasharray: 6 130;
  stroke-linecap: butt;
  filter: drop-shadow(0 0 4px rgba(255, 194, 31, 0.6));
}

.pipe .glow {
  stroke: #ffd84a;
  stroke-width: 16;
  filter: drop-shadow(0 0 6px #ffc21f) drop-shadow(0 0 16px #ff9a1f);
}

.pipe .sparks {
  stroke: #ffffff;
  stroke-width: 6;
  stroke-dasharray: 2 26;
  animation: sparks 1s linear infinite;
}

.pipe .shine {
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 3;
  transform: translate(-9px, 0);
}

@keyframes sparks {
  to {
    stroke-dashoffset: -28;
  }
}

.props {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.prop {
  position: absolute;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 30, 0.5));
}

.prop.glitter {
  width: 14px;
  height: 14px;
  z-index: 2;
  filter: none;
  animation: sparkle 2.4s ease-in-out infinite;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1) rotate(45deg);
  }
}

.node {
  position: absolute;
  z-index: 3;
  width: 84px;
  height: 94px;
  margin: -47px 0 0 -42px;
  padding: 0;
  border: 0;
  background: transparent;
  transition: transform 0.2s ease;
}

.node .gift-img {
  position: absolute;
  left: 18px;
  top: 16px;
  width: 48px;
  height: 48px;
  transition: filter 0.3s ease;
}

.node .capsule-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 94px;
}

.node .day {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  width: 34px;
  margin: 0 auto;
  border-radius: 9px;
  background: #1c2a55;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.node.big {
  width: 116px;
  height: 130px;
  margin: -65px 0 0 -58px;
}

.node.big .capsule-img {
  width: 116px;
  height: 130px;
}

.node.big .gift-img {
  left: 24px;
  top: 22px;
  width: 68px;
  height: 68px;
}

.node.locked .gift-img {
  filter: saturate(0.6) brightness(0.7);
}

.node.missed .gift-img {
  filter: grayscale(1) brightness(1.3) opacity(0.45);
}

.node.missed .capsule-img {
  filter: grayscale(1) brightness(1.4);
}

.node.missed .day {
  background: #6a7590;
}

.node.done .gift-img {
  filter: drop-shadow(0 0 8px #ffc21f);
}

.node.done::before {
  content: "";
  position: absolute;
  inset: 4px 4px 14px;
  border-radius: 42px;
  background: radial-gradient(circle, rgba(255, 226, 122, 0.85) 0, rgba(255, 194, 31, 0.25) 55%, rgba(255, 194, 31, 0) 72%);
}

.node.done .day {
  background: linear-gradient(180deg, #ffe27a 0, #d48a00 100%);
  color: #3a1d00;
}

.node.today::before {
  content: "";
  position: absolute;
  inset: -18px -18px -8px;
  border-radius: 70px;
  background: radial-gradient(circle, rgba(255, 240, 170, 0.95) 0, rgba(255, 194, 31, 0.5) 40%, rgba(255, 194, 31, 0) 70%);
  animation: halo 1.3s ease-in-out infinite;
}

.node.today .gift-img {
  animation: hop 1.3s ease-in-out infinite;
}

.node.today .day {
  background: #e8173a;
}

.node.opening .gift-img {
  animation: popOut 0.9s ease-in forwards;
}

@keyframes popOut {
  30% {
    transform: scale(1.3) rotate(-8deg);
  }
  60% {
    transform: scale(1.2) rotate(8deg);
  }
  100% {
    transform: translateY(-40px) scale(2.2);
    opacity: 0;
  }
}

@keyframes halo {
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

@keyframes hop {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  30% {
    transform: translateY(-6px) rotate(-6deg);
  }
  45% {
    transform: translateY(0) rotate(4deg);
  }
}

.node:hover {
  transform: scale(1.06);
}

.ready-art {
  position: relative;
  width: 150px;
  height: 168px;
  margin: 0 auto 8px;
}

.ready-art img {
  position: absolute;
}

.ready-art .float {
  left: 27px;
  top: 26px;
  margin: 0;
}

.ready-art .ready-capsule {
  left: 0;
  top: 0;
  margin: 0;
}

.reveal {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 20px;
  background: radial-gradient(circle at 50% 45%, rgba(40, 28, 6, 0.8) 0, rgba(3, 10, 25, 0.92) 70%);
  text-align: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

.reveal-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 760px;
  height: 760px;
  margin: -400px 0 0 -380px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 214, 110, 0.22) 0deg 9deg, rgba(255, 214, 110, 0) 9deg 22.5deg);
  -webkit-mask-image: radial-gradient(circle, #000000 0, rgba(0, 0, 0, 0) 65%);
  mask-image: radial-gradient(circle, #000000 0, rgba(0, 0, 0, 0) 65%);
  animation: rays 14s linear infinite;
  pointer-events: none;
}

@keyframes rays {
  to {
    transform: rotate(360deg);
  }
}

.reveal-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  animation: cardPop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}

@keyframes cardPop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
}

.reveal .kicker {
  color: #f6d77a;
}

.reveal-title {
  margin: 4px 0 18px;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(232, 184, 58, 0.6);
}

.reveal-prizes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px;
}

.reveal-prizes span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  animation: prizePop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
}

.reveal-prizes span:only-child {
  font-size: 22px;
}

.reveal-prizes img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 0 16px rgba(255, 214, 110, 0.75));
  animation: float 2.4s ease-in-out infinite;
}

.reveal-prizes span:only-child img {
  width: 110px;
  height: 110px;
}

.reveal-prizes span:not(:only-child) {
  flex: 0 0 30%;
}

@keyframes prizePop {
  from {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }
}

.reveal-text {
  margin: 0 0 4px;
  color: #c9d6ea;
  font-size: 13px;
}

.collect-btn {
  background: linear-gradient(180deg, #fff1a8 0, #e8b83a 50%, #b8860b 100%);
  color: #3a2400;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(232, 184, 58, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: collectGlow 1.6s ease-in-out infinite;
}

@keyframes collectGlow {
  50% {
    box-shadow: 0 8px 34px rgba(232, 184, 58, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
}

.cal-msg {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid rgba(232, 184, 58, 0.35);
  background: #0a1a3a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.item {
  position: relative;
  color: #ffffff;
  text-align: left;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.item:hover {
  transform: translateY(-2px);
}

.price {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8384f 0, #b10d2a 100%);
  color: #ffffff;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(177, 13, 42, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.shop-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
}

.shop-tab {
  padding: 10px 6px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #c9d6ea;
  font-size: 13px;
  font-weight: 700;
}

.shop-tab.on {
  background: #e8b83a;
  color: #3a2400;
}

.boosts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.boost-balance {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: #c9d6ea;
  font-size: 13px;
  font-weight: 600;
}

.boost-balance b {
  color: #f6d77a;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
}

.boost {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas: "icon text" "icon buy";
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  border: 1px solid rgba(232, 184, 58, 0.4);
  border-radius: 18px;
  background: linear-gradient(180deg, #13305e 0, #0a1a3a 100%);
  text-align: left;
}

.boost > img {
  grid-area: icon;
  width: 46px;
  height: 46px;
  padding: 7px;
  border: 2px solid #e8b83a;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3fbf7f 0, #17744a 55%, #0b4a2e 100%);
}

.boost .row-text {
  grid-area: text;
  display: grid;
  gap: 1px;
  min-width: 0;
}

.boost .row-text b {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
}

.boost .row-text small {
  color: #c9d6ea;
  font-size: 11px;
  line-height: 1.3;
}

.boost .row-text em {
  color: #f6d77a;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.boost-buy {
  grid-area: buy;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-width: 240px;
}

.coin-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 7px 2px;
  border: 1px solid #e8b83a;
  border-radius: 999px;
  background-color: rgba(232, 184, 58, 0.14);
  color: #ffffff;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.coin-price img {
  width: 13px;
  height: 13px;
}

.coin-price small {
  color: #f6d77a;
  font-size: 10px;
}

.coin-price:hover {
  background-color: rgba(232, 184, 58, 0.3);
}

.coin-price.done {
  border-color: #e8384f;
  background-color: #c8102e;
  color: #ffffff;
  pointer-events: none;
  animation: priceIn 0.3s ease-out;
}

.coin-price.leaving {
  border-color: #e8b83a;
  background-color: rgba(232, 184, 58, 0.14);
  color: rgba(255, 255, 255, 0);
}

.coin-price.back {
  animation: priceIn 0.3s ease-out;
}

@keyframes priceIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
}

.coin-price.short {
  opacity: 0.45;
}

.bundles {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.bundle {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-areas: "art body" "art price";
  align-content: center;
  align-items: center;
  gap: 8px 14px;
  width: -webkit-fill-available;
  width: -moz-available;
  width: stretch;
  padding: 16px 12px 12px;
  border: 1px solid rgba(232, 184, 58, 0.45);
  border-radius: 22px;
  background:
    radial-gradient(160px 120px at 12% 50%, rgba(232, 184, 58, 0.18) 0, rgba(232, 184, 58, 0) 100%),
    linear-gradient(180deg, #13305e 0, #0a1a3a 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.bundle:hover {
  border-color: #f6d77a;
}

.bundle.hot {
  border: 2px solid #e8b83a;
  background:
    radial-gradient(180px 140px at 12% 50%, rgba(255, 210, 120, 0.25) 0, rgba(255, 210, 120, 0) 100%),
    linear-gradient(135deg, #a50e2a 0, #5a0616 100%);
  box-shadow: 0 0 28px rgba(232, 184, 58, 0.35), 0 14px 30px rgba(0, 0, 0, 0.45);
}

.bundle.best {
  background:
    radial-gradient(180px 140px at 12% 50%, rgba(255, 210, 120, 0.22) 0, rgba(255, 210, 120, 0) 100%),
    linear-gradient(135deg, #17744a 0, #083a24 100%);
}

.bundle-tag {
  position: absolute;
  top: -10px;
  left: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8b83a;
  color: #3a2400;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bundle-art {
  grid-area: art;
  position: relative;
  display: grid;
  place-items: center;
  height: 60px;
}

.bundle-art img {
  width: auto;
  max-width: 60px;
  max-height: 60px;
}

.bundle-art img {
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45));
}

.bundle-art img + img {
  position: absolute;
  right: 0;
  bottom: 2px;
}

.bundle-body {
  grid-area: body;
  display: grid;
  gap: 8px;
}

.bundle-body b {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.bundle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bundle-list img {
  width: 15px;
  height: 15px;
}

.bundle-list i {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px 2px 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.bundle .price {
  grid-area: price;
  justify-self: start;
}

.bundle.hot .price {
  background: linear-gradient(180deg, #fff1a8 0, #e8b83a 55%, #b8860b 100%);
  color: #3a2400;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cal-scroll::-webkit-scrollbar {
  display: none;
}

.shop-note {
  margin: 18px 0 0;
  color: #8fa3c2;
  font-size: 11px;
  text-align: center;
}

.shop-msg {
  min-height: 20px;
  margin: 8px 0 0;
  color: #6fe0a6;
  font-weight: 700;
  text-align: center;
}

.sound-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f6d77a;
}

.sound-btn .mute,
.sound-btn.off .wave {
  display: none;
}

.sound-btn.off .mute {
  display: block;
}

.sound-btn.off {
  color: #8fa3c2;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  padding: 34px 16px 40px;
  border-top: 2px solid #e8b83a;
  background: linear-gradient(180deg, #071533 0, #030a1a 100%);
  color: #9fb0c8;
  font-size: 13px;
}

.footer-inner {
  display: grid;
  gap: 22px;
  max-width: 560px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  gap: 22px;
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-brand img {
  width: auto;
  height: 38px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.footer-cols h4 {
  margin: 0 0 8px;
  color: #f6d77a;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fake-link {
  color: #b9c9da;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(185, 201, 218, 0.5);
  transition: color 0.15s ease;
}

.fake-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-cols ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-badges span {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #dbe5f3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-badges .age {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid #e8384f;
  border-radius: 50%;
  color: #ffffff;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.site-footer p {
  margin: 0;
}

.footer-note {
  color: #ffffff;
  font-weight: 600;
}

.footer-legal {
  color: #7f90aa;
  font-size: 12px;
}

.credit-link {
  color: #7f90aa;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.credit-link:hover {
  color: #ffffff;
  text-decoration: none;
}

@media (max-height: 700px) {
  .shop .cal-head {
    padding: 12px 16px 10px;
  }

  .shop .kicker,
  .shop-note {
    display: none;
  }

  .shop-tabs {
    margin-top: 10px;
  }

  .coin-price {
    font-size: 11px;
  }

  .coin-price img {
    display: none;
  }

  .bundles {
    gap: 10px;
    margin-top: 12px;
  }

  .bundle {
    grid-template-columns: 44px 1fr;
    padding: 14px 10px 10px;
  }

  .bundle-art,
  .bundle-art img {
    height: 44px;
    max-height: 44px;
    max-width: 44px;
  }
}

@media (min-width: 640px) {
  #app {
    padding: 20px 16px 30px;
  }

  .hero {
    height: 520px;
  }

  .logo img {
    height: 40px;
  }

  .game-title img {
    height: 64px;
  }

  .stage {
    padding: 14px 18px 14px;
  }

  .jp small {
    font-size: 10px;
  }

  .jp b {
    font-size: 14px;
  }



  .coin-value {
    font-size: 19px;
  }

  .coin-value.jp-label {
    font-size: 14px;
  }

  .win-banner b {
    font-size: 38px;
  }

  .respin-bar {
    font-size: 11px;
  }

  .spin {
    width: 92px;
    height: 92px;
    border-radius: 46px;
  }

  .tool-icon {
    width: 52px;
    height: 52px;
  }

  .pay-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pay-card {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 10px 8px;
  }

  .pay-card dl {
    width: 100%;
  }

  .full-dialog {
    width: 480px;
    border-radius: 28px;
  }

  .sheet-dialog {
    width: 400px;
  }

  .sheet {
    padding: 30px 28px 26px;
  }
}

@media (min-width: 1040px) {
  .game {
    width: calc((100vh - 577px) * 1.6667 + 50px);
    min-width: 440px;
    max-width: 660px;
  }

  .window {
    max-width: none;
    min-width: 0;
  }

  #app {
    max-width: 1020px;
  }

  .top-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo bar account";
    gap: 14px;
    max-width: 1020px;
    padding: 30px 16px 12px;
  }

  .bar {
    justify-content: flex-end;
  }

  .bar .balance {
    flex: none;
  }

  .layout {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 24px;
  }

  .layout {
    align-items: stretch;
  }

  .paytable {
    height: 0;
    min-height: 100%;
    overflow-y: auto;
  }

  .side-head {
    pointer-events: none;
  }

  .chev {
    display: none;
  }

  .pay-body {
    display: block;
  }

  .paytable {
    scrollbar-color: auto;
    scrollbar-width: auto;
  }

  .paytable::-webkit-scrollbar {
    width: 4px;
  }

  .paytable::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
  }

  .paytable::-webkit-scrollbar-track {
    margin: 24px 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
  }

  .paytable::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #e8b83a;
  }

  .paytable::-webkit-scrollbar-thumb:hover {
    background: #f6d77a;
  }

  @supports not selector(::-webkit-scrollbar) {
    .paytable {
      scrollbar-width: thin;
      scrollbar-color: #e8b83a rgba(255, 255, 255, 0.08);
    }
  }

  .pay-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pay-card {
    grid-template-columns: 46px 1fr;
    justify-items: stretch;
    padding: 8px 10px 8px 6px;
  }

  .footer-inner {
    max-width: 1020px;
  }

  .footer-top {
    grid-template-columns: 1fr 1.6fr;
  }

  #app {
    padding-top: 24px;
  }

  .game-title img {
    height: 64px;
  }

  .jackpots {
    margin: 8px 0 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
