*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #00e676;
  --sky: #50beff;
  --pink: #ff6ed2;
  --gold: #ffd54f;
  --bg1: #2c1548;
  --bg2: #3c2e81;
  --bg3: #2e57a4;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(123,82,200,0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(74,20,140,0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 70%, rgba(46,87,164,0.3) 0%, transparent 55%),
    linear-gradient(180deg, #221040 0%, #140830 55%, #0d0221 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: #fff;
  display: flex;
  justify-content: center;
}

.app { width: 100%; max-width: 520px; padding: 16px 18px 40px; }

/* ---------- header ---------- */
.topbar { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 4px; }
.brand { font-size: 22px; font-weight: 900; }
.hud { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; width: 100%; }
.nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 7px 4px; border-radius: 12px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer; transition: all 0.2s; color: #fff; font-family: inherit;
}
.nav-btn:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.nav-btn .icon { font-size: 18px; line-height: 1.1; }
.nav-btn .value { font-size: 13px; font-weight: 900; line-height: 1.1; }
.nav-btn .label {
  font-size: 8.5px; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 800;
}
#streakChip { background: linear-gradient(135deg, rgba(255,140,0,.4), rgba(220,40,40,.3)); }
#coinChip { background: linear-gradient(135deg, rgba(255,213,79,.28), rgba(255,152,0,.22)); }
.hud-badge { position: relative; }
.hud-badge .tooltip {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.92); color: #fff; padding: 8px 12px;
  border-radius: 8px; font-size: 12px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  z-index: 1000; width: 160px; white-space: normal; text-align: center;
  text-transform: none; letter-spacing: 0;
}
.hud-badge:hover .tooltip { opacity: 1; }
.flame { display: inline-block; animation: flame-flicker 1.4s ease-in-out infinite; }
@keyframes flame-flicker {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50% { transform: scale(1.12) rotate(3deg); }
}

/* ---------- hero ---------- */
.hero { text-align: center; margin: 16px 0 12px; }
.hero h1 { font-size: clamp(26px, 6vw, 34px); font-weight: 900; }
.tagline { margin-top: 8px; color: rgba(255,255,255,0.82); font-size: 15px; line-height: 1.45; }

/* ---------- timer card ---------- */
.timer-card, .card {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 28px;
  padding: 20px 18px 16px;
  text-align: center;
  margin-bottom: 20px;
}

.buddy-name-row { display: flex; justify-content: center; align-items: center; gap: 6px; margin-bottom: 8px; }
.buddy-name { font-weight: 900; font-size: 17px; }
.rename-btn { background: none; border: none; cursor: pointer; font-size: 14px; opacity: 0.7; }
.rename-btn:hover { opacity: 1; }

.xpbar-wrap { margin-bottom: 8px; }
.xpbar { height: 12px; border-radius: 999px; background: rgba(255,255,255,0.18); overflow: hidden; }
.xpfill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green), #7dffb8);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 10px rgba(0,230,118,0.55);
}
.xpbar.pulse .xpfill { animation: xp-pulse 0.6s ease; }
@keyframes xp-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.6); }
}
.xplabel { margin-top: 5px; font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.8); }

.quest { font-size: 12.5px; font-weight: 800; color: rgba(255,255,255,0.75); margin-bottom: 10px; }
.quest.done { color: var(--green); }

