@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600&display=swap');

/* ── Skybox Animations ───────────────────────────────────────────────────── */
@keyframes sky-sunset-shift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(8deg) brightness(1.06); }
  100% { filter: hue-rotate(0deg) brightness(1); }
}
@keyframes sky-day-drift {
  0%   { filter: brightness(1) saturate(1); }
  50%  { filter: brightness(1.04) saturate(1.08); }
  100% { filter: brightness(1) saturate(1); }
}
@keyframes sky-storm-flicker {
  0%,92%,100% { filter: brightness(1); }
  93%          { filter: brightness(1.5) saturate(0.4); }
  94%          { filter: brightness(1); }
  96%          { filter: brightness(1.8) saturate(0.2); }
  97%          { filter: brightness(1); }
}
@keyframes sky-forest-breathe {
  0%   { filter: saturate(1) brightness(1); }
  50%  { filter: saturate(1.12) brightness(1.05); }
  100% { filter: saturate(1) brightness(1); }
}
@keyframes sky-aurora-shimmer {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  33%  { filter: hue-rotate(18deg) brightness(1.1); }
  66%  { filter: hue-rotate(-12deg) brightness(0.95); }
  100% { filter: hue-rotate(0deg) brightness(1); }
}

body.sky-sunset #globe-canvas  { animation: sky-sunset-shift 8s ease-in-out infinite; }
body.sky-day    #globe-canvas  { animation: sky-day-drift 10s ease-in-out infinite; }
body.sky-storm  #globe-canvas  { animation: sky-storm-flicker 6s linear infinite; }
body.sky-forest #globe-canvas  { animation: sky-forest-breathe 9s ease-in-out infinite; }
body.sky-aurora #globe-canvas  { animation: sky-aurora-shimmer 7s ease-in-out infinite; }

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a1a;
  --panel:     rgba(10, 10, 35, 0.92);
  --border:    rgba(100, 80, 255, 0.25);
  --accent:    #7c5cff;
  --accent2:   #00d4ff;
  --gold:      #ffd700;
  --green:     #22ee88;
  --red:       #ff4455;
  --orange:    #ff9500;
  --text:      #e8e8ff;
  --muted:     #7070a0;
  --radius:    14px;
  --shadow:    0 8px 32px rgba(0,0,0,0.6);
}

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
  touch-action: none;
}

/* ── Globe Canvas ─────────────────────────────────────────────────────────── */
#globe-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* ── Screens ──────────────────────────────────────────────────────────────── */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
}

.screen.overlay {
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
}

.hidden { display: none !important; }

/* ── Wordmark: Ge[logo]Pin ────────────────────────────────────────────────── */
.logo-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Exo 2', -apple-system, sans-serif;
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 2px;
}

