/* =========================================================
   wavy. — watch together
   Fonts
   ========================================================= */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   Tokens + reset
   ========================================================= */
:root {
  color-scheme: dark;
  --bg: #07070a;
  --bg-soft: #0b0b10;
  --surface: #101016;
  --surface-2: #15151d;
  --text: #f3f1ea;
  --muted: #a39fae;
  --muted-2: #747080;
  --line: rgba(255, 255, 255, .078);
  --line-strong: rgba(255, 255, 255, .145);
  --accent: #d9ff5f;
  --accent-2: #b7ef3a;
  --accent-ink: #111600;
  --accent-soft: rgba(217, 255, 95, .11);
  --accent-border: rgba(217, 255, 95, .30);
  --accent-glow: rgba(217, 255, 95, .18);
  --violet: #b7a1ff;
  --pink: #ff92cf;
  --danger: #ff7486;
  --green: #7df0a6;
  --font-display: 'Unbounded', 'Trebuchet MS', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --sidebar-w: 266px;
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, .46);
  --shadow-card: 0 18px 50px rgba(0, 0, 0, .28);
  --ease: cubic-bezier(.2, .72, .2, 1);
}

body[data-accent="violet"] {
  --accent: #c1a9ff;
  --accent-2: #9d7dff;
  --accent-ink: #130b22;
  --accent-soft: rgba(193, 169, 255, .12);
  --accent-border: rgba(193, 169, 255, .32);
  --accent-glow: rgba(157, 125, 255, .20);
}

body[data-accent="pink"] {
  --accent: #ffa3d4;
  --accent-2: #ff7aba;
  --accent-ink: #1d0713;
  --accent-soft: rgba(255, 163, 212, .12);
  --accent-border: rgba(255, 163, 212, .32);
  --accent-glow: rgba(255, 122, 186, .20);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.in-room { overflow: hidden; }

body.modal-open { overflow: hidden; }

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video { display: block; max-width: 100%; }

svg { display: block; }

p, h1, h2, h3, h4 { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .22); background-clip: padding-box; border: 2px solid transparent; }

/* =========================================================
   Ambient background + icons
   ========================================================= */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1100px 760px at 78% -15%, rgba(112, 79, 255, .16), transparent 64%),
    radial-gradient(900px 700px at -8% 78%, var(--accent-glow), transparent 66%),
    radial-gradient(720px 600px at 55% 115%, rgba(255, 86, 172, .07), transparent 70%),
    var(--bg);
}

.ambient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .085) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .28;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 70%);
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .34;
  animation: orbFloat 18s ease-in-out infinite alternate;
}
.orb--1 {
  width: 540px; height: 540px;
  top: -230px; right: 8%;
  background: #6545dc;
}
.orb--2 {
  width: 420px; height: 420px;
  bottom: -230px; left: -130px;
  background: var(--accent);
  opacity: .10;
  animation-delay: -6s;
}
.orb--3 {
  width: 320px; height: 320px;
  top: 45%; left: 42%;
  background: #ff5b9e;
  opacity: .055;
  animation-delay: -11s;
}

.grain {
  position: fixed;
  inset: 0;
  opacity: .032;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  z-index: 9;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   Shared components
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 47px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: -.015em;
  line-height: 1;
  white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  user-select: none;
}
.btn .icon { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn--primary {
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 10px 30px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary:hover { background: #e5ff94; box-shadow: 0 14px 42px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.4); }
body[data-accent="violet"] .btn--primary:hover { background: #d2c0ff; }
body[data-accent="pink"] .btn--primary:hover { background: #ffb9df; }
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .045);
  border-color: var(--line-strong);
  backdrop-filter: blur(16px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .085); border-color: rgba(255, 255, 255, .24); }
.btn--soft {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}
.btn--soft:hover { background: rgba(217, 255, 95, .17); }
.btn--danger {
  color: var(--danger);
  background: rgba(255, 116, 134, .08);
  border-color: rgba(255, 116, 134, .24);
}
.btn--danger:hover { background: rgba(255, 116, 134, .14); }
.btn--dark {
  color: var(--text);
  background: #121219;
  border-color: var(--line);
}
.btn--dark:hover { background: #191921; border-color: var(--line-strong); }
.btn--sm { height: 38px; padding: 0 15px; font-size: 12px; gap: 7px; }
.btn--sm .icon { width: 15px; height: 15px; }
.btn--lg { height: 55px; padding: 0 27px; font-size: 14.5px; }
.btn--lg .icon { width: 19px; height: 19px; }
.btn--block { width: 100%; }
.btn--icon { width: 47px; padding: 0; }
.btn--icon.btn--sm { width: 38px; }
.btn:disabled { opacity: .45; pointer-events: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .045);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  position: relative;
}
.icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .09);
  border-color: var(--line);
  transform: translateY(-1px);
}
.icon-btn .icon { width: 18px; height: 18px; }

.text-link {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  transition: color .2s;
  text-decoration: none;
}
.text-link:hover { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.2;
}
.eyebrow--accent { color: var(--accent); }

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 255, 95, .11);
  animation: dotPulse 2.4s ease-in-out infinite;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
}
.pill--accent { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-border); }
.pill--live { color: var(--text); background: rgba(9, 9, 13, .5); border-color: rgba(255, 255, 255, .17); backdrop-filter: blur(12px); }
.pill--live .live-dot { width: 6px; height: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.07); }
.chip.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.panel {
  background:
    linear-gradient(152deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .018) 56%, rgba(255, 255, 255, .032));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field > span:first-child,
