:root { --sidebar:0px; --shell-width:1480px; --gutter:clamp(16px,4vw,72px); }
.lobby-languages { min-width:0; margin:0; border:0; padding:0; }
.lobby-languages legend { margin:0 0 7px; padding:0; font-size:14px; }
.lobby-languages div { display:flex; flex-wrap:wrap; gap:6px; }
.lobby-languages label { position:relative; cursor:pointer; }
.lobby-languages input { position:absolute; opacity:0; }
.lobby-languages span { display:block; padding:9px 14px; border:1px solid var(--border); border-radius:8px; color:var(--muted); font-size:14px; }
.lobby-languages :checked + span { background:#243118; border-color:var(--lime); color:var(--lime); }
.lobby-languages :focus-visible + span { outline:2px solid white; outline-offset:2px; }
.community-banner { position:relative; isolation:isolate; overflow:hidden; display:grid; align-items:center; min-height:clamp(200px,20vw,305px); padding:clamp(22px,3.6vw,55px); margin:20px 0 10px; background:#19200e; border:1px solid #39442d; border-radius:12px; }
.community-banner img { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; object-position:72% 36%; }
.community-banner::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#0f140de8 0%,#10150d9c 38%,transparent 73%); }
.community-banner h1 { margin:0; color:#fafcf5; font:850 italic clamp(38px,5vw,75px)/.97 "Arial Black","Segoe UI",sans-serif; letter-spacing:-.055em; }
.community-banner em { color:var(--lime); }
.community-banner p { max-width:38ch; margin:12px 0 0; color:#ecf0e3; font-size:clamp(13px,1.2vw,17px); }
@media(max-width:650px) {
  .community-banner { min-height:178px; margin-top:12px; padding:18px; }
  .community-banner img { object-position:67% center; }
  .community-banner::after { background:linear-gradient(90deg,#10140ee8 3%,#10150da8 48%,transparent 90%); }
  .community-banner p { max-width:23ch; line-height:1.3; }
}
.review-reminder { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:12px; margin:12px 0; border-radius:8px; background:#24301f; }
.review-reminder .btn-primary { margin-left:auto; }
.cs2-modes { display:inline-flex; padding:4px; margin:0 0 16px; gap:4px; background:#1a1e19; border:1px solid #394234; border-radius:9px; }
.cs2-modes button { min-width:92px; padding:7px 16px; border-radius:6px; font-size:14px; font-weight:700; color:var(--muted); }
.cs2-modes button[aria-pressed="true"] { background:var(--lime); color:#16200d; }
.cs2-modes button:focus-visible, .review-stars input:focus-visible + span, .review-qualities input:focus-visible + span { outline:2px solid white; outline-offset:2px; }
#app-dialog[data-view="lobby"] { width:min(900px,calc(100% - 22px)); }
#app-dialog #stack-stage { margin-top:0; }
#app-dialog .stage-title { font-size:clamp(37px,5.8vw,68px); line-height:.98; }
.lobby-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; margin:3px 0 14px; overflow:hidden; border:1px solid #3c4536; border-radius:7px; background:#3c4536; }
.lobby-facts > div { min-width:0; padding:8px 11px 9px; background:#22291f; }
.lobby-facts dt { display:flex; align-items:center; gap:6px; margin:0 0 4px; color:#c1cdb9; font-size:12px; font-weight:550; line-height:1.4; }
.lobby-facts dt svg { width:15px; height:15px; flex:none; color:#b8e978; }
.lobby-facts dd { margin:0; color:#f4f8ed; font-size:15px; font-weight:680; line-height:1.35; overflow-wrap:anywhere; }
.lobby-facts .mic-fact{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.mic-fact dt,.mic-fact dd{margin:0}
.mic-fact dd{font-size:13px}
.server-tags { display:flex; flex-wrap:wrap; align-items:center; gap:4px; }
.server-tags span { display:inline-block; padding:2px 7px; border:1px solid #53633f; border-radius:5px; background:#303c26; color:#e9facf; font-size:13px; line-height:1.4; }
.faceit-choices { min-width:0; margin:0; padding:9px 12px 12px; border:1px solid #424d39; border-radius:8px; }
.faceit-choices legend { padding:0 4px; font-size:14px; font-weight:650; }
.server-hint { display:flex; justify-content:space-between; align-items:baseline; gap:8px; margin:0 0 9px; color:#c0c8b8; font-size:12px; line-height:1.4; }
.server-hint output { flex:none; color:var(--lime); font-variant-numeric:tabular-nums; }
.server-checkboxes { display:flex; flex-wrap:wrap; gap:5px; }
.server-checkboxes label { display:inline-flex; align-items:center; gap:6px; min-height:32px; padding:5px 8px; border-radius:5px; border:1px solid #454c40; color:#e2e8da; font-size:13px; cursor:pointer; }
.server-checkboxes small { font-size:11px; }
.server-checkboxes input { margin:0; accent-color:var(--lime); }
.server-checkboxes label:has(:checked) { border-color:#93b756; background:#303c23; color:#e2ffb4; }
.server-checkboxes label:has(:disabled) { color:#a6aba3; cursor:default; }
@media(min-width:651px) { .match-controls.auto-server { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .auto-server .pref-control { grid-column:1/-1; } }
.lobby-facts dd:lang(en) { hyphens:auto; }
.community-banner > div { min-width:0; }
.community-banner h1:lang(kk) { font-size:clamp(32px,4.7vw,70px); }
@media(max-width:650px) { .community-banner h1:lang(en), .community-banner h1:lang(kk) { font-size:clamp(30px,7.2vw,42px); } }
.stage-body .lobby-facts { max-width:420px; margin:14px 0 0; }
#app-dialog .stage-tags { flex-wrap:wrap; }
#app-dialog .roster-head h3 { margin:0; }
.stage-seats .avatar { flex:none; width:30px; height:30px; }
.header-profile { position:relative; }
.review-count { background:var(--lime); color:#19210e; border-radius:20px; padding:1px 5px; font-size:10px; font-weight:700; }
.header-profile .review-count { position:absolute; right:-4px; top:0; }
.review-list,.quality-summary { list-style:none; margin:0; padding:0; }
.teammate-review { padding:14px 0; border-top:1px solid var(--border); }
.review-identity,.teammate-review.saved,.friend-row { display:flex; gap:12px; align-items:center; }
.review-identity .avatar,.friend-row .avatar { flex:none; width:34px; height:34px; }
.teammate-review.saved { flex-wrap:wrap; justify-content:space-between; }
.teammate-review.saved>span { color:var(--lime); }
.review-stars,.review-qualities { border:0; padding:0; margin:12px 0; min-width:0; }
.review-stars legend,.review-qualities legend { color:#b9c4b4; font-size:13px; margin-bottom:4px; padding:0; }
.review-stars label,.review-qualities label { display:inline-block; position:relative; cursor:pointer; }
.review-stars input,.review-qualities input { position:absolute; opacity:0; width:1px; height:1px; }
.review-stars span { display:block; font-size:31px; line-height:1.4; padding:0 3px; color:#93978e; }
.review-stars :checked + span,.review-stars label:has(~ label input:checked) span { color:var(--lime); }
.review-qualities label { margin:2px 5px 2px 0; }
.review-qualities span,.quality-summary li { display:inline-block; padding:4px 9px; border:1px solid #475040; border-radius:6px; font-size:12px; }
.review-qualities :checked + span { color:var(--lime); border-color:var(--lime); }
.quality-summary { display:flex; flex-wrap:wrap; gap:6px; }
.friend-row { padding:12px 0; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.friend-row .slot-copy { flex:1 1 130px; }
.steam-friend strong{flex:1;min-width:0;overflow-wrap:anywhere}
.steam-friend:hover,.steam-friend:focus-visible{color:var(--lime)}
.steam-friend svg{width:16px;height:16px}
.workspace{margin-left:0}
.main-frame{max-width:var(--shell-width);padding:0 var(--gutter) 64px}
.stack-header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:clamp(16px,4vw,70px);height:74px;padding:0 max(var(--gutter),calc((100vw - var(--shell-width)) / 2 + var(--gutter)));background:#111311}
.stack-brand-area,.header-brand,.header-account,.header-profile{display:flex;align-items:center}
.stack-brand-area{gap:12px}
.stack-header #nav-toggle{width:30px;height:38px;display:grid;place-items:center;padding:0;color:#a7aea3}
.header-brand{gap:7px;white-space:nowrap}
.header-brand img{width:31px;height:31px}
.header-brand span{font:bold italic 27px/1 "Arial Black","Segoe UI",sans-serif;letter-spacing:-2px}
.header-brand i{color:var(--lime)}
.geo-credit{display:block;margin-top:8px;font-size:11px;color:#a8b39e}
#site-language{max-width:92px;border:1px solid var(--border);border-radius:5px;background:#1c211b;color:var(--text);padding:6px 3px;font:inherit;font-size:12px}
@media(max-width:410px){.stack-header .steam-login [data-user-label]{max-width:12ch}.stack-header #site-language{max-width:75px;font-size:11px}}
.header-account{gap:14px;min-width:0}
.header-profile{justify-content:center;width:34px;height:34px;color:#a4ada0}
.header-profile[aria-current="page"]{color:var(--lime)}
.stack-header .header-sections{display:flex;align-self:stretch;align-items:stretch;gap:24px;padding:0;background:none;border:0}
.stack-header .header-sections a{display:flex;align-items:center;color:#bdc3b9;border-bottom:3px solid transparent;font-size:15px;font-weight:650}
.stack-header .header-sections a[aria-current="page"]{color:var(--lime);border-color:var(--lime)}
.stack-header .steam-login{min-width:0}
.stack-header [data-user-label]{overflow:hidden;text-overflow:ellipsis;max-width:22ch}
.side{width:min(280px,90vw);transform:translateX(-100%);visibility:hidden;transition:transform .16s ease,visibility 0s linear .16s;overflow:hidden}
.side.is-open{transform:translateX(0);visibility:visible;transition-delay:0s}
.drawer-head{display:flex;justify-content:space-between;align-items:center;min-height:56px;padding:6px 12px 6px 20px;border-bottom:1px solid var(--border)}
.side .navigation{min-height:0}
@media(max-height:520px){.side{overflow-y:auto}.side .navigation,.side .side-tail{flex:none}.side .navigation{padding-block:12px}}
.nav-backdrop{position:fixed;inset:0;z-index:4;background:#050605bc}
.drawer-close{border-radius:5px;color:#d2d9cf;font-size:23px;width:44px;height:44px}
.drawer-close:hover,.header-profile:hover{background:#272c25}
.main-frame .view-head{margin-top:26px}
.stack-game-tabs.filter-row{gap:4px;flex-wrap:nowrap;max-width:100%;overflow-x:auto;scrollbar-width:thin;padding:8px 0;margin:0;border-bottom:1px solid #2b3028}
.stack-game-tabs .game-chip{flex:none;border:1px solid transparent;background:transparent;color:#a6ada2;border-radius:5px;padding:7px 12px;min-height:36px;font-size:12px}
.stack-game-tabs .game-chip:hover{background:#1e231d;color:#f2f5ec}
.stack-game-tabs .game-chip[aria-pressed="true"]{background:#303929;border-color:#4b5a3c;color:#d8f7b1}
#stack-stage{margin-top:16px;isolation:isolate;overflow:hidden;border:1px solid #373a31;border-radius:12px;background:#131613;--scene-color:#574020}
.stage-hero{position:relative;isolation:isolate;overflow:hidden;background:var(--scene-color)}
.stage-hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0b0e0bef 0%,#0c0e0cb5 32%,#0b0d0b12 65%),linear-gradient(0deg,#0b0e0b65,transparent 32%);pointer-events:none}
.stage-art{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:70% 42%}
#stack-stage[data-theme="dota"]{--scene-color:#422520}
#stack-stage[data-theme="val"]{--scene-color:#562830}
#stack-stage[data-theme="pubg"]{--scene-color:#584821}
.stage-emblem{position:absolute;z-index:-2;right:12%;top:6%;height:88%;opacity:.52;transform:rotate(-7deg);filter:drop-shadow(18px 10px 30px #0006)}
.stage-body{padding:22px clamp(18px,3vw,46px) 25px;color:#f6f7f1}
.stage-tags,.stage-game,.roster-head{display:flex;align-items:center}
.stage-tags{gap:9px;min-height:24px}
.stage-game,.stage-mode{font-size:12px;font-weight:750;line-height:1.2}
.stage-game{gap:7px}
.stage-game img{width:22px;height:22px}
.stage-mode{color:#e3d4b8;padding-left:9px;border-left:1px solid #817e70}
.mode-tag[data-cs-mode="FACEIT"],.stage-mode[data-cs-mode="FACEIT"]{--mode-ink:#ffbf95;--mode-bg:#402414;--mode-border:#935128}
.mode-tag[data-cs-mode="Premier"],.stage-mode[data-cs-mode="Premier"]{--mode-ink:#ded8ff;--mode-bg:#30294d;--mode-border:#7362b3}
:is(.mode-tag,.stage-mode):is([data-cs-mode="FACEIT"],[data-cs-mode="Premier"]){display:inline-flex;align-items:center;padding:4px 9px;border:1px solid var(--mode-border);border-left-width:3px;border-radius:6px;background:var(--mode-bg);color:var(--mode-ink);font-size:12px;font-weight:750;line-height:1.2}
.lobby-servers{margin:0 0 10px;color:var(--muted);font-size:13px}
.lobby-servers summary{width:fit-content;padding:4px 2px;cursor:pointer}
.lobby-servers .server-tags{margin-top:5px}
[data-repeated-time]:empty{display:none}
.stage-demo{font-size:10px;color:#b1b1a9;border:1px solid #56594f;border-radius:3px;padding:2px 5px}
.stage-title{font:950 italic clamp(40px,4.8vw,80px)/.94 "Arial Black","Segoe UI",Arial,sans-serif;letter-spacing:-.067em;text-transform:uppercase;margin:17px 0 12px;max-width:73%}
.stage-title span,.stage-title em{display:block}
.stage-title em{color:var(--lime);font-style:inherit}
.stage-description{display:block;width:fit-content;max-width:64%;font-size:clamp(15px,1.3vw,21px);font-weight:650;overflow-wrap:anywhere}
.stage-description:hover,.roster-open:hover{text-decoration:underline}
.stage-roster{border-top:1px solid #44483a;padding:13px clamp(12px,1.8vw,28px) 17px;background:linear-gradient(120deg,#1b1e19,#141713)}
.roster-head{gap:10px;margin-bottom:10px}
.roster-head h2{margin:0;font-size:20px;letter-spacing:-.6px;font-weight:750}
.roster-count{color:#adc098;font:600 12px/1.3 "Segoe UI",sans-serif}
.roster-open{margin-left:auto;color:#d8dfce;font-size:12px;font-weight:650}
.stage-seats{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0}
.seat-item{flex:1 1 11%;min-width:80px;max-width:310px}
.seat-tile{display:flex;align-items:center;position:relative;min-height:69px;height:100%;min-width:0;gap:9px;padding:8px;border-radius:6px;border:1px solid #41473c;background:#252b23;overflow:hidden}
.seat-portrait,.seat-initials,.seat-plus{width:clamp(34px,4.1vw,62px);height:clamp(38px,4.4vw,63px);flex:none;border-radius:4px;object-fit:cover}
.seat-plus,.seat-initials{display:grid;place-items:center;font-weight:800;color:#d8e3cf;background:#384036}
.seat-role,.seat-name{display:block;overflow-wrap:anywhere}
.seat-role{color:#b4bdac;font-size:11px;line-height:1.15}
.seat-name{margin-top:4px;font-size:clamp(13px,1.25vw,20px);font-style:italic;font-weight:780;letter-spacing:-.45px;line-height:1.08}
.join-cta{min-height:44px;padding:10px 16px;font-size:15px;line-height:1.25;font-weight:700;gap:9px}
.join-cta svg,.player-checks svg{width:16px;height:16px}
.lobby-card .card-bottom{flex-wrap:wrap}
.lobby-card .join-cta{margin-inline-start:auto}
.seat-item:has(.seat-vacant){flex:1.4 1 152px;min-width:150px}
.seat-vacant{justify-content:flex-start;background:var(--lime);color:#161c0d;border-color:transparent;padding:9px 12px}
.seat-vacant .seat-role{color:#38480c}
.seat-vacant .seat-name{font-size:15px;font-style:normal;font-weight:700;line-height:1.25;letter-spacing:0}
.seat-plus{color:var(--lime);font:500 31px/1 "Segoe UI",sans-serif;background:#354326}
.role-filter{margin-bottom:14px;max-width:300px}
.role-filter select{font-size:13px}
.lobby-quick-grid, .rating-bounds {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;
}
.lobby-quick-grid>.field { justify-content:flex-end; min-width:0; }
.lobby-quick-grid input:not([type="checkbox"]):not([type="radio"]), .lobby-quick-grid select { width:100%; }
.lobby-rating { display:flex; align-items:flex-end; flex-wrap:wrap; gap:8px 14px; min-width:0; margin:0; padding:7px 12px 12px; border:1px solid var(--border); border-radius:8px; }
.lobby-rating>legend { padding:0 4px; color:var(--text); font-size:13px; font-weight:650; }
.rating-units { display:inline-flex; gap:2px; padding:3px; border:1px solid #3c4538; border-radius:7px; background:#151815; }
.rating-units label { position:relative; cursor:pointer; }
.rating-units input { position:absolute; opacity:0; }
.rating-units span { display:block; padding:5px 10px; border-radius:4px; color:var(--muted); font-size:13px; }
.rating-units :checked + span { background:#34432c; color:var(--lime); }
.rating-units :focus-visible + span { outline:2px solid white; outline-offset:1px; }
.rating-bounds { flex:1 1 160px; min-width:0; margin:0; padding:0; border:0; gap:8px; }
.rating-bounds .field { gap:3px; }
.lobby-extras { margin-top:15px; border-block:1px solid var(--border); }
.lobby-extras summary { padding:11px 0; cursor:pointer; color:#bdc6b6; font-size:13px; }
#app-dialog[data-view="stack-chat"] { width:min(560px,calc(100% - 32px)); height:min(790px,90dvh); max-height:none; padding:0; overflow:hidden; background:#131713; }
[data-view="stack-chat"] .dialog-shell, [data-view="stack-chat"] .dialog-body, [data-stack-chat] { display:flex; flex-direction:column; min-height:0; }
[data-view="stack-chat"] .dialog-shell { height:100%; }
[data-view="stack-chat"] .dialog-shell > .dialog-head { display:none; }
[data-view="stack-chat"] .dialog-body, [data-stack-chat] { flex:1; }
.chat-nav { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; justify-items:center; flex:none; min-height:51px; padding:0 12px; border-bottom:1px solid #32392e; background:#181c17; }
.chat-nav a, .chat-roster { display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; }
.chat-nav > a:first-child svg { transform:rotate(180deg); }
.chat-nav .header-brand img { display:block; width:21px; height:21px; }
.chat-nav .header-brand span { font-size:20px; }
.chat-room { display:flex; align-items:center; gap:12px; flex:none; padding:14px 16px; border-bottom:1px solid #343c30; background:#1c221a; }
.chat-cover { width:52px; height:58px; flex:none; object-fit:cover; object-position:72% center; border-radius:8px; }
.chat-room > div { min-width:0; }
.chat-room h2 { margin:4px 0 2px; font-size:20px; letter-spacing:-.035em; line-height:1.15; overflow-wrap:anywhere; }
.chat-room .stage-mode { display:inline-block; padding:2px 7px; font-size:11px; }
.chat-room small { display:flex; align-items:center; gap:4px; font-size:12px; color:#b7c2ae; }
.chat-room small svg { width:13px; height:13px; }
.chat-roster { margin-left:auto; color:#cbd6bb; }
.chat-scroll { position:relative; flex:1; min-height:0; padding:12px 16px; overflow:auto; overscroll-behavior:contain; overflow-anchor:none; }
.chat-scroll [data-older] { display:flex; margin:0 auto 12px; }
.chat-history { display:flex; flex-direction:column; gap:11px; }
.chat-divider { display:flex; align-items:center; gap:9px; font-size:11px; font-weight:600; color:#aab5a2; }
.chat-divider::before, .chat-divider::after { content:""; flex:1; height:1px; background:#363f32; }
.chat-unread { color:#c1df96; }
.chat-unread::before, .chat-unread::after { background:#405136; }
.chat-message { display:flex; align-items:flex-start; gap:8px; align-self:flex-start; max-width:88%; min-width:0; }
.chat-message .avatar { flex:none; width:29px; height:29px; border:1px solid #ffffff28; }
.chat-copy { min-width:0; }
.chat-message header { display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 8px; margin-bottom:3px; line-height:1.3; }
.chat-message strong { font-size:12px; }
.chat-message time { color:#aab5a4; font-size:11px; font-variant-numeric:tabular-nums; }
.chat-message p { margin:0; padding:8px 11px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; line-height:1.4; border:1px solid #353e33; background:#252c24; border-radius:2px 12px 12px; }
.chat-message.mine { align-self:flex-end; }
.chat-message.mine header { justify-content:flex-end; }
.chat-message.mine p { color:#edf7df; background:#304323; border-color:#495d36; border-radius:12px 2px 12px 12px; }
[data-chat-compose] { display:grid; grid-template-columns:minmax(0,1fr) 46px; align-items:end; flex:none; gap:6px 8px; padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px)); border-top:1px solid #373e32; background:#1b201a; }
[data-chat-compose] textarea { display:block; width:100%; min-height:44px; max-height:100px; padding:10px 12px; border-radius:9px; border:1px solid #454d3e; background:#242a21; color:var(--text); font:inherit; font-size:16px; line-height:22px; resize:none; }
[data-chat-compose] textarea::placeholder { color:#b5beab; }
[data-chat-compose] button { height:44px; padding:0; border-radius:9px; }
[data-chat-compose] .form-error { grid-column:1/-1; margin:0; }
[data-chat-status] { text-align:center; }
[data-chat-status]:empty { margin:0; }
@media(max-width:650px) {
  #app-dialog[data-view="stack-chat"] { position:fixed; inset:var(--chat-viewport-top,0px) auto auto 0; margin:0; width:100vw; max-width:100vw; height:var(--chat-viewport-height,100dvh); border:0; border-radius:0; }
  body:has(#app-dialog[open][data-view="stack-chat"]) { overflow:hidden; }
  .chat-nav { padding-top:env(safe-area-inset-top,0px); }
}
@media(max-height:460px) {
  .chat-room { padding-block:4px; }
  .chat-cover { height:42px; width:39px; }
  .chat-nav { min-height:44px; }
}
.party-count { align-self:end; padding:9px 0; color:var(--lime); font-size:14px; font-weight:650; }
.dota-positions { min-width:0; margin:0; padding:10px 12px; border:1px solid var(--border); border-radius:8px; }
.dota-positions>legend { padding:0 4px; font-size:13px; font-weight:650; }
.dota-positions .lobby-languages { margin-top:10px; }
.dota-positions .lobby-languages legend { font-size:12px; }
.dota-positions .lobby-languages span { padding:5px 8px; }
.dota-positions input:disabled + span { opacity:.46; cursor:default; }
.club-location { min-width:0; margin:0; padding:10px 12px 12px; border:1px solid var(--border); border-radius:8px; }
.club-location legend { padding:0 4px; font-size:13px; font-weight:650; }
.lobby-extras[open] .form-grid { padding-bottom:12px; }
@media(max-width:480px) {
  #app-dialog[data-view="new-lobby"] { padding:16px; }
  .lobby-quick-grid { gap:9px; }
  .lobby-quick-grid .field:has([name="startsAt"]), .lobby-quick-grid .field:has([name="playFormat"]) { grid-column:1/-1; }
  .lobby-quick-grid .lobby-languages span { padding:7px 9px; }
}
.slot-list,.request-list{display:grid;gap:6px;list-style:none;margin:9px 0 16px;padding:0}
.slot-line,.request-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 14px;padding:9px 11px;border:1px solid #363c32;border-radius:7px;background:#20241f}
.slot-line.is-open{border-color:#566b3b}
.slot-copy{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.slot-copy small{color:var(--muted)}
#club-directory{margin:32px 0 12px;padding:24px 0 0;border-top:1px solid var(--border);scroll-margin-top:90px}
#club-directory h2{margin:0;font-size:clamp(21px,3vw,30px)}
#club-directory p{margin:6px 0 16px;color:var(--muted)}
#club-directory ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;padding:0;list-style:none}
#club-directory a{display:grid;gap:4px;height:100%;padding:16px;border:1px solid var(--border);border-radius:9px;background:#1a1d1a;color:inherit}
#club-directory a:hover,#club-directory a:focus-visible{border-color:var(--lime)}
#club-directory small,#club-directory a>span{color:#b9c2b8}
#club-directory b{margin-top:11px;font-size:13px;color:var(--lime)}
.request-actions,.player-checks{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.request-row .slot-copy{flex:1 1 100px}
.player-checks .btn-secondary{min-height:40px}
.stack-profile:not([hidden]){display:grid;gap:6px}
.stack-profile>small{color:var(--muted)}
.remove-member{color:#ffd0c8}
.confirm-remove{background:#81392f;color:#fff;border-color:#ab584a}
.confirm-remove:hover{background:#924438}
.mic-choice{display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:44px;border:1px solid #414b38;border-radius:7px;color:#e6eddd;cursor:pointer}
.mic-choice input{accent-color:var(--lime);width:18px;height:18px;flex:none}

@media(min-width:1500px){.stage-body{padding-block:32px}.stage-title{margin-block:22px 17px}}
@media(max-width:860px){
  .stack-header{height:62px;gap:16px}
  .stage-title{font-size:clamp(42px,6.8vw,58px)}
  .seat-item{min-width:65px}
  .seat-tile{gap:6px}.seat-portrait,.seat-initials,.seat-plus{width:31px;height:40px}
}
@media(max-width:650px){
  .stack-header{height:auto;min-height:82px;grid-template-columns:1fr auto;grid-template-rows:48px 34px;gap:0 8px}
  .stack-brand-area{gap:4px}.header-brand img{width:25px;height:25px}.header-brand span{font-size:21px}.header-account{gap:3px}.header-profile{display:none}
  .stack-header .header-sections{grid-column:1/-1;grid-row:2;gap:22px}
  .stack-header .header-sections a{font-size:12px;min-height:34px}
  .header-account{grid-row:1;grid-column:2}
  .stack-game-tabs.filter-row{gap:1px;margin-inline:0;padding-block:5px}
  .stack-game-tabs .game-chip{min-height:34px;padding:5px 7px;gap:4px;font-size:11px}
  #stack-stage{margin-top:10px;border-radius:8px}
  .stage-body{padding:14px 13px 16px}
  .stage-art{object-position:74% center}
  .stage-hero::after{background:linear-gradient(90deg,#0b0e0bf5,#0b0e0bb0 44%,#0b0e0b19 84%),linear-gradient(0deg,#0c100ae8,transparent 45%)}
  .stage-title{max-width:90%;font-size:clamp(36px,8.5vw,50px);margin:17px 0 13px}
  .stage-description{font-size:14px;max-width:83%}
  .stage-game,.stage-mode{font-size:11px}
  .stage-roster{padding:11px 10px 12px}.roster-head{margin-bottom:7px}
  .roster-head h2{font-size:17px}.roster-count,.roster-open{font-size:11px}
  .stage-seats{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:5px}
  .seat-item{min-width:0;max-width:none}
  .seat-item:has(.seat-vacant){min-width:0;grid-column:span 2}
  .seat-tile.seat-vacant{min-height:52px;padding:8px 10px}
  .player-checks{flex-basis:100%}
  .seat-tile{padding:6px;gap:5px;min-height:46px}
  .seat-name{font-size:12px}.seat-role{font-size:10px}
  .seat-plus,.seat-initials,.seat-portrait{width:22px;height:30px}
  .seat-plus{font-size:22px}
  .role-filter{max-width:none}
}
@media(max-width:400px){.seat-item:has(.seat-vacant){grid-column:1/-1}.lobby-card .join-cta{width:100%}.stage-seats{grid-template-columns:repeat(3,minmax(0,1fr))}.stage-game img{width:18px;height:18px}}
@media(min-width:651px) and (max-width:940px){
  .stack-header{height:auto;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:49px 33px;gap:0 12px}
  .stack-header .header-sections{grid-row:2;grid-column:1/-1;gap:22px}
  .stack-header .header-sections a{min-height:33px}
  .header-account{grid-row:1;grid-column:2}
}
@media(max-width:385px){
  .stack-header{padding-inline:10px;column-gap:4px}
  .stack-header #nav-toggle{width:25px}
  .header-brand img{display:none}
  .header-brand span{font-size:18px}
}
@media(max-width:480px){
  .stack-header .steam-login{position:relative;justify-content:center;width:36px;height:34px;padding:5px}
  .stack-header .steam-login [data-user-label]{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}
  .header-account{gap:6px;min-width:max-content}
  .lobby-facts > div{padding:7px 8px}
}

.mobile-stack-bar, .mobile-stage-heading, .compact-stack-facts, .mobile-roster,
.application-intro, .application-summary { display:none; }
.lobby-servers summary > svg, .applicant-row .request-actions svg { display:none; }
.stack-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.stack-person { display:flex; min-width:0; align-items:center; gap:10px; }
.stack-person .avatar, .applicant-row > .avatar { width:36px; height:36px; flex:none; border:1px solid #ffffff30; font-size:13px; }
.stack-requests .dialog-head small { margin-inline-start:4px; color:#acb6a4; font-size:13px; }
.app-profile-card { padding:12px; border:1px solid #3c4538; border-radius:8px; background:#20251e; }
.app-profile-card .player-checks { margin-top:5px; }
[data-form="slot-application"] h3 { margin:16px 0 8px; font-size:18px; }
.mic-choice > span { flex:1; }
.mic-choice small { display:block; color:#bbc5b2; }
.mic-choice:has(:checked) { border-color:#809958; background:#283020; }
.mic-status {
  display:inline-flex; align-items:center; gap:6px; justify-self:start; max-width:100%;
  margin-top:3px; padding:3px 8px; border:1px solid #46503e; border-radius:7px;
  color:#c1c9bc; font-size:14px; line-height:1.35; font-weight:600;
}
.mic-status.has-mic, .mic-status.no-mic { font-size:16px; font-weight:700; }
.mic-status.has-mic { background:#27371e; border-color:#526c38; color:var(--lime); }
.mic-status.no-mic { background:#381e21; border-color:#89434b; color:#ff939b; }
.mic-status svg { width:17px; height:17px; }
.chat-inbox-link { position:relative; display:grid; place-items:center; width:38px; height:44px; }
.chat-inbox-link svg { fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round; }
.chat-inbox-link b, .inbox-row b { background:var(--lime); color:#17200c; border-radius:20px; font-size:11px; padding:1px 5px; }
.chat-inbox-link b { position:absolute; right:0; top:1px; }
.inbox-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:1px solid var(--border); border-radius:8px; }
.inbox-row small { display:block; color:var(--muted); }
@media (max-width:650px) {
  .mobile-stack-bar:has(.chat-inbox-link) { grid-template-columns:40px minmax(0,1fr) 40px 40px; }
}
.application-mic .mic-choice strong { font-size:17px; line-height:1.35; }
.application-mic .mic-choice:has(:checked) { background:#27371e; border-color:#78994e; }
.application-mic .mic-choice:has(:checked) :is(strong,svg) { color:var(--lime); }

@media (max-width:650px) {
  #app-dialog:is([data-view="lobby"],[data-view="slot-application"]) {
    inset:0; margin:0; width:100%; max-width:none; height:100%; height:100dvh; max-height:none;
    padding:0; border:0; border-radius:0; background:#121510; overscroll-behavior:contain;
  }
  body:has(#app-dialog[open]:is([data-view="lobby"],[data-view="slot-application"])) { overflow:hidden; }
  :is([data-view="lobby"],[data-view="slot-application"]) .dialog-shell { min-height:100%; display:flex; flex-direction:column; }
  :is([data-view="lobby"],[data-view="slot-application"]) .dialog-shell > .dialog-head { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); margin:0; }
  :is([data-view="lobby"],[data-view="slot-application"]) .dialog-shell > .dialog-head .dialog-close { display:none; }
  .mobile-stack-bar {
    display:grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; justify-items:center;
    padding:env(safe-area-inset-top,0px) 12px 0; min-height:53px; background:#191c16; border-bottom:1px solid #343b2e;
  }
  .mobile-stack-bar > :is(a,button) { display:flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; }
  .mobile-stack-bar .header-brand img { display:block; width:23px; height:23px; }
  .mobile-stack-bar .header-brand span { font-size:22px; }
  .mobile-stack-bar .avatar { width:29px; height:29px; }
  [data-view="lobby"] .dialog-body { padding:0 16px 12px; }
  #app-dialog #stack-stage { margin:0; border:0; border-radius:0; overflow:visible; background:transparent; }
  #stack-stage .stage-hero { margin-inline:-16px; border-radius:0; }
  #stack-stage .stage-body { padding:15px 16px; }
  #stack-stage .stage-hero::after { background:linear-gradient(90deg,#0c110af2 4%,#0e1209be 46%,#18180b39 92%); }
  #stack-stage .stage-art { object-position:72% 37%; }
  #stack-stage .stage-title, #stack-stage .lobby-facts, #stack-stage .stage-seats, #stack-stage .member-list,
  [data-view="lobby"] .desktop-host, .stage-game img, .application-desktop { display:none; }
  #stack-stage .stage-tags { gap:8px; }
  #stack-stage .stage-mode { order:-1; }
  .mobile-stage-heading { display:block; }
  .mobile-stage-heading h2, .application-intro h2 { margin:9px 0 8px; font-size:clamp(27px,7.3vw,36px); line-height:1.08; letter-spacing:-.045em; overflow-wrap:anywhere; }
  .stack-time { display:inline-flex; align-items:center; gap:6px; font-weight:650; font-size:13px; }
  .stack-time small { font-size:11px; font-weight:500; color:#c2cab8; white-space:nowrap; }
  .compact-stack-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px; padding:13px 0; border-bottom:1px solid #343b2f; }
  .compact-stack-facts > span { display:flex; align-items:flex-start; gap:7px; min-width:0; font-size:13px; line-height:1.4; }
  .compact-stack-facts svg, .stack-time svg { width:15px; height:15px; color:#b9c79e; margin-top:1px; }
  #stack-stage .stage-roster { border:0; background:transparent; padding:14px 0 0; }
  #stack-stage .roster-head, .stack-requests .dialog-head { justify-content:space-between; margin:0 0 7px; }
  #stack-stage .roster-head h3, .stack-requests h3 { font-size:20px; line-height:1.2; letter-spacing:-.04em; }
  .roster-count { font-size:12px; }
  .mobile-roster { display:block; padding:0; margin:0; background:#1e241b; border:1px solid #3b4434; border-radius:10px; list-style:none; }
  .mobile-roster > li + li { border-top:1px solid #363e30; }
  .mobile-member { padding:10px 12px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 10px; }
  .mobile-member .slot-copy, .applicant-row .slot-copy, .app-profile-card .slot-copy { line-height:1.35; }
  .mobile-member strong, .applicant-row strong, .app-profile-card strong { font-size:16px; }
  .member-links summary, .vacancy-row, .lobby-servers summary { cursor:pointer; }
  .member-links summary { display:flex; align-items:center; justify-content:flex-end; min-height:44px; font-size:12px; color:#c5cebc; }
  .member-links[open] { grid-column:1/-1; }
  .member-links[open] summary { justify-content:flex-start; }
  .member-links summary::after, #stack-stage .lobby-servers summary::after { content:""; width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); margin:-3px 3px 0 7px; }
  .member-links[open] summary::after, #stack-stage .lobby-servers[open] summary::after { transform:rotate(225deg); margin-top:3px; }
  :is(.member-links,.mobile-roster,.lobby-servers) summary::-webkit-details-marker { display:none; }
  .vacancy-row { display:flex; align-items:center; gap:9px; min-height:44px; padding:6px 12px; font-size:13px; color:#d8e2ca; }
  div.vacancy-row { cursor:default; }
  .vacancy-plus { display:grid; place-items:center; flex:none; width:26px; height:26px; border:1px dashed #687454; border-radius:6px; color:#c8daab; font-size:17px; }
  .vacancy-join { margin-left:auto; color:var(--lime); font-size:12px; font-weight:650; }
  .vacancy-options { padding:0 12px 7px; }
  .vacancy-options a { min-height:44px; display:flex; align-items:center; justify-content:space-between; border-top:1px solid #394331; }
  #stack-stage .lobby-servers { margin:0; padding-bottom:4px; }
  #stack-stage .lobby-servers summary { display:flex; align-items:center; width:100%; min-height:44px; padding:4px 0; }
  #stack-stage .lobby-servers summary::after { margin-left:auto; }
  #stack-stage .lobby-servers summary > svg { display:block; width:15px; height:15px; margin-right:7px; }
  .stack-requests .dialog-head button { background:transparent; border:0; min-width:44px; min-height:44px; padding:0; }
  .stack-requests .dialog-head button span { display:none; }
  .stack-requests .request-list { margin:0; gap:8px; }
  .applicant-row { display:grid; grid-template-columns:auto minmax(0,1fr); gap:0 10px; padding:12px; border-radius:10px; background:#1e241b; }
  .applicant-row .player-checks, .applicant-row .request-actions { grid-column:1/-1; }
  :is(.applicant-row,.mobile-member,.app-profile-card) .player-checks { gap:0 14px; }
  :is(.applicant-row,.mobile-member,.app-profile-card) .player-checks a { min-height:44px; max-width:100%; padding:5px 0; border:0; background:transparent; font-size:13px; text-align:left; overflow-wrap:anywhere; }
  .player-checks .icon-external { width:14px; height:14px; }
  .applicant-row .request-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding-top:9px; border-top:1px solid #353d2f; margin-top:3px; }
  .applicant-row .request-actions button { min-height:44px; }
  .applicant-row .request-actions svg { display:block; width:15px; height:15px; }
  [data-view="lobby"] .dialog-shell > footer, .application-actions {
    position:sticky; bottom:0; z-index:1; margin:auto 0 0; padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px)); border-top:1px solid #394031; background:#191d16;
  }
  [data-view="lobby"] .dialog-shell > footer > :is(a,button) { min-height:44px; flex:1 1 auto; }
  [data-view="lobby"] footer .stack-chat-link { background:#2a3321; border:1px solid #505e40; color:#f2f6ec; }
  [data-view="lobby"] footer .remove-member { flex:0 1 auto; padding-inline:6px; border:0; background:transparent; color:#e3bbb4; }
  [data-view="slot-application"] .dialog-body, [data-form="slot-application"] { display:flex; flex:1; flex-direction:column; }
  [data-form="slot-application"] { padding:0 16px; }
  .application-intro { display:block; }
  .application-back { display:inline-flex; align-items:center; gap:4px; min-height:44px; padding:0; font-size:13px; color:#c7d0bf; }
  .application-back svg { width:13px; transform:rotate(180deg); }
  .application-intro h2 { margin:0 0 16px; }
  .application-summary { display:block; border:1px solid #3e4736; border-radius:10px; background:#20261c; }
  .application-cover { display:flex; align-items:center; gap:11px; padding:12px; }
  .application-cover > img { width:50px; height:62px; flex:none; object-fit:cover; object-position:70% center; border-radius:5px; }
  .application-cover > div { min-width:0; }
  .application-cover .stage-tags { flex-wrap:wrap; font-size:11px; color:#d1dbc5; }
  .application-cover strong, .application-cover small { display:block; }
  .application-cover strong { margin:4px 0 1px; line-height:1.25; font-size:17px; }
  .application-cover small { color:#bdc7b1; }
  .application-summary .compact-stack-facts { border:0; border-top:1px solid #394232; padding:11px 12px; }
  .application-role { padding:0 12px 10px; margin:0; font-weight:650; }
  [data-form="slot-application"] .stack-profile { gap:0; }
  [data-form="slot-application"] h3 { margin:18px 0 7px; font-size:19px; letter-spacing:-.035em; }
  .app-profile-card { padding:12px 12px 2px; border-radius:10px; }
  .application-mic .mic-choice { min-height:58px; background:#20261b; }
  .application-mic .mic-choice > svg { width:17px; color:#bdcba5; }
  .application-mic input { width:21px; height:21px; }
  .application-note { margin:12px 0 16px; font-size:13px; color:#bbc5b2; }
  .application-actions { margin: auto -16px 0; }
  .application-actions [data-action="back-to-stack"] { display:none; }
  .application-actions .join-cta { width:100%; min-height:46px; margin:0; }
}
