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

:root {
  --sky: #87CEEB; --sky-dark: #4a9aba; --ground: #5d9e3b;
  --coin: #FFD700; --accent: #FF6B35; --white: #ffffff; --dark: #1a1a2e;
}

html {
  position: fixed; width: 100%; height: 100%; overflow: hidden;
}

body {
  background: var(--sky);
  font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
  position: fixed; width: 100%; height: 100%;
  overflow: hidden; user-select: none;
}

.screen {
  display: none; position: fixed; inset: 0;
  flex-direction: column; align-items: center; justify-content: center;
}
.screen.active { display: flex; }
.hidden { display: none !important; }


/* ── TUTORIAL MODAL ── */
.tutorial-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.80); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.tut-box {
  background: linear-gradient(160deg, #1a1a3e, #16213e);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 24px;
  padding: 24px 20px 24px; max-width: 380px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  position: relative; margin: auto;
}
.tut-close-x {
  position: fixed; top: 20px; right: 16px;
  background: rgba(0,0,0,0.55); border: 1.5px solid rgba(255,255,255,0.25); border-radius: 50%;
  width: 36px; height: 36px; font-size: 16px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 110; box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.tut-close-x:active { background: rgba(255,255,255,0.20); }
.tut-icon { font-size: 52px; }
.tut-title { color: white; font-size: 22px; letter-spacing: 3px; }
.tut-steps { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.tut-step {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06); border-radius: 12px; padding: 10px 14px;
  color: rgba(255,255,255,0.85); font-size: 13px; line-height: 1.4;
}
.tut-step-icon { font-size: 22px; flex-shrink: 0; }
.tut-good { border-left: 3px solid #4CAF50; background: rgba(76,175,80,0.10); }
.tut-bad  { border-left: 3px solid #f44336; background: rgba(244,67,54,0.10); }
.tut-section-title {
  font-size: 11px; font-weight: bold; letter-spacing: 2px;
  color: rgba(255,255,255,0.45); text-align: left; padding: 4px 2px 0;
  margin-top: 2px;
}
.tut-demo-note {
  color: rgba(255,255,255,0.55); font-size: 12px; text-align: center;
  margin-top: -4px;
}

/* ── TUTORIAL SKIP BUTTON (overlaid on game canvas) ── */
.tut-skip-btn {
  position: absolute; top: 14px; right: 14px; z-index: 30;
  background: rgba(0,0,0,0.5); color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.22); border-radius: 20px;
  font-size: 13px; font-weight: bold; padding: 6px 14px;
  cursor: pointer; letter-spacing: 1px;
  transition: opacity .2s;
}
.tut-skip-btn:active { opacity: 0.6; }

/* ── MENU ── */
.menu-sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #3a8fc2 0%, #5bb8e8 40%, #87CEEB 70%, #b8e4f9 100%);
  z-index: 0; overflow: hidden;
}
.sky-cloud {
  position: absolute; background: rgba(255,255,255,0.82);
  border-radius: 50px; height: 38px;
}
.sky-cloud::before, .sky-cloud::after {
  content: ''; position: absolute; background: rgba(255,255,255,0.82); border-radius: 50%;
}
.c1 { width: 130px; top: 12%; animation: cloudMove 22s linear infinite; }
.c1::before { width: 64px; height: 64px; top: -32px; left: 16px; }
.c1::after  { width: 54px; height: 54px; top: -24px; left: 58px; }
.c2 { width: 100px; top: 32%; animation: cloudMove 30s linear 10s infinite; opacity: 0.7; }
.c2::before { width: 48px; height: 48px; top: -26px; left: 12px; }
.c2::after  { width: 40px; height: 40px; top: -18px; left: 46px; }
.c3 { width: 115px; top: 58%; animation: cloudMove 26s linear 5s infinite; opacity: 0.6; }
.c3::before { width: 56px; height: 56px; top: -30px; left: 14px; }
.c3::after  { width: 46px; height: 46px; top: -20px; left: 52px; }
@keyframes cloudMove { from { left: -160px; } to { left: 110%; } }
.menu-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; width: 100%;
  /* max-height + overflow-y lets the content scroll on small phones
     (coins badge / settings buttons are position:absolute on the screen, not inside here) */
  max-height: 100vh;
  max-height: 100dvh; /* shrinks with mobile browser chrome on newer browsers */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(80px, calc(50vh - 295px)) 20px 30px;
}
.logo { text-align: center; }
.logo-plane { font-size: 48px; margin-bottom: 4px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.logo h1 { font-size: 44px; color: #fff; letter-spacing: 3px; text-shadow: 0 3px 0 #1976D2, 0 5px 0 #0D47A1, 0 7px 12px rgba(0,0,0,0.4); -webkit-text-stroke: 2px #1565C0; margin: 0; line-height: 1; }
.logo h2 { font-size: 36px; color: #FFD600; letter-spacing: 2px; margin-top: -2px; text-shadow: 0 3px 0 #E65100, 0 5px 0 #BF360C, 0 7px 12px rgba(0,0,0,0.4); -webkit-text-stroke: 1.5px #E65100; line-height: 1; }

.vehicle-display { display: flex; flex-direction: column; align-items: center; gap: 3px; }
#vehicleCanvas { filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25)); width: 100px; height: 66px; }
.vehicle-name { color: white; font-size: 12px; font-weight: bold; letter-spacing: 2px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }

/* Coins badge — top left corner of menu */
.menu-coins-corner {
  position: absolute; top: 16px; left: 16px; z-index: 10;
  display: flex; align-items: center; gap: 7px;
  background: rgba(0,0,0,0.32); backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,215,0,0.45);
  border-radius: 50px; padding: 7px 14px 7px 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.menu-coins-corner #menu-coins {
  color: #FFD700; font-size: 20px; font-weight: bold;
  text-shadow: 0 2px 6px rgba(200,120,0,0.6);
}

.stats-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.stat { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.25); border-radius: 24px; padding: 8px 16px; backdrop-filter: blur(10px); }
.stat span { color: white; font-size: 18px; font-weight: bold; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
/* ── COIN ICON — shared across all screens ── */
.coin, .coin-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFE082, #FFD700 55%, #F9A825);
  border: 2px solid #E65100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.45);
  flex-shrink: 0; vertical-align: middle;
  font-size: 10px; font-weight: 900; font-style: normal;
  color: #7B3000; line-height: 1; text-shadow: none;
  font-family: Arial, sans-serif;
}
.coin::after, .coin-dot::after { content: '$'; }
/* size variants */
.coin-sm { width: 15px; height: 15px; font-size: 8px; border-width: 1.5px; }
.coin-lg { width: 26px; height: 26px; font-size: 13px; border-width: 2.5px; }

/* ── LANGUAGE SELECTOR ── */
.lang-selector {
  position: absolute; top: 18px; right: 16px; z-index: 10;
}
.lang-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.25); backdrop-filter: blur(10px);
  font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: transform .1s;
  line-height: 1;
}
.lang-btn:active { transform: scale(0.92); }
.lang-dropdown {
  position: absolute; top: 52px; right: 0;
  background: rgba(15,20,40,0.95); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 16px;
  padding: 8px; min-width: 160px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; gap: 2px;
}
.lang-opt {
  background: transparent; border: none; color: white;
  font-size: 15px; padding: 9px 14px; border-radius: 10px;
  cursor: pointer; text-align: left; transition: background .15s;
  white-space: nowrap;
}
.lang-opt:hover, .lang-opt.lang-active { background: rgba(255,255,255,0.12); }
.lang-opt.lang-active { color: #FFD700; }

/* ── SETTINGS TOGGLES ── */
.settings-row {
  position: absolute; top: 70px; right: 12px;
  display: flex; flex-direction: column; gap: 6px; z-index: 10;
}
.settings-toggle-btn {
  display: flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,0.32); backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.28); border-radius: 20px;
  padding: 5px 10px; cursor: pointer; transition: all 0.18s;
  color: rgba(255,255,255,0.92); font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  -webkit-tap-highlight-color: transparent;
}
.settings-toggle-btn .stb-icon { font-size: 15px; line-height: 1; }
.settings-toggle-btn.on {
  background: rgba(255,215,50,0.16);
  border-color: rgba(255,215,50,0.50);
}
.settings-toggle-btn.off {
  background: rgba(0,0,0,0.40);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.28);
  filter: grayscale(0.7);
}
.settings-toggle-btn:active { transform: scale(0.93); }

