/* Sesh — night-mode design system.
   Tokens first, then layout, then views, then responsive overrides. */
:root {
  color-scheme: dark;
  /* Brand board: flat black, white and greys, with lime #7CFF3B as the one
     accent. Ember is kept only for the smoke/low-timer cues. */
  --bg: #000000;
  --bg-2: #111111;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.1);
  --solid: #141414;
  --solid-2: #1a1a1a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --ink: #ffffff;
  --ink-2: #c9c9c9;
  --ink-3: #8a8a8a;
  /* The old "violet" accent slots now carry the lime accent. */
  --violet: #7cff3b;
  --violet-2: #a6ff7a;
  --pink: #ff8a4c;
  --amber: #ffb35c;
  --lime: #7cff3b;
  --lime-ink: #0b1a03;
  --cyan: #00d1ff;
  --danger: #ff4d4d;
  --grad: linear-gradient(135deg, #b5ff8c, #7cff3b);
  --grad-soft: linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(124, 255, 59, 0.05));
  --font-round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold",
    "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Inter var", Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --sidebar: 248px;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(124, 255, 59, 0.4); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
i[data-icon] {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex-shrink: 0;
}
svg {
  width: 100%; height: 100%; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

/* Ambient background */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* Soft smoke wisps instead of neon glows. */
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.07; background: #fff; }
.glow-a { width: 560px; height: 300px; top: -120px; right: -80px; rotate: -18deg; }
.glow-b { width: 420px; height: 220px; top: 380px; right: 18%; rotate: 12deg; opacity: 0.045; }
.glow-c { width: 380px; height: 380px; bottom: -240px; left: 8%; background: #7cff3b; opacity: 0.05; }
.grain {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

/* ---------- Buttons ---------- */
.primary-button, .ghost-button, .outline-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.primary-button {
  position: relative; border: 0; color: var(--lime-ink); background: var(--lime);
  box-shadow: 0 0 0 1px rgba(124, 255, 59, 0.4), 0 12px 32px -10px rgba(124, 255, 59, 0.55);
}
.primary-button:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(124, 255, 59, 0.6), 0 16px 40px -10px rgba(124, 255, 59, 0.75); }
.primary-button:not(:disabled):active { transform: translateY(0) scale(0.98); }
.primary-button i { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.primary-button:not(:disabled):hover i { transform: translateX(3px); }
.ghost-button, .outline-button {
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  backdrop-filter: blur(12px);
}
.ghost-button:not(:disabled):hover, .outline-button:not(:disabled):hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.25); }
.ghost-button i, .outline-button i { width: 17px; height: 17px; }
.big { min-height: 56px; padding: 0 26px; font-size: 16px; }
.text-button {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: none;
  padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--violet-2);
}
.text-button:hover { color: var(--ink); }
.text-button i { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.text-button:hover i { transform: translateX(3px); }
.icon-button, .circle-button {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  transition: background 0.2s, transform 0.2s var(--ease);
}
.icon-button:hover, .circle-button:hover { background: var(--surface-3); }
.icon-button i, .circle-button i { width: 18px; height: 18px; }
.danger { color: var(--danger) !important; }
.outline-button.danger { border-color: rgba(251, 95, 122, 0.4); }
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 0 rgba(124, 255, 59, 0.6);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(124, 255, 59, 0.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(124, 255, 59, 0); } }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 20;
  display: flex; flex-direction: column; gap: 28px;
  padding: 28px 16px 20px;
  background: rgba(10, 10, 17, 0.72); backdrop-filter: blur(20px);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; background: #000; }
.brand-word {
  font-family: var(--font-round); font-size: 30px; font-weight: 900; letter-spacing: -0.03em;
  color: #fff; -webkit-text-stroke: 1.5px var(--lime); paint-order: stroke fill;
}
h1, h2, h3, .match-celebrate b { font-family: var(--font-round); }
nav { display: grid; gap: 4px; }
.nav {
  position: relative; display: flex; align-items: center; gap: 13px; width: 100%;
  min-height: 46px; padding: 0 14px; border: 0; border-radius: 14px; background: none;
  font-size: 15px; font-weight: 550; color: var(--ink-3); text-align: left;
  transition: background 0.2s, color 0.2s;
}
.nav i { width: 20px; height: 20px; }
.nav:not(.active):hover { background: var(--surface-2); color: var(--ink); }
.nav.active { color: var(--ink); background: var(--surface-3); }
.nav.active::before {
  content: ""; position: absolute; left: -16px; top: 12px; bottom: 12px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--grad);
}
.nav.active i { color: var(--violet-2); }
.count {
  margin-left: auto; min-width: 22px; padding: 2px 7px; border-radius: 999px;
  background: var(--pink); color: #1a0710; font-size: 12px; font-weight: 700; text-align: center;
}
.sidebar-note {
  margin-top: auto; padding: 20px; border-radius: var(--radius);
  background: var(--grad-soft); border: 1px solid var(--line-2);
}
.note-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: rgba(0, 0, 0, 0.3); color: var(--ink-2); letter-spacing: 0.02em;
}
.sidebar-note h3 { font-size: 19px; line-height: 1.2; margin: 14px 0 8px; }
.sidebar-note p { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.sidebar-note .text-button { margin-top: 10px; color: var(--ink); font-size: 13px; }
.profile {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 10px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  text-align: left; transition: background 0.2s;
}
.profile:hover { background: var(--surface-2); }
.profile-text { min-width: 0; flex: 1; }
.profile b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile > i { width: 18px; color: var(--ink-3); }
.mobile-space { display: none; }
.avatar {
  display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad); color: #0b0b12; font-weight: 800; font-size: 15px;
}

