:root { --kit-gold: #e9c56b; }
.hidden,.wardrobe-modal.hidden {display:none!important;}
.admin-page [hidden]{display:none!important;}
.room-flow-card{max-width:430px;}.room-flow-card input{background:#091612;border:1px solid #496450;color:white;border-radius:9px;padding:12px;width:100%;}.room-flow-card .primary{width:100%;margin-top:12px;}#roomFlowStatus{color:#e9c56b;}.result-actions{grid-template-columns:1fr 1fr!important;}#resultHome{grid-column:1/-1;background:transparent;border-color:#69756c;}
.auth-card{max-width:400px;padding:30px;}.auth-card h2{font-size:32px;margin-bottom:8px;}.auth-card p{font-size:14px;line-height:1.7;}.auth-card input{width:100%;background:#091612;border:1px solid #4a6659;border-radius:10px;padding:13px;color:#fff;font-size:19px;box-sizing:border-box;}.auth-card #authSubmit{width:100%;margin:12px 0;}.auth-card #authStatus{color:#e9c56b;}.account-row{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#bbcbbf;}.account-row button{padding:3px 8px!important;min-height:24px!important;height:auto!important;font-size:11px!important;}
.wardrobe-launch {display:flex;align-items:center;justify-content:space-between;width:100%;border:1px solid #e9c56b66!important;background:linear-gradient(110deg,#20251c,#101917)!important;color:#f7e4ac!important;padding:10px 14px!important;min-height:45px!important;font-size:14px!important;}
.wardrobe-modal {position:fixed;inset:0;background:#020806df;z-index:100;display:grid;place-items:center;padding:20px;backdrop-filter:blur(14px);}
.wardrobe-card {width:min(1000px,100%);max-height:92svh;overflow:auto;background:#101c1a;border:1px solid #344640;border-radius:24px;padding:28px;color:#f5f3e9;box-shadow:0 30px 100px #0009;}
.wardrobe-head {display:flex;justify-content:space-between;align-items:center;gap:18px;}
.wardrobe-head h2 {margin:4px 0;font-size:28px;}
.wardrobe-head small {color:var(--kit-gold);letter-spacing:2px;}
.wardrobe-layout {display:grid;grid-template-columns:240px 1fr;gap:28px;margin-top:20px;}
.character-stage {border-radius:18px;border:1px solid #385047;background:radial-gradient(ellipse at 50% 45%,#42614d,#111e1b 70%);display:flex;align-items:center;flex-direction:column;padding:16px;}
#characterPreview {position:relative;inset:auto;z-index:auto;background:transparent;width:200px;height:245px;flex-shrink:0;}
.custom-fields {display:grid;gap:12px;width:100%;font-size:13px;}
.custom-fields label {display:grid;gap:6px;}
.custom-fields select {width:100%;color:white;background:#172923;border:1px solid #456151;padding:10px;border-radius:9px;}
.club-filter {display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px;}
.club-filter button {font-size:13px;padding:9px 14px;min-height:38px;}
.club-filter button.active {border-color:var(--kit-gold);color:var(--kit-gold);background:#493d21;}
.shirt-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.shirt-card {text-align:right;min-height:180px;position:relative;padding:14px;background:#172722;border:1px solid #34483e;border-radius:14px;cursor:pointer;color:#f4f1e8;}
.shirt-card.selected {border-color:var(--kit-gold);box-shadow:inset 0 0 0 1px var(--kit-gold);}
.shirt-card:disabled {opacity:.68;cursor:not-allowed;}
.shirt-card .jersey {width:74px;height:80px;clip-path:polygon(25% 0,40% 8%,60% 8%,75% 0,100% 20%,85% 43%,75% 35%,75% 100%,25% 100%,25% 35%,15% 43%,0 20%);display:grid;place-items:center;margin:0 auto 12px;background:var(--shirt);color:var(--ink);font:bold 27px Arial;}
.shirt-card strong,.shirt-card small {display:block;}
.shirt-card small {font-size:12px;color:#d2dacf;margin-top:6px;}
.shirt-card progress {width:100%;height:5px;accent-color:var(--kit-gold);}
.wardrobe-note {font-size:12px;color:#b3c4b6;line-height:1.7;}
#wardrobeStatus {min-height:20px;color:var(--kit-gold);font-size:13px;}
.voice-control {position:absolute;top:86px;left:18px;z-index:15;display:grid;gap:4px;max-width:260px;}
#micToggle {background:#102921e8;border:1px solid #8bb99d;padding:8px 12px;color:#e2f3e7;min-height:38px;border-radius:24px;font-size:12px;}
#micToggle[aria-pressed=true] {background:#236644;border-color:#7cffa3;}
#voiceStatus {background:#071910c9;border-radius:7px;padding:5px 8px;font-size:11px;color:#dbe5db;}
#grenadeBase {position:absolute;bottom:calc(100% + 22px);left:50%;transform:translateX(-50%);width:70px;height:70px;min-height:0;padding:0;border-radius:50%;background:#273a22de;border:2px solid #e9c56b;color:white;touch-action:none;user-select:none;overflow:visible;box-shadow:0 0 25px #0006;}
#grenadeKnob {display:grid;place-items:center;width:100%;height:100%;font-size:26px;pointer-events:none;}
#grenadeCount {position:absolute;bottom:-8px;right:-5px;background:#e9c56b;color:#182014;border-radius:12px;padding:2px 7px;font:bold 12px Arial;}
#grenadeBase.aiming {box-shadow:0 0 0 16px #e9c56b22;}
#grenadeBase:disabled {opacity:.4;}
.touch.right {overflow:visible;}
@media(min-width:651px) and (max-width:800px){.wardrobe-layout{grid-template-columns:180px 1fr;gap:16px;}#characterPreview{width:155px;height:200px;}.wardrobe-card{padding:20px;}.wardrobe-head h2{font-size:24px;}}
@media(pointer:fine) {.in-game .touch.right {display:block!important;right:24px;bottom:25px;opacity:.8;} .in-game .touch.right #aimBase {width:85px;height:85px;} }
@media(max-width:650px) {.wardrobe-modal {padding:8px;}.wardrobe-card {padding:16px;}.wardrobe-layout {grid-template-columns:1fr;gap:16px;}.character-stage {flex-direction:row;padding:8px;gap:10px;}#characterPreview {width:110px;height:145px;}.wardrobe-head h2{font-size:23px;}.shirt-card{min-height:165px;}.voice-control{top:72px;left:9px;max-width:200px;}#voiceStatus{font-size:10px;}#grenadeBase{width:58px;height:58px;bottom:calc(100% + 12px);}}
@media(max-height:500px) {.voice-control {top:62px;}#voiceStatus{max-width:160px;}#grenadeBase{width:54px;height:54px;bottom:calc(100% + 8px);}}
.admin-page {background:#091411;color:#eef3e8;min-height:100vh;margin:0;font-family:Segoe UI,Arial,sans-serif;padding:24px;box-sizing:border-box;overflow:auto;}
.admin-wrap {max-width:1150px;margin:auto;}.admin-page input,.admin-page select {background:#172c23;color:white;border:1px solid #466452;border-radius:6px;padding:9px;max-width:100%;box-sizing:border-box;}
.admin-toolbar {display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:20px 0;}.admin-table-wrap{overflow:auto;}.admin-page table{border-collapse:collapse;width:100%;}.admin-page th,.admin-page td{padding:10px;border-bottom:1px solid #294033;text-align:right;}.admin-page td input[type=number]{width:85px;}.admin-page td input[type=text]{width:155px;}.admin-page button {cursor:pointer;padding:10px 18px;border-radius:8px;background:#e9c56b;color:#192119;border:0;font-weight:700;}.admin-page a{color:#e9c56b;}

.social-card{max-width:740px}.social-card input:not([type=checkbox]){background:#091612;color:white;border:1px solid #567262;padding:12px;border-radius:9px;max-width:100%}.social-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px;border-bottom:1px solid #344640}.social-card button{padding:9px 14px;margin:4px;border-radius:8px;background:#293d32;color:#f5e1a6;border:1px solid #69816a}.social-stats{padding:18px;background:#07150e;border-radius:12px;color:#e9c56b;line-height:2}.social-notice{position:fixed;top:12px;left:12px;z-index:80;padding:9px;border-radius:10px;background:#14261e;color:#f2d47c;border:1px solid #7c8d64}.social-notice[hidden]{display:none}
.social-card input[type=checkbox]{width:18px;height:18px;min-height:18px;display:inline-block;vertical-align:middle;margin:8px;accent-color:#e9c56b}.social-card label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}.social-card{box-sizing:border-box}.social-card h3{overflow-wrap:anywhere}
.profile-avatar{display:block;width:200px;height:184px;margin:0 auto;background:radial-gradient(ellipse,#365d43 0%,#12281c 65%);border:1px solid #516b50;border-radius:20px}.social-card [data-profile]{text-align:center}.social-card [data-profile] input{display:block;margin:10px auto;text-align:center;font-family:monospace}.settings-drawer{z-index:120!important}.settings-card{max-height:90svh;overflow-y:auto}
.profile-avatar{position:static;inset:auto;z-index:auto;flex-shrink:0}
/* A reserved HUD row keeps friends clear of the pitch and other controls. */
#game .hud.top{height:44px;box-sizing:border-box;grid-template-columns:repeat(5,minmax(0,1fr)) auto auto auto;gap:4px}
#game .hud.top .social-notice{position:static;inset:auto;z-index:auto;width:auto;min-width:36px;height:32px;min-height:32px;padding:4px 8px;margin:0;font-size:13px}
#game #arena{top:calc(env(safe-area-inset-top) + 44px);height:calc(100% - env(safe-area-inset-top) - 44px)}
#game .audio-control{top:calc(env(safe-area-inset-top) + 50px)}
@media(max-width:650px){#game .hud.top{gap:2px;padding:2px}#game .hud.top button{font-size:10px;padding:3px;min-width:30px}#game .hud.top strong{font-size:10px}}
#game .hud.top>*{grid-column:auto!important;grid-row:1!important;min-width:0}#game .hud.top{grid-auto-flow:column;direction:rtl}#game .hud.stats{top:calc(env(safe-area-inset-top) + 48px)}
.exit-confirm-card{max-width:430px;text-align:center;box-sizing:border-box}.exit-confirm-card h2{font-size:24px;line-height:1.5}.exit-confirm-actions{display:flex;gap:12px;margin-top:24px}.exit-confirm-actions button{flex:1;min-height:46px;padding:10px;border-radius:10px;background:#253c30;color:#fff}.exit-confirm-actions #confirmExit{background:#b53932}#exitConfirm{z-index:140}
.public-rooms{position:relative;margin:20px auto;padding:24px;max-width:900px;background:#102019;border:1px solid #45614d;border-radius:18px;color:#fff;box-sizing:border-box}.public-room-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:16px;border-bottom:1px solid #45614d}.public-room-row button{padding:12px;background:#c8a63e;color:#101810;border-radius:8px}.public-room-row button:disabled{opacity:.45}
/* Responsive lobby: normal document flow, with no controls baked into the backdrop. */
body:not(.in-game){overflow:auto;background:#080f12}
body:not(.in-game) .shell{height:auto;min-height:100svh;overflow:visible;background:linear-gradient(110deg,#071218ee,#131312ed),url('assets/images/stadium-stands.png') center/cover fixed}
body:not(.in-game) #game{display:none!important}
body:not(.in-game) #lobby{position:relative;inset:auto;transform:none;width:min(1180px,100%);height:auto;min-height:100svh;margin:auto;padding:28px;display:block;overflow:visible;border:0;background:none;box-shadow:none}
.lobby-topbar{display:flex;align-items:center;gap:24px;padding:0 0 24px;border-bottom:1px solid #ffffff16;margin-bottom:28px}.lobby-wordmark{display:grid;gap:4px;white-space:nowrap}.lobby-wordmark span{font-size:27px;font-weight:900;color:#f2d078}.lobby-wordmark small{font-size:12px;color:#95a9aa}
body:not(.in-game) #lobby .live-strip{position:static;inset:auto;transform:none;margin:0 auto 0 0;width:auto;min-height:0;display:flex;gap:10px;flex-wrap:wrap;padding:9px 12px;font-size:11px;background:#ffffff05;border:1px solid #ffffff12;border-radius:30px}
.lobby-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr);gap:24px;align-items:start}
body:not(.in-game) #lobby .room-card{position:static;inset:auto;transform:none;width:100%;min-width:0;max-width:none;display:grid;gap:18px;padding:28px;background:#101d22ed;border:1px solid #314148;border-radius:20px;box-shadow:0 20px 50px #0003;backdrop-filter:none}
body:not(.in-game) #lobby .room-card::before{display:none}
#lobby .lobby-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0}#lobby .lobby-heading h2{font-size:27px;margin:6px 0 0}#lobby .season-pill{font-size:11px;color:#dcbb6b;background:none;padding:0}#lobby .lobby-tabs{display:flex;gap:4px;background:#071216;padding:4px;border-radius:12px;margin:0}#lobby .lobby-tabs button{min-width:65px;min-height:38px;padding:7px 10px;font-size:12px;border:0}#lobby .lobby-tabs .active{background:#e5bc56;color:#151a17}
body:not(.in-game) #lobby .room-card label{display:grid;gap:8px;font-size:13px;color:#afbdc0;margin:0}
body:not(.in-game) #lobby .room-card input,body:not(.in-game) #lobby .room-card select{width:100%;min-width:0;height:48px;min-height:48px;padding:10px 12px;border-radius:10px;border:1px solid #34454d;background:#0a151a;color:#f2f5f3;font-size:15px;font-weight:600}
body:not(.in-game) #lobby .mode-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0}
body:not(.in-game) #lobby .actions{display:grid;grid-template-columns:1.4fr 1fr;gap:12px;margin:0}body:not(.in-game) #lobby .actions button{min-height:52px;height:auto;font-size:16px;border-radius:11px;padding:12px}body:not(.in-game) #lobby .actions .primary{background:#e5bc56;color:#171b15}
#lobby details summary{cursor:pointer;color:#aebfc1;font-size:13px;padding:8px 0}#lobby details[open] summary{margin-bottom:12px}#lobby .server-message{margin:0;font-size:12px;line-height:1.6;min-height:0}#lobby .server-message:empty{display:none}
.lobby-side{display:grid;gap:20px;min-width:0}.lobby-account{display:grid;gap:12px;padding:24px;background:#101d22df;border:1px solid #314148;border-radius:20px}.lobby-account h2,#lobby .public-rooms h2{font-size:19px;margin:0 0 6px}.lobby-account>button{width:100%;border-radius:10px;min-height:46px;font-size:13px;background:#1b2b31}.lobby-account .account-row{display:grid;gap:10px}.lobby-account .account-row span{overflow-wrap:anywhere}
#lobby .public-rooms{width:100%;max-width:none;margin:0;padding:24px;border:1px solid #314148;background:#101d22df;border-radius:20px}#lobby .public-rooms header{display:flex;align-items:center;justify-content:space-between;gap:10px}#refreshRooms{min-height:34px;padding:0 10px}#roomsStatus{font-size:13px;color:#a0b2b5;line-height:1.8}#roomsList{max-height:380px;overflow:auto}.public-room-row{padding:12px 0;gap:8px}.public-room-row strong{width:100%;font-size:13px}.public-room-row button{flex:1;font-size:12px;padding:8px;min-height:40px}
body:not(.in-game) #lobby .sound-prompt{position:static;transform:none;display:block;width:fit-content;margin:0 0 16px;padding:8px 14px;font-size:12px}
@media(max-width:760px){body:not(.in-game) #lobby{padding:16px}.lobby-topbar{gap:10px;margin-bottom:18px;padding-bottom:16px;flex-wrap:wrap}.lobby-wordmark span{font-size:22px}.lobby-topbar .icon-button{margin-right:auto}.lobby-layout{grid-template-columns:1fr;gap:16px}body:not(.in-game) #lobby .live-strip{order:3;width:100%;justify-content:center;margin:0}.lobby-wordmark small{display:none}body:not(.in-game) #lobby .room-card{padding:20px;gap:16px}#lobby .lobby-heading h2{font-size:23px}.lobby-account,#lobby .public-rooms{padding:20px}.lobby-side{gap:16px}body:not(.in-game) #lobby .mode-row{gap:10px}}
@media(max-width:370px){body:not(.in-game) #lobby{padding:10px}body:not(.in-game) #lobby .room-card{padding:14px}#lobby .lobby-heading{align-items:start;flex-direction:column}}
#lobby [hidden]{display:none!important}
body:not(.in-game){overflow-x:hidden}body:not(.in-game) .shell{width:100%;max-width:100%;padding:0}body:not(.in-game) #lobby .lobby-topbar{width:100%;max-width:none}#lobby .lobby-layout{min-width:0}@media(min-width:761px) and (max-height:800px){body:not(.in-game) #lobby{padding-top:18px;padding-bottom:18px}body:not(.in-game) #lobby .room-card{gap:12px;padding:22px}.lobby-topbar{margin-bottom:18px;padding-bottom:16px}}
body:not(.in-game) .shell{background:linear-gradient(90deg,#050a1030,#050a1050 50%,#050a1030),url("assets/images/lobby-crowds-clean.png") center center/cover fixed no-repeat}body:not(.in-game) #lobby .room-card,.lobby-account,#lobby .public-rooms{background:#101b21e8;backdrop-filter:blur(5px)}@media(max-width:760px){body:not(.in-game) .shell{background-position:center;background-attachment:fixed}}
.seo-intro{max-width:1180px;margin:26px auto 0;padding:22px 24px;display:grid;grid-template-columns:1.7fr 1fr auto;gap:24px;align-items:center;border:1px solid #314148;border-radius:18px;background:#09151bd9;color:#d8e2df}.seo-intro h1{margin:0 0 8px;font-size:20px;color:#f2c85e}.seo-intro p{margin:0;line-height:1.8}.seo-intro ul{margin:0;padding-inline-start:20px;line-height:1.9;font-size:13px}.seo-intro a{color:#f2c85e;font-weight:800;white-space:nowrap}@media(max-width:900px){.seo-intro{grid-template-columns:1fr}.seo-intro a{white-space:normal}}body.in-game .seo-intro{display:none}
.star-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.star-card{display:grid;justify-items:center;padding:10px;background:#10241e;border:1px solid #52664b;border-radius:12px}.star-card canvas{position:static;width:120px;height:124px;background:transparent}.star-card span{font-weight:bold}.star-card small{margin-top:8px;color:#e9c56b}.star-card:disabled{opacity:.55}.star-card.selected{border:2px solid #edc763}.club-filter{flex-wrap:wrap}#adminStars{display:grid;gap:10px}#adminStars label{display:flex;gap:14px;align-items:center}#adminStars input[type=number]{width:100px}
.wardrobe-selectors{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.wardrobe-selectors label{display:grid;gap:8px;color:#c1ceca;font-size:14px}.wardrobe-selectors select{width:100%;min-width:0;min-height:46px;padding:10px;border:1px solid #4d665a;border-radius:10px;background:#0b1914;color:#fff;font-size:15px}@media(max-width:380px){.wardrobe-selectors{grid-template-columns:1fr}}
