:root {
  --night: #0a0c24;
  --royal: #23296b;
  --violet: #7b5cff;
  --lime: #d8ff3e;
  --cyan: #36e0ff;
  --moon: #f2f4ff;
  --gold: #ffd15a;
  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --ui: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --st: env(safe-area-inset-top, 0px);
  --sr: env(safe-area-inset-right, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --sl: env(safe-area-inset-left, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: var(--night); color: var(--moon);
  font-family: var(--ui); overscroll-behavior: none; user-select: none; -webkit-user-select: none;
  touch-action: none; -webkit-touch-callout: none;
}
[hidden] { display: none !important; }

#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; }
#vig {
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(125% 95% at 50% 55%, transparent 55%, rgba(5, 6, 22, 0.62) 100%),
    linear-gradient(180deg, rgba(10, 12, 36, 0.55) 0%, rgba(10, 12, 36, 0) 18%);
}
#haze {
  position: fixed; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(140% 100% at 50% 60%, rgba(123, 92, 255, 0.05), rgba(74, 60, 154, 0.45));
  transition: opacity 1.2s ease;
}
#heatVig {
  position: fixed; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(110% 85% at 50% 50%, transparent 50%, rgba(60, 30, 140, 0.75) 100%);
}
#engulf {
  position: fixed; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(90% 80% at 50% 50%, rgba(216, 255, 62, 0.2), rgba(150, 200, 30, 0.85));
  mix-blend-mode: screen;
}
#flash { position: fixed; inset: 0; pointer-events: none; background: var(--lime); opacity: 0; mix-blend-mode: screen; }