.ring-wrap {
  position: relative; width: min(76vw, 320px); margin: 0 auto;
  border-radius: 50%;
  box-shadow:
    0 0 30px rgba(0,230,118,0.35),
    0 0 70px rgba(0,230,118,0.15),
    inset 0 0 30px rgba(0,230,118,0.08);
}
.ring { width: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 10; }
.ring-fg {
  fill: none; stroke: var(--green); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 565.5; stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s linear, stroke 0.4s;
  filter: drop-shadow(0 0 8px rgba(0,230,118,0.5));
}
.buddy-holder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
}
.buddy-stack { position: relative; width: 52%; }
.buddy-stack img#buddyImg {
  width: 100%; height: auto; border-radius: 18%;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.35));
}
.buddy-stack.idle img#buddyImg { animation: buddy-idle 3s ease-in-out infinite; }
@keyframes buddy-idle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.buddy-stack.celebrate img#buddyImg { animation: buddy-celebrate 0.8s ease 2; }
@keyframes buddy-celebrate {
  0% { transform: scale(1); }
  30% { transform: scale(1.2) translateY(-20px); }
  60% { transform: scale(0.92) translateY(0); }
  100% { transform: scale(1); }
}
.cosmetic { position: absolute; pointer-events: none; }
/* Hat: left = the head's center-x (set per stage by JS along with top/width).
   translateX(-54.5%) — not -50% — because the hat art sits right of its canvas center. */
.cosmetic.hat {
  top: -2%; left: 50%; width: 44%;
  transform: translateX(-54.5%) rotate(-5deg);
  z-index: 10;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.6));
}
.cosmetic.sparkles { width: 60%; top: -8%; right: -22%; }

/* rainbow aura: spinning conic ring + color-cycling glow + rising particles */
.aura-ring {
  position: absolute; inset: -13%;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    #ff5252, #ff9800, #ffe14f, #4dd45f, #2196f3, #b04df3, #ff5252);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  animation: aura-spin 7s linear infinite;
  pointer-events: none; z-index: 5;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.35));
}
@keyframes aura-spin { to { transform: rotate(360deg); } }
.ring-wrap.rainbow-glow { animation: rainbow-glow 9s linear infinite; }
@keyframes rainbow-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(255,82,82,0.4), 0 0 70px rgba(255,82,82,0.18); }
  17%      { box-shadow: 0 0 30px rgba(255,152,0,0.4), 0 0 70px rgba(255,152,0,0.18); }
  33%      { box-shadow: 0 0 30px rgba(255,225,79,0.4), 0 0 70px rgba(255,225,79,0.18); }
  50%      { box-shadow: 0 0 30px rgba(77,212,95,0.4), 0 0 70px rgba(77,212,95,0.18); }
  67%      { box-shadow: 0 0 30px rgba(33,150,243,0.4), 0 0 70px rgba(33,150,243,0.18); }
  83%      { box-shadow: 0 0 30px rgba(176,77,243,0.4), 0 0 70px rgba(176,77,243,0.18); }
}
.aura-particles { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: visible; }
.aura-particle {
  position: absolute; bottom: -4%; border-radius: 50%;
  animation: aura-rise linear infinite; opacity: 0;
}
@keyframes aura-rise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  15%  { opacity: 0.9; }
  100% { transform: translateY(-160px) scale(0.35); opacity: 0; }
}
/* shop preview swatch for the rainbow aura */
.rainbow-preview {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: conic-gradient(from 0deg,
    #ff5252, #ff9800, #ffe14f, #4dd45f, #2196f3, #b04df3, #ff5252);
  box-shadow: 0 0 10px rgba(255,255,255,0.35);
  animation: aura-spin 7s linear infinite;
}

.time {
  font-size: clamp(36px, 11vw, 52px); font-weight: 900; font-variant-numeric: tabular-nums;
  letter-spacing: 3px;
  text-shadow: 0 0 26px rgba(255,255,255,0.45), 0 4px 8px rgba(0,0,0,0.5);
}
.phase { font-size: 14px; font-weight: 800; color: rgba(255,255,255,0.75); }

.coin-float-host { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.coin-float {
  position: absolute; left: 50%; top: 38%; transform: translateX(-50%);
  font-size: 20px; font-weight: 900; color: var(--gold);
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  animation: coin-float 1.4s ease-out forwards;
}
@keyframes coin-float {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-70px); }
}

