:root {
  --bg: #0e0c0a;
  --surface: #17140f;
  --raised: #201c15;
  --line: #2e281f;
  --ink: #f4eee3;
  --muted: #b0a696;
  --accent: #ff8a3d;
  --accent-deep: #e9701f;
  --accent-ink: #1c0f04;
  --ok: #86d99a;
  --danger: #ff7566;
  --radius: 14px;
  --radius-s: 9px;
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  min-height: 100dvh;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 720px; }
.eyebrow { color: var(--accent); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.lede { color: var(--muted); font-size: 1.14rem; max-width: 34em; }
.muted { color: var(--muted); }

.site-head .wrap { position: relative; }
.skip { position: absolute; left: 0; top: -60px; background: #f4eee3; color: #0e0c0a; padding: 10px 14px; border-radius: var(--radius-s); z-index: 20; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffa05e; color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
.btn-danger { border-color: #5a2a24; color: var(--danger); background: transparent; }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-big { min-height: 64px; padding: 0 38px; font-size: 1.2rem; }

/* Header and footer */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.4rem; text-decoration: none; color: var(--ink); }
.mark:hover { color: var(--ink); }
.mark-dots { display: inline-flex; gap: 4px; }
.mark-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.mark-dots i + i { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 12px 0; }
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: 0.95rem; }
.site-foot.closing { min-height: 100dvh; display: grid; padding: 100px 0 72px; }
.site-foot.closing > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 40px; }
.site-foot.closing .close { color: var(--ink); align-self: center; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; font-size: 1.0625rem; }
.site-foot.closing .close h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); padding-right: clamp(0px, 4vw, 56px); }
.site-foot .legal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 24px; align-items: baseline; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 24px; align-items: baseline; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-foot a { display: inline-block; padding: 10px 0; text-decoration: none; }

