/* ---------- Auth dialog (PlayVerse login / start) ---------- */
.jg-auth { width: min(1040px, calc(100% - 24px)); border-radius: 40px; background: var(--jg-cream); }
.jg-auth__inner { position: relative; padding: clamp(24px, 7.7vw, 80px); display: grid; gap: 0; }
.jg-auth__close { position: absolute; top: clamp(12px, 3vw, 40px); right: clamp(12px, 3vw, 40px); }
.jg-auth__logo { width: min(180px, 60%); margin-inline: auto; aspect-ratio: 154 / 64; height: auto; object-fit: contain; }
.jg-auth h2 { margin-top: 12px; text-align: left; font-size: clamp(2rem, 1.4rem + 2.2vw, 4rem); font-weight: 700; letter-spacing: -0.04em; color: var(--jg-violet-strong); }
.jg-auth__invite { text-align: left; font-size: clamp(1rem, .9rem + .5vw, 1.5rem); color: var(--jg-muted); margin-top: 12px; }
.jg-auth form { display: grid; gap: 28px; margin-top: clamp(24px, 3vw, 40px); }
.jg-field { display: grid; gap: 12px; }
.jg-field label, .jg-field__label { font-size: clamp(1rem, .9rem + .3vw, 1.25rem); font-weight: 600; color: var(--jg-violet-strong); }
.jg-input-wrap { position: relative; display: flex; align-items: center; }
.jg-input-wrap .jg-input-ico { position: absolute; left: clamp(16px, 2vw, 28px); width: 24px; height: 24px; pointer-events: none; object-fit: contain; }
.jg-input, .jg-select, .jg-textarea {
  width: 100%; min-height: clamp(56px, 6vw, 80px); padding: 0 clamp(16px, 2vw, 28px); border-radius: 24px;
  border: 2px solid #eadcf8; background: #fffcf8; color: var(--jg-ink); font-size: clamp(1rem, .9rem + .4vw, 1.5rem);
  transition: border-color .2s, box-shadow .2s;
}
.jg-input-wrap .jg-input { padding-left: clamp(48px, 5.5vw, 68px); }
.jg-input-wrap .jg-input--eye { padding-right: 64px; }
.jg-textarea { min-height: 160px; padding-block: 18px; resize: vertical; }
.jg-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--jg-violet) 50%), linear-gradient(135deg, var(--jg-violet) 50%, transparent 50%); background-position: calc(100% - 28px) 50%, calc(100% - 21px) 50%; background-size: 7px 7px; background-repeat: no-repeat; padding-right: 52px; }
.jg-input:focus, .jg-select:focus, .jg-textarea:focus { outline: none; border-color: var(--jg-violet); box-shadow: 0 0 0 4px rgba(101,68,184,.15); }
.jg-input[aria-invalid="true"], .jg-select[aria-invalid="true"], .jg-textarea[aria-invalid="true"] { border-color: var(--jg-red); }
.jg-eye { position: absolute; right: 12px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 12px; display: grid; place-items: center; }
.jg-eye[aria-pressed="true"] img { opacity: .45; }
.jg-linklike--u { text-decoration: underline; text-underline-offset: 4px; }
.jg-eye:hover { background: var(--jg-lilac); }
.jg-error { color: #c8002a; font-size: .95rem; font-weight: 500; min-height: 1em; }
.jg-error:empty { display: none; }
.jg-check { display: flex; gap: 16px; align-items: flex-start; font-size: clamp(1rem, .9rem + .4vw, 1.5rem); color: var(--jg-muted); line-height: 1.3; }
.jg-check input { width: 32px; height: 32px; flex: 0 0 auto; accent-color: var(--jg-violet); margin: 0; }
.jg-check a { color: var(--jg-violet); font-weight: 600; }
.jg-auth__row { display: flex; justify-content: flex-end; margin-top: -8px; }
.jg-linklike { background: none; border: 0; padding: 0; color: var(--jg-violet-strong); font-weight: 600; font-size: clamp(1rem, .9rem + .4vw, 1.5rem); cursor: pointer; text-decoration: none; }
.jg-linklike:hover { text-decoration: underline; }
.jg-auth__submit { min-height: clamp(60px, 7vw, 88px); width: 100%; font-size: clamp(1.2rem, 1rem + .9vw, 2rem); }
.jg-auth__switch { text-align: center; font-size: clamp(1rem, .9rem + .4vw, 1.5rem); }
.jg-auth__demo { font-size: .92rem; text-align: center; color: var(--jg-muted); }
.jg-form-status { padding: 14px 18px; border-radius: 16px; font-weight: 600; }
.jg-form-status:empty { display: none; }
.jg-form-status--ok { background: #dff6ee; color: #1e7b59; }
.jg-form-status--bad { background: #ffe3e8; color: #b10026; }

/* ---------- Slot Player Pop-Up Dialog ---------- */
dialog.jg-dialog.jg-player,
#jg-player.jg-player {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1200px, calc(100vw - 32px)) !important;
  max-width: 1200px !important;
  height: auto;
  max-height: 94vh !important;
  border-radius: 28px;
  background: #090814;
  border: 2px solid rgba(255, 215, 0, 0.45);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 215, 0, 0.15);
  color: #fff;
  padding: 0;
  overflow: hidden !important; /* No scrollbar */
  z-index: 9999;
}

dialog.jg-dialog.jg-player::backdrop,
#jg-player::backdrop {
  background: rgba(6, 4, 14, 0.88);
  backdrop-filter: blur(8px);
}