/* ---------- Shell ---------- */
.app-shell { margin-left: var(--sidebar); min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 15; height: 72px; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(to bottom, rgba(7, 7, 12, 0.9), rgba(7, 7, 12, 0.55));
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.connection { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-3); }
.connection > span { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.header-actions { display: flex; align-items: center; gap: 12px; }
main { max-width: 1320px; margin: 0 auto; padding: 40px 40px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow i { width: 15px; height: 15px; }
.muted { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.035em; margin-top: 10px; }
h2 > span, .inbox-title > span { color: var(--pink); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px; align-items: center; min-height: 520px; padding: 20px 0 40px;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  font-size: 13px; font-weight: 550; color: var(--ink-2);
}
.hero h1 {
  font-size: clamp(46px, 6vw, 84px); line-height: 0.98; font-weight: 800; letter-spacing: -0.05em;
  margin: 26px 0 22px;
}
.shine {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shine 8s ease-in-out infinite alternate;
}
@keyframes shine { to { background-position: 100% 0; } }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cta-spark {
  width: 10px; height: 10px; border-radius: 50%; background: var(--lime-ink);
  box-shadow: 0 0 0 3px rgba(16, 20, 10, 0.18);
}
.mode-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.mode-chips li {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line);
}
.mode-chips i { width: 15px; height: 15px; color: var(--violet-2); }
.mode-chips li { padding: 0; background: none; border: 0; }
.mode-chips button { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 13px; }
.mode-chips button:hover { border-color: var(--lime); color: var(--ink); }

/* Hero visual: the brand mark with soft smoke, plus honest live counts. */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.hero-visual::before,
.hero-visual::after {
  content: none; position: absolute; border-radius: 50%; background: #fff; filter: blur(48px);
  opacity: 0.06; pointer-events: none;
}
.hero-visual::before { width: 260px; height: 120px; top: 6%; right: 8%; rotate: -24deg; animation: drift 14s ease-in-out infinite alternate; }
.hero-visual::after { width: 200px; height: 90px; bottom: 18%; left: 4%; rotate: 18deg; animation: drift 18s ease-in-out -6s infinite alternate; }
@keyframes drift { to { translate: 24px -18px; opacity: 0.1; } }
.hero-logo {
  position: relative; width: min(400px, 82%); height: auto; aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 40px 90px -40px rgba(124, 255, 59, 0.35);
}
.live-card {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; display: inline-flex; align-items: center;
  gap: 10px; padding: 12px 18px; border-radius: 999px; white-space: nowrap;
  background: rgba(20, 20, 20, 0.88); border: 1px solid var(--line-2); backdrop-filter: blur(12px);
  font-size: 14px; color: var(--ink-2);
}
.live-card b { color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-media { position: relative; width: min(540px,100%); }
.hero-player { position: relative; aspect-ratio: 16/9; }
.hero-media .hero-logo { width: 100%; height: 100%; display: block; aspect-ratio: 16/9; object-fit: contain; border-radius: 16px; box-shadow: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 16px; opacity: 0; }
.hero-media.is-playing .hero-video { opacity: 1; }
.hero-media.is-playing .hero-logo { opacity: 0; }
.hero-controls { display: flex; justify-content: flex-end; padding-top: 12px; }
.hero-motion { position: relative; z-index: 1; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #121212e8; color: var(--ink); font-size: 12px; }
@media(max-width:700px){.hero-media { width: 100%; }}
.live-card .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 72px; }
.step {
  padding: 24px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); transition: border-color 0.25s, transform 0.25s var(--ease);
}
.step:hover { border-color: var(--line-2); transform: translateY(-2px); }
.step-n {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 19px; margin: 14px 0 8px; }
.step p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Rooms ---------- */
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 26px 0 22px; }
.filter {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; font-size: 14px; font-weight: 550; color: var(--ink-2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.3); }
.filter.selected { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.room-total { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.rooms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.room-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--solid); border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.room-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.room-art {
  position: relative; height: 150px; overflow: hidden; display: grid; place-items: center;
  /* Smoky charcoal art with a hint of each room's mood. */
  background: radial-gradient(120% 120% at 20% 0%, #3a3a3a, #141414 70%);
}
.room-art.music { background: radial-gradient(120% 120% at 20% 0%, #5a3320, #141414 70%); }
.room-art.gaming { background: radial-gradient(120% 120% at 20% 0%, #2f4a1f, #141414 70%); }
.room-art.table { background: radial-gradient(120% 120% at 20% 0%, #4a4a3a, #141414 70%); }
.room-art::before, .room-art::after {
  content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.room-art::before { right: -80px; top: -70px; }
.room-art::after { left: -90px; bottom: -110px; }
.room-symbol {
  font-size: 76px; line-height: 1; color: rgba(255, 255, 255, 0.9); user-select: none;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); transition: transform 0.4s var(--ease);
}
.room-card:hover .room-symbol { transform: rotate(-10deg) scale(1.08); }
.room-status, .room-capacity {
  position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px);
}
.room-status { top: 12px; left: 12px; }
.room-status > span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.room-capacity { right: 12px; bottom: 12px; }
.room-capacity i { width: 13px; height: 13px; }
.room-body { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.room-topic { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-2); }
.room-body h3 { font-size: 18px; margin: 8px 0 6px; }
.room-body p { flex: 1; font-size: 14px; line-height: 1.55; color: var(--ink-2); margin-bottom: 16px; }
.room-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.room-bottom > span { font-size: 13px; color: var(--ink-3); }
.join-button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 999px; background: var(--surface-3); color: var(--ink);
  font-size: 14px; font-weight: 600; white-space: nowrap; transition: background 0.2s, color 0.2s;
}
.join-button i { width: 15px; height: 15px; }
.join-button:not(:disabled):hover { background: var(--lime); color: var(--lime-ink); }
.empty-filter {
  grid-column: 1 / -1; padding: 40px; border-radius: var(--radius);
  border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 15px; text-align: center;
}

/* ---------- Bottom cards / footer ---------- */
.bottom-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 56px; }
.keep-card, .kind-card {
  display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.keep-card { background: var(--grad-soft); border-color: var(--line-2); }
.kind-card { background: var(--surface); }
.keep-icon, .kind-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3); color: var(--violet-2);
}
.kind-icon { color: var(--lime); background: rgba(124, 255, 59, 0.08); }
.keep-card h3 { font-size: 17px; margin-bottom: 5px; }
.keep-card p, .kind-card p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.kind-card b { display: block; font-size: 16px; margin-bottom: 5px; }
.keep-card .circle-button { margin-left: auto; background: var(--ink); color: var(--bg); border: 0; }
.keep-card .circle-button:hover { background: var(--lime); }
footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 36px 0 44px; font-size: 13px; color: var(--ink-3);
}
footer button {
  display: inline-flex; align-items: center; gap: 7px; border: 0; background: none;
  font-size: 13px; color: var(--ink-2); min-height: 44px;
}
footer button:hover { color: var(--ink); }
footer i { width: 15px !important; height: 15px !important; }

/* ---------- Inbox ---------- */
.inbox-heading { align-items: flex-end; }
.inbox-title { font-size: 56px; font-weight: 800; letter-spacing: -0.05em; margin: 12px 0 8px; }
.inbox-layout {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 560px; margin-top: 30px;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--solid); border: 1px solid var(--line);
}
.contact-panel { border-right: 1px solid var(--line); padding: 20px 12px; background: rgba(0, 0, 0, 0.2); }
.contact-heading {
  display: flex; justify-content: space-between; padding: 0 10px 16px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.contact-heading span { color: var(--ink); }
.contact-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 10px;
  border: 0; border-radius: 14px; background: none; text-align: left; transition: background 0.2s;
}
.contact-item:hover { background: var(--surface-2); }
.contact-item.selected { background: var(--surface-3); }
.contact-item b { display: block; font-size: 15px; }
.contact-item small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.contact-actions { display: flex; gap: 8px; margin: 2px 10px 12px 60px; }
.contact-actions button {
  min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--surface);
}
.contact-actions button[data-accept] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.request-note { padding: 14px 10px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.conversation { display: flex; flex-direction: column; min-width: 0; }
.inbox-empty { margin: auto; padding: 48px 24px; text-align: center; max-width: 440px; }
.empty-symbol {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 26px;
  border-radius: 24px; background: var(--grad); color: #0b0b12; transform: rotate(-8deg);
  box-shadow: 0 18px 40px -12px rgba(255, 255, 255, 0.108);
}
.empty-symbol i { width: 32px; height: 32px; }
.inbox-empty h2 { font-size: 26px; }
.inbox-empty p { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 14px 0 26px; }
.inbox-empty small {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 22px;
  font-size: 13px; color: var(--ink-3);
}
.inbox-empty small i { width: 14px; height: 14px; }
.privacy-foot { font-size: 13px; line-height: 1.6; color: var(--ink-3); padding: 18px 0 44px; }
.conversation-header {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.conversation-header b { font-size: 16px; }
.conversation-header small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.conversation-person { min-width: 0; flex: 1; }
.conversation-person b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-actions { display: flex; align-items: center; flex-shrink: 0; gap: 14px; }
.conversation-header .text-button { font-size: 13px; }
.conversation-header .text-button i { width: 15px; height: 15px; }
.inbox-back { display: none; }
.inbox-back i { transform: rotate(180deg); }
.messages {
  flex: 1; min-height: 340px; max-height: 60vh; overflow: auto; padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.message, .room-message {
  max-width: 78%; align-self: flex-start; padding: 11px 15px;
  border-radius: 20px 20px 20px 6px; background: var(--surface-3);
  font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
  animation: rise 0.25s var(--ease);
}
.message.mine, .room-message.mine {
  align-self: flex-end; border-radius: 20px 20px 6px 20px;
  background: var(--lime); color: var(--lime-ink);
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.message small, .room-message small {
  display: block; text-align: right; font-size: 11px; margin-top: 4px; color: rgba(255, 255, 255, 0.55);
}
.message.mine small, .room-message.mine small { color: rgba(11, 26, 3, 0.72); }
.composer, .room-composer {
  display: flex; align-items: center; gap: 10px; padding: 14px; border-top: 1px solid var(--line);
}
.composer input, .room-composer input {
  flex: 1; width: 0; min-width: 0; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); font-size: 15px;
}
.composer input::placeholder, .room-composer input::placeholder { color: var(--ink-3); }
.composer input:focus, .room-composer input:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 3px rgba(124, 255, 59, 0.2); }
.composer .primary-button, .send-button {
  width: 46px; min-height: 46px; height: 46px; padding: 0; border-radius: 50%; flex-shrink: 0;
}
.send-button {
  display: grid; place-items: center; border: 0; background: var(--lime); color: var(--lime-ink);
}
.send-button i { width: 18px; height: 18px; }
.load-older {
  align-self: center; border: 0; background: var(--surface-2); color: var(--ink-2);
  font-size: 13px; padding: 8px 14px; border-radius: 999px;
}

/* ---------- Call ---------- */
.call-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.call-inbox { display: none; }
.call-heading h2 { font-size: 38px; margin-top: 10px; }
.call-heading .muted { margin-top: 6px; }
.call-top-actions { display: flex; gap: 10px; }
.call-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; margin: 26px 0 18px;
}
.video-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: start;
}
.video-grid[data-count="1"] { grid-template-columns: 1fr; }
.video-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-tile {
  position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(120% 100% at 30% 0%, rgba(255, 255, 255, 0.063), transparent 60%), var(--solid);
}
.video-tile:nth-child(2n) { background: radial-gradient(120% 100% at 70% 0%, rgba(255, 255, 255, 0.054), transparent 60%), var(--solid); }
.video-tile:nth-child(3n) { background: radial-gradient(120% 100% at 50% 0%, rgba(124, 255, 59, 0.18), transparent 60%), var(--solid); }
.video-grid[data-count="1"] .video-tile { aspect-ratio: 16 / 9; }
.video-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-avatar {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: var(--grad); color: #0b0b12; font-size: 40px; font-weight: 800;
  box-shadow: 0 18px 40px -12px rgba(255, 255, 255, 0.09);
}
.video-label, .member-mode {
  position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px);
}
.video-label { left: 12px; bottom: 12px; }
.member-mode { right: 12px; top: 12px; font-size: 12px; color: var(--ink-2); }
.member-mode i { width: 13px; height: 13px; }
.video-waiting { padding: 20px; text-align: center; color: var(--ink-3); font-size: 14px; }
.video-waiting > i { width: 30px; height: 30px; margin-bottom: 10px; color: var(--ink-3); }
.video-waiting p { line-height: 1.55; margin-bottom: 6px; }
.video-waiting .text-button { font-size: 13px; }
.video-waiting.searching { color: var(--ink-2); }
.radar { position: relative; width: 140px; height: 140px; margin: 0 auto 22px; }
.radar span {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--violet-2);
  opacity: 0; animation: radar 2.4s var(--ease) infinite;
}
.radar span:nth-child(2) { animation-delay: 0.8s; }
.radar span:nth-child(3) { animation-delay: 1.6s; }
.radar::after {
  content: ""; position: absolute; inset: 44px; border-radius: 50%; background: var(--grad);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.108);
}
@keyframes radar { 0% { transform: scale(0.3); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }
.video-waiting.searching > i { animation: sesh-pulse 1.4s ease-in-out infinite; }
@keyframes sesh-pulse { 50% { opacity: 0.35; transform: scale(0.9); } }
.video-waiting.searching p { font-size: 16px; }

.room-chat {
  display: flex; flex-direction: column; min-width: 0; min-height: 420px; max-height: 620px;
  overflow: hidden; border-radius: var(--radius); background: var(--solid); border: 1px solid var(--line);
}
.room-chat-heading { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 0; }
.room-chat-heading h3 { font-size: 17px; margin-top: 6px; }
.room-chat-heading > i { width: 20px; height: 20px; color: var(--lime); }
.room-chat-note { padding: 8px 18px 14px; font-size: 13px; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.room-messages { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.room-message { max-width: 92%; font-size: 14px; }
.room-message b { display: block; font-size: 12px; font-weight: 600; opacity: 0.7; margin-bottom: 3px; }
.room-message p { margin: 0; }
.room-chat-empty { margin: auto; text-align: center; font-size: 14px; line-height: 1.8; color: var(--ink-3); }
.room-composer { padding: 12px 12px 6px; }
.room-alias { display: block; padding: 4px 18px 14px; font-size: 12px; color: var(--ink-3); }
.room-alias b { color: var(--ink-2); font-weight: 600; }

.call-controls {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 999px; background: rgba(18, 18, 28, 0.85);
  border: 1px solid var(--line-2); backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.control-note { display: flex; align-items: center; gap: 8px; padding-left: 10px; font-size: 13px; color: var(--ink-3); }
.control-note i { width: 16px; height: 16px; color: var(--lime); }
.control-buttons { display: flex; align-items: center; gap: 10px; }
.control {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface-2); transition: background 0.2s, transform 0.2s var(--ease);
}
.control:not(:disabled):hover { background: var(--surface-3); transform: translateY(-1px); }
.control i { width: 21px; height: 21px; }
.control.is-off { background: rgba(251, 95, 122, 0.18); border-color: rgba(251, 95, 122, 0.4); color: var(--danger); }
.control:disabled { background: transparent; border-color: var(--line); color: var(--ink-3); }
.next-button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px; background: var(--lime); color: var(--lime-ink);
  font-size: 16px; font-weight: 700; box-shadow: 0 12px 30px -10px rgba(124, 255, 59, 0.6);
  transition: transform 0.2s var(--ease);
}
.next-button:hover { transform: translateY(-1px); }
.next-button i { width: 18px; height: 18px; }
.leave-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--danger); color: #1c0409; font-size: 15px; font-weight: 700;
}
.leave-button:hover { filter: brightness(1.08); }
.leave-button i { width: 19px; height: 19px; }
.call-controls > #call-count { justify-self: end; padding-right: 10px; font-size: 13px; color: var(--ink-3); }

