/* MindSpiral — zooburi.com
   Black. Pink used sparingly, and only where it has to carry meaning: the logo, a link, the one
   button on the page that matters. Everything else is greys warmed a few degrees toward the brand,
   so the pink never has to compete with itself. #FF4F8E on this ground measures 6.4:1 — it reads as
   text, not just as decoration. No web fonts, no frameworks, no third parties. */

:root {
  --ink: #f6eef1;
  --ink-2: #cabbc2;
  --muted: #9a8c93;
  --faint: #776c72;
  --hair: rgba(255, 255, 255, 0.11);
  --ground: #080609;
  --ground-2: #110c10;
  --brand: #ff4f8e;
  --accent: #ff4f8e;
  --accent-hover: #ff7aa8;
  --accent-soft: rgba(255, 79, 142, 0.13);
  --night: #000000;
  --night-2: #0e0a0c;
  --night-ink: #f7eef1;
  --night-muted: #b9a9af;
  --night-hair: rgba(255, 79, 142, 0.18);
  --radius: 22px;
  --radius-lg: 30px;
  --wide: 1180px;
  --text: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 17px/1.5 var(--font); letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 12px; z-index: 200; background: var(--ground); padding: 8px 14px; border-radius: 10px; }

/* ── navigation: a dark glass bar over everything ────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-in { max-width: var(--wide); margin: 0 auto; padding: 0 22px; height: 52px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: rgba(255, 255, 255, 0.78); font-size: 13.5px; letter-spacing: -0.005em; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a[aria-current="page"] { color: #fff; font-weight: 600; }
.nav .btn, .nav-links a.btn { padding: 6px 15px; font-size: 13px; color: #0a0407; background: var(--accent); }
.nav-links a.btn:hover { background: var(--accent-hover); color: #0a0407; }
.nav-links a.btn[aria-current="page"] { font-weight: 500; }
/* noticeable, not loud: an outline pill, not a filled button — Download stays the one loud thing */
.nav-links a.pill { padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: -0.005em; color: rgba(255, 255, 255, 0.86); box-shadow: inset 0 0 0 1.5px rgba(255, 79, 142, 0.55); white-space: nowrap; }
.nav-links a.pill:hover { color: #fff; box-shadow: inset 0 0 0 1.5px var(--brand); text-decoration: none; }
.nav-links a.pill[aria-current="page"] { color: #fff; background: rgba(255, 79, 142, 0.14); }
.pill-short { display: none; }
@media (max-width: 760px) { .nav-links a.hide-sm { display: none; } .nav-in { gap: 14px; } .nav-links { gap: 10px; } .nav-links a.pill { padding: 5px 10px; font-size: 12px; } .pill-full { display: none; } .pill-short { display: inline; } }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: #0a0407; font: 600 17px/1.2 var(--font); letter-spacing: -0.015em;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-ghost { background: transparent; color: #fff; font-weight: 500; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-lg { padding: 16px 30px; font-size: 19px; }
.more { font-size: 19px; font-weight: 400; }
.more::after { content: " \203A"; }

/* ── layout ─────────────────────────────────────────────────────────────── */
.section { padding: clamp(84px, 11vw, 150px) 22px; }
.section.alt { background: var(--ground-2); }
.dl:not(.is-yours) .yours { color: var(--accent); }
.wrap { max-width: var(--wide); margin: 0 auto; }
.narrow { max-width: var(--text); margin: 0 auto; }
.center { text-align: center; }
.eyebrow { color: var(--accent); font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; text-wrap: balance; }
.lede, .body, .notice p, .foot-safety { text-wrap: pretty; }
.display { font-size: clamp(56px, 9.5vw, 120px); line-height: 1; letter-spacing: -0.05em; }
.headline { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -0.035em; }
.title { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 16px; color: var(--ink); }
.lede { font-size: clamp(19px, 2.1vw, 26px); line-height: 1.38; color: var(--muted); letter-spacing: -0.02em; font-weight: 400; margin: 20px auto 0; max-width: 780px; }
.lede strong { color: var(--ink); font-weight: 600; }
.body { color: var(--muted); font-size: 17px; line-height: 1.55; margin: 10px 0 0; }
.small { color: var(--faint); font-size: 13px; line-height: 1.5; }

/* ── night: the brand's own ground ──────────────────────────────────────── */
.night { background: var(--night); color: var(--night-ink); }
.night h1, .night h2, .night h3 { color: #fff; }
.night .eyebrow { color: var(--brand); }
.night .lede { color: var(--night-muted); }
.night .lede strong { color: #fff; }
.night .body { color: var(--night-muted); }
.night .small { color: #8a7c81; }
.night a:not(.btn) { color: var(--brand); }
.night .btn { background: var(--brand); color: #000; font-weight: 600; }
.night .btn:hover { background: #ff72a5; }
.night .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); font-weight: 500; }
.night .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.glow { position: relative; overflow: hidden; }
.glow::before {
  content: ""; position: absolute; left: 50%; top: -18%; width: min(1100px, 140vw); aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 79, 142, 0.26), rgba(255, 79, 142, 0.07) 55%, transparent 72%);
  pointer-events: none;
}
.glow > * { position: relative; }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 7vw, 96px) 22px 0; text-align: center; }
.hero-logo { width: min(440px, 78vw); margin: 0 auto 8px; }
.hero-mark { width: clamp(120px, 16vw, 168px); margin: 0 auto 22px; filter: drop-shadow(0 0 36px rgba(255, 79, 142, 0.45)); }
.wordmark { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand); margin: 0 0 18px; }
.cta { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 34px; }
.cta-note { margin-top: 16px; }
.age { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--brand); border: 1.5px solid currentColor; border-radius: 6px; padding: 1px 6px; margin-right: 8px; vertical-align: 1px; }

