/* howlden site: "the den at night". Monsoon 0.2.0 supplies the base, the
   tokens and the components (btn, kbd, modal, command palette); this file
   adds the night palette, the layout and the live app preview. Dark is the
   home look; light is a lavender dusk. */

:root {
  --seed: #7c5cff;
  --bg: #f7f4ff;
  --bg-2: #efe9ff;
  --panel: #ffffff;
  --panel-2: #f4f0ff;
  --line: rgba(60, 40, 140, 0.13);
  --line-2: rgba(60, 40, 140, 0.22);
  --text: #1e173f;
  --muted: #554a8a;
  --soft: #7a6fb0;
  --violet: #6a45f5;
  --violet-2: #8b6bff;
  --violet-soft: rgba(124, 92, 255, 0.12);
  --fire: #d9560a;
  --fire-2: #f0a400;
  --fire-soft: rgba(255, 138, 61, 0.14);
  --ring: #0f9e6a;
  --moon: #fff4cf;
  --shadow: 0 1px 2px rgba(40, 20, 110, 0.06), 0 12px 40px -12px rgba(60, 30, 160, 0.22);
  --shadow-lg: 0 30px 80px -20px rgba(60, 30, 160, 0.35);
  --ic-f: #ddd3ff;
  --ic-a: #ff7a33;
  /* App preview */
  --app-rail: #e6e0fb;
  --app-side: #f1edff;
  --app-main: #ffffff;
  --app-hover: rgba(106, 69, 245, 0.08);
  --app-sel: rgba(106, 69, 245, 0.16);
  --app-text: #221a4a;
  --app-muted: #6a5fa0;
  --sky-a: rgba(124, 92, 255, 0.16);
  --sky-b: rgba(255, 138, 61, 0.1);
  --home-bg: radial-gradient(70% 40% at 85% 0%, rgba(255, 180, 140, 0.5), transparent 70%), linear-gradient(180deg, #ffe9df 0%, #f3e3ff 16%, #e5d9ff 45%, #efe7ff 75%, #fff4ee 100%);
  --home-text: #1b1240;
  --home-muted: #4f4585;
  --home-link: #5b35e8;
  --home-top: #fff1ea;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-line: rgba(60, 40, 140, 0.12);
  --star-o: 0;
  --radius: 18px;
  --display: 'Unbounded', 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SFMono-Regular', Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0d0a1f;
    --bg-2: #120e2b;
    --panel: #18133a;
    --panel-2: #1f1948;
    --line: rgba(190, 170, 255, 0.13);
    --line-2: rgba(190, 170, 255, 0.24);
    --text: #f2eeff;
    --muted: #bdb3ea;
    --soft: #9a90cf;
    --violet: #a586ff;
    --violet-2: #8b6bff;
    --violet-soft: rgba(155, 116, 255, 0.16);
    --fire: #ff9a4d;
    --fire-2: #ffd166;
    --fire-soft: rgba(255, 138, 61, 0.16);
    --ring: #3ee6a0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 50px -16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(190, 170, 255, 0.12);
    --ic-f: #4b3c9e;
    --ic-a: #ff9a4d;
    --app-rail: #0e0b24;
    --app-side: #151034;
    --app-main: #1b1640;
    --app-hover: rgba(190, 170, 255, 0.07);
    --app-sel: rgba(190, 170, 255, 0.14);
    --app-text: #eee9ff;
    --app-muted: #a69cd8;
    --sky-a: rgba(124, 92, 255, 0.28);
    --sky-b: rgba(255, 138, 61, 0.13);
    --home-bg: radial-gradient(60% 30% at 80% 0%, rgba(155, 116, 255, 0.45), transparent 70%), radial-gradient(50% 20% at 0% 40%, rgba(255, 126, 179, 0.18), transparent 70%), linear-gradient(180deg, #0b0824 0%, #1c1063 14%, #2e1899 32%, #1f1270 55%, #2a1690 78%, #0d0a1f 100%);
    --home-text: #ffffff;
    --home-muted: #d6ceff;
    --home-link: #ffd166;
    --home-top: #0f0a2e;
    --glass: rgba(255, 255, 255, 0.07);
    --glass-line: rgba(255, 255, 255, 0.13);
    --star-o: 0.85;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0d0a1f;
  --bg-2: #120e2b;
  --panel: #18133a;
  --panel-2: #1f1948;
  --line: rgba(190, 170, 255, 0.13);
  --line-2: rgba(190, 170, 255, 0.24);
  --text: #f2eeff;
  --muted: #bdb3ea;
  --soft: #9a90cf;
  --violet: #a586ff;
  --violet-2: #8b6bff;
  --violet-soft: rgba(155, 116, 255, 0.16);
  --fire: #ff9a4d;
  --fire-2: #ffd166;
  --fire-soft: rgba(255, 138, 61, 0.16);
  --ring: #3ee6a0;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 50px -16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(190, 170, 255, 0.12);
  --ic-f: #4b3c9e;
  --ic-a: #ff9a4d;
  --app-rail: #0e0b24;
  --app-side: #151034;
  --app-main: #1b1640;
  --app-hover: rgba(190, 170, 255, 0.07);
  --app-sel: rgba(190, 170, 255, 0.14);
  --app-text: #eee9ff;
  --app-muted: #a69cd8;
  --sky-a: rgba(124, 92, 255, 0.28);
  --sky-b: rgba(255, 138, 61, 0.13);
  --home-bg: radial-gradient(60% 30% at 80% 0%, rgba(155, 116, 255, 0.45), transparent 70%), radial-gradient(50% 20% at 0% 40%, rgba(255, 126, 179, 0.18), transparent 70%), linear-gradient(180deg, #0b0824 0%, #1c1063 14%, #2e1899 32%, #1f1270 55%, #2a1690 78%, #0d0a1f 100%);
  --home-text: #ffffff;
  --home-muted: #d6ceff;
  --home-link: #ffd166;
  --home-top: #0f0a2e;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-line: rgba(255, 255, 255, 0.13);
  --star-o: 0.85;
  color-scheme: dark;
}

/* Theme dependent images. */
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .only-dark { display: block !important; }
  :root:not([data-theme='light']) .only-light { display: none !important; }
}
:root[data-theme='dark'] .only-dark { display: block !important; }
:root[data-theme='dark'] .only-light { display: none !important; }

/* Theme toggle icons follow the chosen mode. */
.theme-btn .ic { display: none; }
.theme-btn .ti-system { display: block; }
:root[data-theme='light'] .theme-btn .ti-system, :root[data-theme='dark'] .theme-btn .ti-system { display: none; }
:root[data-theme='light'] .theme-btn .ti-light { display: block; }
:root[data-theme='dark'] .theme-btn .ti-dark { display: block; }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--fire); }
:focus-visible { outline: 3px solid var(--violet-2); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 32px, 1240px); margin-inline: auto; }
@media (min-width: 1800px) { .wrap { width: min(100% - 96px, 1480px); } body { font-size: 18px; } }
.ctr-row { text-align: center; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.hi { width: 1.4em; height: 1.4em; flex: none; vertical-align: -0.3em; color: var(--text); }
.hi-lg { width: 44px; height: 44px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* The night sky behind every page. */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(1200px 600px at 85% -10%, var(--sky-a), transparent 60%),
  radial-gradient(900px 500px at 0% 110%, var(--sky-b), transparent 60%),
  var(--bg); }
.sky::before { content: ''; position: absolute; inset: 0; opacity: 0.55; background-image:
  radial-gradient(1.4px 1.4px at 12% 18%, var(--soft), transparent 60%),
  radial-gradient(1.2px 1.2px at 32% 8%, var(--soft), transparent 60%),
  radial-gradient(1.6px 1.6px at 58% 22%, var(--soft), transparent 60%),
  radial-gradient(1.1px 1.1px at 72% 12%, var(--soft), transparent 60%),
  radial-gradient(1.3px 1.3px at 88% 32%, var(--soft), transparent 60%),
  radial-gradient(1.2px 1.2px at 22% 42%, var(--soft), transparent 60%),
  radial-gradient(1.5px 1.5px at 46% 52%, var(--soft), transparent 60%),
  radial-gradient(1.1px 1.1px at 66% 62%, var(--soft), transparent 60%),
  radial-gradient(1.3px 1.3px at 8% 72%, var(--soft), transparent 60%),
  radial-gradient(1.2px 1.2px at 92% 76%, var(--soft), transparent 60%);
  background-size: 640px 640px; }

/* Buttons on top of Monsoon's. */
.btn { font-family: var(--body); font-weight: 700; gap: 0.5em; border-radius: 999px; }
.btn-primary { background: linear-gradient(135deg, #8b6bff, #6a45f5 60%, #5a35e8); color: #fff; border: 0; box-shadow: 0 8px 24px -8px rgba(106, 69, 245, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-primary .hi { color: #fff; --ic-f: rgba(255, 255, 255, 0.3); --ic-a: #ffd166; }
.btn-ghost { color: var(--text); background: var(--violet-soft); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--text); background: var(--app-sel); }
.btn-outline { color: var(--text); border: 1.5px solid var(--line-2); background: transparent; }
.btn-outline:hover { color: var(--text); border-color: var(--violet); }
.open-den { position: relative; }
.btn-lg { padding: 0.9em 1.6em; font-size: 1.05rem; }
.more { display: inline-block; font-weight: 700; text-decoration: none; }
.more .ic { margin-left: 6px; }
.more .ic { transition: transform 0.2s; }
.more:hover .ic { transform: translateX(3px); }

/* ---------- Top bar ---------- */

.topbar { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); background: color-mix(in oklab, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em; }
.brand-name b { color: var(--violet); font-weight: 700; }
.topnav { display: flex; gap: 2px; margin-left: 12px; }
.top-link { color: var(--muted); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 10px; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; }
.top-link:hover, .top-link[aria-current='page'] { color: var(--text); background: var(--violet-soft); }
.top-open { display: none; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--muted); background: transparent; border: 1px solid transparent; cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--violet-soft); }
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; font: inherit; font-size: 0.9rem; }
.search-btn:hover { border-color: var(--line-2); color: var(--text); }
.nav-btn { display: none; }
@media (max-width: 1080px) {
  .search-label, .search-btn .kbd { display: none; }
  .search-btn { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 920px) {
  .nav-btn { display: inline-grid; }
  .topnav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 12px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); margin: 0; box-shadow: var(--shadow); }
  .topnav.is-open { display: flex; }
  .top-link { padding: 12px 14px; font-size: 1rem; }
  .top-open { display: inline-flex; color: var(--violet); }
}
@media (max-width: 560px) {
  .open-btn, .hide-xs { display: none; }
  .brand-name { font-size: 1.3rem; }
  .topbar-in { gap: 8px; }
}

