:root {
  --primary: #FF6B81;
  --primary-dark: #E84158;
  --secondary: #2ED573;
  --secondary-dark: #1F9E52;
  --accent-gold: #FFA502;
  --accent-gold-dark: #CC8400;
  --bg-gradient: linear-gradient(135deg, #FFEAA7 0%, #FFD2A8 50%, #FFB6B9 100%);
  --cabinet-wood: #7D4E2D;
  --cabinet-rim: #5A351B;
  --hole-shadow: #2D1A0E;
  --text-dark: #2F3542;
  --text-light: #FFFFFF;
  --font-arcade: 'Jua', cursive, sans-serif;
  --font-body: 'Nunito', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: var(--text-dark);
  overflow-x: hidden;
  touch-action: manipulation;
}

/* Custom Hammer Cursor */
.hammer-cursor {
  position: fixed;
  width: 64px;
  height: 64px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-30%, -30%) rotate(-15deg);
  transition: transform 0.06s cubic-bezier(0.1, 0.9, 0.2, 1);
  display: none;
  background-size: contain;
  background-repeat: no-repeat;
}

.hammer-cursor.active {
  transform: translate(-30%, -30%) rotate(45deg) scale(1.15);
}

@media (pointer: fine) {
  body {
    cursor: none;
  }
  .hammer-cursor {
    display: block;
  }
}

/* Container */
.game-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 10px 14px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Nav */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border: 3px solid #FFF;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

.game-title {
  font-family: var(--font-arcade);
  font-size: 20px;
  color: var(--primary-dark);
  line-height: 1;
  text-shadow: 1px 1px 0 #FFF;
}

.game-title .sub-title {
  font-size: 14px;
  color: var(--accent-gold);
}

.nav-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-bubble {
  background: #FFF;
  border: 2px solid #F1F2F6;
  border-radius: 12px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-arcade);
  font-size: 12px;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: 0 3px 0 #CED6E0;
  transition: all 0.15s ease;
}

.btn-bubble:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #CED6E0;
}

.btn-bubble.pulse {
  background: #FFEAA7;
  border-color: #FFA502;
  box-shadow: 0 3px 0 #CC8400;
  animation: pulseA2hs 2s infinite ease-in-out;
}

