/* Jackpot Slots — Vegas neon 5×3 */
@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Teko:wght@600;700&display=swap');

.game-shell.js-mode {
  max-width: 480px;
  margin: 0 auto;
  background: #120528;
}
.game-shell.js-mode .game-top {
  display: none;
}
.game-shell.js-mode .game-stage {
  padding: 0;
  max-width: 100%;
  width: 100%;
  min-height: 100dvh;
  display: block;
}

.js-screen {
  position: relative;
  min-height: 100dvh;
  color: #fff;
  font-family: Teko, 'Trebuchet MS', sans-serif;
  overflow: hidden;
}
.js-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.js-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(90, 20, 160, 0.15) 0%,
    rgba(120, 30, 200, 0.05) 30%,
    rgba(60, 10, 120, 0.35) 65%,
    rgba(30, 5, 70, 0.75) 100%
  );
}
.js-ui {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: max(6px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  gap: 6px;
}

.js-top {
  display: grid;
  grid-template-columns: 40px auto 1fr 40px;
  align-items: center;
  gap: 6px;
}
.js-ico {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  padding: 0;
  background: linear-gradient(180deg, #7a3dff, #4a1490);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.js-ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent !important;
}
.js-rank {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #8a4dff, #5218a8);
  padding: 7px 16px 7px 10px;
  cursor: pointer;
  min-width: 100px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.js-rank img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.js-rank-bar {
  display: block;
  width: 56px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 4, 35, 0.65);
  border: 1px solid rgba(201, 160, 255, 0.5);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}
.js-wallet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  background: linear-gradient(180deg, #6b2ad8, #3a0f80);
  border: 2px solid #c9a0ff;
  border-radius: 999px;
  padding: 4px 8px 4px 6px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffe9a0;
}
.js-wallet img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: transparent !important;
}
.js-plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #5a8cff;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.js-piggy {
  position: absolute;
  right: 8px;
  top: 54px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  border: none;
  background: transparent;
  color: #ffe066;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  max-width: 58px;
  text-shadow: 0 1px 3px #000;
}
.js-piggy img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.js-brand {
  text-align: center;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.js-logo {
  width: min(340px, 92vw);
  height: auto;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 0 12px rgba(255, 40, 80, 0.65)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}
.js-jp {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  padding: 7px 22px;
  border-radius: 10px;
  background: linear-gradient(180deg, #7a2aff, #4a12b0);
  border: 2px solid #ffd24a;
  box-shadow:
    0 0 22px rgba(200, 80, 255, 0.85),
    0 0 10px rgba(255, 210, 80, 0.45),
    inset 0 1px 0 rgba(255, 220, 255, 0.35);
  min-width: 168px;
}
.js-jp-star {
  position: static;
  color: #ffe566;
  font-size: 1.35rem;
  text-shadow: 0 0 10px rgba(255, 220, 40, 1), 0 0 4px #ffaa00;
  line-height: 1;
  filter: drop-shadow(0 0 4px #ffcc00);
}
.js-jp-star.left,
.js-jp-star.right {
  left: auto;
  right: auto;
}
.js-jp b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.45rem;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 200, 255, 0.6);
  letter-spacing: 0.02em;
}
.js-jp img {
  width: 22px;
  height: 22px;
  background: transparent !important;
  filter: drop-shadow(0 0 4px rgba(255, 100, 180, 0.8));
}

.js-reels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  gap: 2px;
  margin: 8px auto 0;
  width: min(100%, 420px);
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, #6b24d0 0%, #4a14a8 35%, #38108c 100%);
  border: 3px solid #ff5cff;
  box-shadow:
    0 0 0 2px rgba(255, 120, 255, 0.45),
    0 0 36px rgba(220, 60, 255, 0.85),
    0 0 60px rgba(160, 40, 255, 0.45),
    inset 0 0 28px rgba(80, 20, 160, 0.55);
  flex: 1 1 auto;
  min-height: 230px;
  max-height: 46vh;
}
.js-reel {
  display: grid;
  grid-template-rows: repeat(var(--rows, 3), minmax(0, 1fr));
  gap: 3px;
  min-height: 0;
  border-right: 1px solid rgba(200, 120, 255, 0.28);
}
.js-reel:last-child {
  border-right: none;
}
.js-cell {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  overflow: visible;
  min-height: 0;
}
.js-cell img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  background: transparent !important;
  filter: brightness(1.18) saturate(1.35) contrast(1.05) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
.js-cell.is-hit {
  outline: 2px solid #ffe066;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(255, 220, 80, 0.85);
  z-index: 3;
}
.js-reels.is-spinning .js-reel {
  animation: js-blur 0.18s linear infinite;
  animation-delay: calc(var(--d, 0) * 40ms);
}
.js-reels.is-spinning .js-lines {
  opacity: 0.15;
}
@keyframes js-blur {
  0% {
    filter: brightness(1.2);
  }
  50% {
    filter: brightness(0.9) blur(0.4px);
  }
  100% {
    filter: brightness(1.2);
  }
}
.js-lines {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 0 4px rgba(255, 100, 255, 0.8));
}
.js-lines.is-idle {
  opacity: 0.88;
}
.js-lines.is-win {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(255, 220, 80, 1));
}

