@font-face { font-family: 'Lilita One'; src: url('/fonts/lilita-one.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/fonts/fredoka.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #1a0f3d;
  --bg2: #2a1663;
  --ink: #fff8ea;
  --dim: #b9a9e8;
  --yellow: #ffd23f;
  --pink: #ff4d8d;
  --teal: #2de2c5;
  --red: #ff4b4b;
  --green: #4ade80;
  --card: #fff8ea;
  --card-ink: #24124f;
  --display: 'Lilita One', 'Arial Black', Impact, sans-serif;
  --body: 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; }
.hidden { display: none !important; }

/* drifting background blobs */
.backdrop { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, var(--bg2), var(--bg) 70%); }
.backdrop i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; animation: drift 26s ease-in-out infinite alternate; }
.backdrop i:nth-child(1) { width: 46vmax; height: 46vmax; background: #6a2cff; left: -12vmax; top: -14vmax; }
.backdrop i:nth-child(2) { width: 38vmax; height: 38vmax; background: #ff4d8d; right: -12vmax; bottom: -14vmax; animation-duration: 34s; opacity: .3; }
.backdrop i:nth-child(3) { width: 26vmax; height: 26vmax; background: #2de2c5; left: 40%; top: 55%; animation-duration: 41s; opacity: .18; }
@keyframes drift { to { transform: translate(8vmax, 5vmax) scale(1.2); } }

.logo { font-family: var(--display); line-height: .9; letter-spacing: .02em; color: var(--yellow);
  text-shadow: .06em .06em 0 var(--pink), .12em .12em 0 #24124f; transform: rotate(-3deg); display: inline-block; }
.logo b { color: var(--teal); font-weight: 400; display: inline-block; animation: wobble 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes wobble { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(9deg) scale(1.12); } }

.btn { font-family: var(--display); background: var(--yellow); color: #24124f; border-radius: .6em; padding: .55em 1.2em;
  box-shadow: 0 .22em 0 #b98a00; transition: transform .08s, box-shadow .08s, filter .15s; letter-spacing: .03em; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(.18em); box-shadow: 0 .04em 0 #b98a00; }
.btn:disabled { filter: grayscale(.8) brightness(.7); cursor: not-allowed; }
.btn.alt { background: var(--teal); box-shadow: 0 .22em 0 #0f9c86; }
.btn.ghost { background: rgba(255,255,255,.12); color: var(--ink); box-shadow: 0 .22em 0 rgba(0,0,0,.3); }

/* player avatar blob */
.avatar { --c: #ff5d73; position: relative; display: inline-block; width: 1em; height: 1em; background: var(--c);
  border-radius: 46% 54% 50% 50% / 55% 48% 52% 45%; box-shadow: inset -.08em -.1em 0 rgba(0,0,0,.18); flex: none; }
.avatar::before, .avatar::after { content: ''; position: absolute; top: 32%; width: 16%; height: 22%; background: #24124f;
  border-radius: 50%; animation: blink 4.6s infinite; }
.avatar::before { left: 26%; } .avatar::after { right: 26%; }
.avatar.s1 { border-radius: 50%; } .avatar.s2 { border-radius: 30% 30% 46% 46%; }
.avatar.s3 { border-radius: 60% 40% 45% 55% / 45% 55% 45% 55%; } .avatar.s4 { border-radius: 24%; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }

@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(1.2em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
