:root {
  --navy: #0b2a4f;
  --navy-2: #12365f;
  --deep: #061a33;
  --deep-2: #0d2443;
  --gold: #c9a43a;
  --gold-2: #e0c46a;
  --cream: #faf8f2;
  --paper: #ffffff;
  --ink: #12233a;
  --muted: #5d6b7e;
  --line: #e3e0d6;
  --danger: #d43c3c;
  --ok: #2f9e6b;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 15px/1.5 var(--sans); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.view { min-height: 100%; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font-weight: 600; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: #f3f1ea; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { background: var(--navy-2); }
.btn.text { border-color: transparent; background: transparent; color: var(--navy); padding: 0 12px; }
.btn.text:hover { background: rgba(11, 42, 79, .07); }
.btn.text:disabled { color: #a6aebb; cursor: default; background: transparent; }
.btn.small { height: 34px; font-size: 13px; }
.btn.wide { width: 100%; justify-content: center; }
.round { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; display: inline-grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; transition: background .15s; }
.round:hover { background: rgba(255,255,255,.2); }
.round.off { background: var(--danger); }
.round.on { background: var(--gold); color: var(--deep); }
.round.danger { background: var(--danger); width: 64px; border-radius: 24px; }
.round.danger:hover { background: #e24c4c; }
.round.ghost { background: transparent; }
.round.ghost:hover { background: rgba(255,255,255,.1); }
.round.ghost.active { color: var(--gold-2); }
input[type=text], input:not([type]), input[type=password] { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); width: 100%; outline: none; }
input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,42,79,.12); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 18px 0 6px; }
.hint { min-height: 1.5em; color: var(--danger); font-size: 14px; margin: 10px 0 0; }

