/* Pulse website. Tokens come from /shared/brand.css. */

:root {
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 68px;
  --grid-paper: rgba(124, 92, 255, 0.055);
  --dc-rail: #1e1f22;
  --dc-side: #2b2d31;
  --dc-chat: #313338;
  --dc-text: #dbdee1;
  --dc-muted: #949ba4;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { min-height: 100vh; overflow-x: clip; background: var(--ink-900); display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--mint); color: var(--ink-950); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons & links ---------- */
.btn {
  --bh: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--bh); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transform: translate(var(--mag-x, 0px), var(--mag-y, 0px));
  transition: transform var(--dur-2) var(--ease-out), background var(--dur-2), border-color var(--dur-2), box-shadow var(--dur-2);
}
.btn:active { transform: translate(var(--mag-x, 0px), calc(var(--mag-y, 0px) + 1px)) scale(.98); transition-duration: 60ms; }
.btn-sm { --bh: 38px; padding: 0 16px; font-size: .88rem; }
.btn-lg { --bh: 52px; padding: 0 26px; font-size: 1rem; }
.btn-primary { background: var(--text); color: var(--ink-950); box-shadow: 0 0 0 0 rgba(61, 245, 176, 0); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 4px rgba(61, 245, 176, .18), 0 10px 30px -8px rgba(76, 201, 255, .5); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(160, 170, 255, .38); }
.btn-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.link { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; text-decoration-thickness: 2px; transition: text-decoration-color var(--dur-2); }
.link:hover { text-decoration-color: var(--mint); }

.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--mint); opacity: 0; animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); transition: background var(--dur-2), border-color var(--dur-2), backdrop-filter var(--dur-2); border-bottom: 1px solid transparent; }
.nav.is-scrolled, .nav.is-open { background: rgba(9, 11, 22, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-menu > a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: .95rem; transition: color var(--dur-1), background var(--dur-1); }
.nav-menu > a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-menu > a[aria-current="page"] { color: var(--text); background: rgba(124, 92, 255, .16); }
.nav-ctas { display: flex; gap: 8px; margin-left: 12px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); margin: auto; transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1); }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav.is-open .nav-toggle-bars { background: transparent; }
.nav.is-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu { position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px; background: rgba(9, 11, 22, .96); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open .nav-menu { display: flex; animation: drop var(--dur-2) var(--ease-out); }
  .nav-menu > a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-ctas { margin: 10px 0 0; flex-direction: column; }
  .nav-ctas .btn { --bh: 48px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(20px, 3.5vw, 44px); isolation: isolate; overflow-x: clip; }
.hero::before { /* ECG paper grid, fading out */
  content: ''; position: absolute; inset: calc(var(--nav-h) * -1) 0 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-paper) 1px, transparent 1px), linear-gradient(90deg, var(--grid-paper) 1px, transparent 1px),
    linear-gradient(rgba(124, 92, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 92, 255, .03) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero::after { content: ''; position: absolute; z-index: -1; top: -10%; right: -10%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; pointer-events: none; background: radial-gradient(closest-side, rgba(124, 92, 255, .20), rgba(76, 201, 255, .06) 55%, transparent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-status { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--glass); font-size: .88rem; font-weight: 600; color: var(--text-2); margin-bottom: 22px; }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.9rem, 7.2vw, 6.2rem); line-height: .96; letter-spacing: -.045em; }
.hero-title-2 { display: inline-block; background: var(--grad-signal); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero-lede { margin-top: 24px; max-width: 34em; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--text-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--text-2); }

