/* =========================================================
   同幕 TONG MU — two seats, one frame
   ========================================================= */
:root {
  --bg: #08090c;
  --bg-soft: #0d0f14;
  --panel: #111319;
  --panel-2: #16181f;
  --panel-glass: rgba(17, 19, 25, 0.78);
  --cream: #f2ede4;
  --cream-dim: #d9d2c5;
  --muted: #9295a0;
  --muted-2: #666a76;
  --accent: #ff6b4a;
  --accent-light: #ff9b7d;
  --accent-deep: #d94b2e;
  --mint: #70e6c7;
  --mint-dim: #3ca88e;
  --gold: #f3c88b;
  --danger: #ff6375;
  --line: rgba(242, 237, 228, 0.09);
  --line-strong: rgba(242, 237, 228, 0.16);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.48);
  --shadow-md: 0 16px 46px rgba(0, 0, 0, 0.3);
  --ease: cubic-bezier(0.22, 0.75, 0.22, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.room-is-open { overflow-y: auto; }
body.modal-is-open { overflow: hidden; }
::selection { background: rgba(255, 107, 74, 0.35); color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.032;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient span { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.16; }
.ambient-a { width: 660px; height: 660px; background: #ff5b37; left: -300px; top: 80px; }
.ambient-b { width: 560px; height: 560px; background: #296c66; right: -260px; top: 430px; opacity: 0.1 !important; }

/* ============ shared bits ============ */
.section-kicker, .stage-kicker, .eyebrow, .brand-latin, .feature-index, .privacy-tag, .film-hud {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.975); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary {
  color: #190d08;
  background: linear-gradient(135deg, #ff8f6d, var(--accent) 55%, #f05636);
  box-shadow: 0 12px 28px rgba(255, 91, 55, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(255, 91, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.32); }
.btn-secondary {
  color: var(--cream);
  background: rgba(242, 237, 228, 0.055);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: rgba(242, 237, 228, 0.1); border-color: rgba(242, 237, 228, 0.28); }
.btn-ghost { color: var(--muted); background: transparent; border-color: var(--line); }
.btn-ghost:hover { color: var(--cream); border-color: var(--line-strong); }
.btn-danger { color: #ffd9dc; background: rgba(255, 99, 117, 0.12); border-color: rgba(255, 99, 117, 0.25); }
.btn-danger:hover { background: rgba(255, 99, 117, 0.2); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 13px; border-radius: 11px; }
.btn.is-loading .btn-label { opacity: 0; }
.btn.is-loading .btn-arrow { opacity: 0; }
.btn.is-loading .btn-spinner { display: block; }
.btn-spinner {
  display: none;
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-create { position: relative; width: 100%; min-height: 54px; margin-top: 3px; }
.btn-create .btn-arrow { position: absolute; right: 20px; transition: transform 0.25s; }
.btn-create:hover .btn-arrow { transform: translateX(3px); }
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 12.5px;
  transition: color 0.2s;
}
.text-btn .icon { width: 16px; height: 16px; }
.text-btn:hover { color: var(--cream); }
.text-btn:disabled, .icon-btn:disabled, .btn:disabled, .voice-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.text-btn.subtle { font-size: 12px; color: var(--muted-2); }
.text-btn.tiny { font-size: 11px; color: var(--muted-2); padding: 4px 2px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.icon-btn:hover { color: var(--cream); background: rgba(242, 237, 228, 0.06); border-color: var(--line); }
.icon-btn.small { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn.small .icon { width: 17px; height: 17px; }
.icon-btn.tiny { width: 28px; height: 28px; }
.icon-btn.tiny .icon { width: 15px; height: 15px; }
.mobile-only { display: none !important; }
.desktop-br { display: block; }
.serif-em { font-family: var(--serif); font-weight: 400; color: var(--accent-light); }

/* ============ landing header ============ */
.landing-view { position: relative; z-index: 2; }
.site-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 40px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; color: var(--accent); filter: drop-shadow(0 6px 14px rgba(255, 107, 74, 0.18)); }
.brand-word { font-size: 19px; font-weight: 600; letter-spacing: 0.06em; }
.brand-latin { color: var(--muted-2); font-size: 8px; margin-left: -3px; margin-top: 3px; letter-spacing: 0.2em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a { color: var(--muted); font-size: 13px; transition: color 0.2s; }
.site-nav > a:hover { color: var(--cream); }
.nav-install {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--cream-dim);
  background: rgba(242, 237, 228, 0.03);
}
.nav-install:hover { border-color: var(--line-strong); background: rgba(242, 237, 228, 0.06); }
.nav-install .icon { width: 14px; height: 14px; }

/* ============ hero ============ */
.landing-main { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.86fr);
  column-gap: 70px;
  row-gap: 38px;
  align-items: center;
  padding: 62px 0 42px;
}
.hero-copy { padding-top: 10px; align-self: end; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream-dim);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  margin-bottom: 26px;
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(112, 230, 199, 0.1); animation: pulse 2.4s ease-out infinite; }
.beta { border: 1px solid rgba(112, 230, 199, 0.28); color: var(--mint); border-radius: 4px; padding: 2px 5px; font-size: 8px; letter-spacing: 0.08em; }
.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(56px, 6.4vw, 90px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: #f8f4ed;
}
.hero h1 em {
  position: relative;
  display: inline-block;
  color: var(--accent);
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.055em;
  padding-right: 0.06em;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 0;
  bottom: 0.02em;
  height: 0.08em;
  background: linear-gradient(90deg, rgba(255, 107, 74, 0), var(--accent) 18%, var(--accent-light) 82%, rgba(255, 107, 74, 0));
  opacity: 0.5;
  transform: rotate(-1.2deg);
  border-radius: 100%;
}
.hero-lead { max-width: 580px; margin: 26px 0 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 23px; margin-top: 28px; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11.5px; }
.hero-points .icon { width: 15px; height: 15px; color: var(--cream-dim); opacity: 0.8; }

/* ============ cinema visual ============ */
.hero-visual { position: relative; align-self: center; grid-column: 2; grid-row: 1 / span 2; padding: 16px 10px; }
.cinema-card {
  position: relative;
  width: 100%;
  max-width: 545px;
  margin-left: auto;
  padding: 9px;
  border: 1px solid rgba(242, 237, 228, 0.12);
  border-radius: 27px;
  background: linear-gradient(150deg, #1c1e24, #0b0c10 55%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 8px 34px rgba(255, 83, 49, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(-1.4deg);
  transition: transform 0.9s var(--ease), box-shadow 0.9s var(--ease);
}
.cinema-card:hover { transform: rotate(0deg) translateY(-5px); box-shadow: 0 46px 110px rgba(0, 0, 0, 0.66), 0 12px 48px rgba(255, 83, 49, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.cinema-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 19px;
  background: #0c0b12;
  isolation: isolate;
}
.scene-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #191827 0%, #342337 32%, #7f3c40 58%, #b75b44 74%, #1b141b 100%); }
.scene-sun {
  position: absolute;
  left: 50%;
  bottom: 25%;
  width: 22%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 44% 40%, #ffe3ba 0%, #ffb177 34%, #ff8759 62%, rgba(255, 108, 70, 0) 72%);
  filter: blur(1px);
  box-shadow: 0 0 100px 55px rgba(255, 127, 76, 0.4);
}
.scene-glow { position: absolute; inset: auto -10% 0; height: 55%; background: linear-gradient(0deg, rgba(8, 7, 11, 0.9), transparent); }
.ridge { position: absolute; left: -5%; right: -5%; bottom: -1px; height: 38%; background: #1a111a; }
.ridge-back { height: 31%; background: #2c1a26; clip-path: polygon(0 68%, 12% 44%, 22% 59%, 35% 31%, 49% 56%, 62% 37%, 76% 53%, 88% 32%, 100% 57%, 100% 100%, 0 100%); opacity: 0.82; }
.ridge-front { height: 27%; background: #0e0b11; clip-path: polygon(0 55%, 13% 70%, 29% 46%, 41% 68%, 56% 43%, 69% 70%, 82% 51%, 100% 65%, 100% 100%, 0 100%); }
.scene-grain { position: absolute; inset: 0; opacity: 0.18; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.film-hud { position: absolute; top: 17px; color: rgba(255, 244, 228, 0.52); font-size: 7.5px; letter-spacing: 0.17em; z-index: 3; }
.film-hud-left { left: 18px; }
.film-hud-right { right: 18px; }
.hero-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 244, 228, 0.28);
  border-radius: 50%;
  color: rgba(255, 247, 235, 0.9);
  background: rgba(10, 9, 13, 0.24);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 10px rgba(255, 244, 228, 0.035);
}
.hero-play .icon { width: 21px; height: 21px; margin-left: 3px; opacity: 0.9; }
.scene-caption { position: absolute; z-index: 3; left: 20px; bottom: 25px; right: 20px; display: flex; justify-content: space-between; align-items: end; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); }
.scene-caption small { display: block; color: rgba(255, 239, 219, 0.55); font-size: 8px; letter-spacing: 0.1em; margin-bottom: 4px; }
.scene-caption b { font-family: var(--serif); font-size: 15px; font-weight: 400; letter-spacing: 0.06em; color: rgba(255, 246, 232, 0.92); }
.scene-caption > span { color: rgba(255, 241, 222, 0.55); font-family: var(--mono); font-size: 8px; letter-spacing: 0.05em; }
.scene-subtitle { position: absolute; z-index: 3; left: 50%; bottom: 50px; transform: translateX(-50%); width: max-content; max-width: 90%; color: rgba(255, 245, 230, 0.7); font-family: var(--serif); font-size: 11px; letter-spacing: 0.14em; text-shadow: 0 2px 14px #000; white-space: nowrap; }
.scene-progress { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 12px; height: 2px; background: rgba(255, 241, 223, 0.18); border-radius: 4px; overflow: hidden; }
.scene-progress span { display: block; width: 36%; height: 100%; background: rgba(255, 239, 221, 0.9); box-shadow: 0 0 8px rgba(255, 239, 221, 0.5); }
.cinema-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 15px 9px 9px; }
.sync-person { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sync-person.right { flex-direction: row-reverse; text-align: right; }
.sync-person > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sync-person b { font-size: 10.5px; font-weight: 500; color: var(--cream-dim); line-height: 1.5; }
.sync-person small { font-size: 8.5px; color: var(--muted-2); line-height: 1.4; }
.mini-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 600;
  color: #20100b;
  background: linear-gradient(145deg, #ffbe98, var(--accent));
  border: 2px solid rgba(10, 11, 15, 0.85);
  flex: none;
}
.mini-avatar.peer { color: #07241e; background: linear-gradient(145deg, #c7ffe9, var(--mint)); }
.sync-bridge { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; }
.bridge-line { height: 1px; flex: 1; background: linear-gradient(90deg, rgba(112, 230, 199, 0.05), rgba(112, 230, 199, 0.35)); }
.bridge-line:last-child { background: linear-gradient(90deg, rgba(112, 230, 199, 0.35), rgba(112, 230, 199, 0.05)); }
.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding: 4px 7px;
  border: 1px solid rgba(112, 230, 199, 0.15);
  border-radius: 999px;
  background: rgba(112, 230, 199, 0.055);
}
.sync-badge i { width: 4px; height: 4px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 7px var(--mint); }
.float-note {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(242, 237, 228, 0.11);
  border-radius: 13px;
  background: rgba(18, 20, 27, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.34);
  animation: float 7s ease-in-out infinite;
}
.float-note-a { display: none; }
.float-note-b { right: -18px; top: 37px; animation-delay: -3.5s; }
.float-note > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.float-note b { font-size: 10px; color: var(--cream-dim); font-weight: 500; line-height: 1.5; }
.float-note small { font-size: 8px; color: var(--muted-2); line-height: 1.4; }
.float-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--accent-light); background: rgba(255, 107, 74, 0.1); }
.float-icon .icon { width: 13px; height: 13px; }
.equalizer { display: flex; align-items: center; gap: 2px; width: 27px; height: 27px; justify-content: center; border-radius: 8px; background: rgba(112, 230, 199, 0.09); }
.equalizer i { display: block; width: 2px; border-radius: 2px; background: var(--mint); animation: equalize 0.9s ease-in-out infinite alternate; }
.equalizer i:nth-child(1) { height: 5px; animation-delay: -0.1s; }
.equalizer i:nth-child(2) { height: 11px; animation-delay: -0.5s; }
.equalizer i:nth-child(3) { height: 8px; animation-delay: -0.3s; }
.equalizer i:nth-child(4) { height: 13px; animation-delay: -0.7s; }

/* ============ entry card ============ */
.entry-card {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  position: relative;
  padding: 28px 30px 24px;
  border: 1px solid rgba(242, 237, 228, 0.11);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(500px 180px at 10% 0%, rgba(255, 107, 74, 0.075), transparent 70%),
    linear-gradient(165deg, rgba(24, 26, 34, 0.92), rgba(13, 15, 20, 0.96));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(20px);
}
.entry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
  mask: linear-gradient(#000, transparent 30%);
}
.invite-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  margin: -8px 0 20px;
  border: 1px solid rgba(112, 230, 199, 0.16);
  border-radius: 13px;
  background: rgba(112, 230, 199, 0.055);
}
.invite-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--mint); background: rgba(112, 230, 199, 0.1); flex: none; }
.invite-icon .icon { width: 15px; height: 15px; }
.invite-banner p { margin: 0; color: var(--cream-dim); font-size: 11.5px; line-height: 1.6; }
.invite-banner p b { color: var(--mint); font-family: var(--mono); letter-spacing: 0.08em; margin-left: 3px; }
.invite-banner p span { color: var(--muted-2); font-size: 10px; }
.entry-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.entry-head .section-kicker { color: var(--accent-light); opacity: 0.8; font-size: 8px; margin: 0 0 8px; }
.entry-head h2 { margin: 0 0 6px; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; }
.entry-head p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.entry-seats { display: flex; align-items: center; padding-top: 7px; flex: none; }
.entry-seats span { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; font-size: 9px; font-weight: 600; border: 2px solid #15171d; }
.entry-seats span:first-child { color: #20100b; background: linear-gradient(145deg, #ffbe98, var(--accent)); z-index: 1; }
.entry-seats span:nth-child(2) { color: #07241e; background: linear-gradient(145deg, #c7ffe9, var(--mint)); margin-left: -10px; }
.entry-seats i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); margin-left: 9px; box-shadow: 0 0 8px rgba(112, 230, 199, 0.6); animation: pulse 2.4s infinite; }
.field-label { display: block; margin: 0 0 7px 2px; color: var(--muted); font-size: 10px; letter-spacing: 0.05em; }
.input-shell {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(8, 9, 12, 0.44);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input-shell:focus-within { border-color: rgba(255, 107, 74, 0.55); background: rgba(8, 9, 12, 0.62); box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.07); }
.input-prefix { color: var(--muted-2); font-family: var(--mono); font-size: 13px; flex: none; display: grid; place-items: center; }
.input-prefix .icon { width: 15px; height: 15px; }
.input-shell input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--cream); font-size: 14px; }
.input-shell input::placeholder { color: #5b5f69; }
.code-shell { flex: 1; }
.code-shell input { font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.btn-create { width: 100%; margin-top: 12px; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 19px 0 13px; color: var(--muted-2); font-size: 9.5px; white-space: nowrap; }
.or-divider::before, .or-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.join-row { display: flex; gap: 9px; }
.join-row .btn { min-width: 82px; }
.entry-note { display: flex; align-items: center; gap: 6px; margin: 17px 0 0; color: var(--muted-2); font-size: 9.5px; }
.entry-note .icon { width: 12px; height: 12px; }
.form-error { margin: 12px 0 0; padding: 9px 11px; border: 1px solid rgba(255, 99, 117, 0.18); border-radius: 9px; background: rgba(255, 99, 117, 0.06); color: #ff9aa6; font-size: 11px; line-height: 1.55; }

/* ============ feature section ============ */
.feature-section { padding: 125px 0 70px; }
.feature-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: 62px;
  row-gap: 0;
  margin-bottom: 48px;
}
.feature-heading .section-kicker { grid-column: 1; grid-row: 1; color: var(--accent-light); opacity: 0.75; margin: 0 0 12px; }
.feature-heading h2 { grid-column: 1; grid-row: 2; margin: 0; font-size: clamp(32px, 3.5vw, 46px); line-height: 1.28; letter-spacing: -0.045em; font-weight: 500; }
.feature-heading > p:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0 0 7px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.feature-grid { display: grid; grid-template-columns: 1.12fr 0.94fr 0.94fr; gap: 15px; }
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(25, 27, 34, 0.55), rgba(12, 14, 18, 0.7));
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: linear-gradient(165deg, rgba(30, 32, 40, 0.6), rgba(13, 15, 20, 0.8)); }
.feature-card::after { content: ""; position: absolute; width: 160px; height: 160px; right: -80px; top: -80px; border-radius: 50%; background: rgba(255, 107, 74, 0.07); filter: blur(35px); }
.feature-main { background: linear-gradient(155deg, rgba(61, 31, 26, 0.56), rgba(17, 16, 21, 0.8) 68%); border-color: rgba(255, 107, 74, 0.14); }
.feature-main::after { background: rgba(255, 107, 74, 0.16); width: 230px; height: 230px; right: -90px; top: -110px; }
.feature-index { position: absolute; top: 28px; right: 27px; color: var(--muted-2); font-size: 8px; }
.feature-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 27px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(242, 237, 228, 0.025); }
.feature-icon .icon { width: 19px; height: 19px; }
.feature-icon.accent { color: var(--accent-light); background: rgba(255, 107, 74, 0.08); border-color: rgba(255, 107, 74, 0.16); }
.feature-icon.mint { color: var(--mint); background: rgba(112, 230, 199, 0.06); border-color: rgba(112, 230, 199, 0.14); }
.feature-card h3 { margin: 0 0 12px; font-size: 23px; line-height: 1.4; font-weight: 500; letter-spacing: -0.03em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.85; max-width: 350px; }
.feature-tag { align-self: start; margin-top: auto; padding-top: 24px; color: var(--muted-2); font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; }
.feature-tag::before { content: "· "; color: var(--mint); }
.feature-meter { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 26px; color: var(--muted-2); font-size: 8.5px; }
.feature-meter i { position: relative; display: block; flex: 1; max-width: 118px; height: 2px; border-radius: 4px; background: rgba(242, 237, 228, 0.1); }
.feature-meter b { display: block; width: 91%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--mint)); }
.feature-meter em { font-style: normal; color: var(--mint); font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; }

/* ============ how ============ */
.how-section { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 70px; align-items: start; padding: 70px 0 90px; border-top: 1px solid var(--line); }
.how-copy .section-kicker { color: var(--mint); opacity: 0.7; margin: 0 0 18px; }
.how-copy h2 { margin: 0; font-size: clamp(32px, 3.5vw, 45px); line-height: 1.32; font-weight: 500; letter-spacing: -0.04em; }
.how-steps { list-style: none; margin: 0; padding: 0; }
.how-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 20px; padding: 23px 0; border-top: 1px solid var(--line); align-items: start; }
.how-steps li:last-child { border-bottom: 1px solid var(--line); }
.how-steps > li > span { color: var(--accent-light); font-family: var(--mono); font-size: 10px; padding-top: 5px; opacity: 0.75; }
.how-steps b { font-size: 16px; font-weight: 500; }
.how-steps p { margin: 4px 0 0; color: var(--muted); font-size: 11.5px; }