.field-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.input-wrap { position: relative; display: block; }
.input-wrap input,
.field-control {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.input-wrap input::placeholder,
.field-control::placeholder { color: var(--muted-2); font-weight: 500; }
.input-wrap input:focus,
.field-control:focus {
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.input-wrap input { padding-right: 45px; }
.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.input-action {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  color: var(--muted-2);
}
.input-action:hover { background: rgba(255, 255, 255, .06); color: var(--text); transform: translateY(-50%); }
.field-control textarea { resize: vertical; }
textarea.field-control {
  min-height: 104px;
  padding: 13px 15px;
  line-height: 1.55;
  resize: vertical;
}
.field-hint {
  margin-top: -2px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.5;
}
.form-error {
  min-height: 17px;
  color: var(--danger);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
}
.form-error:empty::before { content: '\00a0'; }

.form-success { color: var(--green); font-size: 11.5px; font-weight: 700; }

.g-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: none;
}
.g-icon svg { width: 100%; height: 100%; }
.g-mini {
  display: inline-flex;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #4285F4;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
}

/* =========================================================
   Avatars
   ========================================================= */
.avatar {
  --av-size: 38px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--av-size);
  height: var(--av-size);
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: var(--av-bg, linear-gradient(135deg, #3a3a49, #17171d));
  border: 1px solid rgba(255, 255, 255, .15);
  font-size: calc(var(--av-size) * .49);
  line-height: 1;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xxs { --av-size: 21px; border-width: 1px; }
.avatar--xs { --av-size: 26px; }
.avatar--sm { --av-size: 32px; }
.avatar--md { --av-size: 38px; }
.avatar--lg { --av-size: 48px; }
.avatar--xl { --av-size: 64px; }
.avatar--2xl { --av-size: 92px; border-width: 3px; }
.avatar-stack { display: inline-flex; align-items: center; }
.avatar-stack .avatar { margin-left: -8px; border: 2px solid var(--surface); box-shadow: none; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack--small .avatar { margin-left: -6px; border-width: 2px; }

.av-bg--lime { background: linear-gradient(135deg, #edffa8 0%, #93ba2c 55%, #465f08 100%); }
.av-bg--rose { background: linear-gradient(135deg, #ffc8e7 0%, #e25a9f 55%, #6f173f 100%); }
.av-bg--blue { background: linear-gradient(135deg, #c4e9ff 0%, #4a97d2 55%, #154265 100%); }
.av-bg--violet { background: linear-gradient(135deg, #ded2ff 0%, #8a68dd 55%, #3c246e 100%); }
.av-bg--peach { background: linear-gradient(135deg, #ffe0bd 0%, #e59b55 55%, #78401c 100%); }
.av-bg--mint { background: linear-gradient(135deg, #c9ffe6 0%, #46c597 55%, #12513c 100%); }
.av-bg--sun { background: linear-gradient(135deg, #fff5ae 0%, #e9bd31 55%, #725810 100%); }
.av-bg--ink { background: linear-gradient(135deg, #5d5c70 0%, #292833 55%, #0f0f14 100%); }
.av-bg--coral { background: linear-gradient(135deg, #ffc1b9 0%, #ec6c58 55%, #76251b 100%); }
.av-bg--ocean { background: linear-gradient(135deg, #b6f8ff 0%, #30b3c7 55%, #0a4955 100%); }

/* =========================================================
   Brand
   ========================================================= */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  line-height: 1;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px 11px 11px 4px;
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-5deg);
  box-shadow: 0 6px 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.4);
}
.brand-mark .icon { width: 21px; height: 21px; stroke-width: 2.1; }
.brand-word {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.09em;
}
.brand-dot { color: var(--accent); }
.brand--auth { gap: 12px; }
.brand--auth .brand-mark { width: 38px; height: 38px; border-radius: 13px 13px 13px 5px; }
.brand--auth .brand-word { font-size: 28px; }
.beta-tag {
  align-self: flex-start;
  margin-left: 1px;
  margin-top: 1px;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* =========================================================
   Shell / sidebar / mobile chrome
   ========================================================= */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 28px 18px 19px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, rgba(10, 10, 14, .78), rgba(8, 8, 12, .38));
  backdrop-filter: blur(24px);
  z-index: 30;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.brand-sub {
  margin: 7px 0 0 45px;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.side-label {
  margin: 37px 0 9px 12px;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 47px;
  padding: 0 11px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.side-link:hover { color: var(--text); background: rgba(255, 255, 255, .045); }
.side-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, .058);
  border-color: rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.side-link.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.side-icon {
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 9px;
  color: var(--muted-2);
  transition: color .2s, background .2s;
}
.side-icon .icon { width: 17px; height: 17px; }
.side-link:hover .side-icon { color: var(--text); }
.side-link.is-active .side-icon { color: var(--accent); background: var(--accent-soft); }
.nav-count {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 19px;
  padding: 0 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .055);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}
.nav-new {
  margin-left: auto;
  padding: 2px 5px;
  border: 1px solid var(--accent-border);
  border-radius: 5px;
  color: var(--accent);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.side-spacer { flex: 1; min-height: 26px; }

.side-drive {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  margin-bottom: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    radial-gradient(120px 70px at 0 0, rgba(66, 133, 244, .12), transparent 70%),
    rgba(255, 255, 255, .028);
  transition: border-color .2s, background .2s;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.side-drive:hover { border-color: var(--line-strong); background-color: rgba(255, 255, 255, .045); }
.side-drive-icon {
  width: 33px;
  height: 33px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .24);
}
.side-drive-icon .g-icon { width: 19px; height: 19px; }
.side-drive-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.side-drive-copy b { font-size: 10.5px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-drive-copy span { font-size: 9px; font-weight: 600; color: var(--muted-2); }
.side-drive-mark {
  margin-left: auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9px;
}
.side-drive-mark .icon { width: 10px; height: 10px; stroke-width: 2.4; }
.side-drive-mark--off { background: rgba(255,255,255,.06); color: var(--muted-2); }

.side-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: background .2s, border-color .2s;
}
.side-profile:hover { background: rgba(255, 255, 255, .04); border-color: var(--line); }
.side-profile-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.side-profile-copy b { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 800; color: var(--text); }
.side-profile-copy small { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; color: var(--muted-2); }
.presence-dot {
  width: 7px; height: 7px; margin-left: auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(125, 240, 166, .1);
  flex: none;
}
.side-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 9px 2px;
  border-top: 1px solid rgba(255, 255, 255, .055);
  margin-top: 6px;
}
.side-foot span { color: var(--muted-2); font-size: 7.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.mobile-header { display: none; }
.mobile-nav { display: none; }
.mobile-head-actions { display: flex; align-items: center; gap: 8px; }
.mobile-avatar { display: inline-flex; }

.main { min-width: 0; }

/* =========================================================
   Page scaffolding
   ========================================================= */
.page {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 40px clamp(24px, 3.4vw, 48px) 64px;
  animation: pageIn .45s var(--ease) both;
}
.page--narrow { width: min(1180px, 100%); }
.page--settings { width: min(1240px, 100%); }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}
.page-head-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.055em;
}
.page-sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.page-sub b { color: var(--text); font-weight: 800; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  transition: color .2s, gap .2s;
}
.back-link:hover { color: var(--text); gap: 9px; }
.back-link .icon { width: 14px; height: 14px; }
.accent { color: var(--accent); }
.section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.1;
}
.section-title .count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}
.section-kicker { color: var(--muted-2); font-size: 11.5px; font-weight: 600; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-head-copy { display: flex; flex-direction: column; gap: 7px; }

.site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
}
.site-foot-left { display: flex; align-items: center; gap: 9px; }
.site-foot .brand-word { font-size: 16px; }
.site-foot-links { display: flex; align-items: center; gap: 18px; }
.site-foot a { font-weight: 700; transition: color .2s; }
.site-foot a:hover { color: var(--text); }

/* =========================================================
   Auth
   ========================================================= */
.auth {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(430px, .93fr);
  min-height: 100dvh;
}
.auth-art {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: clamp(28px, 4vw, 60px) clamp(28px, 4.5vw, 72px);
  border-right: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.auth-art::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(800px 500px at 16% 50%, rgba(112, 72, 255, .12), transparent 65%),
    radial-gradient(650px 550px at 95% 90%, var(--accent-glow), transparent 70%);
}
.auth-art::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 50%;
  right: -310px;
  top: 28%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, .012), 0 0 0 160px rgba(255, 255, 255, .008);
  pointer-events: none;
}
.auth-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(38px, 8vh, 100px);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.auth-kicker .live-dot { width: 5px; height: 5px; }
.auth-copy { margin-top: 25px; }
.auth-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.65vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.062em;
}
.auth-copy h1 .accent {
  position: relative;
  display: inline-block;
}
.auth-copy h1 .accent::after {
  content: '';
  position: absolute;
  left: 2%;
  right: 0;
  bottom: 2px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .17;
  filter: blur(1px);
  transform: rotate(-1deg);
}
.auth-copy p {
  max-width: 430px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.auth-stage {
  position: relative;
  width: min(100%, 560px);
  height: clamp(214px, 29vh, 310px);
  margin-top: auto;
  margin-bottom: clamp(20px, 3.6vh, 40px);
  flex: none;
}
.stage-ring {
  position: absolute;
  width: 270px;
  height: 270px;
  right: -24px;
  bottom: -34px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .11);
  animation: slowSpin 40s linear infinite;
}
.auth-player {
  position: absolute;
  left: 0;
  top: 0;
  width: min(405px, 82%);
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .52), 0 0 0 1px rgba(0, 0, 0, .45);
  transform: rotate(-2.2deg);
  animation: stageSway 9s ease-in-out infinite;
  background: #0b0b10;
}
.auth-player-bg {
  position: absolute;
  inset: 0;
  background-image: url('/media/jellyfish-poster.jpg');
  background-size: cover;
  background-position: center 45%;
  filter: saturate(.9) brightness(.72);
  transform: scale(1.02);
}
.auth-player-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 12, .36), transparent 40%, rgba(5, 5, 10, .82)),
    linear-gradient(35deg, rgba(96, 55, 220, .26), transparent 55%);
}
.auth-player-ui {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-player-top { display: flex; align-items: center; justify-content: space-between; }
.mini-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .17);
  background: rgba(7, 7, 12, .42);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.mini-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.mini-members { display: flex; }
.mini-members .avatar { margin-left: -6px; border: 1.5px solid rgba(10, 10, 15, .88); }
.mini-members .avatar:first-child { margin-left: 0; }
.auth-play {
  align-self: center;
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 38px var(--accent-glow), 0 0 0 7px rgba(217,255,95,.08);
  margin-top: -10px;
}
.auth-play .icon { width: 21px; height: 21px; margin-left: 2px; }
.auth-player-bottom {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 14px;
  align-items: end;
  padding-top: 14px;
}
.auth-player-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.auth-player-label span { color: rgba(255,255,255,.56); font-size: 6.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.auth-player-label b { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -.035em; color: #fff; }
.auth-time { color: rgba(255,255,255,.68); font-size: 8px; font-weight: 700; align-self: center; }
.auth-progress {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
}
.auth-progress i { display: block; width: 42%; height: 100%; border-radius: inherit; background: var(--accent); }
.auth-bubble {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 3%;
  width: min(224px, 52%);
  padding: 12px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(17, 17, 24, .84);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .34);
  transform: rotate(2.4deg);
  animation: bubbleFloat 7.5s ease-in-out infinite;
}
.auth-bubble-head { display: flex; align-items: center; gap: 7px; }
.auth-bubble-head div { display: flex; align-items: baseline; gap: 5px; }
.auth-bubble-head b { font-size: 10px; font-weight: 800; }
.auth-bubble-head div span { color: var(--muted-2); font-size: 7.5px; }
.auth-bubble p { margin-top: 8px; color: #e9e7e0; font-size: 10.5px; font-weight: 600; line-height: 1.45; }
.bubble-reacts { display: flex; gap: 4px; margin-top: 8px; }
.bubble-reacts span {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, .7);
  font-size: 8px;
  font-weight: 700;
}
.float-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(13, 13, 19, .82);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  color: rgba(255, 255, 255, .8);
  font-size: 8.5px;
  font-weight: 700;
  white-space: nowrap;
}
.float-chip--sync { left: 46%; top: -14px; transform: rotate(2deg); }
.float-chip--drive { right: -4px; top: 33%; transform: rotate(-3deg); }
.stage-doodle {
  position: absolute;
  left: 40%;
  bottom: -9%;
  color: var(--accent);
  font-size: 28px;
  opacity: .65;
  transform: rotate(12deg);
  animation: doodleFloat 6s ease-in-out infinite;
}
.auth-art-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: clamp(25px, 5vw, 70px);
  background: radial-gradient(700px 500px at 60% 45%, rgba(255, 255, 255, .025), transparent 70%);
}
.auth-mobile-brand { display: none; }
.auth-card {
  width: min(430px, 100%);
  padding: clamp(25px, 3.2vw, 37px);
  border-radius: 27px;
  border: 1px solid rgba(255, 255, 255, .095);
  background: linear-gradient(155deg, rgba(20, 20, 27, .83), rgba(12, 12, 17, .82));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .055);
  backdrop-filter: blur(30px);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: -130px;
  right: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .055;
  filter: blur(40px);
  pointer-events: none;
}
.auth-card-top { display: flex; flex-direction: column; align-items: flex-start; }
.auth-card-top .eyebrow { color: var(--accent); }
.auth-card-top h2 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.5vw, 31px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.1;
}
.auth-card-top p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 25px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
}
.auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.auth-tab:hover { color: var(--text); }
.auth-tab.is-active { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px var(--accent-glow); }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 21px; }
.auth-submit { margin-top: 1px; height: 50px; }
.auth-or {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 16px 0;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.auth-or::before, .auth-or::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.auth-card #demo-login { height: 46px; }
.tiny-hint {
  margin-left: auto;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted-2);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sparkle-icon { color: var(--accent); font-size: 15px; }
.auth-note {
  margin-top: 17px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.55;
  text-align: center;
}
.auth-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(430px, 100%);
  margin-top: 20px;
  padding: 0 4px;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.auth-bottom .text-link { font-size: 8.5px; letter-spacing: .05em; text-transform: uppercase; }

/* =========================================================
   Home
   ========================================================= */
.home-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.home-hello {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.home-hello b { color: var(--text); font-weight: 800; }
.home-hello .avatar { margin-right: 1px; }
.home-clock {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .05em;
}
.home-clock .icon { width: 13px; height: 13px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(18px, 3vw, 40px);
  min-height: 360px;
  padding: clamp(24px, 3.5vw, 42px);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(740px 430px at 99% 4%, rgba(139, 96, 255, .19), transparent 64%),
    radial-gradient(460px 340px at 56% 100%, var(--accent-glow), transparent 74%),
    linear-gradient(142deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .016) 60%, rgba(255, 255, 255, .032));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, .07);
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 35px;
}
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .11;
  mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 160px;
  height: 160px;
  top: -65px;
  left: 43%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .12);
  transform: rotate(20deg);
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 19px;
}
.hero-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.15vw, 59px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.062em;
}
.hero h1 .line-accent { position: relative; display: inline-block; color: var(--accent); }
.hero h1 .line-accent::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -2%;
  bottom: 5px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .1;
  filter: blur(3px);
}
.hero-lead {
  max-width: 480px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.68;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { height: 48px; }
.hero-assurance {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 700;
}
.hero-assurance span { display: inline-flex; align-items: center; gap: 5px; }
.hero-assurance .icon { width: 13px; height: 13px; color: var(--accent); }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}
.hero-stats b { color: var(--text); font-weight: 800; }
.hero-stats .avatar-stack .avatar { border-color: #101016; }
.hero-stats .avatar-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: -7px;
  border: 2px solid #101016;
  border-radius: 50%;
  background: #24242e;
  color: var(--text);
  font-size: 8px;
  font-weight: 800;
}

.hero-art {
  position: relative;
  min-height: 300px;
  z-index: 1;
}
.hero-player {
  position: absolute;
  inset: 10px 22px 4px 30px;
  border-radius: 23px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .17);
  background: #0b0b0f;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .3);
  transform: rotate(-2deg);
  transition: transform .5s var(--ease);
}
.hero:hover .hero-player { transform: rotate(-1deg) translateY(-3px); }
.hero-player-bg {
  position: absolute;
  inset: 0;
  background-image: url('/media/jellyfish-poster.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(.8) brightness(.72);
  transform: scale(1.02);
}
.hero-player-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 10, .28), transparent 38%, rgba(5, 5, 10, .86)),
    linear-gradient(25deg, rgba(62, 43, 138, .44), transparent 52%);
}
.hero-player-ui {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 15px;
}
.hero-screen-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.hero-screen-people { display: flex; align-items: center; }
.hero-screen-people .avatar { margin-left: -7px; border: 2px solid rgba(8, 8, 13, .72); }
.hero-screen-people .avatar:first-child { margin-left: 0; }
.hero-play {
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 61px;
  height: 61px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 15px 44px var(--accent-glow), 0 0 0 8px rgba(217,255,95,.07);
  animation: playBreath 4s ease-in-out infinite;
}
.hero-play .icon { width: 22px; height: 22px; margin-left: 2px; }
.hero-screen-bottom {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hero-screen-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hero-screen-title > div { display: flex; flex-direction: column; gap: 2px; }
.hero-screen-title span { color: rgba(255, 255, 255, .55); font-size: 7px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-screen-title b { color: #fff; font-family: var(--font-display); font-size: clamp(13px, 1.5vw, 17px); font-weight: 600; letter-spacing: -.035em; }
.hero-screen-title em { color: rgba(255,255,255,.65); font-size: 8px; font-style: normal; font-weight: 700; }
.hero-progress { height: 3px; border-radius: 9px; background: rgba(255,255,255,.22); overflow: hidden; }
.hero-progress i { display: block; height: 100%; width: 57%; border-radius: inherit; background: var(--accent); }
.hero-screen-controls { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.8); }
.hero-screen-controls .icon { width: 13px; height: 13px; }
.hero-screen-controls span { margin-left: auto; color: rgba(255,255,255,.48); font-size: 8px; font-weight: 600; }

.hero-float {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(16, 16, 23, .87);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}
.hero-float--chat {
  right: -3px;
  bottom: -7px;
  width: 218px;
  padding: 11px;
  border-radius: 16px;
  transform: rotate(2.4deg);
  animation: bubbleFloat 8s ease-in-out infinite;
}
.hero-float-chat-head { display: flex; align-items: center; gap: 7px; }
.hero-float-chat-head b { font-size: 9.5px; font-weight: 800; }
.hero-float-chat-head span { margin-left: auto; color: var(--muted-2); font-size: 7px; }
.hero-float-chat-text { margin-top: 7px; color: #e6e4dd; font-size: 10.5px; font-weight: 600; line-height: 1.45; }
.hero-float-reactions { display: flex; gap: 4px; margin-top: 7px; }
.hero-float-reactions span {
  height: 19px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  color: rgba(255,255,255,.65);
  font-size: 7.5px;
  font-weight: 700;
}
.hero-float--sync {
  top: -8px;
  right: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 31px;
  padding: 0 11px;
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  font-size: 8px;
  font-weight: 800;
  transform: rotate(2deg);
}
.hero-float--drive {
  left: 5px;
  bottom: 31px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 29px;
  padding: 0 9px;
  border-radius: 8px;
  color: rgba(255,255,255,.7);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .03em;
  transform: rotate(-3deg);
}
.hero-spark {
  position: absolute;
  right: 3%;
  top: 46%;
  color: var(--accent);
  font-size: 23px;
  opacity: .8;
  transform: rotate(14deg);
  animation: doodleFloat 6s ease-in-out infinite;
}

.rooms-section { margin-top: 4px; }
.rooms-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 214px;
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .038);
  color: var(--muted-2);
  transition: border-color .2s, background .2s, width .25s var(--ease);
}
.search-box:focus-within { width: 250px; border-color: var(--accent-border); background: rgba(255, 255, 255, .052); }
.search-box .icon { width: 15px; height: 15px; }
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
}
.search-box input::placeholder { color: var(--muted-2); font-weight: 500; }
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
}
.filter-tab {
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  transition: background .2s, color .2s;
}
.filter-tab:hover { color: var(--text); }
.filter-tab.is-active { background: var(--text); color: #101014; }

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.room-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .016));
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.room-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 24px 55px rgba(0, 0, 0, .33), 0 0 0 1px rgba(255, 255, 255, .02);
}
.room-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9.6;
  overflow: hidden;
  isolation: isolate;
  background: #16141f;
}
.room-cover::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 17px 17px;
  opacity: .13;
  mask-image: linear-gradient(125deg, #000, transparent 65%);
  -webkit-mask-image: linear-gradient(125deg, #000, transparent 65%);
}
.room-cover::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 10, .18) 0%, transparent 32%, rgba(6, 6, 10, .62) 100%),
    linear-gradient(40deg, rgba(7, 7, 12, .36), transparent 55%);
}
.cover--midnight { background: radial-gradient(120% 150% at 8% 5%, #7161ff 0%, rgba(66, 47, 154, .75) 28%, transparent 64%), linear-gradient(135deg, #1a1635, #07070c 78%); }
.cover--sunset { background: radial-gradient(120% 140% at 20% 5%, #ff9a5e 0%, rgba(226, 78, 122, .72) 32%, transparent 67%), linear-gradient(135deg, #3b1b2a, #0b070d 80%); }
.cover--forest { background: radial-gradient(120% 140% at 12% 0%, #c7ff62 0%, rgba(68, 132, 62, .62) 28%, transparent 64%), linear-gradient(135deg, #13261c, #070b09 80%); }
.cover--candy { background: radial-gradient(120% 140% at 15% 5%, #ffb7de 0%, rgba(168, 78, 255, .64) 35%, transparent 68%), linear-gradient(135deg, #321a44, #0c0711 82%); }
.cover--ocean { background: radial-gradient(120% 140% at 12% 5%, #72f5ff 0%, rgba(40, 96, 205, .7) 33%, transparent 67%), linear-gradient(135deg, #0b2433, #05080b 82%); }
.cover--mono { background: radial-gradient(100% 140% at 10% 0%, #d9d5c8 0%, rgba(73, 73, 83, .72) 30%, transparent 65%), linear-gradient(135deg, #232329, #09090b 82%); }
.cover-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: .54;
  filter: saturate(.72) contrast(1.08);
  mix-blend-mode: luminosity;
  transform: scale(1.015);
  transition: transform .7s var(--ease), opacity .4s;
}
.room-card:hover .cover-bg { transform: scale(1.055); opacity: .64; }
.cover-emoji {
  position: absolute;
  z-index: 1;
  right: 9%;
  top: 50%;
  transform: translateY(-40%) rotate(7deg);
  font-size: clamp(58px, 6vw, 84px);
  line-height: 1;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .32));
  transition: transform .5s var(--ease);
}
.room-card:hover .cover-emoji { transform: translateY(-44%) rotate(3deg) scale(1.04); }
.cover-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 13px;
}
.cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(8, 8, 12, .48);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cover-badge .live-dot { width: 5px; height: 5px; box-shadow: 0 0 6px var(--accent); }
.cover-listeners {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(8, 8, 12, .4);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, .8);
  font-size: 8px;
  font-weight: 700;
}
.cover-listeners .icon { width: 11px; height: 11px; }
.room-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 15px 15px 14px;
}
.room-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.room-category {
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.room-own {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.room-name {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.045em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.room-desc {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.4em;
}
.room-host {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 600;
}
.room-host .icon { width: 11px; height: 11px; color: var(--accent); }
.room-host b { color: var(--muted); font-weight: 800; }
.room-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 7px;
}
.room-people { display: flex; align-items: center; gap: 8px; min-width: 0; }
.room-people-label { color: var(--muted-2); font-size: 8.5px; font-weight: 700; white-space: nowrap; }
.room-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.room-enter .icon { width: 13px; height: 13px; }
.room-card:hover .room-enter { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(-8deg); }
.rooms-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 270px;
  padding: 30px;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 24px;
  text-align: center;
  background: rgba(255, 255, 255, .018);
}
.rooms-empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  margin-bottom: 14px;
}
.rooms-empty-icon .icon { width: 22px; height: 22px; }
.rooms-empty h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.04em; }
.rooms-empty p { max-width: 330px; margin: 6px 0 16px; color: var(--muted); font-size: 11.5px; line-height: 1.6; }

.rooms-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 9.5px;
}
.rooms-footnote .icon { width: 13px; height: 13px; color: var(--accent); }
.link-inline {
  color: var(--text);
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  transition: color .2s, border-color .2s;
}
.link-inline:hover { color: var(--accent); border-color: var(--accent); }

/* join-by-code strip */
.code-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(100deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
}
.code-strip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}
.code-strip-icon .icon { width: 15px; height: 15px; }
.code-strip-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.code-strip-copy b { font-size: 11px; font-weight: 800; }
.code-strip-copy span { color: var(--muted-2); font-size: 9px; }
.code-strip button { margin-left: auto; }

/* How it works */
.how-section { margin-top: 52px; }
.how-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.how-step {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, .022);
  overflow: hidden;
  transition: border-color .25s, background .25s;
}
.how-step:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .034); }
.how-step-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.how-num { font-family: var(--font-display); font-size: 11px; font-weight: 500; color: var(--muted-2); letter-spacing: .04em; }
.how-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.how-icon .icon { width: 16px; height: 16px; }
.how-step h3 { margin-top: 22px; font-size: 12.5px; font-weight: 800; }
.how-step p { margin-top: 6px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.how-step::after { content: ''; position: absolute; width: 120px; height: 120px; right: -70px; bottom: -80px; border-radius: 50%; background: var(--accent); filter: blur(40px); opacity: .03; }

/* =========================================================
   Create room
   ========================================================= */
.create-page .page-head { margin-bottom: 24px; }
.create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
  gap: 20px;
  align-items: start;
}
.create-form {
  padding: 7px 24px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(255, 255, 255, .048), rgba(255, 255, 255, .018));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}