/* ------------------------------------------------------------ buttons */
button { font-family: var(--ui); cursor: pointer; border: 0; }
.primary {
  display: block; min-width: 230px; height: 60px; padding: 0 40px; border-radius: 999px;
  background: linear-gradient(180deg, #ecff8a 0%, var(--lime) 55%, #b9e021 100%);
  color: var(--night); font-size: 22px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(236, 255, 138, 0.5), 0 10px 36px rgba(216, 255, 62, 0.28), 0 0 80px rgba(216, 255, 62, 0.22);
  transition: transform 140ms ease-out, box-shadow 160ms ease-out;
}
.primary:active { transform: scale(0.96); }
.primary:focus-visible, .ghost:focus-visible, .icon-btn:focus-visible, .toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (hover: hover) { .primary:hover { box-shadow: 0 0 0 1px rgba(236, 255, 138, 0.7), 0 12px 44px rgba(216, 255, 62, 0.38), 0 0 100px rgba(216, 255, 62, 0.3); } }
.ghost {
  display: block; min-width: 150px; height: 46px; padding: 0 22px; border-radius: 999px;
  background: rgba(35, 41, 107, 0.45); color: var(--moon); font-size: 16px; font-weight: 700; letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(242, 244, 255, 0.28);
  transition: transform 140ms ease-out, background 160ms ease-out;
}
.ghost:active { transform: scale(0.96); }
@media (hover: hover) { .ghost:hover { background: rgba(123, 92, 255, 0.3); } }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(10, 12, 36, 0.55); color: var(--moon);
  box-shadow: inset 0 0 0 1px rgba(242, 244, 255, 0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 120ms ease-out, background 160ms; pointer-events: auto;
}
.icon-btn:active { transform: scale(0.9); }
.icon-btn .slash { opacity: 0; }
.icon-btn.muted .slash { opacity: 1; }
.icon-btn.muted .wave { opacity: 0; }
kbd.key-hint {
  display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 5px; font: 700 11px var(--ui);
  color: var(--night); background: rgba(242, 244, 255, 0.7); vertical-align: 2px;
}
@media (pointer: coarse) { kbd.key-hint { display: none; } }

/* ------------------------------------------------------------ HUD */
#hud { position: fixed; inset: 0; pointer-events: none; animation: fadeIn 400ms ease-out; }
#topbar {
  position: absolute; left: 0; right: 0; top: 0;
  padding: calc(var(--st) + 10px) calc(var(--sr) + 12px) 0 calc(var(--sl) + 12px);
  display: flex; justify-content: space-between; align-items: flex-start;
}
#scoreBox { text-align: center; line-height: 1; margin-top: -2px; }
#scoreNum {
  font-family: var(--display); font-size: 52px; color: var(--moon); letter-spacing: 0.02em;
  text-shadow: 0 0 22px rgba(216, 255, 62, 0.45), 0 3px 0 rgba(10, 12, 36, 0.7);
  font-variant-numeric: tabular-nums; transform-origin: 50% 70%;
}
#scoreNum.pop { animation: pop 320ms cubic-bezier(.2, 1.7, .4, 1); }
#scoreLabel { font-size: 11px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(216, 255, 62, 0.85); margin-top: 2px; }
#combo {
  position: absolute; left: 50%; top: calc(var(--st) + 82px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; border-radius: 999px;
  background: rgba(10, 12, 36, 0.55); box-shadow: inset 0 0 0 1px rgba(216, 255, 62, 0.35);
  font-weight: 900; font-size: 15px; color: var(--lime); transition: opacity 200ms, transform 200ms;
}
#combo.off { opacity: 0; transform: translateX(-50%) scale(0.9); }
#combo.bump { animation: bump 260ms ease-out; }
#combo .cbar { width: 70px; height: 6px; border-radius: 3px; background: rgba(216, 255, 62, 0.18); overflow: hidden; }
#combo .cbar i { display: block; height: 100%; width: 0%; background: var(--lime); box-shadow: 0 0 8px var(--lime); border-radius: 3px; }
#comboNum { font-size: 12px; font-weight: 700; color: rgba(242, 244, 255, 0.75); min-width: 26px; }
#palmRow {
  position: absolute; left: 50%; top: calc(var(--st) + 116px); transform: translateX(-50%);
  display: flex; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgba(10, 12, 36, 0.4);
}
.palm-ico { position: relative; width: 24px; height: 30px; transition: transform 200ms; }
.palm-ico svg { position: absolute; inset: 0 0 4px 0; width: 24px; height: 26px; }
.palm-ico .hp { position: absolute; left: 3px; right: 3px; bottom: 0; height: 3px; border-radius: 2px; background: rgba(54, 224, 255, 0.18); overflow: hidden; }
.palm-ico .hp i { display: block; height: 100%; background: var(--cyan); width: 100%; transition: width 200ms; }
.palm-ico.eating { animation: shiver 180ms linear infinite; }
.palm-ico.eating .hp i { background: var(--lime); }
.palm-ico.dead { opacity: 0.32; }
.palm-ico.dead .fr { opacity: 0; }
.palm-ico.lost { animation: lost 700ms ease-out; }
#powerPill {
  position: absolute; left: 50%; top: calc(var(--st) + 156px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 14px 7px; border-radius: 14px;
  background: rgba(255, 209, 90, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 209, 90, 0.6), 0 0 24px rgba(255, 209, 90, 0.25);
  color: var(--gold); font-weight: 900; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  animation: popIn 300ms cubic-bezier(.2, 1.6, .4, 1);
}
#powerPill .pbar { width: 110px; height: 4px; border-radius: 2px; background: rgba(255, 209, 90, 0.2); overflow: hidden; }
#powerPill .pbar i { display: block; height: 100%; width: 100%; background: var(--gold); }
#radio {
  position: absolute; left: calc(var(--sl) + 12px); top: calc(var(--st) + 204px); max-width: min(340px, 78vw);
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px 10px 9px; border-radius: 16px 16px 16px 4px;
  background: rgba(10, 12, 36, 0.72); box-shadow: inset 0 0 0 1px rgba(123, 92, 255, 0.5), 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: radioIn 260ms cubic-bezier(.2, 1.4, .4, 1);
}
#radio.out { animation: radioOut 260ms ease-in forwards; }
.radio-av { flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(123, 92, 255, 0.6); animation: talk 160ms ease-in-out infinite alternate; }
.radio-who { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #b9a8ff; }
.radio-who span { color: rgba(242, 244, 255, 0.45); font-weight: 600; letter-spacing: 0.06em; }
#radioText { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--moon); margin-top: 2px; }
#banner {
  position: absolute; left: 0; right: 0; top: 34%; text-align: center; pointer-events: none;
  animation: banner 2.4s ease-out forwards;
}
#bannerKick { font-size: 12px; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cyan); }
#bannerTitle { font-family: var(--display); font-size: clamp(46px, 12vw, 88px); line-height: 1; color: var(--moon); text-transform: uppercase; letter-spacing: 0.02em; text-shadow: 0 0 30px rgba(123, 92, 255, 0.8), 0 4px 0 rgba(10, 12, 36, 0.6); }
#bannerSub { font-size: 16px; font-weight: 600; color: rgba(242, 244, 255, 0.85); margin-top: 6px; }
#kudos { position: absolute; left: 0; right: 0; top: 37%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kudo {
  font-family: var(--display); font-size: 34px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lime);
  text-shadow: 0 0 18px rgba(216, 255, 62, 0.65), 0 3px 0 rgba(10, 12, 36, 0.7);
  animation: kudo 1.5s cubic-bezier(.2, 1.4, .4, 1) forwards; white-space: nowrap;
}
.kudo small { display: block; font-family: var(--ui); font-weight: 800; font-size: 15px; letter-spacing: 0.14em; color: var(--moon); text-align: center; text-shadow: 0 2px 0 rgba(10, 12, 36, 0.7); }
.kudo.gold { color: var(--gold); text-shadow: 0 0 22px rgba(255, 209, 90, 0.7), 0 3px 0 rgba(10, 12, 36, 0.7); }
.kudo.cyan { color: var(--cyan); text-shadow: 0 0 18px rgba(54, 224, 255, 0.7), 0 3px 0 rgba(10, 12, 36, 0.7); }
.kudo.violet { color: #b9a8ff; text-shadow: 0 0 18px rgba(123, 92, 255, 0.8), 0 3px 0 rgba(10, 12, 36, 0.7); }
.kudo.big { font-size: 52px; }
#pops { position: absolute; inset: 0; }
.pop-n {
  position: absolute; font-family: var(--display); font-size: 26px; color: var(--lime);
  text-shadow: 0 0 12px rgba(216, 255, 62, 0.7), 0 2px 0 rgba(10, 12, 36, 0.7); animation: popUp 900ms ease-out forwards;
}
.pop-n.neg { color: #b9a8ff; }
#arrows { position: absolute; inset: 0; }
.arrow {
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center;
  color: var(--lime); filter: drop-shadow(0 0 8px rgba(216, 255, 62, 0.7));
}
.arrow svg { position: absolute; inset: 0; }
.arrow b { position: relative; font-size: 11px; font-weight: 900; color: var(--night); }
.arrow.gold { color: var(--gold); filter: drop-shadow(0 0 10px rgba(255, 209, 90, 0.9)); }
.arrow.mama { color: #c7b8ff; filter: drop-shadow(0 0 12px rgba(123, 92, 255, 0.9)); width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.arrow.feed { animation: pulse 500ms ease-in-out infinite alternate; }
#nozzleTxt {
  position: absolute; right: calc(var(--sr) + 18%); bottom: calc(var(--sb) + 36%); transform: translateX(50%);
  font-family: var(--display); font-size: 26px; letter-spacing: 0.06em; text-transform: uppercase; color: #c7b8ff;
  text-shadow: 0 0 16px rgba(123, 92, 255, 0.9), 0 2px 0 rgba(10, 12, 36, 0.7);
}
#nozzleTxt.warn { color: var(--moon); animation: blink 220ms steps(2) infinite; font-size: 20px; }
#hint {
  position: absolute; left: 50%; bottom: calc(var(--sb) + 31%); transform: translateX(-50%); max-width: 88vw; text-align: center;
  padding: 10px 18px; border-radius: 999px; background: rgba(10, 12, 36, 0.62); box-shadow: inset 0 0 0 1px rgba(216, 255, 62, 0.35);
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em; color: var(--moon); white-space: nowrap;
  animation: hintIn 300ms ease-out;
}
#hint.big { font-family: var(--display); font-size: 30px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); animation: hintIn 300ms ease-out, breatheC 1.1s ease-in-out infinite alternate; }
#hint.right { bottom: calc(var(--sb) + 6%); border-radius: 22px; }
#hint.right::after, #hint.desk::after { content: "right thumb · drag to aim"; display: block; font-family: var(--ui); font-size: 11px; letter-spacing: 0.1em; color: rgba(242, 244, 255, 0.75); margin-top: 2px; }
#hint.desk::after { content: "mouse button or space · drag to aim"; letter-spacing: 0.05em; }
#hint.big { padding: 10px 24px; }
#hint.desk { border-radius: 22px; }
#ghostStick { position: absolute; left: calc(var(--sl) + 13%); bottom: calc(var(--sb) + 15%); width: 112px; height: 112px; margin-left: -56px; animation: fadeIn 400ms; }
#ghostStick .ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(242, 244, 255, 0.4); background: rgba(10, 12, 36, 0.25); }
#ghostStick .knob { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: rgba(242, 244, 255, 0.35); animation: ghost 1.6s ease-in-out infinite; }
#ghostStick span { position: absolute; left: 0; right: 0; bottom: -24px; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(242, 244, 255, 0.7); }
#stick { position: absolute; left: 0; top: 0; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(242, 244, 255, 0.35); background: rgba(10, 12, 36, 0.22); }
#stickKnob { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: rgba(242, 244, 255, 0.55); box-shadow: 0 0 14px rgba(54, 224, 255, 0.5); }
#reticle {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(54, 224, 255, 0.55); transition: transform 120ms, box-shadow 120ms;
}
#reticle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: rgba(242, 244, 255, 0.85); }
#reticle.on { transform: scale(1.5); box-shadow: inset 0 0 0 2px rgba(54, 224, 255, 0.95), 0 0 16px rgba(54, 224, 255, 0.6); }
#reticle.wide { transform: scale(2.6); }

