/* wurt.app/status: Wurt by the numbers (owner: Zack, 2026-10-22).
   Plan: notes/CLAUDE_PLAN_STATUS_PAGE_2026-10-22.md */
:root {
  /* Wurt's own colors: app purple, pink, sunny yellow, and the mascot's
     red hat and blue shirt */
  --ink: #2b2140;
  --soft-ink: #6e6487;
  --purple-a: #667eea;
  --purple-b: #764ba2;
  --pink: #ff5fb1;
  --yellow: #ffd54a;
  --card: #ffffff;
  --radius: 28px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 10%, #ffe1f0 0, transparent 40%),
    radial-gradient(circle at 85% 20%, #e3e6ff 0, transparent 45%),
    radial-gradient(circle at 50% 100%, #fff3c4 0, transparent 50%),
    #fdf6ff;
}

/* Twinkling sparkles and floating confetti in Wurt colors */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sparkle {
  position: absolute; width: 14px; height: 14px;
  background: var(--c);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 3.2s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes twinkle {
  0%, 100% { transform: scale(0.5) rotate(0deg); opacity: 0.35; }
  50% { transform: scale(1.15) rotate(45deg); opacity: 1; }
}
.confetti {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--c); opacity: 0.55;
  animation: float 9s ease-in-out infinite alternate;
  animation-delay: var(--d);
}
@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-26px); }
}

main {
  position: relative; z-index: 1;
  max-width: 640px; margin: 0 auto;
  padding: 44px 16px 0;
  text-align: center;
}

/* Header */
.halo {
  position: relative; width: 168px; height: 168px; margin: 0 auto;
  display: grid; place-items: center;
}
.halo::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--purple-a), var(--pink), var(--yellow), var(--purple-a));
  animation: spin 14s linear infinite;
}
.halo::after {
  content: ''; position: absolute; inset: 8px; border-radius: 50%;
  background: #f7ede2;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mascot {
  position: relative; z-index: 1;
  width: 104px; height: auto; margin-top: 6px;
  animation: bob 3.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}
h1 {
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: clamp(2.1rem, 7vw, 3rem);
  margin: 18px 0 6px; letter-spacing: -0.01em;
}
.grad {
  background: linear-gradient(90deg, var(--purple-a), var(--purple-b) 45%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--soft-ink); font-size: 1.08rem; margin: 0 auto 18px; }

.online {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; padding: 9px 18px; border-radius: 999px;
  font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 4px 0 #ecdcf7, 0 10px 24px rgba(118, 75, 162, 0.12);
}
.dot {
  width: 10px; height: 10px; border-radius: 50%; background: #22c55e;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Cards pop in */
.js .pop {
  opacity: 0; transform: translateY(16px) scale(0.96);
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(.34,1.56,.64,1);
}
.js .pop.in { opacity: 1; transform: none; }
/* If status.js never runs, the cards still appear after 3 seconds. */
.js:not(.status-ready) .pop { animation: pop-fallback 0.4s ease 3s forwards; }
@keyframes pop-fallback { to { opacity: 1; transform: none; } }

/* Big total */
.hero {
  position: relative; overflow: hidden;
  margin-top: 30px; padding: 30px 20px 30px;
  border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, var(--purple-a), var(--purple-b));
  box-shadow: 0 8px 0 #5a3a85, 0 18px 40px rgba(118, 75, 162, 0.3);
}
.hero::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: shine 6s ease-in-out infinite;
}
@keyframes shine {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}
.hero .label { color: rgba(255,255,255,0.85); }
.label { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.big {
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: clamp(2.8rem, 13vw, 4.8rem); line-height: 1.05;
  margin: 8px 0 0; font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 0 rgba(43, 33, 64, 0.18);
}

/* Even 2 x 2 grid, also on phones */
.grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 22px;
}
.tile {
  border-radius: 24px; padding: 20px 12px 18px;
  background: var(--bg);
  box-shadow: 0 6px 0 var(--edge);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.tile .icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.45rem;
  background: #fff; box-shadow: 0 3px 0 var(--edge);
}
.tile .num {
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 2rem); color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.tile .what { color: var(--accent); font-weight: 800; font-size: 0.95rem; line-height: 1.25; }
.t-yellow { --bg: #fff3c4; --edge: #f0d77a; --accent: #8a6100; }
.t-red    { --bg: #ffe3e1; --edge: #f5b5b1; --accent: #b02e33; }
.t-blue   { --bg: #e1ebff; --edge: #b5c9f5; --accent: #2a50a8; }
.t-green  { --bg: #dcf5e4; --edge: #a9e0bb; --accent: #1f6e43; }

/* Pictures and videos ring */
.ring-card {
  margin-top: 22px; padding: 24px 20px;
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 6px 0 #ecdcf7, 0 14px 30px rgba(118, 75, 162, 0.1);
}
.ring-card .label { color: var(--soft-ink); }
.ring { width: 170px; height: 170px; margin: 14px auto 6px; display: block; }
.ring circle { fill: none; stroke-width: 18; }
.ring .track { stroke: #f1eaf8; }
.ring .seg {
  stroke-linecap: round;
  transition: stroke-dasharray 1.5s cubic-bezier(.2,.8,.2,1);
}
.ring .pics { stroke: var(--yellow); }
.ring .vids { stroke: var(--pink); }
.ring text { text-anchor: middle; }
.legend { display: flex; justify-content: center; gap: 22px; font-weight: 800; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; }

/* One creation every few seconds */
.pace {
  margin-top: 22px; padding: 24px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffe2f1, #ece6ff);
  box-shadow: 0 6px 0 #f0c3e0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.pace .globe { font-size: 2rem; display: inline-block; animation: rock 8s ease-in-out infinite; }
@keyframes rock {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}
.pace p { margin: 0; font-weight: 700; font-size: 1.12rem; line-height: 1.4; max-width: 24em; }
.pace b {
  font-family: 'Fredoka', sans-serif; font-size: 1.5rem; color: #b02a73;
  white-space: nowrap;
}

/* Footer with Wurt's mushroom garden */
footer { margin-top: 30px; color: var(--soft-ink); font-size: 0.95rem; }
.make {
  display: inline-block; margin-top: 14px;
  background: linear-gradient(135deg, var(--purple-a), var(--pink));
  color: #fff; text-decoration: none;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.08rem;
  padding: 13px 28px; border-radius: 999px;
  box-shadow: 0 5px 0 #9b3f8a;
  transition: transform 0.2s ease;
}
.make:hover { transform: translateY(-2px) scale(1.04); }
.garden { display: block; width: 100%; max-width: 640px; height: auto; margin: 26px auto 0; }
.shroom { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 4s ease-in-out infinite; }
.shroom.s2 { animation-delay: -1.3s; }
.shroom.s3 { animation-delay: -2.6s; }
@keyframes sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .pop { opacity: 1; transform: none; }
}