.form-block { padding: 23px 0; border-bottom: 1px solid var(--line); }
.form-block:last-of-type { border-bottom: 0; }
.form-block-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.form-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: none;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 500;
}
.form-block-title { font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.form-block-desc { margin-top: 3px; color: var(--muted-2); font-size: 10.5px; line-height: 1.5; }
.form-block-title span { margin-left: 5px; color: var(--muted-2); font-size: 9px; font-weight: 600; }
.form-control-wrap { position: relative; }
.form-control-wrap .field-control { padding-right: 58px; }
.field-count {
  position: absolute;
  right: 13px;
  bottom: 14px;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 700;
  pointer-events: none;
}
textarea + .field-count { bottom: 13px; }
.cover-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.cover-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .023);
  text-align: left;
  transition: border-color .2s, background .2s, transform .2s;
}
.cover-option:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .045); transform: translateY(-1px); }
.cover-option.is-active { border-color: var(--accent-border); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-border); }
.cover-swatch {
  position: relative;
  width: 43px;
  height: 43px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 19px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
}
.cover-swatch::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.22)); }
.cover-swatch span { position: relative; z-index: 1; filter: drop-shadow(0 2px 5px rgba(0,0,0,.3)); }
.cover-option-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cover-option-copy b { color: var(--muted); font-size: 9px; font-weight: 800; }
.cover-option-copy span { color: var(--muted-2); font-size: 7.5px; font-weight: 600; }
.cover-option.is-active .cover-option-copy b { color: var(--text); }
.cover-option-check {
  position: absolute;
  top: 5px;
  right: 5px;
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  align-items: center;
  justify-content: center;
}
.cover-option-check .icon { width: 8px; height: 8px; stroke-width: 2.6; }
.cover-option.is-active .cover-option-check { display: inline-flex; }
.create-actions { padding-top: 6px; display: flex; flex-direction: column; gap: 10px; }
.create-actions .btn { height: 51px; }
.create-hint {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
  justify-content: center;
}
.create-hint .icon { width: 11px; height: 11px; color: var(--accent); margin-top: 1px; }
.create-preview { position: sticky; top: 28px; display: flex; flex-direction: column; gap: 10px; }
.preview-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.preview-label span:last-child { color: var(--accent); letter-spacing: .04em; text-transform: none; font-size: 8px; }
.preview-room { pointer-events: none; }
.preview-room:hover { transform: none; border-color: var(--line); box-shadow: none; }
.preview-room .room-desc { min-height: 2.4em; }
.preview-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .018);
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.55;
}
.preview-tip .icon { width: 13px; height: 13px; color: var(--accent); flex: none; margin-top: 1px; }
.create-preview .room-cover { aspect-ratio: 16 / 10.5; }

/* =========================================================
   Settings
   ========================================================= */
.settings-grid {
  display: grid;
  grid-template-columns: 315px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.profile-card {
  position: sticky;
  top: 28px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255,255,255,.052), rgba(255,255,255,.018));
}
.profile-banner {
  height: 108px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(150px 130px at 25% 5%, rgba(179, 155, 255, .65), transparent 65%),
    radial-gradient(200px 150px at 90% 90%, var(--accent), transparent 68%),
    linear-gradient(135deg, #25204a, #111018);
}
.profile-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.28) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: .24;
  mask-image: linear-gradient(130deg, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(130deg, #000, transparent 75%);
}
.profile-banner-mark {
  position: absolute;
  right: 16px;
  bottom: 8px;
  color: rgba(255, 255, 255, .16);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -.1em;
  z-index: 1;
}
.profile-body { padding: 0 19px 19px; }
.profile-avatar-wrap {
  position: relative;
  width: max-content;
  margin-top: -38px;
  margin-bottom: 11px;
  z-index: 2;
}
.profile-avatar-wrap .avatar { border: 4px solid #14141b; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.avatar-edit {
  position: absolute;
  right: 1px;
  bottom: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid #14141b;
  transition: transform .2s;
}
.avatar-edit:hover { transform: scale(1.08); }
.avatar-edit .icon { width: 11px; height: 11px; stroke-width: 2.2; }
.profile-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.2;
}
.profile-name .host-crown { color: var(--accent); }
.profile-handle { margin-top: 2px; color: var(--muted-2); font-size: 10px; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 23px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}
.profile-badge .live-dot { width: 5px; height: 5px; box-shadow: none; }
.profile-badge .g-mini { width: 13px; height: 13px; font-size: 8px; }
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 17px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.profile-stat { display: flex; flex-direction: column; gap: 2px; }
.profile-stat + .profile-stat { padding-left: 15px; border-left: 1px solid var(--line); }
.profile-stat b { font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
.profile-stat span { color: var(--muted-2); font-size: 8.5px; }
.profile-card-actions { display: flex; flex-direction: column; gap: 7px; margin-top: 15px; }
.profile-card-actions .btn { justify-content: flex-start; padding: 0 12px; height: 39px; font-size: 10.5px; }
.profile-card-actions .btn .icon { width: 14px; height: 14px; color: var(--muted-2); }
.profile-card-actions .btn--danger .icon { color: var(--danger); }
.profile-note { margin-top: 11px; color: var(--muted-2); font-size: 8.5px; line-height: 1.55; }
.settings-stack { display: flex; flex-direction: column; gap: 14px; }
.settings-card {
  padding: 21px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(255,255,255,.043), rgba(255,255,255,.016));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.settings-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.settings-icon {
  width: 35px;
  height: 35px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}
.settings-icon .icon { width: 16px; height: 16px; }
.settings-icon--accent { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent); }
.settings-heading { min-width: 0; flex: 1; }
.settings-title { font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.settings-desc { margin-top: 3px; color: var(--muted-2); font-size: 10.5px; line-height: 1.55; }
.settings-aside { margin-left: auto; }
.settings-body { display: flex; flex-direction: column; gap: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.nickname-row { display: flex; gap: 8px; align-items: flex-end; }
.nickname-row .field { flex: 1; }
.nickname-row .btn { height: 50px; flex: none; }
.avatar-picker { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.avatar-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid transparent;
  font-size: 19px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  background: var(--av-bg);
  color: #fff;
}
.avatar-option:hover { transform: translateY(-2px) rotate(-3deg); }
.avatar-option.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); transform: translateY(-1px); }
.avatar-upload {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 55px;
  height: 42px;
  border-radius: 11px;
  border: 1px dashed var(--line-strong);
  color: var(--muted-2);
  font-size: 7px;
  font-weight: 700;
  transition: border-color .2s, color .2s, background .2s;
}
.avatar-upload:hover { border-color: var(--accent-border); color: var(--accent); background: var(--accent-soft); }
.avatar-upload .icon { width: 14px; height: 14px; }
.settings-hint { color: var(--muted-2); font-size: 9px; line-height: 1.5; }
.divider { height: 1px; background: var(--line); }
.drive-panel {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(260px 160px at 0 0, rgba(66, 133, 244, .12), transparent 70%),
    rgba(255, 255, 255, .024);
}
.drive-panel.is-connected {
  border-color: rgba(125, 240, 166, .22);
  background:
    radial-gradient(300px 180px at 0 0, rgba(52, 168, 83, .12), transparent 70%),
    radial-gradient(220px 180px at 100% 100%, rgba(66, 133, 244, .08), transparent 70%),
    rgba(255, 255, 255, .024);
}
.drive-top { display: flex; align-items: center; gap: 12px; }
.drive-logo {
  width: 43px;
  height: 43px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.drive-logo .g-icon { width: 23px; height: 23px; }
.drive-title { display: flex; flex-direction: column; gap: 2px; }
.drive-title b { font-size: 12px; font-weight: 800; }
.drive-title span { color: var(--muted-2); font-size: 9.5px; }
.drive-state { margin-left: auto; }
.drive-state .pill { color: var(--green); background: rgba(125, 240, 166, .08); border-color: rgba(125, 240, 166, .22); }
.drive-state .pill--off { color: var(--muted); background: rgba(255,255,255,.04); border-color: var(--line); }
.drive-email {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
}
.drive-email .icon { width: 12px; height: 12px; color: var(--green); }
.drive-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.drive-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 13px; }
.drive-benefit { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 9.5px; line-height: 1.5; }
.drive-benefit .icon { width: 12px; height: 12px; color: var(--green); flex: none; margin-top: 1px; }
.drive-disclaimer { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 8.5px; line-height: 1.55; }
.accent-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.accent-option {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 39px;
  padding: 0 11px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  transition: border-color .2s, background .2s, color .2s;
}
.accent-option:hover { border-color: var(--line-strong); color: var(--text); }
.accent-option.is-active { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,.055); }
.accent-dot {
  width: 23px;
  height: 23px;
  flex: none;
  border-radius: 50%;
  background: var(--dot);
  border: 2px solid rgba(255,255,255,.22);
  box-shadow: 0 0 0 2px rgba(0,0,0,.2);
}
.accent-check { display: none; width: 12px; height: 12px; color: var(--accent); }
.accent-option.is-active .accent-check { display: block; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.danger-zone-info { display: flex; flex-direction: column; gap: 3px; }
.danger-zone-info b { font-size: 10.5px; font-weight: 800; }
.danger-zone-info span { color: var(--muted-2); font-size: 9px; }
.settings-footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 8.5px;
}