.controls { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; }
.btn {
  border: none; border-radius: 16px;
  color: #fff; font-size: 15px; font-weight: 900; padding: 13px 18px;
  cursor: pointer; transition: transform 0.1s, box-shadow 0.1s; font-family: inherit;
  letter-spacing: 0.5px;
}
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.green {
  background: linear-gradient(180deg, #7BE87A 0%, #4CAF50 40%, #2E7D32 100%);
  box-shadow: 0 6px 0 #1B5E20, 0 8px 20px rgba(76,175,80,0.5),
              inset 0 1px 0 rgba(255,255,255,0.35);
  font-size: 18px; padding: 16px 30px; border-radius: 18px;
  text-transform: uppercase; letter-spacing: 1px;
}
.btn.green:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 #1B5E20, 0 2px 8px rgba(76,175,80,0.3);
}
.btn.blue {
  background: linear-gradient(180deg, #6ec2ff 0%, #3fa7f5 40%, #1565C0 100%);
  box-shadow: 0 5px 0 #0D47A1, 0 6px 14px rgba(63,167,245,0.4),
              inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn.blue:active { transform: translateY(4px); box-shadow: 0 1px 0 #0D47A1; }
.btn.purple {
  background: linear-gradient(180deg, #c39bf5 0%, #a56bf0 40%, #6A1B9A 100%);
  box-shadow: 0 5px 0 #4A148C, 0 6px 14px rgba(165,107,240,0.4),
              inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn.purple:active { transform: translateY(4px); box-shadow: 0 1px 0 #4A148C; }
.btn.small { font-size: 14px; padding: 9px 16px; }

.durations {
  margin-top: 14px; display: flex; justify-content: center; gap: 18px;
  font-size: 14px; font-weight: 800; color: rgba(255,255,255,0.85);
}
.durations select {
  margin-left: 6px; background: rgba(0,0,0,0.5); color: #fff;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 10px; padding: 5px 8px;
  font-size: 14px; font-weight: 800; font-family: inherit;
}
.longbreak-note { margin-top: 8px; font-size: 11.5px; color: rgba(255,255,255,0.55); }
.today { margin-top: 10px; font-size: 14.5px; color: rgba(255,255,255,0.85); }

/* ---------- cards ---------- */
.card h2 { font-size: 21px; font-weight: 900; margin-bottom: 6px; }
.card-sub { font-size: 13.5px; color: rgba(255,255,255,0.75); margin-bottom: 12px; line-height: 1.4; }

/* achievements */
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 10px; }
.badge { text-align: center; }
.badge img { width: 74px; height: 74px; transition: transform 0.3s, filter 0.5s; }
.badge.locked img { filter: grayscale(1) brightness(0.55); opacity: 0.6; }
.badge .b-name { font-size: 11px; font-weight: 800; margin-top: 3px; }
.badge .b-desc { font-size: 9.5px; color: rgba(255,255,255,0.65); }
.badge.locked .b-name { color: rgba(255,255,255,0.55); }
.badge.just-unlocked img { animation: badge-pop 0.7s cubic-bezier(.22,1.6,.36,1); }
@keyframes badge-pop {
  0% { transform: scale(0.4) rotate(-10deg); }
  70% { transform: scale(1.15) rotate(3deg); }
  100% { transform: scale(1); }
}

/* garden */
.garden { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; font-size: 21px; }
.garden span { animation: flower-in 0.5s ease both; }
@keyframes flower-in {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* shop */
.shop { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.shop-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.08); border-radius: 16px; padding: 10px 12px;
}
.shop-row img { width: 44px; height: 44px; object-fit: contain; transition: transform 0.25s; }
.shop-row:hover img { transform: scale(1.18) rotate(-4deg); }
.shop-info { flex: 1; }
.shop-info .s-name { font-weight: 900; font-size: 14.5px; }
.shop-info .s-desc { font-size: 11.5px; color: rgba(255,255,255,0.7); }
.shop-btn {
  border: 2px solid rgba(255,255,255,0.85); border-radius: 999px;
  font-weight: 900; font-size: 13px; padding: 7px 14px; cursor: pointer;
  font-family: inherit; color: #fff; background: rgba(255,255,255,0.15);
}
.shop-btn.buy { background: linear-gradient(135deg, rgba(255,213,79,.85), rgba(255,152,0,.75)); color: #4a2e00; }
.shop-btn.buy:disabled { opacity: 0.45; cursor: default; }
.shop-btn.equipped { background: var(--green); color: #063; }

.fullgarden-upsell {
  margin-top: 14px; padding: 14px; border-radius: 18px; text-align: center;
  background: rgba(0,230,118,0.10); border: 1.5px solid rgba(0,230,118,0.5);
  font-size: 13px;
}
.fullgarden-upsell p { margin: 6px 0 10px; color: rgba(255,255,255,0.8); }

/* teaser */
.teaser-card {
  border: 1.5px solid rgba(0,230,118,0.55);
  box-shadow: 0 0 24px rgba(0,230,118,0.18), inset 0 0 30px rgba(0,230,118,0.05);
}
.teaser-list { list-style: none; text-align: left; margin: 0 auto 12px; max-width: 320px; font-size: 13.5px; line-height: 1.9; font-weight: 700; }
.safety-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 12px 0;
}
.safety-badge {
  background: rgba(123,193,68,0.15);
  border: 1px solid rgba(123,193,68,0.4);
  color: rgba(255,255,255,0.85);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.waitlist { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.waitlist[hidden], .waitlist-note[hidden], .waitlist-count[hidden] { display: none; }
.waitlist input {
  flex: 1; min-width: 180px; max-width: 260px;
  background: rgba(0,0,0,0.45); color: #fff; font-family: inherit; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.4); border-radius: 999px; padding: 10px 16px; font-size: 14px;
}
.waitlist-note { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,0.65); }
.waitlist-count { margin-top: 6px; font-size: 12px; font-weight: 800; color: rgba(0,230,118,0.85); }
.waitlist-success {
  margin: 6px auto 0; max-width: 320px; padding: 16px;
  background: rgba(0,230,118,0.12); border: 1.5px solid rgba(0,230,118,0.6);
  border-radius: 18px; font-size: 15px;
  animation: levelup-in 0.45s cubic-bezier(.22,1.6,.36,1);
}
.waitlist-success[hidden] { display: none; }
.waitlist-success .ws-emoji { font-size: 32px; animation: ws-lift 1.6s ease-in-out infinite alternate; }
@keyframes ws-lift {
  from { transform: translateY(2px); }
  to { transform: translateY(-4px); }
}
.waitlist-success p { margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,0.8); }

/* ---------- CTA / footer ---------- */
.cta { text-align: center; margin-top: 8px; }
.cta h2 { font-size: 22px; font-weight: 900; }
.cta p { margin-top: 8px; color: rgba(255,255,255,0.82); font-size: 15px; line-height: 1.45; }
.store-badge {
  display: inline-block; margin-top: 14px; padding: 14px 26px;
  background: #000; color: #fff; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 14px; font-weight: 900; font-size: 16px;
}
.store-badge.small { padding: 10px 18px; font-size: 14px; margin-top: 4px; }
.hint { font-size: 13px !important; color: rgba(255,255,255,0.6) !important; margin-top: 12px; }

footer { margin-top: 30px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.55); }
footer a { color: rgba(255,255,255,0.8); }

/* ---------- confetti / toast / level up ---------- */
.confetti-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 60; }
.confetti-piece {
  position: absolute; top: -20px; width: 10px; height: 6px; border-radius: 2px;
  animation: fallDown 1.7s ease-in forwards;
}
@keyframes fallDown {
  to { transform: translateY(105vh) rotate(540deg); opacity: 0.85; }
}

.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,0.82); color: #fff; font-weight: 800; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid rgba(0,230,118,0.6);
  opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none;
  max-width: 90vw; text-align: center; z-index: 70;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.levelup-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10, 5, 30, 0.72);
  display: flex; align-items: center; justify-content: center;
}
.levelup-overlay[hidden] { display: none; }
.levelup-card {
  text-align: center; padding: 30px 40px; border-radius: 30px;
  background: rgba(0,0,0,0.72); border: 2px solid rgba(255,213,79,0.8);
  animation: levelup-in 0.45s cubic-bezier(.22,1.6,.36,1);
}
@keyframes levelup-in {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.levelup-title {
  font-size: 40px; font-weight: 900; color: var(--gold);
  text-shadow: 0 3px 8px rgba(0,0,0,0.5);
  animation: levelup-bounce 1s ease-in-out infinite alternate;
}
@keyframes levelup-bounce {
  from { transform: scale(0.97); }
  to { transform: scale(1.05); }
}
.levelup-card img { border-radius: 20%; margin: 14px 0 10px; animation: buddy-celebrate 0.9s ease infinite; }
.levelup-sub { font-size: 17px; font-weight: 900; }

@media (prefers-reduced-motion: reduce) {
  .buddy-stack.idle img#buddyImg, .flame, .levelup-title, .levelup-card img { animation: none; }
}

/* ---------- admin / test mode ---------- */
.admin-badge {
  position: fixed; top: 12px; left: 12px; z-index: 9998;
  background: #FF6B35; color: #fff; font-weight: 900; font-size: 11px;
  padding: 5px 10px; border-radius: 999px; letter-spacing: 0.5px;
}
.admin-panel {
  position: fixed; bottom: 80px; right: 16px;
  background: rgba(0,0,0,0.9); border: 2px solid #FF6B35;
  border-radius: 16px; padding: 16px; z-index: 9999;
  min-width: 240px; max-width: 270px; font-size: 13px; color: #fff;
}
.admin-panel h3 { color: #FF6B35; margin-bottom: 12px; font-size: 14px; }
.admin-btn {
  width: 100%; padding: 8px 12px; margin: 4px 0; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1);
  color: #fff; cursor: pointer; font-size: 12px; text-align: left; font-family: inherit;
}
.admin-btn:hover { background: rgba(255,107,53,0.3); border-color: #FF6B35; }
.admin-speed-btns { display: flex; gap: 6px; margin: 8px 0; }
.admin-speed-btn {
  flex: 1; padding: 6px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1);
  color: #fff; cursor: pointer; font-size: 11px; text-align: center; font-family: inherit;
}
.admin-speed-btn.active { background: #FF6B35; border-color: #FF6B35; }
.admin-toast {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%);
  background: #FF6B35; color: #fff; padding: 8px 20px; border-radius: 20px;
  font-weight: 800; font-size: 14px; z-index: 99999;
  animation: fade-toast 2s ease forwards;
}
@keyframes fade-toast {
  0% { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  12%, 80% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; }
}

/* stage showcase */
.stage-showcase {
  position: fixed; inset: 0; z-index: 9997; background: rgba(10,5,30,0.85);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.stage-showcase-card {
  background: rgba(20,12,50,0.98); border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 24px; padding: 20px; max-width: 420px; width: 100%; text-align: center;
}
.stage-showcase-card h3 { font-size: 20px; font-weight: 900; margin-bottom: 14px; }
.stages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stage-card {
  aspect-ratio: 0.85; background: rgba(255,255,255,0.08); border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px; cursor: pointer; transition: all 0.2s ease; border: 2px solid transparent;
}
.stage-card.current {
  border-color: #7BC144; background: rgba(123,193,68,0.15);
  box-shadow: 0 0 20px rgba(123,193,68,0.3);
}
.stage-card:hover { transform: scale(1.05); border-color: rgba(255,255,255,0.3); }
.stage-card img { width: 72px; height: 72px; object-fit: contain; }
.stage-name { font-size: 12.5px; font-weight: 800; margin-top: 6px; }
.stage-label { font-size: 10.5px; color: rgba(255,255,255,0.6); }
.stage-hint { margin-top: 12px; font-size: 11px; color: rgba(255,255,255,0.55); }

/* admin waitlist viewer */
.wl-list { max-height: 300px; overflow-y: auto; text-align: left; margin-top: 8px; }
.wl-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700;
}
.wl-row:nth-child(odd) { background: rgba(255,255,255,0.06); }
.wl-row .wl-date { color: rgba(255,255,255,0.55); font-size: 11px; flex: none; margin-left: auto; }
.wl-del {
  flex: none; background: none; border: none; cursor: pointer;
  font-size: 13px; padding: 2px 4px; border-radius: 6px; opacity: 0.65;
}
.wl-del:hover { opacity: 1; background: rgba(255,82,82,0.25); }
.wl-del:disabled { opacity: 0.3; cursor: default; }

/* level-up screen shake */
body.shake { animation: screen-shake 0.5s ease; }
@keyframes screen-shake {
  0%, 100% { transform: translate(0,0); }
  20% { transform: translate(-6px, 2px); }
  40% { transform: translate(5px, -3px); }
  60% { transform: translate(-4px, 3px); }
  80% { transform: translate(3px, -2px); }
}

/* flower sway */
.garden span { display: inline-block; animation: flower-in 0.5s ease both, flower-sway 3.4s ease-in-out infinite; }
@keyframes flower-sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

/* ---------- how-to-play + tour + particles (v7) ---------- */
.how-to-play-btn {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3); color: #fff;
  font-size: 14px; font-weight: 900; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-family: inherit;
}
.how-to-play-btn:hover { background: rgba(255,255,255,0.3); }
.timer-card { position: relative; }

.howto-overlay {
  position: fixed; inset: 0; z-index: 9000; background: rgba(10,5,30,0.8);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.howto-overlay[hidden] { display: none; }
.howto-card {
  background: rgba(24,14,56,0.98); border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 24px; padding: 24px; max-width: 360px; width: 100%; text-align: center;
  animation: levelup-in 0.35s cubic-bezier(.22,1.6,.36,1);
}
.howto-card h3 { font-size: 21px; font-weight: 900; margin-bottom: 12px; }
.howto-list { text-align: left; margin: 0 auto 12px; padding-left: 6px; list-style: none; font-size: 14px; line-height: 2; font-weight: 700; }
.howto-evo { font-size: 12.5px; color: rgba(255,255,255,0.75); margin-bottom: 16px; line-height: 1.6; }

/* onboarding tour: fixed-size card so dots + NEXT never move between slides */
.tour-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(10,5,30,0.75);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.tour-overlay[hidden] { display: none; }
.tour-card {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 300px; height: 240px;
  background: rgba(20,12,50,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.3); border-radius: 24px;
  padding: 22px 20px 18px; text-align: center;
  display: flex; flex-direction: column;
  animation: tour-in 0.35s cubic-bezier(.22,1.6,.36,1);
}
@keyframes tour-in {
  from { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.tour-close {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.8);
  font-size: 12px; font-weight: 900; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
}
.tour-close:hover { background: rgba(255,255,255,0.25); color: #fff; }
.tour-top {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.tour-bottom { flex: none; }
.tour-emoji { font-size: 40px; line-height: 1; }
.tour-text { font-size: 14.5px; font-weight: 800; line-height: 1.45; }
.tour-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 12px; }
.tour-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.tour-dots span.on { background: var(--green); }

.float-particle {
  position: fixed; bottom: -10px; border-radius: 50%;
  pointer-events: none; z-index: 0;
  animation: float-particle linear infinite;
}
@keyframes float-particle {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-105vh) translateX(var(--driftX, 0px)); opacity: 0; }
}