/* ---------- showcase: mock Discord ---------- */
.showcase { position: relative; min-width: 0; }
.dc-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.dc-tabs::-webkit-scrollbar { display: none; }
.dc-tabs [role="tab"] { position: relative; flex: 1 0 auto; padding: 9px 14px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); color: var(--text-2); font-weight: 700; font-size: .86rem; cursor: pointer; overflow: hidden; transition: color var(--dur-1), background var(--dur-1), border-color var(--dur-1); }
.dc-tabs [role="tab"]:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.dc-tabs [role="tab"][aria-selected="true"] { color: var(--text); background: rgba(124, 92, 255, .14); border-color: rgba(124, 92, 255, .45); }
.tab-prog { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tab-prog::after { content: ''; position: absolute; inset: 0; background: var(--grad-signal); transform-origin: left; transform: scaleX(var(--p, 0)); }
[aria-selected="false"] .tab-prog::after { transform: scaleX(0); }
.dc {
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--dc-chat); color: var(--dc-text);
  box-shadow: 0 0 0 1px rgba(160, 170, 255, .16), 0 40px 80px -30px rgba(0, 0, 0, .8), 0 30px 120px -40px rgba(124, 92, 255, .5);
  font-size: 14px; line-height: 1.4;
}
.dc:focus-visible { outline-offset: 4px; }
.dc-titlebar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--dc-rail); font-size: 12px; color: var(--dc-muted); font-weight: 600; }
.dc-titlebar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3c42; }
.dc-titlebar span { margin-left: 8px; }
.dc-body { display: grid; grid-template-columns: 56px 168px minmax(0, 1fr); height: 440px; }
.dc-rail { background: var(--dc-rail); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; }
.dc-guild { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #313338; font-size: 12px; font-weight: 800; color: var(--dc-text); }
.dc-guild.is-active { border-radius: 14px; background: var(--blurple); color: #fff; position: relative; }
.dc-guild.is-active::before { content: ''; position: absolute; left: -10px; width: 4px; height: 28px; border-radius: 0 4px 4px 0; background: #fff; }
.dc-guild-add { color: #23a55a; font-size: 20px; font-weight: 500; }
.dc-side { background: var(--dc-side); display: flex; flex-direction: column; min-width: 0; }
.dc-side-head { height: 44px; display: flex; align-items: center; padding: 0 14px; font-weight: 800; font-size: 14px; border-bottom: 1px solid rgba(0, 0, 0, .25); }
.dc-channels { list-style: none; margin: 0; padding: 10px 8px; display: grid; align-content: start; gap: 2px; flex: 1; }
.dc-channels li { display: flex; gap: 6px; align-items: center; padding: 5px 8px; border-radius: 5px; color: var(--dc-muted); font-weight: 600; font-size: 14px; transition: background var(--dur-2), color var(--dur-2); }
.dc-channels li span { font-size: 18px; line-height: 1; opacity: .7; font-weight: 400; }
.dc-channels li.is-active { background: rgba(78, 80, 88, .6); color: #fff; }
.dc-channels li.has-new { color: #fff; }
.dc-me { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: #232428; font-size: 13px; font-weight: 700; }
.dc-me small { display: block; font-size: 11px; color: var(--dc-muted); font-weight: 500; }
.dc-me-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); font-size: 12px; }
.dc-chat { display: flex; flex-direction: column; min-width: 0; }
.dc-chat-head { height: 44px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 16px; border-bottom: 1px solid rgba(0, 0, 0, .25); font-size: 15px; }
.dc-chat-head span { color: var(--dc-muted); font-size: 20px; }
.dc-messages { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 8px 0 4px; }
.dc-typing { height: 20px; padding: 0 16px; font-size: 12px; color: var(--dc-muted); display: flex; align-items: center; gap: 6px; }
.dc-typing b { color: var(--dc-text); }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--dc-muted); animation: tdot 1s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; } .typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.dc-composer { margin: 0 14px 14px; padding: 11px 14px; border-radius: 8px; background: #383a40; color: #6d6f78; font-size: 14px; }

.msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; padding: 4px 16px; animation: msg-in .38s var(--ease-out) both; }
.msg.is-cont { padding-top: 0; }
.msg.is-cont .msg-av { visibility: hidden; height: 0; }
.msg.is-cont .msg-meta { display: none; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
.msg-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--av, #5865f2); color: #fff; font-weight: 800; font-size: 13px; }
.msg-av.is-bot { background: #0e1120; box-shadow: inset 0 0 0 2px #7c5cff; }
.msg-av.is-bot svg { width: 24px; height: 24px; }
.msg-meta { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.msg-meta b { font-weight: 600; color: var(--nc, #f2f3f5); }
.msg-meta .bot-tag { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: var(--blurple); color: #fff; align-self: center; }
.msg-meta time { font-size: 11px; color: var(--dc-muted); }
.msg-text { color: var(--dc-text); overflow-wrap: anywhere; }
.msg-text .mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 600; }
.msg-text .invite { color: #00a8fc; text-decoration: underline; }
.msg.sys { grid-template-columns: 40px minmax(0, 1fr); align-items: center; color: var(--dc-muted); }
.msg.sys .sys-ico { justify-self: center; width: 18px; height: 18px; color: #23a55a; }
.msg.sys b { color: #f2f3f5; font-weight: 600; }
.reacts { display: flex; gap: 4px; margin-top: 6px; }
.react { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 8px; background: rgba(88, 101, 242, .15); border: 1px solid rgba(88, 101, 242, .6); font-size: 13px; animation: pop .34s var(--ease-spring) both; }
.react b { font-family: var(--font-mono); font-size: 12px; color: #dee0fc; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.embed { margin-top: 6px; max-width: 420px; border-radius: 6px; background: #2b2d31; border-left: 4px solid var(--ec, #7c5cff); padding: 12px 14px 14px; animation: msg-in .45s var(--ease-out) both; }
.embed-title { font-weight: 800; color: #fff; font-size: 15px; margin-bottom: 4px; }
.embed-desc { color: var(--dc-text); font-size: 14px; }
.embed-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 10px; }
.embed-fields div span { display: block; font-size: 12px; font-weight: 700; color: #fff; }
.embed-fields div b { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--dc-text); }
.dc-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 14px; border-radius: 4px; background: var(--blurple); color: #fff; font-weight: 600; font-size: 13px; transition: transform .12s, filter .12s; }
.dc-btn.is-pressed { transform: scale(.94); filter: brightness(1.25); }
.dc-btn.is-off { background: #4e5058; }

/* welcome card */
.wc { margin-top: 6px; max-width: 400px; position: relative; overflow: hidden; border-radius: 10px; padding: 18px 18px 16px; background: linear-gradient(135deg, #181b33, #10202e 60%, #0f2a24); box-shadow: inset 0 0 0 1px rgba(160, 170, 255, .2); display: grid; grid-template-columns: 64px 1fr; gap: 4px 16px; align-items: center; animation: msg-in .5s var(--ease-out) both; }
.wc::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 1.6s .5s var(--ease-out) both; }
@keyframes sheen { to { transform: translateX(100%); } }
.wc-av { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--av, #3df5b0); color: #062; font-weight: 800; font-size: 20px; box-shadow: 0 0 0 3px #10141f, 0 0 0 5px var(--mint); animation: pop .5s .3s var(--ease-spring) both; color: #04130d; }
.wc-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; }
.wc-sub { font-size: 13px; color: #b8bdd8; }
.wc-sub b { font-family: var(--font-mono); color: var(--mint); }
.role-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); animation: pop .4s var(--ease-spring) both; }
.role-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rc, var(--mint)); }

/* level card */
.lvl { position: relative; margin-top: 6px; max-width: 420px; padding: 14px 16px; border-radius: 10px; background: #1d1f35; box-shadow: inset 0 0 0 1px rgba(124, 92, 255, .35); display: grid; grid-template-columns: 48px 1fr auto; gap: 4px 14px; align-items: center; animation: msg-in .45s var(--ease-out) both; }
.lvl .msg-av { width: 48px; height: 48px; }
.lvl-name { font-weight: 700; color: #fff; font-size: 14px; }
.lvl-bar { grid-column: 2; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.lvl-bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--grad-signal); transition: width .9s var(--ease-out); }
.lvl-bar i.no-tr { transition: none; }
.lvl-num { grid-row: 1 / span 2; grid-column: 3; text-align: center; font-size: 11px; color: var(--dc-muted); font-weight: 700; }
.lvl-num b { display: block; font-family: var(--font-display); font-size: 26px; color: #fff; line-height: 1; }
.lvl-num b.flip { animation: flip .5s var(--ease-spring); }
@keyframes flip { 0% { transform: translateY(0); } 40% { transform: translateY(-12px) scale(1.3); color: var(--mint); } 100% { transform: none; } }
.xp-float { position: absolute; right: 18px; top: 4px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--mint); animation: float-up 1.2s var(--ease-out) both; pointer-events: none; }
@keyframes float-up { from { opacity: 0; transform: translateY(8px); } 30% { opacity: 1; } to { opacity: 0; transform: translateY(-22px); } }
.spark { position: absolute; width: 6px; height: 6px; border-radius: 2px; background: var(--sc, var(--mint)); left: var(--x0); top: var(--y0); animation: spark .9s var(--ease-out) both; pointer-events: none; }
@keyframes spark { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.3) rotate(180deg); opacity: 0; } }

/* automod */
.msg.is-flagged { background: rgba(255, 93, 115, .08); box-shadow: inset 3px 0 0 var(--ember); animation: shake .45s; }
.msg.is-flagged .msg-text { text-decoration: line-through; text-decoration-color: var(--ember); text-decoration-thickness: 2px; color: #b5a0a6; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.msg.is-gone { animation: collapse .45s var(--ease-out) forwards; overflow: hidden; }
@keyframes collapse { to { opacity: 0; max-height: 0; padding-block: 0; margin: 0; } }
.strikes { display: flex; gap: 4px; margin-top: 8px; align-items: center; font-size: 12px; color: var(--dc-muted); }
.strikes i { width: 22px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.strikes i.on { background: var(--ember); animation: pop .35s var(--ease-spring) both; }
.ephemeral { margin-top: 4px; font-size: 12px; color: var(--dc-muted); }

/* poll */
.pbars { display: grid; gap: 8px; margin-top: 10px; }
.pbar { position: relative; display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 6px; background: rgba(255, 255, 255, .05); overflow: hidden; font-size: 13px; font-weight: 600; transition: box-shadow .3s; }
.pbar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--pc, rgba(124, 92, 255, .45)); transition: width .35s var(--ease-out); border-radius: inherit; }
.pbar span, .pbar b { position: relative; }
.pbar b { font-family: var(--font-mono); font-weight: 600; }
.pbar.is-win { box-shadow: inset 0 0 0 2px var(--mint); }
.ptotal { margin-top: 8px; font-size: 12px; color: var(--dc-muted); }

.dc-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cf { position: absolute; top: -12px; left: var(--x); width: 7px; height: 11px; border-radius: 2px; background: var(--cc); animation: fall var(--d, 1.6s) var(--delay, 0s) cubic-bezier(.3, .6, .5, 1) both; }
@keyframes fall { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--dx), var(--fall, 460px)) rotate(var(--r, 540deg)); opacity: .2; } }

.dc.is-paused *, .dc.is-paused *::before, .dc.is-paused *::after { animation-play-state: paused !important; }
.showcase-hint { margin-top: 10px; font-size: .84rem; color: var(--text-2); text-align: center; }

/* ---------- ECG monitor ---------- */
.monitor { position: relative; margin-top: clamp(16px, 2.5vw, 32px); }
.ecg { display: block; width: 100%; height: 104px; }
.vitals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: -6px auto 0; }
.vital { padding: 14px 0 0; border-top: 1px solid var(--line-strong); }
.vital + .vital { padding-left: 20px; border-left: 1px solid var(--line); }
.vital dt { font-size: .88rem; color: var(--text-2); font-weight: 600; }
.vital dd { margin: 4px 0 0; font-size: clamp(1.4rem, 2.8vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.vital dd small { font-size: .5em; color: var(--text-2); font-family: var(--font-mono); }
.vital.is-beat dd .num { animation: beat-txt .6s var(--ease-out); }
@keyframes beat-txt { 30% { color: var(--mint); text-shadow: 0 0 18px rgba(61, 245, 176, .6); } }

/* ---------- ticker ---------- */
.ticker { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding-bottom: clamp(48px, 8vw, 96px); min-width: 0; }
.ticker-title { flex: none; display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: .9rem; font-weight: 700; color: var(--text); }
.ticker-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; overflow: hidden; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, #000 75%, transparent); mask-image: linear-gradient(90deg, #000 75%, transparent); }
.tick { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: .88rem; color: var(--text-2); white-space: nowrap; }
.tick.is-new { animation: tick-in .6s var(--ease-spring) both; }
@keyframes tick-in { from { opacity: 0; transform: translateX(-30px) scale(.9); } }
.tick-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c); font-size: .8rem; }
.tick-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.tick-text { color: var(--text); }
.tick time { font-family: var(--font-mono); font-size: .75rem; color: var(--text-2); }
.ticker-empty { color: var(--text-2); font-size: .9rem; }

/* ---------- section heads ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3.3rem); letter-spacing: -.035em; line-height: 1.04; }
.section-lede { margin-top: 18px; font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--text-2); max-width: 38em; }

/* ---------- features: bands + vignettes ---------- */
.features { padding: clamp(64px, 9vw, 128px) 0 clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); }
.band { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.band:first-of-type { border-top: 0; padding-top: 0; }
.band-intro { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.band-title { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -.025em; padding-left: 18px; position: relative; }
.band-title::before { content: ''; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--band); box-shadow: 0 0 16px var(--band); }
.band-intro p { margin: 14px 0 18px; color: var(--text-2); }
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vig { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(27, 32, 54, .7), rgba(14, 17, 32, .8)); border: 1px solid var(--line); overflow: hidden; min-width: 0; }
.vig-wide { grid-column: span 2; flex-direction: row; }
.vig-wide .vig-stage { flex: 1.35; }
.vig-wide .vig-copy { flex: 1; align-self: center; border-top: 0; border-left: 1px solid var(--line); }
.vig-stage { position: relative; min-height: 230px; padding: 22px; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c) 12%, transparent), transparent 70%); }
.vig-copy { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.vig-copy h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.vig-copy h4::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.vig-copy p { margin-top: 8px; color: var(--text-2); font-size: .95rem; }
.mini-av { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--av); color: #0a0c18; font-size: 9px; font-weight: 800; }

/* moderation: case card + stamp */
.case { position: relative; width: min(100%, 360px); padding: 16px 18px; border-radius: var(--r-md); background: var(--ink-850); border: 1px solid var(--line-strong); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); }
.case-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.case-no { font-family: var(--font-mono); font-weight: 600; color: var(--ember); }
.case-time { font-size: .78rem; color: var(--text-2); }
.case-rows { margin: 0; display: grid; gap: 7px; font-size: .86rem; }
.case-rows div { display: grid; grid-template-columns: 82px 1fr; gap: 8px; align-items: center; opacity: 0; transform: translateX(-8px); }
.case-rows dt { color: var(--text-2); }
.case-rows dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; }
.case-warns { display: flex; align-items: center; gap: 4px; margin-top: 12px; font-size: .78rem; color: var(--text-2); }
.case-warns span { margin-right: 6px; }
.case-warns i { width: 18px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.stamp { position: absolute; right: 16px; bottom: 34px; padding: 6px 14px; border: 3px solid var(--ember); border-radius: 8px; color: var(--ember); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; transform: rotate(-12deg) scale(2.4); opacity: 0; mix-blend-mode: screen; background: rgba(255, 93, 115, .06); }
.vig.is-in .case-rows div { animation: row-in .4s var(--ease-out) forwards; }
.vig.is-in .case-rows div:nth-child(2) { animation-delay: .12s; } .vig.is-in .case-rows div:nth-child(3) { animation-delay: .24s; } .vig.is-in .case-rows div:nth-child(4) { animation-delay: .36s; }
@keyframes row-in { to { opacity: 1; transform: none; } }
.vig.is-in .case-warns i:nth-of-type(-n+3) { animation: warn-on .3s var(--ease-out) forwards; }
.vig.is-in .case-warns i:nth-of-type(1) { animation-delay: .7s; } .vig.is-in .case-warns i:nth-of-type(2) { animation-delay: .85s; } .vig.is-in .case-warns i:nth-of-type(3) { animation-delay: 1s; }
@keyframes warn-on { to { background: var(--ember); } }
.vig.is-in .stamp { animation: stamp .5s 1.3s cubic-bezier(.5, 0, .75, 0) forwards; }
.vig.is-in .case { animation: thud .35s 1.75s var(--ease-out); }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-12deg) scale(2.4); } 90% { opacity: 1; transform: rotate(-12deg) scale(.95); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes thud { 30% { transform: translateY(3px) scale(.99); } }

/* automod stream */
.stream { width: min(100%, 320px); height: 150px; position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 85%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 85%, transparent); }
.sm { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: .82rem; transition: transform .6s var(--ease-out), opacity .6s, background .3s; white-space: nowrap; overflow: hidden; }
.sm p { overflow: hidden; text-overflow: ellipsis; }
.sm.is-bad { background: rgba(255, 196, 77, .12); box-shadow: inset 2px 0 0 var(--amber); }
.sm.is-bad p { text-decoration: line-through; color: var(--text-2); }
.sm.is-bad::after { content: 'removed'; margin-left: auto; font-size: .7rem; font-weight: 700; color: var(--amber); }
.sm.is-pulled { opacity: 0 !important; transform: translateX(110%) !important; }
.am-count { margin-top: 14px; font-size: .85rem; color: var(--text-2); }
.am-count b { font-family: var(--font-mono); color: var(--amber); font-size: 1rem; }