/* =========================================================
   Roulette
   ========================================================= */
.roulette-page { width: min(1160px, 100%); }
.roulette-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 6px auto 32px;
  text-align: center;
}
.roulette-dice {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 19px;
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-8deg);
  box-shadow: 0 16px 50px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.35);
  margin-bottom: 5px;
}
.roulette-dice .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.roulette-head h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 57px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.06em;
}
.roulette-head p { max-width: 530px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.roulette-grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: 18px; align-items: stretch; }
.roulette-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(255,255,255,.047), rgba(255,255,255,.017));
  overflow: hidden;
}
.roulette-panel::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  right: -140px;
  top: -130px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .05;
  filter: blur(45px);
  pointer-events: none;
}
.roulette-panel-head { display: flex; flex-direction: column; gap: 5px; }
.roulette-panel-head h2 { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.04em; }
.roulette-panel-head p { color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.mood-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.mood-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 35px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.mood-chip:hover { transform: translateY(-1px); border-color: var(--line-strong); color: var(--text); }
.mood-chip.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.mood-chip span { font-size: 13px; }
.roulette-spin-btn { width: 100%; margin-top: auto; padding-top: 0; height: 52px; margin-top: 24px; }
.roulette-spin-btn .icon { width: 18px; height: 18px; }
.roulette-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.5;
}
.roulette-note .icon { width: 11px; height: 11px; flex: none; margin-top: 1px; }
.reel-wrap { position: relative; min-height: 440px; display: flex; flex-direction: column; }
.reel-stack { position: relative; flex: 1; min-height: 0; }
.reel-ghost {
  position: absolute;
  inset: 11px 12px -11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.028);
  transform: rotate(-2.4deg);
}
.reel-ghost--two { inset: 19px 22px -19px; transform: rotate(2.1deg); opacity: .45; }
.reel-card {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(110% 100% at 80% 0%, var(--reel-a, #3a276d), transparent 65%),
    linear-gradient(145deg, var(--reel-b, #141020), #07070c 85%);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.09);
  transition: transform .4s var(--ease), box-shadow .4s;
  isolation: isolate;
}
.reel-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.17) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: .12;
  mask-image: linear-gradient(145deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(145deg, #000, transparent 70%);
}
.reel-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  top: -130px;
  right: -110px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 0 0 40px rgba(255,255,255,.035), 0 0 0 82px rgba(255,255,255,.02);
}
.reel-emoji {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: clamp(58px, 7vw, 92px);
  line-height: 1;
  filter: drop-shadow(0 14px 25px rgba(0,0,0,.35));
  transform: rotate(6deg);
}
.reel-top {
  position: absolute;
  top: 23px;
  left: 23px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.reel-top .pill { backdrop-filter: blur(12px); }
.reel-main { position: relative; z-index: 2; max-width: 92%; }
.reel-label { color: rgba(255,255,255,.55); font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.reel-title {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: clamp(27px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.reel-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; color: rgba(255,255,255,.6); font-size: 9px; font-weight: 700; }
.reel-meta span { display: inline-flex; align-items: center; gap: 4px; }
.reel-meta .live-dot { width: 4px; height: 4px; box-shadow: none; }
.reel-desc { max-width: 430px; margin-top: 12px; color: rgba(255,255,255,.6); font-size: 10.5px; line-height: 1.6; }
.reel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.reel-actions .btn { height: 40px; font-size: 11.5px; }
.reel-empty { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 330px; }
.reel-empty-question {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 17px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  background: rgba(255,255,255,.04);
}
.reel-empty .reel-title { max-width: 420px; }
.reel-empty .reel-desc { max-width: 380px; }
.reel-card.is-spinning { animation: reelShuffle .9s var(--ease); }
.reel-card.is-spinning .reel-main,
.reel-card.is-spinning .reel-emoji { animation: reelFade .9s var(--ease); }
.reel-badge-line { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--accent); font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.roulette-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.roulette-rule { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.021); }
.roulette-rule b { display: block; font-size: 10px; font-weight: 800; }
.roulette-rule span { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; line-height: 1.55; }

/* =========================================================
   Room / watch together
   ========================================================= */
body.in-room { overflow: hidden; background: #050507; }
body.in-room .ambient { opacity: .6; }
body.in-room .sidebar { display: none; }
body.in-room .mobile-header,
body.in-room .mobile-nav { display: none !important; }
body.in-room .shell { display: block; min-height: 100dvh; }
body.in-room .main { height: 100dvh; }

.room-page {
  width: min(1650px, 100%);
  height: 100dvh;
  margin: 0 auto;
  padding: 17px clamp(14px, 2.5vw, 34px) 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.room-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  flex: none;
  animation: pageIn .4s var(--ease) both;
}
.room-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.room-back:hover { background: rgba(255, 255, 255, .08); border-color: var(--line-strong); color: var(--text); transform: translateX(-2px); }
.room-back .icon { width: 17px; height: 17px; }
.room-heading { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.room-title-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.room-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.55vw, 20px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: min(44vw, 640px);
}
.room-code {
  flex: none;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}
.room-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.3;
}
.room-sub > span { display: inline-flex; align-items: center; gap: 4px; }
.room-sub .live-dot { width: 5px; height: 5px; box-shadow: none; }
.room-sub b { color: var(--muted); font-weight: 800; }
.room-sub .crown-inline { color: var(--accent); }
.room-sub .room-sub-sep { width: 2px; height: 2px; border-radius: 50%; background: var(--muted-2); }
.room-top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.room-top-actions .icon-btn { width: 37px; height: 37px; }
.room-top-actions .btn { height: 37px; font-size: 10.5px; padding: 0 13px; }
.room-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 9px;
  margin-right: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  white-space: nowrap;
}
.room-online-pill .live-dot { width: 5px; height: 5px; }

.room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 376px;
  gap: 14px;
  flex: 1;
  min-height: 0;
  animation: pageIn .45s var(--ease) both;
}
.watch-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

/* player */
.player-shell {
  position: relative;
  flex: none;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #030304;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .46);
  isolation: isolate;
}
.player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 305px);
  min-height: 235px;
  background: #050507;
  overflow: hidden;
}
.player-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #030304;
  opacity: 0;
  transition: opacity .4s ease;
}
.player-stage.has-video video { opacity: 1; }
.player-stage .poster-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(.8) brightness(.56) blur(0);
  transform: scale(1.01);
  transition: opacity .5s, filter .5s;
  opacity: 1;
}
.player-stage.has-video .poster-layer { opacity: 0; pointer-events: none; }
.player-stage::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.42), transparent 27%, transparent 65%, rgba(0,0,0,.5));
  pointer-events: none;
}
.player-shell.is-empty { background: #0b0a12; }
.player-shell.is-empty .player-stage { max-height: calc(100dvh - 305px); }
.player-topbar {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px 30px;
  pointer-events: none;
}
.player-badges { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; pointer-events: auto; }
.player-badges--right { justify-content: flex-end; }
.sync-pill, .source-pill, .host-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(8, 8, 12, .48);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, .78);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .035em;
  white-space: nowrap;
}
.sync-pill .live-dot { width: 5px; height: 5px; box-shadow: 0 0 7px var(--accent); }
.sync-pill.is-paused .live-dot { background: var(--muted); box-shadow: none; animation: none; }
.sync-pill.is-waiting .live-dot { background: var(--muted); box-shadow: none; animation: none; }
.sync-pill.is-guest { border-color: rgba(183, 161, 255, .25); color: rgba(220, 211, 255, .85); }
.sync-pill.is-guest .live-dot { background: var(--violet); box-shadow: 0 0 6px var(--violet); animation: none; }
.source-pill { color: rgba(255, 255, 255, .62); }
.source-pill .g-mini { width: 12px; height: 12px; font-size: 7px; }
.source-pill .source-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.host-pill { color: rgba(255, 255, 255, .65); }
.host-pill .icon { width: 11px; height: 11px; color: var(--accent); }
.host-pill b { color: rgba(255, 255, 255, .88); font-weight: 800; }
.player-shell.is-locked .host-pill { border-color: rgba(183, 161, 255, .22); }

.video-shade-bottom {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(3, 3, 5, .86), transparent);
  pointer-events: none;
}
.video-center {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}
.video-center.is-hidden { display: none; }
.center-play {
  pointer-events: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(15px);
  color: #fff;
  box-shadow: 0 15px 45px rgba(0, 0, 0, .3);
  transition: background .2s, transform .25s var(--ease), border-color .2s;
}
.center-play:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: scale(1.045); }
.center-play .icon { width: 23px; height: 23px; margin-left: 2px; }
.center-play.is-join { width: auto; height: 42px; padding: 0 17px; flex-direction: row; gap: 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; }
.center-play.is-join .icon { width: 15px; height: 15px; margin: 0; }
.center-note {
  pointer-events: none;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(8, 8, 12, .45);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, .65);
  font-size: 8.5px;
  font-weight: 700;
}
.center-note b { color: #fff; font-weight: 800; }
.video-empty {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 24px;
  text-align: center;
  overflow: hidden;
}
.video-empty::before {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: var(--empty-color, var(--accent));
  opacity: .09;
  filter: blur(70px);
  top: -160px;
  left: 5%;
}
.video-empty::after {
  content: '';
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 50%;
  right: -60px;
  bottom: -80px;
}
.video-empty-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--accent);
  box-shadow: 0 14px 35px rgba(0, 0, 0, .2);
}
.video-empty-icon .icon { width: 23px; height: 23px; }
.video-empty .eyebrow { position: relative; z-index: 1; color: var(--muted-2); font-size: 8px; }
.video-empty h2 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 27px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.12;
}
.video-empty p { position: relative; z-index: 1; max-width: 360px; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.video-empty .empty-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 3px; }
.video-empty .btn { height: 37px; font-size: 10.5px; padding: 0 14px; }
.empty-host-note { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: 8.5px; }
.empty-host-note .icon { width: 11px; height: 11px; color: var(--accent); }
.video-empty--guest .video-empty-icon { color: var(--violet); }
.player-shell.is-empty .video-center,
.player-shell.is-empty .player-controls,
.player-shell.is-empty .player-topbar .player-badges--right { display: none; }

