/* 1 Shot Golf - Design System & Modern Mobile Styling */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-deep: #03150d;
  --bg-surface: #062b1a;
  --bg-card: rgba(10, 48, 30, 0.75);
  --bg-card-border: rgba(52, 211, 153, 0.25);
  --green-primary: #10b981;
  --green-accent: #059669;
  --green-glow: #34d399;
  --gold-primary: #f59e0b;
  --gold-accent: #fbbf24;
  --gold-glow: #fde68a;
  --cyan-neon: #00f0ff;
  --red-neon: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.35);
  --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: radial-gradient(circle at 50% 20%, #064e3b 0%, #022013 50%, #011109 100%);
  min-height: 100vh;
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  touch-action: manipulation;
}

/* App Outer Wrapper */
#app-viewport {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Device Simulator Bezel Option */
.app-shell {
  width: 100%;
  max-width: 480px;
  height: 100%;
  height: 100dvh;
  background: var(--bg-deep);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* On desktop, allow standalone preview frame. On real mobile, always full native */
@media (min-width: 601px) {
  .app-shell.standalone-mobile-frame {
    max-width: 420px;
    height: 840px;
    max-height: 94dvh;
    border-radius: 48px;
    border: 10px solid #1e293b;
    box-shadow: 0 0 0 4px #475569, 0 30px 80px rgba(0, 0, 0, 0.9);
  }

  .standalone-mobile-frame .phone-notch {
    display: block;
  }
}

/* Real mobile devices: 100% fullscreen, edge-to-edge */
@media (max-width: 600px) {
  .app-shell {
    max-width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .phone-notch {
    display: none !important;
  }

  .device-toggle-float {
    display: none !important;
  }

  .top-header-bar {
    padding-top: 56px !important;
    padding-bottom: 12px !important;
  }

  #screen-home {
    padding: 10px 14px 20px !important;
  }

  .home-action-buttons {
    padding-bottom: max(28px, env(safe-area-inset-bottom, 28px)) !important;
    gap: 8px !important;
  }

  .game-bottom-bar {
    padding-bottom: max(20px, env(safe-area-inset-bottom, 20px)) !important;
  }

  .hero-logo-img {
    width: 100px !important;
    height: 100px !important;
  }

  .hero-tagline {
    font-size: 11px !important;
    margin-top: 6px !important;
  }

  .home-chests-wrapper {
    margin: 6px 0 !important;
  }

  .chest-img-wrap {
    width: 44px !important;
    height: 44px !important;
  }

  .btn-main-play {
    padding: 10px 14px !important;
  }

  .play-main {
    font-size: 18px !important;
  }

  .btn-nav-card {
    padding: 8px 4px !important;
  }

  .nav-card-icon {
    font-size: 18px !important;
    margin-bottom: 2px !important;
  }

  .nav-card-title {
    font-size: 10px !important;
  }
}

/* Mobile Status Bar / Dynamic Island for desktop simulation */
.phone-notch {
  width: 120px;
  height: 26px;
  background: #000;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 20px;
  z-index: 100;
  display: none;
}

/* Device View Toggle button */
.device-toggle-float {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  z-index: 1000;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.device-toggle-float:hover {
  background: var(--green-accent);
}

/* Common Header Bar */
.top-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(4, 32, 19, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-card-border);
  z-index: 20;
  flex-shrink: 0;
}

.player-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
  user-select: none;
}

.player-profile-badge:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.08);
}

.player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  background: #064e3b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
}

.player-name-wrap {
  display: flex;
  flex-direction: column;
}

.player-name {
  font-size: 13.5px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.8px;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.player-trophies-pill {
  font-size: 11px;
  color: var(--gold-accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.currency-group {
  display: flex;
  gap: 8px;
}

.currency-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
}

.currency-pill.coins {
  color: var(--gold-accent);
  border-color: rgba(245, 158, 11, 0.3);
}

.currency-pill.gems {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

/* Screen Containers */
.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

.screen.hidden {
  display: none !important;
}

/* ================= HOME SCREEN ================= */
#screen-home {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 50% 10%, #064e3b 0%, #031c11 70%);
}

.home-hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  position: relative;
}

.hero-logo-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--gold-primary);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.5);
  animation: floatBounce 4s ease-in-out infinite;
  object-fit: cover;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-tagline {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--cyan-neon);
  text-transform: uppercase;
  margin-top: 10px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

/* Chests On Home Screen */
.home-chests-wrapper {
  margin: 18px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chests-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.chest-slot-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}

.chest-slot-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-accent);
}

.chest-badge {
  position: absolute;
  top: -6px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  color: #fff;
  letter-spacing: 0.5px;
}

.chest-img-wrap {
  width: 58px;
  height: 58px;
  position: relative;
  margin: 6px 0;
}

.chest-thumbnail {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.chest-slot-name {
  font-size: 10px;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.2;
  margin-bottom: 6px;
  min-height: 24px;
}

.btn-open-chest {
  width: 100%;
  padding: 5px 0;
  font-size: 9px;
  font-weight: 800;
  border-radius: 8px;
  border: none;
  background: #334155;
  color: #cbd5e1;
  cursor: pointer;
}

.btn-open-chest.ready {
  background: linear-gradient(135deg, var(--gold-primary), #d97706);
  color: #000;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Home Action Navigation Buttons */
.home-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-bottom: max(22px, env(safe-area-inset-bottom, 22px));
  flex-shrink: 0;
}

.btn-main-play {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  border: 2px solid var(--green-glow);
  padding: 16px 20px;
  border-radius: 20px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-main-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.55);
}

.btn-main-play:active {
  transform: translateY(1px);
}

.play-sub {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #a7f3d0;
}

.play-main {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.home-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.btn-nav-card {
  background: rgba(6, 43, 26, 0.8);
  border: 1px solid var(--bg-card-border);
  padding: 14px 8px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.btn-nav-card:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--green-glow);
  transform: translateY(-2px);
}

.nav-card-icon {
  font-size: 26px;
  margin-bottom: 4px;
}

.nav-card-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ================= IN-GAME ACTION SCREEN ================= */
#screen-game {
  background: #021c11;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* In-Game Top HUD */
.game-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(2, 28, 17, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.hud-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hud-center-info {
  text-align: center;
}

.hud-level-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.hud-shot-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--cyan-neon);
  text-transform: uppercase;
}

/* Game Canvas Container */
.game-canvas-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #052e16;
}

#golf-canvas {
  display: block;
  touch-action: none;
}

