/* Look: sleek app. Pure black, teal + purple split accents, clean bold type, line icons.
   (Variable names --pink/--cyan are kept for history: --pink is the purple accent, --cyan the teal one.) */
:root {
  --bg1: #000;
  --bg2: #0b0b0d;
  --surface: #161618;
  --surface2: #222226;
  --ink: #fff;
  --dark: #000;
  --muted: #a1a1aa;
  --card: #161618;
  --card-line: rgba(255, 255, 255, 0.09);
  --pink: #9d4dff;
  --cyan: #14d9bf;
  --lime: #14d9bf; /* legacy name: highlight color */
  --purple: #9d4dff;
  --lilac: #c084fc;
  --sky: #14d9bf;
  --green: #14d9bf;
  --amber: #ffd400;
  --red: #ff4f7b;
  --yellow: #ffd400;
  --o0: #9d4dff;
  --o1: #14d9bf;
  --o2: #ffd400;
  --o3: #ff4f7b;
  --radius: 16px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: var(--font);
  --split: -0.035em -0.02em 0 var(--cyan), 0.035em 0.02em 0 var(--pink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(ellipse at 50% -20%, #1a1a1f 0%, #000 60%) fixed;
  background-color: #000;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; border: 0; color: inherit; }
button:disabled { opacity: 0.4; cursor: not-allowed; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; }

/* Wordmark with the cyan/pink split */
.logo { font-weight: 800; letter-spacing: -0.05em; text-transform: lowercase; text-shadow: var(--split); }
.logo span { color: #fff; }

/* Line icons */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Avatars: initial on a colored circle */
.av {
  --c: var(--pink);
  display: inline-grid; place-items: center;
  width: 1.9em; height: 1.9em; border-radius: 50%;
  background: var(--c); color: var(--avink, #000);
  font-size: 1em; line-height: 1; font-weight: 800; flex: none;
  box-shadow: 0 0 0 0.09em #000, 0 0 0 0.16em rgba(255, 255, 255, 0.18);
}
.av > b { font-size: 0.85em; }
.av .ic { font-size: 0.95em; }
.av.off { filter: grayscale(1); opacity: 0.4; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  padding: 0.75em 1.5em; border-radius: 12px; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em;
  background: #fff; color: #000; transition: transform 0.08s, filter 0.15s;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.btn.pink { background: var(--pink); color: #fff; }
.btn.green { background: var(--cyan); color: #000; }
.btn.ghost { background: var(--surface2); color: #fff; }

/* Timer bar */
.tbar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.tbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--pink)); transform-origin: left; transition: transform 0.25s linear; border-radius: 99px; }
.tbar.low i { background: var(--pink); }
.count { font-variant-numeric: tabular-nums; font-weight: 800; }
.count.low { color: var(--pink); animation: pulse 0.5s infinite alternate; }

/* Confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 99; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 8px; height: 16px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--x), 110vh) rotate(var(--r)); } }

@keyframes pop-in { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes slide-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glitch {
  0%, 92%, 100% { text-shadow: var(--split); transform: none; }
  94% { text-shadow: -0.08em 0 0 var(--cyan), 0.08em 0 0 var(--pink); transform: translateX(0.02em); }
  96% { text-shadow: 0.06em 0 0 var(--cyan), -0.06em 0 0 var(--pink); transform: translateX(-0.02em); }
}
.enter { animation: pop-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.enter-up { animation: slide-up 0.35s ease-out both; }

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