.btn-play {
  background: linear-gradient(135deg, #FF6B35, #f7410f);
  color: white; border: none; border-radius: 16px;
  font-size: 20px; font-weight: bold; letter-spacing: 2px;
  padding: 15px 32px; cursor: pointer; width: 100%; max-width: 320px;
  box-shadow: 0 5px 0 #c03000, 0 7px 18px rgba(255,107,53,0.45);
  transition: transform .1s;
}
.btn-play:active { transform: scale(0.96) translateY(2px); box-shadow: 0 2px 0 #c03000; }

/* ── MY FLIGHT (Free Play) button — softer, distinct from PLAY ── */
.btn-free-play {
  background: linear-gradient(135deg, #1565C0, #283593);
  color: white; border: 2px solid rgba(255,255,255,0.25); border-radius: 16px;
  font-size: 18px; font-weight: bold; letter-spacing: 2px;
  padding: 13px 32px; cursor: pointer; width: 100%; max-width: 320px;
  box-shadow: 0 4px 0 #0d2b7a, 0 6px 16px rgba(21,101,192,0.4);
  transition: transform .1s;
}
.btn-free-play:active { transform: scale(0.96) translateY(2px); box-shadow: 0 2px 0 #0d2b7a; }
.fp-best-badge { font-size: 11px; opacity: 0.82; margin-left: 4px; }

.btn-shop {
  background: rgba(255,255,255,0.22); color: white;
  border: 1.5px solid rgba(255,255,255,0.4); border-radius: 16px;
  font-size: 15px; font-weight: bold; padding: 10px 28px;
  cursor: pointer; backdrop-filter: blur(10px); transition: transform .1s;
}
.btn-shop:active { transform: scale(0.96); }

.btn-levels {
  background: linear-gradient(135deg, #1976D2, #0D47A1);
  color: white; border: 2px solid rgba(255,255,255,0.35); border-radius: 16px;
  font-size: 17px; font-weight: bold; letter-spacing: 2px;
  padding: 13px 32px; cursor: pointer; width: 100%; max-width: 320px;
  box-shadow: 0 5px 0 #0D47A1, 0 8px 18px rgba(13,71,161,0.45);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: transform .1s;
}
.btn-levels:active { transform: scale(0.96) translateY(3px); box-shadow: 0 2px 0 #0D47A1; }

.btn-upgrades {
  background: linear-gradient(135deg, #FF8F00, #E65100);
  color: white; border: 2px solid rgba(255,255,255,0.35); border-radius: 16px;
  font-size: 17px; font-weight: bold; letter-spacing: 2px;
  padding: 13px 32px; cursor: pointer; width: 100%; max-width: 320px;
  box-shadow: 0 5px 0 #BF360C, 0 8px 18px rgba(230,81,0,0.45);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: transform .1s;
}
.btn-upgrades:active { transform: scale(0.96) translateY(3px); box-shadow: 0 2px 0 #BF360C; }

.btn-menu {
  background: transparent; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.28); border-radius: 16px;
  font-size: 13px; padding: 9px 24px; cursor: pointer;
}

/* ── GAME ── */
#screen-game { background: #000; padding: 0; touch-action: none; }
#gameCanvas { display: block; width: 100%; height: 100%; touch-action: none; }

.game-hud {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 10px 12px; gap: 6px; pointer-events: none;
}
.hud-left, .hud-right, .hud-center {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(0,0,0,0.28); border-radius: 14px;
  padding: 5px 12px; backdrop-filter: blur(6px);
}
.hud-center { flex: 1; max-width: 160px; }
.hud-label { color: rgba(255,255,255,0.65); font-size: 9px; letter-spacing: 2px; }
#hud-level { color: #FFD700; font-size: 22px; font-weight: bold; line-height: 1.1; }
#hud-distance { color: #80deea; font-size: 18px; font-weight: bold; line-height: 1.1; }
.hud-goal { color: rgba(255,255,255,0.5); font-size: 11px; margin-top: 1px; }
.hud-ammo-dots { color: #ffcc02; font-size: 11px; letter-spacing: 2px; line-height: 1.4; word-break: break-all; text-align: center; max-width: 80px; }

/* ── SHOOT BUTTON ── */
@keyframes shoot-ready-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(255,80,30,0.6), inset 0 1px 0 rgba(255,150,80,0.4); }
  50%      { box-shadow: 0 4px 32px rgba(255,80,30,0.95), inset 0 1px 0 rgba(255,150,80,0.4); }
}
.shoot-btn {
  position: absolute; bottom: 32px; right: 18px;
  width: 76px; height: 76px; border-radius: 50%;
  border: 3px solid rgba(255,90,20,0.95);
  background: radial-gradient(circle at 40% 38%, rgba(220,60,0,0.9), rgba(120,10,0,0.85));
  color: white; font-size: 13px; font-weight: bold; line-height: 1.2;
  cursor: pointer; z-index: 20;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  box-shadow: 0 4px 20px rgba(255,80,30,0.6), inset 0 1px 0 rgba(255,150,80,0.4);
  touch-action: none; user-select: none;
  transition: opacity 0.15s, transform 0.15s;
}
.shoot-btn:active { transform: scale(0.88) !important; opacity: 0.75 !important; }


/* ── REVIVE SCREEN ── */
#screen-revive {
  background: linear-gradient(180deg,#2a0000 0%,#1a0606 100%);
  position: fixed; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; z-index: 50;
}
#screen-revive.active { display: flex; }
/* Unified death screen */
.death-content {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 28px 22px; width: 100%; max-width: 340px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
/* countdown ring */
.revive-ring-wrap { position: relative; width: 72px; height: 72px; margin: 4px 0; }
.revive-ring-wrap svg { transform: rotate(-90deg); }
#revive-ring-bg { stroke: rgba(255,255,255,0.1); }
#revive-ring-fill { stroke: #FF6B35; transition: stroke-dashoffset 1s linear; }
#revive-countdown-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #FF6B35; font-size: 26px; font-weight: 800;
}
#death-continue { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 100%; }
#death-ended    { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 100%; }
/* primary: coin continue */
.btn-revive-coin {
  background: linear-gradient(160deg, #2e7d32 0%, #1b5e20 100%);
  color: white; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700; padding: 13px 24px;
  cursor: pointer; width: 100%;
  box-shadow: 0 3px 0 #143d16, 0 5px 16px rgba(46,125,50,0.4);
  transition: transform .1s, opacity .2s;
}
.btn-revive-coin:active { transform: translateY(2px); box-shadow: 0 1px 0 #143d16; }
#revive-ad-section { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; }
/* secondary: ad */
.btn-revive-ad {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.18); border-radius: 14px;
  font-size: 15px; font-weight: 600; padding: 11px 24px;
  cursor: pointer; width: 100%;
  transition: transform .1s, opacity .2s;
}
.btn-revive-ad:active { transform: translateY(1px); }
.chip {
  display: inline-block; background: rgba(255,255,255,0.15);
  border-radius: 20px; padding: 1px 7px; font-size: 12px;
  vertical-align: middle; margin-left: 4px;
}
/* NEW GAME — most prominent action */
.btn-revive-newgame {
  background: linear-gradient(160deg, #1565c0 0%, #0d47a1 100%);
  color: white; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700; padding: 13px 24px;
  cursor: pointer; width: 100%;
  box-shadow: 0 3px 0 #0a2f6e, 0 5px 16px rgba(21,101,192,0.4);
  transition: transform .1s;
}
.btn-revive-newgame:active { transform: translateY(2px); box-shadow: 0 1px 0 #0a2f6e; }
/* ammo buy row on death screen */
.death-ammo-shop {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: rgba(255,204,2,0.08); border: 1px solid rgba(255,204,2,0.2);
  border-radius: 12px; padding: 8px 14px;
}
.death-ammo-btn {
  flex: 1; background: rgba(255,204,2,0.15); border: 1px solid rgba(255,204,2,0.4);
  border-radius: 10px; color: #ffcc02; font-size: 14px; font-weight: 600;
  padding: 8px 12px; cursor: pointer; transition: background .1s;
}
.death-ammo-btn:active { background: rgba(255,204,2,0.28); }
.death-ammo-count {
  color: #ffcc02; font-size: 18px; font-weight: bold; min-width: 28px; text-align: right;
}
/* menu link */
.btn-revive-menu {
  background: transparent; color: rgba(255,255,255,0.38);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 14px;
  font-size: 13px; font-weight: 500; padding: 9px 24px;
  cursor: pointer; width: 100%; transition: opacity .1s;
}
.btn-revive-menu:active { opacity: 0.6; }

/* ── INTERSTITIAL AD OVERLAY ── */
#ad-interstitial {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(6px);
  display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
}
#ad-interstitial.active { display: flex; }
.ad-placeholder {
  background: #111; border: 2px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 40px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  min-width: 280px;
}
.ad-placeholder-icon { font-size: 48px; }
.ad-placeholder-text { color: rgba(255,255,255,0.7); font-size: 14px; letter-spacing: 1px; text-align: center; }
.ad-placeholder-skip {
  color: rgba(255,255,255,0.4); font-size: 13px;
  background: transparent; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 8px 20px; cursor: pointer;
}

/* ── DEATH SCREEN header ── */
.crash-mark {
  width: 48px; height: 48px; color: rgba(255,107,53,0.65);
  animation: crashIn .35s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes crashIn {
  0%  { opacity:0; transform:rotate(-15deg) scale(0.6); }
  100%{ opacity:1; transform:rotate(0deg)   scale(1);   }
}
.go-title {
  color: white; font-size: 32px; font-weight: 800;
  letter-spacing: 5px; margin: 0;
  text-shadow: 0 2px 12px rgba(255,107,53,0.5);
}
.go-stats { display: flex; gap: 8px; width: 100%; }
.go-stat {
  flex: 1; background: rgba(255,255,255,0.07); border-radius: 12px;
  padding: 10px 4px; text-align: center; border: 1px solid rgba(255,255,255,0.1);
}
.go-stat-label { color: rgba(255,255,255,0.45); font-size: 9px; letter-spacing: 2px; margin-bottom: 4px; }
.go-stat-value { color: white; font-size: 20px; font-weight: bold; }

/* ── LEVEL COMPLETE ── */
#screen-levelcomplete { background: linear-gradient(180deg,#0a2a10 0%,#1a4a20 50%,#0d2a1a 100%); }
.levelcomplete-content {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 40px 28px; width: 100%; max-width: 380px;
}
.lc-icon { font-size: 72px; animation: pop 0.5s cubic-bezier(0.36,0.07,0.19,0.97); }
@keyframes pop { 0%{transform:scale(0)} 70%{transform:scale(1.2)} 100%{transform:scale(1)} }
.lc-title { color: #4CAF50; font-size: 32px; letter-spacing: 3px; text-shadow: 0 0 20px rgba(76,175,80,0.7); }
.lc-stats { display: flex; gap: 12px; width: 100%; }
.lc-stat {
  flex: 1; background: rgba(255,255,255,0.08); border-radius: 16px;
  padding: 14px 8px; text-align: center; border: 1px solid rgba(76,175,80,0.25);
}
.lc-stat-label { color: rgba(255,255,255,0.5); font-size: 11px; letter-spacing: 2px; margin-bottom: 6px; }
.lc-stat-value { color: white; font-size: 26px; font-weight: bold; }
.lc-bravo {
  font-size: 22px; font-weight: bold; color: #FFD700;
  text-shadow: 0 0 16px rgba(255,215,0,0.8);
  letter-spacing: 2px;
  animation: bravoIn 0.6s cubic-bezier(0.36,0.07,0.19,0.97) both;
}
@keyframes bravoIn {
  0% { transform: scale(0.5) translateY(20px); opacity: 0; }
  60% { transform: scale(1.15) translateY(-4px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.lc-biome {
  color: #80deea; font-size: 14px; font-weight: bold; letter-spacing: 2px;
  background: rgba(0,200,255,0.1); padding: 8px 20px; border-radius: 20px;
  border: 1px solid rgba(0,200,255,0.25);
}
.lc-ammo-shop {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,107,53,0.12); border: 1.5px solid rgba(255,107,53,0.35);
  border-radius: 18px; padding: 8px 16px; margin: 4px 0;
}
.lc-ammo-label { color: #FFD700; font-size: 15px; font-weight: 700; flex: 1; }
.lc-ammo-btn {
  background: linear-gradient(135deg,#FF6B35,#e64a19); color: #fff;
  border: none; border-radius: 14px; padding: 7px 16px;
  font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.lc-ammo-btn:active { transform: scale(0.93); }
.lc-ammo-count { color: #fff; font-size: 18px; font-weight: bold; min-width: 24px; text-align: center; }

/* ── SHOP ── */
#screen-shop { background: linear-gradient(180deg,#1a1a3e 0%,#16213e 100%); overflow-y: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; padding: 0; touch-action: pan-y; }
.shop-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; width: 100%; background: rgba(0,0,0,0.3);
  flex-shrink: 0; position: sticky; top: 0; z-index: 10;
}
.shop-header h1 { color: white; font-size: 20px; letter-spacing: 3px; }
.shop-coins { color: var(--coin); font-size: 18px; font-weight: bold; }
.btn-back { background: rgba(255,255,255,0.15); border: none; color: white; font-size: 20px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }

.shop-section { width: 100%; padding: 18px 18px 0; }
.shop-section h3 { color: rgba(255,255,255,0.6); font-size: 12px; letter-spacing: 3px; margin-bottom: 12px; }

.vehicles-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; padding-bottom: 10px; }
.vehicle-card {
  background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 14px 10px; text-align: center; cursor: pointer;
  transition: all .2s;
}
.vehicle-card.owned  { border-color: rgba(255,255,255,0.3); }
.vehicle-card.active { border-color: var(--accent); background: rgba(255,107,53,0.15); }
/* coin-locked: can buy but need more coins */
.vehicle-card.locked { opacity: 0.55; }
/* level-locked: not yet reachable */
.vehicle-card.level-locked {
  opacity: 0.35;
  filter: grayscale(80%);
  cursor: not-allowed;
  border-color: rgba(255,255,255,0.06);
}
.vehicle-card.level-locked:active { transform: none; }
.vehicle-card:active { transform: scale(0.95); }
.vc-icon  { font-size: 32px; margin-bottom: 6px; }
.vc-name  { color: white; font-size: 11px; font-weight: bold; letter-spacing: 1px; margin-bottom: 4px; }
.vc-cost  { color: var(--coin); font-size: 12px; }
.vc-badge { font-size: 10px; margin-top: 4px; }
/* level requirement badge */
.vc-lvl-req {
  color: #90A4AE; font-size: 12px; font-weight: bold;
  margin-top: 4px; letter-spacing: 1px;
}
.vc-perk  { color: rgba(255,255,255,0.55); font-size: 9px; line-height: 1.3; margin-bottom: 4px; padding: 3px 4px; background: rgba(255,255,255,0.06); border-radius: 4px; }

.upgrades-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 28px; }
.upgrade-row {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; cursor: pointer;
}
.upgrade-row:active { transform: scale(0.98); }
.up-icon { font-size: 28px; }
.up-info { flex: 1; }
.up-name { color: white; font-size: 15px; font-weight: bold; margin-bottom: 2px; }
.up-desc { color: rgba(255,255,255,0.5); font-size: 12px; }
.up-bar { height: 8px; background: rgba(255,255,255,0.1); border-radius: 50px; margin-top: 6px; overflow: hidden; }
.up-bar-fill { height: 100%; border-radius: 50px; background: linear-gradient(90deg,#FF6B35,#FFD700); transition: width .3s; }
.up-cost { color: var(--coin); font-size: 14px; font-weight: bold; white-space: nowrap; }
.up-maxed { color: #4CAF50; font-size: 12px; font-weight: bold; }

/* ── TRAIL SKINS ── */
.skins-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding-bottom: 12px; }
.skin-card {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 10px 6px 8px;
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; user-select: none;
  transition: transform .12s, border-color .15s;
}
.skin-card.skin-active { border-color: #FF6B35; background: rgba(255,107,53,0.13); }
.skin-card:active { transform: scale(0.93); }
.skin-emoji { font-size: 26px; line-height: 1.1; }
.skin-name  { font-size: 11px; font-weight: 700; color: #fff; text-align: center; margin: 3px 0 4px; letter-spacing: .5px; }
.skin-preview { display: flex; flex-wrap: wrap; justify-content: center; min-height: 14px; margin-bottom: 6px; }
.skin-btn { width: 100%; padding: 5px 0; border-radius: 20px; border: none; font-size: 10px; font-weight: 800; cursor: pointer; letter-spacing: .5px; }

@keyframes pulse { from{opacity:1;transform:scale(1)} to{opacity:0.7;transform:scale(1.05)} }

/* ── LEVEL SELECT ── */
#screen-levels {
  background: linear-gradient(180deg, #1a1a3e 0%, #16213e 100%);
  justify-content: flex-start;
  touch-action: pan-y;
}
.levels-scroll {
  width: 100%; overflow-y: auto; padding: 16px 16px 32px;
  flex: 1; touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.world-section {
  margin-bottom: 20px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.world-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--wc, rgba(255,255,255,0.08));
}
.world-emoji { font-size: 22px; }
.world-name  { color: #fff; font-size: 15px; font-weight: bold; letter-spacing: 2px; flex: 1; }
.world-range { color: rgba(255,255,255,0.5); font-size: 12px; }

.world-bubbles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 14px;
  background: rgba(0,0,0,0.25);
  align-items: end;
}

.lv-bubble {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: bold;
  border: 2px solid transparent;
  transition: transform 0.12s;
  cursor: pointer;
  position: relative;
  width: 100%;
}
.lv-bubble:active { transform: scale(0.88); }

/* Completed level */
.lv-bubble.done {
  background: rgba(76,175,80,0.25);
  border-color: #4CAF50;
  color: #81c784;
  flex-direction: column; gap: 1px;
}
.lv-pb {
  font-size: 7px; color: #FFD700; font-weight: bold;
  letter-spacing: 0; line-height: 1; opacity: 0.9;
}
/* Current level — glowing */
.lv-bubble.current {
  background: rgba(255,107,53,0.3);
  border-color: #FF6B35;
  color: #fff;
  box-shadow: 0 0 12px rgba(255,107,53,0.6);
  animation: pulse 1s infinite alternate;
  font-size: 13px;
}
/* Locked level */
.lv-bubble.locked {
  background: rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.25);
  cursor: default;
  flex-direction: column;
  gap: 0;
  font-size: 10px;
  position: relative;
  overflow: visible;
}
.lv-lock-icon { font-size: 18px; line-height: 1; }
.lv-lock-num  { font-size: 8px; color: rgba(255,255,255,0.35); line-height: 1; }

/* Chain links above/below locked bubbles */
.lv-bubble.locked::before,
.lv-bubble.locked::after {
  content: '⛓';
  position: absolute;
  font-size: 10px;
  opacity: 0.4;
  left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.lv-bubble.locked::before { top: -13px; }
.lv-bubble.locked::after  { bottom: -13px; }

/* Boss levels — special glow */
.lv-bubble.boss-level {
  border-color: #FF5722 !important;
  box-shadow: 0 0 10px rgba(255,87,34,0.5);
}
.lv-bubble.boss-level.done  { border-color: #FF5722 !important; }
.lv-bubble.boss-level.current { border-color: #FF5722 !important; box-shadow: 0 0 16px rgba(255,87,34,0.8), 0 0 30px rgba(255,87,34,0.4); }
.lv-boss-crown {
  position: absolute; top: -10px; right: -4px;
  font-size: 12px; pointer-events: none;
}
.lv-bubble-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 100%;
}
.lv-boss-tag {
  font-size: 9px; font-weight: bold; letter-spacing: 1px;
  color: #FF5722; text-shadow: 0 0 6px rgba(255,87,34,0.8);
  white-space: nowrap;
}

/* ── DAILY SPIN BUTTON ── */
.btn-spin {
  background: linear-gradient(135deg, #7C4DFF, #E040FB);
  color: white; border: 2px solid rgba(255,255,255,0.35); border-radius: 16px;
  font-size: 16px; font-weight: bold; letter-spacing: 1px;
  padding: 12px 28px; cursor: pointer; width: 100%; max-width: 320px;
  box-shadow: 0 5px 0 #4A148C, 0 8px 20px rgba(124,77,255,0.5);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: transform .1s, box-shadow .1s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative;
}
.btn-spin:active { transform: scale(0.96) translateY(3px); box-shadow: 0 2px 0 #4A148C; }
.btn-spin.spin-unavailable {
  background: linear-gradient(135deg, #37474f, #546e7a);
  box-shadow: 0 5px 0 #263238, 0 8px 20px rgba(0,0,0,0.3);
}
.spin-badge {
  background: #FF5722; color: white; border-radius: 50%;
  width: 20px; height: 20px; font-size: 12px; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  animation: pulse 0.8s infinite alternate;
}
.spin-countdown { font-size: 12px; opacity: 0.7; font-weight: normal; letter-spacing: 0; }

/* ── SPIN MODAL ── */
.spin-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.82); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.spin-box {
  background: linear-gradient(160deg, #1a0a3e, #0d1a3e);
  border: 2px solid rgba(180,100,255,0.35); border-radius: 28px;
  padding: 28px 20px 24px; max-width: 340px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  box-shadow: 0 0 60px rgba(124,77,255,0.3), 0 20px 60px rgba(0,0,0,0.7);
  position: relative;
}
.spin-close-x {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.1); border: none; color: rgba(255,255,255,0.7);
  width: 32px; height: 32px; border-radius: 50%; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.spin-title {
  color: white; font-size: 22px; font-weight: bold; letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(180,100,255,0.8);
}
.spin-wheel-wrap {
  position: relative; display: flex; flex-direction: column; align-items: center;
}
.spin-pointer {
  font-size: 24px; color: #FFD700;
  text-shadow: 0 0 12px rgba(255,215,0,0.8);
  line-height: 1; margin-bottom: -4px; z-index: 1;
  animation: none;
}
#spin-wheel {
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(124,77,255,0.5), 0 0 0 4px rgba(255,255,255,0.15);
  transform-origin: center center;
}
.spin-result {
  min-height: 54px; font-size: 24px; font-weight: bold; letter-spacing: 1px;
  text-shadow: 0 0 20px currentColor;
  text-align: center; line-height: 1.4;
  animation: spin-result-pop 0.4s ease-out;
}
@keyframes spin-result-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1);   opacity: 1; }
}
/* Extra ad spins row */
.spin-ad-slots {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px;
}
.spin-ad-label {
  color: rgba(255,255,255,0.45); font-size: 11px; letter-spacing: 2px;
}
.spin-ad-row {
  display: flex; gap: 8px; width: 100%;
}
.spin-ad-btn {
  flex: 1; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 10px;
  color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 600;
  padding: 8px 4px; cursor: pointer;
  transition: opacity .15s, background .15s;
}
.spin-ad-btn:not(:disabled):hover { background: rgba(255,255,255,0.14); }

/* ── BATTLE PASS ─────────────────────────── */
.btn-bp {
  background: linear-gradient(135deg, #7B1FA2, #4A148C);
  color: white; border: none; border-radius: 14px;
  font-size: 16px; font-weight: bold; letter-spacing: 1.5px;
  padding: 13px 28px; cursor: pointer; width: 100%; max-width: 320px;
  box-shadow: 0 4px 0 #2d0059, 0 6px 16px rgba(123,31,162,0.4);
  transition: transform .1s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-bp:active { transform: translateY(2px); box-shadow: 0 2px 0 #2d0059; }

.bp-screen-wrap {
  width: 100%; max-width: 420px; height: 100%;
  display: flex; flex-direction: column;
  background: linear-gradient(170deg, #0d0d22, #12103a);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 0 0 24px;
}
.bp-header-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.bp-back-btn {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: white; border-radius: 10px; padding: 6px 12px;
  font-size: 13px; font-weight: bold; cursor: pointer;
}
.bp-back-btn:active { background: rgba(255,255,255,0.2); }
.bp-header-title {
  color: #FFD700; font-size: 17px; font-weight: bold; letter-spacing: 2px;
}
.bp-header-coins {
  display: flex; align-items: center; gap: 4px;
  color: #FFD700; font-size: 14px; font-weight: bold;
}

.bp-xp-section {
  padding: 14px 16px 10px; flex-shrink: 0;
}
.bp-xp-text {
  color: rgba(255,255,255,0.7); font-size: 12px; letter-spacing: 0.5px;
  margin-bottom: 8px; text-align: center;
}
.bp-xp-track {
  width: 100%; height: 12px; border-radius: 6px;
  background: rgba(255,255,255,0.1); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.bp-xp-bar {
  height: 100%; border-radius: 6px; width: 0%;
  background: linear-gradient(90deg, #7B1FA2, #FFD700);
  transition: width 0.4s ease;
}

.bp-tiers-label, .bp-missions-label {
  color: rgba(255,255,255,0.55); font-size: 11px; font-weight: bold;
  letter-spacing: 1.5px; padding: 10px 16px 6px; flex-shrink: 0;
}
.bp-tiers-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 16px 8px; flex-shrink: 0;
}
.bp-tiers {
  display: flex; gap: 8px; width: max-content;
}
.bp-tier-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 10px 8px; min-width: 64px;
}
.bp-tier-card.bp-tier-earned { background: rgba(255,215,0,0.15); border-color: rgba(255,215,0,0.45); }
.bp-tier-card.bp-tier-next { background: rgba(123,31,162,0.25); border-color: rgba(200,100,255,0.5);
  box-shadow: 0 0 12px rgba(180,80,255,0.3); }
.bp-tier-card.bp-tier-done { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); opacity: 0.65; }
.bp-tier-num { color: rgba(255,255,255,0.45); font-size: 10px; font-weight: bold; }
.bp-tier-reward { color: #FFD700; font-size: 12px; font-weight: bold; white-space: nowrap; }
.bp-tier-check { color: #4CAF50; font-size: 16px; font-weight: bold; }
.bp-tier-lock { color: rgba(255,255,255,0.25); font-size: 14px; }
.bp-tier-claim-btn { font-size: 10px; padding: 4px 8px; }

.bp-claim-btn {
  background: linear-gradient(135deg, #FFD700, #FF8F00);
  color: #1a0a00; border: none; border-radius: 10px;
  font-size: 12px; font-weight: bold; padding: 5px 12px; cursor: pointer;
  letter-spacing: 0.5px;
}
.bp-claim-btn:active { transform: scale(0.95); }

.bp-missions { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.bp-mission-card {
  background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 14px;
}
.bp-mission-card.bp-mc-done { border-color: rgba(255,215,0,0.35); background: rgba(255,215,0,0.07); }
.bp-mc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.bp-mc-label { color: white; font-size: 14px; font-weight: bold; flex: 1; }
.bp-mc-rewards { color: #FFD700; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.bp-mc-bar-wrap {
  width: 100%; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.1); overflow: hidden; margin-bottom: 8px;
}
.bp-mc-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7B1FA2, #E040FB); transition: width 0.3s; }
.bp-mc-done .bp-mc-bar { background: linear-gradient(90deg, #388E3C, #66BB6A); }
.bp-mc-bot { display: flex; justify-content: space-between; align-items: center; }
.bp-mc-prog { color: rgba(255,255,255,0.5); font-size: 12px; }
.bp-mc-claimed { color: #66BB6A; font-size: 12px; font-weight: bold; }
.spin-ad-btn:active { transform: scale(0.96); }

/* ── HOW TO PLAY ── */
.btn-howto {
  background: linear-gradient(135deg, rgba(30,120,200,0.6), rgba(60,60,180,0.6));
  color: #fff; border: 1.5px solid rgba(100,180,255,0.55); border-radius: 12px;
  font-size: 14px; font-weight: bold; letter-spacing: 1px;
  padding: 10px 20px; cursor: pointer; width: 100%; max-width: 320px;
  transition: all 0.15s; display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 3px 0 rgba(0,0,80,0.5), 0 4px 12px rgba(0,80,200,0.3);
}
.btn-howto:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,80,0.5); }

/* Screen setup */
#screen-howto { align-items: stretch; justify-content: flex-start; }
.howto-wrap {
  width: 100%; max-width: 420px; height: 100vh; height: 100dvh;
  margin: 0 auto; display: flex; flex-direction: column;
  background: linear-gradient(170deg, #060618, #0c1528);
}
.howto-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0;
}
.howto-back-btn {
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  color: white; border-radius: 10px; padding: 7px 13px;
  font-size: 13px; font-weight: bold; cursor: pointer;
}
.howto-back-btn:active { background: rgba(255,255,255,0.22); }
.howto-title { color: #FFD700; font-size: 15px; font-weight: bold; letter-spacing: 2px; }

/* Scrollable body */
.howto-scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 14px 14px 24px; display: flex; flex-direction: column; gap: 14px;
}

/* Each section card */
.htp-sec {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px; padding: 14px;
}
.htp-sec-fire { background: rgba(255,80,0,0.07); border-color: rgba(255,100,0,0.30); }
.htp-sec-title {
  font-size: 13px; font-weight: bold; letter-spacing: 1.5px;
  border-left: 3px solid; padding-left: 8px; margin-bottom: 12px;
}

/* Controls layout */
.htp-ctrl-row { display: flex; gap: 12px; align-items: flex-start; }
.htp-phone-art {
  flex-shrink: 0; width: 64px; height: 100px;
  background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.18);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.htp-pa-body {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.htp-pa-plane { font-size: 24px; animation: htp-float 1.6s ease-in-out infinite alternate; }
.htp-pa-hint { color: rgba(255,255,255,0.4); font-size: 9px; text-align: center; line-height: 1.3; }
@keyframes htp-float { from { transform: translateY(-5px); } to { transform: translateY(5px); } }

/* Item rows */
.htp-items { display: flex; flex-direction: column; gap: 8px; }
.htp-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,255,255,0.04); border-radius: 10px; padding: 9px 10px;
  color: rgba(255,255,255,0.88); font-size: 13px; line-height: 1.4;
}
.htp-item-fire { background: rgba(255,100,0,0.10); border: 1px solid rgba(255,120,0,0.25); }
.htp-item-danger { background: rgba(220,50,50,0.08); border: 1px solid rgba(200,60,60,0.20); }
.htp-ico { font-size: 18px; flex-shrink: 0; margin-top: 0px; }

/* Pillar diagram */
.htp-pillar-diagram {
  display: flex; flex-direction: column; align-items: center;
  gap: 0; margin: 10px auto 14px; width: 100%; max-width: 320px;
}
.htp-pillar-top {
  width: 80px; min-height: 70px; background: linear-gradient(180deg, #4E342E, #3E2723);
  border-radius: 6px 6px 0 0; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 4px; position: relative;
}
.htp-crack-box {
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.5); border-radius: 20px; padding: 3px 8px;
}
.htp-crack-emoji {
  font-size: 22px; animation: htp-crack 0.7s ease-in-out infinite alternate;
}
@keyframes htp-crack {
  from { transform: scale(0.9); filter: brightness(0.85); }
  to   { transform: scale(1.2); filter: brightness(1.5) drop-shadow(0 0 8px #FF6600); }
}
.htp-crack-arrow {
  color: #FFD700; font-size: 10px; font-weight: bold; white-space: nowrap;
}
.htp-gap-zone {
  width: 100%; max-width: 320px; height: 54px;
  border: 2px dashed rgba(0,200,255,0.35);
  background: rgba(0,100,200,0.10);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: rgba(255,255,255,0.55); font-size: 12px;
}
.htp-pillar-bot {
  width: 80px; height: 50px; background: linear-gradient(180deg, #3E2723, #1a0e08);
  border-radius: 0 0 6px 6px;
}

/* Collectibles row */
.htp-collectibles {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 8px;
}
.htp-col-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.htp-col-icon {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
}
.htp-col-lbl { color: rgba(255,255,255,0.55); font-size: 9px; font-weight: bold; }

/* ── MISSION COMPLETE TOAST — slim top banner ── */
.mission-toast {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 600; pointer-events: none;
  background: rgba(6, 16, 30, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(80, 230, 120, 0.45);
  padding: 10px 16px 10px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 3px 24px rgba(0,0,0,0.4);
  animation: mt-slide-in 0.38s cubic-bezier(0.22,1,0.36,1) both;
}
.mt-check   { font-size: 20px; flex-shrink: 0; }
.mt-body    { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mt-title   { color: #55EE88; font-size: 10px; font-weight: bold; letter-spacing: 1.8px; line-height: 1; text-transform: uppercase; }
.mt-label   { color: #fff; font-size: 13px; font-weight: bold; line-height: 1.2; }
.mt-rewards { color: #FFD700; font-size: 11px; font-weight: bold; }
.mt-stars   { font-size: 16px; letter-spacing: 1px; flex-shrink: 0; }
@keyframes mt-slide-in {
  from { opacity:0; transform: translateY(-100%); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes mt-fade-out {
  from { opacity:1; transform: translateY(0); }
  to   { opacity:0; transform: translateY(-100%); }
}