/* ============ privacy & footer ============ */
.privacy-strip {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 23px 26px;
  border: 1px solid rgba(112, 230, 199, 0.12);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(112, 230, 199, 0.05), rgba(17, 20, 24, 0.35) 55%, rgba(112, 230, 199, 0.025));
}
.privacy-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(112, 230, 199, 0.09); color: var(--mint); flex: none; }
.privacy-mark .icon { width: 18px; height: 18px; }
.privacy-strip > div:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.privacy-strip b { font-size: 12px; font-weight: 500; color: var(--cream-dim); }
.privacy-strip span { color: var(--muted-2); font-size: 10px; }
.privacy-tag { margin-left: auto; color: rgba(112, 230, 199, 0.5); font-size: 7.5px; flex: none; }
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 40px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted-2);
  font-size: 9.5px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand .brand-mark { width: 20px; height: 20px; }
.footer-brand > span { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.footer-brand small { margin-left: 6px; color: #52555e; font-size: 9px; }
.footer-meta { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.footer-meta a:hover { color: var(--cream-dim); }

/* ============ room shell ============ */
.room-view {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 500px at 20% -15%, rgba(255, 89, 55, 0.07), transparent 60%),
    radial-gradient(800px 600px at 100% 30%, rgba(38, 114, 104, 0.06), transparent 60%),
    #08090c;
}
.room-bar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: calc(68px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(242, 237, 228, 0.07);
  background: rgba(8, 9, 12, 0.74);
  backdrop-filter: blur(22px);
}
.room-brand { display: inline-flex; align-items: center; gap: 9px; justify-self: start; color: var(--cream-dim); font-size: 14px; letter-spacing: 0.07em; padding: 4px; }
.room-brand .brand-mark { width: 27px; height: 27px; }
.room-brand:hover { color: var(--cream); }
.room-center { display: flex; align-items: center; gap: 9px; justify-self: center; }
.code-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted-2);
  background: rgba(242, 237, 228, 0.025);
  transition: border-color 0.2s, background 0.2s;
}
.code-pill:hover { border-color: var(--line-strong); background: rgba(242, 237, 228, 0.05); }
.code-pill span { font-size: 8.5px; letter-spacing: 0.08em; }
.code-pill b { color: var(--cream-dim); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; }
.code-pill .icon { width: 13px; height: 13px; opacity: 0.5; }
.conn-pill { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; color: var(--muted-2); font-size: 9px; white-space: nowrap; }
.conn-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 7px rgba(112, 230, 199, 0.5); }
.conn-pill.is-reconnecting i { background: var(--gold); animation: pulse 1.2s infinite; box-shadow: 0 0 7px rgba(243, 200, 139, 0.5); }
.conn-pill.is-error i { background: var(--danger); box-shadow: 0 0 7px rgba(255, 99, 117, 0.5); }
.room-bar-actions { display: flex; align-items: center; gap: 5px; justify-self: end; }
.voice-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(242, 237, 228, 0.025);
  font-size: 10.5px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.voice-pill:hover { color: var(--cream); border-color: var(--line-strong); }