.jg-player__head {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 70;
  pointer-events: none;
}

.jg-player__close {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  background: rgba(18, 14, 34, 0.92);
  color: #ffd700;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
  transition: transform 0.18s, background 0.18s, color 0.18s;
}

.jg-player__close:hover {
  transform: scale(1.1);
  background: #ffd700;
  color: #0c0b18;
}

.jg-player .jg-cabinet {
  border: 0;
  border-radius: 26px;
  box-shadow: none;
  background-color: #090814;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: clamp(14px, 2vh, 22px) clamp(16px, 2.5vw, 28px);
  color: #fff;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.jg-player .jg-cabinet::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(18, 14, 38, 0.88), rgba(7, 5, 15, 0.97) 80%);
  pointer-events: none;
  z-index: 1;
}
.jg-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 400; padding: 14px 22px; border-radius: 99px; background: var(--jg-violet-deep); color: #fff; font-weight: 600; box-shadow: var(--jg-shadow-lift); transition: transform .35s var(--jg-ease); max-width: calc(100% - 24px); text-align: center; }
.jg-toast.is-on { transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .jg-console { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jg-console .jg-spin, .jg-console .jg-readout:nth-child(2) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .jg-auth { border-radius: 28px; }
}
[data-contact-form] .jg-error:empty { display: block; }
[data-contact-form] .jg-error { min-height: 1.3em; margin-top: -4px; }
.jg-input-wrap .jg-input-ico { font-size: 18px; line-height: 24px; text-align: center; color: var(--jg-violet); }

/* ==========================================================================
   Luxury Slot Cabinet Stage (Inline Interactive Game Mini-Games)
   Modeled after AsianGinseng / Jodgame Vault Series (Nightfall, Astral, Quetzal)
   ========================================================================== */
.jg-slot-stage {
  margin: clamp(32px, 4vw, 56px) 0 clamp(48px, 6vw, 80px);
  position: relative;
}

.jg-cabinet {
  position: relative;
  border-radius: 32px;
  background-color: #0c0b18;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 2px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 0 40px rgba(212, 175, 55, 0.08);
  padding: clamp(20px, 3.2vw, 36px);
  color: #fff;
  overflow: hidden;
  font-family: inherit;
}

.jg-cabinet::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(20, 16, 42, 0.88), rgba(9, 8, 18, 0.98) 75%);
  pointer-events: none;
  z-index: 1;
}

.jg-cabinet > * {
  position: relative;
  z-index: 2;
}

