/* Jackpot Slots — Jungle Hunt 5×3 */
@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Teko:wght@600;700&display=swap');

.game-shell.jh-mode {
  max-width: 480px;
  margin: 0 auto;
  background: #0a1a08;
}
.game-shell.jh-mode .game-top {
  display: none;
}
.game-shell.jh-mode .game-stage {
  padding: 0;
  max-width: 100%;
  width: 100%;
  min-height: 100dvh;
  display: block;
}

.jh-screen {
  position: relative;
  min-height: 100dvh;
  color: #fff;
  font-family: Teko, 'Trebuchet MS', sans-serif;
  overflow: hidden;
}
.jh-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.jh-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 28, 12, 0.2) 0%,
    rgba(8, 20, 10, 0.12) 40%,
    rgba(4, 12, 6, 0.72) 100%
  );
}
.jh-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;
}

.jh-top {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 6px;
}
.jh-ico {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.jh-ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent !important;
}
.jh-top-mid {
  display: flex;
  gap: 4px;
}
.jh-pill {
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #5a9a30, #2d5a18);
  color: #fff;
  padding: 6px 10px;
  font-size: 1rem;
  cursor: pointer;
}
.jh-wallet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  background: linear-gradient(180deg, #3d6b28, #1e4014);
  border: 2px solid #a8d878;
  border-radius: 999px;
  padding: 4px 8px 4px 6px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffe9a0;
}
.jh-wallet img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: transparent !important;
}
.jh-plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #7dff6a;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.jh-mini-jp {
  position: absolute;
  left: 8px;
  top: 58px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: #ffe9a0;
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
  max-width: 64px;
  text-shadow: 0 1px 3px #000;
}
.jh-mini-jp img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: transparent !important;
  border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
.jh-piggy {
  position: absolute;
  right: 10px;
  top: 58px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: #ffe9a0;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  max-width: 56px;
}
.jh-piggy img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.jh-brand {
  text-align: center;
  margin-top: 4px;
}
.jh-logo {
  width: min(280px, 78vw);
  height: auto;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}
.jh-jp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
  padding: 6px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #5a3a18, #2a1a08);
  border: 2px solid #f0d060;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.jh-jp-lab {
  font-family: 'Russo One', sans-serif;
  letter-spacing: 0.12em;
  color: #ff4d6d;
  font-size: 0.85rem;
  text-shadow: 0 0 8px rgba(255, 60, 90, 0.8);
}
.jh-jp b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.25rem;
  color: #ffe9a0;
}
.jh-jp img {
  width: 18px;
  height: 18px;
  background: transparent !important;
}