/* ---------- Watch together ---------- */
.watch-panel {
  margin-top: 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.032), transparent 55%), var(--solid);
}
.watch-panel.is-watching { border-color: rgba(124, 255, 59, 0.35); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.027), 0 24px 60px -30px rgba(255, 255, 255, 0.108); }
.watch-form { display: flex; align-items: center; gap: 10px; padding: 10px; }
.watch-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 8px 0 6px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; color: var(--violet-2);
}
.watch-badge i { width: 18px; height: 18px; color: var(--lime); }
button.watch-badge { min-height: 40px; border: 0; border-radius: 999px; background: transparent; padding: 0 12px 0 8px; }
button.watch-badge:hover { background: var(--surface-2); }
/* Collapsed to a pill until someone opens it; while watching, the link field
   opens only to change what's on. */
.watch-panel:not(.is-open) .watch-form > :not(.watch-badge) { display: none; }
.watch-panel:not(.is-open):not(.is-watching) { display: inline-block; }
.watch-panel.is-open .watch-form { animation: rise 0.25s var(--ease); }
.watch-form input {
  flex: 1; width: 0; min-width: 0; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); font-size: 15px;
}
.watch-form input::placeholder { color: var(--ink-3); }
.watch-form input:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 3px rgba(124, 255, 59, 0.2); }
.watch-stage { padding: 0 10px 12px; }
.watch-frame {
  position: relative; aspect-ratio: 16 / 9; max-height: 62vh; margin: 0 auto; overflow: hidden;
  border-radius: 14px; background: #000; border: 1px solid var(--line);
}
.watch-frame iframe, #watch-frame-slot { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-consent { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; background: #101410; text-align: center; }
.watch-consent b { font-size: 17px; }
.watch-consent p { max-width: 330px; margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.watch-consent .text-button { min-height: 40px; }
/* Clicks land on the shield so every play/pause goes through the shared state. */
.watch-shield { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; }
.watch-unblock {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: var(--lime); color: var(--lime-ink); font-weight: 700; box-shadow: 0 12px 30px -10px rgba(124, 255, 59, 0.7);
}
.watch-unblock i { width: 18px; height: 18px; }
.watch-bar { display: flex; align-items: center; gap: 12px; padding: 12px 4px 4px; }
.watch-play {
  display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border: 0; border-radius: 50%;
  background: var(--lime); color: var(--lime-ink);
}
.watch-play i { width: 18px; height: 18px; }
.watch-play .icon-pause, .watch-play.is-playing .icon-play { display: none; }
.watch-play.is-playing .icon-pause { display: inline-flex; }
.watch-meta { display: flex; flex-direction: column; min-width: 0; max-width: 260px; }
.watch-meta b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-meta small { font-size: 12px; color: var(--ink-3); }
.watch-clock { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.watch-seek { flex: 1; min-width: 80px; accent-color: var(--lime); }
.watch-volume { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.watch-volume i { width: 18px; height: 18px; }
.watch-volume input { width: 84px; accent-color: var(--violet-2); }
.watch-note { margin: 6px 4px 0; font-size: 12px; color: var(--ink-3); }
@media (max-width: 720px) {
  .watch-form { flex-wrap: wrap; }
  .watch-badge { width: 100%; padding: 4px 6px 0; }
  .watch-submit { flex: 1 1 100%; }
  .watch-bar { flex-wrap: wrap; gap: 10px; }
  .watch-meta { flex: 1; max-width: none; }
  .watch-seek { order: 5; flex: 1 1 100%; }
  .watch-volume { display: none; }
}
.call-people {
  display: flex; justify-content: space-between; gap: 24px; margin: 30px 0 48px; padding: 22px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.call-people h3 { font-size: 18px; }
.call-people .muted { font-size: 14px; margin-top: 4px; }
.person-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.person-row b { font-size: 15px; margin-right: 6px; }
.person-row .outline-button { min-height: 38px; font-size: 13px; padding: 0 14px; }
.person-row .text-button { font-size: 13px; }
.person-row .icon-button { width: 38px; height: 38px; }

/* ---------- Dialog ---------- */
dialog {
  width: calc(100% - 32px); max-width: 480px; max-height: calc(100vh - 32px); overflow: auto;
  padding: 34px; border-radius: var(--radius-lg); color: var(--ink);
  background: linear-gradient(180deg, #171726, #101019); border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(124, 255, 59, 0.08);
}
dialog[open] { animation: dialog-in 0.34s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(0.96); } }
dialog::backdrop { background: rgba(3, 3, 8, 0.7); backdrop-filter: blur(8px); animation: backdrop-in 0.3s ease; }
@keyframes backdrop-in { from { opacity: 0; } }
/* One sheet handing over to the next (sign-up → mode picker) cross-fades in place. */
.sheet-swap { animation: sheet-swap 0.32s var(--ease); }
@keyframes sheet-swap { from { opacity: 0; transform: translateX(14px); } }
.sheet-sub { margin-top: -4px !important; }
.sheet-fine { font-size: 12px !important; color: var(--ink-3) !important; text-align: center; margin-top: 12px !important; }
.sheet-info { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.sheet-info summary { cursor: pointer; text-align: center; color: var(--violet-2); font-weight: 600; list-style: none; }
.sheet-info summary::-webkit-details-marker { display: none; }
.sheet-info[open] summary { margin-bottom: 6px; }
.sheet-info p { font-size: 13px !important; color: var(--ink-3) !important; animation: rise 0.25s var(--ease); }
.alias-field { position: relative; margin-top: 18px; }
dialog .alias-field input { margin-top: 0; padding-right: 56px; font-size: 18px; font-weight: 600; }
.alias-shuffle {
  position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 12px;
  border: 0; background: var(--surface-2); color: var(--violet-2); font-size: 20px;
  transition: rotate 0.4s var(--ease), background 0.2s;
}
.alias-shuffle:hover { background: var(--surface-3); }
.alias-shuffle:active { rotate: 180deg; }
.mode-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.mode-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 132px; padding: 16px 8px; border-radius: 20px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); text-align: center;
  transition: transform 0.22s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.25s;
  animation: tile-pop 0.42s var(--ease) both;
}
.mode-tile:nth-child(2) { animation-delay: 0.05s; }
.mode-tile:nth-child(3) { animation-delay: 0.1s; }
.mode-tile i { width: 30px; height: 30px; color: var(--violet-2); transition: transform 0.25s var(--ease); }
.mode-tile b { font-size: 16px; }
.mode-tile small { font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.mode-tile:not(:disabled):hover { transform: translateY(-3px); background: var(--surface-2); border-color: rgba(124, 255, 59, 0.45); }
.mode-tile:not(:disabled):hover i { transform: scale(1.12); }
.mode-tile.is-current { border-color: rgba(124, 255, 59, 0.55); box-shadow: inset 0 0 0 1px rgba(124, 255, 59, 0.25); }
.mode-tile.is-current i { color: var(--lime); }
.mode-tile.is-picked {
  border-color: var(--lime); background: rgba(124, 255, 59, 0.12); opacity: 1 !important;
  box-shadow: 0 0 0 4px rgba(124, 255, 59, 0.18), 0 18px 40px -12px rgba(124, 255, 59, 0.5);
  transform: scale(1.03);
}
.mode-tile.is-picked i { color: var(--lime); }
.mode-tile:disabled:not(.is-picked) { opacity: 0.4; }
/* Mode switch on the searching screen: the same tiles, compact. */
.mode-switch { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.mode-switch .mode-tile { min-height: 0; flex-direction: row; gap: 8px; padding: 10px 14px; border-radius: 999px; animation-delay: 0.15s; }
.mode-switch .mode-tile i { width: 18px; height: 18px; }
.mode-switch .mode-tile b { font-size: 14px; }
.mode-switch .mode-tile small { display: none; }
.entry-modes { margin: 22px 0 0; padding: 0; border: 0; }
.entry-modes legend { margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
dialog .entry-choice { display: flex; align-items: flex-start; gap: 12px; margin: 9px 0; padding: 13px; border: 1px solid var(--line-2); border-radius: 13px; background: #101310; cursor: pointer; }
.entry-choice:has(input:checked) { border-color: var(--lime); background: #172416; }
.entry-choice:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.entry-choice input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--lime); }
.entry-choice strong, .entry-choice small { display: block; }
.entry-choice strong { font-size: 14px; color: var(--ink); }
.entry-choice small { margin-top: 4px; font-size: 12px; line-height: 1.4; font-weight: 400; color: var(--ink-2); }
.entry-kicker { color: var(--lime); font: 700 11px ui-monospace,monospace; letter-spacing: .12em; }
dialog .entry-intro, dialog .entry-note { font-size: 13px; line-height: 1.45; }
.entry-devices { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; }
dialog .entry-device-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
dialog .entry-devices label { display: flex; align-items: center; gap: 9px; margin: 10px 0 0; font-size: 13px; }
.entry-devices input { width: 18px; height: 18px; accent-color: var(--lime); }
.entry-submit { width: 100%; min-height: 50px; margin-top: 10px; }
.active-sesh-bar { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: calc(100% - 80px); margin: 16px 40px 0; padding: 10px 12px; border: 1px solid #596a4e; border-radius: 14px; background: #121a10; }
.active-sesh-bar > span { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 13px; }
.active-sesh-bar button { min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid #536247; background: #182716; color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.active-sesh-bar button:first-of-type { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
@media(max-width:720px){ .active-sesh-bar { max-width: calc(100% - 32px); margin: 14px 16px 0; gap: 6px; } .active-sesh-bar > span { font-size: 11px; } .active-sesh-bar button { padding: 0 8px; font-size: 12px; } }
#modal-form { position: relative; }
.modal-close {
  position: absolute; right: -16px; top: -16px; width: 40px; height: 40px;
  font-size: 22px; line-height: 1; border-color: var(--line);
}
.modal-kicker {
  display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; background: rgba(124, 255, 59, 0.14); color: var(--violet-2);
}
dialog h2 { font-size: 30px; line-height: 1.1; margin: 16px 0 12px; }
dialog p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 10px 0; }
dialog p b { color: var(--ink); }
dialog label { display: block; margin-top: 18px; font-size: 14px; font-weight: 600; }
dialog input:not([type="checkbox"]):not([type="radio"]), dialog select, dialog textarea {
  display: block; width: 100%; margin-top: 8px; padding: 13px 15px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); font-size: 16px; color: var(--ink);
}
dialog select option { background: var(--solid); }
dialog textarea { min-height: 100px; resize: vertical; }
dialog input:focus, dialog select:focus, dialog textarea:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 3px rgba(124, 255, 59, 0.2); }
dialog .checkbox { display: flex; align-items: flex-start; gap: 10px; font-weight: 450; line-height: 1.55; color: var(--ink-2); }
dialog .checkbox input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--lime); flex-shrink: 0; }
dialog .primary-button { width: 100%; min-height: 52px; margin-top: 24px; font-size: 15px; }
dialog .detail-note { font-size: 13px; color: var(--ink-3); }
dialog code {
  display: block; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: var(--lime);
  overflow-wrap: anywhere; white-space: pre-wrap;
}
.modal-error { color: var(--danger) !important; font-size: 14px !important; }
.join-modes { border: 0; padding: 0; margin: 22px 0 0; }
.join-modes legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
dialog .join-modes label {
  display: flex; align-items: center; gap: 12px; margin: 8px 0; padding: 14px;
  border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
dialog .join-modes label:hover { background: var(--surface-2); }
dialog .join-modes input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--lime); flex-shrink: 0; }
.join-modes label:has(input:checked) { border-color: var(--lime); background: rgba(124, 255, 59, 0.07); }
.join-modes label:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }
.join-modes label span { flex: 1; }
.join-modes b { display: block; font-size: 15px; font-weight: 600; }
.join-modes small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--ink-3); font-weight: 400; }
.join-modes i { width: 20px; height: 20px; color: var(--violet-2); }
.space-links { display: grid; gap: 10px; margin-top: 22px; }
.space-links .outline-button { justify-content: flex-start; min-height: 52px; border-radius: 16px; font-size: 15px; }
.block-row { display: flex; gap: 10px; align-items: center; margin-top: 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translateX(-50%);
  max-width: min(90vw, 520px); padding: 14px 20px; border-radius: 16px;
  background: rgba(24, 24, 38, 0.95); border: 1px solid var(--line-2); backdrop-filter: blur(16px);
  font-size: 14px; font-weight: 550; box-shadow: var(--shadow);
  animation: toast-in 0.3s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .rooms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .call-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .video-grid:not([data-count]) , .video-grid[data-count="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
  :root { --sidebar: 84px; }
  .sidebar { padding: 24px 12px; align-items: center; }
  .brand { padding: 0; }
  .brand-word, .nav > span:not(.count), .sidebar-note, .profile-text, .profile > i { display: none; }
  .nav { justify-content: center; padding: 0; width: 52px; }
  .nav.active::before { left: -12px; }
  .count { position: absolute; top: 4px; right: 2px; min-width: 18px; padding: 1px 5px; font-size: 11px; }
  .profile { margin-top: auto; justify-content: center; width: 52px; padding: 6px; border-radius: 50%; }
  .topbar, main { padding-left: 28px; padding-right: 28px; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 20px; }
  .call-layout { grid-template-columns: 1fr; }
  .room-chat { min-height: 340px; max-height: 460px; }
  .control-note { display: none; }
  .call-controls { grid-template-columns: 1fr auto; }
  .call-people { flex-direction: column; }
  .inbox-layout { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --radius: 16px; --radius-lg: 22px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sidebar {
    position: sticky; top: 0; inset: auto; width: 100%; height: 60px; flex-direction: row;
    align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px;
    border-right: 0; border-bottom: 1px solid var(--line); background: rgba(7, 7, 12, 0.96);
    /* A backdrop-filter here would trap the fixed tab bar inside the header. */
    backdrop-filter: none;
  }
  .brand-word { display: inline; font-size: 26px; }
  .brand-logo { width: 36px; height: 36px; }
  .profile { display: none; }
  .mobile-space { display: inline-flex; }
  .sidebar nav {
    position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 17, 0.92); backdrop-filter: blur(20px); border-top: 1px solid var(--line);
  }
  .sidebar nav .nav {
    flex-direction: column; gap: 4px; width: auto; min-height: 58px; border-radius: 14px;
    font-size: 11px; font-weight: 600;
  }
  .sidebar nav .nav > span:not(.count) { display: inline; }
  .nav.active::before { left: 30%; right: 30%; top: 0; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .count { top: 6px; right: calc(50% - 22px); }
  .app-shell { margin-left: 0; }
  .topbar { position: static; height: auto; padding: 14px 16px 0; background: none; border: 0; backdrop-filter: none; }
  .topbar .ghost-button { min-height: 40px; font-size: 13px; padding: 0 14px; }
  main { padding: 18px 16px 0; }
  .hero { padding-top: 6px; }
  .hero h1 { font-size: clamp(42px, 12.5vw, 60px); margin: 20px 0 16px; }
  .lede { font-size: 16px; }
  .hero-actions { flex-direction: column; margin-top: 26px; }
  .hero-actions .big { width: 100%; }
  .hero-visual { min-height: 0; padding-bottom: 64px; }
  .hero-logo { width: min(280px, 78%); }
  .live-card { font-size: 13px; padding: 10px 14px; }
  .steps { grid-template-columns: 1fr; gap: 10px; margin-bottom: 52px; }
  .step { padding: 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
  .step-n { grid-row: span 2; padding-top: 3px; }
  .step h3 { margin: 0 0 4px; font-size: 17px; }
  h2 { font-size: 28px; }
  .section-heading { flex-wrap: wrap; align-items: flex-end; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; margin: 20px -16px 18px; padding: 0 16px; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter { flex-shrink: 0; min-height: 42px; }
  .room-total { display: none; }
  .rooms-grid { grid-template-columns: 1fr; gap: 14px; }
  .room-art { height: 130px; }
  .bottom-grid { grid-template-columns: 1fr; margin-top: 40px; }
  footer { flex-direction: column; align-items: flex-start; padding-bottom: 28px; }
  .inbox-title { font-size: 44px; }
  .inbox-layout { display: block; margin-top: 22px; }
  .contact-panel { border-right: 0; border-bottom: 1px solid var(--line); max-height: 260px; overflow: auto; }
  #inbox-view.is-conversation-open .contact-panel { display: none; }
  #inbox-view.is-conversation-open .inbox-heading { display: none; }
  #inbox-view.is-conversation-open .inbox-layout { margin-top: 0; }
  #inbox-view.is-conversation-open .privacy-foot { padding-bottom: 14px; }
  .conversation { min-height: 380px; }
  .conversation-header { display: grid; grid-template-columns: 40px 40px minmax(0,1fr); gap: 10px; padding: 12px; }
  .inbox-back { display: inline-flex; width: 40px; height: 40px; }
  .conversation-header .avatar { width: 40px; height: 40px; }
  .conversation-actions { grid-column: 2 / -1; justify-content: flex-end; gap: 12px; }
  .conversation-actions .text-button { min-height: 40px; }
  .messages { padding: 16px; }
  .message { max-width: 88%; }
  .call-heading { align-items: flex-start; }
  .call-heading h2 { font-size: 28px; }
  .call-inbox { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: 999px; background: #151a14; color: var(--ink); font-size: 13px; font-weight: 700; }
  .call-inbox i { width: 17px; height: 17px; color: var(--lime); }
  .video-grid, .video-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .video-grid[data-count="2"] { grid-template-columns: 1fr; }
  .video-grid[data-count="2"] .video-tile { aspect-ratio: 16 / 10; }
  .video-avatar { width: 64px; height: 64px; font-size: 28px; }
  .video-label { font-size: 12px; left: 8px; bottom: 8px; }
  .member-mode { font-size: 11px; right: 8px; top: 8px; padding: 5px 8px; }
  .radar { width: 110px; height: 110px; }
  .radar::after { inset: 34px; }
  .room-chat { max-height: 55vh; }
  /* In a call the controls float above the tab bar's spot; the tab bar hides. */
  body:has(#call-view:not([hidden])) .sidebar nav { display: none; }
  body:has(#call-view:not([hidden])) { padding-bottom: 0; }
  #call-view { padding-bottom: 104px; }
  .call-controls {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30;
    grid-template-columns: 1fr; justify-items: center; padding: 10px; border-radius: 28px;
  }
  .call-controls > #call-count { display: none; }
  .control-buttons { gap: 8px; }
  .control { width: 50px; height: 50px; }
  .leave-button { padding: 0 16px; }
  .leave-button span { display: none; }
  .next-button { padding: 0 22px; }
  dialog { padding: 26px 22px; }
  .modal-close { right: -8px; top: -8px; width: 44px; height: 44px; }
  dialog h2 { font-size: 26px; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  body:has(#call-view:not([hidden])) .toast { bottom: 110px; }
}
/* While searching, only the radar and mode switch show. */
#call-view.is-searching .room-chat,
#call-view.is-searching .call-people,
#call-view.is-searching .call-top-actions,
#call-view.is-searching .control-buttons > .control,
#call-view.is-searching #next-control { display: none; }
#call-view.is-searching .call-layout { grid-template-columns: 1fr; }

/* ---------- Brand board details ---------- */
.shine { animation: none; }
.room-message.mine small, .message.mine small { color: rgba(11, 26, 3, 0.6); }
#call-view.is-match .room-message.mine { background: rgba(124, 255, 59, 0.85); color: var(--lime-ink); }
/* Call buttons as on the board: black camera, lime-outlined mic, red hang-up. */
.control { background: #000; border-color: rgba(255, 255, 255, 0.22); }
#mic-control:not(:disabled):not(.is-off) { border: 2px solid var(--lime); color: var(--lime); background: #000; }
.leave-button {
  width: 52px; padding: 0; justify-content: center; border-radius: 50%; background: #ff3b30; color: #fff;
}
.leave-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.leave-button i { width: 22px; height: 22px; }
.next-button { box-shadow: none; }

/* Blur-first: a new stranger's video stays soft for a moment. */
.video-tile.is-veiled video { filter: blur(28px) brightness(0.7); transform: scale(1.1); }
.video-tile video { transition: filter 0.45s var(--ease), transform 0.45s var(--ease); }
.veil {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 12px;
}
.veil-show {
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); font-weight: 700;
}
.veil-report {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 0; background: rgba(255, 59, 48, 0.9); color: #fff; font-size: 13px; font-weight: 700;
}
.veil-report i { width: 16px; height: 16px; }

/* ---------- Landing ---------- */
.start-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.start-note .text-button { font-size: 13px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.rules-list { margin: 16px 0 6px; padding-left: 18px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.rules-list li { margin: 8px 0; }
.rules-list b { color: var(--ink); }
.profile-copy { width: 100%; margin-top: 10px; }

/* ---------- 1:1 match stage (Monkey-style) ----------
   The stranger fills a tall stage, you sit in a draggable corner tile, chat
   floats over the video and the timer/heart/flag float on top. */
#call-view.is-match .call-heading,
#call-view.is-match .call-people { display: none; }
#call-view.is-match .call-layout {
  position: relative; display: block; width: min(460px, 100%); height: min(78vh, 820px);
  margin: 12px auto 16px; border-radius: 30px; overflow: hidden; background: #050508;
  border: 1px solid var(--line-2); box-shadow: 0 40px 100px -30px rgba(255, 255, 255, 0.099);
  touch-action: pan-y; user-select: none;
}
#call-view.is-match .video-grid { position: absolute; inset: 0; display: block; transition: transform 0.25s var(--ease); }
#call-view.is-match .video-tile {
  position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0;
}
#call-view.is-match .video-tile .video-avatar { width: 120px; height: 120px; font-size: 50px; }
#call-view.is-match .video-tile .member-mode { top: 76px; }
#call-view.is-match .video-tile .video-label { bottom: auto; top: 76px; left: 14px; }
#call-view.is-match .video-tile.is-self {
  inset: auto; top: 76px; right: 14px; width: 30%; aspect-ratio: 3 / 4; z-index: 3;
  border-radius: 18px; border: 2px solid rgba(255, 255, 255, 0.28); cursor: grab; touch-action: none;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
}
#call-view.is-match .video-tile.is-self.is-dragging { cursor: grabbing; scale: 1.04; }
#call-view.is-match .video-tile.is-self .video-avatar { width: 46px; height: 46px; font-size: 20px; }
#call-view.is-match .video-tile.is-self .member-mode { display: none; }
#call-view.is-match .video-tile.is-self .video-label { top: auto; bottom: 6px; left: 6px; font-size: 11px; padding: 3px 8px; }
#call-view.is-match.is-searching .video-tile.is-self { top: 14px; }
/* Floating chat */
#call-view.is-match .room-chat {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; min-height: 0; max-height: 46%;
  border: 0; border-radius: 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7) 45%);
}
#call-view.is-match .room-chat-heading,
#call-view.is-match .room-chat-note,
#call-view.is-match .room-alias,
#call-view.is-match .room-chat-empty { display: none; }
#call-view.is-match .room-messages {
  min-height: 0; padding: 40px 14px 4px; justify-content: flex-end; overflow: hidden;
  mask-image: linear-gradient(transparent, #000 35%);
}
#call-view.is-match .room-message {
  font-size: 14px; padding: 8px 13px; background: rgba(10, 10, 18, 0.55); backdrop-filter: blur(12px);
  animation: bubble-life 9s var(--ease) both; animation-delay: calc(var(--age, 0s) * -1);
}
#call-view.is-match .room-message.mine { background: rgba(124, 255, 59, 0.75); }
#call-view.is-match .room-message small { display: none; }
@keyframes bubble-life {
  0% { opacity: 0; transform: translateY(10px) scale(0.96); }
  4%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-8px); }
}
#call-view.is-match .room-composer { border: 0; padding: 8px 12px 14px; }
#call-view.is-match .room-composer input { background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(12px); border-color: rgba(255, 255, 255, 0.2); }
#call-view.is-match.is-searching .room-chat { display: none; }
/* HUD */
.match-hud { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.match-hud button { pointer-events: auto; }
.hud-right { position: absolute; right: 14px; bottom: 92px; display: grid; gap: 12px; }
#call-view.is-match .room-messages { padding-right: 78px; }
.hud-round {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(12px);
  transition: background 0.2s, scale 0.15s var(--ease);
}
.hud-round i { width: 22px; height: 22px; }
.hud-like.is-liked { background: #ff3d7f; border-color: #ff3d7f; }
.hud-like.is-liked svg path { fill: #fff; }
.hud-like.is-popping { animation: heart-pop 0.5s var(--ease); }
@keyframes heart-pop { 30% { scale: 1.3; } 60% { scale: 0.92; } }
.match-flash {
  position: absolute; top: 72px; left: 20px; padding: 6px 12px; border-radius: 999px;
  background: var(--lime); color: var(--lime-ink); font-weight: 800; font-size: 14px;
}
.match-flash.is-on { animation: flash-up 1.4s var(--ease) forwards; }
@keyframes flash-up { 0% { opacity: 0; transform: translateY(8px) scale(0.8); } 20%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-14px); } }
.match-celebrate {
  position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 6px;
  text-align: center; background: radial-gradient(circle, rgba(255, 61, 127, 0.35), rgba(5, 5, 8, 0.75) 70%);
  pointer-events: none;
}
.match-celebrate b { font-size: 30px; }
.match-celebrate span { color: var(--ink-2); font-size: 14px; }
.match-celebrate.is-on { animation: celebrate 2.6s var(--ease) forwards; }
@keyframes celebrate { 0% { opacity: 0; } 12%, 80% { opacity: 1; } 100% { opacity: 0; } }
.match-celebrate.is-on b { animation: tile-pop 0.6s var(--ease) both; }
.celebrate-burst { position: relative; width: 0; height: 0; }
.celebrate-burst span {
  position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #ff3d7f;
  animation: burst 0.9s var(--ease) forwards;
}
.celebrate-burst span:nth-child(2n) { background: var(--lime); }
.celebrate-burst span:nth-child(3n) { background: var(--violet-2); }
.celebrate-burst span:nth-child(1) { --dx: -90px; --dy: -70px; }
.celebrate-burst span:nth-child(2) { --dx: 90px; --dy: -70px; }
.celebrate-burst span:nth-child(3) { --dx: -110px; --dy: 10px; }
.celebrate-burst span:nth-child(4) { --dx: 110px; --dy: 10px; }
.celebrate-burst span:nth-child(5) { --dx: -50px; --dy: 80px; }
.celebrate-burst span:nth-child(6) { --dx: 50px; --dy: 80px; }
@keyframes burst { from { transform: translate(0, 0) scale(0.4); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; } }
/* Watch together floats as a pill over the stage on the 1:1 screen. */
#call-view.is-match .watch-panel { display: block; width: min(460px, 100%); margin: 8px auto 0; }
#call-view.is-match .watch-panel:not(.is-open):not(.is-watching) { width: fit-content; }
@media (max-width: 720px) {
  #call-view.is-match .call-inbox { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 29; margin: 0; background: rgba(0, 0, 0, .72); }
  #call-view.is-match .call-layout {
    position: fixed; inset: 0; width: auto; height: auto; margin: 0; border-radius: 0; border: 0; z-index: 20;
  }
  #call-view.is-match .room-chat { bottom: calc(84px + env(safe-area-inset-bottom)); background: none; }
  #call-view.is-match .call-layout::after {
    content: ""; position: absolute; inset: auto 0 0; height: 45%; z-index: 3; pointer-events: none;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  }
  /* Collapsed, Watch together is one more round button under the heart and flag. */
  #call-view.is-match .watch-panel {
    position: fixed; z-index: 25; right: 14px; bottom: calc(288px + env(safe-area-inset-bottom)); margin: 0;
    border-radius: 50%; background: rgba(0, 0, 0, 0.45); border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
  }
  #call-view.is-match .watch-panel:not(.is-open):not(.is-watching) .watch-form { padding: 0; }
  #call-view.is-match .watch-panel:not(.is-open):not(.is-watching) { left: 14px; right: auto; }
  #call-view.is-match .watch-panel:not(.is-open):not(.is-watching) .watch-badge {
    width: 52px; height: 52px; padding: 0; justify-content: center; font-size: 0; gap: 0;
  }
  #call-view.is-match .watch-panel:not(.is-open):not(.is-watching) .watch-badge i { width: 22px; height: 22px; }
  #call-view.is-match .watch-panel.is-open,
  #call-view.is-match .watch-panel.is-watching { border-radius: var(--radius); }
  #call-view.is-match .watch-panel.is-open,
  #call-view.is-match .watch-panel.is-watching { left: 12px; right: 12px; translate: none; max-width: none; top: 76px; bottom: auto; }
  /* While a video plays, hide your own tile so it can't cover the player. */
  #call-view.is-match:has(.watch-panel.is-watching) .video-tile.is-self { display: none; }
  #call-view.is-match .hud-right { bottom: calc(160px + env(safe-area-inset-bottom)); }
  #call-view.is-match .room-chat { max-height: 40%; }
  #call-view.is-match .call-controls { background: rgba(10, 10, 18, 0.6); }
}

