:root {
  --bg: #03060f;
  --panel: rgba(9, 15, 33, 0.9);
  --line: rgba(130, 170, 255, 0.22);
  --text: #e8eefc;
  --muted: #8da0c8;
  --cyan: #5fe0ff;
  --red: #ff4d57;
  --gold: #ffcf5f;
  --green: #6fff9a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text); font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
#app { position: fixed; inset: 0; height: 100dvh; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.screen, .panel.scroll, .plist, .mgrid, .spot-grid, .skin-grid, .mlog, .tl-body { touch-action: pan-y; }
#gl, #labels { position: absolute; inset: 0; }
#gl canvas { display: block; width: 100%; height: 100%; }
#labels { z-index: 1; pointer-events: none; overflow: hidden; }
#hudroot { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
#screen { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
#screen > * { pointer-events: auto; }
#splash { position: absolute; inset: 0; z-index: 20; opacity: 0; pointer-events: none; transition: opacity 0.5s; }
#splash.on { opacity: 1; }
#boot { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--bg); font: 900 40px/1 "Arial Black", Impact, system-ui, sans-serif; letter-spacing: 2px; }
input[type="text"], input:not([type]) { user-select: text; -webkit-user-select: text; }

.nm { font: 700 12px/1 system-ui, sans-serif; color: #fff; padding: 3px 7px; border-radius: 8px; background: rgba(5, 10, 24, 0.6); text-shadow: 0 1px 2px #000; white-space: nowrap; transform: translateY(-2px); }
.nm.me { color: #bff3ff; }
.nm.mate { color: #ff7078; }

/* shared pieces */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); overflow: auto; }
.panel { width: min(100%, 380px); display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.panel.wide { width: min(100%, 760px); }
.panel.scroll { max-height: 100%; overflow: auto; }
h1, h2, p { margin: 0; }
h2 { font-size: 22px; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; letter-spacing: 0.12em; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.btn { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.07); font-weight: 700; cursor: pointer; transition: transform 0.12s, background 0.12s, box-shadow 0.12s; }
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.13); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.primary { background: var(--cyan); border-color: transparent; color: #04101c; box-shadow: 0 0 22px rgba(95, 224, 255, 0.35); }
.btn.primary:hover:not(:disabled) { background: #8aeaff; }
.btn.big { min-height: 54px; font-size: 17px; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: transparent; }
.btn.on { background: rgba(111, 255, 154, 0.18); border-color: var(--green); color: var(--green); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; background: rgba(255, 255, 255, 0.12); }
.badge.imp { background: rgba(255, 77, 87, 0.25); color: #ff8b92; }
.badge.crew { background: rgba(95, 224, 255, 0.2); color: var(--cyan); }
.badge.ai { background: rgba(180, 140, 255, 0.25); color: #c9aaff; }
.badge.human { background: rgba(111, 255, 154, 0.2); color: var(--green); }
.badge.you { background: transparent; border: 1px solid var(--muted); color: var(--muted); }
#toast { position: absolute; left: 50%; bottom: 110px; z-index: 40; transform: translate(-50%, 20px); max-width: 90vw; padding: 10px 18px; border-radius: 99px; background: rgba(14, 22, 46, 0.96); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: 0.25s; text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#banner { position: absolute; top: 0; left: 50%; z-index: 40; transform: translate(-50%, -120%); padding: 8px 18px; border-radius: 0 0 12px 12px; background: #b3401f; font-weight: 700; transition: transform 0.3s; }
#banner.on { transform: translate(-50%, 0); }
.connecting { font-size: 18px; color: var(--muted); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

/* landing */
.landing { background: linear-gradient(to bottom, rgba(3, 6, 15, 0.7), rgba(3, 6, 15, 0) 38%, rgba(3, 6, 15, 0) 55%, rgba(3, 6, 15, 0.8)); justify-content: space-between; padding-top: 5vh; padding-bottom: 5vh; gap: 18px; }
.landing .panel { flex: none; }
.hero { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; max-width: 560px; }
.logo { font: 900 clamp(56px, 13vw, 112px)/0.95 "Arial Black", Impact, system-ui, sans-serif; letter-spacing: -2px; color: #fff; text-shadow: 0 0 34px rgba(95, 224, 255, 0.45), 0 5px 0 #0a1330; }
.logo span { color: var(--red); text-shadow: 0 0 30px rgba(255, 77, 87, 0.7), 0 5px 0 #3a0a14; }
.tag { color: #c4d2f2; font-size: clamp(14px, 2.4vw, 17px); text-shadow: 0 1px 8px #000; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--text); outline: none; }
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(95, 224, 255, 0.2); }
input::placeholder { color: #61729a; }

/* lobby */
.lobby { align-items: flex-start; justify-content: flex-start; pointer-events: none; }
.lobby .panel.side { pointer-events: auto; max-height: 100%; overflow: auto; }
.code { font: 900 40px/1 "Arial Black", Impact, system-ui, sans-serif; letter-spacing: 6px; color: var(--cyan); text-shadow: 0 0 18px rgba(95, 224, 255, 0.5); }
.plist { display: flex; flex-direction: column; gap: 6px; max-height: 38vh; overflow: auto; }
.prow { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.prow.me { background: rgba(95, 224, 255, 0.12); }
.pn { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.sw { aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.sw.on { border-color: #fff; box-shadow: 0 0 0 2px #000 inset; }
.sw:disabled { opacity: 0.2; cursor: default; }
.lobby-status { color: var(--gold); font-size: 14px; min-height: 20px; }

/* role splash */
.role { background: radial-gradient(ellipse at center, rgba(3, 6, 15, 0.9), rgba(3, 6, 15, 0.97) 70%); overflow: hidden; }
.role-in { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; animation: pop 0.7s cubic-bezier(0.25, 1, 0.5, 1); }
.role h1 { font: 900 clamp(46px, 12vw, 110px)/1 "Arial Black", Impact, system-ui, sans-serif; letter-spacing: 4px; }
.role.crew h1 { color: var(--cyan); text-shadow: 0 0 40px rgba(95, 224, 255, 0.7); }
.role.imp h1 { color: var(--red); text-shadow: 0 0 40px rgba(255, 77, 87, 0.8); }
.role-kicker { letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); font-size: 13px; }
.mates { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.mate-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: rgba(255, 77, 87, 0.18); font-weight: 700; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }

/* hud */
.hud { position: absolute; inset: 0; }
.hud > * { pointer-events: auto; }
.taskbar { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(46vw, 420px); height: 20px; border-radius: 99px; background: rgba(5, 10, 24, 0.7); border: 1px solid var(--line); overflow: hidden; pointer-events: none; }
.taskbar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #2fd27a, #6fffb0); box-shadow: 0 0 14px rgba(111, 255, 154, 0.6); transition: transform 0.4s; }
.taskbar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-shadow: 0 1px 2px #000; }
.tasklist { position: absolute; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); width: 210px; border-radius: 12px; background: rgba(5, 10, 24, 0.72); border: 1px solid var(--line); overflow: hidden; }
.tl-head { padding: 7px 12px; font-weight: 800; font-size: 13px; cursor: pointer; background: rgba(255, 255, 255, 0.06); }
.tl-head::after { content: "  -"; float: right; color: var(--muted); }
.tasklist.shut .tl-head::after { content: "  +"; }
.tasklist.shut .tl-body, .tasklist.shut .hud-status { display: none; }
.ti { padding: 4px 12px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 8px; }
.ti b { font-weight: 600; }
.ti span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.ti.done { opacity: 0.5; text-decoration: line-through; color: var(--green); }
.hud-status { padding: 4px 12px; font-size: 12px; font-weight: 800; color: #ff8b92; }
.feed { position: absolute; left: 12px; bottom: 150px; max-width: 70vw; font-size: 13px; color: #c9aaff; text-shadow: 0 1px 3px #000; pointer-events: none; }
.ghostchat { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(80vw, 420px); }
.ghostchat input { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(9, 15, 33, 0.92); font-size: 16px; outline: none; }
.working { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(44vw, 300px); text-align: center; font-weight: 700; font-size: 13px; text-shadow: 0 1px 3px #000; pointer-events: none; }
.wbar { height: 10px; margin-top: 4px; border-radius: 99px; background: rgba(5, 10, 24, 0.75); border: 1px solid var(--line); overflow: hidden; }
.wbar i { display: block; height: 100%; width: 0; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.actions { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(2, auto); gap: 12px; align-items: end; justify-items: end; }
.act { --c: var(--cyan); position: relative; width: 68px; height: 68px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), rgba(20, 30, 60, 0.9) 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); touch-action: manipulation; }
.act b { font-size: 12px; font-weight: 900; letter-spacing: 0.05em; }
.act small { position: absolute; top: -4px; right: -2px; padding: 1px 5px; border-radius: 6px; font-size: 10px; background: #0b1226; border: 1px solid var(--line); color: var(--muted); }
.act:disabled { opacity: 0.38; }
.act:active:not(:disabled) { transform: scale(0.94); }
.act.use { width: 88px; height: 88px; border-color: var(--cyan); }
.act.use b { font-size: 15px; }
.act.kill { --c: var(--red); border-color: var(--red); background: radial-gradient(circle at 35% 30%, rgba(255, 140, 140, 0.4), rgba(80, 10, 20, 0.95) 70%); }
.act.kill b { font-size: 18px; }
.act.chat { border-color: #c9aaff; }
.act.report { --c: var(--gold); border-color: var(--gold); }
.act.vent { --c: #b48cff; border-color: #b48cff; }
.act:not(:disabled).use { box-shadow: 0 0 22px rgba(95, 224, 255, 0.5), 0 6px 18px rgba(0, 0, 0, 0.5); }
.act:not(:disabled).kill { box-shadow: 0 0 22px rgba(255, 77, 87, 0.55), 0 6px 18px rgba(0, 0, 0, 0.5); }
.ring { position: absolute; inset: -7px; border-radius: 50%; pointer-events: none; background: conic-gradient(var(--c) calc(var(--p, 0) * 1turn), transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.joy-zone { display: none; position: absolute; left: 0; bottom: 0; width: 55%; height: 60%; touch-action: none; }
body.touch .joy-zone { display: block; }
body.touch .act small { display: none; }
body.touch .act { width: 74px; height: 74px; }
body.touch .act.use { width: 96px; height: 96px; }
.joy-base { position: absolute; left: 90px; top: calc(100% - 110px); width: 116px; height: 116px; margin: -58px 0 0 -58px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.06); }
.joy-base.held { background: rgba(95, 224, 255, 0.12); border-color: var(--cyan); }
.joy-knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #8fa6d6); opacity: 0.85; }

/* meeting */
.meeting { background: rgba(3, 6, 15, 0.5); overflow: hidden; }
.mpanel { width: min(100%, 940px); height: min(100%, 620px); gap: 10px; background: rgba(7, 12, 28, 0.95); }
.mhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mhead h2 { font-size: clamp(17px, 3vw, 24px); }
.mstat { display: flex; align-items: center; gap: 10px; }
.mphase { padding: 3px 10px; border-radius: 99px; background: rgba(95, 224, 255, 0.18); color: var(--cyan); font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.mtimer { font: 800 22px/1 system-ui; font-variant-numeric: tabular-nums; min-width: 2.4em; text-align: right; }
.mtimer.hot { color: var(--red); }
.mbody { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.mgrid, .spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; align-content: start; overflow: auto; }
.mcard { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; border: 2px solid transparent; background: rgba(255, 255, 255, 0.07); cursor: pointer; text-align: left; min-height: 66px; }
.mcard canvas { flex: none; }
.mname { flex: 1; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard.me { background: rgba(95, 224, 255, 0.12); }
.mcard.sel { border-color: var(--cyan); box-shadow: 0 0 16px rgba(95, 224, 255, 0.4); }
.mcard.dead { opacity: 0.4; cursor: default; }
.mcard.dead::after { content: ""; position: absolute; inset: 6px; background: linear-gradient(to top right, transparent calc(50% - 1.5px), var(--red) 50%, transparent calc(50% + 1.5px)); }
.mcard .badge { position: absolute; top: -6px; right: 6px; background: #1f8a4c; color: #fff; }
.mcard .badge.ai { background: #7c4fd6; }
.mchat { display: flex; flex-direction: column; min-height: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); padding: 10px; gap: 8px; }
.mlog { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.msg { display: block; word-break: break-word; }
.msg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.msg.ghost { color: #c9aaff; font-style: italic; }
.mform { display: flex; gap: 8px; }
.mform input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); font-size: 16px; outline: none; }
.mform input:focus { border-color: var(--cyan); }
.mfoot { display: flex; gap: 10px; justify-content: center; align-items: center; min-height: 48px; text-align: center; padding-bottom: max(0px, env(safe-area-inset-bottom)); }
.mfoot .btn { flex: 1; max-width: 240px; }
.locked { color: var(--green); font-weight: 700; }

/* eject */
.eject { background: radial-gradient(1px 1px at 12% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 30%, #bfd8ff, transparent), radial-gradient(1px 1px at 40% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 88% 80%, #fff, transparent), radial-gradient(1px 1px at 25% 90%, #bfd8ff, transparent), #02040c; overflow: hidden; }
.eject-stage { position: relative; width: 100%; height: 44vh; display: grid; place-items: center; }
.drift { position: absolute; top: 4%; left: 0; animation: drift 5.5s linear forwards; }
@keyframes drift { from { transform: translateX(-30vw) rotate(0); } to { transform: translateX(115vw) rotate(540deg); } }
.etext { text-align: center; position: relative; margin-top: 22vh; animation: rise 0.9s 0.3s both; }
.etext h2 { font-size: clamp(24px, 6vw, 44px); }
.etext p { font-size: clamp(15px, 3vw, 22px); margin-top: 6px; }
.etext .imp { color: var(--red); }
.etext .crew { color: var(--cyan); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.votes { display: flex; flex-direction: column; gap: 6px; min-width: 240px; }
.vrow { display: flex; align-items: center; gap: 10px; }
.vrow .dots { display: flex; gap: 4px; flex: 1; }
.dots i { width: 12px; height: 12px; border-radius: 50%; }

/* spot, end, skins */
.spot-grid.locked { pointer-events: none; opacity: 0.7; }
.end { justify-content: flex-start; padding-top: 3vh; }
.banner { text-align: center; padding: 8px 0 4px; }
.banner h1 { font: 900 clamp(34px, 8vw, 60px)/1 "Arial Black", Impact, system-ui, sans-serif; letter-spacing: 3px; }
.banner.crew h1 { color: var(--cyan); text-shadow: 0 0 30px rgba(95, 224, 255, 0.6); }
.banner.imp h1 { color: var(--red); text-shadow: 0 0 30px rgba(255, 77, 87, 0.7); }
.score { text-align: center; color: var(--gold); font-weight: 700; }
.rlist { display: flex; flex-direction: column; gap: 6px; }
.rrow { padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.rrow.me { background: rgba(95, 224, 255, 0.1); }
.rmain { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.thoughts { margin: 4px 0 2px 50px; font-size: 13px; }
.thoughts summary { cursor: pointer; color: #c9aaff; }
.th { padding: 2px 0; }
.end-actions { justify-content: center; }
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.skin-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid transparent; text-align: center; }
.skin-card.eq { border-color: var(--green); }
.skin-card canvas { width: 120px; height: 120px; }
.sn { font-weight: 700; }
.sk { color: var(--muted); font-size: 12px; text-transform: capitalize; min-height: 16px; }
.wallet-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.chip { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.skins { justify-content: flex-start; padding-top: 3vh; background: var(--bg); }

/* phones */
@media (max-width: 720px) {
  .tasklist { top: calc(max(10px, env(safe-area-inset-top)) + 28px); width: 170px; }
  .taskbar { width: 62vw; }
  .mbody { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .meeting { padding: 0; }
  .mpanel { height: 100%; border-radius: 0; border-width: 0; padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
  .mgrid { grid-template-columns: repeat(2, 1fr); max-height: 34dvh; }
  .mcard { min-height: 54px; padding: 4px 6px; }
  .lobby { justify-content: flex-end; padding: 0; }
  .lobby .panel.side { width: 100%; max-height: 66dvh; border-radius: 18px 18px 0 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .code { font-size: 32px; }
  .plist { max-height: 22dvh; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .tasklist { width: 170px; }
  .tl-body { max-height: 90px; overflow: auto; }
  .act { width: 58px; height: 58px; }
  body.touch .act { width: 62px; height: 62px; }
  body.touch .act.use, .act.use { width: 76px; height: 76px; }
  .mgrid { max-height: none; }
  .mbody { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .mpanel { padding: 8px 12px; gap: 6px; }
  .lobby { justify-content: flex-start; padding: 8px; }
  .lobby .panel.side { width: 330px; border-radius: 16px; max-height: 100%; }
  .landing { flex-direction: row; gap: 28px; }
  .logo { font-size: 64px; }
  .eject-stage { height: 38vh; }
}
/* Small square box, like X's 480x480 player card */
@media (max-width: 720px) and (max-height: 560px) and (orientation: portrait), (max-width: 560px) and (max-height: 560px) {
  .swatches { grid-template-columns: repeat(12, 1fr); gap: 4px; }
  .lobby .panel.side { max-height: 78dvh; gap: 8px; padding: 12px 14px; }
  .landing { padding-top: 2vh; padding-bottom: 2vh; gap: 10px; }
  .landing .panel { gap: 8px; padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .drift, .role-in, .etext { animation: none; }
}

.mute { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 10, 24, 0.7); color: var(--text); cursor: pointer; z-index: 5; }
.mute.corner { position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); }
.mute .x { display: none; }
.mute.off .x { display: inline; }
.mute.off .w { display: none; }