.voice-pill .icon { width: 15px; height: 15px; }
.voice-pill .mic-off { display: none; }
.voice-pill.is-on { color: var(--mint); border-color: rgba(112, 230, 199, 0.22); background: rgba(112, 230, 199, 0.065); }
.voice-pill.is-on .mic-on { display: block; }
.voice-pill.is-on .mic-off { display: none; }
.voice-pill:not(.is-on) .mic-on { display: none; }
.voice-pill:not(.is-on) .mic-off { display: block; }
.voice-live-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--mint); opacity: 0; }
.voice-pill.is-on .voice-live-dot { opacity: 1; box-shadow: 0 0 7px var(--mint); }

.room-shell {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: 17px;
  align-items: start;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 18px 24px 20px;
}
.screen-column { min-width: 0; }
.room-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 46px; margin-bottom: 10px; }
.people-strip { display: flex; align-items: center; gap: 13px; min-width: 0; }
.person-chip { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; }
.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  flex: none;
  border: 2px solid rgba(8, 9, 12, 0.9);
  z-index: 1;
}
.avatar-self { color: #20100b; background: linear-gradient(145deg, #ffc09c, var(--accent) 72%); box-shadow: 0 0 0 1px rgba(255, 107, 74, 0.15); }
.avatar-peer { color: #07241e; background: linear-gradient(145deg, #c8ffeb, var(--mint) 72%); box-shadow: 0 0 0 1px rgba(112, 230, 199, 0.13); }
.avatar.is-empty { color: var(--muted-2); background: #1a1c23; border: 1px dashed rgba(242, 237, 228, 0.15); box-shadow: none; font-size: 12px; }
.person-meta { display: flex; flex-direction: column; min-width: 0; }
.person-meta b { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 500; color: var(--cream-dim); line-height: 1.45; }
.person-meta small { color: var(--muted-2); font-size: 9.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.person-chip.peer .person-meta small { color: var(--muted-2); }
.people-link { display: flex; align-items: center; gap: 5px; color: #5b5f69; }
.people-link i { width: 13px; height: 1px; background: linear-gradient(90deg, transparent, rgba(112, 230, 199, 0.3)); }
.people-link i:last-child { background: linear-gradient(90deg, rgba(112, 230, 199, 0.3), transparent); }
.people-link span { font-size: 7px; font-family: var(--mono); letter-spacing: 0.07em; color: rgba(112, 230, 199, 0.4); }
.mic-mark { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: rgba(112, 230, 199, 0.1); color: var(--mint); }
.mic-mark .icon { width: 9px; height: 9px; }
.speaking-ring { position: absolute; left: -4px; top: -4px; width: 42px; height: 42px; border: 1.5px solid var(--mint); border-radius: 50%; opacity: 0; pointer-events: none; z-index: 2; }
.person-chip.is-speaking .speaking-ring { animation: speak-ring 1.25s ease-out infinite; }
.stage-tools { display: flex; align-items: center; gap: 7px; flex: none; }
.mode-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  background: rgba(242, 237, 228, 0.025);
  white-space: nowrap;
}
.mode-chip.active { color: var(--mint); border-color: rgba(112, 230, 199, 0.15); background: rgba(112, 230, 199, 0.04); }

/* ============ stage ============ */
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(242, 237, 228, 0.1);
  border-radius: var(--radius-lg);
  background: #07080a;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  isolation: isolate;
}
.stage.mode-open { aspect-ratio: auto; min-height: 568px; }
.stage-panel { position: absolute; inset: 0; }
.stage-panel[hidden] { display: none !important; }
.stage-kicker { color: rgba(255, 155, 125, 0.7); font-size: 8px; letter-spacing: 0.17em; margin: 0 0 14px; }
.mode-picker {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 7.5%;
  background:
    radial-gradient(600px 300px at 50% 105%, rgba(255, 91, 54, 0.12), transparent 65%),
    radial-gradient(500px 300px at 95% 0%, rgba(43, 111, 102, 0.1), transparent 60%),
    #0c0e12;
}
.mode-picker::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(242, 237, 228, 0.027) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 237, 228, 0.027) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, #000 5%, transparent 72%);
}
.mode-picker-copy { position: relative; z-index: 1; text-align: center; margin-bottom: 26px; }
.mode-picker-copy h1 { margin: 0 0 8px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.3; }
.mode-picker-copy > p:last-child { margin: 0; color: var(--muted); font-size: 11.5px; }
.mode-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; max-width: 800px; width: 100%; margin: 0 auto; }
.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 196px;
  padding: 20px 21px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(29, 31, 39, 0.74), rgba(13, 15, 19, 0.86));
  text-align: left;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.mode-card::after { content: ""; position: absolute; right: -45px; top: -45px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 107, 74, 0.06); filter: blur(25px); opacity: 0; transition: opacity 0.3s; }