/* logging audit */
.audit { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 360px; height: 180px; overflow: hidden; font-family: var(--font-mono); font-size: .74rem; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); }
.audit li { display: grid; grid-template-columns: 44px 64px 1fr; gap: 8px; align-items: baseline; color: var(--text-2); animation: msg-in .4s var(--ease-out) both; }
.audit li time { color: var(--text-3); }
.audit li b { font-weight: 600; color: var(--lc); }
.audit li span { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-body); font-size: .8rem; }

/* welcome card */
.wcard { width: min(100%, 300px); padding: 22px; border-radius: var(--r-md); text-align: center; background: linear-gradient(160deg, #13203a, #0d1a1c); border: 1px solid rgba(61, 245, 176, .25); }
.wcard-av { position: relative; width: 80px; height: 80px; margin: 0 auto 12px; display: grid; place-items: center; }
.wcard-av svg { position: absolute; inset: 0; transform: rotate(-90deg); fill: none; stroke: var(--mint); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 227; stroke-dashoffset: 227; }
.wcard-av span { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #3df5b0; color: #04130d; font-weight: 800; font-size: 1.1rem; transform: scale(0); }
.wcard-hi { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; opacity: 0; }
.wcard-sub { color: var(--text-2); font-size: .88rem; margin-top: 4px; opacity: 0; }
.wcard-sub b { color: var(--mint); }
.wcard-roles { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.wcard-roles span { padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: rgba(61, 245, 176, .12); color: var(--mint); opacity: 0; transform: scale(.5); }
.vig.is-in .wcard-av svg { animation: draw 1s var(--ease-out) forwards; }
.vig.is-in .wcard-av span { animation: pop-in .5s .5s var(--ease-spring) forwards; }
.vig.is-in .wcard-hi { animation: row-in .5s .8s var(--ease-out) forwards; }
.vig.is-in .wcard-sub { animation: row-in .5s 1s var(--ease-out) forwards; }
.vig.is-in .wcard-roles span { animation: pop-in .4s 1.6s var(--ease-spring) forwards; }
.vig.is-in .wcard-roles span + span { animation-delay: 1.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop-in { to { transform: none; opacity: 1; } }

/* reaction roles */
.rr-title { font-weight: 700; margin-bottom: 10px; font-size: .9rem; align-self: flex-start; }
.rr-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.rr-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); font-size: .84rem; font-weight: 700; cursor: pointer; transition: background var(--dur-1), border-color var(--dur-1), transform var(--dur-1); }
.rr-btn:hover { background: rgba(255, 255, 255, .08); }
.rr-btn:active, .rr-btn.is-tap { transform: scale(.95); }
.rr-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--rc) 22%, transparent); border-color: var(--rc); }
.rr-profile { display: flex; gap: 10px; align-items: flex-start; width: 100%; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .22); font-size: .82rem; }
.rr-profile .mini-av { width: 28px; height: 28px; font-size: 10px; }
.rr-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; min-height: 24px; }
.rr-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-weight: 600; font-size: .76rem; animation: pop .35s var(--ease-spring) both; }
.rr-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rc); }
.rr-pill.is-out { animation: pop .25s reverse both; }
.rr-empty { color: var(--text-2); }

/* tickets */
.tk { width: 100%; max-width: 420px; display: grid; grid-template-columns: 1fr 140px; gap: 12px; align-items: start; }
.tk-stub { grid-column: 1 / -1; display: flex; border-radius: 12px; overflow: visible; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); }
.tk-main { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px 0 0 12px; background: #1b2b45; font-size: .82rem; color: var(--text-2); }
.tk-main b { color: var(--text); font-size: .95rem; }
.tk-tear { width: 96px; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 0 12px 12px 0; background: var(--sky); color: #04202f; border-left: 2px dashed rgba(4, 32, 47, .5); transform-origin: 0 0; font-size: .7rem; font-weight: 700; }
.tk-tear b { font-family: var(--font-mono); font-size: 1rem; }
.tk-channels { list-style: none; margin: 0; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, .25); font-size: .8rem; color: var(--text-2); display: grid; gap: 2px; grid-column: 2; grid-row: 2; }
.tk-channels li { display: flex; gap: 5px; padding: 3px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; }
.tk-channels li span { opacity: .6; }
.tk-new { max-height: 0; padding-block: 0 !important; opacity: 0; color: var(--text); background: rgba(76, 201, 255, .14); }
.tk-new em { font-style: normal; margin-left: auto; font-size: .62rem; font-weight: 800; color: var(--sky); }
.tk-msg { grid-column: 1; grid-row: 2; display: flex; gap: 8px; font-size: .8rem; color: var(--text-2); opacity: 0; transform: translateY(8px); }
.tk-msg b { color: var(--violet-2); margin-right: 4px; }
.vig.is-in .tk-tear { animation: tear 1.1s .6s var(--ease-out) forwards; }
.vig.is-in .tk-new { animation: ch-in .5s 1.4s var(--ease-out) forwards; }
.vig.is-in .tk-msg { animation: row-in .5s 1.9s var(--ease-out) forwards; }
@keyframes tear { 0% { transform: none; } 25% { transform: rotate(4deg); } 50% { transform: rotate(-3deg) translate(6px, 0); } 100% { transform: translate(40px, 70px) rotate(24deg); opacity: 0; } }
@keyframes ch-in { to { max-height: 30px; padding-block: 3px !important; opacity: 1; } }

/* leveling rank card */
.rank { position: relative; width: min(100%, 440px); display: grid; grid-template-columns: 56px minmax(0, 1fr) 64px; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-md); background: linear-gradient(120deg, #1b1840, #101a33); border: 1px solid rgba(124, 92, 255, .4); box-shadow: 0 20px 50px -20px rgba(124, 92, 255, .45); }
.rank-av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--av); color: #04202f; font-weight: 800; box-shadow: 0 0 0 3px var(--ink-850), 0 0 0 5px var(--violet); }
.rank-top { display: flex; justify-content: space-between; font-size: .88rem; }
.rank-top span { color: var(--text-2); }
.rank-top span b { font-family: var(--font-mono); color: var(--text); }
.rank-bar { margin: 8px 0 6px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.rank-bar i { display: block; height: 100%; width: 0; background: var(--grad-signal); border-radius: inherit; }
.rank-xp { font-size: .76rem; color: var(--text-2); }
.rank-lvl { text-align: center; font-size: .72rem; color: var(--text-2); font-weight: 700; }
.rank-lvl b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--text); line-height: 1.05; }
.rank-lvl b.flip { animation: flip .55s var(--ease-spring); }
.burst { position: absolute; right: 44px; top: 50%; width: 0; height: 0; }
.rank-reward { margin-top: 14px; padding: 6px 14px; border-radius: 999px; font-size: .84rem; background: rgba(124, 92, 255, .15); border: 1px solid rgba(124, 92, 255, .35); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease-spring); }
.rank-reward.is-on { opacity: 1; transform: none; }

/* giveaway */
.gw { width: min(100%, 260px); padding: 16px; border-radius: var(--r-md); background: #2a1620; border: 1px solid rgba(255, 93, 115, .35); display: grid; gap: 8px; }
.gw-prize { font-family: var(--font-display); font-size: 1rem; }
.gw-row { display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-2); }
.gw-row b { color: var(--text); font-size: .95rem; }
.gw-win { padding: 6px 10px; border-radius: 8px; background: rgba(61, 245, 176, .12); color: var(--text-2); font-size: .85rem; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease-spring); }
.gw-win b { color: var(--mint); }
.gw-win.is-on { opacity: 1; transform: none; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* polls */
.poll-q { align-self: flex-start; font-size: .95rem; }
.poll { list-style: none; margin: 10px 0 0; padding: 0; width: 100%; display: grid; gap: 8px; }
.poll li { position: relative; display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); overflow: hidden; font-size: .85rem; font-weight: 600; }
.poll li i { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: color-mix(in srgb, var(--pc) 40%, transparent); border-radius: inherit; transition: width .4s var(--ease-out); }
.poll li span, .poll li em { position: relative; font-style: normal; }
.poll li em { font-family: var(--font-mono); }
.poll li.is-lead { box-shadow: inset 0 0 0 1px var(--pc); }
.poll-total { align-self: flex-start; margin-top: 8px; color: var(--text-2); }