.logo-wordmark span {
  /* Teal → cyan → violet — futuristic space palette */
  background: linear-gradient(135deg, #00dd99 0%, #00aaff 55%, #9966ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Neon blue glow — matches the logo's cyan ring */
  filter:
    drop-shadow(0 0 1px #00d4ff)
    drop-shadow(0 0 4px #00d4ff)
    drop-shadow(0 0 10px rgba(0, 180, 255, 0.55));
}

.logo-o {
  height: 1.15em;
  width: auto;
  object-fit: contain;
  margin: 0 0.06em;
  vertical-align: middle;
  position: relative;
  top: -0.05em;
  filter:
    drop-shadow(0 0 1px #00d4ff)
    drop-shadow(0 0 5px #00d4ff)
    drop-shadow(0 0 12px rgba(0, 180, 255, 0.6));
}

/* ── Logo & Titles ────────────────────────────────────────────────────────── */
.logo {
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 0%, var(--accent2) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.tagline {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #00ff88 0%, #00ccff 50%, #aa44ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 8px rgba(0,200,255,0.4));
  margin-bottom: 4px;
}

.panel-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

/* ── Stats Row (coins + streak) ───────────────────────────────────────────── */
#main-stats-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}

.stat-chip {
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.32);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffd700;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-back, .btn-mode, .btn-diff,
.btn-party, .btn-leaderboard, .btn-shop, .btn-how-small {
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: transform 0.12s, box-shadow 0.15s, opacity 0.12s;
  width: 100%;
  max-width: 320px;
}
.btn-primary:active, .btn-secondary:active, .btn-mode:active, .btn-diff:active,
.btn-party:active, .btn-leaderboard:active, .btn-shop:active, .btn-how-small:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, #6c2ff2, #0f72ea);
  color: #fff;
  padding: 18px 24px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 0 28px rgba(108,47,242,0.6), 0 4px 18px rgba(0,0,0,0.45);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.btn-primary:hover { box-shadow: 0 0 40px rgba(108,47,242,0.8), 0 4px 22px rgba(0,0,0,0.45); }

.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 14px 24px;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.btn-download {
  display: block;
  width: 100%;
  max-width: 340px;
  padding: 14px 24px;
  background: var(--panel);
  color: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: transform 0.12s, opacity 0.12s, color 0.15s;
  box-sizing: border-box;
}
.btn-download:hover  { color: #fff; }
.btn-download:active { transform: scale(0.96); }

.btn-back {
  background: rgba(0,230,120,0.12);
  color: #00e676;
  border: 1px solid rgba(0,230,120,0.35) !important;
  padding: 10px 20px;
  font-size: 0.9rem;
  max-width: 340px;
  margin-top: 4px;
}
.btn-back:hover { background: rgba(0,230,120,0.22); color: #66ffb2; }

/* Daily Challenge button — festive party */
.btn-daily, .btn-party {
  background: linear-gradient(135deg, rgba(255,70,90,0.2), rgba(255,185,0,0.17), rgba(120,50,255,0.2));
  border: 1.5px solid rgba(255,210,0,0.72);
  color: #ffe566;
  padding: 16px 24px;
  font-size: 1rem;
  text-shadow: 0 0 16px rgba(255,225,80,0.8), 0 1px 0 rgba(0,0,0,0.45);
  animation: party-glow 1.6s ease-in-out infinite alternate;
}
.btn-daily:hover, .btn-party:hover {
  background: linear-gradient(135deg, rgba(255,70,90,0.32), rgba(255,185,0,0.27), rgba(120,50,255,0.32));
  color: #fff176;
}

@keyframes party-glow {
  from { box-shadow: 0 0 14px rgba(255,100,100,0.5), 0 0 28px rgba(255,200,0,0.28); }
  to   { box-shadow: 0 0 22px rgba(120,60,255,0.62), 0 0 42px rgba(255,100,200,0.4); }
}

/* Leaderboard button — gold */
.btn-leaderboard {
  background: linear-gradient(135deg, rgba(255,215,0,0.13), rgba(255,155,0,0.09));
  border: 1.5px solid rgba(255,215,0,0.52);
  color: #ffd700;
  padding: 14px 24px;
  font-size: 1rem;
  text-shadow: 0 0 12px rgba(255,215,0,0.52), 0 1px 0 rgba(0,0,0,0.45);
  box-shadow: 0 0 14px rgba(255,215,0,0.1);
}
.btn-leaderboard:hover {
  background: linear-gradient(135deg, rgba(255,215,0,0.22), rgba(255,155,0,0.16));
  box-shadow: 0 0 24px rgba(255,215,0,0.22);
}

/* GeoCoins badge inside shop button */
.shop-coin-badge {
  display: inline-block;
  background: rgba(255,215,0,0.18);
  border: 1px solid rgba(255,215,0,0.4);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.82em;
  font-weight: 700;
  color: #ffd700;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.01em;
}

/* GeoShop button — neon purple */
.btn-shop {
  background: linear-gradient(135deg, rgba(160,32,255,0.16), rgba(100,0,210,0.11));
  border: 1.5px solid rgba(180,60,255,0.58);
  color: #cc88ff;
  padding: 14px 24px;
  font-size: 1rem;
  text-shadow: 0 0 12px rgba(200,100,255,0.55), 0 1px 0 rgba(0,0,0,0.45);
  box-shadow: 0 0 14px rgba(160,32,255,0.13);
}
.btn-shop:hover {
  background: linear-gradient(135deg, rgba(160,32,255,0.26), rgba(100,0,210,0.19));
  color: #dda8ff;
  box-shadow: 0 0 26px rgba(160,32,255,0.26);
}

/* How to Play — subtle */
.btn-how-small {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.11);
  color: rgba(200,216,240,0.72);
  padding: 9px 20px;
  font-size: 0.82rem;
  max-width: 320px;
}

/* Explore mode button — teal tint */
.btn-mode-explore { border-color: rgba(0,210,180,0.4) !important; }
.btn-mode-explore .mode-name { color: #00d4b4; }

.btn-mode {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  backdrop-filter: blur(12px);
}
.btn-mode:hover { border-color: var(--accent); }
.mode-icon { font-size: 1.8rem; }
.mode-name { font-size: 1rem; font-weight: 700; }
.mode-desc { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  max-height: 55vh;
  overflow-y: auto;
}

.grid-2 button {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 14px 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  backdrop-filter: blur(10px);
}
.grid-2 button:hover { border-color: var(--accent); }
.grid-2 button:active { transform: scale(0.95); }

.btn-diff {
  max-width: 340px;
  padding: 18px;
  font-size: 1.1rem;
  border: 2px solid transparent;
}
.btn-diff.easy   { background: rgba(34,238,136,0.15); border-color: var(--green);  color: var(--green); }
.btn-diff.medium { background: rgba(255,149,0,0.15);  border-color: var(--orange); color: var(--orange); }
.btn-diff.hard   { background: rgba(255,68,85,0.15);  border-color: var(--red);    color: var(--red); }
.btn-diff:active { transform: scale(0.96); }

/* ── Coin Pill ────────────────────────────────────────────────────────────── */
.coin-pill {
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
}

/* ── HUD ──────────────────────────────────────────────────────────────────── */
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

#hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 10px 14px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
  pointer-events: all;
}

#hud-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

#hud-score {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

#hud-timer {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  min-width: 50px;
  text-align: center;
  transition: color 0.3s;
}
#hud-timer.urgent { color: var(--red); animation: pulse-timer 0.5s ease-in-out infinite alternate; }

@keyframes pulse-timer {
  from { transform: scale(1); }
  to   { transform: scale(1.15); }
}

#hud-coins {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
}

#question-box {
  margin: 0 12px;
  background: none;
  border: none;
  padding: 10px 16px;
  pointer-events: all;
}

#question-text {
  font-size: clamp(0.9rem, 3.8vw, 1.05rem);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  color: #ffffff;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 2px 6px rgba(0,0,0,0.8);
}

#feedback-box {
  margin: 4px 12px 0;
  padding: 6px 16px;
  pointer-events: all;
  background: none;
  border: none;
}
#feedback-box.correct  { background: none; }
#feedback-box.close    { background: none; }
#feedback-box.near     { background: none; }
#feedback-box.wrong    { background: none; }

#feedback-text {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 2px 6px rgba(0,0,0,0.85);
  line-height: 1.4;
  white-space: pre-wrap;
}

/* ── Power-up Bar ─────────────────────────────────────────────────────────── */
#powerup-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  pointer-events: all;
}