/* Landing */
.hero { min-height: 100dvh; display: grid; align-items: center; padding: 109px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.hero-copy { padding-right: clamp(0px, 4vw, 56px); }
.hero .lede { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-fact { margin-top: 26px; color: var(--muted); font-size: 0.98rem; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hero-fact li { display: flex; align-items: center; gap: 8px; }
.hero-fact li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.section { min-height: 100dvh; padding: 100px 0 56px; border-top: 1px solid var(--line); display: grid; align-content: center; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }

.steps { display: grid; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 24px; padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps h3::before { content: "0" counter(step); color: var(--accent); margin-right: 0.7em; }
.steps h3 { font-size: 1.6rem; }
.steps p { color: var(--muted); }

.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; padding: 20px 20px 20px 0; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { border-top: 0; font-weight: 600; color: var(--muted); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.compare thead th:last-child { color: var(--accent); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td:nth-child(2) { color: var(--muted); width: 36%; }
.compare tr:last-child > * { border-bottom: 1px solid var(--line); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.ledger h3 { margin-bottom: 16px; }
.ledger li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; color: var(--muted); }
.ledger li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 2px; background: var(--muted); }
.ledger.keep li::before { background: var(--accent); }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary:focus-visible { outline-offset: -3px; background: var(--surface); }
.faq summary { cursor: pointer; padding: 22px 40px 22px 0; font-size: 1.14rem; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.6rem; font-weight: 400; color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 24px; max-width: 46em; }

.close { text-align: left; }
section[id] { scroll-margin-top: 0; }
.close h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 14em; }
.close .hero-actions { margin-top: 36px; }

/* The product frame, used in the hero and as the real chat stage */
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
.frame-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.frame-body { padding: 22px 18px 18px; display: grid; gap: 18px; }
.bubbles { display: grid; gap: 8px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: var(--raised); overflow-wrap: anywhere; }
.bubble.me { justify-self: end; background: #3a2414; border-radius: 14px 4px 14px 14px; }
.bubble b { color: var(--accent); font-weight: 600; }
.lights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.light { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; justify-items: start; background: var(--bg); }
.light b { font-weight: 600; }
.light span { color: var(--muted); font-size: 0.92rem; }
.lamp { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); background: transparent; transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.light.on { border-color: #6b3a17; }
.light.on .lamp { background: var(--accent); box-shadow: 0 0 0 4px var(--raised); }
.frame-foot { border-top: 1px solid var(--line); padding: 14px 18px; display: flex; gap: 10px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 0.92rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero[data-enter] .hero-copy > * { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .hero[data-enter] .hero-copy > *:nth-child(2) { animation-delay: 0.07s; }
  .hero[data-enter] .hero-copy > *:nth-child(3) { animation-delay: 0.14s; }
  .hero[data-enter] .hero-copy > *:nth-child(4) { animation-delay: 0.21s; }
  .hero[data-enter] .frame { animation: rise 0.7s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lampOn {
  from { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
  to { background: var(--accent); box-shadow: 0 0 0 4px var(--raised); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Plain pages: verify, legal, report */
.page-narrow main { padding: calc(69px + clamp(48px, 9vw, 110px)) 0 clamp(48px, 9vw, 110px); min-height: 100dvh; }
.page-narrow h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin-bottom: 18px; }
.prose { display: grid; gap: 18px; margin-top: 34px; }
.prose h2 { font-size: 1.55rem; margin-top: 22px; }
.prose p, .prose li { color: #d3cabb; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { padding-left: 24px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 10px; height: 2px; background: var(--accent); }
.stack-list { display: grid; gap: 12px; margin-top: 30px; justify-items: start; }
.notice { margin-top: 26px; padding: 16px 18px; border: 1px solid #6b3a17; border-radius: var(--radius-s); background: var(--surface); }
.notice.bad { border-color: #7a3229; }
.notice.good { border-color: #3d6b48; }
.checks { display: grid; gap: 14px; margin-top: 30px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--muted); }
.checks li::before { content: ""; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--accent); }

.field { display: grid; gap: 8px; margin-top: 22px; }
.field label { font-weight: 600; }
.field .hint { color: var(--muted); font-size: 0.94rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); }
.field textarea { min-height: 150px; resize: vertical; }
.field .error { color: var(--danger); font-size: 0.94rem; }
.form-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Chat app */
body.app { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); }
.status { color: var(--muted); font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status[data-state="matched"]::before, .status[data-state="video"]::before { background: var(--ok); }
.status[data-state="searching"]::before { background: var(--accent); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.app-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); min-height: 0; }
.stage { position: relative; display: grid; place-items: center; padding: 24px var(--gutter); min-height: 0; overflow: auto; }
.stage-card { width: min(100%, 520px); display: grid; gap: 22px; text-align: center; justify-items: center; }
.stage-card h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.stage-card .lights { width: 100%; text-align: left; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.videos { position: absolute; inset: 0; background: #000; }
.videos video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.videos #localVideo { position: absolute; right: 16px; top: 16px; width: min(28%, 200px); height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--line); transform: scaleX(-1); }
.video-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 16px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); }
.video-bar .btn { background: rgba(23, 20, 15, 0.86); }
.video-bar .btn-primary { background: var(--accent); }
.side { border-left: 1px solid var(--line); display: grid; grid-template-rows: minmax(0, 1fr) auto auto; min-height: 0; background: var(--surface); }
.log { overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.log .bubble { align-self: flex-start; }
.log .bubble.me { align-self: flex-end; }
.log .sys { align-self: center; color: var(--muted); font-size: 0.9rem; text-align: center; padding: 6px 0; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.composer input { min-height: 48px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; min-width: 0; }
.safety-bar { display: flex; gap: 8px; padding: 0 12px 12px; }
.safety-bar .btn { flex: 1; min-height: 44px; padding: 0 12px; font-size: 0.95rem; }

dialog { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; width: min(92vw, 460px); }
dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
dialog h2 { font-size: 1.6rem; margin-bottom: 8px; }
.reasons { display: grid; gap: 8px; margin-top: 18px; }
.reasons label { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; }
.reasons label:has(input:checked) { border-color: var(--accent); }
.reasons input { accent-color: var(--accent); width: 18px; height: 18px; }

@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: minmax(0, 1fr); }
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100% !important; }
  .compare tr { padding: 18px 0; border-top: 1px solid var(--line); }
  .compare th, .compare td { border: 0 !important; padding: 4px 0; }
  .compare td::before { content: attr(data-label); display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
  .compare td:last-child::before { color: var(--accent); }
  .site-nav a.hide-s { display: none; }
  .app-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.1fr) minmax(0, 1fr); }
  .side { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .hero-actions .btn, .close .btn, .form-actions .btn { width: 100%; }
  .lights { grid-template-columns: 1fr 1fr; }
  .light { padding: 12px; }
}

/* Feature sections on the home page: words left, the real screen right */
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.feature .section-head { margin-bottom: 0; padding-right: clamp(0px, 4vw, 56px); }
.feature .points { display: grid; gap: 14px; margin-top: 8px; }
.feature .points { gap: 0; }
.feature .points li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); }
.mini-rooms { display: grid; }
.mini-rooms li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.mini-rooms li:first-child { border-top: 0; }
.mini-rooms span { color: var(--muted); font-size: 0.94rem; white-space: nowrap; }
.mini-rooms .live { color: var(--ok); }
.mock-cams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-cams i { aspect-ratio: 4 / 3; border-radius: 4px; background: #2a231a; display: grid; align-items: end; padding: 8px; font-style: normal; font-size: 0.86rem; color: var(--ink); }
.mock-packs { display: grid; }
.mock-packs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.mock-packs span { color: var(--accent); font-weight: 600; }

/* Signed-in pages */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 0.94rem; }
.small { font-size: 0.94rem; }
.app-nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); }
.app-nav a { color: var(--muted); text-decoration: none; padding: 12px 0; white-space: nowrap; }
.app-nav a:hover, .app-nav a[aria-current] { color: var(--ink); }
.app-nav .pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #6b3a17; border-radius: 999px; color: var(--accent); font-weight: 600; }
.side-status { padding: 12px 18px 0; }
body.app-page .app-head { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.lobby { padding: clamp(28px, 5vw, 56px) 0 72px; }
.lobby h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 10px; }
.lobby h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.lobby-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 24px; align-items: end; margin-bottom: 28px; }
.nick { display: grid; gap: 8px; }
.nick label { font-weight: 600; }
.nick .hint { color: var(--muted); font-size: 0.9rem; }
.composer.flat { padding: 0; border: 0; }
.room-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.room-card { display: grid; gap: 8px; height: 100%; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform 0.14s ease, border-color 0.14s ease; }
.room-card:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--ink); }
.room-card h2 { margin: 0; font-size: 1.45rem; }
.count { color: var(--muted); font-size: 0.94rem; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.count.live { color: var(--ok); }
.count.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.one-card { margin-top: 28px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.one-card h2 { margin: 0 0 6px; }

.room-stage { place-items: stretch; align-content: start; gap: 16px; }
.room-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; }
.room-top h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cams { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.cam { position: relative; margin: 0; aspect-ratio: 4 / 3; background: #000; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam figcaption { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(14, 12, 10, 0.8); font-size: 0.9rem; }
.cam .btn { position: absolute; right: 8px; bottom: 8px; }
.cams-empty { padding: 36px 0; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.room-stage .stage-actions { justify-content: flex-start; }
.room-side { grid-template-rows: auto minmax(0, 1fr) auto; }
.people { border-bottom: 1px solid var(--line); }
.people summary { cursor: pointer; padding: 14px 18px; font-weight: 600; min-height: 48px; }
.people ul { max-height: 34vh; overflow-y: auto; padding: 0 12px 12px; display: grid; gap: 6px; }
.people li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; }
.people li span { flex: 1 1 100%; overflow-wrap: anywhere; }

.big-number { font-family: var(--display); font-size: clamp(3.4rem, 10vw, 5.6rem); line-height: 1; margin: 30px 0 4px; color: var(--accent); }
.big-number small { font-family: var(--sans); font-size: 1.1rem; color: var(--muted); }
.packs, .history { display: grid; }
.packs li, .history li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.packs p b { font-size: 1.2rem; }
.history time { color: var(--muted); font-size: 0.92rem; margin-left: auto; }
.history b { min-width: 4ch; text-align: right; }
.tip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 12px; }
.tip-row .btn { padding: 0; }
dialog .error { color: var(--danger); margin-top: 10px; }
dialog .form-actions { margin-top: 20px; }

@media (max-width: 900px) {
  .feature .wrap, .lobby-head { grid-template-columns: minmax(0, 1fr); }
  .mark-name { display: none; }
  .app-nav .btn { padding: 0 12px; }
  .hero { padding-top: 96px; }
  .hero .mini-rooms li:nth-child(n + 4), .hero .frame-foot { display: none; }
  .site-foot.closing .close { grid-template-columns: minmax(0, 1fr); }
  .site-foot .legal { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .app-head { flex-wrap: wrap; }
  .app-nav { flex-wrap: wrap; gap: 0 14px; }
  .one-card .btn { width: 100%; }
  h1 { font-size: 2.2rem; }
  .hero { padding: 88px 0 28px; }
  .hero-fact { display: none; }
  .hero .lede { margin-top: 14px; }
  .hero-actions { margin-top: 20px; }
  .hero .lede { font-size: 1.04rem; }
}

/* Rooms on a phone: the stage is as tall as its cameras and buttons, the chat takes the rest */
@media (max-width: 900px) {
  .app-main:has(.room-stage) { grid-template-rows: auto minmax(0, 1fr); }
  .room-stage { max-height: 60dvh; padding-block: 14px; gap: 12px; }
  .room-stage #camNote { display: none; }
  .cams-empty { padding: 16px 0; }
  .people ul { max-height: 24dvh; }
}
@media (max-width: 520px) {
  .app-head .mark { display: none; }
  .app-nav { width: 100%; justify-content: space-between; font-size: 0.94rem; }
  .app-nav .pill { padding: 0 10px; }
  .app-nav .btn { padding: 0 10px; }
}
.people li .muted { flex: 1 1 auto; }