.mode-card:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.mode-card:disabled:hover { border-color: var(--line); background: linear-gradient(155deg, rgba(29, 31, 39, 0.74), rgba(13, 15, 19, 0.86)); }
.mode-card:hover { transform: translateY(-3px); border-color: rgba(255, 107, 74, 0.32); background: linear-gradient(155deg, rgba(36, 31, 35, 0.8), rgba(15, 16, 20, 0.9)); }
.mode-card:hover::after { opacity: 1; }
.mode-card.screen:hover { border-color: rgba(112, 230, 199, 0.28); }
.mode-card.screen:hover::after { background: rgba(112, 230, 199, 0.06); }
.mode-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 17px; }
.mode-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; color: var(--accent-light); background: rgba(255, 107, 74, 0.09); border: 1px solid rgba(255, 107, 74, 0.12); }
.mode-card.screen .mode-icon { color: var(--mint); background: rgba(112, 230, 199, 0.07); border-color: rgba(112, 230, 199, 0.12); }
.mode-icon .icon { width: 17px; height: 17px; }
.mode-top em { padding: 3px 6px; border-radius: 4px; color: var(--mint); background: rgba(112, 230, 199, 0.07); font-size: 7px; font-style: normal; letter-spacing: 0.05em; white-space: nowrap; }
.mode-card.screen .mode-top em { color: var(--muted-2); background: rgba(242, 237, 228, 0.035); }
.mode-card b { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.mode-desc { color: var(--muted); font-size: 11.5px; line-height: 1.8; max-width: 300px; }
.mode-foot { display: flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 14px; color: var(--muted-2); font-size: 8.5px; }
.mode-foot .icon { width: 12px; height: 12px; transition: transform 0.25s; }
.mode-card:hover .mode-foot .icon { transform: translateX(3px); color: var(--cream-dim); }
.mode-guest-hint { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 19px 0 0; color: var(--muted-2); font-size: 10px; }
.wait-dots { display: inline-flex; gap: 3px; }
.wait-dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); animation: bounce-dot 1.4s ease-in-out infinite; }
.wait-dots i:nth-child(2) { animation-delay: 0.16s; }
.wait-dots i:nth-child(3) { animation-delay: 0.32s; }

/* local stage */
.local-stage { background: #000; }
#localVideo { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.video-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 18%, transparent 74%, rgba(0, 0, 0, 0.5)); opacity: 0; transition: opacity 0.4s; }
.local-stage.has-media .video-vignette { opacity: 1; }
.drop-zone {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(500px 280px at 50% 100%, rgba(255, 98, 57, 0.09), transparent 70%),
    radial-gradient(400px 220px at 0% 0%, rgba(112, 230, 199, 0.045), transparent 70%),
    #0b0d11;
  overflow-y: auto;
}
.drop-zone::before { content: ""; position: absolute; inset: 17px; border: 1px dashed rgba(242, 237, 228, 0.09); border-radius: 15px; pointer-events: none; }
.drop-inner { position: relative; width: 100%; max-width: 505px; text-align: center; }
.drop-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 20px; border: 1px solid rgba(255, 107, 74, 0.18); border-radius: 15px; color: var(--accent-light); background: rgba(255, 107, 74, 0.075); box-shadow: 0 10px 30px rgba(255, 91, 55, 0.08); }
.drop-icon .icon { width: 23px; height: 23px; }
.drop-inner .stage-kicker { margin-bottom: 8px; }
.drop-inner h2 { margin: 0 0 8px; font-size: clamp(21px, 2.2vw, 29px); font-weight: 500; letter-spacing: -0.04em; }
.drop-inner > p:not(.drop-hint):not(.stage-kicker) { max-width: 400px; margin: 0 auto; color: var(--muted); font-size: 10.5px; line-height: 1.85; }
.drop-actions { display: flex; align-items: center; justify-content: center; gap: 17px; margin-top: 22px; flex-wrap: wrap; }
.drop-actions .btn { min-height: 43px; }
.url-form { display: flex; gap: 8px; max-width: 420px; margin: 14px auto 0; }
.url-form input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8, 9, 12, 0.5); font-size: 11px; outline: 0; }
.url-form input:focus { border-color: rgba(255, 107, 74, 0.5); }
.drop-hint { margin: 19px 0 0; color: #555965; font-size: 8.5px; }
.local-info { position: absolute; z-index: 5; left: 14px; top: 13px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.local-title { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px 10px; border: 1px solid rgba(242, 237, 228, 0.1); border-radius: 8px; background: rgba(8, 9, 12, 0.6); backdrop-filter: blur(12px); }
.media-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 7px var(--accent); flex: none; }
.local-title b { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; font-weight: 400; color: var(--cream-dim); }
.local-title span { color: var(--muted-2); font-family: var(--mono); font-size: 7.5px; white-space: nowrap; }
.local-info .text-btn { pointer-events: auto; padding: 6px 9px; border-radius: 7px; background: rgba(8, 9, 12, 0.6); border: 1px solid rgba(242, 237, 228, 0.1); backdrop-filter: blur(12px); font-size: 9px; }
.compat-warning { position: absolute; z-index: 6; left: 50%; top: 55px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); padding: 7px 11px; border-radius: 8px; border: 1px solid rgba(243, 200, 139, 0.16); background: rgba(31, 25, 17, 0.8); color: var(--gold); font-size: 8.5px; backdrop-filter: blur(12px); }
.video-gate { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; background: rgba(4, 5, 7, 0.58); backdrop-filter: blur(4px); }
.video-gate > div { text-align: center; padding: 24px 30px; border: 1px solid var(--line); border-radius: 16px; background: rgba(15, 17, 22, 0.9); box-shadow: var(--shadow-md); }
.video-gate p { margin: 0 0 13px; font-size: 12px; color: var(--cream-dim); }
.reaction-bar { position: absolute; z-index: 7; right: 14px; bottom: 13px; display: flex; align-items: center; gap: 2px; padding: 5px 6px; border: 1px solid rgba(242, 237, 228, 0.1); border-radius: 999px; background: rgba(8, 9, 12, 0.55); backdrop-filter: blur(14px); opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s; }
.local-stage.has-media .reaction-bar, .stage:hover .reaction-bar { opacity: 1; transform: translateY(0); }
.reaction-bar button { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; font-size: 14px; transition: transform 0.16s, background 0.16s; }
.reaction-bar button:hover { transform: scale(1.18) translateY(-2px); background: rgba(242, 237, 228, 0.08); }
.reaction-layer { position: absolute; inset: 0; z-index: 9; pointer-events: none; overflow: hidden; }
.floating-reaction { position: absolute; bottom: 12%; left: var(--x, 80%); font-size: 28px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4)); animation: float-reaction 2.8s cubic-bezier(0.18, 0.7, 0.3, 1) forwards; will-change: transform, opacity; }
.floating-reaction small { display: block; margin-top: 2px; font-size: 8px; color: rgba(255, 255, 255, 0.65); text-align: center; font-family: var(--sans); }
.reaction-toast { position: fixed; z-index: 100; pointer-events: none; font-size: 30px; animation: float-reaction 2.8s ease-out forwards; }

