/* VibeStudio website: one stylesheet for every page.
   Dark and glassy with the lime and mint Vibe accent by default, as before.
   Two more looks borrow the app's own: Warm paper (ink and amber on paper,
   the app's default) and ASCII (amber on black, monospace). A look is
   html[data-look]; assets/vs.js switches it and keeps nothing.
   System fonts only, no third-party requests, no inline styles (the
   Content-Security-Policy forbids them), no build step. */

:root {
  color-scheme: dark;
  --bg: #080c0b;
  --bg-2: #0e1513;
  --panel: rgb(20 30 25 / .62);
  --panel-solid: #141e19;
  --panel-raised: #1c2822;
  --line: rgb(197 255 115 / .12);
  --line-strong: rgb(197 255 115 / .3);
  --ink: #102019;
  --text: #e0e7e2;
  --head: #f3f8f4;
  --muted: #b0bdb4;
  --dim: #8e9d94;
  --accent: #c5ff73;
  --accent-bright: #deffb1;
  --accent-2: #86efdd;
  --accent-3: #45cbb5;
  --good: #57ff9a;
  --warn: #ffd479;
  --bad: #ff9c9c;
  --grad: linear-gradient(100deg, #deffb1, #c5ff73 40%, #86efdd);
  --btn-bg: linear-gradient(120deg, #deffb1, #c5ff73);
  --btn-ink: #102019;
  --sky: radial-gradient(1000px 700px at 92% 1%, rgb(134 239 221 / .09), transparent 70%), radial-gradient(900px 800px at -15% 35%, rgb(197 255 115 / .045), transparent 70%);
  --font-display: "Segoe UI Variable Display", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Segoe UI Variable Text", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Cascadia Mono", ui-monospace, "SF Mono", Consolas, Menlo, monospace;
  --r-lg: 26px;
  --r: 18px;
  --r-sm: 12px;
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(64px, 8vw, 120px);
  --shadow: 0 30px 80px -30px rgb(0 0 0 / .85);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Warm paper: the app's default look since 0.5. */
html[data-look="paper"] {
  color-scheme: light;
  --bg: #f4eee3;
  --bg-2: #ece4d5;
  --panel: rgb(255 252 245 / .78);
  --panel-solid: #fffaf1;
  --panel-raised: #fffdf8;
  --line: rgb(60 40 15 / .13);
  --line-strong: rgb(60 40 15 / .28);
  --ink: #fffaf1;
  --text: #2c241b;
  --head: #1b150f;
  --muted: #5f5243;
  --dim: #85735f;
  --accent: #9a5a12;
  --accent-bright: #7a4408;
  --accent-2: #b8741f;
  --accent-3: #6e4a1f;
  --good: #2f7d44;
  --warn: #9a6b00;
  --bad: #b23a3a;
  --grad: linear-gradient(100deg, #3a2410, #9a5a12 55%, #c4842c);
  --btn-bg: #1b150f;
  --btn-ink: #fffaf1;
  --sky: radial-gradient(1100px 700px at 90% 0%, rgb(196 132 44 / .12), transparent 70%), radial-gradient(900px 700px at -10% 40%, rgb(120 80 30 / .06), transparent 70%);
  --shadow: 0 26px 60px -34px rgb(60 40 15 / .45);
}

/* ASCII: amber on black, everything monospace. */
html[data-look="ascii"] {
  --bg: #0b0803;
  --bg-2: #120d05;
  --panel: rgb(30 21 6 / .7);
  --panel-solid: #171005;
  --panel-raised: #1f1607;
  --line: rgb(255 176 32 / .22);
  --line-strong: rgb(255 176 32 / .5);
  --ink: #140d02;
  --text: #f6c867;
  --head: #ffd98a;
  --muted: #c79a45;
  --dim: #94733a;
  --accent: #ffb020;
  --accent-bright: #ffd27a;
  --accent-2: #ffc24d;
  --accent-3: #e09a1a;
  --grad: linear-gradient(100deg, #ffd27a, #ffb020);
  --btn-bg: #ffb020;
  --btn-ink: #140d02;
  --sky: radial-gradient(1200px 800px at 50% -10%, rgb(255 176 32 / .07), transparent 70%);
  --font-display: var(--font-mono);
  --font-ui: var(--font-mono);
  --r-lg: 0;
  --r: 0;
  --r-sm: 0;
}

/* ---- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--bg); background-image: var(--sky); background-attachment: fixed; color: var(--text); font: 400 17px/1.6 var(--font-ui); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-bright); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--head); }
h1, h2, h3, h4 { margin: 0; color: var(--head); font-family: var(--font-display); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
code, kbd { font-family: var(--font-mono); font-size: .9em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--ink); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-ink); font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
[hidden] { display: none !important; }

/* ---- header -------------------------------------------------------------- */
.head { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px) saturate(1.3); background: rgb(from var(--bg) r g b / .78); border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--head); text-decoration: none; font: 800 1.12rem var(--font-display); letter-spacing: -.045em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
html[data-look="ascii"] .brand img { border-radius: 0; filter: sepia(1) saturate(3) hue-rotate(-12deg); }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { padding: 8px 13px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--head); background: rgb(from var(--accent) r g b / .1); }
.head-acts { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .nav { display: none; }
  .head-acts { margin-left: auto; }
  .head-acts .btn-sm.quiet { display: none; }
  .menu-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
  .head.open .nav { display: grid; position: absolute; top: 68px; left: 0; right: 0; padding: 12px var(--gutter) 18px; gap: 2px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .head.open .nav a { padding: 12px 14px; font-size: 1rem; }
}
@media (max-width: 420px) { .brand span { display: none; } }

/* ---- buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 22px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgb(from var(--panel-solid) r g b / .6); color: var(--head); font-weight: 650; font-size: .98rem; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--head); }
.btn:active { transform: translateY(0); }
.btn.primary { border-color: transparent; background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 8px 30px -14px rgb(from var(--accent) r g b / .7); }
.btn.primary:hover { color: var(--btn-ink); filter: brightness(1.06); }
.btn.lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn[aria-disabled="true"], .btn:disabled { cursor: not-allowed; opacity: .75; transform: none; }
.btn .tag { padding: 2px 8px; border-radius: 999px; background: rgb(from var(--accent) r g b / .14); color: var(--accent-bright); font: 700 .68rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[data-look="ascii"] .btn { border-radius: 0; }

.label { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--accent-bright); font: 700 .76rem var(--font-mono); text-transform: uppercase; letter-spacing: .13em; }
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.soon { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font: 650 .72rem var(--font-mono); letter-spacing: .06em; vertical-align: middle; white-space: nowrap; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }

/* ---- hero ---------------------------------------------------------------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font-size: .9rem; text-decoration: none; }
.pill b { padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); font: 800 .7rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
html[data-look="paper"] .pill b { color: #fffaf1; }
.pill:hover { color: var(--head); border-color: var(--line-strong); }
.hero h1 { margin: 26px 0 24px; font-size: clamp(3rem, 7vw, 6.6rem); font-weight: 800; letter-spacing: -.065em; line-height: .98; }
.hero h1 .ln { display: block; }
html[data-look="ascii"] .hero h1 { letter-spacing: -.04em; font-size: clamp(2.4rem, 5.6vw, 5rem); }
.lede { max-width: 50ch; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.6; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--dim); font-size: .9rem; }
.meta li::before { content: "✓"; margin-right: 8px; color: var(--accent); font-weight: 800; }
.fine { color: var(--dim); font-size: .88rem; line-height: 1.55; }

/* The hero's window: a glimpse of the Lobby as it looks on this site. */
.peek { position: relative; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--panel-solid); box-shadow: var(--shadow); overflow: hidden; }
.peek-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--head); }
.peek-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgb(from var(--good) r g b / .15); }
.peek-bar small { margin-left: auto; color: var(--dim); font: 600 .74rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.peek-feed { display: grid; gap: 14px; padding: 20px 18px 16px; min-height: 300px; align-content: end; }
.peek-msg { display: grid; grid-template-columns: 34px 1fr; gap: 12px; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.peek-msg.on { opacity: 1; transform: none; }
.peek-msg i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgb(from var(--accent-2) r g b / .18); color: var(--head); font: 800 .85rem var(--font-ui); font-style: normal; }
.peek-msg.b i { background: rgb(from var(--accent) r g b / .2); }
.peek-msg.c i { background: rgb(from var(--warn) r g b / .2); }
.peek-msg b { color: var(--head); font-size: .9rem; }
.peek-msg span { color: var(--dim); font-size: .76rem; margin-left: 6px; }
.peek-msg p { margin: 2px 0 0; color: var(--text); font-size: .95rem; line-height: 1.45; }
.peek-msg em { font-style: normal; color: var(--accent-bright); font-weight: 650; }
.peek-lock { display: flex; align-items: center; gap: 12px; margin: 0 14px 14px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); font-size: .9rem; }
.peek-lock svg { flex: none; width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2; }
.peek-lock a { margin-left: auto; font-weight: 700; white-space: nowrap; }
.peek-note { margin: 10px 4px 0; color: var(--dim); font-size: .78rem; }
.peek-pet { position: absolute; right: 18px; top: 58px; width: 84px; opacity: .95; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .peek-feed { min-height: 0; } }