/* starboard */
.star-msg { position: relative; width: min(100%, 420px); display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--ink-850); border: 1px solid var(--line-strong); font-size: .88rem; transition: transform .5s var(--ease-spring), border-color .4s, box-shadow .4s; }
.star-msg p { flex: 1; color: var(--text-2); }
.star-msg p b { color: var(--text); margin-right: 4px; }
.star-count { flex: none; display: inline-flex; gap: 4px; align-items: center; padding: 2px 8px; border-radius: 8px; background: rgba(255, 196, 77, .1); border: 1px solid rgba(255, 196, 77, .4); }
.star-count b { color: var(--amber); }
.star-msg.is-starred { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 196, 77, .12), 0 20px 40px -20px rgba(255, 196, 77, .5); transform: translateY(-6px); }
.star-sky { position: absolute; inset: 0; pointer-events: none; }
.flystar { position: absolute; left: var(--x); top: var(--y); font-size: 18px; animation: flystar .8s var(--ease-out) forwards; }
@keyframes flystar { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }
.star-board { margin-top: 14px; font-size: .82rem; color: var(--text-2); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease-spring); }
.star-board span { color: var(--amber); font-weight: 700; }
.star-board.is-on { opacity: 1; transform: none; }

/* custom commands */
.cc { width: min(100%, 320px); display: grid; gap: 12px; }
.cc-line { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); min-height: 44px; }
.cc-line code { font-family: var(--font-mono); font-size: .9rem; color: var(--mint); }
.caret { width: 2px; height: 1.1em; background: var(--text); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cc-reply { display: flex; gap: 8px; font-size: .84rem; color: var(--text-2); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease-out); }
.cc-reply.is-on { opacity: 1; transform: none; }
.cc-reply b { color: var(--violet-2); }
.cc-reply code { font-family: var(--font-mono); font-size: .8rem; color: var(--text); background: rgba(255, 255, 255, .06); padding: 1px 5px; border-radius: 4px; }

/* reminders clock */
.clock { width: 120px; height: 120px; }
.clock svg { width: 100%; height: 100%; }
.clock-face { fill: rgba(76, 201, 255, .06); stroke: var(--line-strong); stroke-width: 2; }
.clock-arc { fill: none; stroke: var(--sky); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 60px 60px; }
.clock-ticks line { stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; }
.clock-h, .clock-m { stroke: var(--text); stroke-width: 4; stroke-linecap: round; transform-origin: 60px 60px; }
.clock-m { stroke-width: 3; stroke: var(--sky); }
.clock-pin { fill: var(--sky); }
.vig.is-in .clock-m { animation: spin 2s var(--ease-out) forwards; }
.vig.is-in .clock-h { animation: spin-h 2s var(--ease-out) forwards; }
.vig.is-in .clock-arc { animation: arc 2s var(--ease-out) forwards; }
.vig.is-in .clock { animation: ring .5s 2s; }
@keyframes spin { to { transform: rotate(720deg); } }
@keyframes spin-h { to { transform: rotate(60deg); } }
@keyframes arc { to { stroke-dashoffset: 0; } }
@keyframes ring { 20%, 60% { transform: rotate(-8deg); } 40%, 80% { transform: rotate(8deg); } }
.remind { margin-top: 14px; display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: rgba(76, 201, 255, .1); border: 1px solid rgba(76, 201, 255, .35); font-size: .84rem; text-align: left; opacity: 0; transform: translateY(10px) scale(.95); }
.remind span { color: var(--text-2); }
.vig.is-in .remind { animation: pop-in .5s 2.1s var(--ease-spring) forwards; }

/* ---------- dashboard preview ---------- */
.dash { padding: clamp(64px, 9vw, 128px) 0; background: linear-gradient(180deg, transparent, rgba(124, 92, 255, .05) 30%, transparent); border-top: 1px solid var(--line); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.checklist { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text); }
.checklist li::before { content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: rgba(61, 245, 176, .14); }
.checklist li::after { content: ''; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 9px; border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dprev { display: block; text-decoration: none; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-850); border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), var(--glow-violet); transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3); }
.dprev:hover { transform: translateY(-4px); }
.dprev-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--ink-950); border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--text-2); }
.dprev-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-600); }
.dprev-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: .72rem; }
.dprev-body { display: grid; grid-template-columns: 56px minmax(0, 1fr); }
.dprev-side { display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 14px 0; border-right: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.dprev-side span { width: 30px; height: 30px; border-radius: 10px; background: var(--ink-700); }
.dprev-side span.is-active { background: var(--grad-signal); }
.dprev-main { padding: 16px; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; padding: 12px 12px 0; border-radius: 12px; background: var(--ink-800); border: 1px solid var(--line); overflow: hidden; }
.tile span { display: block; font-size: .7rem; color: var(--text-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile b { display: block; font-size: 1.25rem; margin-top: 2px; }
.tile b.bump { animation: beat-txt .6s; }
.tile svg { width: calc(100% + 24px); margin: 6px -12px 0; height: 34px; }
.tile path { fill: none; stroke: var(--c); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linejoin: round; }
.dprev.is-in .tile path { animation: draw 1.6s var(--ease-out) forwards; }
.dprev.is-in .tile:nth-child(2) path { animation-delay: .15s; } .dprev.is-in .tile:nth-child(3) path { animation-delay: .3s; } .dprev.is-in .tile:nth-child(4) path { animation-delay: .45s; }
.dprev-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px; margin-top: 10px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 168px; padding: 12px; border-radius: 12px; background: var(--ink-800); border: 1px solid var(--line); }
.bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--violet-2), rgba(124, 92, 255, .25)); height: var(--h); transform-origin: bottom; transform: scaleY(0); }
.dprev.is-in .bars i { animation: grow .7s var(--ease-out) forwards; animation-delay: calc(var(--i) * 30ms); }
@keyframes grow { to { transform: scaleY(1); } }
.feed { list-style: none; margin: 0; padding: 10px; border-radius: 12px; background: var(--ink-800); border: 1px solid var(--line); height: 168px; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.feed li { display: flex; gap: 8px; align-items: center; font-size: .74rem; color: var(--text-2); white-space: nowrap; overflow: hidden; flex: none; }
.feed li.is-new { animation: tick-in .5s var(--ease-spring) both; }
.feed li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.feed li span { overflow: hidden; text-overflow: ellipsis; color: var(--text); }

/* ---------- comparison ---------- */
.why { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(14, 17, 32, .6); }
.compare { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child > * { border-bottom: 0; }
.compare thead th { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--text-2); }
.compare thead th.col-pulse { color: var(--text); }
.compare tbody th { font-weight: 600; color: var(--text-2); width: 34%; }
.compare td { color: var(--text-2); }
.compare td.col-pulse { color: var(--text); font-weight: 700; background: rgba(61, 245, 176, .05); box-shadow: inset 2px 0 0 rgba(61, 245, 176, .5); }
.compare thead th.col-pulse { background: rgba(61, 245, 176, .07); box-shadow: inset 2px 0 0 rgba(61, 245, 176, .5); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 64px); }
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-weight: 700; font-size: 1.05rem; border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); background:
  linear-gradient(var(--text), var(--text)) center / 12px 2px no-repeat, linear-gradient(var(--text), var(--text)) center / 2px 12px no-repeat; transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2); }
.faq details[open] summary::after { transform: rotate(135deg); background-color: rgba(124, 92, 255, .25); }
.faq summary:hover { color: #fff; }
.faq-a { padding: 0 4px 22px; color: var(--text-2); max-width: 60ch; }
.faq details[open] .faq-a { animation: row-in .35s var(--ease-out) both; }
.faq details[open] .faq-a { opacity: 0; transform: translateY(-4px); }

/* ---------- CTA + footer ---------- */
.cta { position: relative; padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--line); text-align: center; overflow-x: clip; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-trace { width: min(100%, 600px); height: 80px; margin-bottom: 24px; }
.cta-trace path { fill: none; stroke: url(#none); stroke: var(--mint); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(61, 245, 176, .7)); }
.cta.is-in .cta-trace path { animation: draw 1.8s var(--ease-out) forwards; }
.cta-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 6vw, 4.6rem); letter-spacing: -.045em; line-height: 1; }
.cta .section-lede { margin-inline: auto; }
.cta-btns { justify-content: center; }
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.footer nav a:hover { color: var(--text); }
.footer-note { margin-left: auto; color: var(--text-2); font-size: .85rem; }

/* ---------- sub-page header ---------- */
.page-head { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(24px, 4vw, 40px); isolation: isolate; }
.page-head::before { content: ''; position: absolute; inset: calc(var(--nav-h) * -1) 0 0; z-index: -1; background-image: linear-gradient(var(--grid-paper) 1px, transparent 1px), linear-gradient(90deg, var(--grid-paper) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.page-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 6vw, 4.4rem); letter-spacing: -.045em; line-height: 1; }
.page-lede { margin-top: 16px; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--text-2); max-width: 40em; }
.page-trace { display: block; width: 180px; height: 36px; margin-bottom: 20px; }
.page-trace path { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s .1s var(--ease-out) forwards; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--text-2); font-weight: 700; font-size: .86rem; cursor: pointer; transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1); }
.chip:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.chip[aria-pressed="true"] { color: var(--ink-950); background: var(--text); border-color: var(--text); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--violet-2)); }
.chip small { font-family: var(--font-mono); font-size: .75rem; opacity: .75; }

