.lobby-quick { flex:0 0 auto; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; padding:0 12px 10px; }
.lobby-quick-btn { min-height:40px; padding:6px 8px; border-color:rgba(126,153,185,.2); background:rgba(7,18,29,.55); color:#c9d6e2; font-size:12px; font-weight:700; }
.lobby-quick-btn:hover { border-color:rgba(126,166,214,.45); color:#fff; }
.rooms-panel.room-browser { grid-template-rows:auto auto minmax(0,1fr); }

.assembly-title { min-width:0; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.assembly-code { color:#f1f5f9; font-size:16px; font-weight:850; letter-spacing:.04em; font-variant-numeric:tabular-nums; }
.table-badge { padding:3px 8px; border:1px solid transparent; border-radius:999px; font-size:10px; font-style:normal; font-weight:800; letter-spacing:.02em; white-space:nowrap; }
.table-badge.is-rated { border-color:rgba(242,193,78,.4); background:rgba(242,193,78,.1); color:#f2c14e; }
.table-badge.is-friendly { border-color:rgba(70,192,122,.38); background:rgba(70,192,122,.1); color:#7fdca6; }
.table-badge.is-training { border-color:rgba(143,163,186,.35); background:rgba(143,163,186,.1); color:#c3d0dc; }
.assembly-tools { flex:0 0 auto; display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin-top:10px; }
.assembly-roster > header { flex:0 0 auto; }
.assembly-seat-grid { align-content:start; grid-auto-rows:max-content; }
.assembly-tool { min-height:40px; padding:7px 14px; border-color:rgba(126,153,185,.26); background:rgba(7,18,29,.6); color:#dbe6f1; font-size:12px; font-weight:750; }
.assembly-tool.is-invite { border-color:rgba(113,162,238,.6); background:linear-gradient(118deg,rgba(113,82,211,.38),rgba(67,142,217,.32)); color:#fff; }
.assembly-summary { flex:1 1 180px; min-width:0; color:var(--muted); font-size:11px; line-height:1.35; }
.assembly-start { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.assembly-start .assembly-go { min-width:160px; min-height:44px; font-size:14px; }
.assembly-start small { color:var(--muted); font-size:11.5px; }
.assembly-start.is-guest p { margin:0; color:var(--muted); font-size:12px; }

.person-invite { border-color:rgba(113,162,238,.45); background:rgba(67,120,200,.18); color:#bcd8ff; }
.person-invite:hover { border-color:rgba(140,180,240,.7); background:rgba(67,120,200,.32); color:#fff; }
.person-invite.is-sent { opacity:.45; }

.table-modal { padding:22px; }
.table-modal h2 { margin:5px 0 10px; font-size:21px; letter-spacing:-.02em; }
.table-modal > p, .table-note { margin:0 0 14px; color:var(--muted); font-size:12.5px; line-height:1.5; }
.table-muted { color:var(--muted); font-size:12px; line-height:1.45; }
.table-subtitle { display:block; margin-bottom:8px; color:#c9d6e2; font-size:12px; font-weight:800; }
.table-field { display:flex; flex-direction:column; gap:7px; margin-top:14px; }
.table-field > span { color:#c9d6e2; font-size:12px; font-weight:750; }
.table-field > p { margin:0; }
.segmented { display:flex; flex-wrap:wrap; gap:5px; padding:4px; border:1px solid rgba(126,153,185,.16); border-radius:12px; background:rgba(5,14,23,.5); }
.segmented button { flex:1 1 0; min-width:max-content; min-height:40px; padding:7px 10px; border:1px solid transparent; border-radius:9px; background:transparent; color:var(--muted); font:inherit; font-size:12.5px; font-weight:750; cursor:pointer; }
.segmented button.is-on { border-color:rgba(133,109,232,.5); background:rgba(91,78,139,.42); color:#fff; }
.segmented button:focus-visible, .theme-chip:focus-visible, .companion-call:focus-visible { outline:2px solid #77b8ee; outline-offset:2px; }
.table-themes { display:flex; flex-wrap:wrap; gap:6px; }
.theme-chip { min-height:36px; padding:6px 12px; border:1px solid rgba(126,153,185,.22); border-radius:999px; background:rgba(7,18,29,.5); color:#b9c7d4; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
.theme-chip.is-on { border-color:rgba(63,192,178,.55); background:rgba(63,192,178,.16); color:#dffaf5; }
.code-modal .code-input { width:100%; text-align:center; font-size:26px; font-weight:850; letter-spacing:.3em; font-variant-numeric:tabular-nums; }

.invite-code { display:flex; flex-direction:column; align-items:center; gap:2px; margin:10px 0 12px; padding:14px; border:1px dashed rgba(126,153,185,.3); border-radius:14px; background:rgba(5,14,23,.45); }
.invite-code small { color:var(--muted); font-size:11px; font-weight:700; }
.invite-code b { color:#fff; font-size:34px; font-weight:900; letter-spacing:.18em; font-variant-numeric:tabular-nums; }
.invite-copy { display:grid; grid-template-columns:1.3fr 1fr; gap:8px; }
.invite-copy .btn { min-height:42px; font-size:12.5px; }
.companions { margin-top:16px; }
.companion-list { display:flex; flex-direction:column; gap:4px; max-height:300px; overflow-y:auto; }
.companion-row { display:flex; align-items:center; gap:10px; min-height:52px; padding:6px 4px; border-bottom:1px solid var(--line); }
.companion-row:last-child { border-bottom:0; }
.companion-row:not(.is-online) { opacity:.6; }
.companion-copy { min-width:0; flex:1 1 auto; }
.companion-copy b, .companion-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.companion-copy b { font-size:13px; }
.companion-copy small { margin-top:2px; color:var(--muted); font-size:11px; }
.companion-call { min-height:38px; padding:6px 14px; border-color:rgba(113,162,238,.55); background:rgba(67,120,200,.2); color:#e6f0ff; font-size:12px; font-weight:750; }
.companion-call.is-sent { opacity:.55; }
.companion-empty { padding:12px 4px; }

.tutorial-head { display:flex; align-items:center; gap:12px; margin-top:6px; }
.tutorial-head h2 { margin:0; }
.tutorial-icon { width:46px; height:46px; flex:0 0 auto; display:grid; place-items:center; border:1px solid rgba(133,109,232,.4); border-radius:14px; background:radial-gradient(circle,rgba(113,82,211,.35),rgba(10,16,28,.9)); color:#d8ccff; }
.tutorial-icon svg { width:24px; height:24px; }
.tutorial-modal ul { margin:14px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:10px; }
.tutorial-modal li { position:relative; padding-left:18px; color:#d6dee6; font-size:13.5px; line-height:1.5; }
.tutorial-modal li::before { content:''; position:absolute; left:2px; top:.62em; width:7px; height:7px; border-radius:50%; background:linear-gradient(145deg,#7152d3,#438ed9); }
.tutorial-dots { display:flex; justify-content:center; gap:6px; margin-top:18px; }
.tutorial-dots i { width:7px; height:7px; border-radius:50%; background:rgba(143,163,186,.3); }
.tutorial-dots i.is-on { width:20px; border-radius:999px; background:linear-gradient(90deg,#7152d3,#438ed9); }
.invite-received h2 { margin-bottom:6px; }

.stage-tip { margin:0 14px; padding:7px 11px; border:1px solid rgba(77,155,247,.22); border-radius:10px; background:rgba(77,155,247,.08); color:#bcd6f3; font-size:12px; line-height:1.4; text-align:center; }
@media (min-width:600px) {
    .stage-tip { width:min(calc(100% - 48px),640px); margin-inline:auto; }
}
@media (min-width:761px) {
    .lobby-dashboard:has(.rooms-panel.is-assembly) { grid-template-rows:minmax(0,1fr) minmax(150px,.5fr); }
}
@media (max-width:760px) {
    .lobby-primary:has(.rooms-panel.is-assembly) { grid-template-rows:minmax(0,1.9fr) minmax(170px,1fr); }
}
@media (min-width:761px) and (max-width:1100px) {
    .assembly-seat-grid { gap:6px; }
    .assembly-seat { min-height:46px; padding:5px 7px; }
}
@media (min-width:900px) and (max-width:1100px) {
    .assembly-seat-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
.stage-tip.is-mole { border-color:rgba(192,74,240,.4); background:rgba(192,74,240,.12); color:#efd6ff; }
.quiz-option.is-team-miss { border-color:rgba(230,120,120,.55); background:rgba(80,24,30,.32); }
.option-team { margin-left:auto; padding:2px 7px; border-radius:999px; background:rgba(230,120,120,.18); color:#f2b3b3; font-size:8px; font-weight:800; font-style:normal; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap; }
.quiz-option.is-secret { border-color:rgba(192,74,240,.6); box-shadow:inset 0 0 0 1px rgba(192,74,240,.25); }
.option-secret { margin-left:auto; padding:2px 7px; border-radius:999px; background:rgba(192,74,240,.22); color:#e9c8ff; font-size:8px; font-weight:800; font-style:normal; letter-spacing:.05em; text-transform:uppercase; white-space:nowrap; }

.match-screen.phase-ended { grid-template-rows:auto auto minmax(0,1fr) auto minmax(110px,22%); }
.result-kind { color:var(--muted); font-size:12px; }
.result-best { display:flex; align-items:center; gap:10px; margin:12px auto 0; padding:9px 12px; max-width:360px; border:1px solid rgba(242,193,78,.32); border-radius:14px; background:rgba(242,193,78,.07); text-align:left; }
.result-best img { width:40px; height:40px; flex:0 0 auto; border-radius:50%; object-fit:cover; border:1px solid rgba(242,193,78,.45); }
.result-best span { min-width:0; flex:1 1 auto; }
.result-best small { display:block; color:#f2c14e; font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.result-best b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.result-best em { color:#d9c58e; font-size:11px; font-style:normal; white-space:nowrap; }
.result-rounds { margin:12px auto 0; max-width:360px; text-align:left; }
.result-rounds-grid { display:grid; grid-template-columns:auto 1fr 1fr; gap:3px 12px; margin-top:6px; font-variant-numeric:tabular-nums; }
.result-rounds-grid i { color:var(--muted); font-size:10px; font-style:normal; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.result-rounds-grid b { color:var(--muted); font-size:12px; }
.result-rounds-grid span { color:#9eb0c2; font-size:13px; font-weight:750; }
.result-rounds-grid .logic.is-lead { color:#8fc4fb; }
.result-rounds-grid .intuition.is-lead { color:#c3a6f0; }
.assembly-seat.is-away .assembly-avatar img { opacity:.45; filter:grayscale(.6); }
.assembly-seat.is-away small { color:#e3b363; }
.result-actions { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px; margin-top:16px; }
.result-actions p { flex:1 1 100%; margin:0; color:var(--muted); font-size:12px; }
.result-actions .btn { min-height:44px; padding:9px 18px; }
.match-screen .result-actions { position:sticky; bottom:-6px; z-index:1; margin:14px -18px -18px; padding:14px 18px 16px; border-radius:0 0 15px 15px; background:linear-gradient(180deg,rgba(9,26,41,0),#0a1b2b 16px); }
@media (min-width:600px) { .match-screen .result-actions { bottom:-20px; } }

@media (max-width:760px) {
    .lobby-quick { padding:0 8px 6px; gap:5px; }
    .lobby-quick-btn { font-size:11.5px; }
    .assembly-tools { margin-top:8px; gap:6px; }
    .assembly-tool { padding:7px 12px; }
    .assembly-summary { flex-basis:100%; font-size:10.5px; }
    .assembly-start { gap:8px; }
    .assembly-start .assembly-go { flex:1 1 auto; min-width:0; }
    .assembly-start small { flex:1 1 100%; font-size:10.5px; text-align:center; }
    .table-modal { padding:18px; }
    .invite-code b { font-size:30px; }
}