/* In-Game Bottom Action Bar */
.game-bottom-bar {
  padding: 12px 16px;
  background: rgba(2, 28, 17, 0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--bg-card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.helper-items-tray {
  display: flex;
  gap: 10px;
}

.btn-helper-action {
  background: rgba(10, 48, 30, 0.85);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  min-width: 64px;
}

.btn-helper-action:hover {
  border-color: var(--green-glow);
  background: rgba(16, 185, 129, 0.2);
}

.btn-helper-action.active {
  background: rgba(0, 240, 255, 0.25);
  border-color: var(--cyan-neon);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.btn-helper-action.ready-pulse {
  background: rgba(239, 68, 68, 0.3);
  border-color: var(--red-neon);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
  animation: pulseGlow 0.8s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.helper-icon {
  font-size: 20px;
}

.helper-name {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.helper-count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #0f172a;
  border: 1px solid var(--gold-primary);
  color: var(--gold-accent);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
}

/* Ball Selector in HUD */
.hud-ball-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--gold-primary);
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.hud-ball-selector:hover {
  background: rgba(245, 158, 11, 0.2);
}

.hud-ball-preview {
  font-size: 20px;
}

.hud-ball-meta {
  display: flex;
  flex-direction: column;
}

.hud-ball-lbl {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
}

.hud-ball-count {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-accent);
}

/* ================= MODALS & DRAWERS ================= */
.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.modal-backdrop.hidden {
  display: none !important;
}

.modal-window {
  width: 100%;
  max-width: 420px;
  max-height: 85%;
  background: #052617;
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(4, 32, 19, 0.9);
  border-bottom: 1px solid var(--bg-card-border);
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
}

.btn-close-modal:hover {
  color: #fff;
}

.modal-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ================= STORE MODAL ================= */
.store-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 10px;
}

.store-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 800;
  padding: 8px 2px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-tab-btn.active {
  background: var(--green-primary);
  color: #000;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.store-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-card {
  background: rgba(10, 48, 30, 0.8);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-card.selected {
  border-color: var(--gold-accent);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.store-card.locked {
  opacity: 0.8;
  filter: grayscale(0.2);
}

.store-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.club-icon, .ball-icon, .helper-icon {
  font-size: 28px;
}

.card-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.card-type {
  font-size: 11px;
  color: var(--text-muted);
}

.card-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

.ball-perk-badge {
  display: inline-block;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--cyan-neon);
  color: var(--cyan-neon);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  align-self: flex-start;
}

.card-stats {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.stat-bar {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 6px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}

.stat-lbl {
  color: var(--text-muted);
  font-weight: 700;
}

.stat-val {
  color: var(--gold-accent);
  font-weight: 800;
}

.upgrade-progress-wrap {
  width: 100%;
  height: 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #10b981, #34d399);
}

.upgrade-text {
  position: relative;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  z-index: 2;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.card-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  border: none;
}

.btn-select-club, .btn-select-ball {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-select-club.active, .btn-select-ball.active {
  background: var(--green-primary);
  color: #000;
  font-weight: 900;
}

.btn-buy-ball, .btn-buy-helper, .btn-upgrade-club, .btn-unlock-club {
  background: linear-gradient(135deg, var(--gold-primary), #d97706);
  color: #000;
  font-weight: 900;
}

.btn-upgrade-club.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #334155;
  color: #94a3b8;
}

/* ================= 3D CHEST OPENING MODAL ================= */
.chest-open-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 28px;
  text-align: center;
  flex: 1;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  max-height: calc(85dvh - 65px);
  width: 100%;
}

.modal-chest-art-wrap {
  width: 200px;
  height: 200px;
  position: relative;
  margin: 10px 0 20px;
}

.modal-chest-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 4px solid var(--gold-primary);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.6);
  transition: transform 0.4s;
}

.modal-chest-art.shake {
  animation: chestRattle 0.6s infinite ease-in-out;
}

@keyframes chestRattle {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-5deg) scale(1.05); }
  50% { transform: rotate(5deg) scale(1.05); }
  75% { transform: rotate(-3deg) scale(1.03); }
  100% { transform: rotate(0deg) scale(1); }
}

.modal-chest-art.opened {
  transform: scale(1.08);
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.9), 0 0 100px rgba(255, 255, 255, 0.4);
}

.chest-cards-reveal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}

.reward-reveal-card {
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid #fff;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reward-reveal-card.flip-in {
  transform: scale(1);
  opacity: 1;
}

.reward-icon {
  font-size: 26px;
}

.reward-title {
  color: var(--text-main, #f8fafc);
  font-size: 16px;
  font-weight: 800;
}

.reward-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}

.btn-claim-rewards {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  border: none;
  padding: 14px 40px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5);
}

/* ================= TOURNAMENTS MODAL ================= */
.tournaments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tournament-card {
  background: rgba(10, 48, 30, 0.85);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tourney-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tourney-icon {
  font-size: 28px;
}

.tourney-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.tourney-tier {
  font-size: 11px;
  color: var(--cyan-neon);
  font-weight: 700;
}

.tourney-desc {
  font-size: 12px;
  color: #cbd5e1;
}

.tourney-prizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prize-item {
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  color: var(--gold-accent);
}

.btn-enter-tourney {
  background: linear-gradient(135deg, var(--gold-primary), #d97706);
  color: #000;
  font-size: 13px;
  font-weight: 900;
  border: none;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.5px;
}

/* ================= BALL PICKER DRAWER ================= */
.picker-item {
  background: rgba(10, 48, 30, 0.8);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.picker-item.selected {
  border-color: var(--gold-accent);
  background: rgba(245, 158, 11, 0.2);
}

.picker-item.empty {
  opacity: 0.5;
}

.picker-icon {
  font-size: 24px;
}

.picker-info {
  flex: 1;
}

.picker-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.picker-perk {
  font-size: 11px;
  color: var(--cyan-neon);
}

.picker-count {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-accent);
}

/* ================= LEVELS GRID ================= */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.level-grid-cell {
  background: rgba(10, 48, 30, 0.8);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: #fff;
}

.level-grid-cell.locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.level-grid-cell.current {
  border-color: var(--gold-accent);
  background: rgba(245, 158, 11, 0.25);
}

.lvl-num {
  font-size: 18px;
  font-weight: 900;
}

.lvl-name {
  font-size: 9px;
  text-align: center;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
}

/* ================= VICTORY & MISSED MODALS ================= */
.end-modal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  text-align: center;
}

.end-modal-icon {
  font-size: 50px;
  margin-bottom: 8px;
}

.end-modal-title {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.end-modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.victory-rewards-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.vic-reward-pill {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-accent);
}

.end-modal-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.end-modal-actions button {
  flex: 1;
  padding: 14px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  border: none;
}

.btn-primary-end {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.btn-secondary-end {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Toast System */
#toast-container {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 380px;
}

.game-toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--green-glow);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  animation: toastSlideDown 0.3s ease-out;
  text-align: center;
}

.game-toast.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
}