/* ---------- features page ---------- */
.fx-toolbar { position: sticky; top: var(--nav-h); z-index: 10; padding: 14px 0; background: linear-gradient(180deg, var(--ink-900) 70%, transparent); }
.fx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 8px 0 clamp(64px, 8vw, 120px); align-items: start; }
.fx-card { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(color-mix(in srgb, var(--c) 80%, transparent), color-mix(in srgb, var(--c) 80%, transparent)) top / 100% 3px no-repeat, linear-gradient(180deg, rgba(27, 32, 54, .6), rgba(14, 17, 32, .7)); scroll-margin-top: calc(var(--nav-h) + 80px); transition: border-color var(--dur-2), box-shadow var(--dur-2); overflow: hidden; }
.fx-card.is-open { border-color: color-mix(in srgb, var(--c) 50%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c) 45%, transparent); }
.fx-card[hidden] { display: none; }
.fx-card.is-entering { animation: card-in .4s var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.fx-top { padding: 22px 22px 18px; }
.fx-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 22px; background: color-mix(in srgb, var(--c) 15%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.fx-top h2 { margin-top: 16px; font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -.02em; }
.fx-tag { margin-top: 4px; color: var(--text); font-weight: 600; }
.fx-desc { margin-top: 10px; color: var(--text-2); font-size: .95rem; }
.fx-meta { display: flex; gap: 14px; margin-top: 14px; font-size: .84rem; color: var(--text-2); }
.fx-meta b { font-family: var(--font-mono); color: var(--text); font-weight: 600; }
.fx-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border: 0; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-weight: 700; font-size: .92rem; cursor: pointer; text-align: left; }
.fx-toggle:hover { background: rgba(255, 255, 255, .05); }
.fx-toggle::after { content: ''; width: 9px; height: 9px; border: solid var(--text-2); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--dur-2) var(--ease-out); }
.fx-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }
.fx-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-3) var(--ease-out); }
.fx-card.is-open .fx-more { grid-template-rows: 1fr; }
.fx-more > div { overflow: hidden; }
.fx-more-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 4px 22px 24px; }
.fx-more h3 { font-size: .9rem; font-weight: 800; color: var(--text); margin: 14px 0 10px; }
.fx-settings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fx-settings li { padding: 9px 12px; border-radius: 10px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); font-size: .88rem; }
.fx-settings li b { display: block; font-weight: 700; }
.fx-settings li span { color: var(--text-2); font-size: .84rem; }
.fx-cmds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fx-cmds li { padding: 9px 12px; border-radius: 10px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); font-size: .86rem; color: var(--text-2); }
.fx-cmds code { display: block; font-family: var(--font-mono); font-size: .84rem; color: var(--mint); margin-bottom: 2px; overflow-wrap: anywhere; }
.fx-empty { color: var(--text-2); font-size: .88rem; }
.fx-more a.link { display: inline-block; margin-top: 12px; font-size: .9rem; }
.fx-none { grid-column: 1 / -1; text-align: center; padding: 48px 0; color: var(--text-2); }