/* ---- sections ------------------------------------------------------------ */
.sec { padding: var(--section) 0; }
.sec.band { background: rgb(from var(--panel-solid) r g b / .35); border-block: 1px solid var(--line); }
.sec-head { max-width: 820px; margin: 0 0 clamp(32px, 4vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .label { justify-content: center; }
.sec-head h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); font-weight: 800; letter-spacing: -.055em; margin-bottom: 18px; }
.sec-head p { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 62ch; }
.sec-head.center p { margin-inline: auto; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { position: relative; padding: clamp(22px, 2.2vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.card.hi { border-color: rgb(from var(--accent) r g b / .45); background: linear-gradient(140deg, rgb(from var(--accent) r g b / .1), var(--panel)); }
.card h3 { margin: 0 0 10px; font-size: 1.42rem; letter-spacing: -.03em; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.card p + p { margin-top: .7em; }
.card .k { display: block; margin: 0 0 22px; color: var(--accent-bright); font: 700 .72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.card .big { display: block; margin: 0 0 6px; color: var(--head); font: 800 clamp(2.4rem, 4vw, 3.4rem)/1 var(--font-display); letter-spacing: -.06em; }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .94rem; color: var(--text); }
.card li { position: relative; padding-left: 18px; }
.card li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); }
.card .soon { position: absolute; top: 20px; right: 20px; }

/* A section with a picture beside its words. */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .sec-head { margin-bottom: 26px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.points { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--muted); }
.points li b { display: block; color: var(--head); }
.points li::before { content: ""; width: 26px; height: 26px; margin-top: 1px; border-radius: 9px; background: rgb(from var(--accent) r g b / .14) url("check.svg") center / 14px no-repeat; }

.shot { margin: 0; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--panel-solid); box-shadow: var(--shadow); overflow: hidden; }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: .8rem; }
.shots-phone { display: flex; gap: 18px; justify-content: center; align-items: flex-end; }
.shots-phone .shot { flex: 0 1 260px; border-radius: 30px; }