/* ------------------------------------------------------------ title */
#menu { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; pointer-events: none; animation: fadeIn 600ms ease-out; }
#menu .menu-foot { margin-top: auto; }
#menu .menu-top { align-self: stretch; display: flex; justify-content: flex-end; padding: calc(var(--st) + 12px) calc(var(--sr) + 12px) 0; }
#menu .menu-top button { pointer-events: auto; }
.title-block { text-align: center; margin-top: 2vh; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 12px rgba(54, 224, 255, 0.6); }
.title {
  margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(88px, 26vw, 168px); line-height: 0.95;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--lime);
  text-shadow: 0 0 28px rgba(216, 255, 62, 0.6), 0 0 80px rgba(216, 255, 62, 0.3), 0 6px 0 rgba(10, 12, 36, 0.7);
  animation: titleGlow 2.8s ease-in-out infinite alternate;
}
.sub { margin: 8px 0 0; font-size: 18px; font-weight: 700; color: var(--moon); text-shadow: 0 2px 10px rgba(10, 12, 36, 0.9); }
.menu-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 20px calc(var(--sb) + 34px); pointer-events: none; }
.menu-foot .primary { pointer-events: auto; }
.hold { font-family: var(--display); font-size: 24px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moon); animation: breathe 1s ease-in-out infinite alternate; text-shadow: 0 0 16px rgba(54, 224, 255, 0.8), 0 2px 10px rgba(10, 12, 36, 0.95), 0 0 2px rgba(10, 12, 36, 0.9); }
.best { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: rgba(242, 244, 255, 0.8); min-height: 18px; }
.best b { color: var(--lime); }
.howto { font-size: 13px; font-weight: 600; color: rgba(242, 244, 255, 0.62); text-align: center; line-height: 1.5; max-width: 360px; }