/* ---------- commands page ---------- */
.cmd-bar { position: sticky; top: var(--nav-h); z-index: 10; padding: 14px 0 12px; background: linear-gradient(180deg, var(--ink-900) 78%, rgba(9, 11, 22, 0)); }
.search { position: relative; display: flex; align-items: center; }
.search > svg { position: absolute; left: 18px; width: 20px; height: 20px; fill: none; stroke: var(--text-2); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; height: 56px; padding: 0 64px 0 50px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--ink-850); color: var(--text); font: inherit; font-size: 1.05rem; transition: border-color var(--dur-2), box-shadow var(--dur-2); }
.search input::placeholder { color: var(--text-2); }
.search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 92, 255, .25); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 14px; min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--ink-700); font-family: var(--font-mono); font-size: .85rem; color: var(--text-2); pointer-events: none; }
.search-clear { position: absolute; right: 10px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; font-size: 1.3rem; }
.search-clear:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.cmd-filters { margin-top: 12px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cmd-filters .chip { flex: none; }
.cmd-status { margin: 10px 0 0; font-size: .88rem; color: var(--text-2); }
.cmd-list { list-style: none; margin: 0; padding: 8px 0 clamp(64px, 8vw, 120px); display: grid; gap: 10px; }
.cmd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(19, 23, 41, .55); transition: border-color var(--dur-2); }
.cmd:hover { border-color: var(--line-strong); }
.cmd-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cmd-name { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; color: var(--text); }
.cmd-name mark, .cmd-desc mark { background: rgba(255, 196, 77, .28); color: inherit; border-radius: 3px; padding: 0 1px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; border: 1px solid var(--line-strong); color: var(--text-2); white-space: nowrap; }
.badge-mod { color: var(--c); border-color: color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.badge-perm svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.badge-perm.is-staff { color: var(--amber); border-color: rgba(255, 196, 77, .4); }
.badge-perm.is-all { color: var(--mint); border-color: rgba(61, 245, 176, .35); }
.cmd-desc { grid-column: 1; color: var(--text-2); font-size: .95rem; }
.cmd-usage { grid-column: 1 / -1; display: flex; align-items: stretch; gap: 0; border-radius: 10px; background: var(--ink-950); border: 1px solid var(--line); overflow: hidden; }
.cmd-usage code { flex: 1; padding: 10px 14px; font-family: var(--font-mono); font-size: .86rem; color: var(--mint); overflow-x: auto; white-space: pre; }
.copy { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 0; border-left: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text-2); font-weight: 700; font-size: .8rem; cursor: pointer; min-width: 84px; justify-content: center; }
.copy:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.copy.is-done { color: var(--mint); }
.cmd-opts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cmd-opts li { font-size: .8rem; padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); color: var(--text-2); }
.cmd-opts li b { font-family: var(--font-mono); font-weight: 600; color: var(--text); }
.cmd-opts li.req b::after { content: '*'; color: var(--ember); margin-left: 1px; }
.cmd-empty { text-align: center; padding: 56px 16px; color: var(--text-2); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.cmd-empty b { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 6px; }
.cmd-empty .btn { margin-top: 18px; }
.cmd-legend { font-size: .84rem; color: var(--text-2); margin-top: 6px; }
.cmd-legend span { color: var(--ember); }

/* ---------- leaderboard ---------- */
.lb-head { display: flex; align-items: center; gap: 20px; }
.lb-icon { flex: none; width: 72px; height: 72px; border-radius: 22px; overflow: hidden; display: grid; place-items: center; background: var(--av, var(--violet)); color: #0a0c18; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; box-shadow: 0 0 0 1px var(--line-strong), 0 10px 40px -10px var(--av, var(--violet)); position: relative; }
.lb-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-sub { margin-top: 8px; color: var(--text-2); }
.lb-sub b { font-family: var(--font-mono); color: var(--text); font-weight: 600; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: clamp(8px, 2vw, 20px); max-width: 760px; margin: clamp(24px, 4vw, 48px) auto 0; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.pod-av { position: relative; margin-bottom: 12px; opacity: 0; transform: translateY(-30px) scale(.7); animation: drop-in .6s var(--ease-spring) forwards; animation-delay: calc(var(--d) + .5s); }
.pod-av .avatar { box-shadow: 0 0 0 3px var(--ink-900), 0 0 0 5px var(--pc); }
.pod-crown { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); width: 30px; height: 20px; color: var(--amber); }
.pod-name { font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-lvl { font-size: .85rem; color: var(--text-2); margin-bottom: 12px; }
.pod-lvl small { display: block; font-size: .8rem; }
.pod-lvl b { font-family: var(--font-mono); color: var(--text); }
.pod-block { width: 100%; height: var(--ph); border-radius: 16px 16px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 35%, var(--ink-800)), var(--ink-850)); border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent); border-bottom: 0; display: flex; justify-content: center; padding-top: 14px; transform-origin: bottom; transform: scaleY(0); animation: grow .7s var(--ease-out) forwards; animation-delay: var(--d); font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--pc); }
@keyframes drop-in { to { opacity: 1; transform: none; } }
.lb-list { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: grid; gap: 8px; }
.lb-wrap { padding-top: 32px; padding-bottom: clamp(64px, 8vw, 120px); }
.lb-row { display: grid; grid-template-columns: 48px 44px minmax(0, 1fr) minmax(0, 220px) 72px; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(19, 23, 41, .55); animation: row-in2 .4s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes row-in2 { from { opacity: 0; transform: translateY(8px); } }
.lb-rank { font-family: var(--font-mono); font-weight: 600; color: var(--text-2); text-align: center; }
.lb-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name small { display: block; font-weight: 500; color: var(--text-2); font-size: .8rem; }
.lb-prog { display: grid; gap: 5px; }
.lb-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.lb-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-signal); transition: width 1s var(--ease-out); }
.lb-prog span { font-size: .76rem; color: var(--text-2); font-family: var(--font-mono); }
.lb-lvl { text-align: right; font-size: .75rem; color: var(--text-2); }
.lb-lvl b { display: block; font-family: var(--font-display); color: var(--text); font-size: 1.25rem; line-height: 1.1; }
.avatar { position: relative; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--av); color: #0a0c18; font-weight: 800; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-more { display: flex; justify-content: center; margin-top: 20px; min-height: 52px; }
.lb-end { color: var(--text-2); font-size: .9rem; }
.lb-state { max-width: 560px; margin: clamp(40px, 8vw, 96px) auto; text-align: center; padding: 0 0 80px; }
.lb-state h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: -.03em; }
.lb-state p { margin: 14px auto 28px; color: var(--text-2); max-width: 42ch; }
.flatline { width: 100%; height: 90px; margin-bottom: 24px; }
.flatline path { fill: none; stroke: var(--ember); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease-out) forwards; filter: drop-shadow(0 0 6px rgba(255, 93, 115, .6)); }
.skel { border-radius: var(--r-md); background: linear-gradient(90deg, var(--ink-800), var(--ink-700), var(--ink-800)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; height: 68px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 720px; }
  .band { grid-template-columns: minmax(0, 1fr); }
  .band-intro { position: static; max-width: 600px; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dc-body { grid-template-columns: minmax(0, 1fr); height: 430px; }
  .dc-rail, .dc-side { display: none; }
  .vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .vital:nth-child(3) { padding-left: 0; border-left: 0; }
  .vgrid { grid-template-columns: minmax(0, 1fr); }
  .vig-wide { grid-column: auto; flex-direction: column; }
  .vig-wide .vig-copy { border-left: 0; border-top: 1px solid var(--line); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dprev-body { grid-template-columns: minmax(0, 1fr); }
  .dprev-side { display: none; }
  .dprev-lower { grid-template-columns: minmax(0, 1fr); }
  .bars { height: 110px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .fx-grid { grid-template-columns: minmax(0, 1fr); }
  .fx-more-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ticker { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ticker-list { width: 100%; }
  .footer-note { margin-left: 0; width: 100%; }
  .lb-row { grid-template-columns: 32px 40px minmax(0, 1fr) 56px; gap: 10px; padding: 12px; }
  .lb-prog { grid-column: 3 / 5; grid-row: 2; }
  .lb-lvl { grid-column: 4; grid-row: 1; }
  .compare th, .compare td { padding: 12px 14px; font-size: .9rem; }
  .cmd { padding: 16px; grid-template-columns: minmax(0, 1fr); }
  .tk { grid-template-columns: 1fr 120px; }
  .lb-head { gap: 14px; }
  .stamp { font-size: .95rem; padding: 4px 10px; bottom: 12px; right: 12px; }
  .compare tbody th { width: auto; }
  .compare th, .compare td { padding: 12px 10px; font-size: .86rem; }
  .pod .avatar { width: 52px !important; height: 52px !important; font-size: 18px !important; }
  .pod:nth-child(2) .avatar { width: 64px !important; height: 64px !important; }
  .pod-name { font-size: .9rem; }
  .lb-icon { width: 56px; height: 56px; border-radius: 18px; font-size: 1.1rem; }
}
@media (max-width: 420px) {
  .hero-ctas .btn { flex: 1 1 100%; }
  .dc-tabs [role="tab"] { padding: 8px 11px 11px; font-size: .8rem; }
  .tk { grid-template-columns: minmax(0, 1fr); }
  .tk-channels { grid-column: 1; grid-row: 2; }
  .tk-msg { grid-row: 3; }
  .rank { grid-template-columns: 44px minmax(0, 1fr) 48px; gap: 10px; padding: 14px; }
  .rank-av { width: 44px; height: 44px; font-size: .85rem; }
  .rank-lvl b { font-size: 1.5rem; }
  .vital + .vital { padding-left: 14px; }
  .vital:nth-child(3) { padding-left: 0; }
}

/* ---------- reduced motion: show final states ---------- */
@media (prefers-reduced-motion: reduce) {
  .live-dot::after { display: none; }
  .case-rows div, .wcard-hi, .wcard-sub, .tk-msg, .remind, .pod-av { opacity: 1 !important; transform: none !important; }
  .stamp { opacity: 1; transform: rotate(-12deg) scale(1); }
  .case-warns i:nth-of-type(-n+3) { background: var(--ember); }
  .wcard-av svg { stroke-dashoffset: 0; }
  .wcard-av span, .wcard-roles span { transform: none; opacity: 1; }
  .tk-tear { opacity: .25; }
  .tk-new { max-height: 30px; padding-block: 3px !important; opacity: 1; }
  .tile path, .cta-trace path, .page-trace path, .flatline path { stroke-dashoffset: 0; }
  .bars i, .pod-block { transform: none; }
  .clock-arc { stroke-dashoffset: 0; }
  .showcase-hint { display: none; }
}

.dash .section-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }

/* =====================================================================
   Craft pass — hand-finished details layered on the existing design.
   Kit primitives live in /shared/craft.css; site-specific use is here.
   ===================================================================== */

/* ---------- typography finish ---------- */
.eyebrow { color: var(--text-2); }            /* kit default (--text-3) is under AA at 11px */
.tick time, .lb-rank, .fx-meta b, .chip small, .gw-row b, .case-no, .audit time, .tile b, .rank-xp, .am-count b, .lb-sub b, .pod-lvl b { font-variant-numeric: tabular-nums; }
.vital dt { font-variant-caps: all-small-caps; letter-spacing: .06em; font-size: 1rem; }
.hi { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- section rhythm: heartbeat rules instead of hairlines ---------- */
.section-rule { width: calc(100% - var(--gutter) * 2); }
.section-rule.is-flip { transform: scaleX(-1); }
.page-home .features, .page-home .dash, .page-home .why, .page-home .faq, .section-rule + .cta { border-top: 0; }

/* ---------- nav: drawn underline + heartbeat scroll progress ---------- */
.nav-menu > a { position: relative; }
.nav-menu > a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 7px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.2C20 3.4 41 2.6 60 3.3c13 .5 25 1.4 38 .6' fill='none' stroke='%23a18bff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path .42s var(--ease-out);
}
.nav-menu > a:hover::after, .nav-menu > a:focus-visible::after { clip-path: inset(0 0 0 0); }
.nav-menu > a[aria-current="page"] { background: rgba(124, 92, 255, .10); }
.nav-menu > a[aria-current="page"]::after { clip-path: inset(0 0 0 0); filter: hue-rotate(-95deg) saturate(1.4); }
.nav-pulse { position: absolute; left: 0; bottom: -9px; width: 100%; height: 18px; pointer-events: none; opacity: 0; transition: opacity var(--dur-2); }
.nav.is-scrolled { border-bottom-color: transparent; }
.nav.is-scrolled .nav-pulse { opacity: 1; }
.nav-pulse path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.nav-pulse-bg { stroke: rgba(160, 170, 255, .12); stroke-width: 1; }
.nav-pulse-fg { stroke: var(--mint); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 3px rgba(61, 245, 176, .7)); }
.nav.is-open .nav-pulse { opacity: 0; }

/* ---------- buttons: a little lip, so they feel pressable ---------- */
.btn-primary { box-shadow: inset 0 -2px 0 rgba(9, 11, 22, .16), inset 0 1px 0 #fff, 0 1px 0 rgba(0, 0, 0, .5), 0 8px 18px -10px rgba(76, 201, 255, .5); }
.btn-primary:hover { box-shadow: inset 0 -2px 0 rgba(9, 11, 22, .16), inset 0 1px 0 #fff, 0 0 0 4px rgba(61, 245, 176, .18), 0 10px 30px -8px rgba(76, 201, 255, .5); }
.btn-primary:active { box-shadow: inset 0 1px 2px rgba(9, 11, 22, .25), 0 0 0 4px rgba(61, 245, 176, .18); }
.btn-ghost { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -2px 0 rgba(0, 0, 0, .28); }
.btn-ghost:active { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }

/* ---------- material finish for panels ---------- */
:root { --shadow-site: 0 1px 0 var(--hairline-hi) inset, 0 18px 40px -24px rgba(0, 0, 0, .85), 0 2px 6px -2px rgba(0, 0, 0, .45); }
.crafted:where(.vig, .fx-card, .cmd, .lb-row, .table-wrap, .whatsnew) { box-shadow: var(--shadow-site); }
.dprev { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 40px 80px -40px rgba(0, 0, 0, .9), var(--glow-violet); }
.vig-copy { background: linear-gradient(180deg, rgba(255, 255, 255, .012), transparent); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease-out); }
  .tilt.is-tilting { transition-duration: .2s; }
  .rv.tilt { transition: opacity .7s var(--ease-out) var(--rv-d, 0ms), translate .8s var(--ease-out) var(--rv-d, 0ms), transform .7s var(--ease-out); }
  .rv.tilt.is-tilting { transition: opacity .7s var(--ease-out) var(--rv-d, 0ms), translate .8s var(--ease-out) var(--rv-d, 0ms), transform .2s var(--ease-out); }
}

/* one-shot reveals: cadence set per item in JS */
.rv { opacity: 0; translate: 0 var(--rv-y, 12px); transition: opacity .7s var(--ease-out) var(--rv-d, 0ms), translate .8s var(--ease-out) var(--rv-d, 0ms); }
.rv.is-shown { opacity: 1; translate: 0 0; }

/* ---------- stickers ---------- */
.sticker-mint { background: #d4f6e7; }
.sticker-new { background: var(--hand-ink); color: #2a1c05; font-size: 10.5px; padding: 4px 7px 5px; margin-left: 8px; vertical-align: 3px; letter-spacing: .06em; }
.sticker-new::after { display: none; }

/* ---------- marginalia ---------- */
.margin-note { position: absolute; z-index: 4; white-space: nowrap; }
.hand-note-text { flex: none; }
.margin-note .hand-arrow { margin-top: 12px; }
@media (max-width: 1239px) { .margin-note { display: none; } }

/* ---------- hero ---------- */
.hero-title-2.hand-underline::after { bottom: -.02em; height: .2em; left: -2%; right: 6%; }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.hero-note .sticker { font-size: 12.5px; }
.note-mock { top: -54px; right: 64%; }
.note-mock .hand-arrow { margin-top: 14px; }
.note-ecg { top: -20px; left: 41%; }
.note-ecg .hand-arrow { margin-top: 8px; }
.note-vitals-wrap { position: relative; height: 0; }
.note-vitals { right: calc(var(--gutter) + 40px); top: 6px; }
.note-vitals .hand-arrow { transform: scaleX(-1); margin-top: -18px; }
@media (min-width: 1240px) {
  .hero { padding-top: 64px; }
  .ticker { margin-top: 64px; }
}
.ticker-blip { display: inline-flex; width: 28px; margin: -10px -2px -6px -4px; }

/* ---------- feature bands ---------- */
.band-eyebrow { margin-bottom: 16px; gap: 12px; }
.band-eyebrow::before { display: none; }
.band-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--band); background: color-mix(in srgb, var(--band) 11%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--band) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, .07); rotate: -4deg; }
.band:nth-of-type(even) .band-ico { rotate: 3deg; }
.vig-copy h4::before { display: none; }
.vig-ico { color: var(--c); }
.vig-blip { position: absolute; right: 12px; bottom: -78px; z-index: 2; pointer-events: none; transition: transform .6s var(--ease-spring); }
.vig-blip.is-on { transform: translateY(-80px) rotate(-8deg); }

/* ---------- dashboard preview ---------- */
.dprev-holder { position: relative; min-width: 0; }
.note-dash { top: -60px; right: 56px; }
.note-dash .hand-arrow { margin-top: 10px; }
.dprev .ticks { inset: 42px 8px 8px; z-index: 2; }

/* ---------- comparison + maker note ---------- */
.why .wrap { position: relative; }
.maker-note { margin: 0 0 28px; max-width: 360px; }
.maker-label { display: block; font: 600 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.maker-note blockquote { margin: 0; }
.maker-note p { font: 700 clamp(22px, 2.2vw, 27px)/1.1 var(--font-hand); color: var(--hand-ink); text-wrap: balance; }
@media (min-width: 1080px) {
  .maker-note { position: absolute; right: var(--gutter); top: 6px; width: 340px; margin: 0; transform: rotate(-2.5deg); }
  .maker-note::before { content: ''; position: absolute; left: -26px; top: 22px; width: 18px; height: 60px; border-left: 2px solid rgba(255, 210, 122, .45); border-radius: 50% 0 0 50% / 50%; }
}
.why .table-wrap .ticks { inset: 8px; }
.hand-circle { margin-inline: .75em .5em; color: var(--text); }
.hand-circle::after { inset: -.16em -.62em -.2em; }
.why .section-lede { line-height: 1.75; }

/* ---------- FAQ ---------- */
.faq summary > span { display: inline; }

/* ---------- CTA: Blip peeking over the heartbeat rule ---------- */
.cta-peek { position: absolute; top: -14px; right: max(var(--gutter), calc(50% - 470px)); width: 92px; height: 58px; overflow: hidden; transform: translateY(-100%); pointer-events: none; z-index: 1; }
.cta-peek-blip { display: block; transform: translateY(7px); transition: transform .55s var(--ease-spring); }
.cta-peek.is-up .cta-peek-blip { transform: translateY(-2px); }
@media (max-width: 760px) { .cta-peek { right: 18px; scale: .8; transform-origin: bottom right; } }

/* ---------- commands ---------- */
.note-kbd { right: 6px; bottom: calc(100% + 4px); display: inline-flex; transition: opacity var(--dur-2); }
.note-kbd svg.hand-arrow { width: 40px; height: 30px; margin-top: 8px; }
html.is-scrolled .note-kbd { opacity: 0; }
@media (max-width: 899px) { .note-kbd { display: none; } }
@media (min-width: 900px) and (max-width: 1239px) { .note-kbd { display: inline-flex; } }
.cmd-usage { overflow: visible; position: relative; }
.cmd-usage code { border-radius: 9px 0 0 9px; }
.copy { border-radius: 0 9px 9px 0; }
.copied-note { position: absolute; right: 30px; bottom: calc(100% - 2px); z-index: 3; font-size: 21px; opacity: 0; translate: 0 6px; transition: opacity .2s, translate .35s var(--ease-spring); }
.copied-note.is-on { opacity: 1; translate: 0 0; }
.copied-note svg.hand-arrow { width: 34px; height: 26px; margin-top: 6px; }
.empty-blip { display: block; width: 96px; margin: 0 auto 10px; }

/* ---------- features page ---------- */
.fx-icon { color: var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); rotate: -3deg; }
.fx-card:nth-child(3n+2) .fx-icon { rotate: 2deg; }
.fx-card:nth-child(3n) .fx-icon { rotate: -1deg; }

/* ---------- leaderboard ---------- */
.lb-state-blip { position: relative; width: 112px; margin: 0 auto -56px; z-index: 1; }
.lb-state:not(.is-flat) .lb-state-blip { margin-bottom: -40px; }
.lb-state > .lb-state-blip:first-child + h1 { margin-top: 18px; }
.lb-state-note { position: absolute; left: calc(100% + 4px); top: -8px; white-space: nowrap; flex-direction: row; }
.lb-state-note .hand-arrow { transform: rotate(-6deg); margin-top: 14px; }
@media (max-width: 520px) { .lb-state-note { left: auto; right: calc(100% - 4px); top: -30px; font-size: 19px; } .lb-state-note .hand-arrow { display: none; } }

/* ---------- footer ---------- */
.footer { padding-top: 44px; }
.footer-craft { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; margin-bottom: 36px; }
.whatsnew { position: relative; width: min(100%, 390px); padding: 24px 22px 18px; border-radius: 14px; background: var(--ink-850); transform: rotate(-.8deg); }
.whatsnew-title { margin: 0 0 14px; font-size: 1rem; }
.whatsnew-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: .9rem; color: var(--text-2); }
.whatsnew-list li { position: relative; padding-left: 18px; }
.whatsnew-list li::before { content: ''; position: absolute; left: 1px; top: .7em; width: 9px; height: 2px; border-radius: 2px; background: var(--mint); transform: rotate(-8deg); }
.footer-sign { display: flex; align-items: flex-end; gap: 8px; font: 700 26px/1 var(--font-hand); color: var(--hand-ink); }
.footer-sign-text { display: inline-block; padding-bottom: 14px; transform: rotate(-3deg); }
.footer-blip { display: inline-flex; width: 58px; }
.blip-wave { transform-box: view-box; transform-origin: 97px 77px; animation: blip-wave 2.4s ease-in-out infinite; }
@keyframes blip-wave { 0%, 55%, 100% { transform: rotate(0); } 65% { transform: rotate(-24deg); } 75% { transform: rotate(6deg); } 85% { transform: rotate(-18deg); } }
@media (max-width: 600px) { .footer-sign { font-size: 22px; } }