/* Theme accent variations */
.jg-cabinet.cab--olympus { border-color: rgba(255, 215, 0, 0.6); box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 35px rgba(255, 215, 0, 0.15); }
.jg-cabinet.cab--fishing { border-color: rgba(6, 214, 160, 0.55); box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 35px rgba(6, 214, 160, 0.12); }
.jg-cabinet.cab--amazon { border-color: rgba(46, 196, 182, 0.6); box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 35px rgba(255, 159, 28, 0.15); }
.jg-cabinet.cab--candy { border-color: rgba(255, 93, 143, 0.65); box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 35px rgba(255, 93, 143, 0.18); }
.jg-cabinet.cab--egypt { border-color: rgba(212, 175, 55, 0.7); box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 40px rgba(212, 175, 55, 0.2); }
.jg-cabinet.cab--fire { border-color: rgba(255, 72, 0, 0.65); box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 35px rgba(255, 72, 0, 0.2); }
.jg-cabinet.cab--gem { border-color: rgba(0, 187, 249, 0.6); box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 35px rgba(241, 91, 181, 0.18); }
.jg-cabinet.cab--mystic { border-color: rgba(131, 56, 236, 0.65); box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 35px rgba(131, 56, 236, 0.22); }
.jg-cabinet.cab--halloween { border-color: rgba(255, 84, 0, 0.65); box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 35px rgba(114, 9, 183, 0.22); }
.jg-cabinet.cab--future { border-color: rgba(0, 245, 212, 0.6); box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 35px rgba(0, 245, 212, 0.18); }
.jg-cabinet.cab--vegas { border-color: rgba(255, 0, 127, 0.65); box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 35px rgba(255, 230, 0, 0.18); }
.jg-cabinet.cab--xmas { border-color: rgba(230, 57, 70, 0.6); box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 35px rgba(168, 218, 220, 0.2); }
.jg-cabinet.cab--anime { border-color: rgba(255, 112, 166, 0.65); box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 35px rgba(255, 112, 166, 0.2); }
.jg-cabinet.cab--duel { border-color: rgba(230, 57, 70, 0.65); box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 35px rgba(69, 123, 157, 0.2); }

/* Cabinet Header */
.jg-cab-top {
  text-align: center;
  margin-bottom: clamp(6px, 1vh, 12px);
  position: relative;
  z-index: 2;
}
.jg-cab-origin {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffd700;
  margin-bottom: 2px;
}
.jg-cab-title {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(255, 215, 0, 0.35);
  margin: 0 0 2px;
  line-height: 1.15;
}
.jg-cab-sub {
  font-size: clamp(0.76rem, 0.7rem + 0.2vw, 0.86rem);
  color: #cfc6f0;
  letter-spacing: 0.04em;
}

/* 3-Column Cabinet Body */
.jg-cab-body {
  display: grid;
  grid-template-columns: 190px minmax(480px, 1fr) 190px;
  gap: clamp(10px, 1.4vw, 18px);
  align-items: center;
  position: relative;
  z-index: 2;
  margin: clamp(4px, 0.8vh, 10px) 0;
}

/* Left Column: Mascot & Treasury */
.jg-cab-mascot {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  background: rgba(16, 12, 32, 0.75);
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 18px;
  padding: 12px 10px;
  text-align: center;
  min-height: 270px;
}
.jg-mascot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.jg-mascot-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.3);
  margin-bottom: 6px;
  background: rgba(0, 0, 0, 0.4);
}
.jg-mascot-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jg-mascot-desc {
  font-size: 0.68rem;
  line-height: 1.3;
  color: #b5afd1;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jg-treasury-box {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.jg-treasury-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5));
}
.jg-treasury-name {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd700;
}
.jg-treasury-count {
  font-size: 0.64rem;
  color: #a8a3c2;
}

/* Center Column: Reels in Ornate Gold Frame */
.jg-cab-center {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.jg-cab-frame {
  position: relative;
  background: linear-gradient(135deg, #ffd700 0%, #7d5b08 25%, #fff09c 50%, #87620a 75%, #ffd700 100%);
  padding: 6px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.8), inset 0 2px 6px rgba(255, 255, 255, 0.4);
}

.jg-cab-frame-inner {
  background: #080612;
  border-radius: 14px;
  padding: 8px;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.95);
}

.jg-cab-reels {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 8px;
}

.jg-cab-reel {
  position: relative;
  height: calc(var(--reel-cell, 78px) * 3);
  overflow: hidden;
  border-radius: 10px;
  background: rgba(16, 12, 30, 0.96);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9);
  --reel-cell: clamp(64px, 7.8vh, 84px);
}

.jg-cab-reel__strip {
  will-change: transform;
}

/* Symbol Card */
.jg-sym-card {
  height: var(--reel-cell, 78px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  background: linear-gradient(180deg, rgba(28, 22, 50, 0.75), rgba(14, 10, 28, 0.9));
  border: 1px solid rgba(255, 215, 0, 0.24);
  border-radius: 8px;
  margin: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.jg-sym-glyph {
  font-size: calc(var(--reel-cell, 78px) * 0.46);
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

.jg-sym-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffd700;
  text-transform: uppercase;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.jg-sym-card.is-win {
  animation: jg-sym-win-pulse 0.75s infinite alternate;
  border-color: #ffd700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.85), inset 0 0 12px rgba(255, 215, 0, 0.5);
  z-index: 5;
}

@keyframes jg-sym-win-pulse {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.08); filter: brightness(1.25); }
}

/* Right Column: Reactor / Power Accumulator */
.jg-cab-reactor {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  background: rgba(16, 12, 32, 0.75);
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 18px;
  padding: 12px 10px;
  text-align: center;
  min-height: 270px;
}

.jg-reactor-totem {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jg-reactor-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.5));
  animation: jg-totem-float 3s ease-in-out infinite;
  margin-bottom: 4px;
}