.js-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.js-foot-bar {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.2fr;
  gap: 6px;
  align-items: end;
  background: linear-gradient(180deg, #6a28b8, #3a1080);
  border: 2px solid #d080ff;
  border-radius: 14px;
  padding: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 18px rgba(180, 60, 255, 0.45),
    0 -2px 12px rgba(120, 40, 200, 0.35);
}
.js-invest,
.js-won {
  background: linear-gradient(180deg, #5a24b8, #2e0c70);
  border: 1px solid #c9a0ff;
  border-radius: 10px;
  padding: 6px 8px;
  text-align: center;
}
.js-invest {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px;
}
.js-invest button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(180deg, #ffe066, #e0b040);
  color: #3a1060;
  font-weight: 900;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}
.js-invest b,
.js-won b {
  display: block;
  font-size: 1.25rem;
  color: #ffe9a0;
  line-height: 1;
}
.js-invest small,
.js-won small {
  font-size: 0.78rem;
  color: #e8d8ff;
  letter-spacing: 0.04em;
}
.js-spin-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
}
.js-fast {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: #fff;
  justify-content: flex-end;
}
.js-fast input {
  accent-color: #7dff6a;
}
.js-spin {
  border: none;
  border-radius: 10px;
  padding: 10px 8px 5px;
  background: linear-gradient(180deg, #9dff72, #3ecc40 55%, #1a9028);
  color: #0a2a10;
  font-family: 'Russo One', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(40, 200, 80, 0.5);
  line-height: 1;
  text-transform: uppercase;
}
.js-spin small {
  display: block;
  font-family: Teko, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.9;
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.js-spin.stop {
  background: linear-gradient(180deg, #ffe9a0, #e0b040 55%, #b8860b);
  color: #3a1060;
}
.js-fs {
  text-align: center;
  font-style: normal;
  font-size: 0.85rem;
  color: #ffe066;
}
.js-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #cbb8ff;
  padding: 0 4px;
}
.js-ping {
  color: #7dff6a;
}

.js-modal {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(8, 2, 24, 0.72);
  padding: 16px;
}
.js-card {
  width: min(92vw, 360px);
  max-height: 80vh;
  overflow: auto;
  background: linear-gradient(180deg, #4a1a9a, #220850);
  border: 3px solid #f0d060;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}
.js-card-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.js-card-h h3 {
  margin: 0;
  font-family: 'Russo One', sans-serif;
  color: #ffe066;
}
.js-card-h button {
  border: none;
  background: #ff4d6d;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}
.js-rules p {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 0.95rem;
  margin: 0 0 10px;
}
.js-rules img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: transparent !important;
}
.js-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #e8d8ff;
}
.js-field select {
  padding: 8px;
  border-radius: 10px;
  border: 2px solid #c9a0ff;
  background: #1a0840;
  color: #fff;
  font-size: 1rem;
}
.js-apply {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, #7dff6a, #2ecc40);
  color: #0a2a10;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
}

.js-bonus-hint {
  text-align: center;
  color: #e8d8ff;
  margin: 0 0 12px;
}
.js-chests {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.js-chest {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 2px solid #f0d060;
  background: linear-gradient(160deg, #6b2ad8, #2a0a60);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 6px;
}
.js-chest img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  background: transparent !important;
}
.js-chest.open {
  background: linear-gradient(160deg, #2a1a50, #120830);
}
.js-chest b {
  font-size: 1.4rem;
  color: #ffe066;
}
.js-bonus-win {
  margin-top: 12px;
  text-align: center;
  font-size: 1.2rem;
  color: #ffe066;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.js-bonus-win img {
  width: 22px;
  height: 22px;
  background: transparent !important;
}

.js-bigwin {
  background: rgba(8, 2, 24, 0.82);
}
.js-bigwin-inner {
  text-align: center;
}
.js-bigwin-txt {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(2.2rem, 12vw, 3.2rem);
  color: #7dff6a;
  text-shadow: 0 0 20px rgba(80, 255, 120, 0.8), 0 4px 0 #148028;
  animation: js-pop 0.45s ease;
}
.js-bigwin-inner b {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  color: #ffe066;
}
@keyframes js-pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.js-extra-cat {
  display: block;
  width: 120px;
  margin: 0 auto 10px;
  background: transparent !important;
}

@media (max-height: 700px) {
  .js-reels {
    max-height: 36vh;
  }
  .js-logo {
    width: min(220px, 70vw);
  }
  .js-piggy {
    top: 48px;
  }
  .js-piggy img {
    width: 40px;
    height: 40px;
  }
}