.player-controls {
  position: absolute;
  z-index: 7;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 13px 10px;
  background: linear-gradient(0deg, rgba(2, 2, 4, .9), transparent);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.seek {
  --seek: 0%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 14px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
}
.seek::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) var(--seek), rgba(255,255,255,.22) var(--seek));
}
.seek::-moz-range-track { height: 3px; border-radius: 99px; background: rgba(255,255,255,.22); }
.seek::-moz-range-progress { height: 3px; border-radius: 99px; background: var(--accent); }
.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: -3.5px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 255, 95, .15);
  transition: transform .15s;
}
.seek:hover::-webkit-slider-thumb { transform: scale(1.25); }
.seek::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--accent); }
.seek:disabled { cursor: default; opacity: .52; }
.seek:disabled::-webkit-slider-thumb { display: none; }
.seek:disabled::-moz-range-thumb { display: none; }
.controls-row { display: flex; align-items: center; gap: 5px; min-height: 32px; }
.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, .78);
  transition: background .2s, color .2s, transform .2s;
}
.ctrl-btn:hover { background: rgba(255, 255, 255, .11); color: #fff; }
.ctrl-btn .icon { width: 15px; height: 15px; }
.ctrl-btn--main {
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 14px var(--accent-glow);
}
.ctrl-btn--main:hover { background: #e8ffa1; color: var(--accent-ink); transform: scale(1.04); }
body[data-accent="violet"] .ctrl-btn--main:hover { background: #d3c1ff; }
body[data-accent="pink"] .ctrl-btn--main:hover { background: #ffbce0; }
.ctrl-btn--main .icon { width: 16px; height: 16px; }
.ctrl-btn.is-locked { background: rgba(255, 255, 255, .13); color: rgba(255, 255, 255, .66); box-shadow: none; }
.ctrl-btn.is-locked:hover { transform: none; }
.time-code {
  margin-left: 3px;
  color: rgba(255, 255, 255, .58);
  font-size: 8.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.time-code b { color: rgba(255, 255, 255, .86); font-weight: 800; }
.ctrl-spacer { flex: 1; }
.volume-slider {
  width: 62px;
  height: 3px;
  appearance: none;
  background: rgba(255, 255, 255, .22);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb { appearance: none; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.volume-slider::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: #fff; }
.player-shell.is-locked .volume-slider { display: none; }
.player-shell.is-locked .ctrl-btn--main { background: rgba(255, 255, 255, .15); color: rgba(255,255,255,.7); box-shadow: none; }
.player-shell.is-locked .ctrl-btn--main .icon { color: rgba(255,255,255,.78); }

.processing-overlay {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 8, .72);
  backdrop-filter: blur(7px);
}
.processing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: rgba(15, 15, 21, .84);
  box-shadow: var(--shadow-card);
}
.spinner {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .13);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
.processing-card b { font-size: 11px; font-weight: 800; }
.processing-card span { color: var(--muted-2); font-size: 9px; }
.video-error {
  position: absolute;
  z-index: 9;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  background: rgba(7, 7, 10, .82);
  backdrop-filter: blur(6px);
  text-align: center;
}
.video-error .video-empty-icon { color: var(--danger); border-color: rgba(255, 116, 134, .24); }
.video-error b { font-size: 12px; font-weight: 800; }
.video-error span { color: var(--muted-2); font-size: 9.5px; }
.video-error .btn { height: 34px; font-size: 9.5px; margin-top: 2px; }
.video-autoplay-hint {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* fullscreen */
.player-shell:fullscreen {
  border: 0;
  border-radius: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-shell:fullscreen .player-stage {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
}
.player-shell:fullscreen .video-empty { border-radius: 0; }

/* now playing */
.now-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(255,255,255,.043), rgba(255,255,255,.016));
  flex: none;
}
.np-thumb {
  position: relative;
  width: 45px;
  height: 45px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #2d2454, #0c0b12);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  font-size: 20px;
}
.np-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.np-thumb span { position: relative; z-index: 1; filter: drop-shadow(0 3px 5px rgba(0,0,0,.4)); }
.np-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent, rgba(0,0,0,.38)); }
.np-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.np-kicker { color: var(--accent); font-size: 7px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.np-title {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-meta { color: var(--muted-2); font-size: 8.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-end { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.host-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
}
.host-indicator .icon { width: 11px; height: 11px; color: var(--accent); }
.host-indicator b { color: var(--muted); font-weight: 800; }
.np-end .btn { height: 32px; font-size: 9.5px; padding: 0 11px; }
.np-end .btn .icon { width: 13px; height: 13px; }

.watch-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
  padding: 1px 2px 2px;
}
.speed-group { display: flex; align-items: center; gap: 8px; }
.speed-label { color: var(--muted-2); font-size: 7.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.speed-switch {
  display: flex;
  align-items: center;
  gap: 1px;
  height: 29px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.028);
}
.speed-btn {
  height: 21px;
  min-width: 30px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: background .2s, color .2s;
}
.speed-btn:hover { color: var(--text); }
.speed-btn.is-active { background: var(--text); color: #111114; }
.watch-toolbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.watch-toolbar-actions .tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 29px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  transition: background .2s, color .2s, border-color .2s;
}
.watch-toolbar-actions .tool-btn:hover { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line-strong); }
.watch-toolbar-actions .tool-btn .icon { width: 12px; height: 12px; }
.speed-sync-note {
  color: var(--muted-2);
  font-size: 7.5px;
  opacity: .75;
  white-space: nowrap;
}

/* room about */
.room-about {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 146px;
  gap: 16px;
  margin-top: 3px;
  padding: 16px 16px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(217, 255, 95, .055), transparent 56%),
    linear-gradient(112deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  overflow: hidden;
  isolation: isolate;
}
.room-about-main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.room-about-head { display: flex; align-items: center; gap: 9px; }
.room-about-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.room-about-kicker .icon { width: 12px; height: 12px; }
.room-about-category {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: lowercase;
}
.room-about-desc {
  margin: 0;
  max-width: 62ch;
  color: #dedbd3;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.005em;
  text-wrap: pretty;
}
.room-about-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 15px;
  margin-top: auto;
  padding-top: 2px;
}
.room-fact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
}
.room-fact .icon { width: 11px; height: 11px; opacity: .8; }
.room-code-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--accent-border);
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, .015));
  text-align: left;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.room-code-card:hover {
  background: linear-gradient(135deg, rgba(217, 255, 95, .16), rgba(255, 255, 255, .03));
  border-color: var(--accent);
  transform: translateY(-1px);
}
.room-code-label {
  color: var(--muted-2);
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.room-code-card b {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
}
.room-code-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}
.room-code-copy .icon { width: 10px; height: 10px; }
.mobile-only { display: none !important; }

/* chat */
.chat-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(17,17,23,.91), rgba(10,10,14,.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 22px 60px rgba(0,0,0,.24);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 55px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.012);
}
.chat-title { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.chat-title b { font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.chat-online {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}
.chat-online .live-dot { width: 5px; height: 5px; box-shadow: none; }
.chat-members-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  height: 32px;
  padding: 0 8px 0 4px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.chat-members-btn:hover { background: rgba(255,255,255,.05); border-color: var(--line); }
.chat-members-btn .avatar-stack .avatar { border-color: #121218; }
.chat-members-btn .chat-members-label { color: var(--muted-2); font-size: 8.5px; font-weight: 800; }
.chat-members-btn .icon { width: 12px; height: 12px; color: var(--muted-2); }
.chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 12px 4px;
  scroll-behavior: smooth;
}
.chat-day {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--muted-2);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: center;
}
.chat-day::before, .chat-day::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.message {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 5px 2px 7px;
  animation: messageIn .3s var(--ease) both;
}
.message .avatar { margin-top: 1px; }
.msg-main { flex: 1; min-width: 0; padding-top: 1px; }
.msg-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 16px; }
.msg-name { color: #e9e7df; font-size: 10.5px; font-weight: 800; line-height: 1.2; }
.msg-name.is-host { color: var(--accent); }
.msg-crown { display: inline-flex; align-items: center; color: var(--accent); }
.msg-crown .icon { width: 10px; height: 10px; }
.msg-time { color: var(--muted-2); font-size: 7.5px; font-weight: 600; }
.msg-tools { display: flex; align-items: center; gap: 1px; margin-left: auto; opacity: 0; transition: opacity .18s; }
.message:hover .msg-tools, .message.is-actions-open .msg-tools { opacity: 1; }
.msg-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 19px;
  border-radius: 5px;
  color: var(--muted-2);
  transition: background .2s, color .2s;
}
.msg-tool:hover { background: rgba(255,255,255,.07); color: var(--text); }
.msg-tool .icon { width: 11px; height: 11px; }
.msg-text {
  margin-top: 3px;
  color: #dedcd5;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.msg-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.msg-reply-quote {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 3px 0 5px;
  padding: 4px 7px;
  border-left: 2px solid var(--accent);
  border-radius: 0 5px 5px 0;
  background: rgba(255,255,255,.035);
  overflow: hidden;
}
.msg-reply-quote b { color: var(--accent); font-size: 8px; font-weight: 800; }
.msg-reply-quote span { color: var(--muted-2); font-size: 8.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.reaction:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.reaction.is-mine { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-border); }
.reaction span:first-child { font-size: 10px; }
.msg-tools .reaction-picker,
.reaction-picker {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-top: 5px;
  width: max-content;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #16161e;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.reaction-picker.is-hidden { display: none; }
.reaction-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 22px;
  border-radius: 999px;
  font-size: 12px;
  transition: background .15s, transform .15s;
}
.reaction-pick:hover { background: rgba(255,255,255,.09); transform: scale(1.12); }
.reaction-pick.is-mine { background: var(--accent-soft); }
.message.is-system { display: flex; justify-content: center; padding: 5px 0; }
.system-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.system-line .icon { width: 10px; height: 10px; color: var(--muted-2); }
.system-line b { color: var(--muted); font-weight: 800; }
.system-line--crown .icon { color: var(--accent); }
.system-line--crown b { color: var(--accent); }
.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 20px;
  color: var(--muted-2);
  text-align: center;
}
.chat-empty-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
}
.chat-empty-icon .icon { width: 18px; height: 18px; }
.chat-empty b { color: var(--muted); font-size: 11px; font-weight: 800; }
.chat-empty span { max-width: 180px; margin-top: 4px; font-size: 9px; line-height: 1.5; }
.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
  height: 22px;
  padding: 0 15px;
  color: var(--muted-2);
  font-size: 8px;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.chat-typing.is-visible { opacity: 1; }
.typing-dots { display: inline-flex; align-items: center; gap: 2px; }
.typing-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  animation: typingBounce 1.1s infinite ease-in-out;
}
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
.chat-composer {
  flex: none;
  padding: 7px 9px calc(9px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(7, 7, 10, .42);
  position: relative;
}
.reply-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 2px 7px;
  padding: 6px 8px;
  border-radius: 7px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 8.5px;
  overflow: hidden;
}
.reply-banner b { color: var(--accent); font-weight: 800; }
.reply-banner span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.reply-banner button { margin-left: auto; flex: none; color: var(--muted-2); width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.reply-banner button:hover { color: var(--text); background: rgba(255,255,255,.08); }
.reply-banner button .icon { width: 11px; height: 11px; }
.composer-main { display: flex; align-items: flex-end; gap: 6px; }
.composer-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 4px 4px 4px 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.035);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.composer-field:focus-within { border-color: var(--accent-border); background: rgba(255,255,255,.045); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer-emoji {
  width: 27px;
  height: 27px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--muted-2);
  transition: background .2s, color .2s;
}
.composer-emoji:hover { background: rgba(255,255,255,.07); color: var(--text); }
.composer-emoji .icon { width: 15px; height: 15px; }
.composer-input {
  flex: 1;
  width: 100%;
  min-height: 27px;
  max-height: 98px;
  padding: 5px 2px 5px 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  line-height: 1.5;
  scrollbar-width: none;
}
.composer-input::-webkit-scrollbar { display: none; }
.composer-input::placeholder { color: var(--muted-2); }
.composer-send {
  width: 36px;
  height: 36px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform .2s, background .2s, opacity .2s;
}
.composer-send:hover { transform: scale(1.05); }
.composer-send:disabled { opacity: .28; pointer-events: none; }
.composer-send .icon { width: 16px; height: 16px; margin-left: 1px; }
.composer-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 3px 0;
  color: var(--muted-2);
  font-size: 7px;
  font-weight: 600;
}
.composer-hint kbd {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255,255,255,.03);
  color: var(--muted-2);
  font-family: inherit;
  font-size: 7px;
}
.emoji-pop {
  position: absolute;
  z-index: 30;
  left: 9px;
  bottom: 58px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  width: 226px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #15151d;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.emoji-pop.is-hidden { display: none; }
.emoji-pop button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 16px;
  transition: background .15s, transform .15s;
}
.emoji-pop button:hover { background: rgba(255,255,255,.08); transform: scale(1.1); }

.room-error-page {
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.room-error-page .video-empty-icon { width: 58px; height: 58px; border-radius: 18px; }
.room-error-page h1 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); letter-spacing: -.05em; font-weight: 700; }
.room-error-page p { max-width: 390px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.room-error-page .btn { margin-top: 8px; }

/* =========================================================
   Modals
   ========================================================= */
.modal-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-layer.is-open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 6, .7);
  backdrop-filter: blur(11px);
  animation: fadeIn .22s ease both;
}
.modal {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  max-height: min(88dvh, 850px);
  overflow-y: auto;
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 25px;
  background: linear-gradient(155deg, #17171f, #0d0d13 72%);
  box-shadow: 0 35px 110px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255,255,255,.07);
  animation: modalIn .3s var(--ease) both;
  scrollbar-width: thin;
}
.modal--wide { width: min(860px, 100%); }
.modal--sm { width: min(420px, 100%); }
.modal--sheet { padding-bottom: calc(23px + env(safe-area-inset-bottom, 0px)); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
.modal-head-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.modal-eyebrow { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.modal-title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.15;
}
.modal-sub { max-width: 520px; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.modal-close {
  width: 34px;
  height: 34px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  transition: background .2s, color .2s, transform .2s;
}
.modal-close:hover { background: rgba(255,255,255,.08); color: var(--text); transform: rotate(8deg); }
.modal-close .icon { width: 15px; height: 15px; }
.modal-body { display: flex; flex-direction: column; gap: 14px; }
.modal-divider { height: 1px; background: var(--line); }
.modal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal-foot .btn { height: 43px; font-size: 11.5px; }
.modal-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.55;
}
.modal-note .icon { width: 12px; height: 12px; flex: none; margin-top: 1px; color: var(--accent); }
.modal .field-control { height: 48px; font-size: 13px; }
.modal .field-label { margin-bottom: 2px; display: block; }
.modal .input-wrap input { font-size: 13px; }

/* share */
.share-link-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.share-link {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.share-copy-btn { flex: none; height: 37px; padding: 0 13px; font-size: 10px; }
.share-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.022);
}
.share-preview-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.share-preview-icon .icon { width: 16px; height: 16px; }
.share-preview-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.share-preview-copy b { font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-preview-copy span { color: var(--muted-2); font-size: 8.5px; }
.share-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.share-perk {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.019);
}
.share-perk .icon { width: 14px; height: 14px; color: var(--accent); }
.share-perk b { font-size: 8.5px; font-weight: 800; }
.share-perk span { color: var(--muted-2); font-size: 7.5px; line-height: 1.4; }

