:root {
  --bg-top: #fff5f9;
  --bg-mid: #f7f0ff;
  --bg-bot: #eefbf7;
  --dot-color: rgba(255, 143, 171, 0.16);
  --card-bg: rgba(255, 255, 255, 0.86);
  --card-border: #f7cde0;
  --card-shadow: 0 12px 30px rgba(214, 134, 174, 0.16);
  --shadow-tint: rgba(219, 152, 187, 0.25);
  --ink: #553b57;
  --ink-soft: #7f6482;
  --accent: #ff7fa8;
  --accent-strong: #f25c8f;
  --accent-soft: #ffe1ec;
  --accent-2: #a896ff;
  --blush: #ffb3cc;
  --mint: #7ce2c3;
  --peach: #ffba8c;
  --butter: #ffe082;
  --pill-bg: #fff3f8;
  --radius-card: 28px;
  --radius-pill: 999px;
}
html[data-theme="matcha"] {
  --bg-top: #f2fcf6;
  --bg-mid: #fffbeb;
  --bg-bot: #f0f9ff;
  --dot-color: rgba(114, 204, 165, 0.18);
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: #c5ebd9;
  --card-shadow: 0 12px 30px rgba(103, 179, 144, 0.15);
  --shadow-tint: rgba(133, 198, 166, 0.24);
  --ink: #385249;
  --ink-soft: #638277;
  --accent: #5fc79b;
  --accent-strong: #42b083;
  --accent-soft: #dcf7ea;
  --accent-2: #f4b266;
  --blush: #ffb8c6;
  --pill-bg: #f1fbf6;
}
html[data-theme="lavender"] {
  --bg-top: #f5f1ff;
  --bg-mid: #fceeff;
  --bg-bot: #eef6ff;
  --dot-color: rgba(169, 147, 255, 0.18);
  --card-bg: rgba(255, 255, 255, 0.86);
  --card-border: #d9ceff;
  --card-shadow: 0 12px 30px rgba(149, 129, 219, 0.17);
  --shadow-tint: rgba(168, 149, 232, 0.24);
  --ink: #473c66;
  --ink-soft: #756896;
  --accent: #9b84ff;
  --accent-strong: #7e63f5;
  --accent-soft: #ebe5ff;
  --accent-2: #ff8fb8;
  --blush: #ffb3d9;
  --pill-bg: #f6f2ff;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: "Nunito", "SF Pro Rounded", ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-top);
  background-image:
    radial-gradient(var(--dot-color) 1.5px, transparent 1.5px),
    linear-gradient(155deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-bot) 100%);
  background-size: 26px 26px, 100% 100%;
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}
h1, .brand { font-family: "Fredoka", "SF Pro Rounded", ui-rounded, sans-serif; letter-spacing: 0.01em; }
.sky-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.cloud { position: absolute; border-radius: 999px; background: rgba(255, 255, 255, 0.72); filter: blur(1px); box-shadow: 0 12px 28px rgba(255, 195, 220, 0.14); }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud-1 { width: 170px; height: 54px; top: 9%; left: -20px; animation: drift 24s ease-in-out infinite; }
.cloud-1::before { width: 78px; height: 78px; top: -36px; left: 26px; }
.cloud-1::after { width: 58px; height: 58px; top: -22px; right: 24px; }
.cloud-2 { width: 150px; height: 48px; top: 28%; right: -18px; animation: drift 29s ease-in-out infinite reverse; }
.cloud-2::before { width: 66px; height: 66px; top: -30px; left: 24px; }
.cloud-2::after { width: 54px; height: 54px; top: -20px; right: 20px; }
.cloud-3 { width: 190px; height: 56px; bottom: 10%; left: 8%; opacity: 0.65; animation: drift 32s ease-in-out infinite; }
.cloud-3::before { width: 84px; height: 84px; top: -40px; left: 32px; }
.cloud-3::after { width: 64px; height: 64px; top: -26px; right: 28px; }
.twinkle { position: absolute; color: var(--accent); opacity: 0.48; font-size: 1.15rem; animation: twinkle 3.8s ease-in-out infinite; }
.t1 { top: 15%; left: 16%; animation-delay: 0s; }
.t2 { top: 22%; right: 14%; animation-delay: 0.9s; color: var(--accent-2); }
.t3 { top: 58%; left: 7%; animation-delay: 1.5s; color: var(--peach); }
.t4 { bottom: 22%; right: 9%; animation-delay: 2.1s; color: var(--mint); }
.t5 { top: 44%; right: 20%; animation-delay: 2.8s; }
.top-nav-wrap { position: sticky; top: 14px; z-index: 20; padding: 0 16px; margin-top: 14px; }
.top-nav {
  max-width: 900px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255, 255, 255, 0.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 2px solid var(--card-border); border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(196, 134, 174, 0.14);
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; padding-left: 4px; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 0 4px var(--accent-soft); }
.theme-switcher { display: inline-flex; gap: 4px; padding: 4px; background: var(--pill-bg); border-radius: var(--radius-pill); border: 1.5px solid var(--card-border); }
.theme-btn { border: none; background: transparent; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 0.95rem; display: grid; place-items: center; transition: transform 0.2s ease, background 0.2s ease; }
.theme-btn:hover { transform: scale(1.12); }
.theme-btn.is-active { background: #ffffff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); }
.page { position: relative; z-index: 1; width: 100%; max-width: 900px; margin: 26px auto 40px; padding: 0 18px; }
.card { background: var(--card-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 2.5px solid var(--card-border); border-radius: var(--radius-card); box-shadow: var(--card-shadow); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.3s ease; }
.hero-card { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 28px; padding: 32px; }
.hero-mascot-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.mascot-btn { border: none; background: transparent; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; outline-offset: 6px; }
.mascot-svg { width: 210px; height: auto; animation: floaty 4.2s ease-in-out infinite; transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.mascot-btn:hover .mascot-svg { transform: scale(1.05) rotate(-1.5deg); }
.mascot-btn:active .mascot-svg { transform: scale(0.95); }
.mascot-eyes { transform-origin: 110px 105px; animation: blink 5s infinite; }
.wifi-wave { animation: pulseWave 2.4s ease-in-out infinite; }
.wave-2 { animation-delay: 0.3s; }
.boop-hint { margin-top: -6px; font-size: 0.8rem; font-weight: 800; color: var(--ink-soft); background: var(--pill-bg); border: 1.5px dashed var(--card-border); border-radius: var(--radius-pill); padding: 3px 12px; transition: background 0.2s ease, color 0.2s ease; }
.mascot-btn:hover .boop-hint { background: var(--accent-soft); color: var(--ink); }
.heart-burst { position: absolute; inset: 0; pointer-events: none; }
.pop-heart { position: absolute; left: 50%; top: 42%; font-size: 1.2rem; animation: popHeart 0.95s ease-out forwards; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: var(--radius-pill); font-size: 0.86rem; font-weight: 800; border: 1.5px solid var(--card-border); background: var(--pill-bg); }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #4cd997; box-shadow: 0 0 0 4px rgba(76, 217, 151, 0.25); animation: pulseDot 2s infinite; }
.hero-title { margin: 0 0 10px; font-size: clamp(2rem, 4.2vw, 2.7rem); line-height: 1.15; font-weight: 700; }
.highlight-word { color: var(--accent-strong); background: linear-gradient(transparent 62%, var(--accent-soft) 62%); padding: 0 4px; border-radius: 6px; }
.hero-tagline { margin: 0 0 18px; color: var(--ink-soft); font-size: 1.03rem; }
.currently-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini-pill-card { background: var(--pill-bg); border: 1.5px solid var(--card-border); border-radius: 18px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.mini-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; color: var(--ink-soft); }
.mini-val { font-size: 0.92rem; font-weight: 700; color: var(--ink); word-break: break-word; }
@keyframes floaty { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-9px); } }
@keyframes drift { 0%, 100% { transform: translateX(0px) translateY(0px); } 50% { transform: translateX(26px) translateY(-8px); } }
@keyframes twinkle { 0%, 100% { opacity: 0.3; transform: scale(0.9) rotate(0deg); } 50% { opacity: 0.85; transform: scale(1.15) rotate(12deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95%, 97% { transform: scaleY(0.1); } }
@keyframes pulseWave { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 3px rgba(76, 217, 151, 0.28); } 50% { box-shadow: 0 0 0 7px rgba(76, 217, 151, 0.08); } }
@keyframes popHeart {
  0% { opacity: 1; transform: translate(-50%, 0) scale(0.6); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), var(--dy)) scale(1.25) rotate(var(--rot)); }
}
@media (max-width: 780px) {
  .hero-card { grid-template-columns: 1fr; text-align: center; padding: 26px 22px; }
  .status-row { justify-content: center; }
  .currently-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}