/* PATIO 7: an open, legible lobby; all in-play impact text is outside the pitch. */
#lobbyView{padding:28px clamp(20px,4vw,65px) 24px;overflow-y:auto;--chat-surface:#14392f}
#lobbyView .hub-view-heading{margin-bottom:22px;align-items:center}
#lobbyView h1{font-size:clamp(30px,3vw,42px);letter-spacing:-1.4px}
.lobby-connection-tools{display:flex;align-items:center;gap:18px;flex-shrink:0}
.lobby-connection-tools .outline-button{font-size:10px;padding:9px 12px;color:#b9cbb3}
.lobby-connection-tools .connection-status{font-size:10px;max-width:190px;white-space:normal;line-height:1.6}
#lobbyView .lobby-layout{grid-template-columns:minmax(0,1fr) minmax(360px,390px);gap:32px;min-height:0;height:calc(100dvh - 223px);max-height:820px;min-height:480px}
#lobbyView .room-browser{min-height:0}
#lobbyView .quick-match-strip{margin:0 0 28px;padding:22px 20px;border-radius:10px;background:#d4e2bc0c;border-color:#b9d3a537;position:relative;flex-shrink:0}
#lobbyView .quick-match-strip:before{content:"";position:absolute;left:0;top:20px;bottom:20px;width:3px;background:#f4a180;border-radius:3px}
#lobbyView .quick-symbol{width:27px;height:37px;fill:#f0a080;stroke:#f5c4a1;stroke-width:.65;flex-shrink:0}
#lobbyView .quick-match-strip strong{font-size:17px;letter-spacing:-.4px;color:#f4edda}
#lobbyView .quick-match-strip p{font-size:11px;line-height:1.6}
#lobbyView .quick-match-strip .primary{padding:13px 16px;font-size:12px}
#lobbyView .quick-match-strip select{font-size:12px;width:90px}
#lobbyView .room-toolbar{padding-bottom:17px;gap:16px}
#lobbyView .room-toolbar h2{font-size:20px}
#lobbyView .room-toolbar p{font-size:11px;line-height:1.6;color:#9fb8a1}
#lobbyView .room-toolbar .primary{box-shadow:none;background:#183e32;color:#e1e9cf;border:1px solid #aec9a247;padding:12px 16px;font-size:12px;gap:20px}
#lobbyView .room-filters{padding:16px 0;gap:10px}
#lobbyView .room-list{max-height:none;min-height:160px;flex:1;overscroll-behavior:contain}
#lobbyView .room-empty{height:100%;min-height:200px;border-radius:8px}
#lobbyView .room-empty strong{font-size:20px;font-weight:700}
#lobbyView .room-empty p{font-size:12px;max-width:330px;color:#a0b6a0}
#lobbyView .room-row{padding:19px 8px;gap:13px;min-height:96px}
#lobbyView .room-row .room-info strong{font-size:15px;font-weight:700}
#lobbyView .room-row .room-info small{font-size:11px;color:#a7bda5}
#lobbyView .room-occupancy{font-size:13px;min-width:68px;text-align:center}
#lobbyView .room-occupancy small{font-size:8px}
#lobbyView .room-row>button{font-size:11px;min-height:40px}
#lobbyView .room-format{white-space:nowrap;font-size:10px}
#lobbyView .lobby-alt{gap:12px;flex-shrink:0;line-height:1.6;padding-top:16px}
#lobbyView .lobby-alt button{font-size:12px;color:#d1ddc1}
#lobbyView .lobby-alt>span{font-size:9px;max-width:185px;text-align:right}
#lobbyView .hub-notice:not(.hidden)~.lobby-layout{height:calc(100dvh - 290px)}
#lobbyView .lobby-chat{min-height:0;max-height:none;background:var(--chat-surface);border-radius:12px;border-color:#b7cbb335;box-shadow:0 12px 35px #041a1729}
#lobbyView .chat-heading{padding:19px 20px 5px;border:0;align-items:center}
#lobbyView .chat-heading>div{display:flex;justify-content:space-between;gap:14px;align-items:center;flex:1;padding-right:13px}
#lobbyView .chat-heading h2{font-size:20px;letter-spacing:-.5px}
#lobbyView .chat-heading span:not(.chat-live-dot){font-size:10px;margin:0;color:#bbd5a8}
.chat-scope{font-size:11px;color:#94b099;margin:4px 20px 15px;line-height:1.6}
.lobby-presence{border-block:1px solid #b7cbb31e;background:#183e310e}
.lobby-presence summary{font-size:10px;font-weight:600;padding:12px 19px;cursor:pointer;color:#bbd0b2;display:list-item;list-style:disclosure-closed inside}
.lobby-presence[open] summary{list-style-type:disclosure-open}
.lobby-presence summary b{font:10px var(--mono);float:right;color:#d8e4c4}
#lobbyMembers{display:grid;grid-template-columns:1fr 1fr;gap:13px 12px;padding:4px 17px 14px;max-height:145px;overflow-y:auto;scrollbar-width:thin}
.presence-person{display:grid;grid-template-columns:25px 1fr;grid-template-rows:auto auto;column-gap:7px;min-width:0;align-items:center}
.presence-avatar{grid-row:1/3;border-radius:8px;width:25px;height:28px;display:grid;place-items:center;background:#9ab98c20;border:1px solid #b4cda62d;color:#d5e3bc;font-size:9px;font-weight:750}
.presence-person strong{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:650;color:#d2dfc2}
.presence-person small{font-size:8px;color:#8dac92;margin-top:3px}
.presence-person button{grid-column:2;background:transparent;color:#f4b591;text-decoration:underline;font-size:9px;padding:5px 0;text-align:left}
.presence-empty{grid-column:1/-1;font-size:10px;color:#9cb59c;line-height:1.5;margin:0}
#lobbyView .chat-identity{padding:8px 17px;background:#17382e;border-bottom:1px solid #b9ccab20;font-size:10px;color:#8fb198;flex-shrink:0;gap:10px}
#lobbyView .chat-identity input{font-size:12px;width:130px;padding:6px 3px}
#lobbyView .chat-identity button{min-height:30px;font-size:10px;color:#c7d8b6}
.chat-log-wrap{position:relative;flex:1;min-height:120px;display:flex;flex-direction:column}
#lobbyView .chat-log{min-height:0;flex:1;padding:18px 20px;scrollbar-gutter:stable}
#lobbyView .chat-message{margin-bottom:20px;padding-left:12px;border-left:2px solid #a3be9133;user-select:text}
#lobbyView .chat-message.own{border-left-color:#f4ad83b0}
#lobbyView .chat-message header{font-size:11px;gap:6px;margin-bottom:6px}
#lobbyView .chat-message p{font-size:12px;line-height:1.65;color:#e0e7d1}
#lobbyView .chat-message .mute-author{font-size:8px;opacity:0;order:2;transition:opacity .15s}
#lobbyView .chat-message:hover .mute-author,#lobbyView .chat-message:focus-within .mute-author{opacity:1}
#lobbyView .chat-empty{font-size:12px;line-height:1.8;margin:24px 8px;color:#9db69c}
.new-chat-messages{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);background:#d5e4bb;color:#1d4633;border:1px solid #e6eccf;border-radius:18px;box-shadow:0 4px 15px #051f2170;padding:9px 14px;font-size:10px;white-space:nowrap;z-index:2}
.chat-typing{padding:3px 20px;min-height:23px;font-size:9px;color:#aac79d;flex-shrink:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#lobbyView .chat-form{margin:0 15px;padding:5px;border-radius:8px;flex-shrink:0;border-color:#acc59d5c}
#lobbyView .chat-form:focus-within{border-color:#e7b78b;box-shadow:0 0 0 2px #f0aa7b0d}
#lobbyView .chat-form input{font-size:12px;min-height:34px;padding:8px!important}
#lobbyView .chat-form button{width:65px;gap:4px;font-size:10px;font-weight:750;color:#173c2e;background:#cfdeb7;display:flex;justify-content:center}
#lobbyView .chat-form button svg{width:12px;height:12px}
.chat-meta{display:flex;justify-content:flex-end;align-items:center;gap:10px;font:8px var(--mono);color:#809f89;margin:8px 20px 0;min-height:12px;flex-shrink:0}
.chat-meta button{margin-right:auto;background:none;text-decoration:underline;font:9px var(--font);color:#b7cda9}
#lobbyView .chat-status{font-size:9px;line-height:1.6;color:#9eb698;margin:7px 20px 15px;flex-shrink:0;min-height:15px}
.lobby-tabs{display:none}
.nav-chat-unread{min-width:18px;height:18px;border-radius:9px;background:#f2a384;color:#17392e;padding:0 5px;display:inline-grid;place-items:center;font:750 9px var(--font);margin-left:6px}
/* Native anime typography: a short punctuation mark, not a full-screen curtain. */
/* Energy occupies footer chrome. Portrait and short landscape have their own safe areas. */
@media (max-width:1100px){
#lobbyView .lobby-layout{grid-template-columns:minmax(0,1fr) 340px;gap:22px}
#lobbyView .quick-match-strip{flex-wrap:wrap;padding:18px;gap:13px}
#lobbyView .quick-match-strip>div{flex-basis:100%}
#lobbyView .quick-match-strip .primary{flex:1}
#lobbyView .room-row{gap:9px;flex-wrap:wrap}
.room-row .room-info{min-width:120px}
#lobbyView .room-format{margin-left:46px}
#lobbyView .room-occupancy{margin-left:auto}
.lobby-connection-tools{gap:10px}
}
@media (max-width:800px){
#lobbyView{padding:20px 18px 16px;display:flex;flex-direction:column;overflow:hidden}
#lobbyView .hub-view-heading{gap:10px;margin-bottom:17px;align-items:flex-start;flex-shrink:0}
#lobbyView h1{font-size:29px;letter-spacing:-1px}
#lobbyView .hub-view-heading p{font-size:11px;line-height:1.6;max-width:270px}
.lobby-connection-tools{flex-direction:column;align-items:flex-end;gap:5px}
.lobby-connection-tools .connection-status{font-size:8px}
.lobby-connection-tools .outline-button{font-size:9px;padding:7px 9px}
#lobbyView .hub-notice{font-size:10px;line-height:1.6;margin-bottom:12px;padding:9px 11px;flex-shrink:0;max-height:100px;overflow:auto}
.lobby-tabs{display:flex;gap:7px;margin:0 0 15px;padding:4px;background:#092b24;border:1px solid #b4c6a92b;border-radius:8px;flex-shrink:0}
.lobby-tabs button{background:none;padding:12px 9px;flex:1;border-radius:5px;color:#acc2a8;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;min-height:40px}
.lobby-tabs button[aria-selected=true]{background:#e4e9d2;color:#254634}
.lobby-tabs b{background:#ef9e7e;color:#193c2d;padding:2px 5px;min-width:18px;border-radius:9px;font:8px var(--mono)}
#lobbyView .lobby-layout,#lobbyView .hub-notice:not(.hidden)~.lobby-layout{height:auto;flex:1;min-height:0;display:flex;max-height:none;gap:0;overflow:hidden}
#lobbyView[data-mobile-tab=rooms] .lobby-chat,#lobbyView[data-mobile-tab=chat] .room-browser{display:none}
#lobbyView .lobby-chat{flex:1;width:100%;height:100%;min-height:0;border-radius:9px;max-height:none}
#lobbyView .room-browser{overflow-y:auto;display:block;width:100%;padding-right:2px;scrollbar-width:thin}
#lobbyView .quick-match-strip{padding:18px 17px;margin:0 0 24px;gap:13px}
#lobbyView .quick-match-strip>div{flex-basis:100%;gap:16px}
#lobbyView .quick-match-strip strong{font-size:17px}
#lobbyView .quick-match-strip p{font-size:11px}
#lobbyView .quick-match-strip select{width:95px;padding:11px}
#lobbyView .room-toolbar h2{font-size:19px}
#lobbyView .room-toolbar .primary{padding:12px;font-size:10px;gap:10px}
#lobbyView .room-toolbar p{font-size:10px;max-width:185px}
#lobbyView .room-filters{flex-wrap:nowrap;gap:6px}
#lobbyView .room-filters input{width:0;padding:11px 9px;font-size:10px}
#lobbyView .room-filters select{width:125px;font-size:10px;padding:10px 20px 10px 8px}
#lobbyView .small-icon{width:32px}
#lobbyView .room-empty{min-height:205px}
#lobbyView .room-empty strong{font-size:17px}
#lobbyView .room-empty p{font-size:11px}
#lobbyView .room-list{min-height:180px;overflow:visible}
#lobbyView .room-row .room-info{flex-basis:calc(100% - 55px)}
#lobbyView .room-row .room-info strong{font-size:14px}
#lobbyView .lobby-alt{flex-wrap:wrap;padding-bottom:15px}
.lobby-alt>span{max-width:none!important;text-align:left!important}
#lobbyView .chat-heading{padding:16px 16px 4px}
#lobbyView .chat-heading h2{font-size:19px}
.chat-scope{margin:4px 16px 10px;font-size:10px}
.lobby-presence summary{padding:11px 16px}
#lobbyMembers{max-height:110px}
#lobbyView .chat-identity{padding:5px 14px}
#lobbyView .chat-log{padding:17px 16px;min-height:70px}
#lobbyView .chat-message p{font-size:12px}
.chat-log-wrap{min-height:70px}
#lobbyView .chat-message .mute-author{opacity:.75}
#lobbyView .chat-form{margin:0 11px}
#lobbyView .chat-form input{font-size:16px;min-height:33px}
#lobbyView .chat-status{margin:6px 16px 11px;font-size:8px}
.chat-meta{margin-right:16px}
.active-room-banner{padding:10px;font-size:10px;gap:8px;flex-wrap:wrap;margin-bottom:12px;flex-shrink:0}
.active-room-banner span{flex-basis:100%}
}
@media (max-height:600px) and (min-width:801px){
#lobbyView .lobby-layout{height:calc(100dvh - 174px);min-height:300px}
#lobbyView .hub-view-heading{margin-bottom:15px}
#lobbyView h1{font-size:30px}
#lobbyView .hub-view-heading p{font-size:10px}
#lobbyMembers{max-height:80px}
#lobbyView .quick-match-strip{padding:13px;margin-bottom:17px}
#lobbyView .room-empty{min-height:155px}
.chat-scope{margin-bottom:7px}
}
@media (max-height:500px) and (orientation:landscape){
#lobbyView{padding:12px 20px;overflow:auto;display:block}
#lobbyView .hub-view-heading{margin-bottom:10px}
#lobbyView h1{font-size:25px}
#lobbyView .hub-view-heading p{font-size:10px}
#lobbyView .lobby-layout,#lobbyView .hub-notice:not(.hidden)~.lobby-layout{height:510px;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.85fr);gap:18px}
#lobbyView .lobby-chat{display:flex!important}
#lobbyView .room-browser{display:flex!important;overflow:visible}
.lobby-tabs{display:none}
#lobbyView .room-list{overflow-y:auto}
.chat-log-wrap{min-height:75px}
.lobby-presence summary{padding:8px 14px}
}
/* The composer is anchored to the available stage height, including a live room banner. */
@media (min-width:801px) and (min-height:501px){
#lobbyView{display:flex;flex-direction:column}
#lobbyView .hub-view-heading,#lobbyView .hub-notice,#lobbyView .active-room-banner{flex-shrink:0}
#lobbyView .lobby-layout,#lobbyView .hub-notice:not(.hidden)~.lobby-layout{height:auto;flex:1;min-height:0;max-height:none;width:100%;margin:0 auto;overflow:hidden}
#lobbyView .room-browser{overflow-y:auto;scrollbar-width:thin;padding-right:3px}
#lobbyView .room-list{min-height:110px}
#lobbyView .chat-log-wrap{min-height:45px}
#lobbyView .room-empty{min-height:170px}
}
@media (max-width:800px) and (min-height:501px) and (max-height:700px){
#lobbyView .hub-view-heading h1{font-size:24px}
#lobbyView .hub-view-heading p{display:none}
#lobbyView .chat-scope{display:none}
.lobby-presence summary{padding:9px 14px}
#lobbyView .active-room-banner{padding:8px;margin-bottom:9px}
#lobbyView .active-room-banner span{font-size:9px}
#lobbyView .chat-meta{display:none}
}
@media (max-width:600px) and (orientation:portrait){
body:not(.is-home) .topbar .brand-type{display:none}
body:not(.is-home) .scoreboard{gap:8px;left:calc(50% - 20px)}
body:not(.is-home) .score-team{gap:0}
body:not(.is-home) .header-right{gap:4px}
}
#lobbyView .room-format{display:inline-block}
#lobbyView .room-row .crest-art{display:block;width:34px;height:40px}
@media (max-width:380px) and (orientation:portrait){
body:not(.is-home) .scoreboard{left:calc(50% - 24px);gap:4px}
body:not(.is-home) .scores{gap:9px;font-size:23px}
body:not(.is-home) .clock{min-width:48px;font-size:9px}
body:not(.is-home) .topbar .brand-mark{display:grid;width:24px;height:24px}
}
/* PATIO 9 — clasificación y torneos */
.division-overview{display:grid;grid-template-columns:1.1fr .9fr;gap:14px;margin-top:10px}
.division-card,.tournament-card,.season-history-card{background:linear-gradient(180deg,rgba(20,36,31,.96),rgba(14,26,24,.96));border:1px solid rgba(197,219,186,.16);border-radius:18px;padding:14px 15px;box-shadow:0 16px 34px rgba(0,0,0,.24)}
.division-card h3,.tournament-card h3,.season-history-card h3{margin:0 0 6px;font-size:15px;letter-spacing:.05em;text-transform:uppercase}
.division-meta{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}
.division-meta span,.tournament-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:rgba(239,244,220,.07);border:1px solid rgba(239,244,220,.1);font-size:11px;color:#eef4da}
.next-opponent{margin-top:10px;padding:10px 12px;border-radius:14px;background:rgba(241,132,103,.08);border:1px solid rgba(241,132,103,.22);font-size:12px;color:#f7ecd4}
.league-table{width:100%;border-collapse:separate;border-spacing:0 6px;font-size:12px}
.league-table th{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#90a58d;padding:0 8px 6px;text-align:center}
.league-table th:nth-child(2),.league-table td:nth-child(2){text-align:left}
.league-table td{padding:9px 8px;background:rgba(240,244,223,.05);text-align:center}
.league-table tr td:first-child{border-radius:12px 0 0 12px}
.league-table tr td:last-child{border-radius:0 12px 12px 0}
.league-table tr.player td{background:rgba(241,132,103,.14);border-top:1px solid rgba(241,132,103,.22);border-bottom:1px solid rgba(241,132,103,.22);font-weight:700}
.league-table tr.promo td:nth-child(1){box-shadow:inset 3px 0 0 #74ac8e}
.league-table tr.releg td:nth-child(1){box-shadow:inset 3px 0 0 #f18467}
.table-form{display:flex;gap:6px;justify-content:flex-end}
.table-form b{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-size:10px;background:rgba(255,255,255,.06);color:#e9f0d4}
.tournament-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:10px}
.tournament-card.locked{opacity:.6}
.tournament-card p{margin:6px 0 0;font-size:12px;line-height:1.45;color:#dce6cf}
.tournament-card small{display:block;margin-top:10px;color:#8fa48b;font-size:11px}
.season-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.season-history-card strong{font-size:13px;color:#f5edd4}
.league-result-note{margin-top:10px;padding:10px 12px;border-radius:14px;background:rgba(116,172,142,.1);border:1px solid rgba(116,172,142,.22);font-size:12px;color:#eef3df}
.match-progress .league-highlight{margin:10px 0 0;padding:10px 12px;border-radius:14px;background:rgba(116,172,142,.08);border:1px solid rgba(116,172,142,.18);color:#ebf2dc;font-size:12px}
@media (max-width:980px){
.division-overview,.tournament-grid,.season-history{grid-template-columns:1fr}
}
/* v12: compact real-time performance readout, outside the pitch. */
.fps-badge{display:flex;align-items:baseline;gap:4px;min-width:49px;color:#c5e3cb;white-space:nowrap;padding-right:5px;font-variant-numeric:tabular-nums}
.fps-badge strong{font:700 12px var(--mono)}
.fps-badge small{font:8px var(--mono);opacity:.7}
.fps-badge.slow{color:#efbb91}
.performance-settings{margin-top:20px;border-top:1px solid #c5d4bc;padding-top:12px}
.performance-settings h3{font-size:16px;color:#264e39}
.performance-settings .perf-status{font:10px/1.7 var(--mono);padding:12px;border-radius:6px;background:#dfe6d4;color:#37543d}
.performance-settings .perf-slider{display:flex;flex-direction:column;gap:5px;align-items:flex-end;min-width:110px}
.perf-slider input{width:110px;accent-color:#356c4e}
.perf-slider output{font:10px var(--mono);color:#416044}
@media (max-width:760px){
.fps-badge{min-width:35px;padding:0;flex-direction:column;align-items:center;gap:0}
.fps-badge strong{font-size:10px}
.fps-badge small{font-size:6px}
.performance-settings .form-row{gap:10px}
.performance-settings .form-row small{max-width:175px}
}
@media (max-width:600px) and (orientation:portrait){
#fpsBadge{position:fixed;left:145px;bottom:calc(20px + env(safe-area-inset-bottom));z-index:12;gap:3px;flex-direction:row;align-items:baseline;pointer-events:none}
#fpsBadge strong{font-size:10px}
#fpsBadge small{font-size:7px}
}