/* ---------- easter egg ---------- */
.blip-run { position: fixed; left: 0; bottom: 12px; z-index: 9996; pointer-events: none; display: flex; align-items: flex-end; }
.blip-run-hop { display: block; animation: run-hop .34s ease-in-out infinite alternate; }
@keyframes run-hop { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-16px) rotate(4deg); } }
.blip-run-say { margin: 0 0 66px -6px; --tilt: -6deg; }
.blip-run.is-still { left: 50%; translate: -50% 0; }
.search:focus-within .note-kbd { opacity: 0; }
@media (max-width: 760px) { .hand-circle { margin-inline: .6em .4em; } }
.pod-note { left: calc(100% + 2px); top: -34px; }
.pod-note .hand-arrow { margin-top: 16px; }

/* =====================================================================
   v2 — site-wide pieces brought to the dashboard's level:
   palette (⌘K), shortcuts sheet, nav search, active swash, toasts, states,
   module vignettes, footer finish. Shared by every page incl. the landing.
   ===================================================================== */

/* ---------- keycaps ---------- */
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--ink-700), var(--ink-800)); box-shadow: inset 0 -1.5px 0 rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05); font: 600 11px/1 var(--font-mono); color: var(--text-2); }

/* ---------- nav: search trigger ---------- */
.nav-search { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 7px 0 12px; margin-left: 10px; border-radius: 11px; border: 1px solid var(--line); background: rgba(8, 10, 20, .5); color: var(--text-2); font: 600 .86rem var(--font-body); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); transition: color var(--dur-1), border-color var(--dur-1), background var(--dur-1); }
.nav-search:hover { color: var(--text); border-color: var(--line-strong); background: rgba(19, 23, 41, .8); }
.nav-search .hi { width: 16px; height: 16px; }
.nav-search-text { min-width: 44px; text-align: left; }
.nav-search-keys { display: inline-flex; gap: 3px; }
.nav-search.is-compact { display: none; width: 44px; height: 44px; padding: 0; margin-left: auto; justify-content: center; border-radius: 12px; border-color: var(--line-strong); }
.nav-search.is-compact .hi { width: 18px; height: 18px; }
.nav-search.is-compact + .nav-toggle { margin-left: 8px; }
@media (max-width: 1100px) and (min-width: 861px) { .nav-search-text { display: none; } .nav-search { padding: 0 7px 0 10px; } }
@media (max-width: 860px) {
  .nav-menu .nav-search { display: none; }
  .nav-search.is-compact { display: inline-flex; }
}