/* ------------------------------------------------------------ overlays */
.overlay {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(6, 7, 26, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 220ms ease-out;
}
.card {
  width: min(420px, 100%); padding: 24px 22px 22px; border-radius: 26px; text-align: center;
  background: linear-gradient(180deg, rgba(35, 41, 107, 0.82), rgba(10, 12, 36, 0.9));
  box-shadow: inset 0 0 0 1px rgba(123, 92, 255, 0.45), 0 24px 70px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column; align-items: center; gap: 12px; animation: cardIn 340ms cubic-bezier(.2, 1.3, .4, 1);
}
.card-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--moon); }
.card-sub { margin: -6px 0 4px; font-size: 15px; font-weight: 600; color: rgba(242, 244, 255, 0.7); }
.row2 { display: flex; gap: 10px; width: 100%; justify-content: center; }
.row2 .ghost { min-width: 0; flex: 1; padding: 0 12px; }
.setting { width: 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.setting label { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(242, 244, 255, 0.7); }
.setting input[type="range"] { width: 100%; accent-color: var(--lime); height: 28px; }
.toggles { display: flex; gap: 10px; width: 100%; }
.toggle {
  flex: 1; height: 42px; border-radius: 12px; background: rgba(10, 12, 36, 0.5); color: var(--moon); font-size: 14px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(242, 244, 255, 0.2);
}
.toggle[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px rgba(216, 255, 62, 0.7); color: var(--lime); }
.over { align-items: flex-end; padding-bottom: calc(var(--sb) + 22px); background: radial-gradient(120% 80% at 50% 25%, rgba(10, 12, 36, 0.25), rgba(10, 12, 36, 0.9)); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.over .card { gap: 8px; padding-top: 22px; }
.ribbon {
  padding: 5px 16px; border-radius: 999px; background: var(--lime); color: var(--night); font-weight: 900; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  box-shadow: 0 0 30px rgba(216, 255, 62, 0.6); animation: burst 700ms cubic-bezier(.2, 1.8, .4, 1);
}
.over-line { margin: 0; font-size: 16px; font-weight: 700; color: #c7b8ff; }
.big-num {
  font-family: var(--display); font-size: clamp(72px, 22vw, 104px); line-height: 1; color: var(--lime); letter-spacing: 0.02em;
  text-shadow: 0 0 34px rgba(216, 255, 62, 0.55), 0 5px 0 rgba(10, 12, 36, 0.7); font-variant-numeric: tabular-nums;
}
.big-label { font-size: 12px; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(242, 244, 255, 0.8); margin-top: -2px; }
.over-best { font-size: 15px; font-weight: 700; color: var(--moon); }
.over-stats { display: flex; gap: 8px; width: 100%; margin: 4px 0; }
.over-stats div { flex: 1; padding: 8px 4px; border-radius: 14px; background: rgba(10, 12, 36, 0.45); display: flex; flex-direction: column; gap: 2px; }
.over-stats b { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--moon); letter-spacing: 0.04em; }
.over-stats span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242, 244, 255, 0.6); }
.over-challenge { font-size: 13px; font-weight: 600; color: rgba(242, 244, 255, 0.7); line-height: 1.4; }
#againBtn { margin-top: 4px; }

