/* ============================================================
   Skyburst — premium casual mobile UI
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg0: #0b041c;
  --bg1: #16083a;
  --bg2: #2a1470;
  --pink: #ff4db8;
  --coral: #ff7a5c;
  --gold: #ffd24a;
  --lilac: #b794ff;
  --mint: #4dffc0;
  --sky: #5eb8ff;
  --text: #fff8ff;
  --muted: #c4b0e8;
  --card: linear-gradient(165deg, rgba(55,28,110,0.95), rgba(28,12,58,0.97));
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 22px;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
  -webkit-font-smoothing: antialiased;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 0 80px #7c3aed33;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding-top: var(--safe-t);
  padding-bottom: var(--safe-b);
}
.screen.active { display: flex; }

/* ---------- Living sky ---------- */
.sky-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, #5b2db8 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 15% 85%, #ff4db855 0%, transparent 55%),
    radial-gradient(ellipse 45% 30% at 95% 55%, #5eb8ff44 0%, transparent 50%),
    linear-gradient(180deg, #1c0a48 0%, #0b041c 70%, #080318 100%);
  overflow: hidden;
}
.sky-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle 3px at 12% 18%, #ffffffaa, transparent 4px),
    radial-gradient(circle 2px at 28% 42%, #ffffff88, transparent 3px),
    radial-gradient(circle 2.5px at 72% 12%, #ffffff99, transparent 4px),
    radial-gradient(circle 1.5px at 88% 38%, #ffffff77, transparent 3px),
    radial-gradient(circle 2px at 48% 68%, #ffffff66, transparent 3px),
    radial-gradient(circle 2.5px at 18% 78%, #ffffff88, transparent 4px),
    radial-gradient(circle 1.5px at 62% 28%, #ffffff55, transparent 3px),
    radial-gradient(circle 2px at 40% 12%, #ffffff77, transparent 3px);
  animation: driftStars 12s linear infinite;
}
.sky-bg::after {
  content: "";
  position: absolute;
  width: 180%;
  height: 60%;
  left: -40%;
  bottom: -10%;
  background:
    radial-gradient(ellipse 40% 50% at 30% 60%, #ff4db822, transparent),
    radial-gradient(ellipse 35% 45% at 70% 50%, #7c5cff28, transparent);
  animation: cloudDrift 18s ease-in-out infinite alternate;
  filter: blur(40px);
}
@keyframes driftStars {
  from { transform: translateY(0); }
  to { transform: translateY(-30px); }
}
@keyframes cloudDrift {
  from { transform: translateX(-4%) translateY(0); }
  to { transform: translateX(4%) translateY(-8px); }
}

/* Floating decorative balloons on home */
.home-content::before,
.home-content::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.5px);
}
.home-content::before {
  width: 56px; height: 68px;
  left: 8%; top: 18%;
  background: radial-gradient(circle at 35% 30%, #fff8, #ff4db8 45%, #c2186a 100%);
  box-shadow: inset -8px -10px 16px #0004, 0 12px 24px #ff4db844;
  animation: floatB 5s ease-in-out infinite;
  border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
}
.home-content::after {
  width: 40px; height: 48px;
  right: 10%; top: 28%;
  background: radial-gradient(circle at 35% 30%, #fff8, #5eb8ff 45%, #2670c0 100%);
  box-shadow: inset -6px -8px 14px #0004, 0 10px 20px #5eb8ff44;
  animation: floatB 6.5s ease-in-out infinite 0.8s;
  border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
}
@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}

/* ---------- Home ---------- */
.home-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  gap: 10px;
}
.logo {
  font-size: clamp(2.8rem, 13vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow:
    0 2px 0 #5a1a80,
    0 6px 0 #3a1060,
    0 10px 40px #ff4db866,
    0 0 80px #7c5cff55;
  position: relative;
  z-index: 1;
}
.logo span {
  background: linear-gradient(135deg, #ff4db8 10%, #ffd24a 55%, #ff7a5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #5a1a80);
}
.tagline {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.hub-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0 4px;
  position: relative;
  z-index: 1;
}
.stat-pill {
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 16px #0004, inset 0 1px 0 #fff3;
  backdrop-filter: blur(12px);
}
.life-timer {
  color: var(--lilac);
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 1.2em;
  position: relative;
  z-index: 1;
}
.home-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

/* ---------- Buttons — candy glossy ---------- */
.btn {
  border: none;
  border-radius: 18px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.12s cubic-bezier(.2,.9,.3,1.2), box-shadow 0.15s, filter 0.15s;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  top: 6%;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff6, transparent);
  pointer-events: none;
}
.btn:active { transform: scale(0.94); }
.btn-play {
  background: linear-gradient(180deg, #ff8ad4 0%, #ff4db8 40%, #e02090 100%);
  color: #fff;
  font-size: 1.35rem;
  padding: 18px 64px;
  border-radius: 28px;
  box-shadow:
    0 6px 0 #a01068,
    0 12px 32px #ff4db866,
    inset 0 2px 0 #ffc0e8;
  margin-top: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px #a0106888;
}
.btn-play:active { box-shadow: 0 2px 0 #a01068, 0 6px 16px #ff4db844; transform: translateY(4px) scale(0.98); }
.btn-primary {
  background: linear-gradient(180deg, #a88cff 0%, #7c5cff 45%, #5a3ce0 100%);
  color: #fff;
  box-shadow: 0 5px 0 #3a2090, 0 10px 28px #7c5cff55, inset 0 2px 0 #d0c0ff88;
  text-shadow: 0 1px 2px #30188088;
}
.btn-primary:active { box-shadow: 0 2px 0 #3a2090, 0 4px 12px #7c5cff44; transform: translateY(3px); }
.btn-secondary {
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.25);
  padding: 12px 20px;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px #0003, inset 0 1px 0 #fff3;
}
.btn-buy {
  background: linear-gradient(180deg, #ffe07a 0%, #ffd24a 40%, #f0a820 100%);
  color: #3a2200;
  padding: 11px 18px;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 4px 0 #c08010, 0 8px 20px #ffd24a44, inset 0 1px 0 #fff8;
  text-shadow: 0 1px 0 #fff6;
}
.btn-buy:active { box-shadow: 0 1px 0 #c08010; transform: translateY(3px); }
.btn-icon {
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  width: 42px;
  height: 42px;
  font-size: 1.05rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px #0004, inset 0 1px 0 #fff3;
  flex-shrink: 0;
}

/* ---------- Panels ---------- */
.panel {
  position: relative;
  z-index: 1;
  margin: auto 16px;
  background: var(--card);
  border: 1.5px solid rgba(255,200,255,0.18);
  border-radius: 28px;
  padding: 28px 22px;
  max-width: 400px;
  width: calc(100% - 32px);
  box-shadow:
    0 24px 64px #000a,
    0 0 0 1px #fff1 inset,
    0 -1px 0 #ff4db822 inset;
  backdrop-filter: blur(20px);
}
.panel::before {
  content: "";
  position: absolute;
  left: 12%; right: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff6, transparent);
}
.panel h2 {
  font-size: 1.55rem;
  font-weight: 900;
  margin-bottom: 14px;
  text-align: center;
  background: linear-gradient(135deg, #fff, #ffc0e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.howto-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.howto-list li {
  padding: 12px 14px 12px 44px;
  position: relative;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}
.howto-list li::before {
  content: "🎈";
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 1.15rem;
}
.howto-list strong { color: var(--gold); font-weight: 800; }
.panel .btn { width: 100%; margin-top: 6px; }
.shop-item .btn-buy {
  width: auto;
  margin-top: 0;
  min-width: 76px;
  z-index: 1;
  position: relative;
}

/* ---------- Shop — real IAP feel ---------- */
.shop-panel { max-height: 90%; overflow-y: auto; }
.shop-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 16px;
  line-height: 1.35;
}
.shop-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1.5px solid rgba(255,210,100,0.25);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px #0004, inset 0 1px 0 #fff2;
  position: relative;
  overflow: hidden;
}
.shop-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, #fff2, transparent);
  pointer-events: none;
}
.shop-item[data-pack="lives"] {
  border-color: rgba(255,77,184,0.35);
}
.shop-item[data-pack="power"] {
  border-color: rgba(126,92,255,0.4);
}
.shop-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  background: linear-gradient(180deg, #fff3, #0002);
  box-shadow: inset 0 2px 6px #fff3, 0 4px 12px #0004;
  border: 1px solid #fff2;
}
.shop-item[data-pack="lives"] .shop-icon {
  background: linear-gradient(160deg, #ff8ad4, #e02090);
}
.shop-item[data-pack="power"] .shop-icon {
  background: linear-gradient(160deg, #a88cff, #5a3ce0);
}
.shop-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.shop-info h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 2px; }
.shop-info p { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }
.price {
  display: inline-block;
  margin-top: 6px;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--gold);
  text-shadow: 0 1px 4px #0006;
}
.shop-status {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mint);
  min-height: 1.4em;
  margin: 6px 0 4px;
}

/* ---------- Game screen ---------- */
#screen-game {
  background:
    radial-gradient(ellipse 100% 45% at 50% -8%, #4a2088 0%, transparent 50%),
    radial-gradient(ellipse 60% 30% at 80% 100%, #ff4db820 0%, transparent 50%),
    linear-gradient(180deg, #1a0a42 0%, #0b041c 100%);
}

.hud {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 4px;
  flex-shrink: 0;
}
.hud-center {
  flex: 1;
  text-align: center;
  min-width: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 8px 14px 10px;
  box-shadow: 0 4px 16px #0004, inset 0 1px 0 #fff3;
}
.hud-level {
  font-size: 0.68rem;
  color: var(--lilac);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hud-score {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px #0006;
}
.hud-target { color: var(--muted); font-weight: 700; font-size: 0.85rem; }
.progress-bar {
  height: 8px;
  background: rgba(0,0,0,0.35);
  border-radius: 99px;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 2px 4px #0006;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff4db8, #ffd24a, #4dffc0);
  background-size: 200% 100%;
  border-radius: 99px;
  transition: width 0.3s cubic-bezier(.2,.8,.3,1);
  box-shadow: 0 0 12px #ffd24a88;
  animation: shimmer 2.5s linear infinite;
}
@keyframes shimmer {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}
.hud-moves {
  background: linear-gradient(180deg, #ff8ad4, #e02090);
  border-radius: 16px;
  padding: 8px 14px;
  text-align: center;
  min-width: 52px;
  box-shadow: 0 4px 0 #a01068, 0 8px 20px #ff4db855, inset 0 1px 0 #ffc0e8;
  border: 1px solid #ffc0e855;
}
.hud-moves span {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 1px 2px #a0106888;
}
.hud-moves small {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

/* ---------- Power-ups ---------- */
.powerups {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 8px 12px 6px;
  flex-shrink: 0;
}
.pwr {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 2px solid rgba(255,255,255,0.28);
  background: linear-gradient(160deg, rgba(255,255,255,0.2), rgba(80,40,160,0.5));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s;
  box-shadow: 0 4px 14px #0005, inset 0 2px 0 #fff3;
}
.pwr::after {
  content: "";
  position: absolute;
  left: 15%; right: 15%;
  top: 8%;
  height: 35%;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff5, transparent);
  pointer-events: none;
}
.pwr:active { transform: scale(0.9); }
.pwr:disabled { opacity: 0.32; cursor: default; filter: grayscale(0.4); }
.pwr-icon { font-size: 1.45rem; filter: drop-shadow(0 2px 3px #0006); position: relative; z-index: 1; }
.pwr-count {
  position: absolute;
  top: -7px;
  right: -7px;
  background: linear-gradient(180deg, #ffe07a, #f0a820);
  color: #3a2200;
  font-size: 0.72rem;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #1a0a42;
  box-shadow: 0 2px 6px #0006;
  z-index: 2;
}
.pwr.active-mode {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #ffd24a55, 0 4px 20px #ffd24a66, inset 0 2px 0 #fff4;
}

/* ---------- Board ---------- */
#board-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 4px 10px 12px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #1e0a4a88, transparent),
    linear-gradient(180deg, rgba(20,8,50,0.5), rgba(5,2,20,0.65));
  border: 2px solid rgba(255,200,255,0.12);
  box-shadow:
    inset 0 0 40px #7c5cff22,
    0 8px 32px #0006,
    inset 0 1px 0 #fff1;
  touch-action: none;
}
#board {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
#fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.score-pop {
  position: absolute;
  font-weight: 900;
  font-size: 1.25rem;
  color: #fff;
  text-shadow: 0 2px 0 #0008, 0 0 12px #ffd24a, 0 4px 16px #000a;
  pointer-events: none;
  animation: scoreFloat 0.85s cubic-bezier(.2,.8,.3,1) forwards;
  z-index: 10;
  letter-spacing: -0.02em;
}
@keyframes scoreFloat {
  0% { opacity: 1; transform: translate(-50%, 0) scale(0.6); }
  25% { transform: translate(-50%, -16px) scale(1.25); }
  100% { opacity: 0; transform: translate(-50%, -56px) scale(1); }
}

/* ---------- Overlay ---------- */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 2, 20, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 20px;
  backdrop-filter: blur(8px);
}
.overlay.hidden { display: none; }
.overlay-card {
  background: var(--card);
  border: 1.5px solid rgba(255,200,255,0.2);
  border-radius: 28px;
  padding: 32px 26px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 28px 72px #000c, inset 0 1px 0 #fff2;
  animation: cardIn 0.35s cubic-bezier(.2,.9,.3,1.15);
  position: relative;
  overflow: hidden;
}
.overlay-card::before {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff5, transparent);
}
@keyframes cardIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.overlay-card h2 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.overlay-card h2.win {
  background: linear-gradient(135deg, #ffd24a, #ff8ad4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px #ffd24a66);
}
.overlay-card h2.lose { color: #ff6b8a; }
.overlay-card p {
  white-space: pre-line;
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 500;
}
.overlay-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.overlay-actions .btn { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- HUD mute cluster ---------- */
.hud-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-mute {
  font-size: 1.05rem;
}
.btn-mute.is-muted {
  opacity: 0.65;
  filter: grayscale(0.35);
}

/* ---------- Callout layer (Candy Crush juice) ---------- */
#callout-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.juice-callout {
  position: absolute;
  font-family: "Avenir Next", "Segoe UI Black", "Arial Black", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 12vw, 3.6rem);
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff6a8 0%, #ffd24a 28%, #ff8ad4 62%, #ff4db8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(90, 20, 80, 0.35);
  filter:
    drop-shadow(0 3px 0 #5a1060)
    drop-shadow(0 6px 0 #3a0840)
    drop-shadow(0 10px 18px #ff4db888)
    drop-shadow(0 0 28px #ffd24a66);
  transform: rotate(var(--tilt, -4deg)) scale(0.2);
  opacity: 0;
  animation: calloutSlam 1.15s cubic-bezier(.15,1.4,.35,1) forwards;
  z-index: 16;
  pointer-events: none;
}
.juice-callout--mega {
  font-size: clamp(2.8rem, 14vw, 4.2rem);
  filter:
    drop-shadow(0 4px 0 #5a1060)
    drop-shadow(0 8px 0 #3a0840)
    drop-shadow(0 12px 24px #ffd24aaa)
    drop-shadow(0 0 40px #ff4db8aa);
}
.juice-callout--combo {
  font-size: clamp(1.35rem, 6vw, 1.9rem);
  top: 18%;
  background: linear-gradient(180deg, #fff 0%, #b8e4ff 40%, #5eb8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 2px 0 #104080)
    drop-shadow(0 4px 0 #082850)
    drop-shadow(0 6px 14px #5eb8ff88);
  animation: calloutCombo 0.85s cubic-bezier(.2,1.3,.3,1) forwards;
}
@keyframes calloutSlam {
  0%   { opacity: 0; transform: rotate(var(--tilt, -4deg)) scale(0.15) translateY(30px); }
  18%  { opacity: 1; transform: rotate(calc(var(--tilt, -4deg) * -1)) scale(1.28) translateY(0); }
  32%  { transform: rotate(var(--tilt, -4deg)) scale(0.92); }
  48%  { transform: rotate(calc(var(--tilt, -4deg) * 0.4)) scale(1.08); }
  70%  { opacity: 1; transform: rotate(var(--tilt, -4deg)) scale(1); }
  100% { opacity: 0; transform: rotate(var(--tilt, -4deg)) scale(1.05) translateY(-18px); }
}
@keyframes calloutCombo {
  0%   { opacity: 0; transform: rotate(var(--tilt, 3deg)) scale(0.4) translateY(12px); }
  25%  { opacity: 1; transform: rotate(calc(var(--tilt, 3deg) * -1)) scale(1.2); }
  55%  { opacity: 1; transform: rotate(var(--tilt, 3deg)) scale(1); }
  100% { opacity: 0; transform: translateY(-24px) scale(0.95); }
}

/* ---------- Win overlay celebration ---------- */
.overlay-card--win {
  border-color: rgba(255, 210, 74, 0.45);
  box-shadow:
    0 28px 72px #000c,
    0 0 48px #ffd24a44,
    inset 0 1px 0 #fff3;
  animation: cardIn 0.4s cubic-bezier(.2,.9,.3,1.2), winPulse 1.8s ease-in-out infinite 0.4s;
}
@keyframes winPulse {
  0%, 100% { box-shadow: 0 28px 72px #000c, 0 0 36px #ffd24a33, inset 0 1px 0 #fff3; }
  50% { box-shadow: 0 28px 72px #000c, 0 0 64px #ff4db866, inset 0 1px 0 #fff3; }
}
.overlay-card h2.win {
  font-size: clamp(2rem, 9vw, 2.6rem);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff6a8, #ffd24a 40%, #ff8ad4 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 3px 0 #5a106088)
    drop-shadow(0 8px 20px #ffd24a66);
  animation: winTitlePop 0.55s cubic-bezier(.2,1.4,.3,1);
}
@keyframes winTitlePop {
  0% { transform: scale(0.5) rotate(-6deg); opacity: 0; }
  60% { transform: scale(1.12) rotate(2deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.overlay-rating {
  display: none;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  margin: -2px 0 10px;
  text-transform: uppercase;
}
.overlay-rating.show {
  display: block;
  animation: calloutSlam 0.9s cubic-bezier(.15,1.3,.35,1) both;
}
.overlay-rating.rating-perfect {
  background: linear-gradient(90deg, #ffd24a, #fff, #ff4db8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px #ffd24a88);
}
.overlay-rating.rating-super {
  color: #5eb8ff;
  text-shadow: 0 2px 0 #104080, 0 0 16px #5eb8ff88;
}
.overlay-rating.rating-sweet {
  color: #ff8ad4;
  text-shadow: 0 2px 0 #801050, 0 0 14px #ff4db888;
}
.overlay-rating.rating-cleared {
  color: var(--lilac);
}

/* ========== V3: Mascot Pip (balloon dog) ========== */
.mascot-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4px;
  height: 110px;
}
.mascot-name {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-top: 4px;
  opacity: 0.9;
  text-shadow: 0 1px 4px #0008;
}
.balloon-dog {
  position: relative;
  width: 88px;
  height: 78px;
  transform-origin: 50% 70%;
}
.balloon-dog.idle { animation: pipBob 2.8s ease-in-out infinite; }
.balloon-dog.happy { animation: pipHappy 0.7s cubic-bezier(.2,1.4,.3,1); }
.balloon-dog.react { animation: pipReact 0.55s cubic-bezier(.2,1.5,.3,1); }
.balloon-dog.fly { animation: none; }
@keyframes pipBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}
@keyframes pipHappy {
  0% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.18) rotate(-12deg); }
  55% { transform: scale(1.1) rotate(14deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes pipReact {
  0% { transform: scale(1) rotate(0); }
  40% { transform: scale(1.22) rotate(18deg); }
  100% { transform: scale(1) rotate(0); }
}
.bd-head, .bd-body, .bd-ear, .bd-leg, .bd-tail, .bd-snout {
  position: absolute;
  border-radius: 50%;
  box-shadow: inset -4px -5px 10px #0004, 0 4px 10px #ff4db844;
}
.bd-head {
  width: 42px; height: 40px;
  left: 22px; top: 2px;
  background: radial-gradient(circle at 32% 28%, #ffe0f0, #ff6ec7 42%, #c01870 100%);
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  z-index: 3;
}
.bd-shine {
  position: absolute;
  width: 12px; height: 9px;
  left: 8px; top: 7px;
  background: radial-gradient(circle, #fff, transparent 70%);
  border-radius: 50%;
  opacity: 0.9;
  pointer-events: none;
}
.bd-shine-body {
  left: 10px; top: 8px;
  width: 14px; height: 10px;
}
.bd-snout {
  width: 16px; height: 12px;
  left: 13px; top: 22px;
  background: radial-gradient(circle at 40% 30%, #fff8, #ff9ad4 50%, #d04090);
  box-shadow: inset -2px -2px 4px #0003;
  z-index: 4;
}
.bd-snout::after {
  content: "";
  position: absolute;
  width: 6px; height: 4px;
  left: 5px; top: 3px;
  background: #4a1840;
  border-radius: 50%;
}
.bd-eye {
  position: absolute;
  width: 7px; height: 8px;
  background: #2a1040;
  border-radius: 50%;
  top: 14px;
  z-index: 4;
  box-shadow: 1px 1px 0 #fff6;
}
.bd-eye-l { left: 10px; }
.bd-eye-r { right: 10px; left: auto; }
.bd-ear {
  width: 18px; height: 28px;
  top: -2px;
  background: radial-gradient(circle at 40% 25%, #ffc0e8, #ff4db8 50%, #a01068);
  border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
  z-index: 2;
}
.bd-ear-l { left: 10px; transform: rotate(-28deg); }
.bd-ear-r { right: 10px; left: auto; transform: rotate(28deg); }
.bd-body {
  width: 48px; height: 36px;
  left: 20px; top: 32px;
  background: radial-gradient(circle at 35% 30%, #ffe8f4, #ff5ec0 45%, #b01868 100%);
  border-radius: 50% 50% 48% 48% / 60% 60% 40% 40%;
  z-index: 2;
}
.bd-leg {
  width: 12px; height: 16px;
  background: radial-gradient(circle at 35% 25%, #ffd0e8, #ff4db8 55%, #a01860);
  z-index: 1;
}
.bd-leg-fl { left: 24px; top: 58px; }
.bd-leg-fr { left: 38px; top: 58px; }
.bd-leg-bl { left: 48px; top: 54px; }
.bd-leg-br { left: 58px; top: 54px; }
.bd-tail {
  width: 22px; height: 14px;
  right: -2px; top: 36px;
  background: radial-gradient(circle at 30% 40%, #ffc0e8, #ff4db8 60%, #901060);
  border-radius: 50%;
  transform: rotate(25deg);
  z-index: 1;
  animation: tailWag 1.4s ease-in-out infinite;
}
@keyframes tailWag {
  0%, 100% { transform: rotate(18deg); }
  50% { transform: rotate(42deg); }
}
.bd-string {
  position: absolute;
  left: 43px; top: 72px;
  width: 2px; height: 18px;
  background: linear-gradient(#fff6, transparent);
  border-radius: 2px;
}
.overlay-mascot {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
  height: 72px;
}
.overlay-mascot .balloon-dog { transform: scale(0.85); }
.overlay-mascot[hidden] { display: none !important; }

.home-audio-row {
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.btn-chip {
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--muted);
  padding: 8px 16px;
  font-size: 0.78rem;
  border-radius: 999px;
  box-shadow: 0 3px 10px #0003;
}
.btn-chip.is-off { opacity: 0.55; filter: grayscale(0.4); }
.btn-music.is-off { opacity: 0.55; filter: grayscale(0.5); }

/* ========== Gallery ========== */
.gallery-panel { max-height: 92%; overflow-y: auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.gal-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  border: 1.5px solid rgba(255,200,255,0.2);
  border-radius: 18px;
  padding: 14px 10px 12px;
  text-align: center;
  min-height: 132px;
  box-shadow: 0 6px 18px #0004, inset 0 1px 0 #fff2;
  overflow: hidden;
}
.gal-card.locked {
  filter: grayscale(0.85) brightness(0.55);
  border-color: rgba(255,255,255,0.1);
}
.gal-card.locked::after {
  content: "🔒";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(10,4,30,0.35);
  border-radius: 18px;
}
.gal-art {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  position: relative;
}
.gal-card h3 {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 2px;
}
.gal-card .gal-req {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}
.gal-card.unlocked .gal-req { color: var(--mint); }

/* Glossy balloon sculptures (CSS art) */
.art-dog, .art-sword, .art-ship, .art-heart, .art-star, .art-crown, .art-rocket, .art-flower {
  width: 100%; height: 100%;
  position: relative;
  margin: 0 auto;
}
.balloon-blob {
  position: absolute;
  border-radius: 50%;
  box-shadow: inset -3px -4px 8px #0004, 0 3px 8px #0003;
}
.balloon-blob::after {
  content: "";
  position: absolute;
  width: 28%; height: 22%;
  left: 18%; top: 16%;
  background: radial-gradient(circle, #fff, transparent 70%);
  border-radius: 50%;
  opacity: 0.85;
}

/* Dog mini (gallery) */
.art-dog .d-head {
  width: 34px; height: 32px; left: 19px; top: 4px;
  background: radial-gradient(circle at 35% 30%, #ffe0f0, #ff6ec7 45%, #c01870);
}
.art-dog .d-body {
  width: 38px; height: 28px; left: 17px; top: 28px;
  background: radial-gradient(circle at 35% 30%, #ffe8f4, #ff5ec0 45%, #b01868);
}
.art-dog .d-ear-l, .art-dog .d-ear-r {
  width: 14px; height: 22px; top: 0;
  background: radial-gradient(circle at 40% 25%, #ffc0e8, #ff4db8);
}
.art-dog .d-ear-l { left: 10px; transform: rotate(-25deg); }
.art-dog .d-ear-r { right: 10px; left: auto; transform: rotate(25deg); }
.art-dog .d-leg {
  width: 10px; height: 14px; top: 50px;
  background: radial-gradient(circle at 35% 25%, #ffd0e8, #ff4db8);
}
.art-dog .d-leg:nth-child(5) { left: 20px; }
.art-dog .d-leg:nth-child(6) { left: 32px; }
.art-dog .d-leg:nth-child(7) { left: 42px; }
.art-dog .d-tail {
  width: 16px; height: 10px; right: 4px; top: 30px;
  background: radial-gradient(circle at 30% 40%, #ffc0e8, #ff4db8);
  transform: rotate(20deg);
}

/* Sword */
.art-sword .sw-blade {
  width: 14px; height: 44px; left: 29px; top: 4px;
  border-radius: 6px 6px 4px 4px;
  background: radial-gradient(ellipse at 40% 20%, #e8f4ff, #7ec8ff 40%, #2a78c0);
  box-shadow: inset -2px -3px 6px #0003, 0 2px 8px #5eb8ff44;
}
.art-sword .sw-blade::after {
  content: ""; position: absolute; left: 3px; top: 6px; width: 4px; height: 28px;
  background: linear-gradient(#fff9, transparent); border-radius: 2px;
}
.art-sword .sw-guard {
  width: 36px; height: 12px; left: 18px; top: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #ffe9a0, #ffc020 50%, #c07800);
  box-shadow: inset -2px -2px 5px #0004;
}
.art-sword .sw-hilt {
  width: 12px; height: 18px; left: 30px; top: 50px;
  border-radius: 4px;
  background: radial-gradient(circle at 40% 20%, #ffb3d9, #ff4db8 50%, #c01870);
}

/* Ship */
.art-ship .sh-hull {
  width: 56px; height: 22px; left: 8px; top: 42px;
  border-radius: 40% 40% 50% 50% / 30% 30% 70% 70%;
  background: radial-gradient(circle at 40% 20%, #ffc8b0, #ff7040 45%, #c03818);
  box-shadow: inset -3px -4px 8px #0004;
}
.art-ship .sh-sail {
  width: 28px; height: 36px; left: 22px; top: 6px;
  border-radius: 10% 60% 40% 50%;
  background: radial-gradient(circle at 35% 25%, #b8e4ff, #3db4ff 50%, #1878c0);
  box-shadow: inset -3px -3px 8px #0003;
}
.art-ship .sh-sail::after {
  content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 14px;
  background: radial-gradient(circle, #fff8, transparent 70%); border-radius: 50%;
}
.art-ship .sh-mast {
  width: 4px; height: 40px; left: 34px; top: 8px;
  background: linear-gradient(#ffe9a0, #c07800);
  border-radius: 2px;
}

/* Heart */
.art-heart .h-l, .art-heart .h-r {
  width: 30px; height: 30px; top: 12px;
  background: radial-gradient(circle at 35% 30%, #ffb3d9, #ff4db8 50%, #c01870);
  box-shadow: inset -3px -3px 8px #0003;
}
.art-heart .h-l { left: 10px; border-radius: 50%; }
.art-heart .h-r { left: 32px; border-radius: 50%; }
.art-heart .h-b {
  width: 42px; height: 36px; left: 15px; top: 28px;
  border-radius: 0 0 50% 50%;
  background: radial-gradient(circle at 40% 20%, #ff8ad4, #ff4db8 40%, #a01068);
  transform: rotate(0deg);
  clip-path: polygon(50% 100%, 0 20%, 100% 20%);
  box-shadow: none;
}
.art-heart .h-b {
  clip-path: none;
  border-radius: 4px;
  transform: rotate(45deg) scale(0.85);
  top: 26px; left: 18px; width: 36px; height: 36px;
}

/* Star */
.art-star .st-core {
  width: 36px; height: 36px; left: 18px; top: 18px;
  background: radial-gradient(circle at 35% 30%, #ffe9a0, #ffc020 45%, #c07800);
  border-radius: 50%;
  box-shadow: 0 0 16px #ffd24a88, inset -3px -3px 8px #0003;
}
.art-star .st-pt {
  position: absolute;
  width: 16px; height: 28px;
  background: radial-gradient(circle at 40% 20%, #fff0b0, #ffc020 50%, #c07800);
  border-radius: 50% 50% 20% 20%;
  left: 28px; top: 2px;
  transform-origin: 50% 100%;
  box-shadow: inset -2px -2px 5px #0003;
}
.art-star .st-pt:nth-child(2) { transform: rotate(72deg); }
.art-star .st-pt:nth-child(3) { transform: rotate(144deg); }
.art-star .st-pt:nth-child(4) { transform: rotate(216deg); }
.art-star .st-pt:nth-child(5) { transform: rotate(288deg); }

/* Crown */
.art-crown .cr-base {
  width: 52px; height: 20px; left: 10px; top: 42px;
  border-radius: 6px 6px 12px 12px;
  background: radial-gradient(circle at 40% 20%, #ffe9a0, #ffc020 50%, #c07800);
  box-shadow: inset -2px -3px 6px #0004;
}
.art-crown .cr-pt {
  width: 16px; height: 28px; top: 18px;
  border-radius: 50% 50% 30% 30%;
  background: radial-gradient(circle at 40% 25%, #ffe9a0, #ffc020 45%, #a06000);
  box-shadow: inset -2px -2px 5px #0003;
}
.art-crown .cr-pt:nth-child(2) { left: 10px; }
.art-crown .cr-pt:nth-child(3) { left: 28px; height: 36px; top: 10px; background: radial-gradient(circle at 40% 25%, #ffb3d9, #ff4db8 50%, #c01870); }
.art-crown .cr-pt:nth-child(4) { left: 46px; }
.art-crown .cr-gem {
  width: 10px; height: 10px; left: 31px; top: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b8ffe8, #2eefb0 50%, #0a9870);
  box-shadow: 0 0 8px #2eefb088;
}

/* Rocket */
.art-rocket .rk-body {
  width: 28px; height: 44px; left: 22px; top: 8px;
  border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 25%, #d8c0ff, #8b5cff 45%, #4a28c0);
  box-shadow: inset -3px -4px 8px #0004, 0 4px 12px #8b5cff44;
}
.art-rocket .rk-body::after {
  content: ""; position: absolute; left: 6px; top: 8px; width: 10px; height: 14px;
  background: radial-gradient(circle, #fff8, transparent 70%); border-radius: 50%;
}
.art-rocket .rk-win {
  width: 12px; height: 12px; left: 30px; top: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b8e4ff, #3db4ff 50%, #1878c0);
  box-shadow: inset -1px -1px 3px #0004, 0 0 6px #3db4ff66;
}
.art-rocket .rk-fin {
  width: 14px; height: 18px; top: 40px;
  background: radial-gradient(circle at 40% 30%, #ffb3d9, #ff4db8 50%, #c01870);
  border-radius: 40%;
}
.art-rocket .rk-fin:nth-child(3) { left: 10px; transform: rotate(-25deg); }
.art-rocket .rk-fin:nth-child(4) { left: 48px; transform: rotate(25deg); }
.art-rocket .rk-flame {
  width: 14px; height: 16px; left: 29px; top: 50px;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 50% 20%, #fff6a8, #ffc020 40%, #ff7040);
  animation: flameFlicker 0.4s ease-in-out infinite alternate;
}
@keyframes flameFlicker {
  from { transform: scaleY(1); opacity: 1; }
  to { transform: scaleY(1.15); opacity: 0.85; }
}

/* Flower */
.art-flower .fl-petal {
  width: 22px; height: 22px; top: 18px; left: 25px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb3d9, #ff4db8 50%, #c01870);
  box-shadow: inset -2px -2px 5px #0003;
  transform-origin: 50% 50%;
}
.art-flower .fl-petal:nth-child(1) { transform: translate(0, -14px); }
.art-flower .fl-petal:nth-child(2) { transform: translate(12px, -4px); background: radial-gradient(circle at 35% 30%, #d8c0ff, #8b5cff 50%, #4a28c0); }
.art-flower .fl-petal:nth-child(3) { transform: translate(8px, 12px); background: radial-gradient(circle at 35% 30%, #b8e4ff, #3db4ff 50%, #1878c0); }
.art-flower .fl-petal:nth-child(4) { transform: translate(-8px, 12px); background: radial-gradient(circle at 35% 30%, #ffe9a0, #ffc020 50%, #c07800); }
.art-flower .fl-petal:nth-child(5) { transform: translate(-12px, -4px); background: radial-gradient(circle at 35% 30%, #b8ffe8, #2eefb0 50%, #0a9870); }
.art-flower .fl-center {
  width: 16px; height: 16px; left: 28px; top: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6a8, #ffc020 50%, #c07800);
  box-shadow: 0 0 10px #ffd24a88, inset -1px -1px 3px #0003;
  z-index: 2;
}

/* ========== Shop coin balance ========== */
.shop-balance {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
  text-shadow: 0 2px 8px #0006;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(255,210,74,0.15), rgba(255,210,74,0.05));
  border: 1.5px solid rgba(255,210,74,0.35);
  border-radius: 999px;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}
.shop-stripe-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.75;
  margin: 4px 0 2px;
  font-weight: 600;
}
.shop-status.need-coins {
  color: #ff8aa8;
}
.shop-status.ok-buy {
  color: var(--mint);
}
.coin-price { color: var(--gold) !important; }

/* ========== Stage transition ========== */
.stage-transition {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: auto;
  overflow: hidden;
}
.stage-transition.hidden { display: none; }
.st-wipe {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 40%, #5b2db8cc, transparent 60%),
    linear-gradient(180deg, #2a1470ee, #0b041cee);
  animation: wipeIn 0.45s ease-out;
}
@keyframes wipeIn {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.st-mascot-fly {
  position: absolute;
  top: 28%;
  left: -100px;
  z-index: 2;
  animation: mascotFly 1.2s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes mascotFly {
  0% { left: -100px; transform: translateY(0) rotate(-10deg); }
  40% { transform: translateY(-20px) rotate(8deg); }
  100% { left: calc(100% + 20px); transform: translateY(10px) rotate(-5deg); }
}
.st-title {
  position: relative;
  z-index: 3;
  font-size: clamp(2.4rem, 12vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff6a8, #ffd24a 40%, #ff8ad4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 3px 0 #5a1060)
    drop-shadow(0 8px 20px #ffd24a88);
  animation: levelSlam 0.7s cubic-bezier(.15,1.5,.35,1) 0.15s both;
}
@keyframes levelSlam {
  0% { opacity: 0; transform: scale(2.4) rotate(-8deg); }
  55% { opacity: 1; transform: scale(0.92) rotate(3deg); }
  75% { transform: scale(1.08) rotate(-1deg); }
  100% { transform: scale(1) rotate(0); }
}
.st-peek {
  position: relative;
  z-index: 3;
  margin-top: 18px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.st-peek .gal-art { transform: scale(0.75); animation: peekPop 0.5s cubic-bezier(.2,1.4,.3,1) 0.4s both; }
@keyframes peekPop {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(0.75); }
}
.st-skip {
  position: absolute;
  bottom: calc(24px + var(--safe-b));
  z-index: 3;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ========== Unlock toast ========== */
.unlock-toast {
  position: absolute;
  top: calc(16px + var(--safe-t));
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(55,28,110,0.97), rgba(28,12,58,0.98));
  border: 1.5px solid rgba(255,210,74,0.5);
  border-radius: 18px;
  padding: 10px 16px;
  box-shadow: 0 12px 40px #000a, 0 0 24px #ffd24a44;
  animation: toastIn 0.45s cubic-bezier(.2,1.2,.3,1);
  max-width: calc(100% - 32px);
}
.unlock-toast.hidden { display: none; }
.unlock-toast strong {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.unlock-toast span {
  font-weight: 800;
  font-size: 1rem;
}
.unlock-toast-art {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.unlock-toast-art .gal-art { transform: scale(0.65); transform-origin: center; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.9); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.home-actions { flex-wrap: wrap; justify-content: center; }
