/* =========================================================
   p1zza meet: lobby, room, panels, dock. built on base.css
   (same tokens + .win component as the team site).
   ========================================================= */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.view-room { overflow: hidden; height: 100dvh; }
.view-room body, body.view-room { overflow: hidden; }
:root { --dock-h: 92px; --panel-w: 372px; }

/* ---------- menubar additions ---------- */
.mb-item { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mb-room b { color: var(--ink); font-weight: 600; }
.mb-room .ico { color: var(--crust); }
.view-room .mb-lobby { display: none; }
button.menubar-cta { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--f-sans); }
.logo b { white-space: nowrap; }
.net-short { display: none; }
.sys .net-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); box-shadow: 0 0 0 2px rgba(0,0,0,.04); }
.sys.ok .net-dot { background: var(--basil); }
.sys.relay .net-dot { background: var(--crust); }
.sys.bad .net-dot { background: var(--tomato); animation: blink 1s steps(1) infinite; }

/* ---------- shared bits ---------- */
.px { image-rendering: pixelated; }
.round {
  position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; cursor: pointer; flex: none;
  color: var(--ink); background: linear-gradient(#ffffff, #ece6dc); border: 1px solid #bfb3a2;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.12), 0 6px 14px -8px rgba(60,40,20,.45);
  transition: transform .35s var(--spring), box-shadow .3s, background .2s;
}
.round::after { content: ""; position: absolute; left: 18%; right: 18%; top: 2px; height: 42%; border-radius: 999px; background: linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,0)); pointer-events: none; }
.round:hover { transform: translateY(-2px) scale(1.05); }
.round:active { transform: scale(.95); }
.round .ico { width: 20px; height: 20px; }
.round.is-off { color: #fff; background: linear-gradient(#ff7a66, #e8402f 60%, #d0321f); border-color: #a92415; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 2px rgba(0,0,0,.2), 0 8px 18px -10px rgba(232,64,47,.9); }
.round.is-off::after { background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0)); }
.round.is-on { color: var(--cream); background: linear-gradient(#4a3f38, #2a221d); border-color: #120c09; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(0,0,0,.25), 0 8px 18px -10px rgba(20,10,5,.8); }
.round.is-on::after { background: linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,0)); }
.round.is-hand { color: #4a3a10; background: linear-gradient(#fff1b0, #ffcf5c 60%, #f0b53a); border-color: #c99a12; }
.dock [data-tip]:hover::before, .dock [data-tip]:focus-visible::before {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font: 500 11.5px var(--f-mono); color: var(--cream); background: var(--night); padding: 5px 9px; border-radius: 7px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); z-index: 5;
}
.badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font: 700 10.5px/1 var(--f-mono); color: #fff; background: var(--tomato); border: 2px solid var(--paper); z-index: 2; }
.badge-ink { background: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 8px; border: 1px solid var(--line-2); background: linear-gradient(#fff, #f1ebe2); cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { color: var(--tomato-ink); }
.tl-btn { display: block; width: 12px; height: 12px; padding: 0; border-radius: 50%; box-sizing: border-box; background: #ff5f57; border: .5px solid #e2463f; cursor: pointer; position: relative; }
.tl-btn::after { content: ""; position: absolute; inset: -8px; }
.tl:hover .tl-btn { background: #ff5f57 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.8 3.8l4.4 4.4M8.2 3.8 3.8 8.2' stroke='%23820005' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* form fields */
.field { display: grid; gap: 6px; margin: 0; min-width: 0; }
.field > span, .field > legend { font-size: 11.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; padding: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.field input, .field select {
  width: 100%; min-width: 0; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card);
  font: 400 15px var(--f-sans); color: var(--ink); box-shadow: inset 0 1px 2px rgba(60,40,20,.08); transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; padding-right: 32px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e534b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E") right 10px center/15px no-repeat; text-overflow: ellipsis; font-size: 14px; }
.field input:focus, .field select:focus { outline: 0; border-color: var(--tomato); box-shadow: 0 0 0 3px rgba(232,64,47,.18); }
.field input::placeholder { color: #b0a597; }
.input-row { display: flex; align-items: center; gap: 8px; }
.input-row .prefix { font-size: 14px; color: var(--ink-3); margin-right: -4px; }

/* PS1 avatar fill (cam off) */
.avatar-fill { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: radial-gradient(circle at 50% 42%, #3d2f26, var(--night) 72%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.avatar-fill img { width: 30%; max-width: 168px; min-width: 48px; height: auto; aspect-ratio: 1; filter: drop-shadow(0 10px 12px rgba(0,0,0,.5)); animation: bob 3.2s ease-in-out infinite; }
.avatar-fill span { font-size: 12px; color: var(--cream-2); }
.cam-off .avatar-fill { opacity: 1; }
.cam-off video { opacity: 0; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }

/* ---------- lobby ---------- */
.lobby { position: relative; min-height: 100dvh; padding: 64px var(--space) 36px; }
.desk { position: absolute; inset: 44px 0 0; pointer-events: none; z-index: 0; overflow: hidden; }
.pin { position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--rot)); filter: drop-shadow(0 8px 12px rgba(60,40,20,.18)); }
.pin.kao { filter: none; }
.item-slice { width: 104px; }
.lobby-head { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.wordmark { width: min(760px, 100%); margin: 6px auto 0; }
#wordmark-cv { display: block; width: 100%; cursor: crosshair; touch-action: pan-y; }
.hero-sub { margin: 10px 0 0; font: 400 clamp(16px, 1.6vw, 19px) var(--f-sans); color: var(--ink-2); }
.lobby-wins { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; width: min(1080px, 100%); margin: 28px auto 0; align-items: start; }
.preview { padding: 14px; }
.stage-video { position: relative; aspect-ratio: 16 / 9; background: var(--night); border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.4); }
.stage-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mirror { transform: scaleX(-1); }
.pv-controls { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 10px; }
.meter-row { display: flex; align-items: center; gap: 10px; padding: 14px 2px 4px; color: var(--ink-2); }
.meter { flex: 1; display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 12px; }
.meter i { border-radius: 2px; background: var(--paper-2); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); transition: background .08s; }
.meter i.on { background: var(--basil); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(0,0,0,.2); }
.meter i.on.hot { background: var(--cheese); }
.meter i.on.max { background: var(--tomato); }
.meter-l { width: 56px; text-align: right; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.devices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 12px; }
.join { display: grid; gap: 14px; padding: 18px 20px 20px; }
.toppings { border: 0; padding: 0; }
.topping-row { display: flex; gap: 8px; flex-wrap: wrap; }
.topping { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(#fff, #f3ede4); cursor: pointer; transition: transform .35s var(--spring), border-color .2s, box-shadow .2s; padding: 0; }
.topping img { width: 40px; height: 40px; }
.topping:hover { transform: translateY(-2px) rotate(-4deg); }
.topping[aria-checked="true"] { border-color: var(--tomato); box-shadow: 0 0 0 3px rgba(232,64,47,.18), inset 0 1px 0 #fff; background: radial-gradient(circle at 50% 35%, #fff, #ffe9de); }
.room-status { margin: 0; padding: 9px 12px; border-radius: 8px; background: var(--night); color: var(--cream); font-size: 12.5px; line-height: 1.5; min-height: 38px; }
.room-status .ok { color: var(--neon-basil); } .room-status .warn { color: var(--cheese); } .room-status .bad { color: #ff8b7d; }
.join-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.join-actions .pill { font-size: 15px; padding: 10px 20px; }
.err { margin: 0; min-height: 1.2em; font-size: 12.5px; color: var(--tomato-ink); }
.lobby .caption { position: relative; z-index: 1; margin-top: 22px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.pill:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- room ---------- */
.room { position: fixed; inset: 44px 0 0; }
.stage { position: absolute; inset: 0 0 var(--dock-h) 0; padding: 18px 20px 6px; transition: right .45s var(--ease); }
.room.panel-open .stage { right: calc(var(--panel-w) + 16px); }
.grid { position: relative; width: 100%; height: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: var(--gap, 16px); }
.tile { flex: none; width: var(--tile-w, 320px); transition: box-shadow .25s, width .35s var(--ease); animation: tile-in .55s var(--spring) both; }
@keyframes tile-in { from { opacity: 0; transform: scale(.92) translateY(10px); } }
.tile-body { position: relative; aspect-ratio: 16 / 9; background: var(--night); overflow: hidden; }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--night); transition: opacity .25s; }
.tile.is-screen video { object-fit: contain; transform: none; }
.tile.speaking { box-shadow: 0 0 0 2px var(--neon-basil), 0 0 0 6px rgba(61,220,132,.22), var(--win-shadow); }
.tile.speaking .win-bar { background: linear-gradient(#effaf3, #dcefe3); }
.tile-chips { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font: 600 11px/1 var(--f-mono); color: var(--cream); background: rgba(21,16,13,.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 .5px rgba(255,255,255,.08) inset; white-space: nowrap; }
.chip .ico { width: 13px; height: 13px; }
.chip-mute { color: #ff8b7d; }
.chip-hand { background: var(--cheese); color: #4a3a10; animation: wave 1.2s var(--spring) 2; }
@keyframes wave { 30% { transform: rotate(-10deg); } 60% { transform: rotate(8deg); } }
.chip-net::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cream-2); }
.chip-net.direct::before { background: var(--neon-basil); box-shadow: 0 0 8px var(--neon-basil); }
.chip-net.relay::before { background: var(--cheese); box-shadow: 0 0 8px var(--cheese); }
.chip-net.bad::before { background: var(--tomato); }
.chip-net.wait::before { animation: blink 1s steps(1) infinite; }
.chip-net.local { display: none; }
.tile-chips .spacer { flex: 1; }
.chip-you { background: rgba(255,241,214,.16); }
.play-gate { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(21,16,13,.55); pointer-events: auto; }

/* dock (frosted, like the menubar) */
.dock { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 24px; z-index: 40;
  background: rgba(246,241,232,.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(203,191,174,.6); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 40px -16px rgba(60,40,20,.35), 0 2px 6px rgba(60,40,20,.08); }
.dock-sep { width: 1px; height: 28px; background: var(--line-2); margin: 0 3px; }
.pill-leave { padding: 11px 18px; font-size: 15px; }

/* side panels */
.panel { position: absolute; top: 18px; right: 16px; bottom: calc(var(--dock-h) + 6px); width: var(--panel-w); display: flex; z-index: 30; animation: panel-in .45s var(--spring) both; }
@keyframes panel-in { from { opacity: 0; transform: translateX(24px); } }
.panel > .win { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-out { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 14px 16px; font-size: 13px; line-height: 1.6; white-space: normal; scrollbar-width: thin; scrollbar-color: #3a2f29 transparent; background: #110c0a; }
.chat-out:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px rgba(61,220,132,.4); }
.chat-out p { margin: 0 0 3px; white-space: pre-wrap; word-break: break-word; }
.chat-out .ts { color: #6f6258; font-size: 11px; margin-right: 6px; }
.chat-out .who { color: var(--neon-basil); }
.chat-out .who.me-self { color: #7cc4f2; }
.chat-out .act { color: var(--crust); font-style: italic; }
.chat-out .t-flag img { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.chat-out b { color: var(--cheese); font-weight: 600; }
.win-chat .term-input { padding: 12px 16px 14px; background: #110c0a; }
.win-chat .ps1 { font-size: 12.5px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.win-chat .term-input input { font-size: 13.5px; }
.people { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1 1 0; min-height: 0; }
.people li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.people li:hover { background: var(--paper); }
.people img { width: 34px; height: 34px; flex: none; }
.people .p-name { flex: 1; min-width: 0; display: grid; }
.people .p-name b { font: 600 14px var(--f-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people .p-name small { font: 500 11px var(--f-mono); color: var(--ink-3); }
.people .p-name small.direct { color: var(--basil-ink); } .people .p-name small.relay { color: #9a5a0c; } .people .p-name small.bad { color: var(--tomato-ink); }
.people .p-icons { display: flex; gap: 6px; color: var(--ink-3); }
.people .p-icons .off { color: var(--tomato); } .people .p-icons .hand { color: #c99a12; }
.people-foot { padding: 10px 16px 14px; border-top: .5px solid var(--line); font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }

/* reactions popover */
.reactions-pop { position: absolute; left: 50%; bottom: calc(var(--dock-h) + 2px); transform: translateX(-50%); z-index: 45; display: flex; gap: 4px; padding: 7px; border-radius: 18px;
  background: rgba(246,241,232,.8); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(203,191,174,.6); box-shadow: 0 18px 40px -16px rgba(60,40,20,.4); animation: pop .35s var(--spring) both; }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.9); } }
.react-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; transition: transform .3s var(--spring), background .2s; position: relative; }
.react-btn img { width: 36px; height: 36px; }
.react-btn:hover, .react-btn:focus-visible { background: rgba(255,255,255,.8); transform: translateY(-3px) scale(1.12); }
.react-btn kbd { position: absolute; right: 2px; bottom: 1px; font-size: 8.5px; padding: 0 3px; border-width: .5px; border-bottom-width: 1px; }

/* floating reactions */
#fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 250; overflow: hidden; }
.float { position: absolute; left: var(--x); bottom: calc(var(--dock-h) + 20px); display: grid; justify-items: center; gap: 2px; animation: float-up var(--t, 3s) cubic-bezier(.25,.6,.3,1) forwards; will-change: transform, opacity; }
.float img { width: var(--w, 56px); height: auto; image-rendering: pixelated; filter: drop-shadow(0 8px 8px rgba(60,40,20,.25)); }
.float span { font: 600 11px var(--f-mono); color: var(--cream); background: var(--night); padding: 2px 7px; border-radius: 999px; }
@keyframes float-up { 0% { opacity: 0; transform: translateY(20px) scale(.5); } 12% { opacity: 1; transform: translateY(-20px) scale(1.15); } 50% { transform: translate(var(--sway, 20px), -32vh) rotate(var(--rot, 8deg)); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--sway, 20px) * -.5), -62vh) rotate(calc(var(--rot, 8deg) * -1)); } }

/* left screen */
.left { min-height: 100dvh; display: grid; place-items: center; padding: 64px var(--space) 40px; }
.win-left { width: min(560px, 100%); }
.left-body { padding: 18px 22px 8px; min-height: 180px; font-size: 13.5px; }
.left-actions { display: flex; gap: 10px; padding: 8px 22px 22px; }
.pill-light { font-size: 14px; padding: 9px 18px; }

/* shortcuts sheet */
.sheet { padding: 0; border: 0; width: min(440px, calc(100vw - 32px)); color: var(--ink); }
.sheet::backdrop { background: rgba(29,22,18,.28); backdrop-filter: blur(2px); }
.sheet[open] { animation: pop-sheet .4s var(--spring) both; }
@keyframes pop-sheet { from { opacity: 0; transform: scale(.94); } }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; padding: 18px 22px 22px; font-size: 13px; }
.keys dt { white-space: nowrap; } .keys dd { margin: 0; color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .lobby-wins { grid-template-columns: 1fr; max-width: 640px; }
  .desk .item-slice, .desk .kao { display: none; }
  .room.panel-open .stage { right: 0; }
  .panel { left: 16px; width: auto; top: auto; height: min(62vh, 520px); }
}
@media (max-width: 720px) {
  :root { --dock-h: 78px; }
  .menubar-glyph, .mb-lobby, #mb-invite { display: none !important; }
  .menubar-inner { gap: 12px; }
  .view-room .logo b { display: none; }
  .net-long { display: none; } .net-short { display: inline; }
  .mb-room { min-width: 0; overflow: hidden; } .mb-room span { overflow: hidden; text-overflow: ellipsis; }
  .menubar-right { gap: 10px; }
  .desk { display: none; }
  .lobby { padding: 56px 14px 28px; }
  .devices { grid-template-columns: 1fr; }
  .stage { padding: 12px 12px 4px; }
  .dock { left: 8px; right: 8px; bottom: 10px; transform: none; justify-content: space-between; gap: 2px; padding: 7px 8px; border-radius: 20px; }
  .dock .round { width: 40px; height: 40px; }
  .dock .round .ico { width: 18px; height: 18px; }
  .dock-sep, .hide-xs { display: none; }
  .pill-leave { padding: 0; width: 44px; height: 40px; justify-content: center; }
  .pill-leave .ico { margin: 0; }
  .leave-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dock [data-tip]:hover::before { display: none; }
  .panel { left: 8px; right: 8px; bottom: calc(var(--dock-h) + 4px); height: min(66dvh, 560px); }
  .reactions-pop { left: 8px; right: 8px; transform: none; justify-content: space-between; flex-wrap: wrap; animation: none; }
  .react-btn { width: 38px; height: 42px; } .react-btn img { width: 30px; height: 30px; } .react-btn kbd { display: none; }
  .tile-chips { left: 7px; bottom: 7px; gap: 4px; }
  .chip { height: 21px; padding: 0 7px; font-size: 10px; }
}

/* ---------- reduced motion: no bobbing, reactions fade in place ---------- */
@media (prefers-reduced-motion: reduce) {
  .avatar-fill img, .chip-hand { animation: none !important; }
  .float { animation: float-fade 2.2s linear forwards !important; animation-duration: 2.2s !important; }
  @keyframes float-fade { 0%, 100% { opacity: 0; } 15%, 80% { opacity: 1; } }
}

/* ---------- direct invitation: one destination, one clear action ---------- */
.avatar-options { min-width: 0; }
.avatar-options > summary { display: none; }
.invite-lobby { padding-top: 92px; }
.invite-lobby .lobby-head, .invite-lobby .desk { display: none; }
.invite-head { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; }
.invite-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 10px var(--f-mono); letter-spacing: .13em; color: var(--ink-3); }
.invite-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tomato); box-shadow: 0 0 0 4px rgba(232,64,47,.08); }
.invite-head h2 { margin: 17px 0 15px; font: 650 clamp(27px, 3.4vw, 40px)/1.18 var(--f-sans); letter-spacing: -.055em; }
.invite-room { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 13px; border: 1px solid var(--line-2); border-radius: 9px; background: rgba(255,255,255,.6); color: var(--ink-2); font-size: 13px; }
.invite-room .ico { flex: none; color: var(--tomato-ink); }
.invite-room .mono { overflow-wrap: anywhere; min-width: 0; }
#invite-presence { margin: 16px 0 0; color: var(--ink-3); font-size: 14px; }
#invite-presence.occupied { color: var(--basil-ink, #246d47); }
.invite-lobby .lobby-wins { grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr); width: min(960px, 100%); gap: 24px; margin-top: 30px; align-items: stretch; }
.invite-lobby .win { height: fit-content; }
.invite-lobby .preview { padding: 14px; }
.invite-lobby .join { padding: 24px; gap: 18px; }
.invite-form-intro h3 { margin: 0 0 7px; font: 650 22px/1.25 var(--f-sans); letter-spacing: -.035em; }
.invite-form-intro p { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.6; max-width: 29ch; }
.invite-lobby .field > span, .invite-lobby .field > legend { font-family: var(--f-sans); font-size: 12px; font-weight: 550; }
.invite-lobby #f-name { height: 48px; font-size: 16px; }
.invite-lobby .room-status { padding: 0; min-height: 0; background: none; color: var(--ink-3); font: 400 12px/1.6 var(--f-sans); }
.invite-lobby .join-actions { display: block; }
.invite-lobby #join-btn { display: flex; justify-content: center; width: 100%; gap: 9px; min-height: 48px; padding: 10px 12px; font: 600 14px/1.4 var(--f-sans); }
.invite-lobby .invite-join-note { margin: -7px 0 0; color: var(--ink-3); font-size: 11px; line-height: 1.6; text-align: center; }
.invite-lobby .err:empty { display: none; }
.invite-lobby .err { font: 400 13px/1.5 var(--f-sans); }
.invite-lobby .avatar-options > summary { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 550; color: var(--ink-2); cursor: pointer; list-style: none; }
.invite-lobby .avatar-options > summary::before { content: '+'; font: 400 18px var(--f-mono); color: var(--ink-3); }
.invite-lobby .avatar-options[open] > summary::before { content: '−'; }
.invite-lobby .avatar-options > summary::-webkit-details-marker { display: none; }
.invite-lobby .avatar-options > summary span { margin-left: auto; color: var(--ink-3); font-size: 10px; font-weight: 400; }
.invite-lobby .avatar-options .toppings { margin-top: 12px; }
.invite-lobby .avatar-options legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.invite-media-state { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.invite-media-state span { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 4px 7px; font-size: 10px; line-height: 1.5; color: var(--ink-2); background: var(--paper-2); }
.invite-media-state span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.invite-media-state span.enabled { color: #246d47; background: #e8f1e5; }
.invite-media-state span.enabled::before { background: var(--basil); }
.invite-preview-hint { margin: 10px 0 0; color: var(--ink-3); font-size: 11px; line-height: 1.7; }
.invite-lobby .devices { gap: 10px; }
.invite-lobby .devices select { height: 36px; font-size: 11px; }
.invite-lobby > .caption { max-width: 590px; margin: 22px auto 0; font-size: 11px; line-height: 1.7; }
@media (max-width: 800px) {
  .invite-lobby { padding-top: 76px; }
  .invite-lobby .lobby-wins { grid-template-columns: 1fr; max-width: 480px; gap: 18px; }
  .invite-lobby .win-join { grid-row: 1; }
  .invite-lobby .join { padding: 21px; gap: 16px; }
  .invite-head h2 { max-width: 15ch; margin-left: auto; margin-right: auto; }
  .invite-eyebrow { font-size: 9px; }
  #invite-presence { max-width: 32ch; margin-left: auto; margin-right: auto; font-size: 12px; line-height: 1.65; }
  .invite-lobby .lobby-wins { margin-top: 24px; }
  .invite-lobby .devices { grid-template-columns: 1fr 1fr; }
}