/* ------------------------------------------------------------ loader */
#loader { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(80% 60% at 50% 40%, #1a1f5a, var(--night)); transition: opacity 500ms ease; z-index: 20; }
#loader.done { opacity: 0; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.loader-bug { filter: drop-shadow(0 0 18px rgba(216, 255, 62, 0.45)); animation: hover 1.4s ease-in-out infinite alternate; }
#loaderRect { transition: y 300ms ease-out; }
.loader-title { font-family: var(--display); font-size: 46px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }
.loader-sub { font-size: 14px; font-weight: 600; color: rgba(242, 244, 255, 0.7); }
#glLost { z-index: 30; }

/* ------------------------------------------------------------ motion */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes bump { 0% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.18); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes popIn { from { opacity: 0; transform: translateX(-50%) scale(0.6); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes shiver { 0% { transform: translateX(-1px) rotate(-3deg); } 50% { transform: translateX(1px) rotate(3deg); } 100% { transform: translateX(-1px) rotate(-3deg); } }
@keyframes lost { 0% { transform: scale(1.5); filter: brightness(2); } 100% { transform: scale(1); } }
@keyframes radioIn { from { opacity: 0; transform: translateX(-16px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes radioOut { to { opacity: 0; transform: translateX(-12px) scale(0.95); } }
@keyframes talk { from { transform: translateY(0); } to { transform: translateY(-1.5px) rotate(-2deg); } }
@keyframes banner { 0% { opacity: 0; transform: scale(1.3); } 12% { opacity: 1; transform: scale(1); } 75% { opacity: 1; transform: scale(0.98); } 100% { opacity: 0; transform: scale(0.95) translateY(-10px); } }
@keyframes kudo { 0% { opacity: 0; transform: scale(1.8) rotate(-4deg); } 14% { opacity: 1; transform: scale(1) rotate(-2deg); } 75% { opacity: 1; transform: scale(1) rotate(-2deg); } 100% { opacity: 0; transform: translateY(-24px) scale(0.92); } }
@keyframes popUp { 0% { opacity: 0; transform: translateY(8px) scale(0.7); } 20% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-46px) scale(0.9); } }
@keyframes pulse { from { scale: 0.9; } to { scale: 1.12; } }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; } }
@keyframes breathe { from { opacity: 0.55; transform: scale(0.97); } to { opacity: 1; transform: scale(1.03); } }
@keyframes breatheC { from { opacity: 0.6; transform: translateX(-50%) scale(0.97); } to { opacity: 1; transform: translateX(-50%) scale(1.03); } }
@keyframes hintInR { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; } }
@keyframes ghost { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(0, -26px); } 70% { transform: translate(22px, -8px); } }
@keyframes titleGlow { from { text-shadow: 0 0 22px rgba(216, 255, 62, 0.45), 0 0 60px rgba(216, 255, 62, 0.2), 0 6px 0 rgba(10, 12, 36, 0.7); } to { text-shadow: 0 0 34px rgba(216, 255, 62, 0.75), 0 0 100px rgba(216, 255, 62, 0.4), 0 6px 0 rgba(10, 12, 36, 0.7); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes burst { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); } }
@keyframes hover { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-6px) rotate(2deg); } }

/* ------------------------------------------------------------ layout tweaks */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  #scoreNum { font-size: 62px; }
  #combo { top: calc(var(--st) + 92px); }
  #palmRow { top: calc(var(--st) + 128px); }
  #powerPill { top: calc(var(--st) + 170px); }
  #radio { top: calc(var(--st) + 84px); left: calc(var(--sl) + 76px); }
  #kudos { top: 24%; }
  .kudo { font-size: 42px; }
  .kudo.big { font-size: 64px; }
  #hint { bottom: calc(var(--sb) + 14%); }
  #nozzleTxt { right: 24%; bottom: 30%; }
}
@media (max-height: 560px) {
  .title { font-size: 84px; }
  .menu-foot { gap: 8px; padding-bottom: calc(var(--sb) + 14px); }
  #radio { top: calc(var(--st) + 70px); left: calc(var(--sl) + 70px); }
}
@media (prefers-reduced-motion: reduce) {
  .title, .hold, #hint.big, .radio-av, .loader-bug, .arrow.feed, .palm-ico.eating { animation: none !important; }
}