.pu-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  backdrop-filter: blur(10px);
  transition: border-color 0.15s, transform 0.1s;
  min-width: 52px;
}
.pu-btn:disabled { opacity: 0.35; cursor: default; }
.pu-btn:not(:disabled):active { transform: scale(0.92); }
.pu-btn.armed { border-color: var(--gold); box-shadow: 0 0 12px rgba(255,215,0,0.4); }

/* ── Pause Button — now inline in #hud-right ─────────────────────────────── */
#btn-pause {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  padding: 6px 10px;
  cursor: pointer;
  pointer-events: all;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

/* ── Score Popup ──────────────────────────────────────────────────────────── */
#score-popup-layer { position: fixed; inset: 0; pointer-events: none; z-index: 20; }

.score-popup {
  position: absolute;
  font-size: 1.6rem;
  font-weight: 900;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  animation: popup-rise 1.2s ease-out forwards;
}
@keyframes popup-rise {
  0%   { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -80px); }
}

/* ── Store ────────────────────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 4px;
  width: 100%;
  max-width: 340px;
}
.tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.03em;
}
/* Per-tab identity colors */
.tab[data-tab="pins"]     { color: #22ee88; text-shadow: 0 0 8px rgba(34,238,136,0.6); }
.tab[data-tab="powerups"] { color: #ffc107; text-shadow: 0 0 8px rgba(255,193,7,0.6); }
.tab[data-tab="worlds"] { color: #82b4ff; text-shadow: 0 0 10px rgba(100,160,255,0.8); }
.tab[data-tab="pins"].active     { background: rgba(34,238,136,0.18); color: #44ffaa; text-shadow: 0 0 12px rgba(68,255,170,0.9); }
.tab[data-tab="powerups"].active { background: rgba(255,193,7,0.18);  color: #ffd740; text-shadow: 0 0 12px rgba(255,215,64,0.9); }
.tab[data-tab="worlds"].active { background: rgba(90,155,245,0.18); color: #a0c8ff; text-shadow: 0 0 12px rgba(120,180,255,1); }

/* ── Skybox transition overlay ──────────────────────────────────────────── */
#sky-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(160,210,255,1) 0%,
    rgba(40,80,200,0.98) 20%,
    rgba(5,10,50,1) 55%,
    rgba(0,0,0,1) 100%);
}
@keyframes skyPortalIn {
  0%   { opacity:0; transform:scale(0.05); filter:blur(40px) brightness(5); }
  45%  { opacity:1; transform:scale(1.04); filter:blur(3px) brightness(2);  }
  100% { opacity:1; transform:scale(1);    filter:blur(0)   brightness(1);  }
}
@keyframes skyPortalOut {
  0%   { opacity:1; transform:scale(1);    filter:blur(0);     }
  100% { opacity:0; transform:scale(1.08); filter:blur(18px);  }
}
#sky-overlay.in  { animation: skyPortalIn  0.45s ease-out forwards; }
#sky-overlay.out { animation: skyPortalOut 0.55s ease-in  forwards; }

#store-content {
  width: 100%;
  max-width: 360px;
  max-height: 45vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.store-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius);
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}
.store-item.equipped { border-color: var(--accent); }

.store-item-icon { font-size: 1.4rem; width: 36px; text-align: center; }

.store-item-info { flex: 1; }
.store-item-name { font-weight: 700; font-size: 0.95rem; }
.store-item-desc { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.store-item-charges { font-size: 0.85rem; color: var(--gold); font-weight: 700; margin-top: 4px; }

.store-item-action {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.1s;
}
.store-item-action:disabled { background: rgba(255,255,255,0.1); color: var(--muted); cursor: default; }
.store-item-action.equipped-label { background: rgba(124,92,255,0.2); color: var(--accent); cursor: default; }
.store-item-action:not(:disabled):active { transform: scale(0.92); }

/* ── Satellite Hint — compact top-right pill ──────────────────────────────── */
#satellite-hint {
  position: fixed;
  top: 58px;
  right: 8px;
  background: var(--panel);
  border: 1px solid rgba(0,212,255,0.5);
  border-radius: 10px;
  padding: 8px 10px;
  backdrop-filter: blur(12px);
  z-index: 10;
  text-align: center;
  max-width: 160px;
  box-shadow: 0 0 14px rgba(0,212,255,0.15);
}
.hint-title { font-size: 0.72rem; color: var(--accent2); margin-bottom: 6px; font-weight: 700; }
#hint-zones { display: flex; flex-direction: column; gap: 4px; }
.hint-zone {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── Legal Footer ─────────────────────────────────────────────────────────── */
#legal-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.7em;
  color: rgba(255,255,255,0.25);
  z-index: 10;
  pointer-events: none;
  user-select: none;
}
#legal-footer a, #legal-footer span {
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  pointer-events: auto;
  margin: 0 4px;
}
#legal-footer a:hover { color: rgba(255,255,255,0.5); }
/* Hide footer and download button during gameplay */
body.playing #legal-footer { display: none; }
body.playing a[download] { display: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (min-width: 480px) {
  .screen { padding: 32px; }
  #question-box { margin: 0 20px; }
  #feedback-box { margin: 8px 20px 0; }
}

/* ── Power-up & Pin Animations ─────────────────────────────────────────────── */
.gp-chip-anim {
  position: fixed; left: 50%; top: 44%;
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, #ffe566 25%, #c8960c 65%, #9a7008 100%);
  border: 4px solid #fff8cc; box-shadow: 0 0 28px #ffcc00, 0 0 6px #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; color: #5a3800;
  text-shadow: 0 1px 0 #ffe066;
  z-index: 8000; pointer-events: none;
  animation: gpChipFlip 1.0s cubic-bezier(0.3,0,0.7,1) forwards;
}
@keyframes gpChipFlip {
  0%   { transform: translate(-50%,-50%) rotateX(0deg)   scale(0.35); opacity: 0; }
  20%  { opacity: 1; }
  65%  { transform: translate(-50%,-50%) rotateX(720deg) scale(1.12); }
  100% { transform: translate(-50%,-50%) rotateX(720deg) scale(1.0);  opacity: 1; }
}

.gp-hg-anim {
  position: fixed; left: 50%; top: 44%;
  transform: translate(-50%,-50%);
  font-size: 62px; z-index: 8001; pointer-events: none;
  animation: gpHourglassBreak 1.0s ease-in-out forwards;
}
@keyframes gpHourglassBreak {
  0%   { transform: translate(-50%,-50%) scale(1)    rotate(0deg);  opacity: 1; }
  35%  { transform: translate(-50%,-50%) scale(1.28) rotate(-12deg); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(0.25) rotate(55deg);  opacity: 0; }
}

.gp-tb-txt {
  position: fixed; left: 50%; top: 42%;
  transform: translate(-50%,-50%);
  font-size: 40px; font-weight: 900;
  color: #cc00ff;
  text-shadow: 0 0 18px #9900cc, 0 0 42px #6600aa, 0 0 70px #3300aa;
  z-index: 8002; pointer-events: none;
  animation: gpTbFloat 1.55s ease-out forwards;
}
@keyframes gpTbFloat {
  0%   { transform: translate(-50%, 0px)    scale(0.45); opacity: 0; }
  18%  { transform: translate(-50%, 0px)    scale(1.22); opacity: 1; }
  60%  { transform: translate(-50%,-72px)   scale(1.0);  opacity: 1; }
  100% { transform: translate(-50%,-135px)  scale(0.8);  opacity: 0; }
}

.gp-jet-anim {
  position: fixed; top: 26%; left: -80px;
  font-size: 46px; z-index: 8000; pointer-events: none;
  animation: gpJetFly 1.25s cubic-bezier(0.4,0,0.6,1) forwards;
}
@keyframes gpJetFly {
  from { left: -80px;  top: 26%; }
  to   { left: calc(100% + 80px); top: 24%; }
}