/* ---------- The app preview ---------- */

.appwin { container: appwin / inline-size; position: relative; border-radius: 20px; background: var(--app-main); box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); overflow: hidden; color: var(--app-text); font-size: 0.92rem; line-height: 1.45; isolation: isolate; }
.appwin-bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: var(--app-rail); border-bottom: 1px solid var(--line); font-size: 0.78rem; color: var(--app-muted); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff6b6b; }
.dots i:nth-child(2) { background: #ffc94d; }
.dots i:nth-child(3) { background: #3ee6a0; }
.appwin-url { display: inline-flex; align-items: center; gap: 6px; background: var(--app-side); padding: 3px 12px; border-radius: 999px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.appwin-url .ic { color: var(--ring); }
.appwin-e2e { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ring); font-weight: 700; white-space: nowrap; }
.appwin-e2e .hi { width: 18px; height: 18px; }
.app { display: grid; grid-template-columns: 64px 210px minmax(0, 1fr) 188px; height: 520px; }
.app button { font: inherit; color: inherit; cursor: pointer; }
.app-rail { background: var(--app-rail); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; }
.den-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--app-side); border: 0; transition: border-radius 0.2s, background 0.2s; position: relative; }
.den-btn .hi { width: 26px; height: 26px; }
.den-btn:hover, .den-btn.on { border-radius: 14px; background: var(--violet-2); --ic-f: rgba(255, 255, 255, 0.35); }
.den-btn:hover .hi, .den-btn.on .hi { color: #fff; }
.den-btn.on::before { content: ''; position: absolute; left: -12px; width: 5px; height: 30px; border-radius: 0 4px 4px 0; background: var(--app-text); }
.den-btn.add { color: var(--ring); }
.den-btn.add:hover { background: var(--ring); color: #0d0a1f; }
.rail-sep { width: 28px; height: 2px; background: var(--line-2); border-radius: 2px; }
.app-side { background: var(--app-side); display: flex; flex-direction: column; min-width: 0; }
.app-den { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.cap { font-size: 0.72rem; font-weight: 700; color: var(--ring); background: color-mix(in oklab, var(--ring) 16%, transparent); padding: 2px 8px; border-radius: 999px; }
.app-cat { margin: 14px 14px 4px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-muted); }
.app-ch { display: flex; align-items: center; gap: 8px; margin: 1px 8px; padding: 6px 8px; border-radius: 8px; border: 0; background: transparent; color: var(--app-muted) !important; text-align: left; }
.app-ch .ic { opacity: 0.8; }
.app-ch:hover { background: var(--app-hover); color: var(--app-text) !important; }
.app-ch.on { background: var(--app-sel); color: var(--app-text) !important; font-weight: 700; }
.unread { margin-left: auto; background: #ff5e5e; color: #fff; font-size: 0.7rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }
.app-vm { list-style: none; margin: 2px 0 0; padding: 0 8px 0 30px; display: grid; gap: 4px; }
.app-vm li { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 8px; color: var(--app-muted); font-size: 0.86rem; }
.app-vm .st-muted { color: #ff6b6b; margin-left: auto; }
.live { margin-left: auto; font-size: 0.62rem; font-weight: 800; background: #ff5e5e; color: #fff; padding: 1px 6px; border-radius: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: block; }
.av-sm { width: 26px; height: 26px; }
.app-vm li.speaking .av, .app-members .speaking .av { box-shadow: 0 0 0 2px var(--app-side), 0 0 0 4px var(--ring); }
.app-vm li.speaking { color: var(--app-text); }
.app-me { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px; background: color-mix(in oklab, var(--app-rail) 70%, var(--app-side)); }
.me-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; margin-right: auto; }
.me-name small { color: var(--app-muted); font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-btn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 0; background: transparent; color: var(--app-muted) !important; flex: none; }
.me-btn:hover { background: var(--app-hover); color: var(--app-text) !important; }
.me-btn.off { color: #ff6b6b !important; }
.app-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.app-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); min-height: 50px; }
.head-ch { display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; }
.head-ch .ic { color: var(--app-muted); }
.head-topic { color: var(--app-muted); padding-left: 10px; border-left: 1px solid var(--line-2); font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fp { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.76rem; border: 1px solid var(--line-2); background: transparent; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.fp .hi { width: 18px; height: 18px; }
.fp:hover { border-color: var(--ring); }
.side-toggle { display: none; border: 0; background: transparent; padding: 4px; border-radius: 8px; }
.app-body { flex: 1; min-height: 0; position: relative; }
.app-msgs { position: absolute; inset: 0; overflow-y: auto; padding: 14px 6px 8px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.msg { display: flex; gap: 12px; padding: 6px 12px; border-radius: 10px; }
.msg:hover { background: var(--app-hover); }
.msg.fresh { animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.msg-b { min-width: 0; }
.msg-h { display: flex; align-items: baseline; gap: 8px; }
.msg-h time { font-size: 0.72rem; color: var(--app-muted); }
.msg-t { overflow-wrap: anywhere; }
.msg-file { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: var(--app-side); border: 1px solid var(--line); }
.msg-file span { display: flex; flex-direction: column; line-height: 1.25; }
.msg-file small { color: var(--app-muted); font-size: 0.72rem; }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.react { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 5px; border-radius: 8px; border: 1px solid var(--line); background: var(--app-side); font-size: 0.78rem; font-weight: 700; }
.react .hi { width: 18px; height: 18px; }
.react.mine { border-color: var(--violet-2); background: var(--violet-soft); }
.typing { display: flex; align-items: center; gap: 8px; padding: 4px 16px; font-size: 0.78rem; color: var(--app-muted); }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--app-muted); animation: blink 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 50% { opacity: 0.25; transform: translateY(-2px); } }
.app-compose { display: flex; align-items: center; gap: 6px; margin: 4px 14px 14px; padding: 4px 6px; border-radius: 12px; background: var(--app-side); border: 1px solid var(--line); }
.cin { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--app-text); font: inherit; padding: 8px 4px; }
.cin:focus { outline: none; }
.app-compose:focus-within { border-color: var(--violet-2); }
.cbtn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--app-muted) !important; flex: none; }
.cbtn:hover { background: var(--app-hover); }
.cbtn.send { color: var(--violet-2) !important; }
.app-voice { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.share { position: relative; flex: 1; min-height: 0; border-radius: 14px; overflow: hidden; background: #0d0a1f; }
.share img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.app-voice .tiles:only-child, .share[style*='none'] + .tiles { flex: 1; }
.tile { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--app-side); border: 2px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.tile img { width: 44%; height: auto; border-radius: 50%; }
.tile.speaking { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 30%, transparent); }
.tile-name { position: absolute; left: 8px; bottom: 6px; font-size: 0.7rem; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); color: #fff; display: inline-flex; gap: 6px; align-items: center; }
.vbar { display: flex; justify-content: center; gap: 10px; }
.vb { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--app-side); color: var(--app-text) !important; }
.vb.on { background: var(--violet-2); color: #fff !important; }
.vb.off { background: #ff5e5e; color: #fff !important; }
.vb.hang { background: #e5484d; color: #fff !important; }
.app-members { background: var(--app-side); padding-bottom: 12px; overflow: hidden; }
.app-members ul { list-style: none; margin: 0; padding: 0 8px; display: grid; gap: 4px; }
.app-members li { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 8px; }
.app-members li span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.app-members small { color: var(--app-muted); font-size: 0.72rem; }
.mem-note { margin: 16px 12px 0; font-size: 0.76rem; color: var(--app-muted); display: flex; gap: 8px; align-items: flex-start; }
.pv-toast { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); width: min(92%, 440px); background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 12px; font-size: 0.84rem; box-shadow: var(--shadow-lg); z-index: 5; animation: pop 0.3s; }
@container appwin (max-width: 980px) { .app { grid-template-columns: 64px 200px minmax(0, 1fr); } .app-members { display: none; } }
@container appwin (max-width: 520px) {
  .app { grid-template-columns: minmax(0, 1fr); height: 500px; position: relative; }
  .app-rail { display: none; }
  .app-side { position: absolute; inset: 0 25% 0 0; z-index: 4; transform: translateX(-102%); transition: transform 0.25s; box-shadow: var(--shadow-lg); }
  .app.show-side .app-side { transform: none; }
  .side-toggle { display: grid; }
  .hide-sm { display: none !important; }
  .appwin-url { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp span { display: none; }
}
@container appwin (max-width: 360px) { .app-side { inset: 0 12% 0 0; } .msg { gap: 8px; padding: 6px 8px; } .msg .av { width: 32px; height: 32px; } }

/* ---------- Sections ---------- */

.band { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.band-deep { background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--bg-2) 85%, transparent) 12%, color-mix(in oklab, var(--bg-2) 85%, transparent) 88%, transparent); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.sec-head.left { text-align: left; margin-left: 0; }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.sec-head p:not(.kicker) { color: var(--muted); margin-top: 16px; font-size: 1.08rem; }
.pic { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--panel-2); }
.pic img { display: block; width: 100%; height: auto; }
.ticks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.ticks .ic { color: var(--ring); margin-top: 4px; }

.howto { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.howto-step { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.howto-step .pic { border: 0; border-radius: 0; box-shadow: none; }
.howto-b { padding: 22px 24px 26px; position: relative; }
.howto-n { position: absolute; top: -26px; left: 22px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, #ff9a4d, #ff5e3a); box-shadow: 0 8px 20px -6px rgba(255, 94, 58, 0.7); }
.howto-step h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.howto-step p { color: var(--muted); margin-top: 10px; }
.qr-demo { margin-top: 40px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.qr-card { text-align: center; }
.qr-svg { background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 0 0 6px var(--violet-soft); }
.qr-svg svg { display: block; width: 100%; height: auto; }
.qr-card p { font-size: 0.82rem; color: var(--soft); margin-top: 14px; display: flex; gap: 8px; text-align: left; }
.qr-copy h3 { font-size: 1.6rem; }
.qr-copy > p { color: var(--muted); margin-top: 12px; }
@media (max-width: 900px) { .howto { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } .qr-demo { grid-template-columns: 1fr; } .qr-card { max-width: 260px; margin: 0 auto; } }

.private-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.private-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.private-list li { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.private-list h3 { font-size: 1.15rem; margin-top: 12px; }
.private-list p { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }
.honest { margin-top: 20px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--fire-soft); color: var(--text); font-size: 0.95rem; }
.private-art { display: grid; gap: 18px; position: sticky; top: 90px; }
.path-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.path-row { display: flex; align-items: center; gap: 8px; }
.node { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; background: var(--panel-2); border: 1px solid var(--line); padding: 6px 10px; border-radius: 10px; white-space: nowrap; }
.node.srv { opacity: 0.55; text-decoration: line-through; font-weight: 600; }
.wire { flex: 1; height: 3px; border-radius: 2px; background: var(--line-2); position: relative; overflow: hidden; min-width: 12px; }
.wire.direct { background: color-mix(in oklab, var(--ring) 35%, transparent); }
.wire.direct i { position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: var(--ring); border-radius: 2px; animation: flow 1.8s linear infinite; }
@keyframes flow { to { left: 100%; } }
.path-cap { font-size: 0.82rem; color: var(--soft); margin: 8px 0 16px; }
.path-cap:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .private-grid { grid-template-columns: 1fr; } .private-art { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
@media (max-width: 600px) { .private-list { grid-template-columns: 1fr; } .path-row .node { font-size: 0.75rem; padding: 5px 7px; } .path-row .hi { display: none; } }

.feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); transition: transform 0.2s, border-color 0.2s; }
.feat:hover { transform: translateY(-3px); border-color: var(--line-2); }
.feat h3 { font-size: 1.18rem; margin-top: 14px; }
.feat p { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }
.campfire-row { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.campfire-row h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.campfire-row p { color: var(--muted); margin: 14px 0 18px; }
.campfire-row .more { margin-right: 20px; margin-bottom: 8px; }
@media (max-width: 1100px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .campfire-row { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .feats { grid-template-columns: 1fr; } }

.uses { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.use { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.use .pic { border: 0; border-radius: 0; box-shadow: none; height: 100%; }
.use .pic img { height: 100%; object-fit: cover; }
.use-b { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.use h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.use p { color: var(--muted); font-size: 0.95rem; flex: 1; }
@media (max-width: 1100px) { .uses { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; } }
@media (max-width: 600px) { .use { grid-template-columns: 1fr; } .use .pic img { height: auto; } }

.tbl-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { font-family: var(--display); font-size: 1.1rem; font-weight: 650; background: var(--panel-2); }
.cmp thead th .hi { margin-right: 8px; }
.cmp tbody th { font-weight: 700; width: 22%; }
.cmp td { color: var(--muted); }
.cmp .us, .cmp td:last-child { background: var(--violet-soft); color: var(--text); }
@media (max-width: 700px) {
  .cmp { min-width: 0; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100% !important; }
  .cmp tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .cmp tbody tr:last-child { border-bottom: 0; }
  .cmp th, .cmp td { border: 0 !important; padding: 6px 18px; }
  .cmp th { font-family: var(--display); font-size: 1.05rem; padding-top: 12px; }
  .cmp td::before { content: attr(data-label); display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
  .cmp td:last-child { border-radius: 10px; margin: 4px 0 10px; }
}
.compare-note { text-align: center; color: var(--muted); margin-top: 20px; }

.mesh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.mesh-grid p { color: var(--muted); margin-top: 14px; }
@media (max-width: 860px) { .mesh-grid { grid-template-columns: 1fr; } }

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-grid .sec-head .pic { margin-top: 28px; }
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.faq-item summary { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 16px 20px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: var(--body); font-size: 1.04rem; font-weight: 700; line-height: 1.35; }
.chev { transition: transform 0.2s; color: var(--soft); }
.faq-item[open] .chev { transform: rotate(90deg); }
.faq-a { padding: 0 20px 18px; color: var(--muted); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .sec-head .pic { display: none; } }

.guide-grid { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.guide-card { display: flex; gap: 16px; padding: 20px; height: 100%; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transition: transform 0.2s, border-color 0.2s; }
.guide-card:hover { color: var(--text); transform: translateY(-3px); border-color: var(--violet); }
.guide-card span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.guide-card b { font-family: var(--display); font-size: 1rem; font-weight: 700; line-height: 1.25; }
.guide-card small { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.guide-card.big { flex-direction: column; padding: 0; overflow: hidden; }
.guide-card.big .pic { border: 0; border-radius: 0; box-shadow: none; }
.guide-card.big .gc-b { padding: 18px 20px 22px; }


/* ---------- Landing: the den at night ---------- */

.ic, .hi { display: inline-block; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); margin-top: 20px; max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 560px) { .hero-cta .btn { flex: 1 1 100%; justify-content: center; } }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fire); background: var(--fire-soft); padding: 6px 14px 6px 10px; border-radius: 999px; margin-bottom: 18px; }
.page-home .kicker { color: var(--home-text); background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); }
.page-home .site-foot { margin-top: 0; }
.page-home .foot-ridge { display: none; }
.page-home .lineup { margin-bottom: 0; }


.mega { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; font-size: clamp(2.1rem, 3.9vw, 4.3rem); text-wrap: balance; }
.mega-md { font-size: clamp(1.75rem, 3.5vw, 3.3rem); line-height: 1.02; }
.mega-glow { display: block; background: linear-gradient(95deg, #ffd166, #ff8a3d 45%, #ff7eb3); -webkit-background-clip: text; background-clip: text; color: transparent; }

.page-home main { background: var(--home-bg); color: var(--home-text); overflow-x: clip; }
.page-home main a:not(.btn-big):not(.guide-card) { color: var(--home-link); }
.page-home .topbar { background: color-mix(in oklab, var(--home-top) 70%, transparent); border-bottom-color: transparent; }

/* Buttons */
.btn-big { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 28px; border-radius: 999px; font-family: var(--body); font-weight: 800; font-size: 1.08rem; text-decoration: none; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; text-align: center; }
.btn-big:hover { transform: translateY(-2px); }
.btn-big .hi { width: 26px; height: 26px; }
.btn-white { background: #ffffff; color: #1b1240 !important; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.6); }
.btn-white:hover { color: #6a45f5 !important; box-shadow: 0 18px 40px -12px rgba(124, 92, 255, 0.8); }
.btn-night { background: #1b1240; color: #ffffff !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16); }
.btn-night:hover { background: #2a1d63; }

/* Hero */
.hx { position: relative; padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 6vw, 96px); overflow: hidden; isolation: isolate; }
.hx-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-sky::before { content: ''; position: absolute; inset: 0; background-image:
  radial-gradient(2px 2px at 6% 14%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 22% 30%, #fff, transparent 60%),
  radial-gradient(2px 2px at 38% 8%, #fff, transparent 60%), radial-gradient(1.4px 1.4px at 52% 22%, #fff, transparent 60%),
  radial-gradient(2px 2px at 66% 6%, #fff, transparent 60%), radial-gradient(1.6px 1.6px at 80% 26%, #fff, transparent 60%),
  radial-gradient(1.4px 1.4px at 94% 12%, #fff, transparent 60%), radial-gradient(1.8px 1.8px at 12% 62%, #fff, transparent 60%),
  radial-gradient(1.4px 1.4px at 46% 70%, #fff, transparent 60%), radial-gradient(2px 2px at 88% 66%, #fff, transparent 60%);
  opacity: var(--star-o); }
.float { position: absolute; height: auto; filter: drop-shadow(0 20px 30px rgba(10, 4, 40, 0.45)); animation: drift 9s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateY(-16px) rotate(4deg); } }
.f-moon { width: 120px; left: 3%; top: 6%; filter: blur(3px); opacity: 0.85; animation-duration: 12s; }
.f-paw { width: 64px; left: 44%; bottom: 8%; filter: blur(2px); opacity: 0.7; animation-delay: -2s; }
.f-bubble { width: 84px; right: 2%; top: 4%; filter: blur(1.5px); animation-delay: -6s; }
.f-star1 { width: 30px; left: 2%; top: 56%; animation-duration: 6s; }
.f-star2 { width: 22px; right: 34%; top: 6%; animation-duration: 7s; }
.hx-grid { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.hx-copy .mega { color: var(--home-text); }
.hx-lede { font-size: clamp(1.1rem, 1.45vw, 1.32rem); line-height: 1.55; margin-top: 22px; max-width: 42ch; color: var(--home-muted); font-weight: 500; }
.hx-steps { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hx-steps li { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); font-weight: 700; color: var(--home-text); }
.hx-steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 0.85rem; color: #fff; background: linear-gradient(135deg, #ff9a4d, #ff5e3a); }
.hx-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hx-cta .ic { width: 0.9em; height: 0.9em; }
.hx-note { margin-top: 20px; color: var(--home-muted); font-size: 0.95rem; display: flex; gap: 8px; align-items: flex-start; }
.hx-note .ic { color: var(--ring); margin-top: 3px; }
.hx-copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hx-copy > :nth-child(2) { animation-delay: 0.08s; }
.hx-copy > :nth-child(3) { animation-delay: 0.16s; }
.hx-copy > :nth-child(4) { animation-delay: 0.24s; }
.hx-copy > :nth-child(5) { animation-delay: 0.32s; }
.hx-demo { animation: rise 1s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 1180px) {
  .hx-grid { grid-template-columns: 1fr; }
  .hx-copy { text-align: center; }
  .hx-lede { margin-inline: auto; }
  .hx-steps, .hx-cta, .hx-note { justify-content: center; }
  .hx-demo { max-width: 820px; width: 100%; margin: 0 auto; }
  .f-moon { width: 80px; left: -24px; top: 1%; }
  .f-paw { display: none; }
}
@media (max-width: 640px) {
  .hx-cta .btn-big { flex: 1 1 100%; }
  .hx-steps li { padding-right: 12px; font-size: 0.92rem; }
  .f-moon { width: 56px; left: -16px; opacity: 0.6; }
  .f-bubble { width: 50px; right: -12px; top: 0; }
  .f-star1, .f-star2 { display: none; }
}

/* The two window demo */
.dm { position: relative; }
.dm-stage { display: grid; grid-template-columns: minmax(0, 1fr) clamp(64px, 8vw, 120px) clamp(168px, 30%, 206px); align-items: center; }
.dm-win, .dm-phone { position: relative; z-index: 1; background: #17123a; color: #eee9ff; box-shadow: 0 40px 80px -30px rgba(5, 2, 30, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1); font-size: 0.88rem; line-height: 1.4; }
.dm-win { border-radius: 18px; overflow: hidden; }
.dm-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #0f0b2b; font-size: 0.74rem; font-weight: 700; color: #a69cd8; }
.dm-bar-ph { justify-content: center; background: transparent; padding: 2px 0 6px; }
.dm-screen { position: relative; height: 290px; }
.dm-pane { position: absolute; inset: 0; padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.45s ease, transform 0.45s ease; pointer-events: none; }
.dm[data-step="0"] .dm-w0, .dm[data-step="1"] .dm-w1, .dm[data-step="2"] .dm-w1, .dm[data-step="3"] .dm-w1, .dm[data-step="4"] .dm-w1, .dm[data-step="5"] .dm-w2, .dm[data-step="6"] .dm-w3,
.dm[data-step="0"] .dm-p0, .dm[data-step="1"] .dm-p0, .dm[data-step="2"] .dm-p0, .dm[data-step="3"] .dm-p0, .dm[data-step="4"] .dm-p1, .dm[data-step="5"] .dm-p2, .dm[data-step="6"] .dm-p3 { opacity: 1; transform: none; }
.page-home .dm .hi { color: #eee9ff; --ic-f: #4b3c9e; --ic-a: #ff9a4d; }
.dm-den { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.dm-t { font-weight: 800; font-size: 1rem; }
.dm-muted { color: #a69cd8; font-size: 0.82rem; display: flex; align-items: center; gap: 8px; }
.dm-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 800; background: #8b6bff; color: #fff; }
.page-home .dm-cta .hi { color: #fff; --ic-f: rgba(255, 255, 255, 0.3); --ic-a: #ffd166; }
.dm[data-step="0"] .dm-cta { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(139, 107, 255, 0.25); } }
.dm-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dm-chip { display: flex; align-items: baseline; gap: 6px; padding: 8px 10px; border-radius: 10px; background: #221a52; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); font-family: var(--mono); font-weight: 700; font-size: 0.92rem; }
.dm-chip small, .dm-box small { color: #8f84c8; font-size: 0.68rem; font-family: var(--body); }
.dm[data-step="1"] .dm-w1 .dm-chip, .dm[data-step="5"] .dm-p2 .dm-chip { animation: chip 0.45s calc(var(--i) * 0.12s + 0.2s) cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
@keyframes chip { from { opacity: 0; transform: translateY(8px) scale(0.9); } }
.dm-wait { margin-top: 2px; }
.dm-spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: #3ee6a0; animation: spin 0.9s linear infinite; }
.dm-spin-lg { width: 40px; height: 40px; border-width: 4px; align-self: center; }
@keyframes spin { to { transform: rotate(1turn); } }
.dm-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dm-box { position: relative; display: flex; align-items: baseline; gap: 6px; padding: 8px 10px; min-height: 38px; border-radius: 10px; background: #0f0b2b; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14); font-family: var(--mono); font-size: 0.92rem; transition: box-shadow 0.25s; }
.dm-box b { opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s; }
.dm-box.fill { box-shadow: inset 0 0 0 1.5px #3ee6a0; }
.dm-box.fill b { opacity: 1; transform: none; }
.dm[data-step="3"] .dm-p0 .dm-box:first-child:not(.fill)::after, .dm[data-step="3"] .dm-p0 .dm-box.fill + .dm-box:not(.fill)::after,
.dm[data-step="5"] .dm-w2 .dm-box:first-child:not(.fill)::after, .dm[data-step="5"] .dm-w2 .dm-box.fill + .dm-box:not(.fill)::after { content: ''; position: absolute; left: 28px; top: 50%; width: 2px; height: 1em; margin-top: -0.5em; background: #ffd166; animation: caret 0.8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.dm-ok { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 800; color: #3ee6a0; }
.dm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dm-tile { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 12px; background: #2a2163; border: 2px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.dm-tile img { width: 38%; height: auto; }
.dm-tile i { position: absolute; left: 6px; bottom: 5px; font-style: normal; font-size: 0.68rem; font-weight: 700; padding: 0 6px; border-radius: 5px; background: rgba(0, 0, 0, 0.5); }
.dm-tile.speaking { border-color: #3ee6a0; box-shadow: 0 0 0 4px rgba(62, 230, 160, 0.22); }
.dm-msg { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #221a52; font-size: 0.82rem; }
.dm-msg img { width: 24px; height: 24px; flex: none; }
.dm-msg b { margin-right: 4px; color: #ffb27a; }
.dm[data-step="6"] .dm-msg { animation: chip 0.5s 1.2s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.dm-phone { border-radius: 30px; padding: 12px 9px; aspect-ratio: 9 / 17.5; display: flex; flex-direction: column; background: #120d33; box-shadow: 0 30px 60px -20px rgba(5, 2, 30, 0.9), inset 0 0 0 3px #3a2c86; font-size: 0.8rem; }
.dm-phone .ph-notch { display: block; margin: 0 auto 6px; width: 34%; height: 7px; border-radius: 99px; background: #2a2160; }
.dm-phone .dm-screen { flex: 1; height: auto; min-height: 0; }
.dm-phone .dm-pane { padding: 8px 6px; gap: 10px; }
.dm-phone .dm-t { font-size: 0.88rem; }
.dm-boxes-ph, .dm-chips-ph { grid-template-columns: 1fr 1fr; gap: 6px; }
.dm-phone .dm-box, .dm-phone .dm-chip { padding: 6px 8px; min-height: 32px; font-size: 0.8rem; }
.dm-p1 { align-items: center; text-align: center; }
.dm-tiles-ph { grid-template-columns: 1fr; }
.dm-tiles-ph .dm-tile { aspect-ratio: 16 / 8; }
.dm-link { position: relative; align-self: stretch; container-type: size; z-index: 2; }
.dm-wire { position: absolute; left: -6px; right: -6px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 6px, transparent 6px 12px); transition: background 0.4s; }
.dm[data-step="6"] .dm-wire { background: #3ee6a0; box-shadow: 0 0 14px rgba(62, 230, 160, 0.6); }
.dm-wire i { position: absolute; top: -3px; left: 0; width: 9px; height: 9px; border-radius: 50%; opacity: 0; background: #ffd166; }
.dm[data-step="4"] .dm-wire i, .dm[data-step="6"] .dm-wire i { opacity: 1; animation: pkt 1.3s linear infinite; }
.dm-wire i:nth-child(2) { animation-delay: -0.43s !important; }
.dm-wire i:nth-child(3) { animation-delay: -0.86s !important; }
.dm[data-step="6"] .dm-wire i { background: #fff; }
.dm[data-step="6"] .dm-wire i:nth-child(2) { animation-name: pkt-back; }
@keyframes pkt { from { transform: translateX(0); } to { transform: translateX(calc(100cqw + 3px)); } }
@keyframes pkt-back { from { transform: translateX(calc(100cqw + 3px)); } to { transform: translateX(0); } }
.dm-say { position: absolute; top: calc(50% - 46px); left: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 14px 14px 14px 4px; white-space: nowrap; background: #ffffff; color: #1b1240; font-weight: 800; font-size: 0.78rem; box-shadow: 0 14px 30px -10px rgba(5, 2, 30, 0.7); opacity: 0; transform: translateX(-50%); pointer-events: none; }
.dm-say .ic { color: #6a45f5; }
.dm-say-back { top: calc(50% + 16px); border-radius: 14px 14px 4px 14px; }
.dm[data-step="2"] .dm-say-out { animation: say-r 2.4s cubic-bezier(0.45, 0, 0.3, 1) both; }
.dm[data-step="5"] .dm-say-back { animation: say-l 2.6s cubic-bezier(0.45, 0, 0.3, 1) both; }
@keyframes say-r { 0% { opacity: 0; transform: translate(-50%, 8px) scale(0.9); } 15% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; transform: translate(calc(100cqw - 50%), 0); } 100% { opacity: 0; transform: translate(calc(100cqw - 50%), 0) scale(0.9); } }
@keyframes say-l { 0% { opacity: 0; transform: translate(calc(100cqw - 50%), 8px) scale(0.9); } 15% { opacity: 1; transform: translate(calc(100cqw - 50%), 0); } 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0) scale(0.9); } }
.dm-pill { position: absolute; left: 50%; top: calc(50% + 14px); width: max-content; max-width: 150px; transform: translateX(-50%); text-align: center; padding: 4px 10px; border-radius: 10px; font-size: 0.7rem; font-weight: 800; line-height: 1.25; color: #1b1240; background: #ffd166; box-shadow: 0 10px 24px -10px rgba(5, 2, 30, 0.7); }
.dm[data-step="5"] .dm-pill { top: calc(50% - 44px); }
.dm[data-step="6"] .dm-pill { background: #3ee6a0; }
.dm-pill:empty { display: none; }
.dm-ctl { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.dm-play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #ffffff; color: #1b1240; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6); transition: transform 0.15s; }
.dm-play:hover { transform: scale(1.07); }
.dm-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.dm-step { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 0; font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer; color: var(--home-muted); background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); transition: background 0.2s, color 0.2s; }
.dm-step:hover { color: var(--home-text); }
.dm-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.76rem; background: var(--glass); }
.dm-step.done .dm-n { background: #3ee6a0; color: #0d0a1f; }
.dm-step.on { color: #1b1240; background: #ffd166; box-shadow: none; }
.dm-step.on .dm-n { background: #1b1240; color: #ffd166; }
.dm-cap { margin-top: 14px; min-height: 3em; color: var(--home-text); font-weight: 600; font-size: 1.02rem; }
.dm-note { color: var(--home-muted); font-size: 0.82rem; }
@media (max-width: 640px) {
  .dm-stage { grid-template-columns: 1fr; }
  .dm-screen { height: 230px; }
  .dm-link { height: 78px; }
  .dm-wire { left: 50%; right: auto; top: -6px; bottom: -6px; width: 3px; height: auto; margin: 0 0 0 -1.5px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0 6px, transparent 6px 12px); }
  .dm-wire i { top: 0; left: -3px; }
  .dm[data-step="4"] .dm-wire i, .dm[data-step="6"] .dm-wire i { animation-name: pkt-v; }
  .dm[data-step="6"] .dm-wire i:nth-child(2) { animation-name: pkt-v-back; }
  .dm-say { top: 4px; left: calc(50% + 12px); transform: none; }
  .dm-say-back { top: auto; bottom: 4px; left: auto; right: calc(50% + 12px); }
  .dm[data-step="2"] .dm-say-out { animation-name: say-d; }
  .dm[data-step="5"] .dm-say-back { animation-name: say-u; }
  .dm-pill, .dm[data-step="5"] .dm-pill { top: 50%; left: auto; right: calc(50% + 12px); transform: translateY(-50%); }
  .dm[data-step="2"] .dm-pill, .dm[data-step="4"] .dm-pill { right: auto; left: calc(50% + 12px); }
  .dm[data-step="2"] .dm-pill { display: none; }
  .dm-phone { width: 210px; margin: 0 auto; aspect-ratio: auto; height: 300px; }
  .dm-step:not(.on) > span:last-child { display: none; }
  .dm-step:not(.on) { padding-right: 5px; }
}
@keyframes pkt-v { from { transform: translateY(0); } to { transform: translateY(calc(100cqh + 3px)); } }
@keyframes pkt-v-back { from { transform: translateY(calc(100cqh + 3px)); } to { transform: translateY(0); } }
@keyframes say-d { 0% { opacity: 0; transform: translateY(0); } 20%, 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(calc(100cqh - 34px)); } }
@keyframes say-u { 0% { opacity: 0; transform: translateY(0); } 20%, 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(calc(34px - 100cqh)); } }

/* The 30 second tour */
.tour { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.7fr); gap: clamp(16px, 2vw, 28px); padding: clamp(10px, 1.4vw, 18px); border-radius: clamp(26px, 3vw, 40px); background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line), 0 40px 80px -40px rgba(5, 2, 30, 0.5); }
.tr-stage { display: grid; border-radius: clamp(18px, 2.4vw, 30px); overflow: hidden; background: #120d33; isolation: isolate; }
.tr-scene { grid-area: 1 / 1; position: relative; margin: 0; opacity: 0; transition: opacity 0.6s ease; overflow: hidden; }
.tr-scene.on { opacity: 1; z-index: 1; }
.tr-scene .pic { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.tr-scene .pic img { transform-origin: 60% 40%; }
.tr-scene.on .pic img { animation: kb 6s ease-out both; }
@keyframes kb { from { transform: scale(1.12) translate(1.5%, 1%); } }
.tr-cap { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 18px; color: #fff; background: rgba(13, 10, 31, 0.8); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7); opacity: 0; transform: translateY(14px); transition: opacity 0.5s 0.2s, transform 0.5s 0.2s; }
.tr-scene.on .tr-cap { opacity: 1; transform: none; }
.tr-n { flex: none; font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1; color: #ffd166; }
.tr-n small { font-size: 0.9rem; color: #a69cd8; }
.tr-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tr-txt b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; }
.tr-txt span { color: #d6ceff; font-size: 0.95rem; }
.tr-over { position: absolute; top: 16px; right: 16px; opacity: 0; transform: translateY(-10px) scale(0.95); transition: opacity 0.5s 0.6s, transform 0.5s 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
.tr-scene.on .tr-over { opacity: 1; transform: none; }
.tr-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 16px; background: #ffffff; color: #1b1240; font-weight: 800; font-size: 0.9rem; box-shadow: 0 16px 34px -12px rgba(5, 2, 30, 0.7); }
.tr-chip img { width: 32px; height: 32px; border-radius: 50%; }
.tr-chip s { font-weight: 600; font-size: 0.8rem; color: #c43a3f; }
.tr-chip .ic { color: #0f9e6a; }
.page-home .tr-chip .hi { color: #1b1240; --ic-f: #ddd3ff; --ic-a: #ff7a33; }
.tr-words { display: grid; grid-template-columns: repeat(3, auto); gap: 6px; padding: 10px; }
.tr-words i { font-style: normal; font-family: var(--mono); font-size: 0.85rem; padding: 4px 10px; border-radius: 8px; background: #efe9ff; }
.tr-bar i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #efe9ff; color: #1b1240; }
.tr-bar .on { background: #8b6bff; color: #fff; }
.tr-bar .ic { color: inherit; }
.tr-side { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 6px 2px; }
.tr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tr-ch { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 0; border-radius: 14px; background: transparent; font: inherit; font-weight: 700; text-align: left; cursor: pointer; color: var(--home-muted); overflow: hidden; transition: background 0.2s, color 0.2s; }
.tr-ch:hover { color: var(--home-text); background: var(--glass); }
.tr-ch.on { color: var(--home-text); background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); }
.tr-cn { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-size: 0.85rem; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); }
.tr-ch.on .tr-cn, .tr-ch.done .tr-cn { color: #fff; background: linear-gradient(135deg, #ff9a4d, #ff5e3a); box-shadow: none; }
.tr-fill { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 2px; overflow: hidden; }
.tr-ch.on .tr-fill { background: var(--glass-line); }
.tr-fill i { display: block; height: 100%; background: linear-gradient(90deg, #ffd166, #ff8a3d); transform: scaleX(0); transform-origin: left; }
.tr-ch.on .tr-fill i { animation: fill 5s linear forwards; animation-play-state: paused; }
.tour.playing .tr-ch.on .tr-fill i { animation-play-state: running; }
@keyframes fill { to { transform: scaleX(1); } }
.tr-play { width: 100%; min-height: 52px; }
.tr-play .ic { width: 0.95em; height: 0.95em; }
@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; }
  .tr-list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .tr-ch { justify-content: center; padding: 8px 4px 12px; }
  .tr-ct { display: none; }
  .tr-fill { left: 6px; right: 6px; }
}
@media (max-width: 640px) {
  .tr-cap { position: static; border-radius: 0; opacity: 1; transform: none; background: #17123a; padding: 14px 16px; align-items: flex-start; }
  .tr-n { font-size: 1.5rem; }
  .tr-over { top: 10px; right: 10px; }
  .tr-chip { font-size: 0.78rem; padding: 6px 10px; }
  .tr-words { padding: 6px; gap: 4px; }
  .tr-words i { font-size: 0.72rem; padding: 2px 6px; }
}

/* The live preview */
.pv-scene { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 0 70px 9%; }
.monitor { position: relative; z-index: 2; padding: 12px; border-radius: 26px; background: linear-gradient(160deg, #3a2c86, #17113f 60%); box-shadow: 0 50px 90px -30px rgba(5, 2, 30, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.monitor::after { content: ''; position: absolute; left: 50%; bottom: -46px; width: 26%; height: 46px; transform: translateX(-50%); background: linear-gradient(#251b5e, #120d33); clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); border-radius: 0 0 8px 8px; z-index: -1; }
.monitor .appwin { border-radius: 16px; box-shadow: none; }
.char { position: absolute; z-index: 4; height: auto; pointer-events: none; filter: drop-shadow(0 18px 24px rgba(5, 2, 30, 0.45)); }
.pv-scene .ch-luna { width: clamp(110px, 21%, 240px); left: -3%; bottom: 0; }
.pv-scene .ch-fang { width: clamp(64px, 9%, 110px); right: 2%; bottom: 0; }
@media (max-width: 640px) {
  .pv-scene { padding: 0 0 56px; }
  .pv-scene .ch-luna { width: 92px; left: -8px; bottom: -4px; }
  .pv-scene .ch-fang { display: none; }
}

/* Reveal on scroll (only once site.js adds .motion, so without the script nothing hides). */
.motion .rv { transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion .rv:not(.in) { opacity: 0; transform: translateY(28px); }
.more-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Honest differences */
.truths { padding: 8px 0 24px; }
.truth-list { list-style: none; margin: 0 auto; padding: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 22px; border-radius: 32px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(10px); }
.truth-list li { display: flex; gap: 14px; align-items: flex-start; padding: 8px; }
.truth-list span { display: flex; flex-direction: column; gap: 2px; }
.truth-list b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 0.92rem; letter-spacing: 0.01em; color: var(--home-text); }
.truth-list small { color: var(--home-muted); font-size: 0.92rem; }
.hi-md { width: 40px; height: 40px; }
.page-home .hi { color: var(--home-text); }
@media (max-width: 960px) { .truth-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .truth-list { grid-template-columns: 1fr; padding: 14px; } }

/* Feature panels */
.panels { display: grid; gap: clamp(40px, 7vw, 110px); padding: clamp(48px, 7vw, 110px) 0; }
.panel { width: min(100% - 32px, 1240px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: clamp(14px, 1.6vw, 22px); border-radius: clamp(28px, 4vw, 52px); background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line), 0 40px 80px -40px rgba(5, 2, 30, 0.5); scroll-margin-top: 90px; }
.panel.flip { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
.panel.flip .panel-media { order: 2; }
.panel-copy { padding: clamp(12px, 3vw, 40px); }
.panel-copy .mega { color: var(--home-text); }
.panel-copy > p:not(.kicker) { color: var(--home-muted); font-size: 1.08rem; margin: 18px 0 20px; font-weight: 500; }
.panel-media { position: relative; border-radius: clamp(22px, 3.4vw, 40px); padding: clamp(18px, 3.4vw, 48px); min-height: 380px; display: grid; place-items: center; overflow: hidden; }
.tone-pink { background: radial-gradient(90% 90% at 80% 100%, #ff7eb3, transparent 60%), linear-gradient(140deg, #3b1670, #c2185b); }
.tone-mint { background: radial-gradient(90% 90% at 20% 100%, #3ee6a0, transparent 60%), linear-gradient(140deg, #0f3b52, #0e8f63); }
.tone-fire { background: radial-gradient(90% 90% at 80% 100%, #ffd166, transparent 55%), linear-gradient(140deg, #4a1d6e, #ff5e3a); }
.tone-night { background: radial-gradient(90% 90% at 20% 0%, #9b74ff, transparent 60%), linear-gradient(140deg, #1d1650, #4b2bd1); }
.tone-gold { background: radial-gradient(90% 90% at 80% 0%, #ffe08a, transparent 55%), linear-gradient(140deg, #3a2c86, #e39b2d); }
@media (max-width: 900px) {
  .panel, .panel.flip { grid-template-columns: 1fr; }
  .panel.flip .panel-media { order: 0; }
  .panel-media { min-height: 0; }
}

/* Mocks */
.mock { width: 100%; max-width: 520px; border-radius: 22px; background: #17123a; color: #eee9ff; box-shadow: 0 30px 60px -20px rgba(5, 2, 30, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08); font-size: 0.92rem; line-height: 1.45; position: relative; }
.mock .av { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.mock .av-sm { width: 34px; height: 34px; }
.mock .av-xs { width: 24px; height: 24px; }
.mock .hi { color: #eee9ff; --ic-f: #4b3c9e; --ic-a: #ff9a4d; }
.mk-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.mk-head .ic { color: #a69cd8; }
.mk-sub { color: #a69cd8; font-size: 0.8rem; margin-left: 4px; }
.mk-msg { display: flex; gap: 12px; padding: 12px 18px 4px; }
.mk-n { font-weight: 800; }
.mk-n time { font-weight: 500; color: #a69cd8; font-size: 0.72rem; margin-left: 6px; }
.spoiler { background: #0c0921; color: #0c0921; border-radius: 4px; padding: 0 4px; }
.mk-rx { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rx { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 5px; border-radius: 9px; background: #221a52; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); font-size: 0.8rem; }
.rx .hi { width: 20px; height: 20px; }
.rx.mine { box-shadow: inset 0 0 0 1.5px #9b74ff; background: rgba(155, 116, 255, 0.2); }
.mk-picker { position: absolute; right: -14px; top: 38%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px; border-radius: 16px; background: #0f0b2b; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1); animation: drift 6s ease-in-out infinite; }
.mk-picker span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; }
.mk-picker span:nth-child(6) { background: rgba(155, 116, 255, 0.25); }
.mk-picker .hi { width: 26px; height: 26px; }
.mk-compose { display: flex; align-items: center; gap: 10px; margin: 12px 14px 14px; padding: 10px 14px; border-radius: 12px; background: #221a52; color: #a69cd8; }
.mk-compose span { flex: 1; }
.mock-share { padding: 12px; display: grid; gap: 10px; }
.mk-screen { position: relative; border-radius: 14px; overflow: hidden; }
.mk-screen img { display: block; width: 100%; height: auto; }
.mk-live { position: absolute; top: 10px; right: 10px; background: #e5484d; color: #fff; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; }
.mk-who, .mk-tile span { position: absolute; left: 8px; bottom: 8px; display: inline-flex; gap: 6px; align-items: center; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.mk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk-tile { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; background: #2a2163; display: grid; place-items: center; border: 2px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.mk-tile img { width: 40%; height: auto; }
.mk-tile.speaking { border-color: var(--ring); box-shadow: 0 0 0 4px rgba(62, 230, 160, 0.25); }
.mk-bar, .ph-bar { display: flex; justify-content: center; gap: 10px; }
.mk-bar span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #2a2163; }
.mk-bar .on { background: #8b6bff; }
.mk-bar .hang { background: #e5484d; }
.mock-voice { padding: 14px; }
.mk-cat { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #a69cd8; margin: 4px 6px 10px; }
.mk-vc { padding: 6px; border-radius: 12px; margin-bottom: 6px; }
.mk-vc.busy { background: rgba(255, 255, 255, 0.05); }
.mk-vc > p:first-child { display: flex; align-items: center; gap: 8px; padding: 4px 6px; }
.mk-count { margin-left: auto; font-size: 0.72rem; font-weight: 800; color: #3ee6a0; }
.mk-vp { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 30px; color: #c9bff5; }
.mk-vp.speaking .av { box-shadow: 0 0 0 2px #17123a, 0 0 0 4px #3ee6a0; }
.mk-vp em { margin-left: auto; font-style: normal; font-size: 0.62rem; font-weight: 800; background: #e5484d; color: #fff; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; }
.mk-muted { margin-left: auto; color: #ff6b6b; }
.mk-join { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #8b6bff; color: #fff; font-weight: 700; font-size: 0.86rem; }
.mock-members { padding: 16px; }
.mk-cap { height: 8px; border-radius: 99px; background: #2a2163; margin: 0 6px 14px; overflow: hidden; }
.mk-cap i { display: block; height: 100%; background: linear-gradient(90deg, #3ee6a0, #9b74ff); border-radius: 99px; }
.mk-mem { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 10px; }
.mk-mem:hover { background: rgba(255, 255, 255, 0.05); }
.mk-mem > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.mk-mem small { color: #a69cd8; font-size: 0.76rem; }
.mk-mem.off { opacity: 0.45; }
.mk-avw { position: relative; display: inline-block; }
.st { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #17123a; }
.st-online { background: #3ee6a0; }
.st-voice { background: #3ee6a0; box-shadow: 0 0 0 3px rgba(62, 230, 160, 0.3); }
.st-live { background: #e5484d; }
.st-idle { background: #ffd166; }
.mock-profile { padding: 0 0 20px; overflow: hidden; max-width: 420px; }
.mk-banner { height: 96px; background: linear-gradient(120deg, #6a45f5, #ff8a3d); }
.mk-pav { width: 96px; height: 96px; border-radius: 50%; margin: -48px 0 0 20px; border: 6px solid #17123a; display: block; }
.mk-uname { font-family: var(--display); font-weight: 800; font-size: 1.4rem; padding: 8px 22px 12px; }
.mk-uname span { font-family: var(--body); font-weight: 600; font-size: 0.8rem; color: #a69cd8; margin-left: 6px; }
.mk-field { margin: 0 18px 10px; padding: 10px 14px; border-radius: 12px; background: #221a52; display: flex; flex-direction: column; gap: 2px; }
.mk-field small { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #a69cd8; }
.mk-field .mono { font-family: var(--mono); display: inline-flex; gap: 8px; align-items: center; }
.mk-field .hi { width: 20px; height: 20px; }
.mk-nots { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 18px 0; }
.mk-nots span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; background: rgba(229, 72, 77, 0.16); color: #ffb0b3; font-weight: 700; font-size: 0.82rem; text-decoration: line-through; }
.mk-nots .ic { color: #ff6b6b; }
@media (max-width: 520px) { .mk-picker { display: none !important; } .mk-picker-off { right: 6px; top: auto; bottom: 60px; grid-template-columns: repeat(4, 1fr); } .mk-picker span { width: 30px; height: 30px; } .mk-picker .hi { width: 20px; height: 20px; } }

/* Marquee */
.marquee { overflow: hidden; padding: 26px 0; background: linear-gradient(90deg, #ff8a3d, #ff5e7e 40%, #8b6bff); transform: rotate(-2deg); margin: 10px -20px; box-shadow: 0 20px 50px -20px rgba(5, 2, 30, 0.6); }
.mq-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.mq-row { display: flex; align-items: center; gap: 34px; padding-right: 34px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 3rem); color: #ffffff; white-space: nowrap; letter-spacing: -0.01em; }
.mq-mark { width: 1.2em; height: 1.2em; color: #1b1240; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Closing */
.closing { position: relative; padding: clamp(80px, 10vw, 140px) 0 0; text-align: center; overflow: hidden; isolation: isolate; }
.closing-in .mega { color: var(--home-text); max-width: 15ch; margin: 0 auto; }
.closing-in p { color: var(--home-muted); font-size: 1.15rem; max-width: 56ch; margin: 22px auto 32px; font-weight: 500; }
.c-moon { width: 110px; right: 8%; top: 10%; filter: blur(2px); }
.c-star1 { width: 40px; left: 10%; top: 20%; }
.c-star2 { width: 26px; left: 24%; top: 60%; }
.c-flame { width: 60px; right: 22%; top: 52%; filter: blur(3px); opacity: 0.7; }
.lineup { display: flex; justify-content: center; align-items: flex-end; gap: clamp(0px, 1vw, 16px); margin-top: clamp(40px, 6vw, 80px); padding: 0 16px; }
.lineup img { width: clamp(64px, 11vw, 170px); height: auto; margin-bottom: -6px; filter: drop-shadow(0 18px 24px rgba(5, 2, 30, 0.45)); }
.lineup .lu-luna { width: clamp(120px, 20vw, 320px); margin: 0 -2vw -10px; }
@media (max-width: 520px) { .lineup img:first-child, .lineup img:last-child { display: none; } }

/* Footer wordmark */
.wordmark { display: flex; align-items: center; justify-content: center; gap: 0.12em; margin: 0; padding: 10px 0 0; font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 12.5vw, 16rem); line-height: 0.82; letter-spacing: -0.04em; color: #2a2068; overflow: hidden; user-select: none; text-transform: lowercase; }
.wm-mark { width: 0.8em; height: 0.8em; flex: none; color: #2a2068; }

/* ---------- Guides ---------- */

.guide-hero { padding: 40px 0 36px; }
.guide-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.guide-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.88rem; color: var(--soft); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--violet); }
.guide-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--soft); font-size: 0.9rem; align-items: center; }
.lang-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
@media (max-width: 860px) { .guide-hero-grid { grid-template-columns: 1fr; } .guide-pic { max-width: 560px; } }
.guide-grid.big { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.page-guide .guide-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 80px; margin-bottom: 0; }
.side-toc { position: sticky; top: 92px; font-size: 0.9rem; }
.side-toc-title { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; color: var(--soft); margin-bottom: 10px; }
.side-toc ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: grid; gap: 4px; }
.side-toc a { display: block; color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 8px; line-height: 1.35; }
.side-toc a:hover, .side-toc a.on { color: var(--text); background: var(--violet-soft); }
@media (max-width: 1000px) { .guide-layout { grid-template-columns: minmax(0, 1fr); } .side-toc { position: static; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; } }
.guide-prose { max-width: 760px; font-size: 1.06rem; min-width: 0; }
.guide-prose section { margin-bottom: 44px; scroll-margin-top: 90px; }
.guide-prose h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); margin-bottom: 16px; }
.guide-prose h3 { font-size: 1.25rem; margin: 26px 0 10px; }
.guide-prose p, .guide-prose ul, .guide-prose ol, .guide-prose blockquote, .guide-prose table { margin: 0 0 16px; }
.guide-prose ul, .guide-prose ol { padding-left: 1.3em; }
.guide-prose li { margin-bottom: 6px; }
.guide-prose li::marker { color: var(--fire); }
.guide-prose p, .guide-prose li { color: color-mix(in oklab, var(--text) 88%, var(--muted)); }
.guide-prose strong { color: var(--text); }
.guide-prose blockquote { border-left: 4px solid var(--violet); padding: 6px 0 6px 18px; color: var(--muted); font-style: italic; }
.guide-prose code:not(pre code) { font-family: var(--mono); font-size: 0.88em; background: var(--violet-soft); padding: 2px 6px; border-radius: 6px; }
.guide-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; font-size: 0.95rem; }
.guide-prose th, .guide-prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide-prose thead th { background: var(--panel-2); font-weight: 700; }
.guide-prose tbody tr:last-child > * { border-bottom: 0; }
.guide-prose .note { background: var(--fire-soft); border-radius: 16px; padding: 16px 20px; margin: 0 0 20px; border-left: 4px solid var(--fire); }
.guide-prose .note p:last-child { margin: 0; }
.fig { margin: 8px 0 28px; }
.fig figcaption { font-size: 0.86rem; color: var(--soft); margin-top: 10px; text-align: center; }
.guide-faq .faq-item summary h3 { margin: 0; }
.cta-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px; margin: 20px 0 48px; border-radius: 24px; background: radial-gradient(80% 120% at 0% 100%, rgba(255, 138, 61, 0.2), transparent 60%), var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-card h2 { margin: 0 0 8px; }
.cta-card p { color: var(--muted); }
.cta-card .btn { margin-top: 16px; }
@media (max-width: 640px) { .cta-card { grid-template-columns: 1fr; } }
.related h2 { margin-bottom: 18px; }

/* Code frames (Shiki light-plus and dark-plus, chosen by theme). */
.frame { margin: 0 0 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #ffffff; box-shadow: var(--shadow); }
.frame-bar { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; background: #f3f3f3; border-bottom: 1px solid #e5e5e5; color: #333; font-size: 0.8rem; }
.frame-tab { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); }
.frame-copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.78rem; border: 1px solid #d0d0d0; background: #fff; color: #333; padding: 3px 10px; border-radius: 8px; cursor: pointer; }
.frame pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 0.86rem; line-height: 1.6; background: #ffffff; }
.frame code { font-family: inherit; font-variant-ligatures: none; }
.shiki span { color: var(--shiki-light); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .frame, :root:not([data-theme='light']) .frame pre { background: #1e1e1e; }
  :root:not([data-theme='light']) .frame-bar { background: #252526; border-color: #333; color: #ccc; }
  :root:not([data-theme='light']) .frame-copy { background: #2d2d2d; border-color: #444; color: #ccc; }
  :root:not([data-theme='light']) .shiki span { color: var(--shiki-dark); }
}
:root[data-theme='dark'] .frame, :root[data-theme='dark'] .frame pre { background: #1e1e1e; }
:root[data-theme='dark'] .frame-bar { background: #252526; border-color: #333; color: #ccc; }
:root[data-theme='dark'] .frame-copy { background: #2d2d2d; border-color: #444; color: #ccc; }
:root[data-theme='dark'] .shiki span { color: var(--shiki-dark); }

.index-hero { padding-bottom: 0; }
.index-hero .lede { max-width: 70ch; }

/* ---------- 404 ---------- */

.nf { padding: 60px 0 100px; }
.nf-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.nf h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.nf-note { margin-top: 22px; color: var(--soft); }
@media (max-width: 800px) { .nf-in { grid-template-columns: 1fr; } }

/* ---------- Search dialog ---------- */

.search-dlg { max-width: 640px; width: calc(100% - 24px); }
.hit-kind { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fire); min-width: 70px; }
.hit-text { display: flex; flex-direction: column; min-width: 0; }
.hit-title { font-weight: 700; }
.hit-sub { font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Footer ---------- */

.site-foot { position: relative; margin-top: 40px; color: #d8d0ff; }
.foot-ridge { display: block; width: 100%; height: 90px; margin-bottom: -1px; }
.foot-ridge .r1 { fill: #241c55; }
.foot-ridge .r2 { fill: #1a1442; }
.foot-ridge .r3 { fill: #100c28; }
.foot-night { background: #100c28; padding: 30px 0 34px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 32px; }
.site-foot .brand { color: #fff; }
.site-foot .brand img { width: 72px; height: 72px; }
.site-foot .brand-name b { color: #b79dff; }
.foot-about p { margin-top: 12px; color: #b9afe6; font-size: 0.95rem; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.foot-links a:not(.btn) { color: #d8d0ff; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; }
.foot-links a:not(.btn):hover { color: #ffd166; }
.foot-title { font-family: var(--body); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #ffb27a; margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 0.93rem; }
.site-foot nav a { color: #d8d0ff; text-decoration: none; }
.site-foot nav a:hover { color: #ffd166; text-decoration: underline; }
.foot-more li { display: flex; flex-direction: column; line-height: 1.3; }
.foot-more small { color: #9187c4; font-size: 0.78rem; }
.foot-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(190, 170, 255, 0.15); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 0.9rem; color: #b9afe6; }
.foot-bottom a { color: #fff; }
.foot-bottom p { line-height: 2; }
.foot-ic { display: inline-grid; place-items: center; vertical-align: middle; width: 30px; height: 30px; margin-left: 4px; border-radius: 8px; color: #d8d0ff !important; }
.foot-ic:hover { background: rgba(190, 170, 255, 0.15); }
.site-foot .hi { color: #fff; --ic-f: rgba(255, 255, 255, 0.3); --ic-a: #ffd166; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }


/* ---------- Special dates (data-season from seasons.js) ---------- */

.season-accent, .season-fx, .season-bats { display: none; position: absolute; pointer-events: none; }
.season-accent { left: 0; right: 0; top: 0; height: clamp(44px, 10.8vw, 160px); z-index: -1; background: no-repeat center top / 100% auto; }
.season-fx { inset: 0; width: 100%; height: 100%; z-index: 0; }
:root[data-season] .season-accent, :root[data-season] .season-fx { display: block; }
.hx-grid { position: relative; z-index: 1; }
:root[data-season] .hx { padding-top: clamp(64px, 10vw, 150px); }
:root[data-season] .lineup .lu-luna { width: clamp(150px, 25vw, 380px); }
:root[data-season] .pv-scene .ch-luna { width: clamp(130px, 25%, 280px); }
.season-chip { position: fixed; left: 16px; bottom: 16px; z-index: 45; display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 999px; color: var(--text); background: color-mix(in oklab, var(--panel) 92%, transparent); border: 1px solid var(--line-2); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 700; font-size: 0.86rem; line-height: 1; animation: rise 0.6s 0.8s both; }
.season-chip[hidden] { display: none; }
.season-chip .hi { width: 22px; height: 22px; color: var(--text); }
.season-chip.off { opacity: 0.85; }
.sc-switch { position: relative; flex: none; width: 40px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: var(--ring); cursor: pointer; transition: background 0.2s; }
.sc-switch i { position: absolute; top: 4px; left: 20px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: left 0.2s; }
.season-chip.off .sc-switch { background: var(--soft); }
.season-chip.off .sc-switch i { left: 4px; }
@media (max-width: 560px) { .season-chip { left: 10px; bottom: 10px; font-size: 0.8rem; } }

/* Halloween: a harvest moon and a few bats over the hero. */
:root[data-season='halloween'] .season-bats { display: block; inset: 0; z-index: 0; overflow: hidden; }
:root[data-season='halloween'] .f-moon { filter: blur(2px) sepia(0.7) saturate(2.6) hue-rotate(-14deg); opacity: 1; }
.sb { position: absolute; left: 0; width: 54px; height: auto; fill: #2b2155; animation: bat-fly 17s linear infinite; }
.sb-1 { top: 13%; }
.sb-2 { top: 3%; width: 36px; animation-duration: 23s; animation-delay: -9s; }
.sb-3 { top: 21%; width: 28px; animation-duration: 29s; animation-delay: -18s; }
.sb .sb-e { fill: #ff8a3d; }
.sb-w { transform-box: fill-box; transform-origin: center; animation: flap 0.26s ease-in-out infinite alternate; }
@keyframes bat-fly { 0% { transform: translate(-12vw, 0); } 25% { transform: translate(22vw, -34px); } 50% { transform: translate(50vw, 14px); } 75% { transform: translate(78vw, -22px); } 100% { transform: translate(112vw, 0); } }
@keyframes flap { to { transform: scaleY(0.4); } }
@media (max-width: 640px) { .sb { width: 34px; } .sb-1 { top: 5%; } .sb-3 { display: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .sb { fill: #0b0824; } }
:root[data-theme='dark'] .sb { fill: #0b0824; }
@media (prefers-reduced-motion: reduce) { .sb { left: 8%; } .sb-2 { left: 70%; } .sb-3 { left: 40%; } }

:root[data-season='halloween'] .mega-glow { background-image: linear-gradient(95deg, #ff8a1f, #e8590c 45%, #8b3fd9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light'])[data-season='halloween'] .mega-glow { background-image: linear-gradient(95deg, #ffb347, #ff6a1f 45%, #b06cff); } }
:root[data-theme='dark'][data-season='halloween'] .mega-glow { background-image: linear-gradient(95deg, #ffb347, #ff6a1f 45%, #b06cff); }
:root[data-season='halloween'] .season-accent { background-image: url(assets/seasons/halloween/hero-light.svg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light'])[data-season='halloween'] .season-accent { background-image: url(assets/seasons/halloween/hero-dark.svg); } }
:root[data-theme='dark'][data-season='halloween'] .season-accent { background-image: url(assets/seasons/halloween/hero-dark.svg); }
:root[data-season='christmas'] .mega-glow { background-image: linear-gradient(95deg, #e8a400, #e0454f 50%, #139e6a); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light'])[data-season='christmas'] .mega-glow { background-image: linear-gradient(95deg, #ffe08a, #ff6b6b 50%, #3ee6a0); } }
:root[data-theme='dark'][data-season='christmas'] .mega-glow { background-image: linear-gradient(95deg, #ffe08a, #ff6b6b 50%, #3ee6a0); }
:root[data-season='christmas'] .season-accent { background-image: url(assets/seasons/christmas/hero-light.svg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light'])[data-season='christmas'] .season-accent { background-image: url(assets/seasons/christmas/hero-dark.svg); } }
:root[data-theme='dark'][data-season='christmas'] .season-accent { background-image: url(assets/seasons/christmas/hero-dark.svg); }
:root[data-season='carnival'] .mega-glow { background-image: linear-gradient(95deg, #e8a400, #e0457f 45%, #139e6a); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light'])[data-season='carnival'] .mega-glow { background-image: linear-gradient(95deg, #ffd166, #ff7eb3 40%, #3ee6a0); } }
:root[data-theme='dark'][data-season='carnival'] .mega-glow { background-image: linear-gradient(95deg, #ffd166, #ff7eb3 40%, #3ee6a0); }
:root[data-season='carnival'] .season-accent { background-image: url(assets/seasons/carnival/hero-light.svg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light'])[data-season='carnival'] .season-accent { background-image: url(assets/seasons/carnival/hero-dark.svg); } }
:root[data-theme='dark'][data-season='carnival'] .season-accent { background-image: url(assets/seasons/carnival/hero-dark.svg); }
:root[data-season='junina'] .mega-glow { background-image: linear-gradient(95deg, #e8a400, #ff6a1f 45%, #d9321a); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light'])[data-season='junina'] .mega-glow { background-image: linear-gradient(95deg, #ffd166, #ff8a3d 45%, #ff5e3a); } }
:root[data-theme='dark'][data-season='junina'] .mega-glow { background-image: linear-gradient(95deg, #ffd166, #ff8a3d 45%, #ff5e3a); }
:root[data-season='junina'] .season-accent { background-image: url(assets/seasons/junina/hero-light.svg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light'])[data-season='junina'] .season-accent { background-image: url(assets/seasons/junina/hero-dark.svg); } }
:root[data-theme='dark'][data-season='junina'] .season-accent { background-image: url(assets/seasons/junina/hero-dark.svg); }
:root[data-season='valentine'] .mega-glow { background-image: linear-gradient(95deg, #ff6b8e, #e0245e 55%, #c2185b); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light'])[data-season='valentine'] .mega-glow { background-image: linear-gradient(95deg, #ffc4d4, #ff5e7e 50%, #ff8ab0); } }
:root[data-theme='dark'][data-season='valentine'] .mega-glow { background-image: linear-gradient(95deg, #ffc4d4, #ff5e7e 50%, #ff8ab0); }
:root[data-season='valentine'] .season-accent { background-image: url(assets/seasons/valentine/hero-light.svg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light'])[data-season='valentine'] .season-accent { background-image: url(assets/seasons/valentine/hero-dark.svg); } }
:root[data-theme='dark'][data-season='valentine'] .season-accent { background-image: url(assets/seasons/valentine/hero-dark.svg); }
:root[data-season='easter'] .mega-glow { background-image: linear-gradient(95deg, #e8a400, #2f9e6f 45%, #6a45f5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light'])[data-season='easter'] .mega-glow { background-image: linear-gradient(95deg, #fff1a8, #9be3c6 45%, #cdbdff); } }
:root[data-theme='dark'][data-season='easter'] .mega-glow { background-image: linear-gradient(95deg, #fff1a8, #9be3c6 45%, #cdbdff); }
:root[data-season='easter'] .season-accent { background-image: url(assets/seasons/easter/hero-light.svg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light'])[data-season='easter'] .season-accent { background-image: url(assets/seasons/easter/hero-dark.svg); } }
:root[data-theme='dark'][data-season='easter'] .season-accent { background-image: url(assets/seasons/easter/hero-dark.svg); }
:root[data-season='newyear'] .mega-glow { background-image: linear-gradient(95deg, #e8a400, #ff8a3d 45%, #6a45f5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light'])[data-season='newyear'] .mega-glow { background-image: linear-gradient(95deg, #fff6d6, #ffd166 45%, #cdbdff); } }
:root[data-theme='dark'][data-season='newyear'] .mega-glow { background-image: linear-gradient(95deg, #fff6d6, #ffd166 45%, #cdbdff); }
:root[data-season='newyear'] .season-accent { background-image: url(assets/seasons/newyear/hero-light.svg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light'])[data-season='newyear'] .season-accent { background-image: url(assets/seasons/newyear/hero-dark.svg); } }
:root[data-theme='dark'][data-season='newyear'] .season-accent { background-image: url(assets/seasons/newyear/hero-dark.svg); }

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