/* top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-size: 20px; font-family: var(--serif); }
.brand img { border-radius: 8px; }
.brand b { font-weight: 700; letter-spacing: .02em; }
.clock { color: var(--muted); font-size: 15px; }

/* home / landing */
.home { background: var(--cream); min-height: 100vh; }
.btn.gold { background: linear-gradient(180deg, #d8b54c, #c29a2e); color: #1c1606; border-color: #b8922a; box-shadow: 0 6px 18px -8px rgba(201,164,58,.8), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.gold:hover { background: linear-gradient(180deg, #e2c15a, #c9a43a); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.lg { height: 54px; padding: 0 28px; font-size: 17px; border-radius: 12px; }

.nav { position: sticky; top: 0; z-index: 30; background: rgba(6,26,51,.82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 12px 28px; }
.nav .brand { color: #fff; }
.nav .brand img { border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-family: var(--serif); font-size: 19px; letter-spacing: .01em; }
.brand-txt small { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); font-family: var(--sans); margin-top: 3px; }
.nav-links { display: flex; gap: 4px; margin-left: 18px; }
.nav-links button, .foot-links button { border: 0; background: transparent; color: rgba(255,255,255,.75); font-weight: 500; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.nav-links button:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav .clock { color: rgba(255,255,255,.6); font-size: 14px; }

.hero { position: relative; overflow: hidden; color: #fff; margin-top: -65px; padding-top: 65px;
  background: radial-gradient(900px 500px at 78% 30%, rgba(201,164,58,.22), transparent 60%),
              radial-gradient(800px 600px at 10% 110%, rgba(40,90,160,.35), transparent 60%),
              linear-gradient(160deg, #0a2546 0%, #061a33 60%, #04142a 100%); }
.hero-globe { position: absolute; right: -140px; top: -60px; width: 760px; height: 760px; color: rgba(201,164,58,.10); pointer-events: none; }
.hero-in { position: relative; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; padding: 72px 28px 96px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 99px; border: 1px solid rgba(224,196,106,.35); background: rgba(201,164,58,.10); color: var(--gold-2); font-size: 13px; font-weight: 600; letter-spacing: .02em; margin: 0 0 22px; }
.chip .star { color: var(--gold); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.015em; color: #fff; margin: 0 0 20px; }
.hero h1 em { font-style: italic; color: var(--gold-2); font-weight: 500; }
.hero .lede { font-size: 18px; color: rgba(226,233,243,.78); max-width: 33em; margin: 0 0 28px; }
.start-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 16px; max-width: 560px; backdrop-filter: blur(6px); }
.start-card .access { margin-bottom: 12px; }
.start-card .access label { color: rgba(255,255,255,.7); margin: 0 0 6px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.home-actions .btn.gold { height: 48px; }
.join-field { display: flex; align-items: center; gap: 6px; height: 48px; border: 1px solid transparent; background: var(--paper); color: var(--ink); border-radius: 10px; padding: 0 4px 0 12px; flex: 1; min-width: 220px; }
.join-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,164,58,.3); }
.join-field .i { color: var(--muted); }
.join-field input { border: 0; height: 44px; padding: 0 4px; box-shadow: none !important; background: transparent; }
.join-field .btn { height: 38px; }
.start-card .hint { margin: 8px 4px 0; min-height: 0; color: #ffb4b4; }
.start-card .hint:empty { display: none; }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: rgba(226,233,243,.7); font-size: 14px; }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust .i { width: 17px; height: 17px; color: var(--gold-2); stroke-width: 2.4; }

/* product mock */
.hero-art { position: relative; padding: 20px 10px 30px; }
.mock { background: #0d2342; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0,0,0,.7), 0 0 0 8px rgba(255,255,255,.03); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #0a1c36; border-bottom: 1px solid rgba(255,255,255,.07); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3d5c; }
.mock-bar span { margin-left: 10px; font-size: 11.5px; color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); padding: 3px 10px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { display: grid; grid-template-columns: 1fr 28%; gap: 8px; padding: 10px; }
.mock-main { position: relative; border-radius: 10px; background: #fff; aspect-ratio: 16/10.5; overflow: hidden; }
.slide { position: absolute; inset: 0; padding: 7% 8%; color: var(--navy); display: flex; flex-direction: column; background: linear-gradient(135deg, #fff 60%, #f6efd9); }
.slide small { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.slide b { font-family: var(--serif); font-size: clamp(16px, 2.2vw, 26px); margin-top: 4px; }
.slide .bars { margin-top: auto; display: flex; align-items: flex-end; gap: 8%; height: 46%; padding: 0 4% 0; border-bottom: 2px solid #d8deea; }
.slide .bars i { flex: 1; background: linear-gradient(180deg, #1d4a83, var(--navy)); border-radius: 4px 4px 0 0; }
.slide .bars i:nth-child(4) { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.mock-tag { position: absolute; left: 8px; bottom: 8px; font-size: 10.5px; background: rgba(6,26,51,.8); color: #fff; padding: 3px 8px; border-radius: 6px; }
.mock-side { display: grid; grid-template-rows: repeat(4, 1fr); gap: 8px; }
.mt { position: relative; border-radius: 9px; display: grid; place-items: center; overflow: hidden; }
.mt b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: rgba(255,255,255,.18); }
.mt span { position: absolute; left: 5px; bottom: 4px; font-size: 9px; color: #fff; background: rgba(0,0,0,.35); padding: 1px 5px; border-radius: 4px; }
.t1 { background: linear-gradient(135deg, #2c5a8f, #173a63); }
.t2 { background: linear-gradient(135deg, #8a6a1e, #5b4513); }
.t3 { background: linear-gradient(135deg, #3d6b5c, #1f4438); }
.t4 { background: linear-gradient(135deg, #5b4a7d, #33284d); }
.mt.talk { box-shadow: inset 0 0 0 2px var(--gold-2); }
.mock-ctl { display: flex; justify-content: center; gap: 8px; padding: 4px 0 12px; }
.mock-ctl i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.12); }
.mock-ctl i.g { background: var(--gold); }
.mock-ctl i.r { width: 38px; border-radius: 13px; background: var(--danger); }
.float { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 14px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.5); font-size: 13px; line-height: 1.25; animation: bob 6s ease-in-out infinite; }
.float b { display: block; font-size: 13px; }
.float small { color: var(--muted); font-size: 12px; }
.float .fh { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-size: 16px; }
.float .av { width: 32px; height: 32px; border-radius: 50%; background: #3d6b5c; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.f1 { left: -18px; top: 46%; }
.f2 { right: -8px; bottom: 0; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.stats { position: relative; z-index: 2; max-width: 1080px; margin: -44px auto 0; background: var(--paper); border-radius: 18px; box-shadow: 0 24px 50px -24px rgba(11,42,79,.35); display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.stats div { padding: 22px 16px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-family: var(--serif); font-size: 32px; color: var(--navy); line-height: 1.1; }
.stats span { font-size: 13px; color: var(--muted); }

.sec { max-width: 1200px; margin: 0 auto; padding: 96px 28px 0; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; color: var(--gold); margin: 0 0 10px; }
.sec h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); color: var(--navy); margin: 0 0 12px; letter-spacing: -.01em; line-height: 1.12; }
.sec-lede { color: var(--muted); font-size: 17px; max-width: 40em; margin: 0 0 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(11,42,79,.4); border-color: #d9cfae; }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), #1c4677); color: var(--gold-2); margin-bottom: 16px; }
.card .ic .i { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; position: relative; }
.steps li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px 26px; }
.steps .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 20px; font-weight: 700; background: var(--cream); color: var(--navy); border: 2px solid var(--gold); margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }
.steps code, .qa code { font: 600 13px ui-monospace, Menlo, Consolas, monospace; background: #f1ede1; padding: 1px 6px; border-radius: 5px; color: var(--navy); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.who { border-radius: 20px; padding: 38px; background: linear-gradient(150deg, var(--navy), #061a33); color: #fff; }
.who.alt { background: linear-gradient(150deg, #fffdf6, #f5eedb); color: var(--ink); border: 1px solid #ebe1c3; }
.who h3 { font-family: var(--serif); font-size: 27px; font-weight: 600; margin: 0 0 18px; line-height: 1.15; }
.who.alt h3 { color: var(--navy); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061a33' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/13px no-repeat; }
.who:not(.alt) li { color: rgba(226,233,243,.88); }

.qa { display: grid; gap: 10px; margin-top: 30px; max-width: 860px; }
.qa details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color .2s; }
.qa details[open] { border-color: #d9cfae; }
.qa summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 600; color: var(--navy); position: relative; font-size: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--gold); transition: transform .2s; }
.qa details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { margin: 0 0 18px; color: var(--muted); }

.cta { max-width: 1144px; margin: 96px auto 0; border-radius: 24px; padding: 56px 28px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 50% 0%, rgba(201,164,58,.28), transparent 70%), linear-gradient(160deg, #0b2a4f, #061a33); }
.cta img { border-radius: 16px; box-shadow: 0 0 0 4px rgba(255,255,255,.1); }
.cta h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); margin: 18px 0 8px; }
.cta p { color: rgba(226,233,243,.75); margin: 0 0 26px; font-size: 17px; }

.foot { margin-top: 80px; border-top: 1px solid var(--line); background: var(--paper); }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.foot-links { display: flex; gap: 4px; }
.foot-links button { color: var(--muted); }
.foot-links button:hover { color: var(--navy); background: #f3f1ea; }
.foot p { margin: 0; }

@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; padding: 48px 22px 90px; gap: 40px; }
  .hero-art { max-width: 560px; margin: 0 auto; width: 100%; }
  .mock { transform: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav .clock { display: none; }
}
@media (max-width: 700px) {
  .nav-in { padding: 10px 16px; }
  .brand-txt small { display: none; }
  .hero h1 { font-size: 38px; }
  .hero .lede { font-size: 16px; }
  .home-actions .btn.gold { width: 100%; justify-content: center; }
  .join-field { min-width: 0; width: 100%; flex: none; }
  .f1 { left: auto; right: -4px; top: 0; } .f2 { right: -4px; }
  .mt span { display: none; }
  .mt b { width: 26px; height: 26px; font-size: 10px; }
  .float { padding: 8px 10px; }
  .stats { grid-template-columns: 1fr 1fr; margin: -44px 16px 0; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sec { padding: 72px 18px 0; }
  .cards, .steps, .split { grid-template-columns: 1fr; }
  .who { padding: 28px 24px; }
  .cta { margin: 72px 16px 0; padding: 44px 20px; }
  .foot-in { flex-direction: column; text-align: center; }
}

/* lobby */
.lobby { background: var(--cream); min-height: 100vh; }
.lobby-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 48px; align-items: center; max-width: 1100px; margin: 0 auto; padding: 20px 28px 40px; }
.preview { position: relative; aspect-ratio: 16/9; background: var(--deep); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(6,26,51,.5); }
.preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.preview-off { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; color: #cbd5e1; gap: 10px; }
.preview-off p { margin: 0; }
.preview-controls { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 14px; }
.preview-controls .round { border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.25); }
.preview-controls .round.off { background: var(--danger); border-color: var(--danger); }
.meter { position: absolute; left: 16px; bottom: 26px; width: 6px; height: 40px; background: rgba(255,255,255,.2); border-radius: 3px; overflow: hidden; }
.meter i { position: absolute; bottom: 0; left: 0; right: 0; height: 0; background: var(--gold-2); transition: height .08s; }
.lobby-side h2 { font-family: var(--serif); font-size: 32px; color: var(--navy); margin: 0 0 4px; font-weight: 600; }
.lobby-side .btn.wide { margin-top: 18px; height: 50px; font-size: 16px; }
.invite { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.invite-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.invite code { font: 600 17px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--navy); letter-spacing: .04em; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 26px; color: #fff; background: var(--navy-2); flex: none; text-transform: uppercase; }
.avatar.big { width: 96px; height: 96px; font-size: 38px; }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }

/* call */
.call { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--deep); color: #e8edf5; overflow: hidden; }
.call-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 6px; font-size: 14px; }
.call-title { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.call-title img { border-radius: 6px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 8px; border-radius: 99px; background: rgba(201,164,58,.18); color: var(--gold-2); font-size: 12px; }
.pill .i { width: 14px; height: 14px; }
.demo-banner { margin: 6px 18px 0; padding: 8px 14px; border-radius: 10px; background: rgba(201,164,58,.15); color: var(--gold-2); font-size: 13px; text-align: center; }
.stage-wrap { flex: 1; display: flex; min-height: 0; padding: 10px 14px 0; gap: 14px; }
.stage { flex: 1; min-width: 0; display: grid; gap: 10px; align-content: center; justify-content: center; }
.stage.spot { grid-template-columns: minmax(0, 1fr) 220px; grid-template-rows: 1fr; align-content: stretch; justify-content: stretch; }
.stage.spot .strip { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.stage.spot .strip .tile { aspect-ratio: 16/10; width: 100%; flex: none; }
.tile { position: relative; background: var(--deep-2); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; min-width: 0; min-height: 0;
  outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .15s; }
.tile.speaking { outline-color: var(--gold); }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.tile.self video { transform: scaleX(-1); }
.tile.screen video { object-fit: contain; }
.tile.screen.self video { transform: none; }
.tile.nocam video { visibility: hidden; position: absolute; }
.tile .face { position: absolute; inset: 0; display: none; place-items: center; }
.tile.nocam .face { display: grid; }
.tile .label { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 20px);
  background: rgba(6,26,51,.62); backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 8px; font-size: 13px; }
.tile .label span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .label .i { width: 15px; height: 15px; color: #ff8a8a; }
.tile .hand { position: absolute; top: 10px; left: 10px; background: var(--gold); color: var(--deep); border-radius: 50%; width: 34px; height: 34px; display: none; place-items: center; }
.tile.hand-up .hand { display: grid; animation: pop .3s ease; }
.tile .pin { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity .15s; background: rgba(6,26,51,.6); width: 34px; height: 34px; }
.tile:hover .pin, .tile.pinned .pin { opacity: 1; }
.tile.pinned .pin { color: var(--gold-2); }
.tile .status { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font-size: 12px; background: rgba(0,0,0,.5); padding: 2px 10px; border-radius: 99px; }
@keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } }

.panel { width: 340px; flex: none; background: var(--paper); color: var(--ink); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; margin-bottom: 4px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 6px 20px; }
.panel-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.panel-head .round { color: var(--ink); width: 40px; height: 40px; }
.panel-head .round:hover { background: #f0eee7; }
.panel-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-list { flex: 1; overflow-y: auto; padding: 6px 20px 10px; }
.msg { margin: 12px 0; }
.msg .who { font-size: 13px; font-weight: 700; }
.msg .who time { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 12px; }
.msg .txt { white-space: pre-wrap; word-wrap: break-word; }
.msg .txt a { color: var(--navy); }
.chat-form { display: flex; gap: 4px; padding: 10px 12px 14px; }
.chat-form input { border-radius: 99px; background: #f3f1ea; border-color: transparent; }
.chat-form .round { color: var(--navy); }
.chat-form .round:hover { background: #f0eee7; }
.host-tools { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px 6px; border-bottom: 1px solid var(--line); }
.people { list-style: none; margin: 0; padding: 6px 10px; overflow-y: auto; }
.people li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.people li:hover { background: #f6f4ee; }
.people .nm { flex: 1; min-width: 0; }
.people .nm div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.people .nm small { color: var(--muted); }
.people .ic { display: flex; gap: 6px; color: var(--muted); align-items: center; }
.people .ic .i { width: 18px; height: 18px; }
.people .ic .gold { color: var(--gold); }
.people .ic .red { color: var(--danger); }
.people .act { border: 0; background: transparent; color: var(--navy); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.people .act:hover { background: rgba(11,42,79,.08); }
.people .act.red { color: var(--danger); }

.controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); gap: 12px; }
.ctl-mid { display: flex; gap: 12px; align-items: center; }
.ctl-right { display: flex; justify-content: flex-end; gap: 6px; }
.ctl-left { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--deep); font-size: 11px; line-height: 18px; font-weight: 700; }
.badge.dot { min-width: 10px; width: 10px; height: 10px; padding: 0; top: 8px; right: 8px; }
.react-wrap { position: relative; }
.react-menu { position: absolute; bottom: 58px; left: 50%; transform: translateX(-50%); background: var(--paper); border-radius: 99px; padding: 6px; display: flex; gap: 2px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.react-menu button { border: 0; background: transparent; font-size: 24px; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; }
.react-menu button:hover { background: #f0eee7; transform: scale(1.15); }
.reactions { position: fixed; left: 0; right: 0; bottom: 90px; height: 0; pointer-events: none; z-index: 5; }
.floaty { position: absolute; bottom: 0; font-size: 34px; animation: rise 3s ease-out forwards; text-align: center; }
.floaty small { display: block; font-size: 11px; background: rgba(6,26,51,.7); color: #fff; border-radius: 6px; padding: 1px 6px; margin-top: 2px; white-space: nowrap; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-50vh); opacity: 0; } }

/* left */
.left { display: grid; place-items: center; min-height: 100vh; text-align: center; padding: 24px; }
.left img { border-radius: 20px; }
.left h2 { font-family: var(--serif); font-size: 32px; color: var(--navy); margin: 18px 0 6px; font-weight: 600; }
.left .row { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* toasts */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 20; pointer-events: none; }
.toast { background: #1f2f45; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: tin .2s ease; max-width: 90vw; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* responsive */
@media (max-width: 900px) {
  .lobby-main { grid-template-columns: 1fr; gap: 30px; }
  .stage.spot { grid-template-columns: 1fr; grid-template-rows: 1fr 110px; }
  .stage.spot .strip { flex-direction: row; overflow-x: auto; }
  .stage.spot .strip .tile { width: 160px; height: 100%; aspect-ratio: auto; }
}
@media (max-width: 700px) {
  .topbar { padding: 12px 16px; }
  .lobby-main { padding: 8px 16px 28px; }
  .panel { position: fixed; inset: 0; width: auto; border-radius: 0; z-index: 10; margin: 0; }
  .controls { grid-template-columns: 1fr; padding-top: 8px; }
  .ctl-left { display: none; }
  .call-meta { display: none; }
  .ctl-mid { justify-content: center; gap: 8px; flex-wrap: wrap; }
  .ctl-right { position: absolute; top: 6px; right: 8px; }
  .round { width: 44px; height: 44px; }
  .round.danger { width: 56px; }
  .tile .pin { opacity: 1; }
  .stage-wrap { padding: 6px 8px 0; }
}