@keyframes pulseA2hs {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.btn-icon-only {
  padding: 6px 8px;
}

/* Status Bar */
.status-panel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.status-item {
  background: #FFF;
  border-radius: 14px;
  padding: 6px 4px;
  text-align: center;
  border: 2px solid #FFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status-label {
  font-size: 10px;
  font-weight: 800;
  color: #747D8C;
  text-transform: uppercase;
}

.status-val {
  font-family: var(--font-arcade);
  font-size: 15px;
  font-weight: bold;
}

.badge-level .status-val { color: var(--primary); }
.badge-score .status-val { color: #2ED573; }
.badge-gold .status-val { color: #FFA502; }
.badge-hammer .status-val { 
  font-size: 11px; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
  color: #3742FA;
}

.hearts-row {
  display: flex;
  justify-content: center;
  gap: 1px;
}

.heart {
  font-size: 12px;
  transition: transform 0.2s;
}

.heart.empty {
  opacity: 0.25;
  filter: grayscale(1);
}

/* Progress and Combo Alert */
.alert-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.combo-banner {
  background: linear-gradient(90deg, #FF4757, #FFA502);
  color: #FFF;
  font-family: var(--font-arcade);
  padding: 6px 14px;
  border-radius: 20px;
  text-align: center;
  font-size: 16px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
  animation: bounce 0.4s ease;
}

.combo-banner.hidden {
  display: none;
}

.level-progress {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  height: 20px;
  position: relative;
  overflow: hidden;
  border: 2px solid #FFF;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
  background: linear-gradient(90deg, #2ED573, #10AC84);
  height: 100%;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 800;
  color: #2F3542;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Arcade Cabinet Arena */
.arcade-cabinet {
  position: relative;
  margin-top: 12px;
  background: var(--cabinet-wood);
  border: 8px solid var(--cabinet-rim);
  border-radius: 28px;
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.25),
    inset 0 4px 12px rgba(255, 255, 255, 0.2);
  padding: 18px 12px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Hole Grid System */
.hole-grid {
  display: grid;
  width: 100%;
  gap: 12px;
  z-index: 1;
}

.hole-grid.grid-level-1 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.hole-grid.grid-level-2 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.hole-grid.grid-level-3 {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

@media (max-width: 420px) {
  .hole-grid.grid-level-3 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
}

/* Single Hole Box */
.hole-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* The dark hole inside */
.hole-rim {
  position: absolute;
  bottom: 0;
  width: 90%;
  height: 48%;
  background: var(--hole-shadow);
  border-radius: 50%;
  border: 4px solid #422513;
  box-shadow: 
    inset 0 10px 16px rgba(0, 0, 0, 0.8),
    0 6px 4px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Front grass / dirt lip to mask bottom of mole */
.hole-front {
  position: absolute;
  bottom: -4px;
  width: 96%;
  height: 36%;
  background: linear-gradient(to top, #5C381E, #7A4C2A);
  border-radius: 50% 50% 30% 30% / 40% 40% 60% 60%;
  z-index: 4;
  border-top: 3px solid #8D5B36;
}

/* Mole Container */
.mole-wrapper {
  position: absolute;
  bottom: 24%;
  width: 80%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
}

.mole {
  position: relative;
  width: 85%;
  height: 90%;
  background: linear-gradient(135deg, #B87333, #8D4D15);
  border-radius: 46% 46% 30% 30%;
  border: 3px solid #643209;
  cursor: pointer;
  transform: translateY(115%);
  transition: transform 0.12s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mole.up {
  transform: translateY(10%);
}

.mole.hit {
  animation: moleBonk 0.25s forwards ease-in-out;
}

@keyframes moleBonk {
  0% { transform: translateY(10%) scale(1); }
  40% { transform: translateY(22%) scale(1.18, 0.75); }
  100% { transform: translateY(115%) scale(0.9); }
}

/* Mole Facial Features */
.mole-ears {
  position: absolute;
  top: -8px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.mole-ear {
  width: 18px;
  height: 18px;
  background: #B87333;
  border: 2px solid #643209;
  border-radius: 50%;
  position: relative;
}

.mole-ear::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: #FFB6B9;
  border-radius: 50%;
}

.mole-eyes {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}

.mole-eye {
  width: 8px;
  height: 10px;
  background: #111;
  border-radius: 50%;
  position: relative;
}

.mole-eye::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 3px;
  height: 3px;
  background: #FFF;
  border-radius: 50%;
}

.mole.dizzy .mole-eye {
  border-radius: 0;
  width: 10px;
  height: 10px;
  background: transparent;
}
.mole.dizzy .mole-eye::before,
.mole.dizzy .mole-eye::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  width: 10px;
  height: 2px;
  background: #111;
  transform: rotate(45deg);
}
.mole.dizzy .mole-eye::after {
  transform: rotate(-45deg);
}

.mole-snout {
  width: 36px;
  height: 24px;
  background: #FFDFBA;
  border-radius: 14px;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #D8A26A;
  position: relative;
}

.mole-nose {
  width: 12px;
  height: 9px;
  background: #FF4757;
  border-radius: 50% 50% 40% 40%;
  margin-top: 2px;
}

.mole-teeth {
  width: 8px;
  height: 5px;
  background: #FFF;
  border-radius: 0 0 2px 2px;
  border: 1px solid #CCC;
}

.mole-cheeks {
  position: absolute;
  top: 26px;
  width: 85%;
  display: flex;
  justify-content: space-between;
}

.mole-cheek {
  width: 12px;
  height: 8px;
  background: rgba(255, 107, 129, 0.6);
  border-radius: 50%;
}

/* VIP MOLE: HELMET MOLE */
.mole.vip-helmet {
  background: linear-gradient(135deg, #A0522D, #703615);
}

.mole.vip-helmet .helmet-gear {
  position: absolute;
  top: -12px;
  width: 90%;
  height: 26px;
  background: linear-gradient(180deg, #F9CA24, #F0932B);
  border-radius: 20px 20px 6px 6px;
  border: 2px solid #BA68C8;
  border-color: #6D214F;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mole.vip-helmet .helmet-gear::after {
  content: '🛡️';
  font-size: 12px;
}

.mole.vip-helmet.cracked-1 .helmet-gear {
  background: linear-gradient(180deg, #EB4D4B, #B33939);
  border-color: #30336B;
  animation: shakeShort 0.2s;
}

.mole.vip-helmet.cracked-1 .helmet-gear::after {
  content: '💥';
  font-size: 13px;
}

/* SUPER VIP: GOLDEN MOLE */
.mole.vip-golden {
  background: linear-gradient(135deg, #FFEAA7, #FDCB6E, #E17055);
  border-color: #D63031;
  box-shadow: 0 0 16px rgba(253, 203, 110, 0.8);
}

.mole.vip-golden .crown-gear {
  position: absolute;
  top: -16px;
  font-size: 20px;
  animation: crownBounce 0.6s infinite alternate;
}

@keyframes crownBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}

/* HAZARD MOLE: BOMB MOLE */
.mole.vip-bomb {
  background: linear-gradient(135deg, #57606F, #2F3542);
  border-color: #1E272E;
}

.mole.vip-bomb .bomb-gear {
  position: absolute;
  top: -18px;
  font-size: 20px;
  animation: bombTicking 0.3s infinite alternate;
}

@keyframes bombTicking {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px red); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 6px orange); }
}

/* Hit Particles & Floating Text */
.hit-effect {
  position: absolute;
  pointer-events: none;
  font-family: var(--font-arcade);
  font-weight: 900;
  font-size: 20px;
  text-shadow: 2px 2px 0 #FFF, -1px -1px 0 #FFF;
  animation: floatUpFade 0.6s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  z-index: 10;
}

@keyframes floatUpFade {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.6);
  }
  50% {
    transform: translateY(-26px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translateY(-46px) scale(1);
  }
}

.spark-star {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #FFF;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: starBurst 0.5s ease-out forwards;
  z-index: 10;
}

@keyframes starBurst {
  0% { transform: scale(0.2) translate(0, 0); opacity: 1; }
  100% { transform: scale(1.5) translate(var(--dx), var(--dy)); opacity: 0; }
}

/* Arcade Cabinet Screen Overlays */
.arcade-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: opacity 0.3s;
}

.hidden {
  display: none !important;
}

.arcade-overlay.hidden {
  display: none !important;
}

.overlay-card {
  background: #FFF;
  border-radius: 24px;
  padding: 24px 20px;
  text-align: center;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
  border: 4px solid var(--accent-gold);
}

.mascot-badge {
  font-size: 42px;
  margin-bottom: 6px;
}

.overlay-card h2 {
  font-family: var(--font-arcade);
  font-size: 24px;
  color: var(--primary-dark);
}

.overlay-card .tagline {
  font-size: 13px;
  color: #747D8C;
  margin-bottom: 14px;
}

.quick-instructions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  text-align: left;
}

.rule-chip {
  background: #F8F9FA;
  border: 1px solid #E9ECEF;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #495057;
}

.btn-cta {
  background: linear-gradient(180deg, #FF6B81, #EE5253);
  color: #FFF;
  font-family: var(--font-arcade);
  font-size: 18px;
  padding: 14px 24px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 0 #C44141, 0 10px 20px rgba(238, 82, 83, 0.4);
  transition: all 0.15s ease;
  width: 100%;
}

.btn-cta:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #C44141;
}

.pulse-big {
  animation: pulseBig 1.8s infinite;
}

@keyframes pulseBig {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.resume-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px dashed #E2E8F0;
  font-size: 13px;
}

.btn-secondary {
  background: #F1F2F6;
  color: #2F3542;
  font-family: var(--font-arcade);
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 0 #CED6E0;
  margin-top: 8px;
  width: 100%;
  transition: all 0.1s ease;
}

.btn-secondary:hover {
  background: #E4E7EB;
}

.btn-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #CED6E0;
}

/* Stage Ready Transition Screen */
.stage-ready-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FECA57, #FF9F43);
  color: #2F3542;
  font-family: var(--font-arcade);
  font-size: 15px;
  font-weight: 900;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(254, 202, 87, 0.4);
  letter-spacing: 1px;
}

.ready-info-box {
  background: #F8F9FA;
  border: 2px solid #E9ECEF;
  border-radius: 16px;
  padding: 12px 16px;
  margin: 14px 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.ready-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #495057;
}

.ready-info-row strong {
  font-family: var(--font-arcade);
  color: var(--primary-dark);
  font-size: 15px;
}

.ready-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.hidden {
  display: none !important;
}

#modal-levelclear, #modal-gameover {
  z-index: 99999 !important;
}

.modal-card {
  position: relative;
  background: #FFF;
  border-radius: 24px;
  padding: 24px 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border: 4px solid #FFF;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.modal-large {
  max-width: 540px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #F1F2F6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  color: #57606F;
  cursor: pointer;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.modal-header .modal-icon {
  font-size: 26px;
}

.modal-header h3 {
  font-family: var(--font-arcade);
  font-size: 20px;
  color: var(--text-dark);
}

.subtitle-center {
  text-align: center;
  font-size: 13px;
  color: #747D8C;
  margin-bottom: 14px;
}

/* Settings Modal & Language Selector */
.settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-label {
  font-size: 12px;
  font-weight: 800;
  color: #57606F;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.btn-lang {
  background: #F8F9FA;
  border: 2px solid #E9ECEF;
  border-radius: 16px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  font-family: var(--font-arcade);
}

.btn-lang .flag-icon {
  font-size: 28px;
  line-height: 1;
}

.btn-lang .lang-title {
  font-size: 14px;
  color: var(--text-dark);
}

.btn-lang:hover {
  background: #FFF;
  border-color: #FFA502;
  transform: translateY(-2px);
}

.btn-lang.active {
  background: #FFF0F2;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(255, 107, 129, 0.25);
}

.btn-lang.active .lang-title {
  color: var(--primary-dark);
  font-weight: bold;
}

.geo-info-bar {
  margin-top: 14px;
  background: #F1F2F6;
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
  font-size: 11px;
  color: #57606F;
}

/* A2HS iOS Steps */
.ios-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F8F9FA;
  border: 1px solid #E9ECEF;
  border-radius: 14px;
  padding: 10px 14px;
}

.step-num {
  background: var(--primary);
  color: #FFF;
  font-family: var(--font-arcade);
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-desc {
  font-size: 13px;
  line-height: 1.4;
}

.ios-icon {
  display: inline-block;
  background: #E4E7EB;
  border-radius: 6px;
  padding: 1px 6px;
  font-weight: 900;
}

.a2hs-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFF8E7;
  border: 1px solid #FFEAA7;
  padding: 12px;
  border-radius: 16px;
  margin: 14px 0 18px;
}

.app-install-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.badge-tag {
  display: block;
  font-size: 11px;
  color: var(--secondary-dark);
  font-weight: 700;
  margin-top: 2px;
}

/* Shop Modal Styling */
.shop-gold-bar {
  background: #FFF9E6;
  border: 2px dashed #FFA502;
  border-radius: 14px;
  padding: 8px 14px;
  margin-bottom: 14px;
  text-align: center;
  font-size: 14px;
}

.text-gold {
  color: #D35400;
  font-size: 16px;
  font-weight: 900;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 440px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

.shop-item-card {
  background: #F8F9FA;
  border: 2px solid #E9ECEF;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s;
}

.shop-item-card.equipped {
  border-color: #2ED573;
  background: #E8F8F0;
}

.shop-item-icon {
  font-size: 38px;
  margin-bottom: 6px;
}

.shop-item-name {
  font-family: var(--font-arcade);
  font-size: 16px;
  color: #2F3542;
}

.shop-item-desc {
  font-size: 11px;
  color: #747D8C;
  margin: 4px 0 8px;
  min-height: 32px;
}

.shop-item-btn {
  width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  font-family: var(--font-arcade);
  font-size: 13px;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0,0,0,0.15);
}

.btn-buy {
  background: #FFA502;
  color: #FFF;
}

.btn-equip {
  background: #3742FA;
  color: #FFF;
}

.btn-equipped {
  background: #2ED573;
  color: #FFF;
  cursor: default;
}

/* Leaderboard */
.leaderboard-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8F9FA;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
}

.lb-row.top-1 { background: #FFF9E6; border: 1px solid #FFEAA7; font-weight: bold; }
.lb-row.top-2 { background: #F1F2F6; font-weight: bold; }
.lb-row.top-3 { background: #FFF3EB; font-weight: bold; }

.lb-player {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-rank {
  font-family: var(--font-arcade);
  font-size: 14px;
  width: 24px;
}

.lb-score {
  font-family: var(--font-arcade);
  color: var(--primary-dark);
}

.my-rank-banner {
  margin-top: 14px;
  background: #E8F0FE;
  border: 1px solid #4285F4;
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
  font-size: 12px;
}

/* Account & Cloud Save */
.account-profile-box {
  background: #F8F9FA;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
}

.account-profile-box label {
  font-size: 12px;
  font-weight: 800;
  color: #57606F;
  margin-bottom: 4px;
  display: block;
}

.input-inline {
  display: flex;
  gap: 6px;
}

.input-inline input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #CED6E0;
  font-family: var(--font-body);
  font-size: 13px;
}

.btn-small {
  padding: 6px 12px;
  border-radius: 10px;
  font-family: var(--font-arcade);
  font-size: 12px;
  border: none;
  background: var(--text-dark);
  color: #FFF;
  cursor: pointer;
}

.token-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 14px;
}

.token-box textarea {
  width: 100%;
  height: 60px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #CED6E0;
  font-family: monospace;
  font-size: 11px;
  resize: none;
}

.help-text {
  font-size: 11px;
  color: #747D8C;
  line-height: 1.4;
}

/* Game Over / Victory Modal Stats */
.gameover-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.stat-box {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  font-size: 12px;
}

.stat-box strong {
  display: block;
  font-family: var(--font-arcade);
  font-size: 18px;
  color: var(--primary-dark);
  margin-top: 2px;
}

.gameover-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clear-rewards {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 14px 0;
}

.reward-pill {
  background: #FFF9E6;
  border: 1px solid #FFEAA7;
  padding: 6px 12px;
  border-radius: 14px;
  font-family: var(--font-arcade);
  font-size: 13px;
  color: #D35400;
}

.clear-tip {
  font-size: 12px;
  color: #747D8C;
  margin-bottom: 16px;
  text-align: center;
  font-style: italic;
}

/* Footer */
.game-footer {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-link {
  background: transparent;
  border: none;
  color: #57606F;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.copyright {
  font-size: 11px;
  color: #747D8C;
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

/* Guide Modal Content */
.guide-card-content {
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
  color: #4A4A4A;
}

.guide-card-content h4 {
  font-family: var(--font-arcade);
  font-size: 16px;
  color: var(--primary-dark);
  margin: 16px 0 6px;
}

.guide-card-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.mole-types-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.type-item {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #E9ECEF;
}

.type-icon {
  font-size: 24px;
  line-height: 1;
}

details {
  background: #F8F9FA;
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 6px;
  border: 1px solid #E9ECEF;
}

summary {
  font-weight: 800;
  cursor: pointer;
  color: #2F3542;
}

details p {
  margin-top: 6px;
  font-size: 12px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(47, 53, 66, 0.95);
  color: #FFF;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  z-index: 9999;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  transition: opacity 0.3s;
}

.toast.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Utility Animations */
.bounce-in {
  animation: bounceIn 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes bounceIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shakeShort {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}