/* a screen: the real app, in a plain dark bezel, with no maker's marks on it */
.device { position: relative; max-width: 1060px; margin: clamp(56px, 7vw, 88px) auto 0; }
.device-screen {
  background: #0b0809; border-radius: 22px 22px 0 0; padding: clamp(8px, 1.1vw, 14px) clamp(8px, 1.1vw, 14px) 0;
  box-shadow: 0 0 0 1px #2a2226 inset, 0 -30px 120px -40px rgba(255, 79, 142, 0.35);
}
.device-screen img { border-radius: 10px 10px 0 0; width: 100%; }
.device-base { height: clamp(12px, 1.6vw, 20px); margin: 0 -4%; border-radius: 0 0 20px 20px; background: linear-gradient(#3a3336, #1c181a); }
.device-base::after { content: ""; display: block; width: 16%; height: 42%; margin: 0 auto; border-radius: 0 0 10px 10px; background: #0f0c0d; }

/* ── screenshots: the app itself, never a mock-up ───────────────────────── */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; margin-top: clamp(48px, 6vw, 72px); text-align: left; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 14px; background: #0b0809; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 40px 90px -46px rgba(255, 79, 142, 0.45); }
.night .shot img { box-shadow: 0 0 0 1px var(--night-hair), 0 40px 90px -40px rgba(255, 79, 142, 0.35); }
.shot figcaption { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.shot figcaption strong { color: var(--ink); font-weight: 600; }
.night .shot figcaption { color: var(--night-muted); }
.night .shot figcaption strong { color: #fff; }
.shot-wide { max-width: 1060px; margin: clamp(48px, 6vw, 72px) auto 0; text-align: left; }
.eyes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: clamp(40px, 5vw, 64px) auto 0; max-width: 1060px; text-align: left; }
@media (max-width: 760px) { .eyes { grid-template-columns: 1fr; } }
.eyes .shot img { border-radius: 18px; background: #000; }
.eye-labels { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }

/* ── cards ──────────────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: clamp(48px, 6vw, 72px); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--ground-2); border-radius: var(--radius-lg); padding: 34px 30px 36px; text-align: left; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055); }
.section.alt .card { background: #0b080a; }
.night .card { background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-hair); }
.card .glyph { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 22px; }
.night .card .glyph { background: rgba(255, 79, 142, 0.12); color: var(--brand); }
.card .glyph svg { width: 24px; height: 24px; }
.card h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .grid.two { grid-template-columns: 1fr; } }
.card .glyph.text { font-size: 22px; font-weight: 600; line-height: 1; }

/* ── a numbered sequence ────────────────────────────────────────────────── */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: clamp(44px, 5vw, 64px); counter-reset: step; text-align: left; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }
.trio .card { counter-increment: step; }
.trio .card::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #000; font-weight: 700; font-size: 17px; margin-bottom: 20px; }
.section:not(.night) .trio .card::before { background: var(--accent); color: #000; }

/* ── split: words one side, a picture the other ─────────────────────────── */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.split .lede { margin-left: 0; }
.orb { width: min(520px, 100%); margin: 0 auto; }
.vrview img { border-radius: 22px; }
.vrview figcaption { font-size: 13px; text-align: center; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; border-top: 1px solid var(--hair); padding-top: 28px; }
.night .facts { border-top-color: var(--night-hair); }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }
.fact strong { display: block; font-size: clamp(21px, 1.9vw, 26px); letter-spacing: -0.03em; line-height: 1.12; color: var(--ink); text-wrap: balance; hyphens: none; }
.night .fact strong { color: #fff; }
.fact span { color: var(--muted); font-size: 15px; }
.night .fact span { color: var(--night-muted); }

/* ── panel and notices ──────────────────────────────────────────────────── */
.panel { background: var(--ground-2); border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 60px); display: grid; gap: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055); }
.section.alt .panel, .night .panel { background: transparent; padding: 0; }
.notice { display: flex; gap: 16px; align-items: flex-start; text-align: left; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px 24px; }
.night .notice { background: var(--night-2); border-color: var(--night-hair); }
.notice svg { flex: none; width: 24px; height: 24px; color: var(--brand); margin-top: 2px; }
.night .notice svg { color: var(--brand); }
.notice p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.night .notice p { color: var(--night-muted); }
.night .notice strong { color: #fff; }
.steps + .narrow { margin-top: 28px; }

/* ── download ───────────────────────────────────────────────────────────── */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 56px; text-align: left; }
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }
.dl { position: relative; background: var(--ground-2); border-radius: var(--radius-lg); padding: 38px 34px 34px; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055); }
.dl.is-yours { background: #0b080a; box-shadow: 0 0 0 2px var(--accent), 0 30px 70px -34px rgba(255, 79, 142, 0.45); }
.dl .yours { position: absolute; top: 18px; right: 20px; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; display: none; }
.dl.is-yours .yours { display: inline-block; }
.dl h2 { font-size: 30px; letter-spacing: -0.03em; }
.dl .req { color: var(--muted); margin: 6px 0 26px; font-size: 16px; }
.dl .meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--faint); font-size: 14px; margin: 18px 0 0; }
.dl .btn { align-self: flex-start; }
.hash { margin-top: 22px; border-top: 1px solid var(--hair); padding-top: 16px; }
.hash dt { font-size: 12px; color: var(--faint); letter-spacing: 0.02em; text-transform: uppercase; }
.hash dd { margin: 4px 0 0; font: 12px/1.5 var(--mono); color: var(--muted); word-break: break-all; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 40px; text-align: left; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps ol { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.steps li { margin: 6px 0; }
kbd { font: 600 13px var(--font); background: rgba(255, 255, 255, 0.07); border: 1px solid var(--hair); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--ink); }

/* ── releases ───────────────────────────────────────────────────────────── */
.releases { margin-top: 56px; text-align: left; }
.release { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--hair); }
.release:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 700px) { .release { grid-template-columns: 1fr; gap: 10px; } }
.release h2 { font-size: 30px; letter-spacing: -0.03em; }
.release .when { color: var(--faint); font-size: 15px; margin-top: 4px; }
.release .tag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.release ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.release li { margin: 8px 0; }
.release li strong { color: var(--ink); }
.release .files { margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ── the age gate ───────────────────────────────────────────────────────── */
/* Shown only when JavaScript is running and nobody has confirmed their age on this browser yet;
   gate.js sets those two classes before the page paints, so there is no flash of the page behind. */
.gate { display: none; }
html.js:not(.of-age) .gate {
  display: flex; position: fixed; inset: 0; z-index: 150; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(closest-side at 50% 38%, rgba(255, 79, 142, 0.20), rgba(0, 0, 0, 0) 70%), #000; color: var(--night-ink); text-align: center;
}
html.js:not(.of-age) body { overflow: hidden; }
.gate-in { max-width: 520px; }
.gate img { width: 96px; margin: 0 auto 26px; filter: drop-shadow(0 0 28px rgba(255, 79, 142, 0.5)); }
.gate h1 { color: #fff; font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.035em; line-height: 1.08; }
.gate p { color: var(--night-muted); font-size: 17px; line-height: 1.55; margin: 16px 0 0; }
.gate .cta { margin-top: 30px; }
.gate .btn { background: var(--brand); color: #000; font-weight: 600; }
.gate .btn:hover { background: #ff72a5; }
.gate .leave { color: var(--night-muted); font-size: 17px; }
.gate .small { color: #8a7c81; margin-top: 26px; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.foot { background: var(--night); color: #8a7c81; font-size: 12.5px; padding: 30px 22px 44px; }
.foot-in { max-width: var(--wide); margin: 0 auto; }
.foot-safety { border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 18px; margin: 0 0 16px; line-height: 1.6; }
.foot-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot-row a { color: #cdbfc4; }
.foot-row .spacer { flex: 1; }

/* ── a gentle arrival; switched off for anyone who has asked for less motion ── */
.rise { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.rise.in { opacity: 1; transform: none; }
html:not(.js) .rise { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .hero-mark { filter: none; }
}

/* ── a11y utility ───────────────────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── join a drift ───────────────────────────────────────────────────────── */
.join-panel { max-width: 460px; margin: clamp(36px, 5vw, 52px) auto 0; padding: clamp(26px, 4vw, 38px); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-hair); border-radius: var(--radius-lg); text-align: left; }
.join-field { margin: 0 0 20px; }
.join-label { display: block; margin: 0 0 8px; color: var(--night-muted); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.join-label .small { font-weight: 400; }

/* one big field: easy to read and to type on a headset's on-screen keyboard */
.join-code-input {
  display: block; width: 100%; box-sizing: border-box; padding: 20px 14px; border: 1.5px solid var(--night-hair); border-radius: 16px;
  background: var(--night); color: #fff; text-align: center; text-transform: uppercase;
  font: 700 clamp(26px, 7vw, 38px)/1.2 var(--mono); letter-spacing: 0.09em;
}
.join-code-input::placeholder { color: #52484d; letter-spacing: 0.09em; }
.join-code-input:focus { outline: none; border-color: var(--brand); }

.join-name-input {
  display: block; width: 100%; box-sizing: border-box; padding: 16px 16px; border: 1.5px solid var(--night-hair); border-radius: 14px;
  background: var(--night); color: #fff; font: 500 18px/1.3 var(--font);
}
.join-name-input::placeholder { color: #6b6066; }
.join-name-input:focus { outline: none; border-color: var(--brand); }

.join-btn { display: flex; width: 100%; margin: 4px 0 22px; padding: 18px 24px; font-size: 20px; }
.join-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* the status card: state-coded by a subtle border, never by colour alone (the words say it too) */
.status-card { margin: 0 0 20px; padding: 18px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--night-hair); }
.status-card[data-state="open"] { box-shadow: inset 0 0 0 1.5px var(--brand); }
.status-card[data-state="closed"], .status-card[data-state="error"] { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22); }
.status-line { margin: 0; color: #fff; font-size: 16.5px; font-weight: 600; line-height: 1.45; }
.status-sub { margin: 6px 0 0; }

.join-readout { margin: 0 0 20px; padding: 16px; border-radius: var(--radius); background: rgba(255, 79, 142, 0.07); text-align: center; }
.join-readout .small { display: block; color: var(--night-muted); }
.readout-code { display: block; margin-top: 6px; color: var(--brand); font: 700 clamp(24px, 7vw, 34px)/1.2 var(--mono); letter-spacing: 0.1em; }

.device-line { margin: 0; text-align: center; font-size: 14.5px; }

/* ── troubleshooting ────────────────────────────────────────────────────── */
.join-faq { margin-top: 36px; }
.join-faq details { border-top: 1px solid var(--hair); padding: 18px 0; }
.join-faq details:last-child { border-bottom: 1px solid var(--hair); }
.join-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; color: var(--ink); font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.join-faq summary::-webkit-details-marker { display: none; }
.join-faq summary::after { content: "+"; flex: none; color: var(--faint); font-size: 22px; font-weight: 400; }
.join-faq details[open] summary::after { content: "\2212"; }
.join-faq details p { margin: 12px 0 0; color: var(--muted); }

.join-diag { margin: 24px 0 0; text-align: center; color: var(--faint); font: 12.5px var(--mono); letter-spacing: -0.01em; }

/* ── join: a code, or a room its host chose to list (DOOR.md "Browse") ──── */
/* the switch: one outlined pill row, the chosen way lit the way the nav's Join pill is */
.join-tabs { display: flex; justify-content: center; gap: 6px; width: max-content; max-width: 100%; margin: clamp(36px, 5vw, 52px) auto 0; padding: 5px; border-radius: 999px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-hair); }
.join-tab { border: 0; cursor: pointer; padding: 10px 18px; border-radius: 999px; background: transparent; color: var(--night-muted); font: 600 15px/1.2 var(--font); letter-spacing: -0.01em; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.join-tab:hover { color: #fff; }
.join-tab[aria-selected="true"] { background: rgba(255, 79, 142, 0.14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 79, 142, 0.55); }
.join-tabs + .join-panel { margin-top: 22px; }
@media (max-width: 420px) { .join-tab { padding: 9px 12px; font-size: 13.5px; } }

/* the listing: the site's card grid, on the night ground, wider than the code panel */
.join-browse { max-width: 1060px; margin: 22px auto 0; text-align: left; }
.browse-note { margin: 28px auto 0; max-width: 460px; text-align: center; color: var(--night-muted); font-size: 17px; line-height: 1.55; }
.browse-note[data-kind="error"] { color: #fff; }
.browse-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.browse-grid:empty { display: none; }
@media (max-width: 900px) { .browse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .browse-grid { grid-template-columns: 1fr; } }
.browse-foot { margin: 26px auto 0; max-width: 620px; text-align: center; }

.browse-card { display: flex; flex-direction: column; overflow: hidden; background: var(--night-2); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--night-hair); }
.browse-card[data-state="away"] .browse-art { opacity: 0.55; }

/* the picture, 16:9, or a placeholder made of nothing but CSS and the title's first letter */
.browse-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0809; }
.browse-art img { width: 100%; height: 100%; object-fit: cover; }
.browse-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255, 255, 255, 0.86); font: 700 clamp(48px, 6vw, 68px)/1 var(--font); letter-spacing: -0.04em; background: linear-gradient(135deg, #2b1421, #100b0e 58%, #1c1018); }
.browse-placeholder[data-hue="1"] { background: linear-gradient(135deg, #1a1430, #0f0b12 58%, #21162a); }
.browse-placeholder[data-hue="2"] { background: linear-gradient(135deg, #10202c, #0b0f12 58%, #14202a); }
.browse-placeholder[data-hue="3"] { background: linear-gradient(135deg, #2c1a12, #120d0b 58%, #26160f); }
.browse-placeholder[data-hue="4"] { background: linear-gradient(135deg, #12261c, #0b110e 58%, #142418); }
.browse-placeholder[data-hue="5"] { background: linear-gradient(135deg, #2a1230, #110b13 58%, #221029); }

.browse-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.browse-title { margin: 0; color: #fff; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.browse-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.browse-tags:empty { display: none; }
.browse-tag { color: var(--brand); background: rgba(255, 79, 142, 0.12); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.browse-desc { margin: 0; color: var(--night-muted); font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; text-wrap: pretty; }
.browse-desc:empty { display: none; }
/* the status line: the words say it, the dot only agrees (open = brand, away = grey) */
.browse-status { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 0; color: #8a7c81; font-size: 13.5px; line-height: 1.4; }
.browse-status::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #5a4f55; }
.browse-status[data-state="open"]::before { background: var(--brand); box-shadow: 0 0 10px rgba(255, 79, 142, 0.6); }
.browse-join { align-self: flex-start; margin-top: auto; padding: 11px 24px; font-size: 16px; }