@keyframes toastSlideDown {
  0% { opacity: 0; transform: translateY(-15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ================= 1 SHOT GOLF: TRICK SHOT BALL SHOP ================= */
.ball-shop-eyebrow { display: block; color: #d8bc72; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; line-height: 1.6; }
.ball-shop-intro { position: relative; overflow: hidden; background: linear-gradient(125deg, #0d4939, #052a21); border: 1px solid #b69a4c66; border-radius: 18px; padding: 18px 16px 14px; margin-bottom: 14px; }
.ball-shop-intro h2 { position: relative; z-index: 1; color: #fff5d9; font-size: 30px; letter-spacing: -1px; line-height: 1.15; margin: 5px 0 6px; }
.ball-shop-intro p { position: relative; z-index: 1; font-size: 12px; color: #c0d7cd; }
.ball-shop-route { position: absolute; width: 112px; right: -10px; top: 22px; opacity: .18; fill: none; stroke: #f4d28a; stroke-width: 1.5; stroke-dasharray: 4 5; }
.ball-shop-equipped { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 11px; border-top: 1px solid #c8dcce26; color: #abc9bc; font-size: 9px; letter-spacing: .7px; }
.ball-shop-equipped > span:last-child { min-width: 0; }
.ball-shop-equipped strong { display: block; font-size: 13px; letter-spacing: 0; color: #f4ebd2; overflow-wrap: anywhere; margin-top: 2px; }
.ball-shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ball-shop-card { appearance: none; min-width: 0; width: 100%; display: flex; flex-direction: column; align-items: stretch; text-align: left; background: linear-gradient(160deg, #0d3328, #06241c); color: #f6f4e9; border: 1px solid #7aa78c4d; border-radius: 15px; padding: 11px; cursor: pointer; position: relative; transition: border-color .15s, background .15s; }
.ball-shop-card.selected { background: linear-gradient(150deg, #214837, #0b2e23); border-color: #e8c474; box-shadow: inset 0 0 0 1px #e8c47433; }
.ball-shop-card:hover { border-color: #e8c474; }
.ball-shop-card:focus-visible, .ball-equip-button:focus-visible, .ball-pack-buy:focus-visible, .ball-workshop-close:focus-visible { outline: 2px solid #fff0ba; outline-offset: 3px; }
.ball-shop-card-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.ball-shop-number { font-size: 10px; font-weight: 700; color: #9ab8a8; letter-spacing: 1px; }
.ball-shop-tier { font-size: 9px; color: var(--ball-accent); text-transform: uppercase; font-weight: 800; letter-spacing: .5px; }
.ball-shop-stage { position: relative; display: flex; align-items: center; justify-content: center; height: 92px; margin: 2px 0 6px; }
.ball-shop-stage::before { content: ''; position: absolute; width: 89px; height: 53px; border: 1px solid #adc9a82b; border-radius: 50%; transform: translateY(22px) rotate(-15deg); box-shadow: 0 0 0 8px #6a927b0a, 0 0 0 17px #6a927b08; }
.ball-shop-card h3 { font-size: 14px; font-weight: 800; line-height: 1.2; min-height: 34px; overflow-wrap: anywhere; }
.ball-shop-perk { color: #aac6b8; font-size: 10px; line-height: 1.4; margin: 5px 0 12px; min-height: 28px; }
.ball-shop-card-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; border-top: 1px solid #8aaa9526; padding-top: 9px; margin-top: auto; font-size: 9px; color: #c6d6cb; }
.ball-shop-card-bottom strong { color: #ead18c; font-size: 9px; }
.ball-shop-card.empty .ball-shop-card-bottom > span { color: #d4bda4; }
.ball-shop-footnote { color: #a4baac; text-align: center; font-size: 10px; line-height: 1.5; margin-top: 16px; }

/* The workshop uses a course-green stage, a compact stat strip and refill rows. */
.ball-workshop-window { width: 100%; max-width: 420px; max-height: 92%; background: #05271d; border: 1px solid #d4b86f99; border-radius: 22px; box-shadow: 0 22px 70px #000b; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.ball-workshop-header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: #082f23; border-bottom: 1px solid #ddc38933; }
.ball-workshop-heading { color: #fff4d9; font-size: 12px; letter-spacing: 1.5px; font-weight: 800; margin-top: 2px; }
.ball-workshop-close.btn-close-modal { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #b0cab533; border-radius: 50%; color: #dce7da; font-size: 20px; background: #ffffff06; flex-shrink: 0; }
.ball-workshop-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 18px; -webkit-overflow-scrolling: touch; }
.ball-detail-hero { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; }
.ball-detail-stage { position: relative; display: flex; align-items: center; justify-content: center; height: 150px; background: repeating-radial-gradient(ellipse at 50% 78%, transparent 0 14px, #b5d6ac13 15px 16px, transparent 17px 29px); border-radius: 14px; }
.ball-detail-stage .ball-3d-sphere-thumb { flex-shrink: 0; }
.ball-detail-stage .ball-design-icon { font-size: 34px; }
.ball-detail-stage .ball-design-brand { font-size: 9px; }
.ball-detail-tier { display: block; font-size: 9px; font-weight: 800; color: var(--ball-accent); letter-spacing: .5px; line-height: 1.5; }
.ball-detail-intro h2 { color: #fff4d9; font-size: 23px; line-height: 1.08; letter-spacing: -.6px; margin: 6px 0 9px; overflow-wrap: anywhere; }
.ball-detail-intro p { font-size: 11px; color: #c0d1c4; line-height: 1.5; }
.ball-detail-perk { display: flex; align-items: center; gap: 8px; background: #c7ac5820; border-left: 2px solid #d8bc72; padding: 10px 12px; margin: 16px 0; color: #f1dca3; font-size: 11px; font-weight: 700; line-height: 1.5; }
.ball-attributes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 17px; border-bottom: 1px solid #a9c4ad26; }
.ball-attribute { min-width: 0; }
.ball-attribute > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 3px; font-size: 8px; color: #b5cbbd; letter-spacing: .6px; }
.ball-attribute strong { font-size: 11px; color: #f0e1bd; letter-spacing: 0; }
.ball-rating-pips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin-top: 8px; }
.ball-rating-pips i { height: 4px; border-radius: 2px; background: #adc5b32b; }
.ball-rating-pips i.on { background: #dec17a; }
.ball-bag-status { display: flex; flex-direction: column; gap: 3px; padding: 15px 0 12px; }
.ball-bag-status strong { color: #f5ecd7; font-size: 15px; }
.ball-bag-status span { color: #b0cbbb; font-size: 10px; line-height: 1.4; }
.ball-equip-button { width: 100%; min-height: 46px; background: #ebce87; color: #163426; font-size: 12px; font-weight: 900; letter-spacing: 1.3px; border: 1px solid #ffe4a7; border-radius: 10px; cursor: pointer; }
.ball-equip-button.equipped { background: #123e2e; border-color: #659b7c; color: #d3e7d5; }
.ball-equip-button:disabled:not(.equipped) { background: #213e30; color: #9fb5a4; border-color: #637c6955; cursor: default; }
.ball-pack-section { margin-top: 23px; }
.ball-pack-section[hidden] { display: none; }
.ball-pack-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.ball-pack-heading h3 { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: #d8bc72; }
.ball-pack-heading > span { font-size: 10px; color: #b3caba; }
.ball-pack-options { display: flex; flex-direction: column; gap: 7px; }
.ball-pack-option { display: grid; grid-template-columns: minmax(0, 1fr) minmax(105px, .95fr); align-items: center; gap: 9px; padding: 10px; background: #092e23; border: 1px solid #7b9c834d; border-radius: 11px; }
.ball-pack-copy strong { display: block; color: #f6ebcd; font-size: 15px; line-height: 1.3; }
.ball-pack-copy > span { display: block; color: #a8c4b2; font-size: 10px; line-height: 1.4; margin-top: 3px; }
.ball-pack-buy { width: 100%; min-width: 0; min-height: 44px; padding: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 8px; border: 1px solid #6fb494; background: #126a4b; color: #f9f6e8; cursor: pointer; }
.ball-pack-buy > span { font-size: 13px; font-weight: 800; }
.ball-pack-buy small { font-size: 8px; letter-spacing: .25px; line-height: 1.3; overflow-wrap: anywhere; }
.ball-pack-buy:disabled { background: #163b2d; border-color: #7d9e8255; color: #bed0bf; cursor: default; }
.ball-workshop-note { font-size: 10px; line-height: 1.5; color: #adc6b5; margin: 14px 0 0; text-align: center; }
@media (max-width: 360px) {
  .ball-workshop-scroll { padding: 14px; }
  .ball-detail-hero { grid-template-columns: 94px minmax(0, 1fr); gap: 10px; }
  .ball-detail-stage .ball-3d-sphere-thumb { width: 90px !important; height: 90px !important; }
  .ball-detail-intro h2 { font-size: 21px; }
  .ball-shop-grid { gap: 8px; }
  .ball-shop-card { padding: 9px; }
  .ball-shop-card h3 { font-size: 13px; }
}

/* ================= DIAMOND OPEN CHESTS & PRO SHOP CURRENCY ================= */
.btn-open-chest.diamond-cost {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border: 1px solid #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  font-weight: 800;
}

.btn-open-chest.diamond-cost.insufficient {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  box-shadow: none;
}

.currency-promo-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 6px;
}

.promo-banner-icon {
  font-size: 32px;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.8));
}

.promo-banner-text {
  text-align: left;
}

.promo-banner-title {
  font-size: 13px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.promo-banner-desc {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.35;
  margin-top: 2px;
}

.currency-packs-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.currency-pack-card {
  position: relative;
  background: rgba(10, 48, 30, 0.85);
  border: 2px solid;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.pack-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #000;
  padding: 2px 8px;
  border-radius: 8px;
}

.pack-icon-glow {
  font-size: 38px;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
  margin-top: 4px;
}

.pack-name {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

.pack-rewards {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.pack-coin-val {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold-accent);
  font-weight: 900;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 10px;
}

.pack-diamond-val {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 900;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 10px;
}

.pack-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-buy-currency-pack {
  width: 100%;
  border: none;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}

.btn-buy-currency-pack:active {
  transform: scale(0.97);
}

/* ================= 3D GOLF BALLS IN SHOP ================= */
.ball-dimples-layer { position: absolute; inset: 0; background-image: radial-gradient(rgba(100, 116, 139, .22) 1.5px, transparent 1.5px); background-size: 7px 7px; border-radius: 50%; pointer-events: none; }
.ball-3d-sphere-thumb {
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: inset -4px -4px 10px rgba(15, 23, 42, 0.65), inset 4px 4px 8px rgba(255, 255, 255, 0.75), 0 5px 12px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ball-shop-card:hover .ball-3d-sphere-thumb {
  transform: scale(1.1) rotate(6deg);
}

.ball-specular-highlight-thumb {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 18px;
  height: 12px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85) 0%, transparent 70%);
  transform: rotate(-35deg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 6;
}

.ball-design-brand {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #b91c1c;
  z-index: 4;
  font-style: italic;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ball-design-icon {
  font-size: 22px;
  z-index: 4;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.ball-design-ancient-ring {
  position: absolute;
  width: 80%;
  height: 80%;
  border: 1.5px solid rgba(239, 68, 68, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}

.ball-design-ribs {
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(124, 45, 18, 0.4) 11px, transparent 12px);
  pointer-events: none;
  z-index: 3;
}

.ball-design-iris {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, #38bdf8 0%, #0284c7 60%, #0369a1 100%);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.8), 0 0 6px rgba(56, 189, 248, 0.6);
  z-index: 3;
}

.ball-design-pupil {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #020617;
  z-index: 4;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

.ball-design-laces {
  position: absolute;
  width: 60%;
  height: 6px;
  border-top: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  pointer-events: none;
  z-index: 3;
}

.ball-design-cyber-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(6, 182, 212, 0.25) 1px, transparent 1px), linear-gradient(90deg, rgba(6, 182, 212, 0.25) 1px, transparent 1px);
  background-size: 8px 8px;
  pointer-events: none;
  z-index: 3;
}

.ball-design-treads {
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(15, 23, 42, 0.6) 7px, transparent 8px);
  pointer-events: none;
  z-index: 3;
}

.ball-design-wraps {
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(-30deg, transparent, transparent 8px, rgba(120, 53, 15, 0.3) 9px, transparent 10px);
  pointer-events: none;
  z-index: 3;
}

/* ================= REALISTIC GOLD COINS & DIAMONDS ================= */
.currency-bank-header {
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(56, 189, 248, 0.15));
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.currency-bank-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--gold-accent);
  letter-spacing: 0.5px;
}

.currency-bank-sub {
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  margin-top: 3px;
  letter-spacing: 0.3px;
}

.currency-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
  text-align: left;
}

.sec-icon {
  font-size: 24px;
}

.sec-heading {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
}

.sec-sub {
  font-size: 10px;
  color: #94a3b8;
}

.currency-section-sub {
  font-size: 10px;
  color: #f43f5e;
  font-weight: 800;
  margin-left: auto;
}

/* Realistic 3D Gold Coin Visual */
.realistic-gold-coin-display {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}

.coin-stack-layer {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.coin-stack-layer.coin-3 {
  transform: translate(6px, 8px);
  background: #78350f;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.coin-stack-layer.coin-2 {
  transform: translate(3px, 4px);
  background: linear-gradient(135deg, #b45309, #d97706);
}

.coin-stack-layer.coin-1 {
  background: radial-gradient(circle at 35% 30%, #fef08a 0%, #facc15 35%, #eab308 65%, #b45309 100%);
  box-shadow: inset 0 0 0 3px #ca8a04, inset 0 0 0 5px #fef08a, 0 8px 16px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.coin-inner-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px dashed rgba(245, 158, 11, 0.8);
  background: radial-gradient(circle at 40% 35%, #fde047 0%, #eab308 60%, #ca8a04 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(254, 240, 138, 0.8), inset 0 -2px 4px rgba(113, 63, 18, 0.6);
}

.coin-mint-symbol {
  font-size: 16px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}

.coin-mint-text {
  font-size: 7px;
  font-weight: 900;
  color: #78350f;
  letter-spacing: 0.5px;
  margin-top: -2px;
}

.coin-gleam-beam {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 120px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: rotate(35deg);
  animation: coinGlintSweep 3.5s infinite;
  pointer-events: none;
}

@keyframes coinGlintSweep {
  0%, 60% { transform: translateX(-60px) rotate(35deg); }
  80%, 100% { transform: translateX(100px) rotate(35deg); }
}

/* Realistic 3D Faceted Diamond Visual */
.realistic-diamond-display {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}

.diamond-gem-visual {
  width: 58px;
  height: 52px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 6px 16px rgba(6, 182, 212, 0.65));
}

.diamond-facet-table {
  width: 32px;
  height: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 30%, #7dd3fc 70%, #0284c7 100%);
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  box-shadow: inset 0 1px 2px #fff;
}

.diamond-facet-crown {
  width: 48px;
  height: 10px;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 30%, #ffffff 50%, #38bdf8 70%, #0369a1 100%);
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}

.diamond-facet-pavilion {
  width: 48px;
  height: 28px;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 40%, #0369a1 80%, #0c4a6e 100%);
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.6);
}

.diamond-gleam-sparkle {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 16px;
  animation: diamondSparklePulse 2s infinite alternate;
}

@keyframes diamondSparklePulse {
  0% { transform: scale(0.8) rotate(0deg); opacity: 0.5; }
  100% { transform: scale(1.3) rotate(30deg); opacity: 1; }
}

.pack-exchange-cost {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
}

.pack-exchange-cost .cost-val.can-afford {
  color: #34d399;
  font-weight: 900;
}

.pack-exchange-cost .cost-val.cant-afford {
  color: #f87171;
  font-weight: 900;
}

.btn-diamond-exchange.btn-disabled {
  opacity: 0.6;
  filter: grayscale(0.5);
  cursor: not-allowed;
}

/* ================= ADMOB REWARD CARD (HOME SCREEN) ================= */
.home-admob-section {
  width: 100%;
  margin-top: 14px;
}

.admob-reward-card {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 95, 70, 0.3) 100%);
  border: 2px solid #10b981;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.admob-reward-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.admob-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #a7f3d0;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.admob-logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.admob-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admob-gift-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.8));
}

.admob-info {
  flex: 1;
  text-align: left;
}

.admob-heading {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.4px;
}

.admob-sub {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 2px;
}

.diamond-highlight {
  color: #38bdf8;
  font-weight: 900;
}

.btn-admob-play {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
  cursor: pointer;
}

.putter-perk-badge {
  margin: 6px 0;
  font-size: 10px;
  font-weight: 900;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 3px 8px;
  display: inline-block;
}




/* ================= v2 JUICE: modal pops, stars, dialogs, level grid ================= */
.modal-backdrop:not(.hidden) .modal-window,
.modal-backdrop:not(.hidden) .ball-workshop-window {
  animation: modalPop 0.32s cubic-bezier(0.18, 1.4, 0.4, 1) both;
}
@keyframes modalPop {
  0% { transform: scale(0.7) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.trophy-bounce { animation: trophyBounce 1.2s ease-in-out infinite; display: inline-block; }
@keyframes trophyBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(-8deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(-5px) rotate(8deg); }
}

.vic-stars { display: flex; gap: 10px; margin: 2px 0 6px; }
.vic-star {
  font-size: 40px;
  filter: grayscale(1) brightness(0.5);
  opacity: 0.45;
  transform: scale(0.6);
  transition: transform 0.25s, opacity 0.25s, filter 0.25s;
}
.vic-star:nth-child(2) { transform: scale(0.6) translateY(-8px); }
.vic-star.earned {
  filter: drop-shadow(0 0 10px rgba(253, 224, 71, 0.9));
  opacity: 1;
  animation: starPop 0.45s cubic-bezier(0.18, 1.6, 0.4, 1) both;
}
.vic-star.earned:nth-child(2) { animation-name: starPopMid; }
@keyframes starPop { 0% { transform: scale(0.2) rotate(-40deg); } 100% { transform: scale(1.1) rotate(0); } }
@keyframes starPopMid { 0% { transform: scale(0.2) translateY(-8px) rotate(40deg); } 100% { transform: scale(1.25) translateY(-8px) rotate(0); } }

.vic-star-goals {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-align: left;
}
.vic-star-goals .goal-done { color: #fde047; }

.vic-reward-pill.pop { animation: pillPop 0.4s ease-out; }
@keyframes pillPop { 0% { transform: scale(1); } 50% { transform: scale(1.18); } 100% { transform: scale(1); } }

.dialog-extra { width: 100%; margin-bottom: 14px; }
.dialog-leaderboard { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.dialog-leaderboard .lb-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.35);
  font-size: 13px; font-weight: 700; color: #e2e8f0;
}
.dialog-leaderboard .lb-row.me { background: rgba(250, 204, 21, 0.2); border: 1px solid rgba(250, 204, 21, 0.5); color: #fde047; }

.level-tour-heading {
  display: flex; justify-content: space-between; align-items: center;
}
.level-tour-heading .tour-stars { font-size: 11px; color: #fde047; letter-spacing: 0; }
.lvl-stars { font-size: 9px; letter-spacing: -1px; min-height: 11px; }
.level-grid-cell { transition: transform 0.12s; }
.level-grid-cell:active { transform: scale(0.94); }
.level-grid-cell.tour-ice { background: rgba(14, 116, 144, 0.35); border-color: rgba(125, 211, 252, 0.4); }
.level-grid-cell.tour-volcano { background: rgba(124, 45, 18, 0.45); border-color: rgba(251, 146, 60, 0.45); }
.level-grid-cell.tour-forest { background: rgba(6, 78, 59, 0.55); }
.level-grid-cell.perfect { box-shadow: 0 0 12px rgba(253, 224, 71, 0.45); }

.btn-main-play { animation: playPulse 2.4s ease-in-out infinite; }
@keyframes playPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35); }
  50% { box-shadow: 0 6px 34px rgba(250, 204, 21, 0.55); }
}
.level-tour-heading { gap: 8px; }
.level-tour-heading > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.level-tour-heading .tour-stars { flex-shrink: 0; }

/* ================= v3 HOME SCREEN ================= */
#screen-home {
  justify-content: flex-start !important;
  gap: 12px;
  padding-bottom: 0 !important;
  background:
    radial-gradient(120% 60% at 50% 0%, #0b5d3f 0%, rgba(3, 28, 17, 0) 70%),
    linear-gradient(180deg, #04241a 0%, #021710 100%) !important;
}

/* Hero */
.hx-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 132px;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.hx-sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #38bdf8 0%, #7dd3fc 45%, #fde68a 100%);
}
.hx-rays {
  position: absolute; left: 50%; top: -60%;
  width: 420px; height: 420px; margin-left: -210px;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0.22) 0deg 8deg, rgba(255,255,255,0) 8deg 22deg);
  border-radius: 50%;
  animation: hxSpin 40s linear infinite;
  mask-image: radial-gradient(circle, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%);
}
@keyframes hxSpin { to { transform: rotate(360deg); } }
.hx-cloud {
  position: absolute; height: 18px; border-radius: 20px; background: rgba(255,255,255,0.85);
  filter: blur(0.5px);
}
.hx-cloud::before, .hx-cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.hx-cloud::before { width: 26px; height: 26px; left: 10px; top: -12px; }
.hx-cloud::after { width: 18px; height: 18px; left: 30px; top: -8px; }
.hx-cloud.c1 { width: 70px; top: 22px; left: -80px; animation: hxDrift 38s linear infinite; }
.hx-cloud.c2 { width: 54px; top: 46px; left: -80px; opacity: 0.7; animation: hxDrift 55s linear infinite 12s; }
@keyframes hxDrift { to { transform: translateX(560px); } }
.hx-hill { position: absolute; left: -10%; width: 120%; border-radius: 50% 50% 0 0; }
.hx-hill.back { height: 90px; bottom: -40px; background: linear-gradient(180deg, #4ade80, #16a34a); }
.hx-hill.front {
  height: 80px; bottom: -48px; left: -30%; width: 110%;
  background: repeating-linear-gradient(135deg, #22c55e 0 18px, #1fae54 18px 36px);
  box-shadow: 0 -2px 0 rgba(255,255,255,0.25);
}
.hx-flag { position: absolute; right: 18%; bottom: 26px; width: 4px; height: 44px; }
.hx-pole { position: absolute; left: 0; bottom: 0; width: 3px; height: 44px; background: linear-gradient(90deg, #e2e8f0, #fff, #94a3b8); border-radius: 2px; }
.hx-cloth {
  position: absolute; left: 3px; top: 0; width: 22px; height: 15px;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  clip-path: polygon(0 0, 100% 35%, 0 100%);
  transform-origin: left center;
  animation: hxWave 1.4s ease-in-out infinite;
}
@keyframes hxWave { 0%,100% { transform: scaleX(1) skewY(0deg); } 50% { transform: scaleX(0.85) skewY(-6deg); } }
.hx-brand {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
}
.hx-logo {
  width: 84px; height: 84px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fbbf24;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45), 0 0 0 4px rgba(255,255,255,0.35);
  animation: floatBounce 4s ease-in-out infinite;
  flex-shrink: 0;
}
.hx-title {
  font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 3px 0 #0f5132, 0 6px 14px rgba(0,0,0,0.35);
}
.hx-title span { color: #fde047; }
.hx-tagline {
  margin-top: 6px;
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: #064e3b; background: rgba(255,255,255,0.85);
  padding: 3px 8px; border-radius: 999px;
}

/* Continue card */
.hx-continue {
  display: flex; gap: 12px; align-items: stretch;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(16,185,129,0.22), rgba(6,43,26,0.9) 55%);
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.hx-preview-wrap {
  width: 92px; flex-shrink: 0;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5), 0 0 0 2px rgba(255,255,255,0.15);
  aspect-ratio: 2 / 3;
  background: #0b2a1c;
}
.hx-preview { width: 100%; height: 100%; display: block; }
.hx-continue-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hx-continue-tour { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: #6ee7b7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-continue-hole { font-size: 26px; font-weight: 900; color: #fff; line-height: 1.1; margin-top: 2px; }
.hx-continue-name { font-size: 13px; font-weight: 700; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-continue-stars { font-size: 14px; margin-top: 2px; letter-spacing: 1px; color: #fde047; }
.hx-play-btn {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px;
  border: none; border-radius: 14px;
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
  color: #422006;
  font-size: 20px; font-weight: 900; letter-spacing: 2px;
  box-shadow: 0 5px 0 #b45309, 0 10px 20px rgba(245,158,11,0.35);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  animation: hxPlayPulse 2.2s ease-in-out infinite;
}
.hx-play-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #b45309, 0 4px 10px rgba(245,158,11,0.3); }
.hx-play-btn .play-arrow { font-size: 16px; }
@keyframes hxPlayPulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }

/* Sections */
.hx-section { flex-shrink: 0; }
.hx-section-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 900; letter-spacing: 1.5px; color: #94a3b8;
  margin: 0 2px 7px;
}
.hx-total-stars { color: #fde047; letter-spacing: 0.5px; }
.hx-head-note { color: #64748b; letter-spacing: 0.5px; font-weight: 700; }

/* Tours */
.hx-tours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hx-tour {
  position: relative; overflow: hidden;
  border-radius: 14px; padding: 9px 6px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.12s;
}
.hx-tour:active { transform: scale(0.95); }
.hx-tour-icon { font-size: 22px; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4)); }
.hx-tour-name { font-size: 9px; font-weight: 900; letter-spacing: 0.5px; text-align: center; line-height: 1.1; min-height: 20px; display: flex; align-items: center; }
.hx-tour-stars { font-size: 10px; font-weight: 800; color: #fde047; }
.hx-tour-bar { width: 100%; height: 4px; border-radius: 4px; background: rgba(0,0,0,0.35); overflow: hidden; }
.hx-tour-bar > div { height: 100%; background: linear-gradient(90deg, #fde047, #f59e0b); border-radius: 4px; }
.hx-tour.classic { background: linear-gradient(160deg, #15803d, #064e3b); }
.hx-tour.forest { background: linear-gradient(160deg, #166534, #14281a); }
.hx-tour.ice { background: linear-gradient(160deg, #0ea5e9, #0c4a6e); }
.hx-tour.volcano { background: linear-gradient(160deg, #ea580c, #431407); }

/* Chests (compact) */
.hx-chests { gap: 8px; }
.hx-chests .chest-slot-card {
  padding: 10px 4px 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(30,41,59,0.85), rgba(15,23,42,0.9));
  border: 1px solid rgba(148,163,184,0.25);
}
.hx-chests .chest-img-wrap { width: 46px !important; height: 46px !important; margin: 4px 0; }
.hx-chests .chest-slot-name { font-size: 9px; min-height: 22px; margin-bottom: 4px; }
.hx-chests .btn-open-chest { font-size: 10px; padding: 5px 0; border-radius: 8px; }

/* Free gems strip */
.hx-gems-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px 9px 12px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(56,189,248,0.18), rgba(15,23,42,0.85));
  border: 1px solid rgba(56,189,248,0.35);
  cursor: pointer;
}
.hx-gems-icon { font-size: 22px; }
.hx-gems-text { flex: 1; min-width: 0; }
.hx-gems-title { font-size: 12px; font-weight: 900; letter-spacing: 1px; color: #e0f2fe; }
.hx-gems-sub { font-size: 11px; color: #94a3b8; }
.hx-gems-btn {
  border: none; border-radius: 10px; padding: 8px 12px;
  background: linear-gradient(180deg, #38bdf8, #0284c7); color: #fff;
  font-size: 12px; font-weight: 900; letter-spacing: 0.5px;
  box-shadow: 0 3px 0 #075985;
}

/* Bottom tab bar */
.hx-tabbar {
  position: sticky; bottom: 0;
  margin: auto -14px 0;
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end;
  gap: 6px;
  padding: 8px 14px max(14px, env(safe-area-inset-bottom, 14px));
  background: linear-gradient(180deg, rgba(2,23,16,0) 0%, rgba(2,23,16,0.96) 30%);
  flex-shrink: 0;
}
.hx-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px;
  border-radius: 14px;
  border: 1px solid rgba(52,211,153,0.2);
  background: rgba(6,43,26,0.85);
  color: #e2e8f0; font-size: 11px; font-weight: 800;
  cursor: pointer;
}
.hx-tab:active { transform: scale(0.95); }
.hx-tab-icon { font-size: 22px; }
.hx-tab-center {
  background: linear-gradient(180deg, #10b981, #047857);
  border-color: rgba(167,243,208,0.6);
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(16,185,129,0.4);
}

@media (max-width: 600px) {
  .hx-hero { min-height: 118px; }
  .hx-logo { width: 72px; height: 72px; }
  .hx-title { font-size: 26px; }
}
#screen-home { overflow: hidden !important; padding: 0 !important; gap: 0; }
.hx-scroll {
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: 12px 14px 14px;
}
.hx-tabbar { position: relative; margin: 0; padding-top: 10px; background: rgba(2, 20, 13, 0.97); border-top: 1px solid rgba(52, 211, 153, 0.18); }
@media (min-height: 820px) {
  .hx-hero { min-height: 150px; }
  .hx-logo { width: 96px; height: 96px; }
  .hx-scroll { gap: 16px; }
}

/* ================= v4 HELPER TRAY (5 helpers) ================= */
.game-bottom-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex-shrink: 0; gap: 8px !important; padding-left: 10px !important; padding-right: 10px !important; }
.helper-items-tray { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; min-width: 0; }
.shot-spin-control { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-width: 0; border-bottom: 1px solid rgba(52,211,153,.18); padding-bottom: 4px; }
.shot-spin-label { flex: 1; min-width: 0; font-size: 9px; font-weight: 800; color: #a7f3d0; letter-spacing: .5px; }
.shot-spin-label span { color: #fcd34d; font-size: 9px; letter-spacing: 0; }
.shot-spin-label output { display: block; font-size: 11px; line-height: 15px; color: #fff; letter-spacing: 0; overflow-wrap: anywhere; }
#shot-spin, #shot-roll-spin { display: block; width: 100%; min-width: 0; height: 44px; accent-color: #34d399; cursor: pointer; margin: 0; }
#btn-spin-reset, #btn-open-spin, .spin-modal-actions button { flex: 0 0 auto; min-height: 44px; padding: 0 10px; border: 1px solid rgba(52,211,153,.4); border-radius: 10px; background: #073c2d; color: #d1fae5; font: 700 11px Outfit, system-ui, sans-serif; cursor: pointer; }
#btn-open-spin, #btn-spin-done { background: #10b981; color: #022c22; }
.shot-spin-control :focus-visible, .spin-settings :focus-visible { outline: 2px solid #fcd34d; outline-offset: 2px; }
.shot-spin-control button:disabled, .spin-settings button:disabled, .spin-modal-actions button:disabled { opacity: .45; cursor: default; }
.shot-spin-control.is-disabled { opacity: .6; }
.shot-spin-window { max-width: 400px; }
.spin-settings { gap: 8px; padding: 14px 18px 18px; }
.spin-instruction, .spin-effects { margin: 0; font-size: 12px; line-height: 1.5; color: #bbd7cb; text-align: center; }
.spin-compass { position: relative; width: 100%; max-width: 280px; height: 242px; flex-shrink: 0; margin: 0 auto; }
.spin-pad { position: absolute; width: 164px; height: 164px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid #e2e8f0; background: radial-gradient(circle at 33% 27%, #fff 0%, #f1f5f9 42%, #94a3b8 79%, #334155 100%); box-shadow: 0 8px 20px #0005, inset -8px -12px 15px #0f172a55; touch-action: none; cursor: crosshair; }
.spin-pad::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: radial-gradient(circle, #64748b66 0 2px, transparent 3px) 0 0 / 14px 14px; opacity: .55; pointer-events: none; }
.spin-pad-center { position: absolute; inset: 24%; border-radius: 50%; border: 1px dashed #47556988; pointer-events: none; }
#spin-pad-marker { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; border-radius: 50%; transform: translate(-50%,-50%); background: #10b981; border: 3px solid #064e3b; box-shadow: 0 0 0 3px #fff9; pointer-events: none; }
.spin-direction { position: absolute; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #a7f3d0; font: 800 10px Outfit, system-ui, sans-serif; cursor: pointer; padding: 0; }
.spin-north { top: 0; left: 50%; transform: translateX(-50%); }
.spin-south { bottom: 0; left: 50%; transform: translateX(-50%); }
.spin-west { top: 50%; left: 0; transform: translateY(-50%); }
.spin-east { top: 50%; right: 0; transform: translateY(-50%); }
#spin-selection-summary { display: block; text-align: center; color: #fcd34d; font-size: 13px; font-weight: 800; min-height: 18px; }
.spin-fine-control label { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: #d1fae5; }
.spin-fine-details summary { min-height: 36px; line-height: 36px; font-size: 12px; font-weight: 700; color: #a7f3d0; cursor: pointer; }
.spin-fine-control label span { color: #6ee7b7; }
.spin-equipment { margin: 0; padding: 10px; border: 1px solid #10b98144; border-radius: 10px; background: #022c2266; color: #bbf7d0; font-size: 11px; line-height: 1.6; white-space: pre-line; text-align: center; }
.spin-modal-actions { display: flex; gap: 10px; padding: 12px 18px; border-top: 1px solid #10b98144; flex-shrink: 0; }
.spin-modal-actions button:last-child { flex: 1; font-size: 12px; background: #10b981; color: #022c22; }
@media (max-height: 740px) { .spin-compass { height: 218px; } .spin-pad { width: 140px; height: 140px; } }
.helper-items-tray .btn-helper-action { min-width: 0; padding: 6px 2px 5px; border-radius: 12px; }
.helper-items-tray .helper-icon { font-size: 19px; }
.helper-items-tray .helper-name { font-size: 8.5px; }
.helper-items-tray .helper-count-badge { top: -6px; right: -4px; font-size: 9px; }
.helper-on-badge {
  display: none;
  position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  background: #22c55e; color: #052e16; font-size: 8px; font-weight: 900;
  padding: 1px 6px; border-radius: 8px; letter-spacing: 0.5px;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}
.btn-helper-action.active { background: rgba(34, 197, 94, 0.28) !important; border-color: #4ade80 !important; box-shadow: 0 0 12px rgba(74, 222, 128, 0.5) !important; }
.btn-helper-action.active .helper-on-badge { display: block; }
.btn-helper-action.active .helper-count-badge { display: none; }
.btn-helper-action.empty { opacity: 0.55; }
.hud-ball-selector { min-width: 0; min-height: 44px; justify-content: center; padding: 5px 8px !important; gap: 8px !important; text-align: left; }
.hud-ball-selector:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.hud-putter-name { font-size: 12px; font-weight: 800; color: var(--gold-accent); overflow-wrap: anywhere; }
@media (max-width: 360px) {
  .top-header-bar { flex-wrap: wrap; gap: 6px; }
  .top-header-bar .currency-group { margin-left: auto; }
}
#hud-club-icon { display: flex; align-items: center; }
#hud-club-icon svg { display: block; }

/* ================= v4 PRO SHOP ================= */
.store-tabs { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.store-tab-btn { padding: 9px 2px !important; font-size: 11px !important; }
.shop-section-title {
  font-size: 12px; font-weight: 900; letter-spacing: 1.2px; color: #fde047;
  margin: 6px 2px 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.shop-section-title span { font-size: 10px; color: #94a3b8; letter-spacing: 0.3px; font-weight: 700; }
.shop-note { font-size: 11px; color: #94a3b8; background: rgba(0,0,0,0.25); padding: 8px 10px; border-radius: 10px; margin-bottom: 10px; line-height: 1.35; }

.shop-coin-grid, .shop-gem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.shop-coin-card, .shop-gem-card {
  position: relative; overflow: visible;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 16px 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: radial-gradient(120% 80% at 50% 0%, rgba(251,191,36,0.25), rgba(15,23,42,0.92) 70%);
  color: #fff; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  transition: transform 0.12s;
}
.shop-gem-card { border-color: rgba(56,189,248,0.35); background: radial-gradient(120% 80% at 50% 0%, rgba(56,189,248,0.25), rgba(15,23,42,0.92) 70%); }
.shop-coin-card:active, .shop-gem-card:active { transform: scale(0.96); }
.shop-gem-card.cant { opacity: 0.6; }
.shop-badge {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 900; letter-spacing: 0.6px; color: #fff;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
}
.shop-coin-art { font-size: 26px; line-height: 1; height: 40px; display: flex; align-items: center; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); letter-spacing: -10px; }
.shop-coin-art.art-3, .shop-coin-art.art-4 { font-size: 24px; letter-spacing: -12px; }
.shop-gem-art { font-size: 32px; height: 40px; display: flex; align-items: center; filter: drop-shadow(0 0 10px rgba(56,189,248,0.7)); }
.shop-coin-amount { font-size: 22px; font-weight: 900; color: #fde047; text-shadow: 0 2px 0 #92400e; }
.shop-coin-amount.gem { color: #7dd3fc; text-shadow: 0 2px 0 #075985; }
.shop-coin-name { font-size: 11px; color: #cbd5e1; font-weight: 700; margin-bottom: 6px; }
.shop-price-btn {
  width: 100%; padding: 8px 0; border-radius: 10px;
  background: linear-gradient(180deg, #22c55e, #15803d); box-shadow: 0 3px 0 #14532d;
  font-size: 15px; font-weight: 900; color: #fff;
}
.shop-price-btn.coins { background: linear-gradient(180deg, #fbbf24, #d97706); box-shadow: 0 3px 0 #92400e; color: #422006; font-size: 13px; }

/* Putters */
.putter-card {
  display: flex; gap: 10px; align-items: center;
  padding: 12px; margin-bottom: 10px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--tier) 45%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--tier) 18%, #0f172a), #0b1220 70%);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.putter-card.equipped { border-color: #4ade80; box-shadow: 0 0 0 2px rgba(74,222,128,0.35), 0 6px 16px rgba(0,0,0,0.35); }
.putter-art {
  width: 104px; height: 104px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tier) 30%, #1e293b), #0b1220 75%);
}
.putter-info { flex: 1; min-width: 0; }
.putter-tier { font-size: 9px; font-weight: 900; letter-spacing: 1.2px; color: var(--tier); }
.putter-name { font-size: 16px; font-weight: 900; color: #fff; }
.putter-desc { font-size: 10.5px; color: #94a3b8; line-height: 1.3; margin: 2px 0 6px; }
.putter-stat { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.putter-stat-lbl { width: 42px; font-size: 9px; font-weight: 800; color: #cbd5e1; letter-spacing: 0.5px; }
.putter-stat-pips { display: flex; gap: 3px; }
.putter-stat-pips i { width: 16px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.putter-stat-pips i.on { background: linear-gradient(90deg, #fde047, #f59e0b); }
.putter-btn {
  margin-top: 8px; width: 100%; padding: 9px 0; border: none; border-radius: 10px;
  font-size: 13px; font-weight: 900; cursor: pointer;
}
.putter-btn.buy { background: linear-gradient(180deg, #fbbf24, #d97706); color: #422006; box-shadow: 0 3px 0 #92400e; }
.putter-btn.buy.cant { filter: grayscale(0.6); opacity: 0.75; }
.putter-btn.equip { background: linear-gradient(180deg, #38bdf8, #0284c7); color: #fff; box-shadow: 0 3px 0 #075985; }
.putter-btn.equipped { background: rgba(74,222,128,0.2); color: #4ade80; border: 1px solid rgba(74,222,128,0.5); }

/* Helpers */
.helper-card {
  padding: 12px; margin-bottom: 10px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(236,72,153,0.15), #0b1220 70%);
  border: 1px solid rgba(236,72,153,0.3);
}
.helper-card-top { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.helper-card-icon {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.1);
}
.helper-card-name { font-size: 15px; font-weight: 900; color: #fff; }
.helper-owned { font-size: 11px; color: #fde047; margin-left: 4px; }
.helper-card-desc { font-size: 11px; color: #94a3b8; line-height: 1.3; }
.helper-pack-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.helper-pack-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 7px 0; border: none; border-radius: 10px;
  background: linear-gradient(180deg, #fbbf24, #d97706); box-shadow: 0 3px 0 #92400e;
  color: #422006; cursor: pointer;
}
.helper-pack-btn.cant { filter: grayscale(0.6); opacity: 0.75; }
.hp-amt { font-size: 14px; font-weight: 900; }
.hp-price { font-size: 11px; font-weight: 800; }
.hp-save { position: absolute; top: -7px; right: -4px; font-size: 9px; font-weight: 900; background: #ef4444; color: #fff; padding: 1px 5px; border-radius: 6px; }
.store-tab-pane.hidden { display: none !important; }
.hx-tour.coaster { background: linear-gradient(160deg, #db2777, #4a044e); }
.hx-tour.canyon { background: linear-gradient(160deg, #c2410c, #431407); }
.hx-tour.creek { background: linear-gradient(160deg, #65a30d, #14532d); }
.level-grid-cell.tour-coaster { background: rgba(131, 24, 67, 0.45); border-color: rgba(244, 114, 182, 0.45); }
.level-grid-cell.tour-canyon { background: rgba(124, 45, 18, 0.5); border-color: rgba(253, 186, 116, 0.45); }
.level-grid-cell.tour-creek { background: rgba(54, 83, 20, 0.55); border-color: rgba(163, 230, 53, 0.45); }
.hx-tour.vista { background: linear-gradient(160deg, #0ea5e9, #1e3a8a); }
.level-grid-cell.tour-vista { background: rgba(30, 58, 138, 0.5); border-color: rgba(125, 211, 252, 0.5); }
.hx-tour.summit { background: linear-gradient(160deg, #8b5cf6, #312e81); }
.level-grid-cell.tour-summit { background: rgba(76, 29, 149, 0.5); border-color: rgba(196, 181, 253, 0.5); }
.hx-tour.aurora { background: linear-gradient(160deg, #0d9488, #134e4a); }
.level-grid-cell.tour-aurora { background: rgba(19, 78, 74, 0.55); border-color: rgba(94, 234, 212, 0.5); }

.putter-requirement {
  position: static;
  flex: 0 0 auto;
  align-self: center;
  margin: 6px 10px 0;
  width: calc(100% - 20px);
  max-width: calc(100% - 20px);
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #fbbf24;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.94);
  color: #fde68a;
  font: 700 11px Outfit, system-ui, sans-serif;
  cursor: pointer;
}
.putter-requirement.hidden { display: none !important; }
.level-grid-cell { min-width: 0; }
.lvl-requirement {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  line-height: 1.2;
  color: #ddd6fe;
}

/* ==========================================================================
   OVER-THE-AIR (OTA) LIVE UPGRADE SYSTEM
   ========================================================================== */

.ota-header-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 78, 59, 0.6));
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ota-header-badge:hover, .ota-header-badge:active {
  transform: translateY(-1px);
  border-color: #34d199;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(6, 78, 59, 0.8));
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}

.ota-live-dot {
  width: 7px;
  height: 7px;
  background: #34d199;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d199;
  animation: ota-pulse 1.8s infinite;
}

@keyframes ota-pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #34d199; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.ota-header-text {
  font-size: 11px;
  font-weight: 800;
  color: #a7f3d0;
  letter-spacing: 0.5px;
}

/* Modal Window Overrides for OTA */
.ota-modal-window {
  max-width: 440px !important;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.ota-modal-body {
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Status Card */
.ota-status-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ota-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.ota-status-lbl {
  color: #94a3b8;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.ota-badge-mode {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.ota-badge-mode.live {
  background: rgba(16, 185, 129, 0.25);
  color: #34d199;
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.2);
}

.ota-badge-mode.bundle {
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.5);
}

.ota-version-num {
  font-family: monospace;
  font-size: 13px;
  font-weight: 800;
  color: #fde047;
}

.ota-server-live {
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
}

/* URL Configuration Input */
.ota-config-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ota-config-label {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.ota-url-input-wrap {
  display: flex;
  gap: 6px;
}

.ota-url-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 12px;
  color: #f8fafc;
  font-size: 12px;
  font-family: monospace;
  outline: none;
}

.ota-url-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.ota-input-action-btn {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 800;
  font-size: 11px;
  padding: 0 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ota-input-action-btn:hover {
  background: rgba(56, 189, 248, 0.35);
}

/* Feature Cards */
.ota-feature-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ota-feature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gift-code-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main, #f8fafc);
}

.gift-code-controls {
  display: flex;
  gap: 8px;
}

.gift-code-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #64748b;
  border-radius: 9px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 16px;
  user-select: text;
  -webkit-user-select: text;
}

.gift-code-input:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.gift-code-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  background: #fbbf24;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.gift-code-button:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.gift-code-input:disabled, .gift-code-button:disabled { opacity: .6; }
.gift-code-button:disabled { cursor: wait; }

.gift-code-status {
  min-height: 1.5em;
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
  overflow-wrap: anywhere;
}

.gift-code-status[data-state="success"] { color: #6ee7b7; }
.gift-code-status[data-state="error"] { color: #fda4af; }

.ota-feature-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.ota-feature-badge {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.ota-feature-badge.live {
  background: rgba(16, 185, 129, 0.2);
  color: #34d199;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.ota-feature-badge.bundle {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.ota-feature-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

/* Action Buttons */
.btn-ota-action {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-ota-action.primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 3px 0 #047857, 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-ota-action.primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #047857;
}

.btn-ota-action.accent {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1e1b4b;
  box-shadow: 0 3px 0 #b45309, 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-ota-action.accent:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #b45309;
}

/* Download Progress Box */
.ota-progress-box.hidden { display: none; }

.btn-ota-action:disabled,
.btn-ota-util:disabled,
.ota-input-action-btn:disabled { opacity: 0.55; cursor: wait; }

.ota-progress-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 10px;
  border-radius: 8px;
}

.ota-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.ota-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  border-radius: 999px;
  transition: width 0.15s ease-out;
}

.ota-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
}

/* Utilities Grid */
.ota-utility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.btn-ota-util {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-ota-util:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-ota-util.danger {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(239, 68, 68, 0.1);
}

.btn-ota-util.danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   IN-GAME TOAST & GENERIC DIALOG STYLES
   ========================================================================== */

#toast-container {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: 90%;
  max-width: 380px;
}

.in-game-toast {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(12px);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  text-align: center;
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.in-game-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.btn-dia-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  padding: 11px 20px;
  cursor: pointer;
  box-shadow: 0 3px 0 #047857, 0 4px 12px rgba(16, 185, 129, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.btn-dia-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #047857;
}

.btn-dia-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 800;
  font-size: 13px;
  padding: 11px 20px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.btn-dia-secondary:active {
  transform: translateY(2px);
  background: rgba(255, 255, 255, 0.18);
}



/* Optional native rewarded-ad placements */
.rewarded-action {
  width: 100%; border: 1px solid rgba(56,189,248,.5); border-radius: 11px;
  background: linear-gradient(180deg, #0e7490, #075985); color: #ecfeff;
  padding: 11px 8px; font-family: inherit; font-size: 12px; line-height: 1.3;
  font-weight: 800; letter-spacing: .3px; cursor: pointer;
}
.rewarded-action:disabled, .hx-gems-btn:disabled {
  opacity: .55; cursor: default; box-shadow: none;
}
.rewarded-offer { width: 100%; margin: 4px 0 15px; }
.rewarded-status { font-size: 10px; line-height: 1.35; color: #94a3b8; margin-top: 4px; }
.rewarded-offer-note, .rewarded-guide-note { font-size: 10px; color: #b6d5dd; margin-top: 4px; }
.rewarded-guide-bar {
  background: rgba(2,28,17,.97); padding: 6px 12px; text-align: center; flex-shrink: 0;
  border-bottom: 1px solid rgba(148,163,184,.16);
}
.rewarded-guide { padding: 7px 8px; font-size: 11px; }
.rewarded-guide-bar .rewarded-status { margin-top: 2px; font-size: 9px; }
.ad-preferences-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; margin: 5px 0 12px; }
.game-privacy-link { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 4px; color: #a8cabb; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.game-privacy-link:focus-visible { outline: 2px solid #6ee7b7; outline-offset: 3px; border-radius: 4px; }
.ad-privacy-button { background: transparent; border: 0; padding: 5px; color: #94a3b8; font-size: 11px; text-decoration: underline; cursor: pointer; }
.ad-privacy-button:disabled { opacity: .5; cursor: default; }
.ad-privacy-button.hidden, .ad-test-label.hidden { display: none; }
.ad-test-label { color: #fde68a; font-size: 10px; letter-spacing: 1px; }
.hx-gems-strip { cursor: default; }
.hx-gems-btn { flex-shrink: 0; cursor: pointer; }

/* Three course categories; original tours stay grouped inside Classic. */
.hx-tours.hx-categories { grid-template-columns:repeat(3,minmax(0,1fr)); }
.hx-category { min-height:112px; padding:14px 7px; gap:9px; }
.hx-category .hx-tour-name { font-size:13px; min-height:16px; }
.hx-category-range { font-size:9px; font-weight:800; letter-spacing:1px; opacity:.75; }
.hx-category.modern { background:linear-gradient(155deg,#2d6d61,#122e37);border-color:#6ed5b8; }
.hx-category.futuristic { background:linear-gradient(155deg,#41446f,#151d39);border-color:#a8a4ff; }
.level-category-tabs { grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;position:sticky;top:0;z-index:2;background:#05261a;padding:8px 0; }
.level-category-tabs button { min-width:0;padding:10px 3px;border:1px solid #396359;border-radius:10px;background:#0d3028;color:#b9d9cd;font:800 12px Outfit,sans-serif;cursor:pointer; }
.level-category-tabs button[aria-pressed="true"] { border-color:#67e8c4;background:#185848;color:#fff; }
.level-category-tabs button:focus-visible { outline:2px solid #f5ce7a;outline-offset:2px; }
.level-grid-cell.tour-modern { background:#123e39;border-color:#67e8c4; }
.level-grid-cell.tour-futuristic { background:#252d50;border-color:#a8a4ff; }
