:root {
  --bg: #0c1220;
  --bg2: #152038;
  --gold: #d4a017;
  --text: #f4f0e6;
  --muted: #9aa6bf;
  --line: rgba(255, 255, 255, 0.12);
  --ok: #2ecc71;
  --danger: #e74c3c;
  --card: rgba(255, 255, 255, 0.06);
  --radius: 18px;
  --font-display: "Segoe UI", "Trebuchet MS", sans-serif;
  --font-body: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  overflow-x: hidden;
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 10% -10%, #2a1a08 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #12304a 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; }

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
}

.brand .sun {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #ffb347, #ff7a18, #ffd36a, #ffb347);
  box-shadow: 0 0 18px rgba(255, 176, 60, 0.55);
}

.brand .sun-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(255, 176, 60, 0.55);
  border: 1.5px solid rgba(255, 220, 140, 0.45);
  flex-shrink: 0;
}

.wallet-chip, .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 700;
}

.coin { color: var(--gold); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: end;
  min-height: 300px;
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(12, 8, 4, 0.88) 0%, rgba(12, 8, 4, 0.45) 48%, transparent 72%),
    var(--hero-cover, none) center / cover no-repeat,
    linear-gradient(180deg, #2a1c10, #120c08);
  border: 1px solid rgba(212, 160, 23, 0.28);
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hero-copy { position: relative; z-index: 1; }

.hero h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-family: var(--font-display);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.hero p {
  margin: 0 0 16px;
  color: #e8d9b5;
  max-width: 36ch;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.hero-play {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 230, 160, 0.45);
  background: linear-gradient(180deg, #f0d078, #c48a22);
  color: #2a1408;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 0 #6a4208, 0 8px 20px rgba(0, 0, 0, 0.35);
}

.hero-play:hover { filter: brightness(1.06); }

.hero-art {
  height: 230px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 220, 140, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  background: #1a1208;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}

.hero:hover .hero-art img { transform: scale(1.06); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head h3 { margin: 0; font-size: 1.2rem; }

.section-head span { color: var(--muted); font-size: 0.9rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.game-card {
  border-radius: var(--radius);
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-align: left;
  color: inherit;
  width: 100%;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 160, 23, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.game-card .thumb {
  height: 132px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #120c08;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.game-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.game-card:hover .thumb img { transform: scale(1.06); }

.game-card h4 { margin: 0 0 4px; font-size: 1.05rem; padding: 0 4px; }

.game-card p { margin: 0; color: var(--muted); font-size: 0.88rem; padding: 0 4px 4px; }

.admin-link {
  color: var(--muted);
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--muted);
}

.admin-link:hover { color: var(--gold); }
/* Game shell */

.game-shell {
  min-height: 100vh;
  background: radial-gradient(800px 400px at 50% -10%, color-mix(in srgb, var(--g-primary) 35%, transparent), transparent),
    var(--g-secondary);
  display: flex;
  flex-direction: column;
}

.game-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.game-title {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
  text-align: center;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.2rem;
}

.game-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 12px 16px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 20;
}
/* Slot (legacy hooks kept for admin previews) */

.slot-wrap { display: flex; flex-direction: column; gap: 12px; height: 100%; }

.jackpots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.jackpots div {
  text-align: center;
  padding: 6px 4px;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(212,160,23,0.35);
  font-size: 0.72rem;
}

.jackpots strong { display: block; color: var(--gold); font-size: 0.85rem; }

.reels {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  background: rgba(0,0,0,0.45);
  border: 2px solid rgba(212,160,23,0.5);
  border-radius: 16px;
  padding: 8px;
  min-height: 260px;
}

.reel {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
}

.cell {
  border-radius: 10px;
  background: linear-gradient(180deg, #3a2a16, #1d140a);
  border: 1px solid rgba(255,220,140,0.2);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffe6a3;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cell.win {
  box-shadow: 0 0 0 2px #2ecc71, 0 0 16px rgba(46, 204, 113, 0.55);
  transform: scale(1.04);
}

.slot-hud {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 8px;
  align-items: center;
}

.bet-box, .win-box {
  background: rgba(0,0,0,0.4);
  border-radius: 14px;
  padding: 8px 10px;
  border: 1px solid var(--line);
}

.bet-box .row, .win-box .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.lbl { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; }

.val { font-size: 1.15rem; font-weight: 800; }

.spin-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6dff9a, #1f9d4d 60%, #0f6b30);
  color: #052410;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.35);
}

.spin-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.pm {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.1); color: #fff; font-weight: 800;
}

.fast-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toggle {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.8rem;
  border: 1px solid var(--line);
}

.toggle.on { background: rgba(46,204,113,0.25); border-color: #2ecc71; }
/* Shoot games */

.shoot-wrap { display: flex; flex-direction: column; gap: 10px; height: 100%; }

.shoot-canvas {
  width: 100%;
  flex: 1;
  min-height: 360px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #041018;
  touch-action: none;
  display: block;
}

.shoot-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.power-btns { display: flex; gap: 6px; }

.power-btns button {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid var(--line);
}

.power-btns button.active {
  background: color-mix(in srgb, var(--g-accent) 40%, transparent);
  border-color: var(--g-accent);
}
/* Admin */

.api-player-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: linear-gradient(90deg, #1a1040, #2a1858);
  border-bottom: 1px solid rgba(232, 185, 35, 0.35);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.api-player-banner b { color: #ffe08a; }

.admin-page { max-width: 960px; margin: 0 auto; padding: 20px 16px 48px; }
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.admin-tab {
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}
.admin-tab.active {
  background: linear-gradient(180deg, #ffd24a, #e8b923);
  color: #1a1208;
  border-color: transparent;
}
.api-user-row {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.api-user-row:last-child { border-bottom: 0; }
.api-key-box {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  background: #0006;
  padding: 8px 10px;
  border-radius: 8px;
  word-break: break-all;
}
.rtp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.rtp-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  color: #9aa;
}
.stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stat-pills span {
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.admin-card h3 { margin: 0 0 10px; }

.form-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.form-row input, .form-row textarea, .login-box input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: #fff;
}

.btn {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--gold);
  color: #1a1208;
  font-weight: 800;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn.danger { background: var(--danger); color: #fff; }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-box {
  max-width: 360px;
  margin: 80px auto;
  padding: 24px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}

.login-box h1 { margin-top: 0; font-size: 1.4rem; }

.muted { color: var(--muted); font-size: 0.85rem; }

.json-view {
  width: 100%;
  min-height: 180px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px;
    align-items: stretch;
  }
  .hero-art { height: 160px; order: -1; }
  .hero h2 { font-size: 1.7rem; }
  .game-card .thumb { height: 118px; }
  .form-row { grid-template-columns: 1fr; }
  .slot-hud { grid-template-columns: 1fr 1fr; }
  .spin-btn { grid-column: 1 / -1; width: 100%; height: 56px; border-radius: 14px; }
}
/* ===== Hero Chest ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â match reference image 1 ===== */

.game-shell.hc-mode .game-top { display: none; }

.game-shell.hc-mode .game-stage { max-width: min(440px, 100%); padding: 0; margin: 0 auto; width: 100%; box-sizing: border-box; }

.game-shell.hc-mode {
  background:
    repeating-linear-gradient(90deg, #5a1010 0 18px, #4a0c0c 18px 36px),
    radial-gradient(ellipse at 50% 0%, #8b1e14, #2a0808 70%);
  background-blend-mode: multiply, normal;
}

.hc-screen {
  position: relative;
  min-height: 100%;
  padding: 8px;
  color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.hc-chrome { box-sizing: border-box; width: 100%; max-width: 100%; overflow: hidden;
  border: 3px solid #d4af37;
  border-radius: 14px;
  background: linear-gradient(180deg, #5c1212 0%, #3a0a0a 55%, #2a0808 100%);
  box-shadow: 0 0 0 1px #8a5a10, inset 0 0 30px rgba(0,0,0,.35);
  padding: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hc-hero {
  position: relative;
  width: 100%;
  min-height: 220px;
  height: clamp(200px, 42vw, 280px);
  overflow: hidden;
  border-radius: 11px 11px 0 0;
  margin: 0;
}

.hc-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  display: block;
}

.hc-hero-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,240,200,.08) 0%, transparent 40%),
    linear-gradient(180deg, transparent 62%, rgba(60,10,10,.4) 88%, #3a0a0a 100%);
  pointer-events: none;
}

.hc-hero-brand {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 10px 12px 18px;
  text-align: center;
}

.hc-hero-logo {
  width: clamp(78px, 22vw, 118px);
  height: clamp(78px, 22vw, 118px);
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.45));
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.hc-hero-title {
  font-family: "Cinzel", "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.35rem, 5.2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  color: #f6d978;
  text-shadow:
    0 1px 0 #8a5a10,
    0 2px 0 #6a4010,
    0 3px 8px rgba(0,0,0,.55),
    0 0 18px rgba(255,210,80,.35);
  -webkit-text-stroke: .4px #5a3208;
}

.hc-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 4px;
}

.hc-toolbar-left, .hc-toolbar-right {
  display: flex; align-items: center; gap: 6px;
}

.hc-circle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid #d4af37; background: radial-gradient(circle at 35% 30%, #7a3018, #3a1008);
  color: #ffe7a8; font-weight: 800; font-size: .95rem; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,220,140,.25), 0 2px 4px rgba(0,0,0,.35);
  flex-shrink: 0;
}

.hc-circle.off { opacity: .55; filter: grayscale(.4); }

.hc-marquee {
  background: linear-gradient(180deg, #e74c3c, #8b1a12 70%, #6a120c);
  border: 1.5px solid #f0c27a;
  border-radius: 10px;
  clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%);
  padding: 6px 14px; font-size: .62rem; color: #ffe9c8; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: center; min-width: 0;
}

.hc-wingbar {
  position: relative;
  margin: 2px 10px 6px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(90deg, #4a120c 0%, #2e0a08 45%, #4a120c 100%);
  border: 1px solid rgba(212,175,55,.35);
}
.hc-wing {
  width: 100%;
  height: 56px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  opacity: 1;
  background: #3a0a0a;
  display: block;
}

.hc-wingbar-inner {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  box-sizing: border-box;
}

.hc-round-text { font-size: .72rem; color: #fff; text-shadow: 0 1px 2px #000; }

.hc-hex {
  border: 2px solid #f0d78c;
  background: linear-gradient(180deg, #e74c3c, #922b21);
  color: #fff; font-weight: 800;
  padding: 6px 14px;
  clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
  min-width: 118px;
  display: flex; flex-direction: column; align-items: center; line-height: 1.1;
}

.hc-hex span { font-size: .62rem; opacity: .95; }

.hc-hex strong { font-size: .95rem; }

.hc-ping {
  justify-self: end; color: #f1c40f; font-weight: 800; font-size: .78rem;
  display: flex; align-items: center; gap: 4px;
}

.hc-board { padding: 0 10px;
  display: grid;
  grid-template-columns: minmax(36px, 48px) minmax(0, 1fr) minmax(36px, 48px);
  gap: 3px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hc-side { display: flex; flex-direction: column; gap: 8px; }

.hc-chair {
  position: relative;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,.45);
  background: rgba(0,0,0,.25);
}

.hc-chair-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.hc-chair.occupied .hc-av {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: #5dade2; color: #fff; font-weight: 800; font-size: .72rem;
  display: grid; place-items: center; border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.45);
  z-index: 1;
}

.hc-chair.occupied .hc-av.b { background: #48c9b0; }
.hc-chair.occupied .hc-av.c { background: #e67e22; }
.hc-chair.occupied .hc-av.d { background: #9b59b6; }
.hc-chair.occupied .hc-av.e { background: #e74c3c; }
.hc-chair.occupied .hc-av.me {
  background: linear-gradient(180deg, #f4d03f, #d4a017);
  color: #3a2200;
  border-color: #fff6c8;
}

.hc-chair.occupied.is-me {
  box-shadow: 0 0 0 1.5px rgba(255, 220, 100, .75), inset 0 0 12px rgba(255, 200, 80, .15);
}

.hc-chair.occupied em {
  position: absolute; bottom: 2px; left: 0; right: 0; text-align: center;
  font-style: normal; font-size: .7rem; font-weight: 900; color: #ffe566;
  text-shadow: 0 1px 0 #5a3a00, 0 2px 4px #000;
  z-index: 1;
  letter-spacing: .02em;
}

.hc-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.hc-box {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-width: 0;
  border: 2px solid #d4af37;
  border-radius: 4px;
  background: linear-gradient(180deg, #3b1a12, #1a0a08);
  padding: 3px;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
}

.hc-box.king {
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #c9a22755, #1a0a08 70%);
}

.hc-box.selected {
  border-color: #ffe66d;
  box-shadow: 0 0 0 2px #ffe66d, 0 0 14px rgba(255,230,109,.55);
}

.hc-box.selected .hc-sq {
  border-color: #ffe66d;
  box-shadow: inset 0 0 0 2px #e74c3c, 0 0 10px rgba(255,230,109,.65);
}
/* Inner square with yellow + red line */

.hc-sq {
  width: 78%;
  aspect-ratio: 1 / 1;
  margin: auto 0 2px;
  border-radius: 6px;
  border: 2px solid #f1c40f;
  box-shadow: inset 0 0 0 2px #c0392b;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 210, 120, .16), transparent 58%),
    linear-gradient(180deg, #4a2010, #1a0a08);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.hc-box.king .hc-sq {
  width: 90%;
  margin: 0;
  border-color: #f1c40f;
  box-shadow: inset 0 0 0 2px #c0392b, 0 0 12px rgba(241,196,15,.25);
}

.hc-sq img,
.hc-chest {
  width: 92%;
  height: 92%;
  object-fit: contain;
  display: block;
  background: transparent;
}

.hc-box.king .hc-sq img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.hc-num {
  position: absolute; top: 4px; left: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe66d, #b8860b);
  color: #3a1c08; font-size: .65rem; font-weight: 900;
  display: grid; place-items: center;
  border: 1px solid #fff2b0;
}

.hc-frac {
  position: absolute; top: 4px; right: 5px;
  font-size: .62rem; font-weight: 800; color: #f7e07a;
}

.hc-mult {
  font-size: .72rem; font-weight: 900; color: #fff;
  text-shadow: 0 1px 2px #000; margin-bottom: 2px; line-height: 1;
}

.hc-footer-panel { padding: 0 10px; box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.hc-keys {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.hc-key {
  border: 1.5px solid #8a6a2a;
  border-radius: 8px;
  background: linear-gradient(180deg, #3a1510, #1c0a08);
  color: #f6e2a4;
  padding: 4px 2px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 0;
}

.hc-key.active {
  border-color: #ffe66d;
  box-shadow: 0 0 0 1.5px rgba(255, 230, 109, 0.85), 0 0 10px rgba(255, 214, 80, 0.45);
}

.hc-key-art {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 5px;
}

.hc-key-label {
  font-weight: 900;
  font-size: .72rem;
  color: #f6e2a4;
  letter-spacing: 0.02em;
  line-height: 1;
}

.hc-status-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 34px;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.hc-truck, .hc-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #d4af37;
  padding: 0;
  overflow: hidden;
  background: #1a0808;
}

.hc-truck img, .hc-social-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hc-today-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d4af37;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  padding: 7px 10px;
  min-height: 40px;
}

.hc-today-label {
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.hc-today-val {
  font-weight: 900;
  color: #f0d78c;
  font-size: .95rem;
}

.hc-g {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.hc-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #f0d78c, #c9a227 55%, #9a7018);
  border: 1px solid #fff1c2;
  border-radius: 999px;
  padding: 7px 12px;
  min-height: 40px;
  color: #2a1408;
  font-weight: 900;
}

.hc-bal-val { font-size: .95rem; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.35); }

.hc-plus {
  appearance: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
  font: inherit;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.85);
  display: grid;
  place-items: center;
  font-size: .85rem;
  color: #fff;
  line-height: 1;
}

.hc-results {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}

.hc-result-label {
  font-family: Georgia, "Times New Roman", serif;
  color: #f0d78c;
  font-weight: 700;
  font-size: .95rem;
}

.hc-result-row {
  display: flex;
  gap: 5px;
  flex: 1;
  overflow-x: auto;
  align-items: center;
}

.hc-result-empty { color: #8899aa; }

.hc-res {
  position: relative;
  flex: 0 0 auto;
}

.hc-res img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #d4af37;
  display: block;
}

.hc-res.is-new .hc-new {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #e74c3c;
  color: #fff;
  font-size: .55rem;
  font-style: normal;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 6px;
  line-height: 1.2;
  white-space: nowrap;
}

.hc-modal {
  position:absolute; inset:0; z-index:10;
  background: rgba(8, 4, 2, .72);
  display:grid; place-items:center;
  padding: 12px;
}

.hc-modal[hidden] { display:none !important; }

.hc-modal-card {
  width:min(320px,92%);
  background: linear-gradient(180deg,#6b3b1e,#2a140c);
  border:2px solid #e0b35a; border-radius:18px; padding:16px; text-align:center;
  box-shadow: 0 12px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(255,220,140,.2) inset;
}

.hc-modal-card.rules,
.hc-modal-card.treasure {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 200, 80, .18), transparent 55%),
    linear-gradient(180deg, #7a4522 0%, #3a1c0e 55%, #1a0c06 100%);
}

.hc-modal-card.result {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.hc-result-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 22px 18px;
  border-radius: 22px;
  overflow: hidden;
  border: 2.5px solid #e8c56a;
  box-shadow:
    0 0 0 3px rgba(90, 40, 10, .85),
    0 16px 40px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,230,160,.35);
  min-height: 360px;
}

.hc-result-panel-bg {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.05) contrast(1.05);
}

.hc-result-rays {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -40%);
  background: conic-gradient(
    from 0deg,
    rgba(255, 220, 120, .55),
    transparent 12%,
    rgba(255, 240, 180, .45) 18%,
    transparent 30%,
    rgba(255, 255, 255, .35) 40%,
    transparent 55%,
    rgba(255, 200, 80, .5) 70%,
    transparent
  );
  opacity: .5;
  border-radius: 50%;
  animation: hc-spin-rays 5s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes hc-spin-rays { to { transform: translate(-50%, -40%) rotate(360deg); } }

.hc-result-art {
  position: relative;
  z-index: 2;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  margin-top: 6px;
}

.hc-result-chest {
  width: 150px !important;
  height: 150px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  background: transparent !important;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.55)) drop-shadow(0 0 16px rgba(255,200,80,.35));
  animation: hc-chest-pop .65s ease;
}

@keyframes hc-chest-pop {
  from { opacity: 0; transform: scale(.72) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.hc-result-banner {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  color: #fff6d0;
  text-shadow: 0 1px 0 #6a3a00, 0 0 12px rgba(255,200,60,.55);
}

.hc-modal-card.result.is-win .hc-result-banner { color: #ffe566; }
.hc-modal-card.result.is-lose .hc-result-banner { color: #ffd0b8; letter-spacing: .14em; }
.hc-modal-card.result.is-lose .hc-result-rays { opacity: .22; filter: grayscale(.4); }
.hc-modal-card.result.is-lose .hc-result-chest { filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)) grayscale(.15) brightness(.92); }

.hc-result-stage .hc-times,
.hc-result-stage .hc-result-line,
.hc-result-stage .hc-ok {
  position: relative;
  z-index: 2;
}

.hc-times {
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffe08a;
  margin: 6px 0 10px;
  text-shadow: 0 2px 0 #5a2e00, 0 0 14px rgba(255,200,80,.45);
}

.hc-result-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 14px;
  padding: 8px 12px;
  color: #fff6e8;
  font-size: .92rem;
  background: rgba(20, 8, 2, .45);
  border: 1px solid rgba(232, 197, 106, .35);
  border-radius: 12px;
  box-sizing: border-box;
}

.hc-result-line b { color: #ffe08a; }

.hc-ok {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0d078, #c48a22 55%, #9a6412);
  color: #2a1408;
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 0 3px 0 #6a4208, 0 6px 16px rgba(0,0,0,.35);
}

.hc-modal-card img { width:140px; height:140px; object-fit:cover; border-radius:14px; }
/* HC mobile responsive */

.hc-screen { width: 100%; max-width: 100%; box-sizing: border-box; overflow-x: hidden; }

.hc-footer-panel { padding: 0 10px; box-sizing: border-box; width: 100%; max-width: 100%; box-sizing: border-box; }

.hc-today-pill, .hc-balance-pill { min-width: 0; max-width: 100%; }

.hc-today-label { font-size: .62rem; }

.hc-bal-val, .hc-today-val { font-size: .82rem; }

.hc-key-art { width: 26px; height: 26px; }

.hc-key-label { font-size: .68rem; }

.hc-chair { background: #3a0a0a; height: 58px; }

.hc-mult { font-size: .58rem; }

.hc-frac { font-size: .52rem; }

.hc-num { width: 15px; height: 15px; font-size: .55rem; }

.hc-sq { width: 74%; }

.hc-marquee { font-size: .58rem; }

@media (max-width: 420px) {
  .game-shell.hc-mode .game-stage { max-width: 100%; }
  .hc-screen { padding: 4px; }
  .hc-chrome { padding: 6px; border-width: 2px; border-radius: 10px; gap: 6px; }
  .hc-brand-mini span { font-size: .95rem; }
  .hc-brand-mini img { width: 28px; height: 28px; }
  .hc-circle { width: 30px; height: 30px; }
  .hc-wing {
  width: 100%;
  height: 54px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  opacity: .95;
  background: linear-gradient(90deg, #6b2a12, #8a3a18 50%, #6b2a12);
  display: block;
}
  .hc-wingbar-inner { padding: 0 4px; }
  .hc-round-text { font-size: .58rem; line-height: 1.15; }
  .hc-hex { min-width: 96px; padding: 4px 10px; }
  .hc-hex span { font-size: .55rem; }
  .hc-hex strong { font-size: .82rem; }
  .hc-ping { font-size: .62rem; }
  .hc-board { padding: 0 10px;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 2px;
  }
  .hc-chair { background: #3a0a0a; height: 48px; border-radius: 6px; }
  .hc-chair.occupied .hc-av { width: 22px; height: 22px; font-size: .62rem; top: 4px; }
  .hc-chair.occupied em { font-size: .55rem; }
  .hc-grid3 { gap: 3px; }
  .hc-box { padding: 2px; border-width: 1.5px; }
  .hc-sq { width: 72%; border-radius: 4px; }
  .hc-mult { font-size: .5rem; margin-bottom: 1px; }
  .hc-keys { gap: 3px; max-width: 240px; }
  .hc-key { padding: 3px 2px 2px; border-radius: 7px; }
  .hc-key-art { width: 22px; height: 22px; }
  .hc-key-label { font-size: .62rem; }
  .hc-status-row {
    grid-template-columns: 30px minmax(0, 1.1fr) minmax(0, 1fr) 30px;
    gap: 4px;
  }
  .hc-truck, .hc-social-btn { width: 30px; height: 30px; }
  .hc-today-pill, .hc-balance-pill { padding: 5px 7px; min-height: 30px; gap: 4px; }
  .hc-today-label { font-size: .52rem; }
  .hc-g { width: 14px; height: 14px; }
  .hc-plus { width: 15px; height: 15px; font-size: .7rem; }
  .hc-result-label { font-size: .8rem; }
  .hc-res img { width: 24px; height: 24px; }
}

@media (max-width: 360px) {
  .hc-board { padding: 0 10px; grid-template-columns: 28px minmax(0, 1fr) 28px; }
  .hc-chair { background: #3a0a0a; height: 44px; }
  .hc-status-row {
    grid-template-columns: 28px minmax(0, 1fr) minmax(0, 0.95fr) 28px;
  }
  .hc-today-label { display: none; }
  .hc-today-pill::before {
    content: "WIN";
    font-size: .55rem;
    font-weight: 800;
    color: #fff;
  }
}

@media (max-height: 760px) and (max-width: 430px) {
  .hc-wing {
  width: 100%;
  height: 54px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  opacity: .95;
  background: linear-gradient(90deg, #6b2a12, #8a3a18 50%, #6b2a12);
  display: block;
}
  .hc-chair { background: #3a0a0a; height: 40px; }
  .hc-key-art { width: 20px; height: 20px; }
  .hc-keys { max-width: 220px; }
  .hc-marquee { font-size: .48rem; padding: 5px 10px; }
  .hc-hero { min-height: 140px; height: 148px; }
  .hc-hero-logo { width: 72px; height: 72px; }
}

.hc-bet-chip {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.75);
  border: 1px solid #f1c40f;
  color: #ffe66d;
  font-size: .55rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 8px;
  z-index: 3;
}

.hc-box.is-hl {
  z-index: 3;
  border-color: #ffe566 !important;
  box-shadow:
    0 0 0 3px #ffe566,
    0 0 0 6px rgba(255, 120, 40, .5),
    0 0 18px 4px rgba(255, 200, 40, .75);
  transform: scale(1.04);
  filter: brightness(1.12);
}
.hc-box.hc-win .hc-sq {
  border-color: #2ecc71;
  box-shadow: inset 0 0 0 2px #27ae60, 0 0 12px rgba(46,204,113,.55);
}

.hc-box.can-bet:active { transform: scale(0.98); }

.hc-rules-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffe08a;
  margin-bottom: 10px;
}

.hc-rules {
  text-align: left;
  color: #f5e6c8;
  font-size: .82rem;
  line-height: 1.35;
  padding-left: 18px;
  margin: 0 0 14px;
}

.hc-rules li { margin-bottom: 8px; }

.hc-treasure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.hc-treasure-item {
  background: rgba(0,0,0,.35);
  border: 1px solid #d4af37;
  border-radius: 10px;
  padding: 6px;
}

.hc-treasure-item img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; }

.hc-treasure-item span { display:block; color:#ffe08a; font-weight:800; margin-top:4px; }

.hc-modal-note { color:#d8c39a; font-size:.8rem; margin: 0 0 12px; }

.hc-round-text small { color:#f1c40f; font-weight:800; letter-spacing:.04em; }

.hc-key:disabled, .hc-box:disabled { opacity: .75; cursor: default; }
/* ——— Greedy Pizza ——— */
.game-shell.gp-mode .game-top { display: none; }
.game-shell.gp-mode .game-stage { max-width: min(440px, 100%); padding: 0; margin: 0 auto; width: 100%; }
.game-shell.gp-mode {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 210, 80, .28), transparent 55%),
    linear-gradient(180deg, #3d9ae0, #2a6fb8 42%, #163f78);
}

.gp-screen { position: relative; min-height: 100%; color: #fff; overflow: hidden; }
.gp-sky {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top; z-index: 0; pointer-events: none;
  filter: saturate(1.08) contrast(1.04);
}
.gp-chrome {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 10px 14px; min-height: 100%;
}

.gp-top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center; gap: 8px;
}
.gp-xp {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  background:
    linear-gradient(180deg, #2a5288 0%, #163a6e 45%, #0e2a52 100%);
  border-radius: 999px; padding: 5px 10px 5px 8px;
  font-size: .62rem; font-weight: 800; color: #fff8e8;
  border: 1.5px solid #d4a84b;
  box-shadow:
    0 3px 0 #6a4810,
    inset 0 1px 0 rgba(255, 230, 160, .35),
    inset 0 -1px 0 rgba(0, 0, 0, .35),
    0 4px 12px rgba(0, 0, 0, .25);
}
.gp-xp-level {
  flex: 0 0 auto; font-style: normal; font-size: .55rem; font-weight: 900;
  color: #ffe08a; letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}
.gp-xp-bar {
  position: relative; flex: 1 1 auto; min-width: 56px; max-width: 110px;
  height: 12px; border-radius: 999px;
  background: linear-gradient(180deg, #081830, #142848);
  border: 1px solid rgba(212, 168, 75, .45);
  overflow: visible;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .45);
}
.gp-xp-bar i {
  display: block; height: 100%; max-width: 100%;
  background: linear-gradient(180deg, #ffe9a0 0%, #ffb020 40%, #e07800 100%);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 8px rgba(255, 180, 40, .55);
  transition: width .35s ease;
}
.gp-xp-tip {
  position: absolute; top: 50%; width: 13px; height: 13px; margin-top: -6.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff6c8, #ffc040 45%, #e07800 78%, #9a4800);
  border: 1.5px solid #fff3c4;
  box-shadow: 0 0 8px rgba(255, 180, 40, .95), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: left .35s ease;
  pointer-events: none;
}
.gp-xp-label {
  flex: 0 0 auto; white-space: nowrap; font-size: .62rem; font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.gp-ticket {
  display: inline-flex; align-items: center; gap: 5px;
  background:
    linear-gradient(180deg, #2a5288 0%, #163a6e 45%, #0e2a52 100%);
  border: 1.5px solid #d4a84b;
  border-radius: 999px; padding: 5px 10px 5px 7px;
  font-size: .85rem; font-weight: 900; color: #fff8e8;
  box-shadow:
    0 3px 0 #6a4810,
    inset 0 1px 0 rgba(255, 230, 160, .35),
    0 4px 12px rgba(0, 0, 0, .25);
}
.gp-ticket img {
  width: 18px; height: 18px; object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)) drop-shadow(0 0 4px rgba(255,200,80,.35));
}
.gp-ticket b { font-size: .9rem; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.gp-top-btns { display: flex; gap: 6px; }
.gp-round-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, #fff6c8 0%, #ffe08a 22%, #e8b028 55%, #b57a00 82%, #7a4a00);
  border: 2px solid #fff3c4; color: #3a2200; font-weight: 900; font-size: .95rem;
  box-shadow:
    0 4px 0 #6a3e00,
    0 6px 12px rgba(0, 0, 0, .35),
    inset 0 2px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 3px rgba(90, 40, 0, .35);
  text-shadow: 0 1px 0 rgba(255, 240, 180, .5);
  transition: transform .12s ease, box-shadow .12s ease;
}
.gp-round-btn:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #6a3e00,
    0 3px 8px rgba(0, 0, 0, .3),
    inset 0 2px 0 rgba(255, 255, 255, .4);
}
.gp-round-btn.off { opacity: .55; filter: grayscale(.4); }

.gp-round-line {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin: 0 2px 2px;
  color: #fff8e0; font-size: .72rem; font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.gp-round-line b { color: #ffe566; }
.gp-round-line .gp-title {
  flex: 1; margin: 0; font-size: 1.28rem; text-align: center;
}
.gp-title {
  position: relative;
  margin: 2px 0 4px;
  text-align: center;
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: .04em;
  line-height: 1.15;
  color: #fff6c8;
  background: linear-gradient(180deg, #fffce8 0%, #ffe566 28%, #f0b820 55%, #c87808 78%, #8a4a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 #fff8d0)
    drop-shadow(0 2px 0 #c99220)
    drop-shadow(0 3px 0 #a06810)
    drop-shadow(0 4px 0 #704008)
    drop-shadow(0 6px 10px rgba(0, 0, 0, .4));
  animation: gp-title-shine 3.2s ease-in-out infinite;
}
@keyframes gp-title-shine {
  0%, 100% { filter:
    drop-shadow(0 1px 0 #fff8d0)
    drop-shadow(0 2px 0 #c99220)
    drop-shadow(0 3px 0 #a06810)
    drop-shadow(0 4px 0 #704008)
    drop-shadow(0 6px 10px rgba(0, 0, 0, .4))
    drop-shadow(0 0 6px rgba(255, 210, 80, .35)); }
  50% { filter:
    drop-shadow(0 1px 0 #fff8d0)
    drop-shadow(0 2px 0 #c99220)
    drop-shadow(0 3px 0 #a06810)
    drop-shadow(0 4px 0 #704008)
    drop-shadow(0 6px 10px rgba(0, 0, 0, .4))
    drop-shadow(0 0 16px rgba(255, 220, 100, .75)); }
}

.gp-arena {
  position: relative; width: min(100%, 380px); margin: 0 auto;
  aspect-ratio: 1; max-height: 46vh;
  filter: drop-shadow(0 8px 20px rgba(80, 40, 0, .28));
}
.gp-arena::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 88%; height: 88%;
  margin: -44% 0 0 -44%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 60, .22) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  animation: gp-arena-glow 2.8s ease-in-out infinite;
}
@keyframes gp-arena-glow {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
.gp-wheel-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 78%; height: 78%;
  margin: -39% 0 0 -39%;
  border-radius: 50%;
  border: 5px solid transparent;
  background:
    linear-gradient(transparent, transparent) padding-box,
    linear-gradient(145deg, #fff6c8, #f0c040 30%, #a06810 55%, #f0c040 80%, #fff0a8) border-box;
  box-shadow:
    0 0 0 3px rgba(120, 60, 0, .35),
    inset 0 0 0 2px rgba(255, 230, 140, .35),
    0 0 28px rgba(255, 190, 50, .4);
  pointer-events: none;
  z-index: 0;
  opacity: .92;
}
.gp-wheel-img {
  position: absolute; inset: 4%; width: 92%; height: 92%;
  object-fit: contain; opacity: 1;
  filter:
    drop-shadow(0 12px 22px rgba(0,0,0,.38))
    drop-shadow(0 0 18px rgba(255, 190, 60, .35))
    saturate(1.2) brightness(1.08) contrast(1.06) sepia(.12);
  pointer-events: none !important;
  background: transparent;
  z-index: 0;
}
.gp-wheel {
  position: absolute; inset: 0;
  /* px radius — % translate is relative to the seat itself, not the wheel */
  --seat-r: 132px;
}
.gp-seat {
  position: absolute; left: 50%; top: 50%;
  width: 76px; height: 76px; margin: -38px;
  transform: rotate(var(--ang)) translateY(calc(-1 * var(--seat-r))) rotate(calc(-1 * var(--ang)));
  border-radius: 50%;
  border: 4px solid transparent;
  background:
    radial-gradient(circle at 40% 32%, #fffef6 0%, #ffe9b8 45%, #f0c868 100%) padding-box,
    linear-gradient(145deg, #fff8d0 0%, #f5d060 22%, #c87808 55%, #7a4008 78%, #f0c040 100%) border-box;
  padding: 0; overflow: visible;
  box-shadow:
    0 6px 0 #6a3808,
    0 10px 18px rgba(0, 0, 0, .4),
    inset 0 3px 0 rgba(255, 255, 255, .75),
    inset 0 -4px 8px rgba(120, 50, 0, .28),
    0 0 14px rgba(255, 190, 50, .45);
  z-index: 2;
  transition: box-shadow .08s ease, filter .08s ease, scale .08s ease;
}
.gp-seat::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 230, 140, .55), transparent 45%),
    conic-gradient(from 0deg, #c87808, #fff0a8, #a06810, #ffe566, #7a4008, #fff0a8, #c87808);
  z-index: -1;
  opacity: .9;
  filter: blur(.2px);
  box-shadow: 0 4px 8px rgba(80, 40, 0, .35);
}
.gp-seat::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 220, 120, .65);
  box-shadow: inset 0 0 0 1px rgba(160, 90, 10, .28);
  pointer-events: none;
  z-index: 1;
}
.gp-seat-gem {
  position: absolute;
  top: 4px; left: 50%;
  width: 8px; height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ff6a8a 45%, #c02040);
  box-shadow: 0 0 6px rgba(255, 80, 100, .8), 0 1px 2px rgba(0, 0, 0, .4);
  z-index: 3;
  pointer-events: none;
}
.gp-hot {
  position: absolute;
  top: -10px; left: -6px;
  z-index: 4;
  font-style: normal;
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(180deg, #ff5a4a, #c01818);
  border: 1.5px solid #fff3c4;
  border-radius: 6px;
  padding: 2px 5px;
  box-shadow: 0 2px 0 #6a0808, 0 3px 6px rgba(0, 0, 0, .35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
}
.gp-seat.is-hot {
  box-shadow:
    0 6px 0 #6a3808,
    0 10px 18px rgba(0, 0, 0, .4),
    0 0 18px rgba(255, 80, 60, .45),
    inset 0 3px 0 rgba(255, 255, 255, .75);
}
.gp-seat img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 50%;
  background: transparent;
  pointer-events: none;
  position: relative;
  z-index: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
}
.gp-seat .gp-mult,
.gp-seat .gp-you { pointer-events: none; }
.gp-mult {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  background: linear-gradient(180deg, #fff6c8 0%, #f0c040 55%, #c87808 100%);
  color: #5a2800;
  font-size: .7rem; font-weight: 900;
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
  border: 1.5px solid #fff8d6;
  box-shadow:
    0 2px 0 #8a4a08,
    0 3px 6px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .75);
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 0 rgba(255, 245, 200, .85);
}
.gp-you {
  position: absolute; top: -8px; right: -8px; z-index: 2;
  background: linear-gradient(180deg, #ffe566, #e0a020);
  color: #3a2200; font-size: .55rem; font-weight: 900;
  font-style: normal; padding: 2px 6px; border-radius: 7px;
  border: 1.5px solid #fff8d0;
  box-shadow: 0 2px 0 #8a5a00, 0 3px 6px rgba(0,0,0,.3);
}
.gp-seat.has-bet {
  box-shadow:
    0 0 0 3px #ffe566,
    0 5px 0 #7a4808,
    0 8px 16px rgba(0, 0, 0, .35),
    0 0 16px rgba(255, 200, 40, .65);
}
.gp-seat.is-hl {
  z-index: 5;
  box-shadow:
    0 0 0 4px #fff36a,
    0 0 0 8px rgba(255, 160, 40, .55),
    0 0 28px 8px rgba(255, 210, 60, .9),
    0 6px 0 #7a4808;
  filter: brightness(1.14);
  scale: 1.1;
}
.gp-seat.is-win {
  z-index: 5;
  animation: gp-pulse 0.7s ease infinite alternate;
}
@keyframes gp-pulse {
  from { filter: brightness(1.05) drop-shadow(0 0 6px #ffe566); }
  to { filter: brightness(1.22) drop-shadow(0 0 16px #ffe566); }
}

.gp-hub {
  position: absolute; left: 50%; top: 50%;
  width: 118px; height: 118px; margin: -59px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 3;
  pointer-events: none;
}
.gp-cat-wrap { position: relative; width: 78px; height: 78px; }
.gp-cat {
  width: 78px; height: 78px; object-fit: contain; border-radius: 50%;
  filter:
    drop-shadow(0 5px 10px rgba(0,0,0,.4))
    drop-shadow(0 0 10px rgba(255, 190, 80, .35));
  background: transparent;
}
.gp-played {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  min-width: 34px; padding: 2px 7px;
  background: linear-gradient(180deg, #9a5a20, #5a2e0c 60%, #3a1a06);
  color: #ffe9a0; font-weight: 900; font-size: .72rem;
  border-radius: 7px;
  border: 1.5px solid #f0c860;
  text-align: center; line-height: 1.15;
  box-shadow:
    0 3px 0 #2a1004,
    inset 0 1px 0 rgba(255, 220, 140, .35),
    0 3px 8px rgba(0, 0, 0, .35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}
.gp-hub-card {
  margin-top: -2px;
  background:
    linear-gradient(180deg, #fff8d6 0%, #f5d070 40%, #d4a020 78%, #a06810 100%);
  border: 2.5px solid #fff3c4;
  border-radius: 12px;
  padding: 4px 14px 5px;
  text-align: center;
  color: #5a3008;
  min-width: 56px;
  box-shadow:
    0 4px 0 #7a4808,
    0 6px 12px rgba(0, 0, 0, .4),
    inset 0 2px 0 rgba(255, 255, 255, .7),
    inset 0 -2px 4px rgba(120, 60, 0, .25),
    0 0 12px rgba(255, 200, 60, .35);
}
.gp-hub-card strong {
  font-size: 1.2rem;
  font-weight: 900;
  color: #6a3008;
  text-shadow: 0 1px 0 rgba(255, 245, 200, .8);
}

.gp-platform {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  width: min(100%, 380px);
  margin: -6px auto 8px;
  padding: 14px 10px 10px;
  border-radius: 18px 18px 22px 22px;
  background:
    linear-gradient(180deg, #f0c860 0%, #c87820 18%, #a02028 42%, #7a1018 78%, #5a080e 100%);
  border: 2.5px solid #f0d070;
  box-shadow:
    0 6px 0 #4a0808,
    0 10px 22px rgba(0, 0, 0, .4),
    inset 0 2px 0 rgba(255, 230, 150, .55),
    inset 0 -3px 8px rgba(40, 0, 0, .35);
  z-index: 4;
}
.gp-platform::before {
  content: '';
  position: absolute;
  left: 8%; right: 8%; top: -8px;
  height: 14px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #fff0a8, #d4a020 60%, #8a4a08);
  box-shadow: 0 2px 0 #6a3808, inset 0 1px 0 rgba(255, 255, 255, .5);
  pointer-events: none;
}
.gp-platform-mid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  min-width: 0;
}
.gp-plat-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 5px 6px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #fff8e0 0%, #f0d090 50%, #d4a050 100%);
  border: 1.5px solid #fff3c4;
  box-shadow:
    0 3px 0 #6a3808,
    inset 0 1px 0 rgba(255, 255, 255, .7);
  color: #5a2808;
  text-align: center;
}
.gp-plat-box small {
  font-size: .52rem; font-weight: 800; letter-spacing: .03em;
  color: #8a4a10; text-transform: none; line-height: 1.1;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gp-plat-box b {
  font-size: .78rem; font-weight: 900; color: #5a2808; line-height: 1.1;
}
.gp-plat-hist { cursor: pointer; }
.gp-plat-hist:active { transform: translateY(1px); }

.gp-group {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border-radius: 14px; padding: 4px 8px 5px; font-weight: 900; font-size: .68rem;
  border: 2px solid #fff3c4; color: #fffef5;
  background:
    linear-gradient(180deg, #9aefb0 0%, #3cbc68 38%, #1e8449 72%, #0e5a30 100%);
  box-shadow:
    0 4px 0 #0a4a24,
    0 6px 12px rgba(0, 0, 0, .3),
    inset 0 2px 0 rgba(255, 255, 255, .45),
    0 0 10px rgba(255, 200, 60, .2);
  text-shadow: 0 1px 2px rgba(0, 40, 15, .55);
  transition: transform .12s ease, box-shadow .12s ease;
  min-width: 64px;
}
.gp-group:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #0a4a24,
    0 3px 8px rgba(0, 0, 0, .28),
    inset 0 2px 0 rgba(255, 255, 255, .35);
}
.gp-group:disabled { opacity: .55; filter: grayscale(.2); }
.gp-group img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: contain;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(255,220,120,.25));
  border: 1.5px solid rgba(255, 240, 180, .65);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.gp-group.salad {
  background: linear-gradient(180deg, #a8f0c0 0%, #48c878 38%, #239b56 72%, #0e5a30 100%);
}
.gp-group.pizza {
  background: linear-gradient(180deg, #9aefb0 0%, #3cbc68 38%, #1a7a42 72%, #0c4e28 100%);
}

.gp-panel {
  margin-top: auto;
  background:
    linear-gradient(180deg, rgba(255, 240, 180, .2), transparent 22%),
    linear-gradient(180deg, #3a1a28 0%, #2a1020 40%, #1a0a14 100%);
  border: 2.5px solid #f0d070;
  border-radius: 18px 18px 14px 14px;
  padding: 10px 10px 12px;
  box-shadow:
    inset 0 2px 0 rgba(255, 220, 150, .25),
    inset 0 -2px 6px rgba(0, 0, 0, .45),
    0 -6px 24px rgba(0, 0, 0, .35),
    0 0 20px rgba(255, 190, 60, .15);
}
.gp-chips {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px;
}
.gp-chip {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px 6px;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 180, 200, .45), transparent 55%),
    linear-gradient(180deg, #fff0d0 0%, #f0c070 35%, #d09040 70%, #a86820 100%);
  border: 2.5px solid #fff3c4;
  box-shadow:
    0 4px 0 #6a3808,
    0 7px 14px rgba(0, 0, 0, .4),
    inset 0 2px 0 rgba(255, 255, 255, .7),
    inset 0 -3px 6px rgba(120, 50, 0, .3),
    0 0 10px rgba(255, 160, 80, .25);
  color: #5a3208; font-weight: 900;
  transition: transform .12s ease, box-shadow .12s ease;
}
.gp-chip:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #7a4810,
    0 2px 6px rgba(0, 0, 0, .25),
    inset 0 2px 0 rgba(255, 255, 255, .4);
}
.gp-coin-art {
  width: 100%; max-width: 46px; aspect-ratio: 1; object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)) drop-shadow(0 0 4px rgba(255,200,60,.25));
}
.gp-chip-val {
  display: inline-block; min-width: 100%;
  background: linear-gradient(180deg, #fffef8, #ffe8b0);
  color: #5a2808;
  border-radius: 999px; font-size: .62rem; font-weight: 900;
  padding: 2px 4px; line-height: 1.15;
  box-shadow:
    inset 0 0 0 1px rgba(180,120,40,.45),
    0 1px 2px rgba(0, 0, 0, .2);
  text-shadow: 0 1px 0 rgba(255, 245, 200, .8);
}
.gp-chip.active {
  outline: 2.5px solid #fff36a;
  outline-offset: 2px;
  transform: translateY(-2px);
  background: linear-gradient(180deg, #fff8e0 0%, #ffe566 45%, #e0a820 100%);
  box-shadow:
    0 0 0 1px #c87808,
    0 4px 0 #7a4810,
    0 6px 14px rgba(0, 0, 0, .3),
    0 0 16px rgba(255, 200, 40, .55),
    inset 0 2px 0 rgba(255, 255, 255, .75);
}

.gp-chest-panel {
  margin: 8px 0 10px;
  padding: 10px 10px 12px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 230, 160, .22), transparent 42%),
    linear-gradient(180deg, #d478b0 0%, #a04078 45%, #6e2858 100%);
  border: 2px solid #f0c860;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .3),
    inset 0 -2px 6px rgba(40, 0, 30, .3),
    0 6px 18px rgba(80, 10, 50, .35),
    0 0 14px rgba(255, 190, 60, .2);
}
.gp-stats-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px;
}
.gp-stat {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch; justify-content: center;
  gap: 6px;
  min-height: 58px;
  padding: 8px 10px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #fffdf6 0%, #f8e8c0 55%, #e8d0a0 100%);
  color: #3a2414;
  border: 1.5px solid #f0d070;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.95),
    inset 0 -1px 3px rgba(140, 80, 20, .15),
    0 3px 0 rgba(100, 50, 10, .25),
    0 6px 12px rgba(40, 10, 30, .18);
  text-align: left;
  overflow: hidden;
}
.gp-stat::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, #ffe566, #c87808, #a04078);
  opacity: .95;
}
.gp-stat-label {
  display: block;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8a6a55;
  line-height: 1.1;
}
.gp-stat-val {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .92rem; font-weight: 900; font-style: normal;
  color: #2a160c; line-height: 1;
}
.gp-stat-val em {
  font-style: normal; font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.gp-stat img {
  width: 18px; height: 18px; object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
  flex-shrink: 0;
}
.gp-stat .gp-catc { width: 20px; height: 20px; }
.gp-stat-btn {
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.gp-stat-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}
.gp-stat-btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 1px 0 rgba(90, 30, 60, .18);
}
.gp-stat-record {
  width: 100%;
  justify-content: space-between;
}
.gp-stat-chev {
  font-style: normal; font-size: 1.1rem; font-weight: 700;
  color: #b07a40; opacity: .85; line-height: 1;
}
.gp-stat-win .gp-stat-val em { color: #9a5a08; }
.gp-stat-cat .gp-stat-val em { color: #2a5a8a; }

.gp-track-wrap {
  position: relative;
  padding: 8px 8px 6px;
}
.gp-played-line {
  text-align: center; font-size: .7rem; font-weight: 700; color: rgba(255,236,248,.92);
  margin-bottom: 8px; letter-spacing: .02em;
}
.gp-played-line b {
  color: #ffe566; font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.gp-chests {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  margin-bottom: 6px;
  pointer-events: none;
}
.gp-chest {
  position: relative;
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center;
  min-width: 0;
}
.gp-chest img {
  width: 30px; height: 30px; object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));
}
.gp-chest.open img { animation: gp-chest-pop .55s ease; }
.gp-chest em {
  margin-top: 2px; font-size: .55rem; font-style: normal; font-weight: 900;
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45);
  white-space: nowrap;
}
.gp-track {
  height: 8px; border-radius: 999px; background: #6a1838; overflow: hidden;
  margin: 0 12px;
}
.gp-track i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #ff9f2e, #ff5e3a);
  transition: width .45s ease;
}
@keyframes gp-chest-pop {
  0% { transform: scale(.7); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.gp-modal-card.blast {
  background: linear-gradient(180deg, #7b2cff, #3a1070);
  overflow: hidden;
}
.gp-blast { position: relative; padding: 8px 4px 4px; }
.gp-blast-rays {
  position: absolute; inset: -20% -10% auto; height: 160px; margin: 0 auto;
  background: conic-gradient(from 0deg, #ffe08a, transparent 12%, #ffe08a 18%, transparent 30%, #fff 40%, transparent 55%, #ffe08a 70%, transparent);
  opacity: .55; animation: gp-spin-rays 4s linear infinite; border-radius: 50%;
  pointer-events: none;
}
@keyframes gp-spin-rays { to { transform: rotate(360deg); } }
.gp-blast-chest {
  position: relative; z-index: 1;
  width: 110px; height: 110px; object-fit: contain;
  animation: gp-chest-pop .7s ease;
  filter: drop-shadow(0 0 18px rgba(255,220,100,.8));
}
.gp-blast-title {
  position: relative; z-index: 1;
  font-size: 1.35rem; font-weight: 900; color: #ffe566;
  text-shadow: 0 2px 0 #8a4a00, 0 0 16px rgba(255,200,50,.6);
  animation: gp-blast-in .5s ease;
}
.gp-blast-sub { position: relative; z-index: 1; opacity: .9; margin: 4px 0 8px; font-size: .82rem; }
.gp-blast-coins {
  position: relative; z-index: 1;
  display: inline-block; margin-bottom: 10px;
  background: linear-gradient(180deg, #ffe08a, #e0a020);
  color: #4a2e00; font-weight: 900; font-size: 1.25rem;
  padding: 8px 18px; border-radius: 999px; border: 2px solid #fff3c4;
  box-shadow: 0 0 0 4px rgba(255,220,100,.25), 0 6px 20px rgba(0,0,0,.35);
  animation: gp-blast-in .55s ease .08s both;
}
.gp-blast-sparkles::before,
.gp-blast-sparkles::after {
  content: "✦ ✦ ✦ ★ ✦ ★ ✦";
  display: block; letter-spacing: .35em; color: #ffe08a;
  font-size: .85rem; opacity: .85;
  animation: gp-spark 1.2s ease-in-out infinite alternate;
}
@keyframes gp-blast-in {
  from { opacity: 0; transform: scale(.7) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes gp-spark {
  from { opacity: .4; transform: scale(.95); }
  to { opacity: 1; transform: scale(1.05); }
}

.gp-history {
  display: flex; gap: 6px; overflow-x: auto; padding: 7px 10px; min-height: 46px;
  align-items: center;
  background:
    linear-gradient(180deg, #8a1830 0%, #5a0e1c 50%, #3a0810 100%);
  border: 2px solid #f0c860;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow:
    inset 0 2px 0 rgba(255, 180, 160, .2),
    inset 0 -2px 6px rgba(0, 0, 0, .4),
    0 3px 10px rgba(0, 0, 0, .3);
}
.gp-result-tag {
  flex: 0 0 auto; font-size: .78rem; font-weight: 900; color: #ffe566; margin-right: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
  letter-spacing: .03em;
}
.gp-hist {
  position: relative; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #f0d070; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #fff8e8, #f0d090);
  box-shadow:
    0 2px 0 #6a2808,
    0 3px 6px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 255, 255, .5);
}
.gp-hist img { width: 100%; height: 100%; object-fit: cover; }
.gp-hist.new i {
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, #7dff9a, #1e9a48);
  color: #063018; font-size: .42rem; font-style: normal;
  padding: 1px 4px; border-radius: 4px; font-weight: 900;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  border: 1px solid #c8ffe0;
  z-index: 2;
}
.gp-hist-empty { font-size: .7rem; color: rgba(255, 230, 180, .65); }

.gp-footer {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px;
}
.gp-bal, .gp-win {
  display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: .9rem;
  color: #fff8e0;
  text-shadow: 0 1px 0 #6a3a08, 0 2px 4px rgba(0,0,0,.45);
}
.gp-win-today {
  font-size: .68rem; font-weight: 800; color: #ffe9b0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  white-space: nowrap;
}
.gp-win-today b { color: #ffe566; }
.gp-win { justify-content: flex-end; }
.gp-win.is-win { color: #9dffb0; }
.gp-win.is-loss { color: #ff9a9a; }
.gp-coin-ico {
  width: 22px; height: 22px; object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)) drop-shadow(0 0 4px rgba(255,200,60,.3));
  flex-shrink: 0;
}
.gp-repeat {
  background: linear-gradient(180deg, #9aefb0 0%, #3cbc68 40%, #1e8449 75%, #0e5a30 100%);
  color: #fffef5; font-weight: 900; border-radius: 11px;
  padding: 9px 16px; border: 2px solid #fff3c4;
  box-shadow:
    0 4px 0 #0a4a24,
    0 6px 12px rgba(0, 0, 0, .35),
    inset 0 2px 0 rgba(255, 255, 255, .45),
    inset 0 -2px 3px rgba(0, 40, 15, .3);
  text-shadow: 0 1px 2px rgba(0, 40, 15, .55);
  transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.gp-repeat:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #0a4a24,
    0 3px 8px rgba(0, 0, 0, .28),
    inset 0 2px 0 rgba(255, 255, 255, .35);
}
.gp-repeat:disabled { opacity: .55; filter: grayscale(.15); }

.gp-modal {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(10,20,40,.55);
  display: grid; place-items: center; padding: 16px;
  overflow: hidden;
}
.gp-modal[hidden] { display: none !important; }
.gp-modal.gp-win-celeb {
  background: rgba(20, 10, 50, .62);
}
.gp-modal-card {
  position: relative; z-index: 3;
  width: min(320px, 100%);
  background:
    linear-gradient(180deg, rgba(255, 230, 140, .18), transparent 35%),
    linear-gradient(180deg, #3a82c8 0%, #2a6db0 40%, #1a3f70 100%);
  border: 3px solid #f0d070;
  border-radius: 16px;
  padding: 16px; text-align: center;
  box-shadow:
    0 8px 0 #6a4810,
    0 14px 32px rgba(0, 0, 0, .45),
    inset 0 2px 0 rgba(255, 245, 200, .35),
    0 0 24px rgba(255, 200, 60, .25);
}
.gp-modal-card.win-pop {
  animation: gp-card-pop .55s cubic-bezier(.2,1.4,.3,1);
  box-shadow:
    0 0 0 6px rgba(255,220,80,.28),
    0 8px 0 #6a4810,
    0 18px 40px rgba(0,0,0,.45),
    0 0 32px rgba(255, 210, 60, .45);
}
@keyframes gp-card-pop {
  0% { transform: scale(.55); opacity: 0; }
  70% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

.gp-balloons {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.gp-balloon {
  position: absolute; left: var(--l, 50%); bottom: -20%;
  width: clamp(42px, 12vw, 64px); height: auto;
  transform: translateX(-50%);
  animation: gp-balloon-rise var(--t, 2s) ease-out var(--d, 0s) both;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.25));
}
@keyframes gp-balloon-rise {
  0% { bottom: -22%; transform: translateX(-50%) scale(.7) rotate(-8deg); opacity: 0; }
  15% { opacity: 1; }
  70% { opacity: 1; transform: translateX(-50%) scale(1) rotate(6deg); }
  85% { opacity: 1; transform: translateX(-50%) scale(1.25) rotate(0deg); filter: brightness(1.3); }
  92% { opacity: 1; transform: translateX(-50%) scale(1.55); filter: brightness(1.8); }
  100% { bottom: 78%; opacity: 0; transform: translateX(-50%) scale(.15); filter: brightness(2); }
}

.gp-confetti {
  position: absolute; inset: 0; overflow: hidden;
}
.gp-confetti i {
  position: absolute;
  top: -8%;
  left: calc(4% + (var(--i) * 4%));
  width: 8px; height: 12px; border-radius: 2px;
  background: hsl(calc(var(--i) * 37), 90%, 55%);
  animation: gp-confetti-fall calc(1.4s + (var(--i) * .05s)) linear calc(var(--i) * .04s) both;
  opacity: .95;
}
.gp-confetti i:nth-child(3n) { width: 10px; height: 10px; border-radius: 50%; }
.gp-confetti i:nth-child(4n) { width: 12px; height: 6px; }
@keyframes gp-confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: .2; }
}

.gp-win-banner {
  font-size: 1.35rem; font-weight: 900; color: #ffe566;
  text-shadow: 0 2px 0 #8a4a00, 0 0 18px rgba(255,200,50,.7);
  margin-bottom: 6px;
  animation: gp-blast-in .5s ease;
}
.gp-win-burst {
  position: absolute; left: 50%; top: 28%; width: 180px; height: 180px;
  margin: -90px 0 0 -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,220,80,.55), transparent 65%);
  animation: gp-win-burst .9s ease-out both;
  pointer-events: none; z-index: 0;
}
@keyframes gp-win-burst {
  0% { transform: scale(.2); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
.gp-result-pop { animation: gp-chest-pop .65s ease; position: relative; z-index: 1; }
.gp-win-coins {
  display: inline-block; margin: 4px 0 12px;
  background: linear-gradient(180deg, #ffe08a, #e0a020);
  color: #4a2e00; font-weight: 900; font-size: 1.05rem;
  padding: 7px 16px; border-radius: 999px; border: 2px solid #fff3c4;
  box-shadow: 0 0 0 4px rgba(255,220,100,.2);
  animation: gp-blast-in .55s ease .1s both;
}

.gp-rules-title { font-size: 1.2rem; font-weight: 900; margin-bottom: 8px; color: #ffe08a; }
.gp-rules { text-align: left; font-size: .82rem; line-height: 1.35; padding-left: 18px; }
.gp-rules li { margin-bottom: 6px; }

.gp-modal-card.record-card {
  width: min(360px, 100%);
  max-height: min(78vh, 560px);
  display: flex; flex-direction: column;
  text-align: left;
  background: linear-gradient(180deg, #2f4f7a, #1a304f);
}
.gp-record-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.gp-record-user strong { display: block; color: #fff; font-size: .95rem; }
.gp-record-user small { color: rgba(255,255,255,.7); font-size: .68rem; }
.gp-record-list {
  flex: 1 1 auto; overflow-y: auto; max-height: 42vh;
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 12px; padding-right: 2px;
}
.gp-record-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 10px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
}
.gp-record-row img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: contain;
  background: rgba(255,255,255,.08);
}
.gp-record-meta b { display: block; color: #fff; font-size: .75rem; }
.gp-record-meta small { color: rgba(255,255,255,.62); font-size: .62rem; }
.gp-record-delta {
  font-weight: 900; font-size: .82rem; font-variant-numeric: tabular-nums;
}
.gp-record-row.win .gp-record-delta { color: #7dff9a; }
.gp-record-row.loss .gp-record-delta { color: #ff8a8a; }
.gp-record-empty {
  text-align: center; color: rgba(255,255,255,.65);
  padding: 24px 8px; font-size: .82rem;
}
.gp-modal-card.record-card .gp-ok { align-self: center; }
.gp-result-img {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  border: 3.5px solid transparent;
  background:
    linear-gradient(#fff8e8, #ffe9b0) padding-box,
    linear-gradient(145deg, #fff6c8, #f0c040, #c87808, #8a4a00) border-box;
  box-shadow:
    0 5px 0 #7a4808,
    0 8px 18px rgba(0, 0, 0, .4),
    0 0 16px rgba(255, 200, 60, .45);
}
.gp-result-mult {
  font-size: 1.6rem; font-weight: 900; margin: 6px 0;
  background: linear-gradient(180deg, #fff6c8, #ffe566, #e0a020);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #8a4a08) drop-shadow(0 0 8px rgba(255, 200, 60, .5));
}
.gp-result-line {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-weight: 900; gap: 10px;
}
.gp-result-line > span {
  background: linear-gradient(180deg, #fffce8 0%, #ffe566 35%, #f0b820 70%, #c87808 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 #8a4a08)
    drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
  font-size: .95rem;
  letter-spacing: .02em;
}
.gp-result-line b {
  font-weight: 900;
  background: linear-gradient(180deg, #fffce8 0%, #ffe566 35%, #f0b820 70%, #c87808 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gp-ok {
  background: linear-gradient(180deg, #fff6c8 0%, #ffe08a 30%, #e0a020 70%, #b07008 100%);
  color: #4a2e00;
  font-weight: 900; border-radius: 11px; padding: 10px 28px; border: 2px solid #fff3c4;
  box-shadow:
    0 4px 0 #6a3e00,
    0 6px 14px rgba(0, 0, 0, .35),
    inset 0 2px 0 rgba(255, 255, 255, .6);
  text-shadow: 0 1px 0 rgba(255, 245, 200, .7);
}

@media (max-width: 420px) {
  .gp-wheel { --seat-r: 112px; }
  .gp-seat { width: 60px; height: 60px; margin: -30px; }
  .gp-hub { width: 100px; height: 100px; margin: -50px; }
  .gp-cat-wrap, .gp-cat { width: 66px; height: 66px; }
  .gp-played { font-size: .62rem; bottom: 8px; }
  .gp-chip { padding: 3px 1px 4px; }
  .gp-coin-art { max-width: 36px; }
  .gp-chip-val { font-size: .5rem; }
  .gp-title { font-size: 1.12rem; }
  .gp-round-line .gp-title { font-size: 1.05rem; }
  .gp-platform { padding: 12px 6px 8px; gap: 4px; }
  .gp-group { min-width: 54px; font-size: .58rem; padding: 3px 5px 4px; }
  .gp-group img { width: 30px; height: 30px; }
  .gp-plat-box b { font-size: .68rem; }
  .gp-seat { width: 64px; height: 64px; margin: -32px; }
  .gp-wheel-ring { width: 76%; height: 76%; margin: -38% 0 0 -38%; }
  .gp-chips { gap: 3px; }
}

/* ===== Egypt Slot ===== */
.game-shell.egypt-mode {
  background: #120a04;
}
.game-shell.egypt-mode .game-top {
  background: linear-gradient(180deg, rgba(40, 22, 8, .92), rgba(20, 10, 4, .75));
  border-bottom: 1px solid rgba(212, 160, 23, .35);
}
.game-shell.egypt-mode .game-stage {
  padding: 0;
  max-width: min(440px, 100%);
  margin: 0 auto;
  width: 100%;
}

.egypt-screen {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  color: #f6e7c5;
}

.egypt-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  pointer-events: none;
}

.egypt-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 6, 2, .35) 0%, rgba(10, 6, 2, .55) 45%, rgba(8, 4, 2, .82) 100%),
    radial-gradient(ellipse at 50% 20%, rgba(201, 162, 39, .18), transparent 55%);
  pointer-events: none;
}

.egypt-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px 18px;
  box-sizing: border-box;
  min-height: inherit;
}

.egypt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.egypt-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: .04em;
  color: #ffe6a8;
  text-shadow: 0 2px 0 #5a3a00, 0 0 18px rgba(255, 200, 80, .35);
}

.egypt-sound {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 197, 106, .55);
  background: rgba(30, 16, 6, .75);
  color: #ffe6a8;
  font-size: 1rem;
}
.egypt-sound.off { opacity: .55; }

.egypt-jackpots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.egypt-jp {
  text-align: center;
  padding: 7px 4px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(70, 42, 14, .85), rgba(24, 12, 4, .9));
  border: 1px solid rgba(212, 160, 23, .45);
  box-shadow: inset 0 1px 0 rgba(255, 230, 160, .12);
  font-size: .62rem;
  letter-spacing: .06em;
  color: #cbb892;
}
.egypt-jp strong {
  display: block;
  margin-top: 2px;
  color: #ffe08a;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: 0;
}
.egypt-jp.jp-grand { border-color: #f1c40f; box-shadow: 0 0 10px rgba(241, 196, 15, .25); }
.egypt-jp.jp-major { border-color: #e67e22; }
.egypt-jp.jp-minor { border-color: #95a5a6; }
.egypt-jp.jp-mini { border-color: #7f8c8d; }

.egypt-reels-frame {
  flex: 1;
  min-height: 280px;
  padding: 10px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(90, 55, 18, .55), rgba(20, 10, 4, .75));
  border: 2.5px solid #c9a227;
  box-shadow:
    0 0 0 3px rgba(60, 30, 8, .85),
    inset 0 0 24px rgba(0, 0, 0, .45),
    0 12px 28px rgba(0, 0, 0, .4);
}

.egypt-reels {
  height: 100%;
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  background: rgba(0, 0, 0, .45);
  border-radius: 12px;
  padding: 6px;
  border: 1px solid rgba(255, 220, 140, .15);
}

.egypt-reel {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.egypt-cell {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #3a2712, #160e06);
  border: 1px solid rgba(255, 220, 140, .22);
  display: grid;
  place-items: center;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.egypt-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.egypt-cell.blur img {
  filter: blur(1.2px) brightness(1.08);
  transform: scale(1.08);
}

.egypt-reels.is-spinning .egypt-reel {
  animation: egypt-reel-shake .12s linear infinite;
  animation-delay: calc(var(--d, 0) * 30ms);
}

@keyframes egypt-reel-shake {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

.egypt-cell.win {
  box-shadow: 0 0 0 2px #f1c40f, 0 0 18px rgba(241, 196, 15, .65);
  transform: scale(1.04);
  z-index: 2;
  animation: egypt-win-pulse .7s ease infinite alternate;
}

@keyframes egypt-win-pulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.18); }
}

.egypt-fast-row {
  display: flex;
  justify-content: flex-end;
}

.egypt-toggle {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, .4);
  background: rgba(20, 10, 4, .65);
  color: #e8d4a8;
  font-size: .78rem;
  font-weight: 700;
}
.egypt-toggle.on {
  background: linear-gradient(180deg, #c9a227, #8a6a12);
  color: #2a1604;
  border-color: #ffe08a;
}

.egypt-hud {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.egypt-bet, .egypt-win {
  background: linear-gradient(180deg, rgba(50, 28, 10, .9), rgba(18, 8, 2, .92));
  border-radius: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(212, 160, 23, .4);
}

.egypt-lbl {
  font-size: .68rem;
  color: #b9a279;
  letter-spacing: .1em;
  font-weight: 700;
}

.egypt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
}

.egypt-val {
  font-size: 1.1rem;
  font-weight: 900;
  color: #ffe08a;
  text-align: center;
  min-width: 0;
}

.egypt-pm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 220, 140, .12);
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(212, 160, 23, .3);
}

.egypt-spin {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #ffe08a, #c9a227 42%, #8a5a10 70%, #4a2e08);
  color: #2a1604;
  font-weight: 900;
  font-size: .95rem;
  letter-spacing: .04em;
  border: 3px solid #fff3c4;
  box-shadow:
    0 0 0 3px rgba(90, 50, 10, .8),
    0 10px 28px rgba(201, 162, 39, .45),
    inset 0 2px 0 rgba(255, 255, 255, .35);
}
.egypt-spin:disabled { opacity: .55; cursor: not-allowed; }
.egypt-spin:not(:disabled):active { transform: scale(.96); }

@media (max-width: 420px) {
  .egypt-reels-frame { min-height: 250px; padding: 8px; }
  .egypt-reels { min-height: 230px; gap: 4px; padding: 4px; }
  .egypt-spin { width: 78px; height: 78px; font-size: .88rem; }
  .egypt-title { font-size: 1.15rem; }
  .egypt-jp strong { font-size: .72rem; }
}

/* ===== Egypt Slot v2 (rules) ===== */
.egypt-reels { --rows: 4; }
.egypt-reels[style*="--rows:4"],
.egypt-reels {
  min-height: 300px;
}
.egypt-reel {
  grid-template-rows: repeat(var(--rows, 4), minmax(0, 1fr));
}
.egypt-reels-frame { min-height: 310px; }

.egypt-cell.scatter { box-shadow: inset 0 0 0 1px rgba(255, 210, 80, .35); }
.egypt-cell.wild { box-shadow: inset 0 0 0 1px rgba(80, 220, 160, .35); }
.egypt-cell.nudge { box-shadow: inset 0 0 0 1px rgba(100, 180, 255, .4); }

.egypt-nudge-n {
  position: absolute;
  right: 3px; bottom: 2px;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe08a, #c48a22);
  color: #2a1604;
  font-size: .62rem; font-weight: 900;
  display: grid; place-items: center;
  border: 1px solid #fff3c4;
  z-index: 2;
}

.egypt-letter {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 1.35rem; font-weight: 900;
  color: #ffe08a;
  text-shadow: 0 2px 0 #5a3a00, 0 0 10px rgba(0,0,0,.6);
  background: rgba(20, 10, 4, .35);
  pointer-events: none;
}

.egypt-top-actions { display: flex; gap: 6px; }
.egypt-ico {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(232, 197, 106, .55);
  background: rgba(30, 16, 6, .75);
  color: #ffe6a8; font-size: .95rem;
}

.egypt-free-hud, .egypt-buy-hud, .egypt-banner {
  text-align: center;
  font-weight: 800;
  font-size: .82rem;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(241, 196, 15, .45);
  background: linear-gradient(180deg, rgba(90, 50, 10, .85), rgba(30, 14, 4, .9));
  color: #ffe08a;
  letter-spacing: .04em;
}
.egypt-buy-hud {
  display: flex; justify-content: space-between; gap: 8px;
  color: #e8d4a8; font-size: .75rem;
}
.egypt-banner {
  animation: egypt-win-pulse .8s ease infinite alternate;
  border-color: #f1c40f;
}

.egypt-tools {
  display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap;
}
.egypt-toggle.buy {
  background: linear-gradient(180deg, #6a3a12, #3a1c08);
  border-color: #e0a020;
}
.egypt-toggle.buy:disabled { opacity: .45; }

.egypt-wheel-overlay {
  position: absolute; inset: 0; z-index: 30;
  display: grid; place-items: center;
  background: rgba(0,0,0,.55);
  pointer-events: none;
}
.egypt-wheel-card {
  width: min(280px, 86%);
  text-align: center;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #5a3a14, #1a0c04);
  border: 2px solid #e0b35a;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  animation: egypt-chest-pop .45s ease;
}
.egypt-wheel-art {
  width: 160px; height: 160px; object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffe08a;
  margin: 0 auto 8px;
  display: block;
  animation: egypt-reel-shake .15s linear infinite;
}
.egypt-wheel-vals {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  margin-bottom: 6px;
}
.egypt-wheel-vals span {
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,220,140,.35);
  border-radius: 8px;
  padding: 2px 8px;
  font-weight: 800;
  color: #ffe08a;
  font-size: .8rem;
}
.egypt-wheel-total {
  font-size: 1.6rem; font-weight: 900; color: #fff3c4;
  text-shadow: 0 0 16px rgba(255,200,80,.55);
}

.egypt-modal {
  position: absolute; inset: 0; z-index: 40;
  background: rgba(0,0,0,.62);
  display: grid; place-items: center;
  padding: 12px;
}
.egypt-modal-card {
  width: min(340px, 94%);
  background: linear-gradient(180deg, #6b3b1e, #2a140c);
  border: 2px solid #e0b35a;
  border-radius: 16px;
  padding: 16px;
  color: #f5e6c8;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.egypt-modal-card.tall { max-height: 80vh; overflow: auto; }
.egypt-modal-card h3 { margin: 0 0 8px; color: #ffe08a; text-align: center; }
.egypt-modal-note { font-size: .85rem; margin: 0 0 12px; text-align: center; }
.egypt-buy-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 10px; font-size: .9rem;
}
.egypt-buy-price { text-align: center; margin: 8px 0 14px; font-size: 1.05rem; }
.egypt-modal-actions { display: flex; gap: 8px; justify-content: center; }
.egypt-ok {
  flex: 1;
  padding: 10px 14px; border-radius: 12px; border: 0;
  background: linear-gradient(180deg, #f0d078, #c48a22);
  color: #2a1408; font-weight: 900;
}
.egypt-ok.ghost {
  background: rgba(255,255,255,.08);
  color: #f5e6c8;
  border: 1px solid rgba(232,197,106,.35);
}
.egypt-auto-opts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; justify-content: center; }
.egypt-chip {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(232,197,106,.4);
  background: rgba(0,0,0,.3); color: #ffe08a; font-weight: 800;
}
.egypt-chip.on { background: linear-gradient(180deg, #c9a227, #8a6a12); color: #2a1604; }
.egypt-check { display: flex; gap: 8px; align-items: center; font-size: .85rem; margin-bottom: 12px; }
.egypt-rules { margin: 0 0 14px; padding-left: 18px; font-size: .8rem; line-height: 1.45; }
.egypt-rules li { margin-bottom: 6px; }

@keyframes egypt-chest-pop {
  from { opacity: 0; transform: scale(.75); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 420px) {
  .egypt-reels-frame { min-height: 270px; }
  .egypt-reels { min-height: 250px; }
  .egypt-letter { font-size: 1.05rem; }
}

/* ===== Fishing Star ===== */
.game-shell.fs-mode { background: #041820; }
.game-shell.fs-mode .game-top {
  background: linear-gradient(180deg, rgba(8,40,60,.95), rgba(4,20,32,.85));
  border-bottom: 1px solid rgba(80,180,220,.25);
}
.game-shell.fs-mode .game-stage {
  padding: 0; max-width: 960px; margin: 0 auto; width: 100%;
  height: calc(100vh - 56px);
}

.fs-screen { position: relative; width: 100%; height: 100%; overflow: hidden; }
.fs-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }

.fs-hud { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.fs-hud button, .fs-hud .fs-seat, .fs-hud .fs-electric, .fs-hud .fs-hall { pointer-events: auto; }

.fs-top {
  position: absolute; top: 6px; left: 8px; right: 8px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.fs-hall {
  background: rgba(20,80,120,.75); color: #dff6ff; border: 1px solid rgba(120,200,255,.4);
  border-radius: 8px; padding: 6px 10px; font-size: .75rem; font-weight: 800;
}
.fs-jps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: stretch;
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  min-height: 52px;
  border-radius: 10px;
  border: 1.5px solid #d4a84b;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(40, 70, 90, .55), transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(40, 70, 90, .45), transparent 55%),
    linear-gradient(180deg, #1a2838 0%, #0c1520 45%, #081018 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 220, 150, .18),
    inset 0 -1px 0 rgba(0, 0, 0, .45),
    0 4px 14px rgba(0, 0, 0, .45);
  overflow: visible;
}
.fs-jp-orn {
  position: absolute;
  top: -8px;
  width: 36px;
  height: 16px;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .65));
}
.fs-jp-orn.left { left: 8px; }
.fs-jp-orn.right { right: 8px; transform: scaleX(-1); }

.fs-jp {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 8px 5px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #f0c75a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .75);
}
.fs-jp span {
  display: block;
  line-height: 1.1;
  white-space: nowrap;
}
.fs-jp b {
  display: block;
  margin-top: 2px;
  color: #ffe566;
  font-size: .98rem;
  font-weight: 900;
  letter-spacing: .01em;
  text-shadow:
    0 1px 0 #9a5a10,
    0 2px 3px rgba(0, 0, 0, .55);
  font-variant-numeric: tabular-nums;
}

/* Speed — green glow panel (ref) */
.fs-jp.speed {
  border-radius: 8px 0 0 8px;
  margin: 2px 0 2px 2px;
}
.fs-jp.speed.hot {
  background:
    radial-gradient(ellipse 80% 90% at 18% 50%, rgba(180, 255, 200, .35), transparent 55%),
    radial-gradient(ellipse 70% 80% at 82% 55%, rgba(40, 140, 70, .45), transparent 50%),
    linear-gradient(180deg, #4ae07a 0%, #28b85a 42%, #189a42 100%);
  box-shadow:
    inset 0 1px 0 rgba(220, 255, 220, .5),
    inset 0 -1px 0 rgba(0, 60, 20, .35),
    0 0 20px rgba(46, 204, 113, .6);
}
.fs-jp.speed.hot span {
  color: #ffe566;
  text-shadow: 0 1px 2px rgba(0, 40, 10, .65);
}
.fs-jp.speed.hot b {
  color: #fff45a;
  text-shadow:
    0 1px 0 #c97800,
    0 2px 4px rgba(0, 40, 0, .45);
}

/* JILI — raised maroon center plaque */
.fs-jp.jili {
  z-index: 3;
  margin: -4px 0;
  padding: 8px 12px 7px;
  border-radius: 10px;
  border: 1.5px solid #d4a84b;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(120, 50, 40, .55), transparent 60%),
    linear-gradient(180deg, #5a2a22 0%, #3a1612 50%, #2a100e 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .5),
    0 4px 12px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 200, 140, .22),
    inset 0 -1px 0 rgba(0, 0, 0, .4);
}
.fs-jp.jili span {
  color: #e8c878;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .03em;
}
.fs-jp.jili b {
  color: #ffd860;
  font-size: 1.08rem;
  text-shadow:
    0 1px 0 #8a4a10,
    0 2px 4px rgba(0, 0, 0, .65);
}

/* Lucky — dark side of the bar */
.fs-jp.lucky {
  border-radius: 0 8px 8px 0;
  margin: 2px 2px 2px 0;
  background: transparent;
}
.fs-jp.lucky span { color: #f0c75a; }
.fs-jp.lucky b { color: #ffe566; }
.fs-help-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid #f1c40f;
  background: rgba(0,0,0,.45); color: #ffe08a; font-weight: 900;
}

.fs-left-tools, .fs-right-tools {
  position: absolute; top: 52%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px;
  z-index: 5;
}
.fs-left-tools { left: 8px; }
.fs-right-tools { right: 6px; align-items: center; }

.fs-round {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1.5px solid rgba(120,200,255,.45);
  background: linear-gradient(180deg, rgba(30,90,140,.9), rgba(10,40,70,.95));
  color: #e8f6ff; font-size: 1.05rem;
}
.fs-round.on {
  border-color: #f1c40f; box-shadow: 0 0 12px rgba(241,196,15,.45);
}

.fs-tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  width: 64px;
  color: #fff;
}
.fs-tool-ico {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(200, 230, 255, 0.55);
  box-shadow: 0 2px 8px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.2);
  background: rgba(10, 40, 70, .55);
}
.fs-tool-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fs-tool-btn.on .fs-tool-ico {
  border-color: #ffe566;
  box-shadow: 0 0 0 2px rgba(241, 196, 15, .55), 0 0 14px rgba(241, 196, 15, .4);
}
.fs-tool-lbl {
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 1px 2px #000, 0 0 4px rgba(0,0,0,.8);
  line-height: 1.1;
  text-align: center;
  max-width: 70px;
}
.fs-tool-cost {
  position: absolute;
  left: 4px; right: 4px; bottom: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(20, 10, 0, .78);
  border: 1px solid rgba(255, 200, 80, .45);
  color: #ffe566;
  font-size: .62rem;
  font-weight: 900;
  line-height: 1.2;
  z-index: 2;
}
.fs-tool-cost i {
  font-style: normal;
  color: #f1c40f;
  font-size: .55rem;
}

.fs-electric {
  position: absolute; left: 10px; bottom: 110px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer;
}
.fs-elec-orb {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #9fe8ff, #1a6a9a);
  border: 2px solid #7fdfff; font-size: 1rem;
}
.fs-electric.ready .fs-elec-orb {
  box-shadow: 0 0 16px #7fdfff; animation: egypt-win-pulse .6s ease infinite alternate;
}
.fs-elec-bar {
  width: 16px; height: 70px; border-radius: 8px;
  border: 2px solid #c9a227; background: rgba(0,0,0,.45);
  overflow: hidden; display: flex; align-items: flex-end;
}
.fs-elec-bar i {
  display: block; width: 100%;
  background: linear-gradient(180deg, #9fe8ff, #1abc9c);
}

.fs-bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 48px minmax(0, 1.15fr) 48px minmax(0, 1fr);
  gap: 4px;
  align-items: end;
  padding: 0 6px 6px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 12, 28, .55) 35%, rgba(0, 8, 20, .92) 100%);
  z-index: 6;
}

.fs-shoot-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 6px 2px 8px;
  min-height: 88px;
  border-radius: 10px;
  background: linear-gradient(180deg, #3a2810, #1a1008);
  border: 1px solid rgba(200, 160, 80, .45);
}
.fs-shoot-orb {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #9fe8ff, #156a9a);
  box-shadow: 0 0 10px rgba(100, 210, 255, .55);
  font-size: .7rem;
}
.fs-shoot-txt {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #f0e0c0;
  text-transform: uppercase;
}

.fs-seat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  color: #fff;
  min-width: 0;
}
.fs-cannon-wrap {
  width: 52px;
  height: 48px;
  margin-bottom: -4px;
  z-index: 2;
  background: transparent !important;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.fs-cannon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent !important;
  mix-blend-mode: normal;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.5));
  transition: transform 0.08s linear;
  will-change: transform;
}
.fs-seat.you .fs-cannon-wrap {
  width: 68px;
  height: 58px;
  margin-bottom: -6px;
}
.fs-coin {
  background: transparent !important;
}

.fs-panel {
  width: 100%;
  border-radius: 10px;
  padding: 4px 6px 6px;
  background:
    linear-gradient(180deg, #0a2a55 0%, #041428 100%);
  border: 2.5px solid #d4af37;
  box-shadow:
    0 0 0 1px rgba(255, 230, 140, .25) inset,
    0 4px 12px rgba(0,0,0,.45),
    0 0 10px rgba(212, 175, 55, .2);
  position: relative;
}
.fs-panel::before,
.fs-panel::after {
  content: "";
  position: absolute;
  bottom: -3px;
  width: 14px; height: 10px;
  background: linear-gradient(180deg, #f0d078, #a8741a);
  border-radius: 0 0 6px 6px;
  opacity: .9;
}
.fs-panel::before { left: 6px; }
.fs-panel::after { right: 6px; }

.fs-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 2px;
  min-height: 16px;
}
.fs-lvl {
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 4px;
  background: #123a6a;
  border: 1px solid #3a7ab8;
  color: #9fd4ff;
  font-size: .58rem; font-weight: 900;
  display: grid; place-items: center;
}
.fs-uname {
  flex: 1;
  text-align: right;
  font-size: .58rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,.35);
  border-radius: 4px;
  padding: 1px 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fs-bet-chip {
  background: #0d4a8a;
  border: 1px solid #4aa3e8;
  color: #fff;
  font-size: .62rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  min-width: 28px;
  text-align: center;
}
.fs-panel-bal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.fs-coin {
  width: 18px; height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 4px rgba(255,200,60,.5);
}
.fs-panel-bal b {
  font-size: .95rem;
  font-weight: 900;
  color: #ffe566;
  text-shadow: 0 1px 2px #000;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.fs-seat.you .fs-panel-bal b { font-size: 1.05rem; }

.fs-ring-btn {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 3px solid #7fdfff;
  background:
    radial-gradient(circle at 35% 30%, #5ec8ff, #156a9a 55%, #0a3a5a);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    0 0 0 2px rgba(10, 40, 70, .8),
    0 0 14px rgba(80, 200, 255, .45),
    inset 0 2px 0 rgba(255,255,255,.35);
  flex-shrink: 0;
}
.fs-ring-btn:active { transform: scale(.94); }

.fs-powers {
  display: flex; gap: 3px; justify-content: center; flex-wrap: wrap;
  margin-top: 3px;
  width: 100%;
}
.fs-powers button {
  padding: 2px 7px; border-radius: 999px;
  border: 1px solid rgba(120,200,255,.4);
  background: rgba(0,20,40,.65); color: #cde;
  font-size: .6rem; font-weight: 800;
}
.fs-powers button.on {
  background: linear-gradient(180deg, #3de0c0, #149a7a);
  color: #042018; border-color: #7dffb0;
}

.fs-help {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(0,10,20,.7); display: grid; place-items: center;
  pointer-events: auto; padding: 12px;
}
.fs-help[hidden] { display: none !important; }
.fs-help-card {
  width: min(420px, 94%); max-height: 80vh; overflow: auto;
  background: linear-gradient(180deg, #0e3a55, #071820);
  border: 2px solid #5dade2; border-radius: 16px; padding: 16px; color: #e8f4ff;
}
.fs-help-card h3 { margin: 0 0 8px; color: #7fdfff; text-align: center; }
.fs-help-card ul { margin: 0 0 12px; padding-left: 18px; font-size: .82rem; line-height: 1.45; }
.fs-ok {
  width: 100%; padding: 10px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #5dade2, #1a6a9a); color: #fff; font-weight: 900;
}

@media (max-width: 700px) {
  .fs-bottom {
    grid-template-columns: 28px minmax(0, .9fr) 40px minmax(0, 1.2fr) 40px minmax(0, .9fr);
    gap: 2px;
    padding: 0 4px 4px;
  }
  .fs-seat.bot .fs-panel-bal b { font-size: .72rem; }
  .fs-seat.you .fs-panel-bal b { font-size: .88rem; }
  .fs-cannon-wrap { width: 40px; height: 34px; }
  .fs-seat.you .fs-cannon-wrap { width: 50px; height: 42px; }
  .fs-ring-btn { width: 38px; height: 38px; font-size: 1.15rem; margin-bottom: 14px; }
  .fs-shoot-txt { font-size: .48rem; }
  .fs-jps { max-width: min(100%, 360px); min-height: 46px; }
  .fs-jp { font-size: .52rem; padding: 4px 4px 3px; }
  .fs-jp b { font-size: .78rem; }
  .fs-jp.jili { padding: 6px 6px 5px; margin: -3px 0; }
  .fs-jp.jili span { font-size: .56rem; }
  .fs-jp.jili b { font-size: .88rem; }
  .fs-jp-orn { width: 28px; height: 12px; top: -6px; }
  .fs-round { width: 36px; height: 36px; font-size: .9rem; }
  .fs-tool-btn { width: 56px; }
  .fs-tool-ico { width: 46px; height: 46px; border-radius: 12px; }
  .fs-tool-lbl { font-size: .52rem; }
  .fs-electric { bottom: 118px; }
}

/* ——— Lucky Fruits (neon social casino) ——— */
.game-shell.lf-mode {
  background: #140824;
}
.game-shell.lf-mode .game-top {
  background: linear-gradient(180deg, rgba(40,16,70,.95), rgba(20,8,40,.98));
  border-bottom: 1px solid rgba(240, 180, 80, .35);
}
.game-shell.lf-mode .game-stage {
  padding: 0; max-width: min(1100px, 100%); margin: 0 auto; width: 100%;
}

.lf-screen { position: relative; min-height: 100%; color: #fff; overflow: hidden; }
.lf-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0; pointer-events: none;
  filter: saturate(1.15) brightness(.72);
}
.lf-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(160,60,220,.18), transparent 55%),
    linear-gradient(180deg, rgba(10,4,24,.35), rgba(10,4,24,.75));
}
.lf-layout {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) minmax(150px, 220px);
  gap: 10px;
  padding: 10px;
  min-height: 100%;
  align-items: stretch;
}

.lf-rank, .lf-chat {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(50,20,90,.88), rgba(20,8,40,.92));
  border: 1.5px solid rgba(200,140,255,.35);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
  min-height: 0;
}
.lf-rank-head, .lf-chat-head {
  padding: 10px 12px; font-weight: 900; font-size: .82rem; letter-spacing: .04em;
  background: linear-gradient(180deg, #7a3cb8, #4a1a78);
  border-bottom: 1px solid rgba(255,200,120,.25);
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.lf-chat-head span { opacity: .75; font-weight: 700; font-size: .72rem; }
.lf-rank-list {
  list-style: none; margin: 0; padding: 8px; flex: 1; overflow: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.lf-rank-list li {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: center;
  padding: 6px 8px; border-radius: 8px;
  background: rgba(0,0,0,.22);
  font-size: .68rem; font-weight: 700;
}
.lf-rank-pos { text-align: center; }
.lf-rank-name { color: #f5e8ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-rank-score { color: #ffe566; font-variant-numeric: tabular-nums; }
.lf-rank-me {
  margin: 8px; padding: 8px 10px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,200,80,.2), rgba(120,60,0,.25));
  border: 1px solid rgba(255,200,100,.4);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .68rem; font-weight: 800;
}
.lf-rank-me b { color: #ffe566; }

.lf-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lf-topbar { display: flex; align-items: center; justify-content: space-between; }
.lf-title {
  font-weight: 900; font-size: 1.35rem; letter-spacing: .05em;
  background: linear-gradient(180deg, #fff8d0, #f0c040 50%, #c87808);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #4a2008) drop-shadow(0 0 12px rgba(255,180,60,.45));
}
.lf-sound {
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: transparent; padding: 0; overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
}

.lf-machine { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.lf-banner {
  min-height: 1.3em; text-align: center; font-weight: 800; font-size: .78rem;
  color: #ffe566; text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.lf-frame {
  width: 100%; max-width: 560px;
  padding: 10px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, #fff0a8, #f0c040 25%, #a06810 55%, #f0c040 80%, #fff6c8);
  box-shadow:
    0 0 0 3px rgba(80,40,0,.45),
    0 0 28px rgba(255,180,60,.55),
    0 12px 28px rgba(0,0,0,.45),
    inset 0 2px 0 rgba(255,255,255,.55);
}
.lf-reels {
  display: grid; gap: 6px;
  background: #12081e;
  border-radius: 12px;
  padding: 8px;
  border: 2px solid rgba(40,10,60,.8);
  box-shadow: inset 0 0 24px rgba(0,0,0,.65);
}
.lf-reels.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.lf-cell {
  aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: radial-gradient(circle at 40% 30%, #3a1a5a, #140820);
  border: 1.5px solid rgba(180,120,255,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  min-height: 0;
}
.lf-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.1) contrast(1.05);
  background: #1a0a30;
}
.lf-cell.is-win {
  border-color: #ffe566;
  box-shadow: 0 0 0 2px #ffe566, 0 0 16px rgba(255,200,60,.85);
  animation: lf-winpulse .55s ease infinite alternate;
}
.lf-reels.is-spinning .lf-cell { animation: lf-bounce .28s ease infinite alternate; }
.lf-reels.is-spinning .lf-cell:nth-child(odd) { animation-delay: .06s; }
@keyframes lf-bounce {
  from { transform: translateY(-5px); filter: brightness(1.08); }
  to { transform: translateY(5px); filter: brightness(.92); }
}
@keyframes lf-winpulse {
  from { filter: brightness(1.05); }
  to { filter: brightness(1.25); }
}
.lf-winbar {
  display: flex; gap: 10px; align-items: baseline; justify-content: center;
  font-weight: 900;
}
.lf-winbar span { font-size: .65rem; letter-spacing: .08em; color: #c9a0ff; }
.lf-winbar b {
  font-size: 1.25rem;
  background: linear-gradient(180deg, #fff8d0, #ffe566, #e0a020);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 #4a2008);
}

.lf-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 8px 14px;
  background: linear-gradient(180deg, rgba(40,16,70,.75), rgba(16,6,32,.9));
  border-radius: 16px;
  border: 1px solid rgba(180,100,255,.3);
  box-shadow: 0 -4px 24px rgba(255,60,160,.12), inset 0 1px 0 rgba(255,255,255,.06);
}
.lf-bet-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 6px; border-radius: 999px;
  background: linear-gradient(180deg, #3a1a60, #1e0c38);
  border: 1.5px solid rgba(200,140,255,.45);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.35);
}
.lf-bet-val { text-align: center; min-width: 96px; padding: 0 4px; }
.lf-bet-val small { display: block; font-size: .48rem; font-weight: 800; letter-spacing: .06em; color: #c9a0ff; }
.lf-bet-val b { font-size: .95rem; color: #fff; font-variant-numeric: tabular-nums; }
.lf-round {
  width: 34px; height: 34px; border-radius: 50%; font-weight: 900; font-size: 1.1rem;
  border: 2px solid #f0d070; color: #3a2200;
  background: linear-gradient(180deg, #ffe08a, #e0a020);
  box-shadow: 0 3px 0 #6a3e00;
}
.lf-spin-btn {
  width: 92px; height: 92px; border-radius: 50%;
  border: 4px solid #c8ffe0;
  background: radial-gradient(circle at 35% 28%, #b8ff7a, #3fd060 45%, #149a38 78%, #0a6020);
  color: #fffef5; font-weight: 900;
  box-shadow:
    0 6px 0 #0a4a20,
    0 10px 24px rgba(0,0,0,.4),
    0 0 24px rgba(80,255,120,.45),
    inset 0 3px 0 rgba(255,255,255,.45);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.05;
}
.lf-spin-btn strong { font-size: 1.05rem; letter-spacing: .06em; text-shadow: 0 2px 0 rgba(0,40,10,.45); }
.lf-spin-btn em { font-style: normal; font-size: .48rem; opacity: .9; font-weight: 700; }
.lf-spin-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 3px 0 #0a4a20, 0 0 16px rgba(80,255,120,.4); }
.lf-max, .lf-auto {
  border-radius: 999px; border: 2px solid rgba(230,180,255,.55);
  background: linear-gradient(180deg, #8a4ad0, #4a1a88);
  color: #fff; font-weight: 900; font-size: .68rem; letter-spacing: .04em;
  padding: 10px 14px; line-height: 1.15;
  box-shadow: 0 4px 0 #2a0a50, 0 0 14px rgba(160,80,255,.35);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.lf-max { width: 64px; height: 64px; border-radius: 50%; padding: 0; }
.lf-auto.on {
  background: linear-gradient(180deg, #ffe08a, #e0a020);
  color: #3a2200; border-color: #fff3c4;
  box-shadow: 0 4px 0 #6a3e00, 0 0 14px rgba(255,200,60,.45);
}
.lf-round:disabled, .lf-spin-btn:disabled, .lf-max:disabled, .lf-auto:disabled { opacity: .5; }

.lf-chat-list {
  flex: 1; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px;
}
.lf-chat-row {
  display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start;
}
.lf-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: .75rem;
  background: linear-gradient(145deg, #c070ff, #6020a0);
  border: 1.5px solid rgba(255,220,140,.45);
}
.lf-chat-row.tone-1 .lf-avatar { background: linear-gradient(145deg, #70d0ff, #2060a0); }
.lf-chat-row.tone-2 .lf-avatar { background: linear-gradient(145deg, #ff90c0, #a02060); }
.lf-chat-row.tone-3 .lf-avatar { background: linear-gradient(145deg, #90ff90, #208040); }
.lf-chat-row.tone-4 .lf-avatar { background: linear-gradient(145deg, #ffe080, #a07010); }
.lf-chat-row b { display: block; font-size: .62rem; color: #ffe566; }
.lf-chat-row p { margin: 2px 0 0; font-size: .68rem; color: #f0e8ff; line-height: 1.25; }
.lf-chat-form {
  display: flex; gap: 6px; padding: 8px; border-top: 1px solid rgba(200,140,255,.25);
}
.lf-chat-form input {
  flex: 1; min-width: 0; border-radius: 999px; border: 1px solid rgba(200,140,255,.35);
  background: rgba(0,0,0,.35); color: #fff; padding: 8px 12px; font-size: .72rem;
}
.lf-chat-form button {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: linear-gradient(180deg, #9a50e0, #5a20a0); color: #fff; font-size: .9rem;
  box-shadow: 0 2px 0 #2a0860;
}

@media (max-width: 860px) {
  .lf-layout {
    grid-template-columns: 1fr;
  }
  .lf-rank { max-height: 180px; }
  .lf-chat { max-height: 200px; }
  .lf-spin-btn { width: 78px; height: 78px; }
  .lf-title { font-size: 1.15rem; }
}


/* ——— Shared UI icons (assets/ui + js/core/icons.js) ——— */
.ui-ico {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  object-fit: contain;
  vertical-align: middle;
  pointer-events: none;
  user-select: none;
}
.ui-ico-coin { width: 18px; height: 18px; }
.ui-ico-back { width: 18px; height: 18px; filter: brightness(1.15); }
.ui-ico-sound { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ui-ico-rank { width: 22px; height: 22px; object-fit: contain; }
.ui-ico-bolt { width: 22px; height: 22px; object-fit: contain; }
.ui-ico-send { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ui-ico-inline { width: 16px; height: 16px; margin-left: 2px; }

.btn-icon .ui-ico-back { width: 20px; height: 20px; }
.wallet-chip .ui-ico-coin { margin-right: 2px; }
.egypt-ico, .hc-circle, .fs-round, .gp-round-btn, .lf-sound {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; overflow: hidden;
}
.egypt-ico .ui-ico-sound,
.hc-circle .ui-ico-sound,
.fs-round .ui-ico-sound,
.gp-round-btn .ui-ico-sound,
.lf-sound .ui-ico-sound {
  width: 100%; height: 100%;
}
.lf-auto { display: inline-flex; align-items: center; gap: 4px; }
.lf-chat-form button { display: inline-flex; align-items: center; justify-content: center; padding: 0; overflow: hidden; }
.lf-rank-pos { display: inline-flex; align-items: center; justify-content: center; }
.fs-elec-orb, .fs-shoot-orb { display: inline-flex; align-items: center; justify-content: center; }
.fs-elec-orb .ui-ico-bolt, .fs-shoot-orb .ui-ico-bolt { width: 28px; height: 28px; }

/* ── Jurassic desert hunt ── */
.game-shell.jr-mode { background: #1b1208; }
.game-shell.jr-mode .game-top {
  background: linear-gradient(180deg, rgba(20,12,4,.92), rgba(20,12,4,.55));
  border-bottom: 1px solid rgba(255,200,100,.15);
}
.game-shell.jr-mode .game-stage { padding: 0; height: calc(100% - 52px); }
.jr-screen { position: relative; width: 100%; height: 100%; overflow: hidden; }
.jr-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.jr-hud { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.jr-hud button, .jr-hud .jr-bet-box, .jr-hud .jr-powers { pointer-events: auto; }
.jr-top {
  position: absolute; top: 8px; left: 10px; right: 10px;
  display: flex; align-items: center; gap: 8px;
}
.jr-session, .jr-bal-pill {
  background: rgba(20,10,0,.55);
  border: 1px solid rgba(255,210,120,.35);
  border-radius: 12px;
  padding: 6px 10px;
  color: #ffe9b0;
  display: flex; flex-direction: column; line-height: 1.1;
}
.jr-session small, .jr-bal-pill span { font-size: .65rem; opacity: .75; }
.jr-session b, .jr-bal-pill b { font-size: .95rem; color: #fff6d0; }
.jr-bal-pill { margin-left: auto; flex-direction: row; align-items: center; gap: 8px; }
.jr-ico {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,220,140,.4);
  background: rgba(30,16,4,.7); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.jr-side {
  position: absolute; left: 10px; bottom: 70px;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.jr-auto {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid #fff; background: #c0392b; color: #fff;
  font-weight: 900; letter-spacing: .04em; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.jr-auto.on { background: #27ae60; }
.jr-bet-box {
  display: flex; align-items: center; gap: 6px;
  background: rgba(20,10,0,.6); border: 1px solid rgba(255,210,120,.35);
  border-radius: 999px; padding: 4px 6px; color: #ffe9b0;
}
.jr-bet-box button {
  width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: #e67e22; color: #fff; font-weight: 900; cursor: pointer;
}
.jr-bet-box b { min-width: 52px; text-align: center; }
.jr-powers { display: flex; gap: 4px; flex-wrap: wrap; max-width: 140px; }
.jr-powers button {
  min-width: 36px; height: 28px; border-radius: 8px; border: 1px solid rgba(255,220,140,.35);
  background: rgba(40,22,8,.75); color: #ffe9b0; font-weight: 800; cursor: pointer;
}
.jr-powers button.on { background: #e67e22; color: #1b1208; border-color: #f5c518; }
.jr-hint {
  position: absolute; bottom: 10px; left: 0; right: 0;
  text-align: center; margin: 0; color: rgba(255,240,200,.7); font-size: .75rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.jr-rules {
  position: absolute; inset: 0; z-index: 5;
  background: rgba(10,6,2,.55);
  display: grid; place-items: center; padding: 16px;
}
.jr-rules[hidden] { display: none !important; }
.jr-rules-card {
  width: min(520px, 96vw); max-height: 86vh; overflow: auto;
  background: linear-gradient(180deg, #3a2410, #24160a);
  border: 2px solid #e0a84a; border-radius: 16px; padding: 16px; color: #fff4d8;
}
.jr-rules-card h3 { margin: 0 0 6px; color: #ffd56a; }
.jr-rules-card p { margin: 0 0 12px; opacity: .85; font-size: .85rem; }
.jr-rules-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px;
}
.jr-rule-card {
  background: rgba(255,255,255,.06); border-radius: 10px; padding: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
}
.jr-rule-card img {
  width: 72px; height: 54px; object-fit: contain; background: transparent;
}
.jr-rule-card b { font-size: .72rem; }
.jr-rule-card span { color: #ffe066; font-weight: 800; }
.jr-ok {
  margin-top: 14px; width: 100%; height: 42px; border: 0; border-radius: 10px;
  background: linear-gradient(180deg, #f0c14b, #d4921a); color: #2a1604;
  font-weight: 900; cursor: pointer;
}

/* ── Jaap Bubble (bright bhagwa / yellow Sanatani) ── */
.game-shell.jb-mode {
  position: relative;
  min-height: 100dvh;
  height: 100%;
  max-width: none;
  background: #ff9f3c;
}
.game-shell.jb-mode .game-top { display: none; }
.game-shell.jb-mode .game-stage {
  padding: 0;
  height: 100%;
  min-height: 100dvh;
  max-width: none;
  margin: 0;
  width: 100%;
}
.jb-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  color: #4a1c00;
}
.jb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.jb-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(255,248,231,.42), rgba(255,180,70,.18) 45%, rgba(255,120,20,.28));
  pointer-events: none;
}
.jb-ui { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; }
.jb-top {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 6px;
}
.jb-nav {
  width: 46px; height: 46px; border-radius: 50%; border: 0; padding: 0;
  background: transparent; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(255,100,0,.28);
  flex-shrink: 0;
}
.jb-nav img {
  width: 46px; height: 46px; object-fit: contain;
  background: transparent; display: block;
  filter: drop-shadow(0 2px 4px rgba(120,40,0,.25));
}
.jb-brand { display: flex; flex-direction: column; line-height: 1.05; }
.jb-brand b { font-size: 1.15rem; color: #7a2a00; letter-spacing: .02em; }
.jb-brand small { color: #a85a10; font-weight: 700; }
.jb-stats { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.jb-pill {
  background: #fff; border: 1px solid rgba(255,140,0,.35);
  border-radius: 999px; padding: 5px 10px; font-weight: 800; font-size: .78rem;
  color: #7a2a00; display: inline-flex; gap: 6px; align-items: center;
  box-shadow: 0 3px 10px rgba(255,120,0,.12);
}
.jb-pill i { font-style: normal; opacity: .65; font-size: .68rem; }
.jb-pill.gold { background: linear-gradient(180deg, #ffe566, #ffb000); color: #5a2200; border-color: #ff9a00; }

.jb-hub, .jb-shop, .jb-achievers { flex: 1; overflow: auto; padding: 8px 14px 18px; }
.jb-tabs { display: flex; gap: 8px; margin: 8px 0 6px; }
.jb-period { margin: 0 0 10px; font-weight: 700; color: #a85a10; font-size: .85rem; }
.jb-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.jb-board li {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 8px; align-items: center;
  background: #fff; border: 1px solid #ffd089; border-radius: 12px; padding: 8px 10px;
}
.jb-board li.me { border-color: #ff6b00; background: #fff3d6; box-shadow: 0 0 0 1px rgba(255,107,0,.2); }
.jb-rk { font-weight: 900; color: #ff6b00; }
.jb-bhakt b { display: block; color: #7a2a00; }
.jb-bhakt small { color: #a85a10; }
.jb-lvl { font-weight: 900; color: #7a2a00; }
.jb-hamper-title { margin: 14px 0 8px; color: #ff6b00; }
.jb-hamper-grid { display: grid; gap: 8px; margin-bottom: 12px; }
.jb-hamper {
  background: linear-gradient(180deg, #fffdf6, #ffe8b8);
  border: 1px solid #ffb347; border-radius: 12px; padding: 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.jb-hamper b { color: #7a2a00; }
.jb-hamper small, .jb-hamper-items { color: #a85a10; font-size: .75rem; }
.jb-title-line { color: #a85a10; font-weight: 800; margin: 0 0 10px; }
.jb-cta:disabled, .jb-buy:disabled { opacity: .45; cursor: not-allowed; }
.jb-card.bright {
  background: linear-gradient(180deg, #fffdf6, #ffe8b8);
  border: 2px solid #ffb347;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(255,120,0,.18);
}
.jb-card h2 { margin: 0 0 6px; color: #ff6b00; font-size: 1.35rem; }
.jb-card p { margin: 0 0 12px; color: #8a4a12; line-height: 1.35; }
.jb-label { display: block; font-size: .75rem; font-weight: 800; color: #a85a10; margin-bottom: 4px; }
.jb-input {
  width: 100%; box-sizing: border-box; border-radius: 14px;
  border: 2px solid #ffb347; background: #fff; padding: 12px 14px;
  font-size: 1.05rem; font-weight: 800; color: #5a2200; outline: none;
}
.jb-input:focus { border-color: #ff6b00; box-shadow: 0 0 0 3px rgba(255,140,0,.2); }
.jb-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.jb-chip {
  border: 1px solid #ffb347; background: #fff7e0; color: #9a4a00;
  border-radius: 999px; padding: 6px 12px; font-weight: 800; cursor: pointer;
}
.jb-chip.on { background: linear-gradient(180deg, #ff9a2e, #ff6b00); color: #fff; border-color: #ff6b00; }
.jb-bet-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px; font-weight: 800; color: #7a2a00;
}
.jb-stepper {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 4px 6px;
  border: 1px solid #ffb347;
}
.jb-stepper button {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: #ff6b00; color: #fff; font-weight: 900; cursor: pointer;
}
.jb-stepper b { min-width: 64px; text-align: center; color: #5a2200; }
.jb-level-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px;
}
.jb-level-meta div {
  background: rgba(255,255,255,.75); border-radius: 12px; padding: 8px; text-align: center;
  border: 1px solid rgba(255,160,40,.35);
}
.jb-level-meta small { display: block; font-size: .65rem; color: #a85a10; }
.jb-level-meta b { color: #ff6b00; }
.jb-cta {
  width: 100%; height: 48px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, #ffd200, #ff8a00); color: #4a1c00;
  font-weight: 900; font-size: 1rem;
  box-shadow: 0 8px 18px rgba(255,120,0,.28);
}
.jb-ghost {
  width: 100%; margin-top: 8px; height: 42px; border-radius: 12px; cursor: pointer;
  border: 2px solid #ffb347; background: #fff; color: #ff6b00; font-weight: 800;
}
.jb-ghost.sm { width: auto; height: 34px; padding: 0 12px; margin: 0; }

.jb-owned { margin-top: 14px; }
.jb-owned h3 { margin: 0 0 8px; color: #7a2a00; }
.jb-owned-row { display: flex; flex-wrap: wrap; gap: 8px; }
.jb-owned-item {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border-radius: 12px; padding: 6px 10px;
  border: 1px solid #ffd089; font-weight: 700; font-size: .8rem;
}
.jb-owned-item img { width: 28px; height: 28px; object-fit: contain; background: transparent; }

.jb-play { flex: 1; position: relative; min-height: 0; display: flex; flex-direction: column; }
.jb-play-hud { padding: 4px 14px 8px; position: relative; z-index: 3; }
.jb-mantra {
  text-align: center; font-weight: 900; font-size: 1.25rem; color: #7a2a00;
  text-shadow: 0 1px 0 #fff, 0 2px 10px rgba(255,200,80,.55); letter-spacing: .04em;
}
.jb-timers {
  display: flex; justify-content: center; gap: 10px; margin-top: 6px;
}
.jb-time, .jb-count {
  background: rgba(255,255,255,.88);
  border: 1px solid #ffb347;
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 900;
  color: #7a2a00;
  box-shadow: 0 4px 12px rgba(255,120,0,.15);
}
.jb-time.hot { background: #ff6b00; color: #fff; border-color: #ff3b00; }
.jb-progress { margin-top: 6px; text-align: center; font-weight: 800; color: #8a4a12; font-size: .85rem; }
.jb-bar {
  height: 10px; border-radius: 999px; background: rgba(255,255,255,.7);
  border: 1px solid #ffb347; overflow: hidden; margin-bottom: 4px;
}
.jb-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #ffd200, #ff6b00);
}
.jb-canvas {
  flex: 1; width: 100%; min-height: 0; display: block;
  touch-action: none; cursor: pointer; background: transparent;
}
.jb-clear {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(255, 200, 100, .45); z-index: 3; padding: 16px;
}
.jb-clear-card {
  width: min(360px, 94vw); background: linear-gradient(180deg, #fffdf6, #ffe08a);
  border: 2px solid #ff8a00; border-radius: 20px; padding: 18px; text-align: center;
  box-shadow: 0 16px 32px rgba(255,100,0,.25);
}
.jb-clear-card h2 { margin: 0 0 6px; color: #ff6b00; }
.jb-clear-card p { margin: 0 0 14px; color: #8a4a12; }

.jb-shop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jb-shop-punya { margin: 0 0 12px; font-weight: 800; color: #7a2a00; }
.jb-shop-punya b { color: #ff6b00; }
.jb-shop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
}
.jb-shop-item {
  background: #fff; border: 1px solid #ffd089; border-radius: 16px;
  padding: 10px; text-align: center; display: flex; flex-direction: column; gap: 4px;
}
.jb-shop-item img {
  width: 72px; height: 72px; object-fit: contain; margin: 0 auto; background: transparent;
}
.jb-shop-item b { color: #7a2a00; }
.jb-shop-item small { color: #a85a10; font-size: .7rem; min-height: 2em; }
.jb-cost { font-weight: 900; color: #ff6b00; }
.jb-buy {
  margin-top: 4px; border: 0; border-radius: 10px; height: 34px; cursor: pointer;
  background: linear-gradient(180deg, #ffd200, #ff8a00); color: #4a1c00; font-weight: 800;
}
.jb-buy:disabled { opacity: .45; cursor: not-allowed; }
