@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0b0b0e;
  --text: #f5f0e9;
  --muted: #c9c3c0;
  --line: #e9d5c128;
  --field: #08080b64;
  --accent: #ffe1a9;
  --green: #81f3be;
  --danger: #ff9cae;
  --glass: #1f2025a8;
  --glass-light: radial-gradient(ellipse at 0 0, #ffd5a419, transparent 48%),
                 radial-gradient(ellipse at 100% 0, #b3e2ff19, transparent 48%),
                 linear-gradient(178deg, #ffffff0a, transparent 60%, #0002);
  --depth: inset 0 1px 1px #fff5, inset 0 -1px 1px #ffcda018, 0 12px 34px #0006;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100svh;
  isolation: isolate;
  color: var(--text);
  font-weight: 400;
  line-height: 1.5;
  background:
    radial-gradient(ellipse at 12% 8%, #43251780, transparent 40%),
    radial-gradient(ellipse at 93% 36%, #142b3b96, transparent 46%),
    radial-gradient(ellipse at 48% 103%, #391d16a1, transparent 45%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: -7% -12%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 57% 41%, transparent 37%, #8cb2c518 47%, #5b9ab541 50%, transparent 57%),
    radial-gradient(ellipse at 48% 37%, transparent 47%, #d58a4a29 53%, #efad6636 55%, transparent 62%);
  mask-image: linear-gradient(155deg, transparent 10%, #000 46%, #000 69%, transparent 91%);
  filter: blur(18px);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #050507;
  opacity: 0;
  transition: opacity .65s ease;
}
body.is-screening::before { opacity: .84; }
.top, .room-heading, .room-dock { transition: opacity .55s ease; }
.is-screening :is(.top, .room-heading, .room-dock):not(:hover):not(:focus-within) { opacity: .76; }
body:has(dialog:modal) { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.25; text-wrap: balance; }
svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.glass {
  background: var(--glass-light), var(--glass);
  border: 0;
  box-shadow: var(--depth);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}
button.glass:hover:not(:disabled), .glass > button:hover:not(:disabled) { background-color: #ffe3bd25; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 17px; border-radius: 999px; color: var(--text); font-size: 15px; font-weight: 500; white-space: nowrap; }
.button svg { width: 18px; height: 18px; }
.primary { background: linear-gradient(170deg, #ffe7bf, #f4d5a2 30%, #edca93 76%, #ddb17c); color: #351a14; border: 0; box-shadow: 0 5px 16px #13070b38; }
.primary:hover:not(:disabled) { filter: brightness(1.06); }
.secondary { background: var(--glass-light), #ffe1bb20; border: 0; box-shadow: inset 0 1px 1px #ffe9c514; }
.secondary:hover:not(:disabled) { background-color: #ffe1bb32; }
.icon-button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--text); flex: none; }
.icon-button:hover:not(:disabled) { background-color: #ffffff16; }

.top { padding-top: max(22px, env(safe-area-inset-top)); }
.top-inner, .layout { width: min(1220px, calc(100% - 2 * max(26px, env(safe-area-inset-left), env(safe-area-inset-right)))); margin-inline: auto; }
.top-inner { min-height: 66px; padding: 8px clamp(24px, 4vw, 44px); border-radius: 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.brand { grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: 19px; font-weight: 700; letter-spacing: -.035em; }
.room-toolbar { display: contents; }
.code { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 11px; border-radius: 999px; color: var(--text); white-space: nowrap; }
.code svg { width: 16px; height: 16px; color: var(--muted); }
.code strong, #share-code { font-weight: 500; letter-spacing: .09em; }
.code strong { font-size: 14px; }
.status { grid-column: 3; grid-row: 1; justify-self: end; margin-inline-end: clamp(7px, 2vw, 18px); color: var(--muted); display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.status[data-online="true"] i { background: var(--green); box-shadow: 0 0 10px #81f3be7a; }

.lobby { display: grid; justify-items: center; gap: 38px; padding: clamp(40px, 5vw, 70px) 0 50px; }
.lobby-hero { min-width: 0; text-align: center; }
.hero-art { position: relative; display: grid; place-items: center; width: 188px; height: 112px; margin: 0 auto 24px; isolation: isolate; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: -25px -46px;
  border-radius: 44%;
  background:
    radial-gradient(ellipse at 34% 68%, #ef943c83, transparent 48%),
    radial-gradient(ellipse at 64% 32%, #6ba2c066, transparent 41%),
    radial-gradient(ellipse at 53% 69%, #f5bc6b52, transparent 65%);
  filter: blur(13px);
  z-index: -1;
}
.lobby-mark { display: block; width: 84px; height: 84px; filter: drop-shadow(0 8px 12px #220d1660); }
.lobby h1 { font-size: clamp(28px, 6.5vw, 62px); font-weight: 700; line-height: 1.16; letter-spacing: -.045em; }
.lobby h1 span { color: var(--accent); }
.lobby-hero p { max-width: 36ch; margin: 14px auto 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.entry-card { width: min(100%, 420px); text-align: center; }
.entry-card.ticket { --ticket-cut: transparent 9px, #000 9.6px; color: #49281e; }
.entry-card > .ticket-head, .entry-card > .ticket-stub { padding: clamp(21px, 4vw, 29px); }
.entry-card h2 { margin-bottom: 19px; font-size: 21px; letter-spacing: -.02em; }
#create-room { width: 100%; background: linear-gradient(170deg, #71403a, #4a2530); color: #fff0d5; }
.join-form label { display: block; margin-bottom: 10px; color: #6c4637; font-size: 13px; }
.join-entry { display: grid; justify-items: center; gap: 18px; }
#join-code { width: 100%; text-align: center; background: #602e2417; color: #49281e; }
#join-code::placeholder { color: #724b3b; }
.join-entry .button { min-width: 112px; background: #602e2420; color: #49281e; box-shadow: none; }
.join-entry .button:hover:not(:disabled) { background: #602e2431; }
.entry-card .error { margin-top: 11px; color: #8b2132; }

.workspace { padding: 30px 0 max(38px, env(safe-area-inset-bottom)); }
.room-heading { display: grid; justify-items: center; gap: 9px; margin-bottom: 23px; text-align: center; }
.room-heading h1 { font-size: clamp(21px, 4vw, 32px); letter-spacing: -.025em; }
.room-count { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 999px; background: #ffdab116; color: var(--muted); font-size: 13px; }
.room-count svg { width: 16px; height: 16px; }
.player { border-radius: 30px; padding: 5px; box-shadow: var(--depth), 0 17px 38px #14060c47; }
.player:where(:has(.player-bar:not([hidden]))) { padding-bottom: 3px; }
.player:fullscreen { display: flex; flex-direction: column; justify-content: center; padding: 0 18px 10px; background: #000; border-radius: 0; }
.player:fullscreen .stage { flex: 1; min-height: 0; max-height: none; aspect-ratio: auto; }
body.has-expanded-player { overflow: hidden; }
.player.is-expanded {
  position: fixed; z-index: 10; inset: 0; height: 100vh; height: 100dvh; overflow: auto;
  display: flex; flex-direction: column; border-radius: 0; background: #000;
  padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
}
.player.is-expanded .stage { flex: 1; min-height: 0; max-height: none; aspect-ratio: auto; border-radius: 0; }
.player.is-expanded .video-title { display: none; }
.player.is-expanded :is(.player-bar, .player-controls) { flex-shrink: 0; }
.stage { position: relative; width: 100%; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 9; max-height: 65svh; border-radius: 24px; background: #07070a; }
.empty-stage, .media-mount { position: absolute; inset: 0; }
.empty-stage {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 28% 40%, #56331e73, transparent 54%),
    radial-gradient(ellipse at 96% 3%, #35536a5e, transparent 55%),
    #101014;
}
/* A still grain layer and a soft beam appear only before playback. */
.empty-stage::before,
.empty-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.empty-stage::before {
  background: conic-gradient(from 105deg at 0% 0%, transparent, #e8a76424 9deg, #ffe0a533 22deg, transparent 45deg);
  mask-image: radial-gradient(ellipse at 4% 2%, #000 15%, transparent 82%);
  filter: blur(9px);
}
.empty-stage::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
  opacity: .26;
}
.stage-content { position: relative; z-index: 1; display: grid; justify-items: center; gap: 17px; text-align: center; padding: 24px; }
.stage-icon { display: grid; place-items: center; width: 67px; height: 67px; border-radius: 27px; color: var(--accent); }
.stage-icon svg { width: 34px; height: 34px; }
#stage-add { margin-top: 2px; }
.stage-content h2, .notice-card h2 { font-size: clamp(18px, 2.6vw, 24px); letter-spacing: -.02em; overflow-wrap: anywhere; }
.stage-content p, .notice-card p { max-width: 38ch; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.media-mount video, .media-mount iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player-notice { display: grid; place-items: center; padding: 16px; text-align: center; }
.notice-card { max-width: 380px; }
.notice-card p { margin-top: 12px; }
.notice-card .button { margin-top: 12px; }
.player-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; padding: 0 6px 10px; }
.transport, .video-actions { display: flex; align-items: center; gap: 8px; }
.player-controls .icon-button { width: 44px; height: 44px; }
.player-controls .play-button { width: 48px; height: 48px; color: var(--accent); }
.video-title { padding: 12px 10px 0; font-size: clamp(18px, 2.7vw, 27px); font-weight: 500; letter-spacing: -.03em; overflow-wrap: anywhere; }
.player-bar { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 10px; }
.time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 31px; text-align: center; }
#seek { flex: 1; width: 100%; min-width: 0; height: 24px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
#seek:disabled { cursor: default; }
#seek::-webkit-slider-runnable-track { height: 6px; border-radius: 9px; background: linear-gradient(to right, #ffd99b var(--progress, 0%), #ffffff48 var(--progress, 0%)); }
#seek::-moz-range-track { height: 6px; border-radius: 9px; background: linear-gradient(to right, #ffd99b var(--progress, 0%), #ffffff48 var(--progress, 0%)); }
#seek::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; margin-top: -2.5px; border-radius: 50%; background: #fff; }
#seek::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #fff; }

.room-dock { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 24px; }
.dock-actions { display: flex; flex: none; justify-content: center; align-items: center; gap: 12px; }
.dock-actions .icon-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: auto; min-width: 98px; min-height: 48px; padding: 0 15px; font-size: 13px; font-weight: 500; }
.dock-actions svg { width: 19px; height: 19px; }
.chat-trigger { position: relative; }
.chat-trigger i { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.voice-panel { min-width: 0; width: min(100%, 340px); padding: 9px 10px 9px 12px; border-radius: 30px; }
.voice-row { display: flex; align-items: center; gap: 11px; min-height: 46px; }
.voice-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #ffd9b21c; color: #ffe0b5; }
.voice-icon svg { width: 19px; height: 19px; }
.voice-label { flex: 1; min-width: 0; padding-block: 4px; }
.voice-label h2 { font-size: 14px; line-height: 1.35; }
.voice-label p { margin-top: 2px; font-size: 11px; color: var(--muted); line-height: 1.45; }
.voice-panel .button { min-height: 44px; margin-right: 1px; padding-inline: 15px; font-size: 13px; }
.voice-panel[data-active="true"] .voice-icon { color: var(--green); }
.voice-panel[data-muted="true"] .voice-icon { color: var(--muted); }
.voice-panel[data-muted="true"] .voice-mute, .voice-leave { color: var(--danger); }
.voice-leave { background: #ff453a1b; }
.voice-panel .error { margin: 4px 8px 8px 0; }
.subtle { min-height: 44px; padding: 0 7px; border: 0; background: transparent; color: var(--text); font-size: 13px; text-align: left; }

.sheet { width: min(480px, calc(100% - 28px)); max-height: min(700px, calc(100dvh - 32px)); margin: auto; padding: 22px; border-radius: 30px; color: var(--text); background-color: #151419e8; }
.sheet::backdrop { background: #05050792; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.sheet h2 { font-size: 20px; letter-spacing: -.02em; }
.sheet-header .icon-button { width: 44px; height: 44px; }
.sheet-header .icon-button svg { width: 18px; height: 18px; }
.chat-sheet[open] { display: flex; flex-direction: column; height: min(530px, calc(100dvh - 32px)); }
.source-options, .side-tabs { display: flex; gap: 3px; padding: 3px; margin-bottom: 13px; border-radius: 999px; background: #0004; }
.source-option, .side-tabs button { flex: 1; border: 0; border-radius: 999px; color: var(--muted); background: transparent; min-height: 39px; padding: 0 8px; font-size: 14px; }
.source-option[aria-pressed="true"], .side-tabs button[aria-pressed="true"] { color: var(--text); background: #ffffff18;  font-weight: 500; }
.source-kino-login { display: grid; justify-items: start; gap: 10px; margin-bottom: 16px; padding: 14px 16px; border-radius: 22px; background: var(--field); }
.source-kino-login p { font-size: 14px; line-height: 1.5; }
.source-kino-login strong { display: block; margin-bottom: 4px; color: var(--accent); font-size: 24px; letter-spacing: .08em; }
.source-kino-login .button { min-height: 44px; }
.source-entry { display: flex; gap: 8px; }
.link-field { display: flex; align-items: center; flex: 1; min-width: 0; gap: 7px; padding-left: 10px; background: var(--field); color: var(--muted); border: 0; border-radius: 999px; }
.link-field svg { width: 17px; height: 17px; }
input:not([type="range"]) { min-height: 46px; min-width: 0; border: 0; border-radius: 999px; padding: 0 11px; font-size: 16px; background: var(--field); color: var(--text); }
input::placeholder { color: var(--muted); opacity: 1; }
input:disabled { opacity: .67; }
.link-field input { width: 100%; padding-left: 0; border: 0; background: transparent; outline: none; }
.link-field:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.episode-fields { display: flex; gap: 8px; margin-top: 8px; }
.episode-fields input { width: 98px; }
.source-hint { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.error { color: var(--danger); font-size: 13px; line-height: 1.4; }
#source-error { margin-top: 9px; }
.group-action { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; margin-top: 14px; padding: 0 10px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; font-size: 14px; }
.group-action svg:last-child { width: 15px; margin-left: auto; color: var(--muted); }
.group-action:hover:not(:disabled) { background: var(--field); }
#people-count { color: #dfc6bb; margin-left: 4px; font-size: 11px; }
.side-content { position: relative; flex: 1; min-height: 0; }
.side-panel { position: absolute; inset: 0; display: flex; flex-direction: column; }
.side-empty { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; padding: 12px; }
.side-icon { color: var(--muted); margin-bottom: 8px; }
.side-empty h2 { font-size: 16px; }
.side-empty p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.side-form { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.side-form input { flex: 1; border-radius: 999px; }
.side-form .icon-button { background: var(--field); }
.messages, .people { flex: 1; overflow: auto; min-height: 0; padding: 6px 2px; }
.message { padding: 8px 0; }
.message h3 { font-size: 13px; font-weight: 500; margin-bottom: 4px; overflow-wrap: anywhere; }
.message time { margin-left: 7px; font-size: 11px; color: var(--muted); font-weight: 400; }
.message p { color: #f4e4dc; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.people { list-style: none; margin: 0; }
.people li { display: flex; align-items: center; gap: 9px; min-height: 46px; font-size: 14px; overflow-wrap: anywhere; }
.people li + li { border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; flex: none; width: 30px; height: 30px; background: var(--field); color: var(--text); border-radius: 50%; font-size: 13px; font-weight: 500; }
.role { color: var(--muted); font-size: 12px; margin-left: auto; white-space: nowrap; }
.ticket {
  --ticket-cut: transparent 7px, #000 7.5px;
  border-radius: 21px;
  overflow: hidden;
  color: #49281e;
  filter: drop-shadow(0 12px 20px #19090c52);
}
.ticket-head, .ticket-stub {
  mask-size: 51% 100%;
  mask-position: left, right;
  mask-repeat: no-repeat;
}
.ticket-head {
  background: linear-gradient(145deg, #ffebc4, #edc68e);
  mask-image: radial-gradient(circle at left bottom, var(--ticket-cut)), radial-gradient(circle at right bottom, var(--ticket-cut));
}
.ticket-stub {
  border-top: 1px dashed #83533d70;
  background: linear-gradient(145deg, #f9dfb4, #e9bc81);
  mask-image: radial-gradient(circle at left top, var(--ticket-cut)), radial-gradient(circle at right top, var(--ticket-cut));
}
.invite-field { padding: 13px 15px; }
.invite-field label { display: block; color: #6c4637; font-size: 12px; margin: 0 0 8px 3px; }
.invite-row { display: flex; gap: 8px; }
.invite-row input { flex: 1; background: #602e2413; color: #49281e; }
.invite-ticket .icon-button { background: #602e2420; color: #49281e; box-shadow: none; }
.ticket :focus-visible { outline-color: #633b2e; }
.entry-card > .ticket-head {
  background: linear-gradient(155deg, #fff1d3, #eecb97);
  box-shadow: inset 0 1px 1px #fff7dfb0;
}
.entry-card > .ticket-stub {
  background: linear-gradient(145deg, #f8dfb6, #eac291);
  border-color: #83533d8c;
}
#voice-level {
  display: block;
  width: min(100%, 83px);
  height: 5px;
  margin-top: 6px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #ffffff1d;
}
#voice-level::-webkit-meter-bar { height: 5px; border: 0; border-radius: 999px; background: #ffffff1d; }
#voice-level::-webkit-meter-optimum-value { border-radius: 999px; background: var(--green); }
#voice-level::-moz-meter-bar { border-radius: 999px; background: var(--green); }
@media (min-width: 1000px) {
  .workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, 305px); column-gap: 22px; align-items: start; }
  .room-heading { grid-column: 1 / -1; }
  .player, .room-dock { grid-column: 1; }
  #open-chat, .chat-close, .dock-actions:has(#open-sources[hidden]) { display: none; }
  #communication[open] {
    position: relative;
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 350px;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 18px;
  }
  #communication .side-tabs button { min-height: 42px; font-size: 12px; }
  #communication .side-form input { width: 100%; min-width: 0; font-size: 14px; }
  #communication .side-empty h2 { font-size: 14px; }
  .is-screening #communication:not(:hover):not(:focus-within) { opacity: .8; }
  #communication { transition: opacity .55s ease; }
}
#share-status { min-height: 1.25em; margin: 12px 0 0 3px; color: var(--accent); font-size: 12px; }
.toast { position: fixed; z-index: 5; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: calc(100% - 32px); padding: 11px 15px; background: #302729; border: 0; border-radius: 999px; font-size: 14px; }

@media (max-width: 600px) {
  .top { padding-top: max(14px, env(safe-area-inset-top)); }
  .top-inner, .layout { width: calc(100% - 2 * max(17px, env(safe-area-inset-left), env(safe-area-inset-right))); }
  .top-inner { min-height: 58px; padding: 5px clamp(16px, 5vw, 25px); gap: 7px; }
  .brand { font-size: 15px; }
  .status > span { display: none; }
  .code { gap: 7px; padding-inline: 10px; }
  .lobby { gap: 31px; padding-top: 37px; }
  .hero-art { height: 78px; margin-bottom: 20px; }
  .lobby-mark { width: 75px; height: 75px; }
  .lobby-hero p { font-size: 14px; }
  .workspace { padding-top: 24px; }
  .room-heading { margin-bottom: 19px; }
  .player { border-radius: 25px; }
  .stage { border-radius: 20px; }
  .stage:has(.empty-stage:not([hidden])) { min-height: 248px; }
  .stage-icon { width: 51px; height: 51px; border-radius: 18px; }
  .stage-icon svg { width: 27px; height: 27px; }
  .stage-content p, .notice-card p { font-size: 13px; }
  .room-dock { flex-direction: column; gap: 16px; margin-top: 19px; }
  .voice-panel .icon-button { width: 44px; height: 44px; }
  .sheet { margin: auto auto max(8px, env(safe-area-inset-bottom)); }
}
@media (max-width: 365px) {
  .brand { font-size: 14px; }
  .entry-card > .ticket-head, .entry-card > .ticket-stub { padding-inline: 17px; }
  .join-entry input { padding-inline: 10px; }
  .join-entry .button { padding-inline: 13px; }
  .voice-row { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, .top, .room-heading, .room-dock, #communication { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: #29262a; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