/* The Shop's counts. */
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.counts li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); color: var(--muted); font-size: .9rem; }
.counts b { display: block; color: var(--head); font: 800 1.7rem/1.1 var(--font-display); letter-spacing: -.04em; }
@media (max-width: 680px) { .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Looks: three swatches that switch this site's own look. */
.looks { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 22px; }
.look-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--head); font-weight: 650; cursor: pointer; }
.look-btn[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.look-btn i { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgb(0 0 0 / .2); }
.look-btn .sw-vibe { background: linear-gradient(135deg, #080c0b 45%, #c5ff73 46% 70%, #86efdd 71%); }
.look-btn .sw-paper { background: linear-gradient(135deg, #f4eee3 45%, #1b150f 46% 70%, #b8741f 71%); }
.look-btn .sw-ascii { background: linear-gradient(135deg, #0b0803 45%, #ffb020 46% 70%, #ffd27a 71%); }
.theme-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.theme-list li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .85rem; }

/* Ranks. */
.ranks { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: r; }
.ranks li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: .85rem; }
.ranks li small { margin-left: 6px; color: var(--dim); font-family: var(--font-mono); }

/* Steps (how joining works). */
.steps { counter-reset: s; }
.steps .card { padding-top: 64px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; left: clamp(22px, 2.2vw, 32px); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--ink); font: 800 .9rem var(--font-mono); }
html[data-look="paper"] .steps .card::before { color: #fffaf1; }

/* The rolling word in a headline: words stacked in one cell, one shown. */
.roll { display: inline-grid; vertical-align: bottom; }
.roll > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.35em); transition: opacity .45s var(--ease), transform .6s var(--ease); white-space: nowrap; }
.roll > span.on { opacity: 1; transform: none; }

/* ---- the last call ------------------------------------------------------- */
.final { text-align: center; }
.final h2 { font-size: clamp(2.4rem, 5.4vw, 5rem); font-weight: 800; letter-spacing: -.06em; margin-bottom: 20px; }
.final .cta { justify-content: center; }
.final .lede { margin-inline: auto; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { max-width: 900px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.faq summary { padding: 18px 22px; color: var(--head); font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font: 700 1.2rem var(--font-mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---- footer -------------------------------------------------------------- */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--line); color: var(--dim); font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: flex-start; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--head); }
.foot p { margin: 8px 0 0; max-width: 56ch; }
.look-pick { display: inline-flex; gap: 6px; align-items: center; }
.look-pick button { width: 26px; height: 26px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; cursor: pointer; }
.look-pick button[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.look-pick .sw-vibe { background: linear-gradient(135deg, #080c0b 50%, #c5ff73 50%); }
.look-pick .sw-paper { background: linear-gradient(135deg, #f4eee3 50%, #9a5a12 50%); }
.look-pick .sw-ascii { background: linear-gradient(135deg, #0b0803 50%, #ffb020 50%); }

/* ---- reveal on scroll ------------------------------------------------------ */
html.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
html.motion [data-reveal].in { opacity: 1; transform: none; }

/* ---- forms (invite.html) ------------------------------------------------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
.page-head h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); font-weight: 800; letter-spacing: -.06em; margin: 0 0 18px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: var(--section); }
@media (max-width: 960px) { .form-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { color: var(--head); font-weight: 700; font-size: .95rem; }
.field .hint { color: var(--dim); font-size: .84rem; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgb(from var(--bg) r g b / .55); color: var(--head); font-size: 1rem; }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(from var(--accent) r g b / .2); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: .85rem; min-height: 0; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--muted); font-size: .92rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.count { color: var(--dim); font: 600 .78rem var(--font-mono); text-align: right; }
.notice { padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--panel); color: var(--text); }
.notice.good { border-color: rgb(from var(--good) r g b / .5); }
.notice.bad { border-color: rgb(from var(--bad) r g b / .55); }
.notice b { color: var(--head); }
.token { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.token code { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgb(from var(--bg) r g b / .6); color: var(--head); overflow-wrap: anywhere; user-select: all; }
.status-row { display: flex; align-items: center; gap: 10px; color: var(--head); font-weight: 700; }
.status-row .st { padding: 4px 12px; border-radius: 999px; font: 700 .76rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; background: rgb(from var(--warn) r g b / .16); color: var(--warn); }
.status-row .st.approved { background: rgb(from var(--good) r g b / .16); color: var(--good); }
.status-row .st.declined { background: rgb(from var(--bad) r g b / .16); color: var(--bad); }

/* ---- the web chat (lobby.html) ------------------------------------------- */
body.chat-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.chat-main { flex: 1; display: flex; padding: 22px 0 28px; }
.chat-main > .wrap { display: flex; flex-direction: column; }
.chat-shell { flex: 1; display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 560px; height: calc(100dvh - 68px - 50px); max-height: 900px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--panel-solid); box-shadow: var(--shadow); overflow: hidden; }
.rooms { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgb(from var(--bg) r g b / .35); min-height: 0; }
.rooms h2 { padding: 18px 18px 8px; font: 700 .74rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.room-list { flex: 1; margin: 0; padding: 0 10px 10px; list-style: none; overflow-y: auto; }
.room-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; font-weight: 600; }
.room-list button:hover { background: rgb(from var(--accent) r g b / .07); color: var(--head); }
.room-list button[aria-current="true"] { background: rgb(from var(--accent) r g b / .13); color: var(--head); }
.room-list .hash { color: var(--accent); font-family: var(--font-mono); }
.room-list .n { margin-left: auto; color: var(--dim); font: 600 .74rem var(--font-mono); }
.room-list .unread { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: auto; }
.me { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: .9rem; }
.me b { color: var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me button { margin-left: auto; }
.avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: rgb(from var(--accent-2) r g b / .2); color: var(--head); font-weight: 800; font-size: .85rem; }
.room-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.room-top { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.room-top h1 { font-size: 1.15rem; letter-spacing: -.02em; }
.room-top .online { color: var(--dim); font-size: .85rem; }
.room-top .online::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--good); }
.room-top .conn { margin-left: auto; color: var(--dim); font: 600 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.room-top .conn.bad { color: var(--warn); }
.rooms-toggle { display: none; }
.feed { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; }
.feed-empty { margin: auto; max-width: 42ch; text-align: center; color: var(--dim); font-size: .92rem; }
.msg { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 0 12px; padding: 6px 8px; border-radius: 12px; }
.msg:hover { background: rgb(from var(--accent) r g b / .04); }
.msg .avatar { grid-row: span 2; width: 38px; height: 38px; margin-top: 2px; }
.msg.cont { padding-top: 0; }
.msg.cont .avatar { visibility: hidden; height: 0; }
.msg-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.msg-head b { color: var(--head); font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-head time { color: var(--dim); font-size: .74rem; white-space: nowrap; }
.msg.cont .msg-head { display: none; }
.msg-text { margin: 0; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.msg-text .mention { padding: 0 4px; border-radius: 6px; background: rgb(from var(--accent) r g b / .16); color: var(--accent-bright); font-weight: 650; }
.msg-text .mention.you { background: rgb(from var(--warn) r g b / .2); color: var(--warn); }
.msg-note { color: var(--dim); font-size: .8rem; }
.msg.pending .msg-text { opacity: .6; }
.msg.failed .msg-text { color: var(--bad); }
.day { align-self: center; margin: 12px 0 8px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--dim); font: 600 .72rem var(--font-mono); }
.compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--line); align-items: end; }
.compose textarea { width: 100%; max-height: 180px; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgb(from var(--bg) r g b / .55); color: var(--head); resize: none; line-height: 1.45; }
.compose textarea:focus { outline: none; border-color: var(--accent); }
.compose .count { grid-column: 1 / -1; margin-top: -4px; }
.compose-note { grid-column: 1 / -1; margin: 0; color: var(--dim); font-size: .78rem; }
@media (max-width: 760px) {
  .chat-main { padding: 0; }
  .chat-main > .wrap { width: 100%; }
  .chat-shell { grid-template-columns: 1fr; border-radius: 0; border-inline: 0; height: calc(100dvh - 68px); min-height: 0; max-height: none; }
  .rooms { position: absolute; z-index: 30; inset: 68px auto 0 0; width: min(300px, 86vw); background: var(--panel-solid); transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: var(--shadow); }
  .chat-shell.rooms-open .rooms { transform: none; }
  .rooms-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; }
  .rooms-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
  .feed { padding: 12px; }
  .room-top { padding: 10px 12px; }
}

/* Locked and sign-in states: a card over a faded picture of the room. */
.gate { position: relative; flex: 1; display: grid; place-items: center; min-height: 560px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; background: var(--panel-solid); }
.gate-bg { position: absolute; inset: 0; padding: 28px; display: grid; gap: 16px; align-content: start; filter: blur(5px); opacity: .45; pointer-events: none; user-select: none; }
.gate-bg .msg { max-width: 640px; }
.gate-card { position: relative; z-index: 1; width: min(520px, calc(100% - 32px)); margin: 32px 0; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: rgb(from var(--panel-solid) r g b / .94); box-shadow: var(--shadow); text-align: center; }
.gate-card h1, .gate-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.045em; margin: 0 0 12px; }
.gate-card p { color: var(--muted); }
.gate-card .cta { justify-content: center; margin-top: 22px; }
.gate-card .lock { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 18px; background: rgb(from var(--accent) r g b / .14); }
.gate-card .lock svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.code { display: flex; justify-content: center; gap: 6px; margin: 20px 0 6px; font: 800 clamp(1.8rem, 5vw, 2.6rem) var(--font-mono); letter-spacing: .08em; color: var(--head); }
.code span { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgb(from var(--bg) r g b / .5); }
.qr { display: grid; place-items: center; margin: 14px auto 6px; width: 184px; padding: 10px; border-radius: 16px; background: #fff; }
.qr svg { width: 164px; height: 164px; }
.how { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; text-align: left; color: var(--muted); font-size: .93rem; counter-reset: h; }
.how li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; }
.how li::before { counter-increment: h; content: counter(h); display: grid; place-items: center; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: rgb(from var(--accent) r g b / .16); color: var(--accent-bright); font: 700 .75rem var(--font-mono); }
.timer { color: var(--dim); font: 600 .82rem var(--font-mono); }
.spin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; vertical-align: -2px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- small page bits ----------------------------------------------------- */
.card h2.h3 { margin: 0 0 14px; font-size: 1.42rem; letter-spacing: -.03em; }
.center-cta { justify-content: center; margin-top: 36px; }
.rooms-detail { margin-top: clamp(36px, 5vw, 64px); }
.looks-shots { gap: 14px; }
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: var(--section) 0; }
.lost h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -.06em; margin-bottom: 16px; }
.lost .cta { justify-content: center; }
.card .ranks { display: flex; gap: 6px; }
.card .ranks li { padding: 5px 11px; }
.card .ranks li::before { content: none; }
.card .big + h3 { margin-top: 4px; }
.hero h1 .ln { white-space: nowrap; }
.hero h1 { font-size: clamp(2.7rem, 5.4vw, 6.2rem); }
@media (max-width: 960px) { .hero h1 { font-size: clamp(2.5rem, 11vw, 5rem); } }
@media (max-width: 380px) { .hero h1 .ln { white-space: normal; } }
.pets-shot, .noai-shot { margin-top: 24px; }
.looks-shots { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: start; }
@media (max-width: 680px) { .looks-shots { grid-template-columns: 1fr; } }
.friends-split { align-items: start; margin-bottom: 28px; }
.friends-split .points { margin-top: 8px; }
.final h2 .roll { display: grid; justify-items: center; }