/* join by code */
.code-big-input {
  width: 100%;
  height: 66px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  outline: 0;
  background: rgba(255,255,255,.035);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(19px, 3.4vw, 27px);
  font-weight: 500;
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.code-big-input::placeholder { color: #3c3a47; letter-spacing: .15em; }
.code-big-input:focus { border-color: var(--accent-border); background: rgba(255,255,255,.05); box-shadow: 0 0 0 4px var(--accent-soft); }
.join-hint { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted-2); font-size: 8.5px; text-align: center; }
.join-hint .icon { width: 11px; height: 11px; color: var(--accent); }
.join-error { min-height: 15px; color: var(--danger); font-size: 10px; font-weight: 700; text-align: center; }
.join-demo-rooms { padding-top: 4px; }
.join-demo-rooms > span { color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.join-demo-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.join-demo-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 29px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.022);
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  transition: background .2s, border-color .2s;
}
.join-demo-code:hover { background: var(--accent-soft); border-color: var(--accent-border); color: var(--text); }
.join-demo-code b { color: var(--accent); font-family: var(--font-display); font-size: 8px; letter-spacing: .06em; }

/* google */
.google-consent { display: flex; flex-direction: column; gap: 15px; }
.google-brand { display: flex; align-items: center; gap: 10px; }
.google-logo-big {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
}
.google-logo-big .g-icon { width: 23px; height: 23px; }
.google-brand-copy { display: flex; flex-direction: column; gap: 1px; }
.google-brand-copy b { font-size: 13px; font-weight: 800; }
.google-brand-copy span { color: var(--muted-2); font-size: 9px; }
.google-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255,255,255,.03);
  width: 100%;
  text-align: left;
  transition: border-color .2s, background .2s;
}
.google-account:hover { border-color: var(--accent-border); background: rgba(255,255,255,.045); }
.google-account-avatar { width: 34px; height: 34px; border-radius: 50%; background: #4074cd; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.google-account-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.google-account-copy b { font-size: 10.5px; font-weight: 800; }
.google-account-copy span { color: var(--muted-2); font-size: 9px; }
.google-account-radio { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; }
.google-account:hover .google-account-radio { border-color: var(--accent); box-shadow: inset 0 0 0 3px #15151b, inset 0 0 0 10px var(--accent); }
.google-permissions { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.022); border: 1px solid var(--line); }
.google-permissions > b { font-size: 9px; font-weight: 800; color: var(--muted); }
.google-permission { display: flex; align-items: flex-start; gap: 7px; margin-top: 8px; }
.google-permission .icon { width: 12px; height: 12px; color: var(--green); flex: none; margin-top: 1px; }
.google-permission span { color: var(--muted-2); font-size: 8.5px; line-height: 1.5; }
.google-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.google-actions .btn { height: 42px; font-size: 10.5px; }
.google-disclaimer { padding-top: 2px; color: var(--muted-2); font-size: 8px; line-height: 1.55; }

/* participants */
.participants-list { display: flex; flex-direction: column; gap: 2px; max-height: 370px; overflow-y: auto; padding-right: 2px; }
.participant-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 6px 7px;
  border-radius: 11px;
  transition: background .2s;
}
.participant-row:hover { background: rgba(255,255,255,.035); }
.participant-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.participant-name-line { display: flex; align-items: center; gap: 5px; }
.participant-name { font-size: 11px; font-weight: 800; }
.participant-name-line .icon { width: 12px; height: 12px; color: var(--accent); }
.participant-sub { color: var(--muted-2); font-size: 8px; }
.participant-sub.online { color: var(--green); }
.participant-actions { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.participant-you {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255,255,255,.05);
  color: var(--muted-2);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.participant-bot {
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 7px;
  font-weight: 700;
}
.participant-status { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-2); font-size: 7.5px; }
.transfer-crown-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 700;
  transition: border-color .2s, background .2s, color .2s;
}
.transfer-crown-btn:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-soft); }
.transfer-crown-btn .icon { width: 10px; height: 10px; }
.participants-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.participants-foot .btn { height: 34px; font-size: 9px; }
.participants-foot span { color: var(--muted-2); font-size: 8px; }
.participants-note { color: var(--muted-2); font-size: 8.5px; line-height: 1.5; }
.host-you-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.host-you-badge .icon { width: 9px; height: 9px; }

/* video picker */
.picker-tabs { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.027); width: max-content; Max-width: 100%; }
.picker-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  transition: background .2s, color .2s;
}
.picker-tab:hover { color: var(--text); }
.picker-tab.is-active { background: var(--text); color: #111114; }
.picker-tab .g-mini { width: 13px; height: 13px; font-size: 8px; }
.picker-tab .g-mini--active { color: #34a853; }
.picker-pane { display: flex; flex-direction: column; gap: 12px; }
.picker-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.5;
}
.picker-note .icon { width: 11px; height: 11px; flex: none; color: var(--accent); margin-top: 1px; }
.drive-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(260px 130px at 0 0, rgba(66,133,244,.14), transparent 70%),
    rgba(255,255,255,.022);
}
.drive-hero .drive-logo { width: 38px; height: 38px; border-radius: 10px; }
.drive-hero .drive-logo .g-icon { width: 20px; height: 20px; }
.drive-hero-copy { display: flex; flex-direction: column; gap: 2px; }
.drive-hero-copy b { font-size: 11px; font-weight: 800; }
.drive-hero-copy span { color: var(--muted-2); font-size: 8.5px; }
.drive-hero .btn { margin-left: auto; height: 34px; font-size: 9px; }
.drive-hero-error { border-color: rgba(255,116,134,.2); background: radial-gradient(260px 130px at 0 0, rgba(255,116,134,.08), transparent 70%), rgba(255,255,255,.022); }
.drive-hero-error .drive-logo { background: #1b1b24; box-shadow: none; }
.drive-file-grid, .demo-video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.drive-file {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.022);
  text-align: left;
  min-width: 0;
  transition: border-color .2s, background .2s, transform .2s;
}
.drive-file:hover { border-color: var(--line-strong); background: rgba(255,255,255,.045); transform: translateY(-1px); }
.drive-file-thumb {
  position: relative;
  width: 52px;
  height: 39px;
  flex: none;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(135deg, #312752, #111018);
  border: 1px solid rgba(255,255,255,.1);
}
.drive-file-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.drive-file-thumb span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; }
.drive-file-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent, rgba(0,0,0,.3)); }
.drive-file-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.drive-file-copy b { font-size: 9px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drive-file-copy span { color: var(--muted-2); font-size: 7.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drive-file-pick {
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted-2);
  transition: background .2s, color .2s, border-color .2s;
}
.drive-file:hover .drive-file-pick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.drive-file-pick .icon { width: 11px; height: 11px; }
.demo-video {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.022);
  text-align: left;
  min-width: 0;
  transition: border-color .2s, transform .2s, background .2s;
}
.demo-video:hover { border-color: var(--line-strong); background: rgba(255,255,255,.04); transform: translateY(-2px); }
.demo-video-thumb {
  position: relative;
  aspect-ratio: 16 / 8.8;
  overflow: hidden;
  background: linear-gradient(135deg, #2a214b, #0c0b11);
}
.demo-video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.demo-video-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.45)); }
.demo-video-thumb > span { position: absolute; z-index: 1; right: 9px; bottom: 8px; font-size: 20px; filter: drop-shadow(0 3px 7px rgba(0,0,0,.4)); }
.demo-video-play {
  position: absolute;
  z-index: 2;
  left: 9px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(8,8,12,.5);
  backdrop-filter: blur(8px);
  color: #fff;
}
.demo-video-play .icon { width: 11px; height: 11px; margin-left: 1px; }
.demo-video-info { padding: 8px 9px 9px; min-width: 0; }
.demo-video-info b { display: block; font-size: 9.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-video-info span { display: block; margin-top: 1px; color: var(--muted-2); font-size: 7.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.custom-link-box { display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.custom-link-box .field-control { height: 38px; font-size: 9.5px; }
.custom-link-box .btn { height: 38px; font-size: 9px; }
.picker-processing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 160px;
  color: var(--muted);
  font-size: 10px;
}
.picker-processing .spinner { width: 21px; height: 21px; }
.picker-processing b { font-weight: 800; color: var(--text); }

/* about */
.about-hero {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(330px 180px at 90% 0%, rgba(183,161,255,.2), transparent 70%),
    radial-gradient(200px 150px at 0 100%, var(--accent-glow), transparent 70%),
    rgba(255,255,255,.022);
  overflow: hidden;
}
.about-hero .brand { margin-bottom: 12px; }
.about-hero p { max-width: 540px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.019);
}
.about-feature .icon { width: 13px; height: 13px; color: var(--accent); flex: none; margin-top: 1px; }
.about-feature b { font-size: 9px; font-weight: 800; line-height: 1.35; }
.about-feature span { color: var(--muted-2); font-size: 8px; line-height: 1.45; display: block; margin-top: 1px; }
.about-tech {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.022);
}
.about-tech > b { display: flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 800; }
.about-tech > b .icon { width: 12px; height: 12px; color: var(--accent); }
.about-tech p { margin-top: 5px; color: var(--muted-2); font-size: 8.5px; line-height: 1.55; }
.about-tech code { padding: 1px 4px; border-radius: 3px; background: rgba(255,255,255,.06); color: var(--muted); font-family: ui-monospace, monospace; font-size: 8px; }
.about-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted-2);
  font-size: 8px;
}

/* generic confirm */
.confirm-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}
.confirm-icon .icon { width: 19px; height: 19px; }
.confirm-icon--danger { color: var(--danger); border-color: rgba(255,116,134,.24); background: rgba(255,116,134,.08); }
.confirm-copy b { display: block; font-size: 15px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; }
.confirm-copy p { margin-top: 6px; color: var(--muted); font-size: 10.5px; line-height: 1.55; }

/* =========================================================
   Toasts / feedback
   ========================================================= */
.toast-root {
  position: fixed;
  z-index: 200;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(350px, calc(100vw - 36px));
  min-height: 43px;
  padding: 8px 12px 8px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(19, 19, 26, .94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
  backdrop-filter: blur(20px);
  color: var(--text);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
  pointer-events: auto;
  animation: toastIn .3s var(--ease) both;
}
.toast.is-leaving { animation: toastOut .22s ease both; }
.toast-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}
.toast-icon .icon { width: 13px; height: 13px; stroke-width: 2.2; }
.toast--error .toast-icon { background: rgba(255,116,134,.1); color: var(--danger); }
.toast--success .toast-icon { background: rgba(125,240,166,.09); color: var(--green); }
.toast-message { min-width: 0; }
.toast-message b { display: block; font-weight: 800; }
.toast-message span { display: block; margin-top: 1px; color: var(--muted-2); font-size: 8.5px; font-weight: 500; }
.empty-soft { color: var(--muted-2); font-size: 10px; }