/* Keep the one-tap report target clear of chat on the narrowest phones.
   games.css also positions this column at that breakpoint, so this selector
   deliberately has higher specificity without relying on stylesheet order. */
@media (max-width: 360px) {
  body #call-view.is-match .hud-right { bottom: calc(216px + env(safe-area-inset-bottom)); }
}

/* ---------- Motion ---------- */
button:not(:disabled):active { scale: 0.97; }
button { transition: scale 0.15s var(--ease); }
@keyframes tile-pop { from { opacity: 0; transform: translateY(10px) scale(0.92); } }
.tile-pop { animation: tile-pop 0.45s var(--ease) both; }
.tile-pop:nth-child(2) { animation-delay: 0.06s; }
.tile-pop:nth-child(3) { animation-delay: 0.12s; }
.tile-slide-in { animation: slide-in 0.4s var(--ease) both; }
@keyframes slide-in { from { opacity: 0; transform: translateX(48px) scale(0.98); } }
.video-grid.is-leaving > * { animation: slide-out 0.24s var(--ease) forwards; }
@keyframes slide-out { to { opacity: 0; transform: translateX(-56px) scale(0.96); } }
.watch-stage:not([hidden]) { animation: rise 0.35s var(--ease); }
::view-transition-old(root) { animation: vt-out 0.22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.34s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(0.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 720px) {
  /* Phones get a bottom sheet that slides up. */
  dialog {
    width: 100%; max-width: none; margin: auto 0 0; max-height: 92vh;
    border-radius: 28px 28px 0 0; padding-bottom: calc(26px + env(safe-area-inset-bottom));
  }
  dialog[open] { animation: sheet-up 0.38s var(--ease); }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  .modal-close { right: 0; top: -6px; }
  dialog h2 { padding-right: 52px; }
  .mode-tile { min-height: 116px; padding: 14px 6px; }
  .mode-switch .mode-tile { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* SmokeSesh wordmark remains readable at navigation size. */
.brand { gap: 10px; }
.brand .brand-logo { width: 40px; height: 40px; border-radius: 13px; box-shadow: none; }
.brand .brand-word { font-size: 25px; font-weight: 800; letter-spacing: -1.2px; color: #f5f6f0; text-shadow: none; -webkit-text-stroke: 0; font-family: var(--font); }
.brand .brand-word > span { color: #9afb58; }
.backdrop { background: #000; }
.backdrop .glow, .backdrop .grain { display: none; }
.hero-player, .hero-video { background: #000; }
@media(max-width:700px){.brand .brand-logo { width: 36px; height:36px; }.brand .brand-word { font-size:24px; }}

/* The hangout: a room list and house footer, without decorative feature cards. */
.rooms-section { padding-top: 20px; }
.rooms-section .eyebrow, .crew-note .eyebrow { color: var(--lime); background: none; -webkit-text-fill-color: currentColor; font: 11px/1.5 ui-monospace,monospace; letter-spacing: .12em; }
.rooms-section h2 { margin-top: 12px; font: 750 clamp(32px,4vw,52px)/1.05 var(--font); letter-spacing: -.045em; }
.rooms-section h2 span { color: var(--lime); }
.rooms-section .section-heading > button { color: var(--ink); min-height: 44px; }
.rooms-section .filter-row { margin: 26px 0 0; gap: 24px; border-bottom: 1px solid #292929; }
.rooms-section .filter { border: 0; border-bottom: 2px solid transparent; border-radius: 0; min-height: 48px; padding: 0 0 10px; background: none; color: #999; }
.rooms-section .filter.selected { border-color: var(--lime); background: none; color: var(--lime); }
.rooms-section .room-total { padding-bottom: 10px; }
.rooms-grid { display: block; }
.circle-row { display: grid; grid-template-columns: minmax(0,1fr) 135px 140px; gap: 28px; align-items: center; padding: 27px 12px 27px 0; border-bottom: 1px solid #242424; }
.circle-row:hover { background: #0a0d08; }
.circle-topic { color: #a4a4a4; font: 11px ui-monospace,monospace; text-transform: uppercase; letter-spacing: .09em; }
.circle-info h3 { font: 700 26px/1.25 var(--font); letter-spacing: -.04em; margin: 6px 0; }
.circle-info p { font-size: 14px; line-height: 1.5; color: #a0a0a0; }
.circle-count { font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; }
.circle-count small { color: #777; font-size: 16px; font-weight: 500; }
.circle-state { display: block; color: #999; font-size: 12px; margin-top: 4px; }
.circle-state.has-people { color: var(--lime); }
.circle-join { display: inline-flex; justify-content: center; align-items: center; gap: 13px; min-height: 46px; border: 1px solid #444; border-radius: 7px; background: none; color: #fff; font: 650 14px var(--font); }
.circle-join i { width: 17px; height: 17px; }
.circle-join:not(:disabled):hover { border-color: var(--lime); color: var(--lime); }
.crew-note { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 38px 0; border-bottom: 1px solid #242424; }
.crew-note h3 { font: 700 24px/1.25 var(--font); letter-spacing: -.035em; margin: 8px 0; }
.crew-note p { color: #a0a0a0; font-size: 14px; }
.crew-inbox { display: inline-flex; align-items: center; gap: 16px; background: var(--lime); border: 0; border-radius: 7px; min-height: 46px; padding: 0 20px; color: #0b1a03; font-weight: 650; }
.crew-inbox i { width: 17px; height: 17px; }
.smokesesh-footer { padding: 36px 0 40px; align-items: center; }
.footer-name { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 23px; font-weight: 800; letter-spacing: -1px; }
.footer-name > span > span { color: var(--lime); }
.footer-notes { margin-right: auto; color: #999; font-size: 12px; line-height: 1.8; }
.footer-notes p:first-child { color: #d7d7d7; }
.footer-links { display: flex; gap: 20px; }
@media(max-width:720px){
  .rooms-section { padding-top: 12px; }
  .rooms-section .section-heading { align-items: flex-start; }
  .rooms-section .section-heading > button { font-size: 12px; }
  .rooms-section .filter-row { gap: 18px; flex-wrap: nowrap; overflow-x: auto; }
  .rooms-section .filter { flex-shrink: 0; font-size: 12px; }
  .rooms-section .room-total { display: none; }
  .circle-row { grid-template-columns: minmax(0,1fr) auto; gap: 15px; padding: 24px 0; }
  .circle-info h3 { font-size: 23px; }
  .circle-info p { font-size: 13px; }
  .circle-presence { align-self: start; text-align: right; }
  .circle-state { font-size: 11px; }
  .circle-join { grid-column: 1 / -1; justify-self: stretch; }
  .crew-note { align-items: flex-start; flex-direction: column; padding: 30px 0; }
  .smokesesh-footer { align-items: flex-start; flex-direction: column; gap: 17px; padding-bottom: 30px; }
}

/* The camera switch is deliberately separate from the camera on/off control. */
.call-camera-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #151a14; color: var(--ink); font-size: 13px; font-weight: 700; }
.call-camera-switch i { width: 18px; height: 18px; color: var(--lime); }
.call-camera-switch:disabled { opacity: .5; }
#call-view.is-peer-gone #next-control { display: inline-flex; }
@media (max-width: 720px) {
  #call-view.is-match .call-camera-switch { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 14px; z-index: 29; margin: 0; background: rgba(0, 0, 0, .72); }
  #call-view.is-match .call-camera-switch span { display: none; }
  #call-view.is-match .call-camera-switch { width: 44px; padding: 0; justify-content: center; }
}

.profile-editor {display:grid;gap:14px}.profile-preview.avatar{width:72px;height:72px}.profile-photo{width:100%;height:100%;object-fit:cover;border-radius:inherit}.profile-editor input[type=file]{max-width:100%;font-size:13px}.member-location{display:block;opacity:.7;font-size:11px}.entry-privacy{font-size:13px;color:var(--muted)}.entry-privacy summary{cursor:pointer;padding:10px 0}.membership-price{font-size:32px;font-weight:800}.membership-price small{font-size:14px;font-weight:400}.squadron-frame{display:block;width:100%;height:70vh;border:0;border-radius:14px;background:#070b10}.modal:has(.arcade-modal),#modal:has(.arcade-modal){width:min(900px,calc(100vw - 24px));max-width:900px}.arcade-modal>p{font-size:13px}.profile-editor .detail-note{font-size:12px}

.coop-canvas{display:block;width:min(100%,560px);max-height:65vh;aspect-ratio:1;object-fit:contain;margin:auto;border-radius:16px;touch-action:none;background:#080f18}.coop-status{min-height:2.5em;text-align:center;color:#a2ff67}

.payment-address{display:block;overflow-wrap:anywhere;font-size:12px}

.membership-qr{display:block;width:240px;max-width:100%;margin:16px auto;border-radius:12px}