/* screen stage */
.screen-stage { background: #000; }
#remoteVideo { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
#selfPreview { position: absolute; z-index: 3; right: 15px; bottom: 15px; width: 26%; max-width: 280px; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(242, 237, 228, 0.18); border-radius: 9px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); background: #08090c; }
.screen-intro, .screen-waiting {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  background:
    radial-gradient(500px 280px at 50% 90%, rgba(255, 99, 56, 0.07), transparent 70%),
    radial-gradient(420px 260px at 100% 0%, rgba(112, 230, 199, 0.05), transparent 70%),
    #0b0d11;
}
.screen-intro h2, .screen-waiting h2 { margin: 0 0 9px; font-size: clamp(21px, 2.3vw, 30px); font-weight: 500; letter-spacing: -0.04em; }
.screen-intro > p:not(.stage-kicker):not(.secure-note), .screen-waiting > p:not(.stage-kicker) { max-width: 460px; margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.85; }
.screen-orbit { position: relative; width: 78px; height: 78px; display: grid; place-items: center; margin-bottom: 21px; }
.orbit-ring { position: absolute; inset: 0; border: 1px solid rgba(112, 230, 199, 0.15); border-radius: 50%; animation: orbit-pulse 3s ease-out infinite; }
.orbit-ring.two { inset: 12px; animation-delay: 0.8s; border-color: rgba(255, 107, 74, 0.16); }
.orbit-core { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--mint); background: rgba(112, 230, 199, 0.07); border: 1px solid rgba(112, 230, 199, 0.16); }
.orbit-core .icon { width: 19px; height: 19px; }
.screen-intro-actions { display: flex; align-items: center; gap: 15px; margin-top: 23px; flex-wrap: wrap; justify-content: center; }
.screen-intro-actions .btn { min-height: 43px; }
.quality-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 9px; white-space: nowrap; }
.quality-inline select, .select {
  appearance: none;
  height: 30px;
  padding: 0 24px 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(242, 237, 228, 0.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%238b8f9a' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 8px center;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
  outline: 0;
}
.quality-inline select:hover, .select:hover { border-color: var(--line-strong); color: var(--cream-dim); }
.secure-note { margin: 17px 0 0; color: #5a5e68; font-size: 8px; }
.waiting-orbit { position: relative; width: 94px; height: 80px; margin-bottom: 18px; display: flex; align-items: end; justify-content: center; gap: 7px; }
.waiting-orbit i { width: 3px; border-radius: 3px; background: linear-gradient(var(--mint), rgba(112, 230, 199, 0.1)); animation: wave 1.5s ease-in-out infinite; }
.waiting-orbit i:nth-child(1) { height: 16px; animation-delay: -0.2s; }
.waiting-orbit i:nth-child(2) { height: 26px; animation-delay: -0.5s; }
.waiting-orbit i:nth-child(3) { height: 10px; animation-delay: -0.8s; }
.waiting-orbit span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); border: 1px solid var(--line); background: #101218; }
.waiting-orbit span .icon { width: 16px; height: 16px; }
.screen-connecting { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #08090c; color: var(--muted); }
.screen-connecting p { margin: 6px 0 0; font-size: 11px; }
.screen-connecting small { color: var(--muted-2); font-size: 8.5px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(242, 237, 228, 0.14); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
.spinner.large { width: 32px; height: 32px; border-width: 2px; }
.screen-hud { position: absolute; z-index: 6; left: 14px; right: 14px; top: 13px; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.live-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 5px; color: #ffd9d3; background: rgba(217, 56, 39, 0.8); font-family: var(--mono); font-size: 7px; letter-spacing: 0.12em; backdrop-filter: blur(8px); }
.live-badge i { width: 4px; height: 4px; border-radius: 50%; background: #ffe6dc; animation: pulse 1.5s infinite; }
.screen-title { color: rgba(242, 237, 228, 0.8); font-size: 9px; padding: 5px 8px; border-radius: 5px; background: rgba(8, 9, 12, 0.48); backdrop-filter: blur(8px); }
.screen-quality-chip { margin-left: auto; color: rgba(242, 237, 228, 0.48); font-size: 7.5px; font-family: var(--mono); padding: 4px 7px; border-radius: 5px; background: rgba(8, 9, 12, 0.4); }
.self-preview-label { position: absolute; z-index: 4; right: 15px; bottom: calc(26% + 24px); color: rgba(242, 237, 228, 0.55); font-size: 8px; text-shadow: 0 1px 8px #000; }
.self-preview-label span { opacity: 0.6; }
.screen-stage .video-gate { z-index: 10; }
.screen-gate { background: rgba(5, 6, 8, 0.32); }

/* stats */
.stats-panel { position: absolute; z-index: 18; right: 13px; top: 52px; width: 248px; padding: 14px; border: 1px solid rgba(242, 237, 228, 0.13); border-radius: 13px; background: rgba(12, 14, 18, 0.93); backdrop-filter: blur(20px); box-shadow: var(--shadow-md); }
.stats-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.stats-head b { font-size: 10px; font-weight: 500; color: var(--cream-dim); }
.stats-panel dl { margin: 0; display: grid; gap: 0; }
.stats-panel dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid rgba(242, 237, 228, 0.05); }
.stats-panel dt { color: var(--muted-2); font-size: 8.5px; }
.stats-panel dd { margin: 0; color: var(--cream-dim); font-family: var(--mono); font-size: 8.5px; text-align: right; }
.stats-note { margin: 9px 0 0; padding-top: 8px; border-top: 1px solid rgba(242, 237, 228, 0.05); color: #5b5f69; font-size: 7.5px; line-height: 1.5; }

/* ============ transport ============ */
.transport { margin-top: 11px; padding: 13px 17px 12px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(160deg, rgba(24, 26, 33, 0.75), rgba(13, 15, 20, 0.82)); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16); }
.seek-row { display: flex; align-items: center; gap: 11px; }
.timecode { min-width: 40px; color: var(--cream-dim); font-family: var(--mono); font-size: 9px; letter-spacing: 0.02em; }
.timecode.muted { color: var(--muted-2); text-align: right; }
.seek-wrap { position: relative; flex: 1; display: flex; align-items: center; height: 18px; }
input[type="range"] { appearance: none; -webkit-appearance: none; width: 100%; height: 18px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) 0 var(--progress, 0%), rgba(242, 237, 228, 0.12) var(--progress, 0%) 100%); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 4px; background: rgba(242, 237, 228, 0.12); }
input[type="range"]::-moz-range-progress { height: 3px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; margin-top: -4px; border: 2px solid #0f1116; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); transition: transform 0.15s, background 0.15s; }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus-visible::-webkit-slider-thumb { transform: scale(1.25); background: var(--accent-light); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid #0f1116; border-radius: 50%; background: var(--cream); }
.seek-glow { position: absolute; left: 0; top: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255, 107, 74, 0.16); filter: blur(2px); pointer-events: none; opacity: 0.8; }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 7px; }
.control-group { display: flex; align-items: center; gap: 5px; min-width: 0; }
.control-group.right { justify-content: flex-end; }
.play-btn { display: grid; place-items: center; width: 45px; height: 45px; margin: 0 3px; border-radius: 50%; color: #1b0d08; background: linear-gradient(145deg, #ff9777, var(--accent)); box-shadow: 0 8px 20px rgba(255, 91, 55, 0.22); transition: transform 0.2s, box-shadow 0.2s; }
.play-btn:hover { transform: scale(1.05); box-shadow: 0 11px 24px rgba(255, 91, 55, 0.32); }
.play-btn:disabled, .skip-btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }
.play-btn .icon { width: 18px; height: 18px; }
.play-btn .pause-icon { display: none; }
.play-btn.is-playing .play-icon { display: none; }
.play-btn.is-playing .pause-icon { display: block; }
.skip-btn { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); transition: color 0.2s, background 0.2s; }
.skip-btn:hover { color: var(--cream); background: rgba(242, 237, 228, 0.05); }
.skip-btn .icon { width: 19px; height: 19px; }
.skip-btn:not(.forward) .icon { transform: rotate(180deg); }
.skip-btn span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -46%); font-family: var(--mono); font-size: 6.5px; font-weight: 600; color: currentColor; }
.volume-control { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.volume-control input { width: 62px; }
.volume-control .icon { width: 16px; height: 16px; }
.volume-control .vol-off { display: none; }
.volume-control.is-muted .vol-on { display: none; }
.volume-control.is-muted .vol-off { display: block; }
.sync-readout { display: inline-flex; align-items: center; gap: 7px; min-height: 27px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.02em; white-space: nowrap; }
.sync-led { width: 4px; height: 4px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 7px rgba(112, 230, 199, 0.6); flex: none; }
.sync-readout.is-adjusting .sync-led { background: var(--gold); animation: pulse 1s infinite; box-shadow: 0 0 7px rgba(243, 200, 139, 0.6); }
.sync-readout.is-waiting .sync-led { background: var(--muted-2); box-shadow: none; }
.sync-readout.is-buffering .sync-led { background: var(--gold); animation: pulse 1.2s infinite; }
.sync-readout .text-btn { margin-left: 2px; font-size: 8px; color: var(--muted-2); }
.sync-readout .text-btn:hover { color: var(--cream); }
.screen-transport { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 10px; padding-bottom: 10px; }
.screen-transport-main, .screen-transport-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.screen-transport-title { color: var(--cream-dim); font-size: 9.5px; }
.screen-transport .live-badge { font-size: 6.5px; }
.room-hint { display: flex; align-items: center; gap: 6px; margin: 10px 0 0 4px; color: #555966; font-size: 8.5px; }
.room-hint .icon { width: 12px; height: 12px; }

/* ============ chat panel ============ */
.chat-panel { position: sticky; top: 86px; display: flex; flex-direction: column; height: calc(100dvh - 106px); min-height: 500px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(170deg, #171920, #0a0c10); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2); }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 17px 13px; border-bottom: 1px solid rgba(242, 237, 228, 0.05); }
.chat-head h2 { margin: 0 0 2px; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.chat-head p { margin: 0; color: var(--muted-2); font-size: 10px; }
.chat-head-actions { display: flex; align-items: center; gap: 4px; }
.online-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 7px rgba(112, 230, 199, 0.5); }
.online-dot.is-offline { background: var(--muted-2); box-shadow: none; }
.voice-deck { position: relative; margin: 11px 11px 0; padding: 13px 12px 11px; border: 1px solid rgba(112, 230, 199, 0.09); border-radius: 14px; background: linear-gradient(145deg, rgba(112, 230, 199, 0.04), rgba(12, 14, 18, 0.35)); transition: border-color 0.3s, background 0.3s; }
.voice-deck.is-live { border-color: rgba(112, 230, 199, 0.18); background: linear-gradient(145deg, rgba(112, 230, 199, 0.065), rgba(12, 14, 18, 0.35)); }
.voice-main { display: flex; align-items: center; justify-content: center; gap: 15px; }
.voice-person { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 50px; }
.voice-person .avatar { width: 38px; height: 38px; font-size: 10px; }
.voice-person.is-speaking .avatar { box-shadow: 0 0 0 2px rgba(112, 230, 199, 0.4), 0 0 18px rgba(112, 230, 199, 0.2); }
.voice-rings { position: absolute; top: -3px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; pointer-events: none; }
.voice-rings i { position: absolute; inset: 0; border: 1px solid var(--mint); border-radius: 50%; opacity: 0; }
.voice-person.is-speaking .voice-rings i { animation: voice-ripple 1.45s ease-out infinite; }
.voice-person.is-speaking .voice-rings i:nth-child(2) { animation-delay: 0.5s; }
.voice-name { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-2); font-size: 8px; }
.voice-link { display: flex; align-items: center; gap: 4px; width: 48px; margin-top: -15px; }
.voice-link span { height: 1px; flex: 1; background: rgba(112, 230, 199, 0.13); }
.voice-link i { width: 3px; height: 3px; border-radius: 50%; background: rgba(112, 230, 199, 0.45); }
.voice-copy { text-align: center; margin-top: 6px; display: flex; flex-direction: column; gap: 1px; }
.voice-copy b { color: var(--cream-dim); font-size: 11px; font-weight: 500; }
.voice-copy span { color: var(--muted-2); font-size: 9px; }
.voice-controls { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 9px; flex-wrap: wrap; }
.voice-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: rgba(242, 237, 228, 0.025); font-size: 9.5px; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.voice-btn .icon { width: 12px; height: 12px; }
.voice-btn.square { width: 29px; padding: 0; }
.voice-btn:hover { color: var(--cream); border-color: var(--line-strong); }
.voice-btn .mic-off, .voice-btn .hp-off { display: none; }
.voice-btn.is-on { color: var(--mint); border-color: rgba(112, 230, 199, 0.2); background: rgba(112, 230, 199, 0.07); }
.voice-btn.is-on .mic-on, .voice-btn.is-on .hp-on { display: block; }
.voice-btn.is-on .mic-off, .voice-btn.is-on .hp-off { display: none; }
.voice-btn:not(.is-on) .mic-on { display: none; }
.voice-btn:not(.is-on) .mic-off { display: block; }
.voice-btn:not(.is-on) .hp-on { display: none; }
.voice-btn:not(.is-on) .hp-off { display: block; }
.voice-btn.is-deafened { color: var(--accent-light); border-color: rgba(255, 107, 74, 0.2); background: rgba(255, 107, 74, 0.07); }
.voice-volume { display: flex; align-items: center; gap: 2px; width: 68px; margin-left: 2px; }
.voice-volume .icon { width: 12px; height: 12px; color: var(--muted-2); }
.voice-volume input { width: 48px; height: 14px; }
.audio-unlock { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 9px; padding: 7px 8px; border: 1px solid rgba(243, 200, 139, 0.18); border-radius: 7px; color: var(--gold); background: rgba(243, 200, 139, 0.06); font-size: 8px; }
.audio-unlock .icon { width: 12px; height: 12px; }
.voice-error { margin: 8px 0 0; color: #ff9aa6; font-size: 8px; line-height: 1.5; text-align: center; }
.messages { flex: 1; min-height: 0; overflow-y: auto; padding: 15px 15px 8px; scrollbar-width: thin; scrollbar-color: rgba(242, 237, 228, 0.13) transparent; }
.messages::-webkit-scrollbar { width: 4px; }
.messages::-webkit-scrollbar-thumb { background: rgba(242, 237, 228, 0.13); border-radius: 3px; }
.chat-empty { height: 100%; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 15px; }
.chat-empty > span { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted-2); background: rgba(242, 237, 228, 0.02); }
.chat-empty > span .icon { width: 16px; height: 16px; }
.chat-empty b { color: var(--muted); font-size: 10px; font-weight: 400; }
.chat-empty p { margin: 4px 0 0; color: #555966; font-size: 8.5px; line-height: 1.65; }
.msg { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 12px; }
.msg.self { align-items: flex-end; }
.msg-meta { display: flex; align-items: center; gap: 5px; margin: 0 4px 3px; color: #5f6370; font-size: 7.5px; }
.msg.self .msg-meta { flex-direction: row-reverse; }
.msg-meta b { color: var(--muted-2); font-weight: 400; }
.bubble { max-width: 88%; padding: 9px 11px; border: 1px solid rgba(242, 237, 228, 0.06); border-radius: 4px 11px 11px 11px; color: var(--cream-dim); background: rgba(242, 237, 228, 0.045); font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.self .bubble { border-color: rgba(255, 107, 74, 0.12); border-radius: 11px 4px 11px 11px; color: #ffe6dc; background: linear-gradient(145deg, rgba(255, 107, 74, 0.22), rgba(255, 107, 74, 0.1)); }
.msg.system { align-items: center; margin: 11px 0; }
.msg.system span { color: #5a5e68; font-size: 8px; text-align: center; }
.chat-compose { padding: 8px 11px 11px; border-top: 1px solid rgba(242, 237, 228, 0.05); }
.quick-emojis { display: flex; align-items: center; gap: 2px; padding: 2px 2px 6px; }
.quick-emojis button { display: grid; place-items: center; width: 25px; height: 23px; border-radius: 6px; font-size: 12px; opacity: 0.65; transition: opacity 0.15s, transform 0.15s, background 0.15s; }
.quick-emojis button:hover { opacity: 1; transform: translateY(-1px); background: rgba(242, 237, 228, 0.05); }
.chat-form { display: flex; align-items: center; gap: 7px; padding: 4px 4px 4px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8, 9, 12, 0.38); transition: border-color 0.2s, background 0.2s; }
.chat-form:focus-within { border-color: rgba(255, 107, 74, 0.35); background: rgba(8, 9, 12, 0.6); }
.chat-form input { flex: 1; min-width: 0; height: 30px; border: 0; outline: 0; background: transparent; color: var(--cream); font-size: 12px; }
.chat-form input::placeholder { color: #555966; }
.send-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #1b0d08; background: var(--accent); transition: filter 0.2s, transform 0.2s; }
.send-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.send-btn .icon { width: 14px; height: 14px; }
.chat-fab { display: none; position: fixed; z-index: 41; right: max(17px, env(safe-area-inset-right)); bottom: max(17px, env(safe-area-inset-bottom)); width: 50px; height: 50px; border-radius: 50%; color: #1b0d08; background: linear-gradient(145deg, #ff9777, var(--accent)); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); place-items: center; }
.chat-fab .icon { width: 20px; height: 20px; }
.chat-badge { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #08090c; border-radius: 9px; color: #1b0d08; background: var(--mint); font-family: var(--mono); font-size: 7px; font-weight: 700; display: grid; place-items: center; }
.menu-popover { position: fixed; z-index: 70; top: 75px; right: max(20px, env(safe-area-inset-right)); width: 268px; padding: 8px; border: 1px solid rgba(242, 237, 228, 0.13); border-radius: 14px; background: rgba(16, 18, 24, 0.96); backdrop-filter: blur(24px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); animation: menu-in 0.18s var(--ease); transform-origin: top right; }
.menu-room { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; gap: 2px; }
.menu-room small { color: var(--muted-2); font-size: 7.5px; letter-spacing: 0.08em; }
.menu-room b { color: var(--mint); font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: 0.15em; }
.menu-room span { color: #5d616c; font-size: 8px; }
.menu-popover > button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 36px; padding: 0 10px; border-radius: 7px; color: var(--muted); font-size: 10px; text-align: left; }
.menu-popover > button .icon { width: 14px; height: 14px; }
.menu-popover > button:hover { color: var(--cream); background: rgba(242, 237, 228, 0.055); }
.menu-popover > button.danger { color: #ff9aa6; }
.menu-popover > button.danger:hover { background: rgba(255, 99, 117, 0.07); color: #ffb7bf; }
.menu-sep { height: 1px; margin: 5px 6px; background: var(--line); }

/* ============ modal & toast ============ */
.modal-layer { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 6, 0.72); backdrop-filter: blur(8px); animation: fade-in 0.25s ease; }
.modal-card { position: relative; z-index: 1; width: min(430px, 100%); padding: 28px; border: 1px solid rgba(242, 237, 228, 0.13); border-radius: 20px; background: linear-gradient(160deg, #1a1c23, #0f1116); box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6); animation: modal-in 0.28s var(--ease); }
.modal-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 8px; }
.modal-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 15px; border: 1px solid rgba(255, 107, 74, 0.18); border-radius: 11px; color: var(--accent-light); background: rgba(255, 107, 74, 0.08); }
.modal-icon .icon { width: 17px; height: 17px; }
.modal-card h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.modal-body { color: var(--muted); font-size: 11px; line-height: 1.8; }
.modal-body p { margin: 0 0 8px; }
.modal-body b { color: var(--cream-dim); font-weight: 500; }
.modal-body code { color: var(--mint); font-family: var(--mono); font-size: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.modal-actions .btn { min-height: 38px; font-size: 11px; padding: 0 16px; border-radius: 9px; }
.toast-stack { position: fixed; z-index: 150; left: 50%; bottom: max(25px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 7px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid rgba(242, 237, 228, 0.12); border-radius: 9px; background: rgba(19, 21, 27, 0.94); backdrop-filter: blur(18px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35); color: var(--cream-dim); font-size: 10.5px; line-height: 1.5; animation: toast-in 0.25s var(--ease); }
.toast .icon { width: 14px; height: 14px; color: var(--mint); }
.toast.is-error .icon { color: var(--danger); }
.toast.is-leaving { animation: toast-out 0.2s ease forwards; }
.noscript { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); color: var(--cream); padding: 30px; text-align: center; }

/* ============ fullscreen ============ */
.screen-column:fullscreen { display: flex; flex-direction: column; width: 100vw; height: 100vh; padding: 0; background: #000; }
.screen-column:fullscreen .room-topline { display: none; }
.screen-column:fullscreen .stage { flex: 1; aspect-ratio: auto; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
.screen-column:fullscreen .transport { margin: 0; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; padding: 10px 18px; background: rgba(8, 9, 12, 0.96); }
.screen-column:fullscreen .room-hint { display: none; }
.screen-column:fullscreen .local-info { top: 16px; left: 16px; right: 16px; }

/* ============ animations ============ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes equalize { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }
@keyframes speak-ring { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes voice-ripple { 0% { transform: scale(0.85); opacity: 0.7; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes bounce-dot { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-3px); opacity: 1; } }
@keyframes orbit-pulse { 0% { transform: scale(0.8); opacity: 0; } 30% { opacity: 0.7; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes wave { 0%, 100% { transform: scaleY(0.5); opacity: 0.4; } 50% { transform: scaleY(1.15); opacity: 0.9; } }
@keyframes float-reaction { 0% { transform: translate(0, 0) scale(0.7); opacity: 0; } 14% { opacity: 1; transform: translate(0, -10px) scale(1.05); } 100% { transform: translate(var(--drift, 20px), -240px) scale(0.9); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-5px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* ============ responsive ============ */
@media (max-width: 1180px) {
  .site-header, .landing-main, .site-footer { padding-left: 30px; padding-right: 30px; }
  .hero { column-gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr); }
  .float-note-a { left: -8px; }
  .float-note-b { right: -6px; }
  .room-shell { grid-template-columns: minmax(0, 1fr) 320px; padding-left: 18px; padding-right: 18px; }
  .feature-heading { grid-template-columns: 1fr 0.8fr; }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; row-gap: 34px; padding-top: 42px; }
  .hero-copy { grid-column: 1; }
  .hero h1 { font-size: clamp(54px, 9vw, 84px); }
  .hero-visual { grid-column: 1; grid-row: auto; width: 100%; max-width: 620px; margin: 0 auto; padding: 10px 12px; order: 3; }
  .entry-card { grid-column: 1; grid-row: auto; order: 2; max-width: 620px; margin: 0 auto; width: 100%; }
  .float-note-a { left: -4px; }
  .float-note-b { right: -4px; }
  .feature-section { padding-top: 90px; }
  .feature-heading { grid-template-columns: 1fr; grid-template-rows: auto; gap: 14px; }
  .feature-heading .section-kicker,
  .feature-heading h2,
  .feature-heading > p:last-child { grid-column: 1; grid-row: auto; }
  .feature-heading > p:last-child { max-width: 520px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-main { grid-column: 1 / -1; min-height: 250px; }
  .feature-card { min-height: 280px; }
  .how-section { grid-template-columns: 1fr; gap: 28px; }
  .how-copy h2 br { display: none; }
  .how-copy h2 { font-size: 32px; }
  .room-shell { grid-template-columns: 1fr; padding-bottom: 90px; }
  .chat-panel {
    position: fixed;
    z-index: 60;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(78dvh, 720px);
    min-height: 0;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    transform: translateY(105%);
    transition: transform 0.36s var(--ease);
    box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.55);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .chat-panel::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 34px; height: 3px; border-radius: 3px; background: rgba(242, 237, 228, 0.18); z-index: 2; }
  .chat-panel.is-open { transform: translateY(0); }
  .chat-fab { display: grid; }
  .mobile-only { display: inline-grid !important; }
  .chat-head { padding-top: 20px; }
  .room-bar { grid-template-columns: 1fr auto; }
  .room-brand span { display: none; }
  .room-center { justify-self: end; margin-right: 2px; }
  .room-bar-actions { position: absolute; right: 18px; top: 17px; }
  .room-center { justify-self: center; }
  .conn-pill span { display: none; }
  .conn-pill { padding: 0 2px; }
  .code-pill span { display: none; }
  .stage { border-radius: 17px; }
  .stage.mode-open { min-height: 500px; }
  .room-topline { min-height: 42px; }
  .person-meta b { max-width: 100px; }
  .person-meta small { max-width: 120px; }
}
@media (max-width: 720px) {
  .site-header { padding: calc(20px + env(safe-area-inset-top)) 18px 8px; }
  .site-nav { gap: 15px; }
  .site-nav > a { display: none; }
  .brand-word { font-size: 17px; }
  .brand-mark { width: 30px; height: 30px; }
  .landing-main { padding: 0 18px; }
  .hero { padding-top: 33px; row-gap: 26px; }
  .eyebrow { font-size: 8px; letter-spacing: 0.08em; margin-bottom: 19px; }
  .hero h1 { font-size: clamp(45px, 13.5vw, 67px); line-height: 1.1; letter-spacing: -0.06em; }
  .hero h1 em { padding-right: 0; }
  .hero-lead { margin-top: 19px; font-size: 12px; line-height: 1.85; }
  .desktop-br { display: none; }
  .hero-points { gap: 9px 13px; margin-top: 18px; }
  .hero-points span { font-size: 9.5px; }
  .hero-points .icon { width: 13px; height: 13px; }
  .cinema-card { border-radius: 20px; padding: 6px; }
  .cinema-screen { border-radius: 15px; }
  .cinema-foot { padding: 11px 5px 5px; }
  .sync-person b { font-size: 9px; }
  .sync-person small { font-size: 7px; }
  .sync-badge { font-size: 6px; padding: 3px 5px; }
  .bridge-line { display: none; }
  .sync-bridge { flex: 1; justify-content: center; }
  .float-note { padding: 8px 10px; border-radius: 10px; }
  .float-note-a { left: -5px; bottom: 45px; }
  .float-note-b { right: -3px; top: 24px; }
  .float-note b { font-size: 8.5px; }
  .float-note small { font-size: 7px; }
  .float-note .float-icon, .float-note .equalizer { width: 23px; height: 23px; }
  .scene-subtitle { font-size: 9px; bottom: 38px; }
  .scene-caption { left: 13px; right: 13px; bottom: 18px; }
  .scene-caption b { font-size: 12px; }
  .scene-caption small { font-size: 6.5px; }
  .scene-progress { left: 13px; right: 13px; bottom: 8px; }
  .film-hud { top: 12px; font-size: 6px; }
  .film-hud-left { left: 13px; }
  .film-hud-right { right: 13px; }
  .hero-play { width: 46px; height: 46px; }
  .entry-card { padding: 21px 18px 19px; border-radius: 21px; }
  .entry-head { margin-bottom: 18px; gap: 10px; }
  .entry-head .section-kicker { font-size: 7px; }
  .entry-head h2 { font-size: 20px; }
  .entry-head p:last-child { font-size: 10px; }
  .entry-seats span { width: 29px; height: 29px; font-size: 8px; }
  .field-label { font-size: 9px; }
  .input-shell { height: 47px; }
  .btn-create { min-height: 50px; font-size: 13px; }
  .join-row .btn { min-width: 70px; }
  .entry-note { font-size: 8px; line-height: 1.6; align-items: flex-start; }
  .entry-note .icon { margin-top: 2px; }
  .or-divider { margin: 15px 0 11px; font-size: 8.5px; }
  .feature-section { padding: 75px 0 45px; }
  .feature-heading { margin-bottom: 28px; }
  .feature-heading h2 { font-size: 30px; letter-spacing: -0.05em; }
  .feature-heading > p:last-child { font-size: 11px; line-height: 1.85; }
  .feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature-main { grid-column: auto; min-height: 270px; }
  .feature-card { min-height: 245px; padding: 23px; }
  .feature-icon { margin-bottom: 21px; }
  .feature-card h3 { font-size: 21px; }
  .feature-card p { font-size: 11px; }
  .feature-tag { padding-top: 19px; }
  .how-section { padding: 45px 0 60px; gap: 15px; }
  .how-copy h2 { font-size: 30px; }
  .how-steps li { padding: 17px 0; grid-template-columns: 32px 1fr; gap: 12px; }
  .how-steps b { font-size: 14px; }
  .how-steps p { font-size: 10.5px; }
  .privacy-strip { padding: 17px; gap: 11px; align-items: flex-start; border-radius: 14px; }
  .privacy-mark { width: 31px; height: 31px; border-radius: 9px; }
  .privacy-strip b { font-size: 10.5px; }
  .privacy-strip span { font-size: 8.5px; line-height: 1.6; }
  .privacy-tag { display: none; }
  .site-footer { padding: 25px 18px calc(25px + env(safe-area-inset-bottom)); flex-direction: column; align-items: flex-start; gap: 15px; }
  .footer-meta { font-size: 7.5px; gap: 7px; }
  .footer-brand small { display: none; }

  .room-bar { height: calc(57px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 13px 0; grid-template-columns: auto 1fr auto; gap: 8px; }
  .room-brand { padding: 3px; }
  .room-brand .brand-mark { width: 25px; height: 25px; }
  .room-center { justify-self: center; gap: 0; }
  .code-pill { height: 31px; padding: 0 8px; gap: 5px; border-color: transparent; background: transparent; }
  .code-pill b { font-size: 10px; }
  .code-pill .icon { display: none; }
  .conn-pill { display: none; }
  .room-bar-actions { position: static; }
  .voice-pill { height: 31px; padding: 0 9px; }
  .voice-pill span { display: none; }
  .room-bar .icon-btn { width: 34px; height: 34px; }
  .room-shell { padding: 9px 9px 92px; gap: 10px; }
  .room-topline { margin-bottom: 8px; min-height: 38px; gap: 6px; }
  .people-strip { gap: 7px; }
  .avatar { width: 29px; height: 29px; font-size: 9px; }
  .person-chip { gap: 6px; }
  .person-meta b { font-size: 10px; max-width: 72px; }
  .person-meta small { font-size: 7.5px; max-width: 95px; }
  .people-link { gap: 3px; }
  .people-link i { width: 7px; }
  .people-link span { display: none; }
  .mic-mark { width: 15px; height: 15px; }
  .speaking-ring { width: 37px; height: 37px; left: -4px; top: -4px; }
  .stage-tools { gap: 3px; }
  .mode-chip { font-size: 7.5px; height: 24px; padding: 0 7px; }
  .stage-tools .text-btn { font-size: 7.5px; }
  .stage-tools .icon-btn.small { width: 27px; height: 27px; }
  .stage { aspect-ratio: 4 / 3; border-radius: 15px; min-height: 0; }
  .stage.mode-open { aspect-ratio: auto; min-height: 560px; }
  .mode-picker { padding: 25px 17px; justify-content: center; overflow-y: auto; }
  .mode-picker-copy { margin: 8px 0 21px; }
  .mode-picker-copy h1 { font-size: 23px; }
  .mode-picker-copy > p:last-child { font-size: 10px; }
  .mode-grid { grid-template-columns: 1fr; gap: 9px; }
  .mode-card { min-height: 132px; padding: 14px 15px 13px; border-radius: 13px; }
  .mode-top { margin-bottom: 9px; }
  .mode-icon { width: 30px; height: 30px; border-radius: 8px; }
  .mode-icon .icon { width: 15px; height: 15px; }
  .mode-card b { font-size: 14px; margin-bottom: 3px; }
  .mode-desc { font-size: 9px; line-height: 1.65; }
  .mode-foot { padding-top: 8px; font-size: 7.5px; }
  .mode-guest-hint { margin-top: 13px; font-size: 9px; }
  .drop-zone { padding: 18px; }
  .drop-zone::before { inset: 9px; border-radius: 11px; }
  .drop-icon { width: 43px; height: 43px; margin-bottom: 14px; border-radius: 12px; }
  .drop-icon .icon { width: 19px; height: 19px; }
  .drop-inner .stage-kicker { font-size: 6.5px; margin-bottom: 6px; }
  .drop-inner h2 { font-size: 20px; margin-bottom: 5px; }
  .drop-inner > p:not(.drop-hint):not(.stage-kicker) { font-size: 9px; line-height: 1.7; }
  .drop-actions { gap: 10px; margin-top: 14px; }
  .drop-actions .btn { min-height: 39px; font-size: 11px; padding: 0 13px; }
  .drop-hint { font-size: 7px; margin-top: 12px; }
  .url-form { margin-top: 10px; }
  .url-form input { height: 37px; font-size: 10px; }
  .local-info { left: 8px; right: 8px; top: 8px; }
  .local-title { padding: 5px 7px; gap: 5px; }
  .local-title b { max-width: 170px; font-size: 8px; }
  .local-title span { display: none; }
  .local-info .text-btn { font-size: 7.5px; padding: 5px 7px; }
  .reaction-bar { right: 8px; bottom: 8px; padding: 4px; }
  .reaction-bar button { width: 25px; height: 25px; font-size: 12px; }
  .floating-reaction { font-size: 23px; }
  .screen-intro, .screen-waiting { padding: 20px 18px; }
  .screen-orbit { width: 60px; height: 60px; margin-bottom: 14px; }
  .orbit-core { width: 36px; height: 36px; }
  .screen-intro h2, .screen-waiting h2 { font-size: 20px; }
  .screen-intro > p:not(.stage-kicker):not(.secure-note), .screen-waiting > p:not(.stage-kicker) { font-size: 9px; }
  .screen-intro-actions { margin-top: 15px; gap: 9px; }
  .screen-intro-actions .btn { min-height: 39px; font-size: 11px; padding: 0 14px; }
  .quality-inline { font-size: 8px; }
  .quality-inline select { height: 27px; font-size: 8px; }
  .secure-note { font-size: 7px; margin-top: 11px; }
  #selfPreview { width: 31%; right: 8px; bottom: 8px; border-radius: 6px; }
  .self-preview-label { display: none; }
  .screen-hud { left: 8px; right: 8px; top: 8px; }
  .screen-title { font-size: 8px; }
  .waiting-orbit { transform: scale(0.85); margin-bottom: 10px; }
  .stats-panel { right: 8px; top: 42px; width: 218px; padding: 11px; }
  .transport { border-radius: 13px; padding: 9px 10px 7px; margin-top: 8px; }
  .timecode { min-width: 31px; font-size: 7.5px; }
  .seek-row { gap: 7px; }
  .seek-wrap { height: 15px; }
  .control-row { gap: 5px; margin-top: 3px; flex-wrap: wrap; }
  .control-group { gap: 2px; }
  .play-btn { width: 39px; height: 39px; }
  .skip-btn { width: 29px; height: 29px; }
  .skip-btn .icon { width: 17px; height: 17px; }
  .volume-control { margin-left: 3px; }
  .volume-control input { width: 40px; }
  .volume-control .icon-btn { display: none; }
  .sync-readout { order: 3; margin-left: auto; font-size: 6.5px; padding: 0 6px; min-height: 22px; }
  .sync-readout .text-btn { display: none; }
  .control-group.right .text-btn { display: none; }
  .control-group.right { margin-left: auto; }
  .control-group.right .icon-btn { width: 29px; height: 29px; }
  .screen-transport { padding: 9px 10px; gap: 7px; flex-wrap: wrap; }
  .screen-transport-main, .screen-transport-actions { gap: 8px; }
  .screen-transport-title { display: none; }
  .screen-transport .text-btn { font-size: 8px; }
  .screen-transport .btn.small { min-height: 29px; font-size: 8px; padding: 0 9px; }
  .screen-transport .live-badge { padding: 4px 6px; }
  .room-hint { font-size: 7.5px; margin-top: 7px; line-height: 1.6; }
  .chat-panel { height: min(82dvh, 690px); border-radius: 18px 18px 0 0; background: #0d0f14; }
  .chat-head { padding: 17px 15px 11px; }
  .chat-head h2 { font-size: 12px; }
  .chat-head p { font-size: 8px; }
  .voice-deck { margin: 8px 8px 0; padding: 10px 9px 9px; }
  .voice-person .avatar { width: 34px; height: 34px; }
  .voice-person { width: 43px; }
  .voice-rings { width: 40px; height: 40px; }
  .voice-copy b { font-size: 9px; }
  .voice-copy span { font-size: 7.5px; }
  .voice-controls { gap: 4px; }
  .voice-btn { min-height: 25px; font-size: 7.5px; }
  .messages { padding: 11px 11px 5px; }
  .bubble { font-size: 10.5px; max-width: 90%; }
  .chat-compose { padding: 6px 8px 8px; }
  .quick-emojis { padding-bottom: 4px; }
  .quick-emojis button { width: 23px; height: 21px; font-size: 11px; }
  .chat-form { padding-left: 9px; }
  .chat-form input { font-size: 10px; }
  .chat-fab { width: 46px; height: 46px; }
  .menu-popover { top: 64px; right: 10px; width: 250px; }
  .modal-card { padding: 24px 20px 20px; border-radius: 17px; }
  .toast { font-size: 9.5px; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: 43px; }
  .hero-points { gap: 7px 10px; }
  .float-note { display: none; }
  .stage.mode-open { min-height: 535px; }
  .person-meta b { max-width: 64px; }
  .person-meta small { max-width: 80px; }
  .voice-volume { display: none; }
  .sync-readout { font-size: 6px; }
}
@media (max-height: 850px) and (min-width: 1001px) {
  .stage { aspect-ratio: 16 / 8.5; }
  .stage.mode-open { min-height: 470px; }
  .chat-panel { height: calc(100dvh - 92px); }
  .room-hint { display: none; }
  .transport { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