/* =========================================================
   Animations
   ========================================================= */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(13px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes messageIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(5px) scale(.98); }
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(217,255,95,.09); }
  50% { box-shadow: 0 0 0 5px rgba(217,255,95,.16); }
}
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-3px); opacity: 1; }
}
@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28px, 36px, 0) scale(1.07); }
}
@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes stageSway {
  0%, 100% { transform: rotate(-2.2deg) translateY(0); }
  50% { transform: rotate(-1.2deg) translateY(-5px); }
}
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0) rotate(2.4deg); }
  50% { transform: translateY(-6px) rotate(1.6deg); }
}
@keyframes doodleFloat {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(-7px) rotate(16deg); }
}
@keyframes playBreath {
  0%, 100% { box-shadow: 0 15px 44px var(--accent-glow), 0 0 0 7px rgba(217,255,95,.06); }
  50% { box-shadow: 0 17px 55px var(--accent-glow), 0 0 0 11px rgba(217,255,95,.035); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes reelShuffle {
  0% { transform: translateY(0) rotate(0) scale(1); }
  20% { transform: translateY(-7px) rotate(-1.5deg) scale(.99); }
  45% { transform: translateY(5px) rotate(1deg) scale(1.01); }
  70% { transform: translateY(-3px) rotate(-.5deg) scale(.996); }
  100% { transform: translateY(0) rotate(0) scale(1); }
}
@keyframes reelFade {
  0% { opacity: 1; filter: blur(0); }
  35% { opacity: .2; filter: blur(5px); }
  65% { opacity: .2; filter: blur(5px); }
  100% { opacity: 1; filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  :root { --sidebar-w: 246px; }
  .page { padding-left: 32px; padding-right: 32px; }
  .hero { gap: 22px; }
  .hero-art { min-height: 285px; }
  .room-layout { grid-template-columns: minmax(0, 1fr) 352px; }
}

@media (max-width: 1160px) {
  .rooms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .create-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); }
  .settings-grid { grid-template-columns: 288px minmax(0, 1fr); }
  .room-layout { grid-template-columns: minmax(0, 1fr) 336px; }
  .room-about { display: none; }
  .hero-player { inset: 8px 15px 4px 20px; }
  .hero-float--chat { width: 200px; }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { align-items: flex-start; max-width: 740px; }
  .hero-art { display: none; }
  .create-preview { display: none; }
  .create-grid { grid-template-columns: 1fr; }
  .create-form { max-width: 700px; }
  .create-page .page-head { max-width: 700px; }
  .room-layout { grid-template-columns: minmax(0, 1fr) 326px; gap: 11px; }
  .room-page { padding-left: 20px; padding-right: 20px; }
  .room-online-pill { display: none; }
}

@media (max-width: 1024px) {
  :root { --sidebar-w: 232px; }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .page { padding: 32px 25px 56px; }
  .hero { padding: 28px; }
  .settings-grid { grid-template-columns: 272px minmax(0, 1fr); }
  .profile-body { padding-left: 15px; padding-right: 15px; }
  .settings-card { padding: 18px; }
  .room-layout { grid-template-columns: minmax(0, 1fr) 315px; }
  .player-stage { max-height: calc(100dvh - 290px); }
  .chat-head { min-height: 51px; }
  .search-box { width: 190px; }
  .search-box:focus-within { width: 215px; }
  .how-grid { gap: 9px; }
  .how-step { padding: 16px; }
}

@media (max-width: 920px) {
  .auth { display: block; min-height: 100dvh; }
  .auth-art { display: none; }
  .auth-panel { min-height: 100dvh; padding: 23px 18px 26px; justify-content: flex-start; }
  .auth-mobile-brand { display: inline-flex; margin-bottom: 7vh; }
  .auth-card { margin: 0 auto; }
  .auth-bottom { margin-top: 18px; }
  .auth-card { padding: 26px; }
  .settings-grid { grid-template-columns: 1fr; }
  .profile-card { position: relative; top: auto; }
  .profile-body { display: grid; grid-template-columns: 1fr auto; gap: 0 20px; align-items: start; }
  .profile-avatar-wrap { grid-column: 1; grid-row: 1; }
  .profile-name { grid-column: 1; grid-row: 2; }
  .profile-handle { grid-column: 1; grid-row: 3; }
  .profile-badges { grid-column: 1 / -1; }
  .profile-stats { grid-column: 1 / -1; }
  .profile-card-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .profile-card-actions .btn { flex: 1; justify-content: center; min-width: 130px; }
  .profile-note { grid-column: 1 / -1; }
  .profile-banner { height: 84px; }
  .settings-stack { gap: 11px; }
}

@media (max-width: 900px) {
  body:not(.in-room) { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .shell { display: block; min-height: 100dvh; }
  .sidebar { display: none; }
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 35;
    height: 62px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .065);
    background: rgba(8, 8, 12, .8);
    backdrop-filter: blur(23px);
  }
  .brand--mobile .brand-mark { width: 29px; height: 29px; border-radius: 9px 9px 9px 3px; }
  .brand--mobile .brand-mark .icon { width: 18px; height: 18px; }
  .brand--mobile .brand-word { font-size: 21px; }
  .mobile-nav {
    position: fixed;
    z-index: 45;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding: 6px 10px env(safe-area-inset-bottom, 0px);
    border-top: 1px solid rgba(255, 255, 255, .075);
    background: rgba(9, 9, 13, .92);
    backdrop-filter: blur(25px);
    box-shadow: 0 -18px 40px rgba(0, 0, 0, .18);
  }
  .mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding-top: 3px;
    color: var(--muted-2);
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: .02em;
    transition: color .2s;
  }
  .mobile-nav-link .icon { width: 19px; height: 19px; }
  .mobile-nav-link.is-active { color: var(--text); }
  .mobile-nav-link.is-active .icon { color: var(--accent); }
  .mobile-nav-create { gap: 3px; }
  .mobile-nav-plus {
    display: grid;
    place-items: center;
    width: 33px;
    height: 27px;
    margin-top: -3px;
    border-radius: 9px;
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 4px 14px var(--accent-glow);
  }
  .mobile-nav-plus .icon { width: 15px; height: 15px; }
  .mobile-nav-create span:last-child { color: var(--accent); }
  .main { padding-bottom: 0; }
  .page { padding: 22px 15px calc(88px + env(safe-area-inset-bottom, 0px)); }
  .page-head { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 21px; }
  .page-title { font-size: clamp(28px, 7.2vw, 38px); }
  .page-sub { font-size: 12px; }
  .home-topline { margin-bottom: 13px; }
  .home-clock { display: none; }
  .hero { padding: 23px 21px; border-radius: 24px; gap: 16px; margin-bottom: 25px; }
  .hero h1 { font-size: clamp(31px, 8.2vw, 46px); }
  .hero-lead { font-size: 12px; max-width: 440px; }
  .hero-actions { gap: 8px; width: 100%; }
  .hero-actions .btn { flex: 1; min-width: 140px; padding: 0 15px; font-size: 11.5px; }
  .hero-assurance { display: none; }
  .hero-stats { font-size: 9.5px; }
  .home-hello { font-size: 10.5px; }
  .rooms-grid { gap: 11px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .rooms-toolbar { width: 100%; }
  .search-box { flex: 1; width: auto; min-width: 150px; }
  .search-box:focus-within { width: auto; }
  .filter-tabs { flex: none; }
  .section-title { font-size: 21px; }
  .code-strip { margin-top: 12px; padding: 10px 11px; }
  .code-strip .btn { height: 33px; font-size: 9.5px; padding: 0 11px; }
  .how-section { margin-top: 37px; }
  .how-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .how-grid { gap: 8px; }
  .how-step { padding: 15px; }
  .how-step h3 { margin-top: 15px; }
  .site-foot { margin-top: 36px; padding-top: 18px; flex-direction: column; align-items: flex-start; gap: 9px; }
  .site-foot-links { gap: 14px; }
  .create-form { padding: 4px 18px 20px; }
  .form-block { padding: 19px 0; }
  .cover-picker { gap: 6px; }
  .cover-option { min-height: 53px; padding: 5px; gap: 7px; }
  .cover-swatch { width: 37px; height: 37px; font-size: 17px; }
  .cover-option-copy b { font-size: 8px; }
  .cover-option-copy span { display: none; }
  .profile-card-actions { margin-top: 13px; }
  .settings-card { padding: 17px; }
  .roulette-grid { grid-template-columns: 1fr; gap: 13px; }
  .roulette-head { margin-top: 3px; margin-bottom: 22px; }
  .roulette-head h1 { font-size: clamp(31px, 8vw, 45px); }
  .roulette-head p { font-size: 11.5px; }
  .roulette-dice { width: 52px; height: 52px; border-radius: 15px; }
  .roulette-dice .icon { width: 25px; height: 25px; }
  .roulette-panel { padding: 18px; }
  .roulette-spin-btn { margin-top: 18px; }
  .reel-wrap { min-height: 395px; }
  .reel-card { min-height: 395px; padding: 21px; }
  .reel-empty { min-height: 300px; }
  .roulette-rules { grid-template-columns: 1fr; gap: 7px; margin-top: 12px; }

  .auth-panel { padding-top: 21px; }
  .auth-mobile-brand { margin-bottom: clamp(22px, 7vh, 58px); }
  .auth-card { padding: 24px; border-radius: 23px; }

  /* room mobile: video above, chat below, both usable */
  body.in-room { overflow: hidden; }
  body.in-room .main { height: 100dvh; }
  .room-page {
    height: 100dvh;
    padding: 8px 8px 0;
    gap: 8px;
  }
  .room-top { min-height: 43px; gap: 7px; padding: 0 1px; }
  .room-back { width: 34px; height: 34px; }
  .room-back .icon { width: 15px; height: 15px; }
  .room-heading { gap: 2px; }
  .room-title-line { gap: 6px; }
  .room-title { font-size: 14px; max-width: 46vw; }
  .room-code { font-size: 6.5px; padding: 2px 4px; }
  .room-sub { gap: 5px; font-size: 7.5px; }
  .room-sub .room-sub-sep { display: none; }
  .room-sub .room-sub-hide-mobile { display: none; }
  .room-top-actions { gap: 4px; }
  .room-top-actions .icon-btn { width: 34px; height: 34px; }
  .room-top-actions .btn { display: none; }
  .room-online-pill { display: none; }
  .room-layout { display: flex; flex-direction: column; gap: 7px; flex: 1; min-height: 0; overflow: hidden; }
  .watch-col { flex: none; gap: 7px; overflow: visible; padding-bottom: 0; }
  .player-shell { border-radius: 17px; }
  .player-stage { aspect-ratio: 16 / 9; max-height: 35dvh; min-height: 0; }
  .player-shell.is-empty .player-stage { max-height: 31dvh; }
  .player-topbar { padding: 7px 7px 22px; }
  .player-badges { gap: 3px; }
  .sync-pill, .source-pill, .host-pill { height: 24px; padding: 0 7px; font-size: 7px; gap: 4px; }
  .host-pill { display: none; }
  .source-pill { color: rgba(255,255,255,.7); }
  .player-controls { padding: 22px 8px 6px; }
  .controls-row { gap: 2px; min-height: 29px; }
  .ctrl-btn { width: 29px; height: 29px; }
  .ctrl-btn--main { width: 31px; height: 31px; }
  .ctrl-btn .icon { width: 14px; height: 14px; }
  .time-code { font-size: 7.5px; margin-left: 1px; }
  .volume-slider { display: none; }
  .seek { height: 12px; }
  .video-center { gap: 5px; }
  .center-play { width: 54px; height: 54px; }
  .center-play .icon { width: 19px; height: 19px; }
  .center-play.is-join { height: 37px; padding: 0 13px; font-size: 9px; }
  .center-note { font-size: 7.5px; padding: 3px 8px; }
  .video-empty { padding: 12px; gap: 5px; }
  .video-empty-icon { width: 39px; height: 39px; border-radius: 12px; }
  .video-empty-icon .icon { width: 18px; height: 18px; }
  .video-empty .eyebrow { display: none; }
  .video-empty h2 { font-size: 18px; }
  .video-empty p { font-size: 9px; max-width: 280px; }
  .video-empty .empty-actions { gap: 5px; margin-top: 1px; }
  .video-empty .btn { height: 31px; padding: 0 10px; font-size: 8.5px; }
  .now-card { padding: 6px 7px; border-radius: 13px; gap: 7px; }
  .np-thumb { width: 37px; height: 37px; border-radius: 9px; font-size: 17px; }
  .np-copy { gap: 0; }
  .np-kicker { font-size: 6px; }
  .np-title { font-size: 10.5px; }
  .np-meta { font-size: 7.5px; }
  .np-end .host-indicator { display: none; }
  .np-end .btn { height: 28px; padding: 0 8px; font-size: 8px; }
  .np-end .btn .icon { width: 11px; height: 11px; }
  .watch-toolbar { gap: 6px; padding: 0 1px; }
  .speed-label { display: none; }
  .speed-switch { height: 26px; padding: 2px; }
  .speed-btn { height: 20px; min-width: 27px; font-size: 7.5px; }
  .speed-sync-note { display: none; }
  .watch-toolbar-actions { gap: 4px; }
  .watch-toolbar-actions .tool-btn { height: 26px; font-size: 7.5px; padding: 0 7px; }
  .watch-toolbar-actions .tool-btn .icon { width: 11px; height: 11px; }
  .mobile-only { display: inline-flex !important; }
  .desktop-only { display: none !important; }
  .chat-panel { flex: 1; min-height: 0; height: auto; border-radius: 17px; }
  .chat-head { min-height: 44px; padding: 7px 9px; }
  .chat-title b { font-size: 11.5px; }
  .chat-online { font-size: 7.5px; }
  .chat-members-btn { height: 28px; gap: 5px; padding-right: 6px; }
  .chat-members-btn .chat-members-label { display: none; }
  .chat-members-btn .avatar-stack .avatar { width: 22px; height: 22px; font-size: 10px; }
  .chat-members-btn > .icon { width: 11px; height: 11px; }
  .chat-body { padding: 8px 8px 2px; }
  .chat-day { margin-bottom: 7px; font-size: 6.5px; }
  .message { gap: 6px; padding: 4px 1px 6px; }
  .message .avatar { width: 25px; height: 25px; font-size: 12px; }
  .msg-name { font-size: 9.5px; }
  .msg-time { font-size: 6.5px; }
  .msg-text { font-size: 10.5px; line-height: 1.5; }
  .msg-reply-quote { margin: 2px 0 4px; padding: 3px 6px; }
  .msg-reply-quote b { font-size: 7px; }
  .msg-reply-quote span { font-size: 8px; }
  .msg-reactions { gap: 3px; margin-top: 4px; }
  .reaction { height: 20px; font-size: 8px; padding: 0 5px; }
  .msg-tools { opacity: .55; margin-left: auto; }
  .chat-empty { min-height: 120px; }
  .chat-empty-icon { width: 36px; height: 36px; margin-bottom: 7px; border-radius: 10px; }
  .chat-empty b { font-size: 10px; }
  .chat-empty span { font-size: 8px; }
  .chat-typing { height: 18px; padding: 0 10px; font-size: 7px; }
  .chat-composer { padding: 5px 7px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .reply-banner { margin-bottom: 5px; padding: 5px 7px; font-size: 8px; }
  .composer-main { gap: 5px; }
  .composer-field { padding: 3px 3px 3px 5px; border-radius: 13px; }
  .composer-emoji { width: 25px; height: 25px; }
  .composer-input { font-size: 10.5px; min-height: 26px; padding: 4px 1px; }
  .composer-send { width: 34px; height: 34px; }
  .composer-hint { display: none; }
  .emoji-pop { bottom: 51px; left: 7px; grid-template-columns: repeat(7, 1fr); width: 218px; }
  .emoji-pop button { width: 27px; height: 27px; }
  .modal-layer { padding: 12px; }
  .modal { padding: 19px; border-radius: 22px; max-height: 90dvh; }
  .modal-title { font-size: 21px; }
  .modal-sub { font-size: 9.5px; }
  .modal-close { width: 32px; height: 32px; }
  .toast-root { right: 11px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); left: 11px; align-items: center; }
  .toast { max-width: 100%; }
  body.in-room .toast-root { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 760px) {
  .rooms-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 7px; }
  .how-step { display: grid; grid-template-columns: 34px 1fr; gap: 0 11px; align-items: center; padding: 13px; }
  .how-step-top { display: contents; }
  .how-num { grid-column: 1; grid-row: 1; align-self: start; padding-top: 7px; }
  .how-icon { grid-column: 1; grid-row: 1; }
  .how-step h3 { grid-column: 2; grid-row: 1; margin-top: 0; align-self: center; }
  .how-step p { grid-column: 2; grid-row: 2; margin-top: 2px; }
  .how-step::after { display: none; }
  .roulette-rules { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .rooms-toolbar { flex-wrap: wrap; }
  .search-box { width: 100%; flex-basis: 100%; }
  .filter-tabs { width: 100%; justify-content: space-between; }
  .filter-tab { flex: 1; }
  .room-cover { aspect-ratio: 16 / 9.2; }
  .cover-emoji { font-size: 68px; }
  .home-hello .avatar { display: none; }
  .hero { padding: 21px 18px; }
  .hero h1 { font-size: clamp(29px, 8.7vw, 38px); }
  .hero-kicker .pill { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; flex: none; }
  .hero-stats { margin-top: 2px; }
  .code-strip-copy span { display: none; }
  .code-strip .btn span { display: none; }
  .code-strip .btn { padding: 0 10px; }
  .section-head { gap: 11px; }
  .section-title { font-size: 19px; }
  .section-kicker { font-size: 10.5px; line-height: 1.5; }
  .how-step p { font-size: 9.5px; }
  .cover-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover-option { min-height: 56px; }
  .cover-swatch { width: 40px; height: 40px; font-size: 18px; }
  .create-form { padding: 3px 15px 17px; }
  .form-block-head { gap: 9px; }
  .form-block-desc { font-size: 9.5px; }
  .profile-body { display: block; }
  .profile-avatar-wrap { margin-top: -36px; }
  .profile-card-actions { flex-direction: column; }
  .profile-card-actions .btn { flex: none; width: 100%; }
  .profile-stats { margin-top: 14px; }
  .settings-head { gap: 9px; }
  .settings-card { padding: 15px; border-radius: 18px; }
  .settings-icon { width: 31px; height: 31px; }
  .settings-title { font-size: 12.5px; }
  .settings-desc { font-size: 9.5px; }
  .form-grid { grid-template-columns: 1fr; }
  .nickname-row { flex-wrap: wrap; }
  .nickname-row .btn { width: 100%; height: 43px; }
  .nickname-row .field { flex-basis: 100%; }
  .drive-benefits { grid-template-columns: 1fr; }
  .avatar-picker { gap: 6px; }
  .avatar-option { width: 39px; height: 39px; font-size: 18px; }
  .drive-panel { padding: 13px; }
  .accent-option { height: 37px; padding-right: 9px; }
  .accent-dot { width: 21px; height: 21px; }
  .roulette-head { gap: 10px; }
  .roulette-head p { font-size: 10.5px; }
  .roulette-panel { padding: 16px; border-radius: 19px; }
  .mood-chip { height: 32px; font-size: 9.5px; padding: 0 9px; }
  .roulette-spin-btn { height: 46px; font-size: 11.5px; }
  .reel-wrap { min-height: 360px; }
  .reel-card { min-height: 360px; padding: 18px; }
  .reel-emoji { top: 23px; right: 22px; font-size: 60px; }
  .reel-top { top: 17px; left: 17px; }
  .reel-title { font-size: clamp(25px, 7.2vw, 34px); }
  .reel-desc { font-size: 9.5px; max-width: 90%; }
  .reel-empty { min-height: 280px; }
  .reel-empty-question { width: 50px; height: 50px; font-size: 23px; }
  .reel-ghost { inset: 7px 7px -7px; }
  .reel-ghost--two { inset: 13px 14px -13px; }
  .modal-layer { padding: 0; align-items: flex-end; }
  .modal { width: 100%; max-height: 91dvh; border-radius: 22px 22px 0 0; border-bottom: 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); animation: sheetIn .32s var(--ease) both; }
  .modal--wide, .modal--sm { width: 100%; }
  .modal-head { margin-bottom: 14px; }
  .modal-title { font-size: 20px; }
  .modal-foot { margin-top: 15px; }
  .modal-foot .btn { flex: 1; }
  .share-perks { grid-template-columns: 1fr; }
  .share-perk { flex-direction: row; align-items: center; gap: 7px; padding: 8px 10px; }
  .share-perk span { font-size: 8px; }
  .drive-file-grid { grid-template-columns: 1fr; }
  .demo-video-grid { grid-template-columns: 1fr 1fr; }
  .drive-hero { padding: 12px; gap: 9px; }
  .drive-hero .btn { height: 31px; font-size: 8px; padding: 0 9px; }
  .drive-hero-copy b { font-size: 10px; }
  .demo-video-info b { font-size: 9px; }
  .demo-video-info span { font-size: 7px; }
  .about-features { grid-template-columns: 1fr; }
  .modal .field-control { font-size: 12px; }
  .auth-panel { padding: 18px 14px 22px; justify-content: flex-start; }
  .auth-mobile-brand { margin-bottom: clamp(20px, 6vh, 40px); }
  .auth-card { padding: 21px 18px; border-radius: 22px; }
  .auth-card-top h2 { font-size: 25px; }
  .auth-card-top p { font-size: 11px; }
  .auth-tabs { margin-top: 20px; }
  .auth-form { gap: 12px; margin-top: 18px; }
  .auth-note { font-size: 8.5px; }
  .auth-bottom { width: 100%; }
  .toast-root { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 420px) {
  .page { padding-left: 12px; padding-right: 12px; }
  .hero { padding: 19px 15px; border-radius: 21px; }
  .hero h1 { font-size: 28px; }
  .hero-lead { font-size: 11.5px; }
  .hero-stats { font-size: 8.5px; gap: 7px; }
  .hero-stats .avatar-plus { width: 24px; height: 24px; font-size: 7px; }
  .hero-stats .avatar { width: 26px; height: 26px; font-size: 12px; }
  .hero-actions .btn { height: 44px; font-size: 10.5px; }
  .home-hello { font-size: 9.5px; }
  .section-title { font-size: 18px; }
  .room-title { max-width: 41vw; font-size: 13px; }
  .room-code { display: none; }
  .room-sub .room-sub-host { display: none; }
  .room-top-actions .icon-btn { width: 32px; height: 32px; }
  .room-back { width: 32px; height: 32px; }
  .now-card .np-meta { max-width: 150px; }
  .watch-toolbar-actions .tool-btn span { display: none; }
  .watch-toolbar-actions .tool-btn { padding: 0 7px; }
  .player-stage { max-height: 32dvh; }
  .chat-head { min-height: 43px; }
  .chat-body { padding-left: 7px; padding-right: 7px; }
  .composer-input { font-size: 16px !important; transform: scale(.72); transform-origin: left center; width: 139%; }
  .composer-input { max-height: 70px; }
  .auth-card { padding: 19px 15px; }
  .auth-card-top h2 { font-size: 23px; }
  .auth-tab { font-size: 10px; }
  .auth-mobile-brand .brand-word { font-size: 24px; }
  .auth-mobile-brand .brand-mark { width: 32px; height: 32px; }
  .btn { height: 44px; }
  .modal { padding-left: 14px; padding-right: 14px; }
  .participant-row { padding-left: 3px; padding-right: 3px; }
  .demo-video-grid { grid-template-columns: 1fr; }
  .share-copy-btn span { display: none; }
}

/* phone landscape: put player and chat side by side */
@media (max-width: 950px) and (orientation: landscape) and (max-height: 560px) {
  body.in-room { overflow: hidden; }
  .room-page { height: 100dvh; padding: 6px 8px; gap: 6px; }
  .room-top { min-height: 34px; gap: 7px; }
  .room-back { width: 30px; height: 30px; }
  .room-title { font-size: 12.5px; max-width: 34vw; }
  .room-sub { display: none; }
  .room-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 37%); gap: 7px; flex: 1; min-height: 0; }
  .watch-col { overflow: hidden; gap: 5px; }
  .player-stage { max-height: calc(100dvh - 180px); min-height: 105px; }
  .player-shell.is-empty .player-stage { max-height: calc(100dvh - 180px); }
  .player-topbar { padding: 6px 7px 20px; }
  .sync-pill, .source-pill { height: 23px; font-size: 6.5px; }
  .host-pill { display: none; }
  .now-card { padding: 5px 7px; }
  .np-thumb { width: 31px; height: 31px; font-size: 14px; }
  .np-kicker { display: none; }
  .np-title { font-size: 9.5px; }
  .np-meta { font-size: 7px; }
  .np-end .host-indicator { display: none; }
  .watch-toolbar { gap: 5px; }
  .speed-switch { height: 24px; }
  .speed-btn { height: 18px; font-size: 7px; min-width: 24px; }
  .watch-toolbar-actions .tool-btn { height: 23px; font-size: 7px; }
  .player-controls { padding: 18px 7px 5px; }
  .chat-panel { border-radius: 15px; }
  .chat-head { min-height: 39px; padding: 6px 8px; }
  .chat-title b { font-size: 10.5px; }
  .chat-online { display: none; }
  .chat-body { padding: 7px 7px 2px; }
  .message { padding: 3px 1px 5px; }
  .message .avatar { width: 23px; height: 23px; font-size: 11px; }
  .msg-text { font-size: 10px; }
  .chat-composer { padding: 4px 6px 5px; }
  .composer-hint { display: none; }
  .composer-emoji { width: 24px; height: 24px; }
  .composer-send { width: 31px; height: 31px; }
  .composer-input { min-height: 24px; font-size: 10px; }
  .video-empty { padding: 8px; gap: 4px; }
  .video-empty-icon { display: none; }
  .video-empty h2 { font-size: 15px; }
  .video-empty p { font-size: 8px; max-width: 260px; }
  .video-empty .btn { height: 28px; font-size: 8px; }
  .now-card { display: none; }
  .watch-toolbar-actions .tool-btn span { display: none; }
}

