:root {
  --ink: #0b0614;
  --paper: #fff7e6;
  --pink: #ff3ea5;
  --lime: #c6ff3d;
  --cyan: #3de8ff;
  --violet: #8a5cff;
  --gold: #ffd23d;
  --yellow: #ffe03a;
  --blue: #4ea8ff;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--blue);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.bg {
  position: fixed;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 30%, rgba(30, 110, 255, .55), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(160, 225, 255, .8), transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(90, 80, 255, .35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(61, 232, 255, .45), transparent 40%),
    var(--blue);
  animation: swirl 18s linear infinite;
  filter: blur(20px);
}

@keyframes swirl { to { transform: rotate(360deg); } }

.floaters { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.floater {
  position: absolute;
  bottom: -60px;
  font-size: 28px;
  animation: rise linear forwards;
  opacity: .9;
}
@keyframes rise {
  to { transform: translateY(-120vh) rotate(var(--spin, 360deg)); opacity: 0; }
}

.stage {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
  background: var(--ink);
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  transform: rotate(-3deg);
}

.hello {
  margin: 0;
  line-height: .9;
  font-size: clamp(64px, 22vw, 120px);
  font-weight: 900;
  letter-spacing: -.04em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.word {
  display: inline-block;
  background: linear-gradient(90deg, var(--pink), var(--yellow), #ffffff, var(--ink), var(--pink));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }

.world {
  display: inline-block;
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--pink), -4px -4px 0 var(--cyan);
  animation: wobble 2.4s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-2deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.04); }
}

.hello.bonk .word { animation: shimmer 4s linear infinite, bonk .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bonk {
  0% { transform: scale(1); }
  30% { transform: scale(1.35) rotate(-6deg); }
  100% { transform: scale(1) rotate(0); }
}

.sub {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  opacity: .8;
  min-height: 1.4em;
}

.big {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 800 19px var(--font);
  color: var(--lime);
  background: var(--ink);
  border: 0;
  border-radius: 20px;
  padding: 18px 26px;
  box-shadow: 0 6px 0 var(--pink), 0 14px 30px rgba(11, 6, 20, .25);
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
}
.big:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--pink), 0 6px 16px rgba(11, 6, 20, .2); }
.big-emoji { font-size: 26px; display: inline-block; transition: transform .2s; }
.big:hover .big-emoji { transform: rotate(-15deg) scale(1.15); }

.meter {
  width: 100%;
  max-width: 320px;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .45);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.meter-top {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .9;
}
.aura { color: var(--violet); font-variant-numeric: tabular-nums; }
.aura.neg { color: var(--pink); }
.bar {
  margin-top: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(11, 6, 20, .12);
  overflow: hidden;
}
.fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  transition: width .35s cubic-bezier(.3, 1.4, .5, 1);
}
.rank { margin: 10px 0 0; font-size: 14px; font-weight: 700; opacity: .75; }

.ticker {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  background: var(--pink);
  color: var(--ink);
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track { display: inline-block; animation: scroll 22s linear infinite; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.toast {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, -140%);
  background: var(--ink);
  color: var(--yellow);
  font-weight: 800;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: transform .35s cubic-bezier(.3, 1.5, .5, 1);
  white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0); }

body.shake .stage { animation: shake .4s; }
@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-8px, 4px) rotate(-1deg); }
  40% { transform: translate(7px, -5px) rotate(1deg); }
  60% { transform: translate(-6px, -3px); }
  80% { transform: translate(5px, 5px); }
}

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