/* ---------- nav: current page gets the dashboard's marker swash + a drawn stroke ---------- */
.nav-menu > a[aria-current="page"] {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40' preserveAspectRatio='none'%3E%3Cpath d='M6 9C40 4 120 3 232 6c4 9 4 19 1 28-70 4-150 4-226 1C3 27 3 17 6 9z' fill='%237c5cff' fill-opacity='.22'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.nav-menu > a[aria-current="page"]::after {
  filter: none; height: 9px; bottom: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 9' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%237c5cff'/%3E%3Cstop offset='.55' stop-color='%234cc9ff'/%3E%3Cstop offset='1' stop-color='%233df5b0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 5.6C14 3 27 6.8 40 4.6s25-2.6 38-.8c7 1 13 1.4 20 .2' fill='none' stroke='url(%23g)' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  animation: nav-swash .5s var(--ease-out) .1s both;
}
@keyframes nav-swash { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- command palette (same anatomy as the dashboard's) ---------- */
html.modal-open { overflow: hidden; }
.palette-wrap { position: fixed; inset: 0; z-index: 9990; display: flex; justify-content: center; align-items: flex-start; padding: min(14vh, 120px) 16px 16px; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 10, .66); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: pal-fade var(--dur-2); }
.palette { position: relative; width: min(640px, 100%); max-height: min(580px, calc(100vh - 140px)); display: flex; flex-direction: column; border-radius: 18px; background: var(--ink-850); border: 1px solid var(--line-strong); box-shadow: 0 1px 0 var(--hairline-hi) inset, 0 40px 120px -30px #000, 0 0 0 1px rgba(124, 92, 255, .12); animation: pal-in var(--dur-3) var(--ease-spring); overflow: hidden; }
.palette-wrap.out .palette, .palette-wrap.out .sheet { animation: pal-out .16s forwards; }
.palette-wrap.out .palette-backdrop { animation: pal-fade .16s reverse forwards; }
@keyframes pal-in { from { transform: translateY(-10px) scale(.98); opacity: 0; } }
@keyframes pal-out { to { transform: translateY(-6px) scale(.985); opacity: 0; } }
@keyframes pal-fade { from { opacity: 0; } }
.pal-search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.pal-search .pal-ic { background: none; width: 20px; }
.pal-input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 16px var(--font-body); padding: 4px 0; color: var(--text); }
.pal-input:focus { outline: none; }
.pal-input::placeholder { color: var(--text-3); font-weight: 500; }
.pal-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; scrollbar-width: thin; overscroll-behavior: contain; }
.pal-group { font-size: 11.5px; font-weight: 700; color: var(--text-2); padding: 10px 10px 4px; }
.pal-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--text-2); font-weight: 600; font-size: 14px; }
.pal-opt.active { background: rgba(124, 92, 255, .18); color: var(--text); box-shadow: inset 0 0 0 1px rgba(124, 92, 255, .3); }
.pal-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: rgba(160, 170, 255, .07); color: var(--text-2); }
.pal-ic .hi { width: 16px; height: 16px; }
.pal-opt.active .pal-ic { color: var(--violet-2); background: rgba(124, 92, 255, .18); }
.pal-label { flex: 1; min-width: 0; display: grid; }
.pal-label > span, .pal-label small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-label small { font-weight: 500; font-size: 12.5px; color: var(--text-2); }
.pal-opt.active .pal-label small { color: #c4c8e6; }
.pal-cmd { font-family: var(--font-mono); font-size: 13.5px; }
.pal-label mark { background: none; color: var(--hand-ink); text-decoration: underline; text-decoration-color: rgba(255, 210, 122, .5); text-underline-offset: 3px; }
.pal-kind, .pal-hint { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.pal-hint.here { color: var(--mint); }
.pal-copied { position: absolute; right: 86px; top: 50%; translate: 0 -50%; font-size: 21px; gap: 2px; align-items: center; animation: pal-note .3s var(--ease-spring); background: rgba(14, 17, 32, .85); padding: 0 6px; border-radius: 8px; }
.pal-copied .hand-arrow { width: 30px; height: 22px; }
@keyframes pal-note { from { opacity: 0; translate: 6px -50%; } }
.pal-empty { padding: 28px 16px; text-align: center; color: var(--text-2); font-size: 14px; display: grid; gap: 8px; }
.pal-empty-face { font-size: 20px; color: var(--hand-ink); }
.pal-foot { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.pal-foot > span { display: inline-flex; align-items: center; gap: 4px; }
.pal-foot .grow { flex: 1; }
.pal-foot .sticker { font-size: 11px; padding: 3px 8px 4px; }
@media (max-width: 560px) { .palette-wrap { padding: 12px; } .pal-foot > span:first-child, .pal-foot .sticker { display: none; } .pal-copied { right: 10px; } }

/* ---------- sheet (shortcuts) ---------- */
.sheet-wrap { align-items: center; padding: 16px; }
.sheet { position: relative; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px 26px 22px; border-radius: 18px; background: var(--ink-850); border: 1px solid var(--line-strong); box-shadow: 0 1px 0 var(--hairline-hi) inset, 0 40px 120px -30px #000; animation: pal-in var(--dur-3) var(--ease-spring); }
.sheet:focus { outline: none; }
.sheet .tape { opacity: .75; }
.sheet-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.sheet-head > div { flex: 1; min-width: 0; }
.sheet-head h2 { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.02em; margin: 0; }
.sheet-head p { margin: 6px 0 0; color: var(--text-2); font-size: .9rem; }
.sheet-x { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text-2); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.sheet-x:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
@media (max-width: 620px) { .shortcuts { grid-template-columns: minmax(0, 1fr); } }
.sc-h { font-size: 13px; font-weight: 800; color: var(--text-2); margin: 4px 0 8px; }
.sc-list { list-style: none; margin: 0; padding: 0; display: grid; }
.sc-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.sc-row:last-child { border-bottom: 0; }
.sc-keys { display: inline-flex; align-items: center; gap: 5px; min-width: 92px; }
.sc-then { font-size: 11px; color: var(--text-2); }
.sc-note { grid-column: 1 / -1; display: flex; justify-content: flex-end; margin: 10px 0 0; }

/* ---------- toasts with Blip faces ---------- */
.toasts { position: fixed; z-index: 9991; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: var(--r-md); background: var(--ink-800); border: 1px solid var(--line-strong); box-shadow: 0 1px 0 var(--hairline-hi) inset, 0 20px 50px -20px #000; animation: toast-in var(--dur-3) var(--ease-spring); }
.toast.out { animation: toast-out var(--dur-2) var(--ease-out) forwards; }
.toast-face { width: 38px; height: 38px; flex: none; display: grid; place-items: center; }
.toast-face .blip { width: 38px; }
.toast-face .blip .blip-body { animation: none; }
.toast-body { display: grid; gap: 1px; font-size: 14px; min-width: 0; }
.toast-body span { color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.toast-success { border-color: rgba(61, 245, 176, .3); }
.toast-error { border-color: rgba(255, 93, 115, .35); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
@media (max-width: 560px) { .toasts { right: 16px; bottom: 16px; } }

/* ---------- states: Blip fronts every empty / error state ---------- */
.state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 44px 16px; }
.state-blip { display: grid; margin-bottom: 4px; }
.state-title { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.5rem); letter-spacing: -.02em; font-weight: 700; margin: 0; }
.state p { color: var(--text-2); max-width: 46ch; margin: 0; }
.state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.state.compact { padding: 26px 12px; }

/* ---------- module vignettes (js/illustrations.js) ---------- */
.vignette { --tc: var(--violet-2); width: 84px; height: 84px; flex: none; display: grid; place-items: center; color: var(--tc); border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tc) 14%, transparent), transparent 92%); }
.vignette svg { width: 76px; height: 76px; overflow: visible; }
.vignette path, .vignette rect, .vignette circle { stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.vignette .v-soft { opacity: .5; }
.vignette .v-ink { stroke: var(--hand-ink); }
.vignette .v-fill { fill: rgba(255, 210, 122, .16); }
.vignette .v-dot { fill: currentColor; stroke: none; }
.vignette .v-bar { stroke-width: 7; }
.vignette .v-cursor { fill: var(--hand-ink); stroke: none; animation: v-blink 1.1s steps(2) infinite; }
.vignette .v-hand { font: 700 15px var(--font-hand); fill: var(--hand-ink); stroke: none; }
.vignette.tone-ember { --tc: var(--ember); } .vignette.tone-amber { --tc: var(--amber); } .vignette.tone-mint { --tc: var(--mint); }
.vignette.tone-sky { --tc: var(--sky); } .vignette.tone-violet { --tc: var(--violet-2); } .vignette.tone-violet-2 { --tc: var(--violet-2); }
.vignette.is-sm { width: 58px; height: 58px; } .vignette.is-sm svg { width: 52px; height: 52px; }
@keyframes v-blink { 50% { opacity: 0; } }

/* ---------- footer finish: taped "What's new", hand-signed note, small Blip ---------- */
.footer { position: relative; background: linear-gradient(180deg, transparent, rgba(14, 17, 32, .6) 40%); }
.whatsnew { box-shadow: var(--shadow-site, var(--shadow-craft)); }
.whatsnew-list li b { color: var(--text); font-weight: 700; }
.whatsnew-list time { font: 500 .75rem var(--font-mono); color: var(--text-2); margin-left: 6px; }
.footer-sign { position: relative; }
.footer-sign-text small { display: block; font: 600 .78rem var(--font-body); color: var(--text-2); transform: rotate(2deg); margin-top: 4px; letter-spacing: 0; }
.footer-keys { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: .85rem; }
.footer-keys button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 2px 4px; }
.footer-keys button:hover { color: var(--text); }
.footer-keys button:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .palette, .sheet, .palette-backdrop, .toast, .pal-copied, .nav-menu > a[aria-current="page"]::after { animation: none !important; }
  .vignette .v-cursor { animation: none; }
}
.whatsnew-list code { font: 500 .82rem var(--font-mono); color: var(--mint); }