@keyframes sheetIn {
  from { opacity: .6; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Room menu + final room polish
   ========================================================= */
.room-menu-list { display: flex; flex-direction: column; gap: 3px; }
.room-menu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  text-align: left;
  transition: background .2s, border-color .2s;
}
.room-menu-row:hover { background: rgba(255,255,255,.04); border-color: var(--line); }
.room-menu-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  color: var(--muted);
}
.room-menu-icon .icon { width: 15px; height: 15px; }
.room-menu-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.room-menu-copy b { font-size: 10.5px; font-weight: 800; }
.room-menu-copy span { color: var(--muted-2); font-size: 8.5px; }
.room-menu-row > .icon { width: 14px; height: 14px; flex: none; color: var(--muted-2); }
.room-menu-row--danger .room-menu-icon,
.room-menu-row--danger .room-menu-copy b { color: var(--danger); }
.room-menu-row--danger:hover { background: rgba(255,116,134,.07); border-color: rgba(255,116,134,.2); }

.room-online-pill b, .chat-online b { color: var(--muted); font-weight: 800; }
.speed-btn:disabled { opacity: .35; cursor: default; }
.watch-toolbar-actions .tool-btn:disabled { opacity: .4; pointer-events: none; }
.picker-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.picker-tabs::-webkit-scrollbar { display: none; }
.player-stage video { cursor: pointer; }
.player-shell.is-locked .player-stage video { cursor: default; }
.chat-empty { gap: 2px; }
.chat-members-btn .avatar-stack { flex: none; }

/* Mobile ambience: keep the lime glow from washing the page in olive */
@media (max-width: 760px) {
  .ambient {
    background:
      radial-gradient(620px 460px at 82% -12%, rgba(112, 79, 255, .18), transparent 64%),
      radial-gradient(420px 320px at -20% 94%, var(--accent-glow), transparent 72%),
      var(--bg);
  }
}

@media (max-width: 640px) {
  .hero {
    background:
      radial-gradient(520px 360px at 99% 0%, rgba(139, 96, 255, .2), transparent 66%),
      radial-gradient(340px 260px at 56% 108%, rgba(217, 255, 95, .1), transparent 74%),
      linear-gradient(142deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .016) 60%, rgba(255, 255, 255, .03));
  }
}