.jh-reels-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr 18px;
  align-items: center;
  gap: 2px;
  margin: 8px auto 0;
  width: min(100%, 440px);
  flex: 1 1 auto;
  min-height: 200px;
  max-height: 42vh;
}
.jh-lines-tab {
  writing-mode: horizontal-tb;
  text-align: center;
  font-family: 'Russo One', sans-serif;
  font-size: 0.7rem;
  color: #1a1208;
  background: linear-gradient(180deg, #ffe066, #d4a017);
  border-radius: 4px;
  padding: 10px 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  align-self: center;
}
.jh-reels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2a3a18, #121c0a);
  border: 3px solid #8b6914;
  box-shadow: 0 0 24px rgba(40, 120, 40, 0.35), inset 0 0 20px rgba(0, 0, 0, 0.35);
  min-height: 200px;
}
.jh-reel {
  display: grid;
  grid-template-rows: repeat(var(--rows, 3), minmax(0, 1fr));
  gap: 4px;
  min-height: 0;
}
.jh-cell {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(40, 10, 80, 0.55);
  overflow: hidden;
  min-height: 0;
}
.jh-cell img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  background: transparent !important;
}
.jh-cell i {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 0.55rem;
  font-weight: 900;
  color: #7cff6a;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}
.jh-cell i.jp {
  color: #ffe066;
}
.jh-cell.is-hit {
  outline: 2px solid #ffe066;
  box-shadow: 0 0 14px rgba(255, 220, 80, 0.7);
}
.jh-reels.is-spinning .jh-reel {
  animation: js-blur 0.18s linear infinite;
  animation-delay: calc(var(--d, 0) * 40ms);
}
@keyframes js-blur {
  0% {
    filter: brightness(1.1);
  }
  50% {
    filter: brightness(0.85) blur(0.4px);
  }
  100% {
    filter: brightness(1.1);
  }
}
.jh-lines {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  pointer-events: none;
  z-index: 4;
}

.jh-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.jh-won {
  background: linear-gradient(180deg, #3a2a78, #1a1040);
  border: 2px solid #c9a0ff;
  border-radius: 40px 40px 16px 16px;
  padding: 8px 12px 6px;
  text-align: center;
}
.jh-won b {
  display: block;
  font-size: 1.55rem;
  color: #ffe066;
  line-height: 1;
  font-family: 'Russo One', sans-serif;
}
.jh-won small {
  font-size: 0.85rem;
  color: #e0d0ff;
  letter-spacing: 0.08em;
}
.jh-foot-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
}
.jh-invest {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, #3d6b28, #1e4014);
  border: 2px solid #a8d878;
  border-radius: 12px;
  padding: 6px 8px;
  text-align: center;
}
.jh-invest button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: #c4a574;
  color: #1a1208;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
}
.jh-invest b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 1.15rem;
  color: #ffe9a0;
  line-height: 1;
}
.jh-invest b img {
  width: 16px;
  height: 16px;
  background: transparent !important;
}
.jh-invest small {
  display: block;
  font-size: 0.72rem;
  color: #dfffd8;
}
.jh-fast-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 10px;
  background: linear-gradient(180deg, #ffe066, #e0b040);
  color: #1a1208;
  font-family: 'Russo One', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  min-width: 64px;
}
.jh-fast-btn.on {
  outline: 2px solid #fff;
  box-shadow: 0 0 12px rgba(255, 220, 80, 0.8);
}
.jh-spin {
  border: none;
  border-radius: 12px;
  padding: 10px 14px 6px;
  background: linear-gradient(180deg, #9dff6a, #3ecc40 55%, #1a8020);
  color: #0a2a10;
  font-family: 'Russo One', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(40, 200, 80, 0.45);
  line-height: 1;
  min-width: 96px;
}
.jh-spin small {
  display: block;
  font-family: Teko, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  opacity: 0.9;
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.jh-spin.stop {
  background: linear-gradient(180deg, #d8d8d8, #9a9a9a 55%, #666);
  color: #1a1208;
}
.jh-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #cbb8ff;
  padding: 0 2px;
}
.jh-ping {
  color: #7dff6a;
}

.jh-modal {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(8, 2, 24, 0.72);
  padding: 16px;
}
.jh-card {
  width: min(92vw, 360px);
  max-height: 80vh;
  overflow: auto;
  background: linear-gradient(180deg, #2d5a18, #143010);
  border: 3px solid #f0d060;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}
.jh-card-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.jh-card-h h3 {
  margin: 0;
  font-family: 'Russo One', sans-serif;
  color: #ffe066;
}
.jh-card-h button {
  border: none;
  background: #ff4d6d;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}
.jh-rules p {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 0.95rem;
  margin: 0 0 10px;
}
.jh-rules img,
.jh-rule-num {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: transparent !important;
}
.jh-rule-num {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffe066, #d4a017);
  color: #1a1208;
  font-family: 'Russo One', sans-serif;
  font-size: 1rem;
}
.jh-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #e8d8ff;
}
.jh-field select {
  padding: 8px;
  border-radius: 10px;
  border: 2px solid #a8d878;
  background: #12280c;
  color: #fff;
  font-size: 1rem;
}
.jh-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;
}

.jh-bonus-hint {
  text-align: center;
  color: #e8d8ff;
  margin: 0 0 12px;
}
.jh-chests {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.jh-chest {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 2px solid #f0d060;
  background: linear-gradient(160deg, #3d6b28, #2a0a60);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 6px;
}
.jh-chest img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  background: transparent !important;
}
.jh-chest.open {
  background: linear-gradient(160deg, #2a1a50, #120830);
}
.jh-chest b {
  font-size: 1.4rem;
  color: #ffe066;
}
.jh-bonus-win {
  margin-top: 12px;
  text-align: center;
  font-size: 1.2rem;
  color: #ffe066;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.jh-bonus-win img {
  width: 22px;
  height: 22px;
  background: transparent !important;
}

.jh-bigwin {
  background: rgba(8, 2, 24, 0.82);
}
.jh-bigwin-inner {
  text-align: center;
}
.jh-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;
}
.jh-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;
  }
}
.jh-extra-cat {
  display: block;
  width: 120px;
  margin: 0 auto 10px;
  background: transparent !important;
}

@media (max-height: 700px) {
  .jh-reels {
    max-height: 36vh;
  }
  .jh-logo {
    width: min(220px, 70vw);
  }
  .jh-piggy {
    top: 48px;
  }
  .jh-piggy img {
    width: 40px;
    height: 40px;
  }
}

.jh-bonus-card {
  width: min(96vw, 400px);
  background: linear-gradient(180deg, #4a2a78, #1a1040);
  border-color: #f0d060;
}
.jh-jp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  max-height: 50vh;
  overflow: auto;
}
.jh-jp-grid .jh-chest {
  aspect-ratio: 1;
  padding: 4px;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #6a4a98, #2a1848);
}
.jh-jp-grid .jh-chest img {
  width: 70%;
  height: 70%;
}
.jh-jp-grid .jh-chest b {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  font-size: 0.58rem;
  color: #ffe066;
  text-shadow: 0 1px 2px #000;
}
.jh-jp-grid .jh-chest.open {
  outline: 2px solid #ff6a3c;
  box-shadow: 0 0 12px rgba(255, 100, 40, 0.7);
}