@keyframes jg-totem-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.jg-reactor-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd700;
}

.jg-reactor-phase {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  margin: 1px 0 4px;
}

.jg-reactor-bar {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 4px 0;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.jg-reactor-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd700, #ffaa00);
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
  transition: width 0.3s ease;
}

.jg-reactor-stat {
  font-size: 0.66rem;
  color: #b5afd1;
}

.jg-reactor-tiers {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 6px;
}

.jg-tier-pill {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.65rem;
  font-weight: 700;
  color: #8c86ac;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.jg-tier-pill.is-active {
  background: #ffd700;
  color: #0c0b18;
  border-color: #fff;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

.jg-reactor-perk {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
}

.jg-perk-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffd700;
}

/* Status message bar below reels */
.jg-cab-status {
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(12, 9, 24, 0.85);
  border: 1px solid rgba(255, 215, 0, 0.2);
  text-align: center;
  color: #ffd700;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bottom Console */
.jg-cab-console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(12, 9, 24, 0.95);
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  border-radius: 18px;
  padding: 10px clamp(14px, 2vw, 24px);
  margin-top: clamp(6px, 1vh, 12px);
  position: relative;
  z-index: 2;
}

.jg-cab-stat-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.jg-cab-stat-block span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8a2c8;
  font-weight: 600;
}

.jg-cab-stat-block strong {
  font-size: clamp(1.1rem, 0.95rem + 0.4vw, 1.45rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.jg-cab-stat-block strong.is-gold {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.jg-cab-bet-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jg-cab-bet-select {
  min-height: 42px;
  padding: 0 32px 0 14px;
  border-radius: 10px;
  background: #1c1634;
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #ffd700 50%), linear-gradient(135deg, #ffd700 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.jg-cab-bet-select:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25);
}

.jg-cab-spin-btn {
  min-width: clamp(130px, 12vw, 180px);
  min-height: 48px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #1d4ed8 100%);
  color: #fff;
  font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
  transition: transform 0.15s var(--jg-ease), filter 0.15s, box-shadow 0.15s;
}

.jg-cab-spin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.6);
}

.jg-cab-spin-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.jg-cab-spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

/* --------------------------------------------------------------------------
   Auth Gate Overlay for Pop-Up Slot Cabinet
   (When player is not logged in: "играть можно только после входа в аккаунт")
   -------------------------------------------------------------------------- */
.jg-cab-gate-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(8, 6, 16, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(16px, 3vw, 36px);
  border-radius: 26px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.jg-cab-gate-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.jg-cab-gate-badge {
  width: clamp(60px, 7vh, 84px);
  height: clamp(60px, 7vh, 84px);
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.jg-cab-gate-title {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.jg-cab-gate-desc {
  max-width: 520px;
  font-size: clamp(0.85rem, 0.8rem + 0.2vw, 1.05rem);
  line-height: 1.45;
  color: #cfc6f0;
  margin: 0 0 16px;
}

.jg-cab-gate-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.jg-cab-gate-perk {
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffd700;
}

.jg-cab-gate-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.jg-cab-gate-actions .jg-btn {
  min-width: 150px;
  min-height: 48px;
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  dialog.jg-dialog.jg-player,
  #jg-player.jg-player {
    width: 96vw !important;
    max-height: 96vh !important;
    overflow-y: auto !important;
  }
  .jg-cab-body {
    grid-template-columns: 1fr;
  }
  .jg-cab-mascot, .jg-cab-reactor {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    min-height: auto;
  }
  .jg-treasury-box, .jg-reactor-perk {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0;
    padding-left: 12px;
  }
}

@media (max-width: 600px) {
  .jg-cab-mascot, .jg-cab-reactor {
    grid-template-columns: 1fr;
  }
  .jg-treasury-box, .jg-reactor-perk {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0;
    padding-top: 8px;
  }
  .jg-cab-reels {
    grid-template-columns: repeat(5, minmax(56px, 1fr));
    gap: 4px;
  }
  .jg-cab-console {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .jg-cab-stat-block {
    align-items: center;
  }
  .jg-cab-bet-ctrl {
    justify-content: center;
  }
  .jg-cab-spin-btn {
    width: 100%;
  }
}
