:root{--ink:#0d1015;--panel:#151b23ea;--panel-solid:#181e27;--edge:#a9ab7a29;--cream:#f0e8d2;--muted:#9fa7b2;--gold:#dcc184;--gold-bright:#f0d494;--red:#a44333;--green:#404e63;--serif:Georgia,'Times New Roman',serif;--sans:Arial,Helvetica,sans-serif;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:var(--ink);color:var(--cream);font:13px/1.5 var(--sans);overflow:hidden}button,input,select,textarea{font:inherit}button{color:var(--cream);background:#242d3b;border:1px solid var(--edge);border-radius:3px;padding:10px 14px;cursor:pointer;transition:background .15s,border-color .15s,color .15s,transform .15s}button:hover{background:#364253;border-color:#ccb98470}button:active{transform:translateY(1px)}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}button.active,button[aria-pressed=true]{color:#181e28;background:var(--gold);border-color:var(--gold)}button:disabled{opacity:.34;cursor:default;transform:none}button[hidden],[hidden]{display:none!important}input,select,textarea{color:var(--cream);background:#11151c;border:1px solid #7a8ba444;border-radius:3px;padding:10px 12px;min-height:40px}input[type=color]{padding:3px;min-height:36px;width:100%;cursor:pointer}input[type=range]{padding:0;min-height:24px;accent-color:var(--gold)}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:var(--serif);font-weight:normal}small,.muted,.field-note{color:var(--muted)}a{color:var(--gold)}.eyebrow{font-size:9px;letter-spacing:2.8px;text-transform:uppercase;color:var(--gold);font-weight:700}.quiet-button{background:transparent;border-color:var(--edge);color:var(--muted)}.primary-button{background:var(--gold);border-color:var(--gold);color:#171d26;font-weight:700;letter-spacing:1.4px;padding:13px 24px}.primary-button:hover{background:var(--gold-bright);color:#171d26}.icon-button{padding:8px;width:36px;height:36px;font-size:18px}.legacy-bridge{display:none!important}.game-topbar{height:64px;display:flex;align-items:center;gap:18px;padding:9px 18px;border-bottom:1px solid var(--edge);background:linear-gradient(90deg,#101419,#1f2733);box-shadow:0 4px 20px #0002;position:relative;z-index:2}.brand-button{background:var(--cream);padding:5px 8px;border:0;width:127px;flex:none}.brand-button:hover{background:#fff7e4}.brand-button img{width:100%;height:31px;object-fit:contain;display:block}.game-wordmark{display:flex;flex-direction:column;gap:3px}.game-wordmark strong{font:15px var(--serif);letter-spacing:1px}.game-wordmark span{font-size:8px;letter-spacing:2.4px;color:var(--muted)}#resources{margin-left:auto;display:flex;gap:24px;font-size:9px;letter-spacing:.7px;color:var(--muted)}#resources span{display:flex;align-items:center;gap:8px}#resources b{font:19px var(--serif);color:var(--gold)}#layout{display:grid;grid-template-columns:minmax(0,1fr) 236px;height:calc(100dvh - 121px)}#world{position:relative;overflow:hidden;background:#565f6c}#canvas{display:block;width:100%;height:100%;touch-action:none}#caption{position:absolute;top:18px;left:20px;padding:11px 16px;border-left:2px solid var(--gold);background:#13181fe6;backdrop-filter:blur(12px);box-shadow:0 6px 20px #0002;pointer-events:none;max-width:75%}#caption .eyebrow{display:block;margin-bottom:5px;font-size:8px}#caption b{font:17px var(--serif);display:block}.map-tools{position:absolute;bottom:17px;left:18px;display:flex;gap:7px;align-items:center}.map-tools button{padding:8px 11px;background:#181e28df;backdrop-filter:blur(10px);font-size:11px}.map-tools .zoom-cluster{display:flex}.zoom-cluster button{border-radius:0;border-right:0;min-width:32px;font-size:16px;padding:4px 9px}.zoom-cluster button:first-child{border-radius:3px 0 0 3px}.zoom-cluster button:last-child{border-radius:0 3px 3px 0;border-right:1px solid var(--edge)}.curva-panel{padding:17px 15px;background:linear-gradient(110deg,#1e2631,#13181f);border-left:1px solid var(--edge);overflow:auto;scrollbar-width:thin;scrollbar-color:#535f7255 transparent}.group-heading{padding:0 3px 15px;border-bottom:1px solid var(--edge);margin-bottom:13px}#identitypreview{display:none;width:100%;height:65px;object-fit:contain;margin-bottom:13px}.group-heading h2{font-size:25px;line-height:1.1;margin:9px 0 10px}.group-heading p{font-size:10px;line-height:1.7;color:var(--muted);margin-bottom:9px}progress{appearance:none;width:100%;height:4px;border:0;border-radius:2px;background:#0b0d11;accent-color:var(--gold)}progress::-webkit-progress-bar{background:#0b0d11;border-radius:2px}progress::-webkit-progress-value{background:var(--gold);border-radius:2px}#tutorial{font-size:10px;color:#d3c494;line-height:1.6;margin:0 3px 13px}#actions{display:flex;flex-direction:column;gap:6px}#actions button{width:100%;text-align:left;padding:10px 12px;font-size:11px;background:#212a37;border-color:#7d8ea730;box-shadow:inset 2px 0 #93a0b418}#actions button:hover{background:#354051;border-color:#d8bf8270}#actions button small{font-size:9px;line-height:1.8}#actions>p{font-size:10px;color:var(--gold);padding:9px 3px}#log{border-top:1px solid var(--edge);margin-top:17px;padding-top:12px;font-size:10px;line-height:1.65;color:#b6bdc8}#log p{margin-bottom:12px}#log small{font-size:8px;letter-spacing:1px;color:#7f947d}#notice{position:absolute;bottom:72px;left:50%;transform:translateX(-50%);padding:12px 18px;background:#11151bee;border:1px solid #cfbd7955;box-shadow:0 6px 30px #0003;max-width:min(580px,85%);font-size:12px;text-align:center;pointer-events:none;z-index:5}#matchbanner{position:absolute;top:18px;right:18px;max-width:300px;padding:15px 20px;background:#151a22eb;border:1px solid #d0bd7d66;box-shadow:0 10px 35px #0003}#matchbanner small{color:var(--gold);font-size:8px;letter-spacing:2px}#matchbanner h3{font-size:23px;line-height:1.2;margin:8px 0}#matchbanner p{font-size:10px;margin:0;color:var(--muted)}.game-dock{height:57px;display:flex;gap:13px;align-items:center;padding:8px 15px;background:linear-gradient(#1c242f,#13181f);border-top:1px solid #a3ae7b30}.game-dock #date{font-size:10px;color:#c9cdb9;margin-right:auto;max-width:37%;line-height:1.6}.time-controls{display:flex;gap:3px}.time-controls button{font-size:11px;padding:8px;min-width:30px;background:#181e28}.time-controls button.active{background:var(--gold);color:var(--ink)}.game-dock nav{display:flex;gap:4px}.game-dock nav button{font-size:11px;padding:8px 10px;background:transparent}.game-dock nav button:hover{background:#354051}.main-menu{position:fixed;inset:0;z-index:30;background:#11151b url('/game/assets/menu-art.webp?v=curva2') center right/cover no-repeat;isolation:isolate;overflow:hidden}.menu-shade{position:absolute;inset:0;background:linear-gradient(90deg,#0b0e13f5 0%,#101419e8 28%,#0f131880 52%,#0f131810 80%),linear-gradient(0deg,#0a0c10eb,transparent 30%,#12171e22 70%);z-index:-1}.menu-filmgrain{position:absolute;inset:-50%;width:200%;height:200%;pointer-events:none;opacity:.075;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.5' d='M0 0h180v180H0z'/%3E%3C/svg%3E");animation:grain 9s steps(5) infinite;z-index:-1}.menu-content{position:relative;width:min(620px,53vw);height:100%;padding:clamp(35px,6.5vh,85px) 0 70px clamp(32px,7.5vw,125px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;animation:menu-enter .8s ease both}.menu-logo{background:#eee8d5;padding:8px 14px;width:190px;max-height:63px;object-fit:contain;margin-bottom:35px;box-shadow:0 2px 20px #0002}.menu-kicker{font-size:9px;letter-spacing:3px;color:#cfc399;display:flex;gap:12px;align-items:center;margin-bottom:17px}.menu-kicker>span{height:1px;width:28px;background:var(--gold)}.menu-content h1{font-family:Impact,'Arial Narrow',var(--sans);font-stretch:condensed;font-size:clamp(44px,4.8vw,79px);font-weight:normal;line-height:.97;letter-spacing:.7px;margin:0 0 20px;color:#f3ecd9;text-shadow:0 3px 20px #0005}.menu-content h1 em{font-style:normal;color:#dac085}.menu-tagline{font:15px/1.8 var(--serif);color:#c6c9b6;margin-bottom:27px}.menu-tagline strong{font-weight:normal;color:#eee6ce}.main-menu-actions{display:flex;flex-direction:column;width:280px;gap:2px}.main-menu-actions button{border:0;border-left:2px solid transparent;text-align:left;background:transparent;color:#bac2ce;border-radius:0;letter-spacing:2.3px;font-size:11px;padding:13px 17px;display:flex;align-items:center;gap:20px}.main-menu-actions button>span{font-size:8px;letter-spacing:1px;color:#7e9079;min-width:15px}.main-menu-actions button:hover{border-left-color:var(--gold);background:linear-gradient(90deg,#d7be7926,transparent);color:var(--cream);transform:translateX(4px)}.main-menu-actions button.menu-primary{color:#f3dfb2;border-left-color:var(--gold);background:linear-gradient(90deg,#d7be7920,transparent)}.menu-return{margin:15px 0 0 37px;font-size:9px;letter-spacing:1.7px;padding:8px 0;border:0;background:none;color:var(--gold)}.menu-bottom{position:absolute;bottom:25px;left:clamp(32px,7.5vw,125px);right:30px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:2px;color:#8d97a5}.menu-open>.game-topbar,.menu-open>#layout,.menu-open>.game-dock{visibility:hidden}.setup-dialog{padding:0;border:1px solid #d2c48d50;border-radius:4px;width:min(1120px,95vw);max-width:1120px;color:var(--cream);background:linear-gradient(130deg,#232c39,#11151c 75%);box-shadow:0 35px 140px #000b;overflow:hidden;max-height:94dvh}.setup-dialog::backdrop{background:#090b0fc9;backdrop-filter:blur(9px)}.setup-shell{display:flex;flex-direction:column;max-height:94dvh}.setup-header{display:flex;align-items:center;justify-content:space-between;padding:18px 28px;border-bottom:1px solid var(--edge);background:#10141b5e}.setup-header img{background:var(--cream);padding:4px 9px;max-height:38px;width:128px;object-fit:contain}.setup-header button{font-size:10px;padding:7px 11px}.setup-steps{display:flex;gap:0;border-bottom:1px solid var(--edge);padding:0 28px;flex:none}.setup-steps button{background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;padding:17px 15px;font-size:9px;letter-spacing:1.4px;color:#7d947d;flex:1;display:flex;align-items:center;justify-content:center;gap:11px}.setup-steps button span{font:18px var(--serif);color:#636e7e}.setup-steps button.current{color:var(--cream);border-bottom-color:var(--gold)}.setup-steps button.current span{color:var(--gold)}.setup-steps button.completed{color:#a5b0c0}.setup-body{padding:25px 34px 20px;overflow:auto;scrollbar-width:thin;scrollbar-color:#6b768650 transparent}.setup-title-row{display:flex;justify-content:space-between;gap:20px;margin-bottom:24px;align-items:center}.setup-title-row h2{font:36px/1.1 var(--serif);margin:8px 0 0;letter-spacing:-.6px}.setup-selected{border-left:1px solid var(--edge);padding:0 0 0 22px;display:flex;flex-direction:column;gap:3px;text-align:right}.setup-selected>span{font-size:8px;letter-spacing:2px;color:#7c8797}.setup-selected>b{font:23px var(--serif);color:var(--gold)}.setup-intro{color:#9fa9b9;font:14px/1.7 var(--serif);margin-bottom:24px}.division-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.division-card{min-height:193px;display:flex;flex-direction:column;justify-content:space-between;text-align:left;padding:22px 20px;position:relative;overflow:hidden;background:linear-gradient(135deg,#2b3646,#1d2530);border:1px solid #7e91ae38;border-radius:3px}.division-card:before{content:attr(data-mark);position:absolute;right:-5px;bottom:-33px;font:170px/1 var(--serif);color:#9cacc30a;pointer-events:none}.division-card .division-rank{font-size:8px;letter-spacing:2px;color:#8b97a9}.division-card strong{font:35px var(--serif);color:#ece5ce;margin:18px 0;z-index:1}.division-card .division-description{font-size:10px;line-height:1.6;color:#939fb2;z-index:1}.division-card.active{border-color:#dfc384;background:linear-gradient(135deg,#384456,#252d3a);color:var(--cream);box-shadow:inset 0 0 0 1px #dfc38426}.division-card.active strong{color:#f4d89b}.girone-cards{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;align-items:center}.girone-cards .girone-label{font-size:8px;letter-spacing:2px;color:#8892a2;margin-right:8px}.girone-cards button{font-size:10px;letter-spacing:1px;padding:9px 17px}.setup-footer{padding:15px 28px;border-top:1px solid var(--edge);display:flex;align-items:center;gap:15px;background:#11151ca8;flex:none}.setup-footer #setup-progress{margin-right:auto;font-size:9px;letter-spacing:2px;color:#8894a7}.setup-footer #setup-back{font-size:10px;min-width:80px}.section-heading{display:flex;justify-content:space-between;font-size:8px;letter-spacing:2px;color:#9ca8bb;padding:0 0 11px;border-bottom:1px solid var(--edge);margin-bottom:10px}.club-selection{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:29px}.club-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.club{background:#202834;text-align:left;padding:10px 11px;min-height:48px;border:1px solid #7889a22c;display:flex;align-items:center;gap:9px;position:relative;overflow:hidden}.club .club-color{width:4px;height:25px;flex:none;background:var(--club-primary,#8796ad);box-shadow:3px 0 var(--club-secondary,#e6dec2);margin-right:2px}.club .club-label{min-width:0;flex:1}.club strong{font-size:11px;font-weight:normal;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.club small{font-size:8px;display:block;color:#7d899c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.club.active{background:#313c4c;border-color:#d8bd7c;color:var(--cream)}.club.active strong{color:#f1d79d}.club.active small{color:#c9c6a3}.club:hover{background:#303b4b}.club-preview{background:linear-gradient(160deg,#2a3442,#161c24);border:1px solid #7486a230;border-radius:3px;overflow:hidden;position:relative}.club-preview-art{height:165px;position:relative;background:radial-gradient(ellipse at bottom,#4d5f7b55,transparent 70%);overflow:hidden}.club-preview-art canvas{display:block;width:100%;height:100%}.club-preview-art .club-city{position:absolute;top:13px;left:17px;font-size:8px;letter-spacing:2px;color:#a6b1c2}.club-preview-detail{padding:16px 19px 18px;border-top:1px solid #b8be9430}.club-preview h2{font-size:27px;line-height:1;margin:0 0 5px}.club-preview .stadium-name{font-size:11px;color:#a5b0c0;margin:0 0 14px}.club-facts{display:grid;grid-template-columns:1fr 1fr;gap:11px 20px}.club-facts>div{display:flex;flex-direction:column;gap:4px}.club-facts small{font-size:7px;letter-spacing:1.7px;color:#78869a}.club-facts span{font-size:10px;color:#bec8d7;line-height:1.5}.club-facts .wide{grid-column:1/-1}.club-swatches{display:flex;gap:4px}.club-swatches i{width:19px;height:5px;display:block;background:var(--c)}.identity-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:30px}.identity-fields label{display:block;font-size:8px;letter-spacing:1.8px;color:#94a0b1;margin-bottom:6px}.identity-fields>input,.identity-fields>select{display:block;width:100%;margin-bottom:17px;font-size:13px}.identity-colors{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:11px;margin-bottom:17px}.identity-colors label{margin:0}.identity-colors input,.identity-colors select{width:100%;margin:6px 0 0;height:36px;min-height:36px;font-size:11px;padding:5px}.identity-fields .field-note{font:13px/1.6 var(--serif);color:#7d899b;margin:18px 0 0}.identity-designer{border:1px solid var(--edge);padding:18px;background:#161b2380;border-radius:3px;min-width:0}.identity-designer canvas{display:block;max-width:100%;height:auto!important;background:repeating-linear-gradient(45deg,#1f27331f 0,#1f27331f 10px,#3743541f 10px,#3743541f 20px);border:1px solid #8c9db633;border-radius:2px}.identity-designer label{display:block;margin-top:10px;font-size:8px;letter-spacing:1.3px;color:#93a0b4}.identity-designer input,.identity-designer select{max-width:100%;width:100%;font-size:11px;min-height:32px;padding:6px 9px}.identity-designer input[type=file]{padding:8px;font-size:10px}.identity-designer button{font-size:10px;padding:8px 11px}.identity-designer p{font-size:10px;color:#96a1b2;line-height:1.6}.setup-review{display:grid;grid-template-columns:1.1fr .9fr;gap:30px;align-items:center}.review-banner-wrap{background:radial-gradient(ellipse,#48587040,transparent 70%);padding:25px 15px;text-align:center}.review-banner-wrap canvas{display:block;width:100%;height:auto}.review-banner-wrap .eyebrow{margin-top:24px;display:block}.review-details h2{font-size:35px;line-height:1.1;color:var(--gold);margin:0 0 15px}.review-details .review-intro{font:14px/1.7 var(--serif);color:#a8b3c4;margin-bottom:20px}.review-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding-top:18px;border-top:1px solid var(--edge)}.review-stats div{display:flex;flex-direction:column;gap:5px}.review-stats b{font:25px var(--serif);color:#e7d2a0}.review-stats span{font-size:8px;letter-spacing:1px;color:#8996aa}.game-dialog{position:relative;max-width:880px;width:min(94vw,880px);max-height:89dvh;overflow:auto;background:linear-gradient(140deg,#242d3a,#141921);border:1px solid #b7bc8655;color:var(--cream);padding:30px 35px;border-radius:4px;box-shadow:0 25px 130px #000c;scrollbar-width:thin;scrollbar-color:#65718360 transparent}.game-dialog::backdrop{background:#090b0fc4;backdrop-filter:blur(6px)}.game-dialog .close{position:sticky;top:0;float:right;font-size:9px;padding:7px 10px;z-index:4;background:#171d25e8;margin-left:10px}.game-dialog h1{font-size:39px;line-height:1.12;margin:9px 0 21px;letter-spacing:-.5px}.game-dialog h2{font-size:25px;color:#e2ce9f;margin:25px 0 12px}.game-dialog h3{font-size:19px;color:#d3c397;margin:21px 0 10px}.game-dialog p{font-size:12px;line-height:1.8;color:#abb5c5}.game-dialog table{width:100%;border-collapse:collapse;font-size:11px;margin:15px 0 20px}.game-dialog th{font-size:8px;letter-spacing:1.7px;text-transform:uppercase;color:#808da0;font-weight:normal;padding:10px 8px;border-bottom:1px solid #c5c38f44;text-align:left}.game-dialog td{padding:9px 8px;border-bottom:1px solid #7385a024;color:#bbc5d4}.game-dialog tr.ourclub td{color:#f0dba6;background:#bca66922}.game-dialog td small{font-size:9px;color:#778396;display:inline-block;min-width:17px}.game-dialog .paneltabs{display:flex;gap:5px;flex-wrap:wrap;margin:15px 0 20px;border-bottom:1px solid var(--edge);padding-bottom:14px}.paneltabs button{font-size:10px;padding:8px 12px}.game-dialog select{width:100%;margin-bottom:12px;padding:10px}.game-dialog section{padding-bottom:13px;border-bottom:1px solid var(--edge);margin-bottom:13px}.game-dialog .fixturelist{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.game-dialog .fixturelist p,.game-dialog p.result{font-size:11px;padding:7px 0;border-bottom:1px solid var(--edge);margin:0}.game-dialog .result b{color:var(--gold);margin:0 8px}.game-dialog .trophy{padding:15px 18px;border:1px solid #dbc88c55;background:#c9af6d13;color:#f0d49b;font:23px var(--serif)}.game-dialog input,.game-dialog textarea{max-width:100%}.game-dialog label{font-size:10px;color:#9aa6b9}.game-dialog button{font-size:11px}.game-dialog canvas{max-width:100%}@keyframes menu-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@keyframes grain{0%,100%{transform:translate(0,0)}20%{transform:translate(-2%,1%)}40%{transform:translate(1%,-2%)}60%{transform:translate(2%,1%)}80%{transform:translate(-1%,-1%)}}@media(min-width:1600px){.main-menu{background-position:center right}.menu-content{padding-left:9vw}.menu-content h1{font-size:85px}.menu-tagline{font-size:17px}.main-menu-actions button{font-size:12px;padding:15px 17px}.menu-logo{width:210px;margin-bottom:43px}}@media(max-height:760px) and (min-width:761px){.menu-content{padding-top:25px;padding-bottom:45px}.menu-logo{width:150px;margin-bottom:23px}.menu-content h1{font-size:52px}.menu-tagline{margin-bottom:17px;font-size:13px}.main-menu-actions button{padding:10px 17px}.setup-dialog{max-height:96dvh}.setup-shell{max-height:96dvh}.setup-header{padding:12px 25px}.setup-steps button{padding:12px 10px}.setup-body{padding:20px 30px 15px}.setup-title-row{margin-bottom:18px}.setup-title-row h2{font-size:30px}.division-card{min-height:165px}.club-preview-art{height:135px}.club{padding:8px 10px;min-height:42px}.identity-fields>input,.identity-fields>select{margin-bottom:12px}.identity-designer{padding:12px}.setup-footer{padding:12px 25px}}@media(max-width:950px){.game-wordmark strong{font-size:13px}.game-wordmark span{font-size:7px}#resources{gap:15px}#resources b{font-size:17px}.game-topbar{gap:13px;padding:9px 13px}#layout{grid-template-columns:minmax(0,1fr) 210px}.curva-panel{padding:15px 12px}.group-heading h2{font-size:22px}.game-dock{gap:8px}.game-dock nav button{padding:8px;font-size:10px}.setup-dialog{width:96vw}.setup-body{padding:21px 25px}.setup-header{padding:15px 25px}.setup-steps{padding:0 20px}.division-cards{gap:9px}.division-card{padding:18px 14px}.division-card strong{font-size:30px}.club-selection{gap:20px}.club-grid{gap:5px}.club{padding:9px 8px}.club strong{font-size:10px}.club-preview-detail{padding:13px 15px}.identity-layout{gap:20px}.menu-content{width:57vw;padding-left:6vw}.main-menu-actions{width:265px}}@media(max-width:760px){body{font-size:12px}.game-topbar{height:55px;padding:7px 10px;gap:9px}.brand-button{width:100px;padding:4px 7px}.brand-button img{height:27px}.game-wordmark{display:none}#resources{gap:11px;font-size:8px}#resources span{flex-direction:column;gap:0;align-items:flex-start}#resources b{font-size:15px}.icon-button{width:30px;height:30px;font-size:15px}#layout{display:block;height:calc(100dvh - 148px)}#world{width:100%;height:100%}.curva-panel{position:fixed;bottom:49px;left:0;right:0;height:44px;padding:5px 8px;display:flex;align-items:center;gap:6px;z-index:3;background:#141920ed;border:0;border-top:1px solid var(--edge);overflow-x:auto;scrollbar-width:none}.curva-panel .group-heading,.curva-panel #tutorial,.curva-panel #log{display:none}#actions{flex-direction:row;gap:5px;flex-shrink:0}#actions button{width:auto;min-width:100px;min-height:32px;font-size:9px;padding:6px 9px;white-space:nowrap}#actions button small{display:none}#actions>p{margin:0;align-self:center;font-size:9px;padding:0 5px}.game-dock{position:fixed;bottom:0;left:0;right:0;height:49px;padding:5px 7px;gap:6px;z-index:4;flex-wrap:nowrap}.game-dock #date{font-size:8px;max-width:36%;line-height:1.35;flex:1}.time-controls{gap:2px}.time-controls button{min-width:24px;padding:6px;font-size:9px}.game-dock nav{gap:0}.game-dock nav button{font-size:9px;padding:6px;min-width:23px}.game-dock nav #help{display:none}.game-dock nav #save,.game-dock nav #load{display:none}#caption{top:12px;left:12px;padding:9px 12px;max-width:75%}#caption b{font-size:14px}#caption .eyebrow{font-size:7px;margin-bottom:3px}.map-tools{bottom:12px;left:12px;gap:5px}.map-tools button{font-size:9px;padding:7px 9px}.zoom-cluster button{padding:3px 6px;min-width:26px;font-size:15px}#matchbanner{top:auto;bottom:58px;right:12px;padding:10px 13px;max-width:230px}#matchbanner h3{font-size:19px}#notice{bottom:56px;font-size:10px;padding:10px 14px}.main-menu{background-position:66% center}.menu-shade{background:linear-gradient(90deg,#0c0f14f5,#0e1116bd 65%,#0e111650),linear-gradient(0deg,#0a0c10e8,transparent 40%)}.menu-content{width:95%;padding:35px 26px 65px;justify-content:center}.menu-logo{width:154px;max-height:50px;margin-bottom:28px}.menu-kicker{font-size:8px;letter-spacing:2px;margin-bottom:17px}.menu-content h1{font-size:clamp(48px,11vw,72px)}.menu-tagline{font-size:13px;margin-bottom:22px}.main-menu-actions{width:260px}.main-menu-actions button{font-size:10px;padding:12px 15px}.menu-bottom{left:27px;right:20px;bottom:20px;font-size:6px;letter-spacing:1.6px}.menu-bottom span:last-child{display:none}.setup-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0;padding:0}.setup-shell{height:100%;max-height:100dvh}.setup-header{padding:14px 18px}.setup-header img{width:106px;max-height:33px}.setup-steps{padding:0 10px}.setup-steps button{font-size:7px;letter-spacing:.5px;gap:5px;padding:14px 4px}.setup-steps button span{font-size:15px}.setup-body{padding:24px 19px 20px;flex:1;overflow:auto}.setup-title-row{margin-bottom:22px;gap:12px}.setup-title-row h2{font-size:29px;letter-spacing:-.4px}.setup-selected{padding-left:13px;flex:none}.setup-selected>span{font-size:6px;letter-spacing:1px}.setup-selected>b{font-size:18px}.setup-title-row .eyebrow{font-size:7px;letter-spacing:2px}.setup-intro{font-size:13px;margin-bottom:22px}.division-cards{grid-template-columns:1fr 1fr;gap:10px}.division-card{min-height:155px;padding:16px}.division-card strong{font-size:31px;margin:12px 0}.division-card .division-rank{font-size:7px}.division-card .division-description{font-size:9px}.division-card:before{font-size:140px}.girone-cards{gap:6px;margin-top:17px}.girone-cards button{padding:9px 12px;font-size:9px}.girone-label{width:100%;margin-bottom:5px}.setup-footer{padding:13px 18px;padding-bottom:max(13px,env(safe-area-inset-bottom));gap:11px}.setup-footer #setup-back{min-width:57px;padding:9px 12px}.setup-footer #setup-progress{font-size:8px}.primary-button{padding:12px 19px;font-size:10px}.club-selection{grid-template-columns:1fr;gap:18px}.club-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.club{padding:9px 7px;min-height:45px}.club strong{font-size:10px}.club small{font-size:7px}.club .club-color{height:23px;width:3px;margin-right:1px}.club-preview-art{height:160px}.club-preview-detail{padding:16px}.club-preview h2{font-size:27px}.club-facts{gap:12px 18px}.club-facts span{font-size:10px}.identity-layout{grid-template-columns:1fr;gap:20px}.identity-fields>input,.identity-fields>select{margin-bottom:15px}.identity-fields .field-note{display:none}.identity-fields label{font-size:8px}.identity-designer{padding:15px}.identity-colors{gap:10px}.setup-review{grid-template-columns:1fr;gap:15px}.review-banner-wrap{padding:10px 0}.review-banner-wrap .eyebrow{margin-top:12px}.review-details h2{font-size:30px}.review-details .review-intro{font-size:13px;margin-bottom:15px}.review-stats{padding-top:15px}.review-stats b{font-size:23px}.game-dialog{width:96vw;max-height:93dvh;padding:24px 21px}.game-dialog h1{font-size:32px;margin-bottom:18px}.game-dialog h2{font-size:24px}.game-dialog .close{font-size:8px;padding:6px 8px}.game-dialog table{font-size:10px}.game-dialog th{font-size:7px;padding:8px 5px}.game-dialog td{padding:8px 5px}.game-dialog .paneltabs{gap:4px}.game-dialog .paneltabs button{font-size:9px;padding:8px 10px}.game-dialog .fixturelist{grid-template-columns:1fr}.game-dialog p{font-size:11px}.game-dialog p.result,.game-dialog .fixturelist p{font-size:10px}}@media(max-width:390px){.game-dock nav button{padding:6px 4px;font-size:8px}.time-controls button{min-width:21px;padding:5px;font-size:8px}.game-dock #date{font-size:7px}.setup-steps button{font-size:6px;gap:3px}.setup-title-row h2{font-size:25px}.setup-selected>b{font-size:16px}.club strong{font-size:9px}.club small{font-size:6px}.club{gap:6px}.menu-content h1{font-size:46px}.main-menu-actions button{padding:11px 15px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Banner studio, campaign slots, and settings share the same game panel language. */
.micro{display:block;font-size:8px;letter-spacing:1.4px;color:#7b899e;line-height:1.6}.subtle{background:transparent;color:#919fb3;border-color:#7489aa33}.primary{background:var(--gold);border-color:var(--gold);color:#181e26;font-weight:700;letter-spacing:1px;padding:12px 18px}.primary:hover{background:var(--gold-bright);color:#181e26}.banner-canvas-wrap{margin-bottom:13px}.banner-canvas-wrap .micro{margin-top:8px;text-align:center}.banner-studio canvas.banner-live{width:100%;height:auto;background:repeating-conic-gradient(#1e2632 0% 25%,#293342 0% 50%) 50% / 14px 14px;border:1px solid #aeb98744;border-radius:2px}.studio-tools{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.studio-tools>.upload-control{flex:1;min-width:180px;margin:0}.studio-tools>.logo-remove{align-self:flex-end;white-space:nowrap;padding:8px 10px;font-size:9px;min-height:33px}.studio-tools>label:not(.upload-control){width:100%;margin-top:1px}.studio-tools label{font-size:8px;letter-spacing:1px;color:#98a4b7}.studio-tools label input{display:block;width:100%;margin-top:5px}.upload-control{display:block;font-size:9px;letter-spacing:1.3px;color:var(--gold)}.upload-control input[type=file]{display:block;max-width:100%;width:100%;font-size:9px;letter-spacing:0;padding:7px;min-height:33px;margin-top:6px;background:#11151b;border:1px solid #5d708d55}.upload-control input[type=file]::file-selector-button{background:#374253;color:#e3dec5;border:0;border-radius:2px;font-size:9px;padding:5px 7px;margin-right:8px;cursor:pointer}.background-choices{display:flex;gap:5px;flex-wrap:wrap;width:100%;margin:0}.background-choices button{flex:1;text-transform:uppercase;font-size:8px;letter-spacing:.6px;padding:7px 9px;min-height:29px}.studio-ranges{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:2px}.studio-ranges input[type=range]{height:19px;min-height:19px;padding:0;accent-color:var(--gold)}.crop-controls{width:100%;border-top:1px solid var(--edge);margin-top:4px;padding-top:9px}.crop-controls summary{font-size:9px;letter-spacing:.6px;color:#91a0b7;cursor:pointer;padding:5px 0}.crop-controls .crop-preview{width:130px;height:130px!important;max-width:45%;float:left;margin:10px 18px 10px 0;background:repeating-conic-gradient(#293341 0% 25%,#1b222d 0% 50%) 50% / 14px 14px}.crop-controls label{display:block;margin:10px 0 0}.crop-controls input[type=range]{display:block;width:100%;min-height:20px;accent-color:var(--gold)}.crop-controls:after{content:'';display:block;clear:both}.studio-error{font-size:10px;line-height:1.5;color:#e3bc91;margin:0;width:100%;min-height:0}.studio-error:empty{display:none}#identity-edit-live{margin-bottom:22px}.save-slots{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0 20px}.save-slot{padding:17px 18px;background:#27314055;border:1px solid var(--edge);border-radius:3px}.save-slot .eyebrow{font-size:8px}.game-dialog .save-slot h3{margin:10px 0 8px;font-size:22px}.game-dialog .save-slot p{font-size:10px;line-height:1.6;margin-bottom:14px}.save-slot>div{display:flex;gap:6px}.save-slot button{padding:8px 12px;font-size:9px;letter-spacing:.6px}.save-transfer{display:flex;align-items:end;gap:14px;padding:17px 0;border-top:1px solid var(--edge);border-bottom:1px solid var(--edge);margin-bottom:13px}.save-transfer .upload-control{max-width:340px;flex:1}.save-transfer>button{padding:11px 16px;white-space:nowrap;font-size:10px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 26px;margin:22px 0 27px}.settings-grid label{display:flex;align-items:center;gap:12px;font-size:12px;padding:5px 0;color:#b1bccc}.settings-grid label:first-child,.settings-grid label:last-child{grid-column:1/-1;flex-direction:column;align-items:flex-start;gap:8px}.settings-grid select{margin:0;max-width:360px}.settings-grid input[type=checkbox]{appearance:none;width:17px;height:17px;min-height:17px;padding:0;border:1px solid #8295b277;background:#161c25;border-radius:2px;cursor:pointer;flex:none}.settings-grid input[type=checkbox]:checked{background:var(--gold);box-shadow:inset 0 0 0 3px #232c39}.settings-grid input[type=range]{width:min(360px,100%);accent-color:var(--gold);min-height:18px;padding:0}.panel-card,.stat-card{padding:16px;background:#29334355;border:1px solid var(--edge);border-radius:3px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stat-card b{display:block;font:27px var(--serif);color:var(--gold)}.stat-card small{font-size:8px;letter-spacing:1px;text-transform:uppercase}@media(max-width:760px){.game-dock nav{min-width:0;overflow-x:auto;scrollbar-width:none}.game-dock nav #save,.game-dock nav #load{display:block}.game-dock nav button{flex:none}.game-dock #date{min-width:74px}.studio-ranges{gap:8px}.studio-tools>.upload-control{min-width:155px}.save-slots{gap:9px}.save-slot{padding:13px}.game-dialog .save-slot h3{font-size:20px}.save-slot button{padding:7px 9px;font-size:8px}.save-transfer{flex-direction:column;align-items:stretch}.save-transfer .upload-control{max-width:none}.settings-grid{grid-template-columns:1fr;gap:14px}.settings-grid label:first-child,.settings-grid label:last-child{grid-column:auto}.settings-grid label{font-size:11px}.stat-grid{grid-template-columns:repeat(2,1fr)}.crop-controls .crop-preview{width:110px;height:110px!important;margin-right:12px}.studio-tools>.logo-remove{font-size:8px;padding:7px}.background-choices button{font-size:7px;padding:7px 5px}}
/* Strategic travel, matchday and development panels share the game's ticket language. */
.national-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr);gap:24px;margin-top:18px}.italy-map{position:relative;background:#102a2c;border:1px solid #65776244;border-radius:4px;overflow:hidden}.italy-map svg{width:100%;max-height:63vh;display:block}.italy-map .land{fill:url(#land);stroke:#8894a5;stroke-width:1.4}.italy-map .rail{stroke:#c8b37a;stroke-width:.8;opacity:.42}.italy-map .ferry{stroke-dasharray:3 4;stroke:#97c7cf}.map-city{cursor:pointer;outline:none}.map-city circle{fill:#d0bc87;stroke:#131820;stroke-width:1}.map-city text{font:7px system-ui;fill:#c9d1de;paint-order:stroke;stroke:#181e26;stroke-width:2px}.map-city.home circle{fill:#f1ce75;stroke:#eee4ba;stroke-width:2}.map-city.selected circle,.map-city:hover circle{fill:#fff6d4;r:6}.map-city.selected text,.map-city:hover text{font-size:9px;fill:#fff}.map-filters,.travel-modes{display:flex;flex-wrap:wrap;gap:7px}.map-filters button,.travel-modes button{padding:9px 12px;font-size:11px}.map-legend{position:absolute;bottom:8px;left:12px;right:10px;display:flex;gap:12px;font-size:9px;color:#b5becb}.map-city-detail article{border-bottom:1px solid #b5b78530;padding:12px 0 24px}.map-city-detail h2{font:30px Georgia;margin:7px 0}.map-city-detail p{font-size:12px;line-height:1.8;color:#b6bec9}.map-city-detail button{margin:6px 6px 0 0;font-size:10px}.club-swatches i{display:inline-block;width:20px;height:9px;background:var(--c);border:1px solid #e7dabb33}.travel-quote{background:#ffffff05;padding:20px 24px;margin:18px 0;border-left:2px solid #c7a45f}.travel-quote h3{font:32px Georgia;color:#e9d7a6;margin:0 0 12px}.travel-attendance{display:block;margin-top:24px}.travel-attendance b{float:right}.travel-attendance input{display:block;width:100%;accent-color:#c6aa68}.route-stops{color:#d7c28f;line-height:1.8}.match-controls{position:absolute;left:50%;bottom:17px;transform:translateX(-50%);width:min(620px,90%);padding:18px 22px;background:linear-gradient(130deg,#202833ef,#151a22f5);border:1px solid #b8a16477;box-shadow:0 20px 70px #0008;z-index:5;backdrop-filter:blur(15px)}.match-controls .eyebrow{font-size:9px;text-align:center}.match-score{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;margin:12px 0;text-align:center}.match-score b{font:29px Georgia;color:#ebd5a1}.match-score span{font:17px Georgia}.match-progress{height:2px;background:#b7b79233}.match-progress i{display:block;height:2px;background:#d5b775;transition:width .3s}.match-meta{text-align:center;font-size:9px;letter-spacing:1.5px;margin:10px 0;color:#aab3c1}.match-buttons{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.match-buttons button{font-size:9px;padding:10px 11px;letter-spacing:.7px}.match-buttons button:disabled{opacity:.4;cursor:default}.register-results{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-height:55vh;overflow:auto}.register-tools{display:flex;gap:12px;margin:20px 0}.register-tools input{flex:1;min-width:80px}.register-card{padding:18px;border:1px solid #b8bb8b33;background:#ffffff03}.register-card h3{font:22px Georgia;margin:0 0 10px}.register-card small{font:10px system-ui;color:#98a3b4}.register-card strong{font-size:13px;color:#d9c78e}.register-card dl{font-size:10px;line-height:1.6}.register-card dt{color:#b5bc9e;text-transform:uppercase;font-size:9px;letter-spacing:1px}.register-card dd{margin:0 0 9px;color:#d2d7c0;overflow-wrap:anywhere}.register-card a{color:#d2bd7a}.diplomacy-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.diplomacy-card{border:1px solid #a5af7940;padding:20px;background:#ffffff04}.diplomacy-card h3{font:23px Georgia;color:#e2d2a7;margin:6px 0}.diplomacy-card p,.politics-grid p{font-size:12px;color:#acb5c3;line-height:1.7}.diplomacy-card button{font-size:9px;margin:4px 2px;padding:10px}.coppa-groups details{margin:12px 0;padding:12px;background:#ffffff04;border:1px solid #8d9a6630}.coppa-groups summary{cursor:pointer;color:#d5bf84;font-size:11px;letter-spacing:2px}.reduced-motion *{animation-duration:.01ms!important;transition-duration:.01ms!important}#identity-button{font-size:8px;padding:7px;margin-bottom:9px}#identitypreview{width:100%;height:auto}.save-slot button{margin:4px 6px 0 0}
@media(max-width:760px){.national-layout{grid-template-columns:1fr}.italy-map svg{max-height:45vh}.map-city-detail{max-height:26vh;overflow:auto}.map-city-detail h2{font-size:23px}.register-results,.diplomacy-grid{grid-template-columns:1fr}.match-controls{bottom:60px;width:94%;padding:12px}.match-score span{font-size:13px}.match-score b{font-size:22px}.match-buttons button{font-size:8px;padding:9px}.register-tools{flex-direction:column}.register-results{max-height:48vh}#identity-button{display:none}}
/* Dedicated matchday viewport: the arena stays visible around compact contextual controls. */
body.stadium-active #layout{grid-template-columns:minmax(0,1fr)}body.stadium-active .curva-panel{display:none}body.stadium-active #caption{display:none}body.stadium-active #italy{display:none}body.stadium-active #maptools{top:95px;bottom:auto;right:12px;left:auto;display:flex;flex-direction:column}body.stadium-active #selectall{display:none}body.stadium-active #notice{top:102px;bottom:auto;max-width:360px;font-size:11px}#canvas{touch-action:none}.stadium-scoreboard{position:absolute;z-index:4;top:12px;left:50%;transform:translateX(-50%);width:min(640px,78%);background:linear-gradient(110deg,#141921f5,#1d242fef);border:1px solid #a99a6077;border-top:2px solid #d5b478;padding:8px 18px;text-align:center;pointer-events:none;box-shadow:0 8px 30px #0004}.stadium-scoreboard>small{color:#b7b9a1;text-transform:uppercase;letter-spacing:1.4px;font-size:8px}.stadium-scoreboard>div{display:flex;align-items:center;justify-content:center;gap:20px}.stadium-scoreboard span{font:18px Georgia;display:flex;align-items:center;gap:8px}.stadium-scoreboard span:before{content:'';height:14px;width:5px;background:var(--kit);border:1px solid #ddd6}.stadium-scoreboard b{font:28px Georgia;white-space:nowrap;color:#f0d89e}.stadium-scoreboard em{font-size:10px;min-width:46px;color:#c6cbb1;font-style:normal}.stadium-scoreboard p{margin:0;height:14px;font-size:8px;color:#d9c48d;letter-spacing:1px;text-transform:uppercase}.stadium-command-dock{position:absolute;z-index:5;bottom:12px;left:50%;transform:translateX(-50%);width:min(830px,calc(100% - 28px));border:1px solid #baa37177;background:#141921ec;box-shadow:0 12px 40px #0006;padding:9px 12px;border-radius:4px;backdrop-filter:blur(9px)}.stadium-command-dock button{font-size:9px;letter-spacing:.6px;padding:9px 12px;min-height:36px}.stadium-command-dock button:disabled{opacity:.35;cursor:default}.stadium-selection{display:flex;align-items:center;gap:9px;border-bottom:1px solid #b5ac7330;padding-bottom:7px;margin-bottom:6px}.stadium-selection>span:nth-child(2){flex:1;min-width:0}.stadium-selection b{display:block;font:16px Georgia;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stadium-selection small{display:block;font-size:8px;color:#a9b2c0;letter-spacing:.7px}.group-mark{width:17px;height:25px;border:4px solid;flex-shrink:0}.stadium-orders{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.stadium-orders button:first-child{border-color:#d3b573}.stadium-group-tabs{display:flex;overflow-x:auto;gap:6px;margin-top:6px;scrollbar-width:thin;max-width:100%}.stadium-group-tabs button{white-space:nowrap;font-size:8px;padding:4px 8px;min-height:26px;background:#1f2732}.stadium-group-tabs button.active{background:#ddc183;color:#181e26}.entry-count{display:block;color:#ceceac;font-size:10px;letter-spacing:1px;padding:8px}.assembly-strip{display:flex;justify-content:space-between;align-items:center;gap:16px}.assembly-strip b{font-size:11px;color:#dfc78c;display:block}.assembly-strip small{font-size:10px;color:#a9b2c0;display:block}.match-report-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:24px 0}.match-report-grid article{border:1px solid #b7af6433;padding:15px;background:#ffffff04}.match-report-grid small{font-size:9px;text-transform:uppercase;color:#a9b1be;display:block}.match-report-grid b{font:21px Georgia;color:#e6d2a3;display:block}.choreo-options{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.choreo-options article{padding:20px;border:1px solid #b7ac6944;background:#ffffff04}.choreo-options h3{font:22px Georgia;color:#e1c58f}.choreo-options button{display:block;margin-top:20px}.stadium-active .game-dock nav button{padding:7px;font-size:9px}.stadium-active #date{max-width:180px}.stadium-active .game-topbar{height:55px}.stadium-active #layout{height:calc(100dvh - 110px)}
@media(max-width:760px){body.stadium-active #layout{display:block;height:calc(100dvh - 105px)}body.stadium-active #world{height:100%;min-height:0}body.stadium-active .game-wordmark{display:none}body.stadium-active .game-topbar{height:48px}body.stadium-active #resources{font-size:9px;gap:10px}body.stadium-active #maptools{top:89px;right:5px;gap:4px}body.stadium-active #maptools button{width:34px;height:34px;padding:3px}.stadium-scoreboard{top:7px;padding:6px 8px;width:calc(100% - 20px)}.stadium-scoreboard>div{gap:10px}.stadium-scoreboard span{font-size:14px;gap:5px}.stadium-scoreboard b{font-size:23px}.stadium-scoreboard>small{font-size:7px;letter-spacing:.5px}.stadium-scoreboard em{font-size:8px;min-width:35px}.stadium-command-dock{bottom:6px;width:calc(100% - 12px);padding:6px 7px}.stadium-command-dock button{font-size:8px;letter-spacing:.1px;padding:6px 8px;min-height:36px}.stadium-selection{gap:5px;margin-bottom:4px;padding-bottom:5px}.stadium-selection b{font-size:13px}.stadium-selection small{font-size:7px;letter-spacing:.1px}.stadium-selection>button{min-width:38px}.stadium-orders{gap:4px;justify-content:center}.stadium-group-tabs{margin-top:4px}.stadium-group-tabs button{min-height:27px;font-size:7px;padding:4px 7px}.stadium-active .game-dock{height:57px;display:flex;justify-content:space-between;gap:5px;padding:4px 6px;flex-wrap:wrap}.stadium-active .game-dock nav{display:none}.stadium-active #date{font-size:8px;max-width:110px}.stadium-active .time-controls{margin-left:auto;display:flex;gap:3px}.stadium-active .time-controls button{min-width:36px;min-height:36px;padding:6px}.assembly-strip{gap:8px}.assembly-strip b{font-size:9px}.assembly-strip small{font-size:9px}.match-report-grid{grid-template-columns:repeat(2,1fr);gap:7px}.choreo-options{grid-template-columns:1fr}.choreo-options article{padding:14px}.choreo-options h3{margin:0}.choreo-options button{margin-top:10px}body.stadium-active #notice{max-width:calc(100% - 75px);top:89px;font-size:9px;padding:7px 10px}}
.matchday-history button{display:block;width:100%;text-align:left;margin:7px 0}.matchday-history small{display:block;font-size:10px;color:#b0bac8}@media(max-width:760px){.stadium-command-dock button{min-height:40px}.stadium-group-tabs button{min-height:28px}}
/* Graphite strategy interface — environmental artwork is unchanged. */
:root{--ink:#17191d;--panel:#22252bed;--panel-solid:#25282e;--edge:#ffffff1c;--cream:#f4f0e8;--muted:#b0b1b6;--gold:#d9bd84;--gold-bright:#efd5a3;--club-accent:#d9bd84;--club-secondary:#f4f0e8;--serif:Arial,Helvetica,sans-serif}
body{font:14px/1.5 Arial,Helvetica,sans-serif;background:#181a1f}h1,h2,h3{font-weight:700;letter-spacing:-.025em}button{background:#30343c;border-color:#ffffff20;border-radius:9px;min-height:42px;font-weight:600;letter-spacing:.02em}button:hover{background:#414650;border-color:#ffffff55}button:focus-visible{outline:2px solid #edce93}button.active,button[aria-pressed=true]{background:#e1c58e;color:#202126;border-color:#e1c58e}.primary-button{background:#e1c58e;color:#202126;border-color:#e1c58e;border-radius:9px;letter-spacing:.045em}.primary-button:hover{background:#f3d9a7;color:#202126}.quiet-button{background:#ffffff06;color:#d8d6d0}.game-topbar{height:76px;background:#202228;border-bottom:1px solid #ffffff1b;gap:20px;padding:10px 20px;box-shadow:0 6px 24px #0003}.brand-button{border-radius:7px;background:#eee9dc;min-height:42px}.game-wordmark strong{font-size:12px;font-weight:750;letter-spacing:1.3px}.game-wordmark span{font-size:10px;color:#aaaeb8;letter-spacing:2px}#resources{gap:5px;letter-spacing:0}#resources .resource-pill{display:flex;align-items:center;gap:9px;border:1px solid transparent;background:transparent;text-align:left;padding:4px 12px;border-radius:8px;min-height:48px}#resources .resource-pill:hover{background:#ffffff09;border-color:#ffffff20}#resources svg{width:19px;height:19px;color:var(--club-accent);filter:drop-shadow(0 0 4px #ffffff15)}#resources span{display:block}#resources small{display:block;color:#b5b6be;font-size:10px;font-weight:500;letter-spacing:.3px}#resources b{font:700 19px/1.3 Arial;color:#f6f1e7}.icon-button{background:#30333b;width:42px;height:42px;border-radius:10px}#layout{height:calc(100dvh - 140px);grid-template-columns:minmax(0,1fr) 310px}.curva-panel{padding:19px 18px;background:#22252a;border-left:1px solid #ffffff1c;scrollbar-color:#ffffff24 transparent}.group-heading{margin-bottom:17px;padding-bottom:14px;position:relative;border-color:#ffffff19}.group-heading:before{content:'';position:absolute;left:-18px;top:0;width:3px;height:45px;background:var(--club-accent)}.group-heading h2{font-size:23px;font-weight:750;line-height:1.15;margin:7px 0}.group-heading p{font-size:12px;color:#babcc3;margin-bottom:9px}.eyebrow{color:#c7b58f;font-size:10px;letter-spacing:1.8px}#identity-button{float:right;font-size:9px;min-height:30px;padding:5px 8px;margin:0 0 8px 8px}#identitypreview{display:none!important}#tutorial{display:none}#strategy-objectives{padding-bottom:18px;margin-bottom:16px;border-bottom:1px solid #ffffff18}.objective-heading{display:flex;gap:10px;align-items:center}.objective-heading svg{width:27px;height:27px;color:#e1c58e}.objective-heading>span{flex:1}.objective-heading small,.next-priority>small{font-size:9px;color:#aaaeb8;letter-spacing:1.6px;font-weight:700}.objective-heading h3{font-size:14px;letter-spacing:.04em;margin:2px 0}.objective-heading>b{font-size:13px;color:#c4b393}.objective-intro{font-size:12px;color:#c5c4c5;line-height:1.55;margin:12px 0}.objective-list{display:grid;gap:10px}.objective-row{display:flex;gap:9px;align-items:center}.objective-row>span{font-size:17px;color:#aaaeb8;align-self:start}.objective-row>div{flex:1}.objective-row b{display:block;font-size:12px;font-weight:500;color:#e2dfd8}.objective-row progress{display:block;height:3px;margin-top:5px;background:#383b42}.objective-row progress::-webkit-progress-bar{background:#383b42}.objective-row progress::-webkit-progress-value{background:#cbb47c}.objective-row.complete>span{color:#b8c3d3}.objective-row.complete b{color:#b8c3d3}.next-priority{margin-top:17px;padding:13px;background:#30333b;border-radius:11px;border:1px solid #ffffff12}.next-priority h4{font-size:14px;margin:5px 0 7px;color:#f4eee3}.next-priority p{font-size:12px;line-height:1.6;color:#c1c1c6;margin-bottom:12px}.next-priority button{width:100%;display:flex;align-items:center;justify-content:space-between;padding:10px 12px;font-size:10px;min-height:42px}.next-priority svg{width:17px;height:17px}#actions{gap:7px}#actions button{display:flex;gap:10px;align-items:center;padding:11px 12px;background:#2c3037;border-color:#ffffff12;border-radius:9px;box-shadow:none;min-height:58px}#actions button:hover{background:#393e47;border-color:#ffffff35}#actions button>svg{width:20px;height:20px;flex:none;color:#d1bea0}#actions button>svg:last-child{width:15px;color:#92959f}#actions button>span{flex:1}#actions button b{display:block;font-size:12px;font-weight:650;color:#f2eee6}#actions button small{display:block;color:#afb1bb;font-size:10px;line-height:1.7}#actions>p{background:#353330;border-radius:8px;padding:12px;font-size:12px}#log{font-size:12px;color:#bcbdc4;border-color:#ffffff16}#log small{font-size:10px;color:#a7a2a0}#log p{padding:0 2px;margin-bottom:14px}#caption{background:#24272de8;border:1px solid #ffffff22;border-left:3px solid var(--club-accent);border-radius:10px;top:20px;left:20px;padding:12px 15px}#caption b{font:650 15px Arial}#caption .eyebrow{font-size:9px}#notice{background:#24272df5;border-color:#b4a17b60;border-radius:10px;font-size:13px;line-height:1.55}.map-tools button,.time-controls button{background:#272a31ec;color:#eee9df;border-color:#ffffff1d}.map-tools button:hover{background:#3c414b}.map-tools{left:20px;bottom:20px;gap:9px}.map-tools button{font-size:12px;min-height:40px}.zoom-cluster button{min-width:38px}.game-dock{height:64px;background:#202228;border-top:1px solid #ffffff20;padding:10px 20px;gap:18px}.game-dock #date{font-size:12px;color:#cfccd0;line-height:1.5;max-width:38%}.time-controls{gap:4px;padding:3px;border:1px solid #ffffff13;border-radius:11px;background:#191b20}.time-controls button{min-width:37px;min-height:34px;padding:5px 8px;font-size:11px;border:0;background:transparent}.game-dock nav{gap:3px}.game-dock nav button{font-size:12px;min-height:40px;padding:8px 12px;border:0;background:transparent;color:#c3c4cc}.game-dock nav button:hover{background:#ffffff0c;color:#fff}.game-dock nav #help{border:1px solid #ffffff25;min-width:36px}.game-dialog{background:#24272e!important;border-color:#ffffff25!important;border-radius:17px!important;box-shadow:0 35px 100px #0009;color:#ece8e1}.game-dialog h1{font-size:30px;font-weight:750;color:#f4eee3}.game-dialog h3{font-weight:650;color:#decca9}.game-dialog p{font-size:14px!important;line-height:1.7!important;color:#c4c5cb!important}.game-dialog input,.game-dialog select,.setup input,.setup select{background:#191c22;color:#f1eee8;border-color:#ffffff28;border-radius:8px;font-size:14px}.save-slot,.panel-card,.stat-card,.register-card,.diplomacy-card,.travel-quote,.choreo-options article{background:#ffffff04;border-color:#ffffff1d;border-radius:10px}.settings-grid label{font-size:14px;color:#d0cdd0}.settings-grid input[type=checkbox]{background:#191b20;border-color:#aeb1ba}.settings-grid input[type=checkbox]:checked{box-shadow:inset 0 0 0 3px #24272e;background:#d6be8e}.main-menu{background-color:#1c1d22}.menu-shade{background:linear-gradient(90deg,#14161bf7 0%,#181a20e8 28%,#191b2180 55%,#191b2110 85%),linear-gradient(0deg,#16171cf2,transparent 40%)}.main-menu-actions button{border-radius:10px}.menu-content h1{font-family:Arial,Helvetica,sans-serif;font-weight:850}.setup,.setup-shell{background:#24272e}.setup-header,.setup-footer{background:#202228}.division-card,.club-card,.club-preview{border-radius:12px;background-color:#2c3037}.stadium-scoreboard{background:#24272eec;border:1px solid #ffffff26;border-top:2px solid #c7b38d;border-radius:12px;box-shadow:0 10px 30px #0003;padding:10px 18px}.stadium-scoreboard>small{font-size:10px;color:#bfc0c8;letter-spacing:1px}.stadium-scoreboard span{font:650 17px Arial}.stadium-scoreboard b{font:750 30px Arial;color:#f5e7c8}.stadium-scoreboard em{font-size:12px;color:#ddd9d1}.stadium-scoreboard p{font-size:10px;color:#cdbd9f;height:17px}.stadium-command-dock{background:#25282ef2;border:1px solid #ffffff25;border-radius:13px;padding:12px 14px;box-shadow:0 16px 45px #0005}.stadium-command-dock button{font-size:11px;min-height:40px;border-radius:8px;letter-spacing:.02em;padding:9px 12px}.stadium-selection b{font:650 16px Arial}.stadium-selection small{font-size:10px;color:#b5b6c0;letter-spacing:.2px}.stadium-selection{border-color:#ffffff19}.stadium-group-tabs button{background:#343842;font-size:10px;padding:6px 9px;min-height:32px}.stadium-group-tabs button.active{background:#dbc391;color:#222329}.stadium-orders{gap:6px}.stadium-orders button[data-terrace=chant]{border-color:#dfc38e;background:#4a4336}.stadium-orders button[data-terrace=pyro]{background:#63382e;border-color:#ba7154;color:#ffe3be}.entry-count{font-size:12px;color:#cfc7b4}#strategy-toggle{display:none}body.stadium-active .game-topbar{height:65px}body.stadium-active #layout{height:calc(100dvh - 129px)}body.stadium-active #strategy-toggle{display:none}
@media(min-width:1600px){#layout{grid-template-columns:minmax(0,1fr) 330px}.curva-panel{padding:22px}}
@media(max-width:1050px){.game-wordmark{display:none}#resources .resource-pill{padding:4px 8px}#resources{gap:2px}#resources b{font-size:17px}#layout{grid-template-columns:minmax(0,1fr) 290px}.game-dock nav button{padding:7px 9px}.game-dock #date{max-width:29%;font-size:11px}}
@media(max-width:760px){.game-topbar,body.stadium-active .game-topbar{height:67px;padding:8px 9px;gap:7px}.brand-button{width:81px;padding:5px;min-height:34px}.brand-button img{height:24px}#resources{gap:0;justify-content:end;flex:1}#resources .resource-pill{padding:3px 5px;gap:0;min-height:43px}#resources svg{display:none}#resources small{font-size:8px}#resources b{font-size:14px}#resources .resource-pill[data-resource=influence],#resources .resource-pill[data-resource=loyalty]{display:none}.icon-button{min-height:34px;width:34px;height:34px;padding:5px;font-size:16px}#layout,body.stadium-active #layout{display:block;height:calc(100dvh - 139px)}#world{height:100%;min-height:0}.curva-panel{display:none;position:absolute;z-index:8;right:8px;top:76px;bottom:83px;width:min(330px,calc(100vw - 16px));border:1px solid #ffffff2b;border-radius:14px;box-shadow:0 20px 70px #0009;padding:17px}.strategy-panel-open:not(.stadium-active) .curva-panel{display:block}#strategy-toggle{display:block;background:#d8c18e;color:#22252b;border-color:#d8c18e}.map-tools{left:10px;right:10px;bottom:12px;gap:5px;flex-wrap:wrap}.map-tools button{font-size:11px;padding:7px 10px;min-height:40px}.zoom-cluster button{min-width:31px}.game-dock{height:72px;padding:6px 9px;display:grid;grid-template-columns:1fr auto;gap:1px 5px;align-content:center}.game-dock #date{max-width:none;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-dock .time-controls{grid-column:2;grid-row:1/3}.game-dock nav{display:flex;gap:0;overflow:visible;min-width:0}.game-dock nav button{padding:3px 7px;font-size:10px;min-height:27px;flex:none}.game-dock nav #save,.game-dock nav #load{display:none}.game-dock nav #help{min-width:25px;min-height:25px}.time-controls{gap:0;padding:2px}.time-controls button{min-width:30px;min-height:36px;padding:4px 6px}.game-dialog{padding:22px!important;width:calc(100% - 22px)!important;max-height:88dvh!important}.game-dialog h1{font-size:25px}.game-dialog p{font-size:13px!important}#caption{top:12px;left:10px;max-width:80%;padding:9px 12px}#caption b{font-size:13px}.stadium-scoreboard{top:8px;padding:7px 9px;width:calc(100% - 16px);border-radius:10px}.stadium-scoreboard>small{font-size:8px}.stadium-scoreboard span{font-size:13px}.stadium-scoreboard b{font-size:24px}.stadium-scoreboard em{font-size:10px}.stadium-scoreboard p{font-size:8px;height:14px}.stadium-command-dock{padding:9px;bottom:8px;width:calc(100% - 14px);border-radius:12px}.stadium-selection b{font-size:13px}.stadium-selection small{font-size:9px}.stadium-command-dock button{font-size:10px;min-height:40px;padding:7px 9px}.stadium-orders{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px;scrollbar-width:thin}.stadium-orders button{white-space:nowrap;flex:none}.stadium-group-tabs button{font-size:9px;min-height:30px}.stadium-active .game-dock{height:72px;display:flex;align-items:center;justify-content:space-between;padding:7px 10px}.stadium-active #date{font-size:11px;max-width:45%}.stadium-active .time-controls button{min-width:37px;min-height:40px}body.stadium-active #maptools{top:95px}.match-report-grid b{font-size:20px}.objective-row b{font-size:13px}.group-heading p{font-size:12px}}
@media(prefers-reduced-motion:reduce){button,.curva-panel{transition:none}}
#status{display:flex;gap:7px;margin:6px 0 10px}#status button{min-height:27px;padding:3px 7px;background:#ffffff06;border-color:#ffffff15;border-radius:6px;font-size:10px;color:#bfc2cc}#status button:hover{background:#ffffff12}.group-heading{padding-bottom:12px;margin-bottom:13px}.objective-list{grid-template-columns:1fr 1fr;gap:10px}.objective-row{align-items:flex-start;gap:5px}.objective-row b{font-size:11px;min-height:32px;line-height:1.35}.objective-row>span{font-size:13px}.objective-intro{font-size:11px;line-height:1.5;margin:10px 0}.next-priority{margin-top:13px;padding:11px}.next-priority h4{font-size:13px;margin:4px 0}.next-priority p{font-size:11px;line-height:1.5;margin-bottom:9px}.next-priority button{min-height:39px;font-size:10px}.mobile-campaign-tools{display:none}#setup{background:#25282e;border-color:#ffffff28;border-radius:15px}#setup input,#setup select,.identity-designer input,.identity-designer select{background:#1c1f25;color:#f0ede7;border-color:#ffffff28;border-radius:8px;font-size:13px}.identity-designer{background:#ffffff04;border-color:#ffffff20;border-radius:12px}.identity-designer label{font-size:10px;color:#bec0c8}.setup-intro,.field-note{color:#bdc0c8}.setup-steps button{font-size:11px}.club-grid button{background:#2f333b;border-color:#ffffff16;border-radius:9px}.club-grid button.active{background:#484336;border-color:#d8bc82;color:#fff}.division-cards button{background:#30343c}.menu-gameplay{font:13px/1.6 Arial;color:#d1c7b4;max-width:320px;margin:18px 0}.setup-steps .active{color:#efd9ad}.menu-footer{color:#b9b9c0}.setup-footer #setup-progress{color:#b2b1ba}body.strategy-panel-open #strategy-toggle{background:#fff0cc;box-shadow:0 0 0 2px #fff3}
@media(max-width:760px){.mobile-campaign-tools{display:flex;gap:8px;margin-top:14px}.mobile-campaign-tools button{flex:1;font-size:12px;background:#333741}.objective-row b{font-size:12px;min-height:34px}.next-priority p{font-size:12px}#status button{font-size:11px;min-height:32px}.curva-panel{animation:panel-arrive .18s ease-out}.setup-steps button{font-size:9px}.menu-gameplay{font-size:12px}}
@keyframes panel-arrive{from{transform:translateX(12px);opacity:0}to{transform:translateX(0);opacity:1}}
.match-controls:not(.stadium-command-dock){background:#25282ef2;border-color:#ffffff28;border-radius:12px}.assembly-strip b{color:#e1cba0}.assembly-strip small{color:#c1c2cb}.menu-gameplay{margin:16px 0 22px;max-width:350px}#setup label{color:#c1c2cb}.studio-error{color:#e0ba90}#status{line-height:1.3}.objective-row.complete progress::-webkit-progress-value{background:#a8b5c9}
#strategy-glance{display:none}@media(max-width:760px){#strategy-glance{display:block;position:absolute;z-index:3;top:83px;left:10px;max-width:240px;text-align:left;padding:8px 12px;background:#282b31ec;border-color:#ffffff28;box-shadow:0 6px 18px #0003}#strategy-glance small{display:block;font-size:8px;letter-spacing:1px;color:#cdbc99}#strategy-glance b{font-size:11px;color:#eeece6;font-weight:550}body.stadium-active #strategy-glance{display:none}.curva-panel .group-heading{display:block}.curva-panel .group-heading h2{font-size:19px}.curva-panel .group-heading .eyebrow{font-size:9px}.curva-panel #identity-button{display:block}.strategy-panel-open #strategy-glance{display:none}.curva-panel #status{margin-bottom:8px}.objective-intro{font-size:12px}}
/* Live singing and an independent audio mixer. */
.curva-live{display:flex;align-items:center;gap:12px;padding:9px 0 7px;border-top:1px solid #ffffff1b;margin-top:7px}.curva-live>div{flex:1;min-width:140px}.curva-live>div>b{display:block;font-size:12px;color:#ead9b9}.curva-live small{display:block;font-size:9px;color:#aeb3c0}.curva-live>span{font-size:9px;color:#b9bdc8;line-height:1.5;white-space:nowrap}.curva-live>span>b{display:block;color:#eee7d7;font-size:13px}.curva-song-orders{display:flex;gap:5px;overflow-x:auto;padding:3px 0 4px;scrollbar-width:thin}.curva-song-orders button{flex:none;font-size:9px!important;min-height:33px!important;padding:7px 9px!important;white-space:nowrap}.curva-song-orders button[data-support=sing],.curva-song-orders button[data-support=final-push]{border-color:#d2ba83}.curva-achievement{padding:20px;border:1px solid #e4c57c;background:#594d2d;border-radius:12px;color:#fff0ca;font-size:19px;font-weight:750;margin-bottom:20px}.audio-mixer{display:grid;grid-template-columns:1fr 1fr;gap:17px 25px;margin:20px 0}.audio-mixer label{font-size:13px;color:#e4dfd5}.audio-mixer output{float:right;color:#e4c991;font-weight:700}.audio-mixer input{display:block;width:100%;margin:7px 0 0;accent-color:#d6bd86;min-height:25px}.audio-mute{display:flex;gap:10px;align-items:center;font-size:14px}.audio-mute input{min-height:20px;width:20px;accent-color:#d6bd86}.audio-preview{display:flex;gap:14px;align-items:center;margin:18px 0 25px;padding-bottom:20px;border-bottom:1px solid #ffffff1d}.audio-preview button{font-size:11px}.audio-preview span{font-size:11px;color:#b8b9c4}.stadium-command-dock{width:min(960px,calc(100% - 28px))}.stadium-orders{flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px;scrollbar-width:thin}.stadium-orders button{flex:none;white-space:nowrap}
@media(max-width:760px){.curva-live{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;padding:6px 0}.curva-live>div{grid-column:1/-1;min-width:0;display:flex;justify-content:space-between;align-items:center;gap:5px}.curva-live>div>b{font-size:11px}.curva-live small{font-size:8px;text-align:right;max-width:58%}.curva-live>span{font-size:8px;white-space:normal}.curva-live>span>b{font-size:12px}.curva-song-orders button{font-size:9px!important;min-height:37px!important}.stadium-command-dock{width:calc(100% - 12px)}.audio-mixer{grid-template-columns:1fr;gap:14px}.audio-mixer input{min-height:30px}.audio-preview{align-items:flex-start;flex-direction:column}.game-dialog .settings-grid{margin-bottom:15px}}
/* Pitch-first management layout. Secondary commands never form a scrolling ribbon. */
:root{--ink:#181a20;--panel:#252830f5;--panel-solid:#252830;--edge:#ffffff23;--cream:#f1eee8;--muted:#b6bac5;--serif:Arial,Helvetica,sans-serif}
body:not(.menu-open) #layout{grid-template-columns:minmax(0,1fr)}.curva-panel{display:none;position:absolute;z-index:8;right:14px;top:76px;bottom:80px;width:320px;background:#252830f5;border:1px solid #ffffff25;border-radius:12px;box-shadow:0 18px 60px #0008}.strategy-panel-open:not(.stadium-active) .curva-panel{display:block}#strategy-toggle{display:block}#strategy-glance{display:block;position:absolute;left:18px;top:85px;z-index:3;max-width:290px;background:#252830e8;border-color:#ffffff26;text-align:left;padding:9px 13px}#strategy-glance small,#strategy-glance b{display:block}#strategy-glance small{font-size:9px;letter-spacing:1px;color:#dbc797}#strategy-glance b{font-size:12px}body.stadium-active #strategy-glance{display:none}
.game-dialog{background:#252830;color:#eeeae2;border:1px solid #ffffff28;border-radius:14px;max-width:840px!important}.game-dialog table{width:100%;border-collapse:collapse;font-size:13px}.game-dialog td,.game-dialog th{padding:10px 12px;border-bottom:1px solid #ffffff14;text-align:left}.game-dialog h1{font-size:28px}.game-dialog h3{font-size:16px;margin:22px 0 10px}.game-dialog p{color:#c1c5ce;line-height:1.65}.game-dialog section{padding:12px 0;border-bottom:1px solid #ffffff19}
body.stadium-active #maptools{top:90px;bottom:auto}body.stadium-active #maptools #selectall{display:none}.stadium-scoreboard{top:10px;left:14px;transform:none;width:auto;max-width:calc(100% - 28px);padding:8px 14px;background:#20232bf0;border-radius:9px;border-color:#ffffff25}.stadium-scoreboard>small{font-size:9px;text-align:left;letter-spacing:.7px}.stadium-scoreboard>div{gap:16px}.stadium-scoreboard span{font-size:15px}.stadium-scoreboard b{font-size:25px}.stadium-scoreboard em{font-size:12px}.stadium-scoreboard p{display:none}
.stadium-command-dock{width:min(800px,calc(100% - 28px));bottom:12px;left:50%;transform:translateX(-50%);padding:10px 14px;background:#242730f5;border:1px solid #ffffff24;border-radius:12px;box-shadow:0 8px 30px #0006}.match-hud-header{display:flex;align-items:center;gap:16px}.match-hud-header>div:first-child{flex:1;min-width:0}.match-hud-header>div>b{display:block;font-size:14px;color:#f1dfbd}.match-hud-header small{display:block;font-size:10px;color:#b5bbc8}.match-hud-header>button{min-height:30px;padding:2px 10px}.support-meter{width:90px}.support-meter b{font-size:13px!important}.support-meter small{font-size:8px}.support-meter progress{height:3px;margin:2px 0}.match-hud-tabs{display:flex;gap:6px;margin:9px 0 7px;border-top:1px solid #ffffff12;padding-top:7px}.match-hud-tabs button{flex:1;padding:4px 8px!important;min-height:29px!important;font-size:11px!important;background:transparent;border-color:transparent}.match-hud-tabs button[aria-pressed=true]{background:#ffffff0d;color:#eddbb7;border-color:#d6bb8050}.match-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:230px;overflow-y:auto;overflow-x:hidden}.match-action-grid button{display:flex;flex-direction:column;text-align:left;align-items:flex-start;justify-content:center;gap:3px;padding:8px 10px!important;min-height:47px!important;white-space:normal!important;background:#333740;border-color:#ffffff16}.match-action-grid button>b{font-size:10px;letter-spacing:.3px}.match-action-grid button>small{font-size:9px;line-height:1.3;color:#bdc3cd}.match-action-grid [data-terrace=kickoff],.match-action-grid [data-terrace=second],.match-action-grid [data-terrace=leave]{background:#dcca9e;color:#20232b}.match-action-grid [data-terrace=kickoff]>small,.match-action-grid [data-terrace=second]>small,.match-action-grid [data-terrace=leave]>small{color:#333843}.match-hud-foot{display:flex;justify-content:space-between;gap:10px;margin-top:7px;font-size:10px;color:#bdc3cf}.match-camera-bar{position:fixed;right:14px;top:76px;display:flex;gap:4px;background:#242730ed;border:1px solid #ffffff25;padding:4px;border-radius:9px;transform:translateY(0)}.match-camera-bar button{min-height:31px!important;padding:5px 13px!important;font-size:11px!important}.match-live-event{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);background:#20232bdc;border-radius:7px;padding:6px 12px;color:#e4e3de;font-size:11px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.phase-guidance{grid-column:1/-1;font-size:12px;margin:6px 0}.match-event-list{grid-column:1/-1;padding:0 5px;list-style:none;font-size:12px;margin:0}.match-event-list li{padding:4px 0;border-bottom:1px solid #ffffff12}.match-event-list time{color:#d4c08e;margin-right:8px}
.management-tabs{display:flex;gap:6px;margin:15px 0}.management-tabs button{flex:1;font-size:12px;padding:8px}.management-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.management-cards article{background:#1d2027;border:1px solid #ffffff16;padding:16px;border-radius:10px}.management-cards small{display:block;text-transform:uppercase;font-size:10px;letter-spacing:1px;color:#b7becb}.management-cards b{display:block;font-size:23px;margin:6px 0;color:#e8d9b6}.management-cards p{font-size:12px;margin:6px 0 0}.management-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.management-actions button{text-align:left;font-size:12px;min-height:60px}.management-actions small{display:block;font-size:10px;line-height:1.5;margin-top:5px}.clubhouse-interior{padding:15px 30px 0;border-radius:9px;position:relative;overflow:hidden;background:repeating-linear-gradient(90deg,#332f2c 0,#332f2c 80px,#393430 81px,#393430 82px);border:1px solid #ffffff1b}.clubhouse-interior canvas{width:min(340px,90%);height:auto;display:block;margin:15px auto 28px;box-shadow:0 8px 12px #0007;border:2px solid #75644b}.clubhouse-scarf{height:12px;background:repeating-linear-gradient(90deg,var(--home-primary) 0,var(--home-primary) 35px,var(--home-secondary) 35px,var(--home-secondary) 70px);border-bottom:3px solid #bbae8a}.clubhouse-shelf{display:flex;justify-content:space-around;font-size:10px;letter-spacing:1px;padding:8px;background:#514334;border-top:4px solid #7f6b4a;color:#dbc99f}.clubhouse-interior::before,.clubhouse-interior::after{content:'';position:absolute;top:46px;width:22px;height:65px;border-top:3px solid #b5a47e;background:linear-gradient(90deg,var(--home-primary) 50%,var(--home-secondary) 50%);box-shadow:0 2px 6px #0007}.clubhouse-interior::before{left:12px}.clubhouse-interior::after{right:12px}
@media(max-width:760px){.stadium-scoreboard{left:8px;top:7px;width:calc(100% - 16px);padding:6px 10px}.stadium-scoreboard>div{gap:8px}.stadium-scoreboard span{font-size:12px}.stadium-scoreboard b{font-size:22px}.stadium-scoreboard>small{font-size:8px}.stadium-command-dock{padding:8px 9px;width:calc(100% - 14px);bottom:8px}.match-hud-header{gap:8px}.match-hud-header>div>b{font-size:12px}.match-hud-header small{font-size:9px}.support-meter{width:49px}.support-meter small{font-size:7px}.support-meter b{font-size:12px!important}.match-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:160px;gap:5px}.match-action-grid button{min-height:44px!important;padding:6px 8px!important}.match-action-grid button>small{font-size:8px}.match-hud-tabs{margin-top:6px;padding-top:5px;margin-bottom:6px}.match-hud-tabs button{font-size:10px!important;min-height:28px!important}.match-hud-foot{font-size:8px;gap:5px}.match-camera-bar{position:absolute;top:auto;bottom:calc(100% + 45px);right:0}.match-camera-bar button{font-size:10px!important;padding:4px 12px!important;min-height:30px!important}.match-live-event{font-size:10px;padding:5px 8px;bottom:calc(100% + 8px)}.management-tabs{gap:3px}.management-tabs button{padding:6px;font-size:10px}.management-cards{gap:8px}.management-cards article{padding:11px}.management-cards b{font-size:19px}.management-actions{grid-template-columns:1fr}.management-actions button{min-height:48px}.curva-panel{width:calc(100% - 20px);right:10px}.game-dialog table{font-size:11px}.game-dialog td,.game-dialog th{padding:8px 5px}}
.match-camera-bar{position:absolute;top:auto;bottom:calc(100% + 44px);right:0}.match-leader-list{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.match-leader-list button{font-size:10px!important}.match-leader-list small{font-size:9px;color:#b6bdca}.match-leader-list button[aria-pressed=true]{border-color:#d4bd86;background:#494334;color:#fff}
@media(max-width:760px){.match-leader-list{grid-template-columns:1fr 1fr}}
.paneltabs{display:flex;gap:5px;padding:0 0 12px;border-bottom:1px solid #ffffff1c;overflow:visible}.paneltabs button{flex:1;min-width:0;font-size:12px;padding:7px 9px;min-height:36px}.diplomacy-grid,.faction-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ai-group-card{background:#1e2128!important;border:1px solid #ffffff1a!important;border-radius:11px;padding:15px!important}.ai-group-card h2{font-size:20px;margin:10px 0 5px}.ai-group-card .metric-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.metric-strip small{display:block;font-size:8px;letter-spacing:.3px}.metric-strip b{font-size:15px}.diplomacy-choice{border-top:1px solid #ffffff18;margin-top:12px;padding-top:10px}.diplomacy-choice summary{color:#dfcda5;cursor:pointer;font-size:12px;min-height:30px}.diplomacy-choice .diplomacy-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.diplomacy-actions button{font-size:11px;min-height:45px;padding:7px}.diplomacy-actions small{display:block;font-size:9px}.game-dialog table th{position:sticky;top:0;background:#292d35;z-index:1}.game-dialog tr.ourclub{background:color-mix(in srgb,var(--club-accent) 17%,#30343a);font-weight:bold}.game-dialog .fixturelist,.game-dialog .result{font-size:12px}.game-dialog .result{display:flex;gap:10px;align-items:center;padding:8px 4px;border-bottom:1px solid #ffffff12}.game-dialog .result b{color:#ebdab5;white-space:nowrap}.mission-status{font-size:12px;min-height:34px}.card-kicker{font-size:8px!important;letter-spacing:.5px}.card-kicker span:last-child{margin-left:auto}
@media(max-width:760px){.diplomacy-grid,.faction-grid{grid-template-columns:1fr}.paneltabs button{font-size:10px;padding:7px 4px}.ai-group-card{padding:12px!important}.game-dialog table th{font-size:10px}.game-dialog table td:first-child{max-width:130px}.game-dialog table td{font-size:11px}}
/* Curva-first bottom drawer: always-visible tabs, no giant command cards. */
.stadium-command-dock{width:min(960px,calc(100% - 24px));padding:7px 11px;bottom:9px;border-radius:10px;background:#22252ded}.match-hud-header{gap:12px}.match-hud-header>div>b{font-size:13px}.match-hud-header small{font-size:9px}.match-hud-header>button{min-height:27px;padding:0 9px}.support-meter{width:76px}.support-meter b{font-size:12px!important}.support-meter small{font-size:7px}.match-hud-tabs{margin:5px 0 0;padding-top:4px;gap:3px}.match-hud-tabs button{min-height:28px!important;font-size:11px!important;padding:3px 7px!important}.match-action-grid{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px;max-height:135px}.match-action-grid>button{flex:1 1 150px;min-height:36px!important;padding:5px 8px!important;gap:1px}.match-action-grid>button>b{font-size:10px}.match-action-grid>button>small{font-size:8px}.match-hud-foot{margin-top:5px;font-size:9px}.match-phase-action{display:flex;gap:6px;align-items:center;margin-top:5px}.match-phase-action button{flex:1;min-height:31px!important;font-size:10px!important;padding:4px 8px!important;background:#ddc99a;color:#22252c}.match-phase-action small{font-size:9px}.match-phase-action button small{display:none}.match-camera-bar{bottom:calc(100% + 34px);gap:3px;padding:3px}.match-camera-bar button{min-height:27px!important;padding:3px 10px!important;font-size:10px!important}.match-live-event{bottom:calc(100% + 5px);font-size:10px;padding:4px 9px}.match-leader-list{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){.stadium-command-dock{width:calc(100% - 12px);padding:6px 8px;bottom:6px}.match-hud-header{gap:6px}.match-hud-header>div>b{font-size:12px}.match-hud-header small{font-size:8px}.match-hud-header>button{min-height:27px!important;min-width:24px;padding:0 6px!important}.support-meter{width:43px}.support-meter small{font-size:7px}.match-hud-tabs{gap:0;margin-top:4px;padding-top:3px}.match-hud-tabs button{min-height:29px!important;font-size:10px!important;padding:3px 5px!important}.match-action-grid{max-height:123px;gap:4px;margin-top:5px}.match-action-grid>button{flex-basis:calc(50% - 4px);min-height:36px!important;padding:5px 7px!important}.match-hud-foot{font-size:8px}.match-camera-bar{bottom:calc(100% + 31px)}.match-camera-bar button{padding:3px 9px!important;font-size:9px!important;min-height:27px!important}.match-live-event{font-size:9px}.match-leader-list{grid-template-columns:1fr 1fr}}
.pyro-color-choices{display:flex;gap:5px;flex:1 1 100%}.pyro-color-choices button{flex:1;min-height:28px!important;padding:3px 7px!important;font-size:10px!important}.pyro-color-choices button[aria-pressed=true]{border-color:#e8bf84;background:#5b4534;color:#fff0d2}
/* CALCIO88 identity: white, electric blue and black. World artwork keeps club colors. */
:root{--gold:#80b8ff;--cream:#f3f6fb;--muted:#adb9cd;--ink:#0b1019;--panel:#121c2b;--accent:#2477ef;--line:#ffffff20;color-scheme:dark}
body{color:#f3f6fb;background:#080d15;font-family:Inter,system-ui,sans-serif}button,input,select{font:inherit}button{border-radius:8px;transition:background .16s,border-color .16s,transform .16s}button:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #80b8ff;outline-offset:3px}button:hover:not(:disabled){border-color:#80b8ff}button:disabled{opacity:.45;cursor:not-allowed}.game-topbar,.game-dock,.curva-panel,.game-dialog,.stadium-command-dock{background:#101824f5!important;border-color:#ffffff20!important;color:#f3f6fb}.game-dialog h1,.game-dialog h2,.game-dialog h3,.curva-panel h2,.curva-panel h3,.management-cards b,.stadium-scoreboard b{color:#f3f6fb!important;font-family:Inter,system-ui,sans-serif}.eyebrow,.micro,.game-dialog small,.curva-panel small{color:#b1c4e0}.primary,.primary-button,.menu-primary,#begin,.setup-next,.next-priority button,.match-phase-action button{background:#2477ef!important;color:#fff!important;border-color:#5d9cff!important}.main-menu-actions button,.division-card,.club,.setup-steps button,.management-tabs button,.paneltabs button,.match-hud-tabs button{color:#f3f6fb}.main-menu-actions button:hover,.division-card.active,.club.active,.management-tabs button[aria-pressed=true],.paneltabs button.active,.match-hud-tabs button[aria-pressed=true],.layer-list button[aria-pressed=true]{background:#173b6b!important;border-color:#5d9cff!important;color:#fff!important}.menu-shade{background:linear-gradient(90deg,#070e1bf2 0%,#09182db5 48%,#050b1433 100%)!important}.menu-content h1 em,.menu-tagline strong,.setup-kicker,.menu-kicker{color:#80b8ff!important}.setup-shell,.setup-body,.setup-footer,.club-preview-detail{background:#101824;color:#edf3fc}.stadium-scoreboard,.match-camera-bar,.next-priority,.objective-heading,.resource-pill,.map-tools button{background:#142237ed!important;border-color:#ffffff25!important;color:#f3f6fb!important}.game-dialog p,.curva-panel p{line-height:1.6;color:#c7d2e3}.game-dialog button,.game-dialog input,.game-dialog select{min-height:40px}.game-dialog input,.game-dialog select{background:#0b1422;color:#f3f6fb;border:1px solid #ffffff30;border-radius:6px;padding:8px}.game-dialog progress,.curva-panel progress{accent-color:#2477ef}.management-cards article,.ai-group-card,.choreo-options article,.save-slot{background:#172233!important;border-color:#ffffff20!important}.game-dock nav{display:flex;gap:5px}.game-dock nav button{min-width:70px;min-height:40px;font-size:12px}.settings-hub{display:grid;grid-template-columns:1fr 1fr;gap:12px}.settings-hub button{min-height:95px;text-align:left;font-weight:700;padding:18px}.settings-hub small{display:block;font-weight:400;margin-top:8px}.group-extra{margin-top:20px;padding-top:15px;border-top:1px solid #ffffff20}.banner-canvas-wrap{position:sticky;top:0;background:#0b1019;padding:12px;z-index:1}.banner-live{width:100%;height:auto;cursor:grab;touch-action:none}.banner-live:active{cursor:grabbing}.text-layer-studio{padding-bottom:12px;border-bottom:1px solid #ffffff20;margin-bottom:12px}.text-layer-studio h3{margin:0}.text-layer-studio label{display:flex;flex-direction:column;gap:6px;margin:10px 0}.text-layer-studio input[type=checkbox]{min-height:20px}.layer-list,.layer-actions{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.layer-list button{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.layer-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.layer-grid input[type=color]{width:100%}.studio-tools{max-height:none;overflow:visible}.banner-studio{align-items:start}.assembly-strip button{min-height:44px;white-space:nowrap}.assembly-strip small{font-size:12px;color:#c7d2e3}.assembly-strip b{color:#fff;font-size:14px}.management-tabs{flex-wrap:wrap}.game-dialog{max-width:calc(100vw - 24px)}
@media(max-width:760px){.game-dock nav{width:100%;justify-content:space-between}.game-dock nav button{flex:1;min-width:0;min-height:40px;font-size:11px}.game-dock{height:auto!important;min-height:98px;display:flex;flex-wrap:wrap;padding:5px 8px!important}.game-dock #date{flex:1}.game-dock .time-controls{margin-left:auto}#layout{height:calc(100dvh - 150px)!important}.stadium-active #layout{height:calc(100dvh - 150px)!important}.stadium-active .game-dock nav{display:flex!important}.settings-hub{grid-template-columns:1fr}.settings-hub button{min-height:70px}.banner-studio{display:flex;flex-direction:column}.banner-canvas-wrap,.studio-tools{width:100%;box-sizing:border-box}.banner-canvas-wrap{top:-1px}.assembly-strip{flex-wrap:wrap}.assembly-strip button{flex:1}.layer-list button{max-width:130px}.text-layer-studio input{min-width:0}.setup-body{overflow:auto}.match-camera-bar button{min-height:34px!important}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
button{background:#1c2c43;color:#f3f6fb;border-color:#ffffff26}button:hover:not(:disabled){background:#264465;color:#fff}button.active,button[aria-pressed=true]{background:#1e5797;color:#fff;border-color:#80b8ff}#caption,#notice{background:#101d30ed;color:#f3f6fb;border-color:#5d9cff}.brand-button{background:#fff}.brand-button:hover{background:#edf4ff}.setup-shell h1,.setup-shell h2,.setup-shell h3{font-family:Inter,system-ui,sans-serif;color:#f3f6fb}.management-tabs button{min-width:80px}.settings-hub button small{color:#b1c4e0}.curva-panel::-webkit-scrollbar-thumb{background:#354b68}
@media(max-width:760px){.paneltabs{flex-wrap:wrap}.paneltabs button{flex:1 1 28%;min-height:40px!important}.management-tabs button{min-height:42px}}
/* Shared player-journey shell: map first, a single contextual command surface. */
:root{--panel-solid:#121c2b;--edge:#ffffff24;--gold-bright:#a8ceff;--sans:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;--serif:var(--sans)}
.game-topbar{height:64px}.game-topbar .game-wordmark strong{font-family:var(--sans);font-size:13px;font-weight:700}.game-dock{height:62px}#layout{grid-template-columns:minmax(0,1fr)!important;height:calc(100dvh - 126px)!important}#world{height:100%;min-height:0}.curva-panel{display:none!important;position:absolute;left:auto;right:14px;top:76px;bottom:76px;width:330px;height:auto;max-height:calc(100dvh - 152px);overflow:auto;z-index:9;padding:18px}.strategy-panel-open:not(.stadium-active) .curva-panel{display:block!important}.curva-panel .group-heading{display:none!important}.curva-panel #actions{display:grid;grid-template-columns:1fr;gap:7px}.curva-panel #actions button{text-align:left;min-height:64px}.curva-panel #actions small{display:block;font-size:11px;line-height:1.5}.curva-panel #log p{font-size:12px;padding:8px 0;border-bottom:1px solid #ffffff16}.curva-panel #log small{font-size:10px}.curva-panel .mobile-campaign-tools{display:none!important}#strategy-glance{display:block;top:88px;left:18px;max-width:330px;padding:11px 15px;border-radius:10px;background:#101c2eed;box-shadow:0 6px 25px #0004;text-align:left;z-index:3}#strategy-glance small{font-size:10px;color:#9bc9ff}#strategy-glance b{font-size:14px;line-height:1.45;display:block;color:#fff}#strategy-glance span{font-size:11px;color:#a8ceff;display:block;margin-top:4px}.journey-heading{display:flex;justify-content:space-between;align-items:center}.journey-heading small{font-size:10px}.journey-heading button{min-height:32px;width:32px;padding:0}.journey-step{display:flex;align-items:center;width:100%;text-align:left;gap:10px;min-height:42px;margin:6px 0;font-size:12px}.journey-step>span{border:1px solid #ffffff40;border-radius:50%;width:23px;height:23px;display:grid;place-items:center}.journey-step.current{background:#214b7e;border-color:#80b8ff}.campaign-ambitions{margin:18px 0}.campaign-ambitions summary{cursor:pointer;font-size:12px}.campaign-ambitions p{font-size:11px;margin:8px 0}.campaign-ambitions b{float:right}.city-context{position:absolute;z-index:4;bottom:70px;left:18px;max-width:400px;border:1px solid #ffffff30;border-radius:10px;padding:9px 12px;background:#101c2ef2;box-shadow:0 8px 25px #0005}.city-selection{display:flex;align-items:center;gap:9px;font-size:12px}.city-selection>span:not(.selection-dot){max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b7c9e1}.selection-dot{width:9px;height:9px;background:#73b7ff;border-radius:50%;box-shadow:0 0 10px #2477ef}.city-selection button{margin-left:auto;min-height:36px;padding:5px 12px}.city-destinations{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}.city-destinations button{font-size:12px;min-height:42px;padding:7px}.city-destinations small{display:block;font-size:10px}.route-progress{display:block;margin-top:7px;color:#bad7ff;font-size:11px}.activity-feed article{padding:12px 0;border-bottom:1px solid #ffffff18}.activity-feed small{font-size:10px}.activity-feed p{margin:5px 0;font-size:14px}.action-reason{font-size:12px;color:#e8c081!important}.gameplay-preferences{margin-top:22px;padding-top:18px;border-top:1px solid #ffffff20}.gameplay-preferences label,.chant-planning label{display:flex;align-items:center;gap:10px;min-height:44px}.gameplay-preferences input,.chant-planning input{width:20px;height:20px;min-height:20px}.song-cards{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:16px 0}.song-cards button{text-align:left;padding:14px;min-height:70px}.song-cards b,.song-cards small{display:block}.group-planning-tabs{margin-top:10px}.report-highlights{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0}.report-highlights article{background:linear-gradient(145deg,#21426c,#162335);padding:15px;border:1px solid #80b8ff33;border-radius:10px}.report-highlights small{font-size:10px;color:#b9d8ff}.report-highlights b{display:block;font-size:20px;margin-top:7px}.report-story h2{font-size:22px;font-weight:700}.report-events{padding-left:20px}.report-events li{font-size:13px;margin:8px 0}.report-events time{color:#80b8ff}.game-dialog h1{font-size:30px;line-height:1.2;font-weight:750;margin-bottom:15px}.game-dialog h2{font-size:22px;font-weight:650}.game-dialog h3{font-size:17px;font-weight:650}.game-dialog .eyebrow{font-size:10px}.game-dialog label{font-size:13px}.game-dialog button{font-size:13px}.game-dialog .micro{font-size:12px}.game-dialog summary{min-height:36px;cursor:pointer}.game-dialog{border-radius:14px;padding:26px;max-height:90dvh;overflow:auto}.setup-dialog{background:#101824;border:1px solid #ffffff25;border-radius:14px}.setup-dialog::backdrop{background:#050b15d9}.setup-title-row h2{font-size:30px;line-height:1.2;font-weight:750}.setup-steps button{min-height:44px;font-size:11px}.setup-header{background:#0d1521;border-color:#ffffff20}.setup-footer{flex-shrink:0;border-color:#ffffff20}.club-grid{max-height:none!important;overflow:visible!important}.club-selection{align-items:start}.club-preview{position:sticky;top:0}.club-facts small,.club-label small{font-size:11px}.club strong{font-size:14px}.identity-fields label{font-size:11px}.identity-fields input,.identity-fields select{font-size:14px;min-height:44px}.studio-tools{overflow:visible!important;max-height:none!important}.banner-studio{display:flex;flex-direction:column}.banner-canvas-wrap{width:100%;top:-1px;border-radius:9px}.studio-tools{width:100%}.banner-studio .micro{font-size:11px}.banner-studio input[type=range]{min-height:36px}.banner-studio canvas.banner-live{background:repeating-conic-gradient(#162236 0% 25%,#202f46 0% 50%) 50%/14px 14px}.layer-list button,.layer-actions button{min-height:40px}.menu-content h1{font-size:clamp(40px,4.6vw,66px);line-height:1.03}.main-menu-actions button{min-height:44px;font-size:13px;letter-spacing:1px}.main-menu-actions button>span{font-size:11px;color:#b2cae8}.menu-gameplay{font-size:14px;color:#d4e4f7}.menu-kicker{font-size:11px}.menu-tagline{font-size:16px}.menu-return{min-height:40px;font-size:12px}.match-hud-header small{font-size:10px}.match-hud-tabs button{font-size:12px!important;min-height:36px!important}.match-action-grid{max-height:170px}.match-action-grid>button{min-height:44px!important}.match-action-grid>button>b{font-size:12px}.match-action-grid>button>small{font-size:10px}.match-hud-foot{font-size:10px}.support-meter small{font-size:9px}.match-camera-bar button{min-height:36px!important;font-size:11px!important}.match-phase-action button{min-height:40px!important;font-size:12px!important}#notice{font-size:13px;line-height:1.5;max-width:min(430px,calc(100% - 32px));padding:12px 16px;pointer-events:none;border-radius:10px}.feedback-enter{animation:feedback-arrive .22s ease-out}@keyframes feedback-arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.game-topbar{height:54px;padding:6px 9px;gap:8px}.brand-button{width:100px}.game-wordmark{display:none}#resources{gap:4px;min-width:0}.resource-pill{padding:3px 4px!important;gap:3px!important;min-width:0}.resource-pill svg{width:14px;height:14px}.resource-pill small{font-size:9px}.resource-pill b{font-size:12px}.game-dock{min-height:100px!important;height:100px!important;gap:3px}.game-dock #date{font-size:10px;line-height:1.3;min-width:0;max-width:calc(100% - 166px);max-height:30px;overflow:hidden}.time-controls{gap:3px}.time-controls button{min-width:34px;min-height:38px;padding:5px;font-size:12px}.game-dock nav button{min-height:42px;font-size:12px}#layout,body.stadium-active #layout{height:calc(100dvh - 154px)!important}.curva-panel{top:64px;bottom:110px;right:8px;width:calc(100% - 16px);max-height:calc(100dvh - 174px);padding:15px}#strategy-glance{left:9px;top:63px;max-width:calc(100% - 80px);padding:8px 11px}#strategy-glance b{font-size:12px}#strategy-glance span{font-size:10px}#caption{left:9px;top:8px;padding:8px 10px;max-width:calc(100% - 80px)}#caption b{font-size:13px}#caption .eyebrow{font-size:9px;margin:0}.city-context{bottom:60px;left:8px;right:8px;max-width:none;padding:8px 10px}.city-selection{font-size:12px}.city-selection>span:not(.selection-dot){max-width:85px}.city-selection button{min-height:40px}.city-destinations button{min-height:44px}.map-tools{bottom:8px;left:8px;right:8px;gap:4px;justify-content:space-between}.map-tools button{min-height:42px;font-size:11px;padding:5px 8px}.zoom-cluster button{min-width:32px}.game-dialog{padding:20px 15px;max-width:calc(100vw - 14px);width:calc(100vw - 14px);max-height:94dvh}.game-dialog h1{font-size:25px}.game-dialog button{min-height:44px}.report-highlights{grid-template-columns:1fr 1fr;gap:7px}.report-highlights article{padding:12px}.report-highlights b{font-size:17px}.song-cards{grid-template-columns:1fr 1fr}.setup-dialog{height:100dvh;max-height:100dvh;border-radius:0}.setup-body{padding:15px;overflow:auto}.setup-title-row h2{font-size:25px}.setup-selected{display:none}.setup-steps{gap:0}.setup-steps button{font-size:10px;padding:8px 4px;min-height:45px}.setup-steps button span{font-size:11px}.club-preview{position:static}.club-selection{display:flex;flex-direction:column}.club-selection>div,.club-preview{width:100%}.club-grid{grid-template-columns:1fr 1fr!important}.club{min-height:48px!important}.identity-layout{display:flex;flex-direction:column}.identity-fields,.identity-designer{width:100%}.identity-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.identity-fields>label,.identity-fields>input,.identity-fields>select,.identity-fields>.field-note{grid-column:1/-1}.identity-colors{grid-column:1/-1}.setup-footer{padding:10px 15px}.setup-footer button{min-height:44px}.menu-content{padding:24px;justify-content:center;overflow:auto}.menu-content h1{font-size:clamp(36px,10vw,56px);margin-bottom:15px}.menu-logo{max-width:190px}.menu-tagline{font-size:14px;margin-bottom:12px}.main-menu-actions button{min-height:43px;padding:10px 15px;font-size:12px}.menu-kicker{font-size:10px}.menu-gameplay{font-size:12px}.match-camera-bar{right:0;flex-wrap:wrap;max-width:100%;bottom:calc(100% + 34px)}.match-camera-bar button{min-height:36px!important;padding:5px 9px!important;font-size:10px!important}.match-hud-tabs button{font-size:11px!important;min-height:40px!important}.match-action-grid{max-height:172px;overflow:auto}.match-action-grid>button{min-height:48px!important}.match-action-grid>button>b{font-size:11px}.match-action-grid>button>small{font-size:10px}.match-hud-header>div>b{font-size:12px}.match-hud-header small{font-size:9px}.match-hud-foot{font-size:9px}.support-meter small{font-size:8px}.stadium-scoreboard span{font-size:13px}.stadium-scoreboard>small{font-size:9px}.stadium-scoreboard em{font-size:10px}.assembly-strip b{font-size:13px}.assembly-strip small{font-size:12px}.assembly-strip button{min-height:44px}.stadium-active .city-context{display:none!important}}
@media(max-height:650px) and (min-width:761px){.menu-content{padding-top:18px;padding-bottom:24px}.menu-content h1{font-size:42px;margin-bottom:10px}.menu-logo{max-width:180px}.menu-gameplay{display:none}.main-menu-actions button{min-height:38px;padding:8px 15px}.menu-tagline{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.feedback-enter{animation:none}}
.resource-pill svg{color:#8dbfff!important}.city-selection>button[aria-expanded=true]{background:#235d9c}.national-layout{gap:20px}.italy-map svg .land{fill:#263d59!important;stroke:#7699c4}.italy-map svg>rect{fill:#0c1726}.map-filters{display:flex;flex-wrap:wrap;gap:6px}.map-filters button{min-height:40px;font-size:12px}.map-city-detail h2{font-size:21px}.map-city-detail p{font-size:13px}.map-city-detail button{min-height:42px}.match-report-grid article{border-radius:8px}.game-dialog .save-slots{gap:12px}.save-slot{border-radius:10px}.save-slot h3{font-size:19px}.save-slot p{font-size:13px}.studio-tools label{font-size:12px}.crop-controls summary{min-height:42px;padding:10px 0}.setup-body::-webkit-scrollbar-thumb{background:#344f72}.setup-body::-webkit-scrollbar{width:8px}
@media(max-width:760px){.national-layout{display:flex;flex-direction:column}.national-layout>*{width:100%;min-width:0}.map-city-detail{max-height:none;overflow:visible}.map-city-detail article{padding:14px}.travel-modes button{min-height:44px}.match-report-grid{grid-template-columns:1fr 1fr}.match-report-grid small{font-size:10px}.match-report-grid b{font-size:17px}.main-menu-actions{width:min(300px,100%)}}
.setup-dialog button{min-height:44px}.background-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.background-choices button{font-size:11px;padding:8px 5px}.studio-ranges{gap:10px}.banner-studio .upload-control{font-size:12px;min-height:44px}.banner-studio .upload-control input{max-width:100%;font-size:12px}.studio-tools .logo-remove{min-height:44px}.layer-grid label{min-width:0}.layer-grid input{max-width:100%}#activity-button{width:100%;margin:12px 0 5px}.map-tools #home{font-size:16px}
@media(max-width:760px){.setup-steps button{font-size:0;display:flex;flex-direction:column;justify-content:center;gap:3px}.setup-steps button span{font-size:11px}.setup-steps button::after{content:'League';font-size:11px;line-height:1.2}.setup-steps button:nth-child(2)::after{content:'Club'}.setup-steps button:nth-child(3)::after{content:'Curva'}.setup-steps button:nth-child(4)::after{content:'Begin'}.background-choices button{min-height:44px;font-size:11px}.studio-ranges{display:grid;grid-template-columns:1fr}.studio-ranges label{font-size:13px}.studio-ranges input[type=range]{min-height:40px}.logo-remove{font-size:12px!important}.identity-fields .field-note{display:none}.game-topbar{justify-content:space-between}.resource-pill:nth-child(n+4){display:none}}
.stadium-command-dock button:disabled{opacity:.65}.stadium-command-dock button:disabled small{color:#cad7e8}.match-hud-foot{flex-wrap:wrap;gap:6px 12px}.active-chant{color:#b4d6ff}.game-dock nav button.active{background:#214b7e!important;border-color:#80b8ff!important;color:#fff!important}
/* Curva-first controls: four meaningful orders stay available without opening tabs. */
.curva-primary-orders{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:7px 0 3px}.curva-primary-orders button{min-height:42px;padding:7px 5px;border-radius:9px;background:#26313d;border:1px solid #546273;color:#f4e5c8}.curva-primary-orders button:first-child{background:#244664;border-color:#6c9bbd}.curva-primary-orders button b{font-size:10px;letter-spacing:.035em}.curva-primary-orders button small{display:none}.curva-primary-orders button:disabled{opacity:.4}.curva-essential{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#b7c3ce;padding:3px 2px}.match-hud-tabs[hidden]{display:none!important}.stadium-active .match-live-event{font-size:10px;min-height:15px}.curva-report-brief{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.curva-report-brief article{background:#202c39;padding:12px;border-radius:10px}.curva-report-brief b,.curva-report-brief small{display:block}.curva-report-brief small{font-size:10px;color:#b7c1cb}.curva-report-events{font-size:13px;line-height:1.6;padding-left:20px}@media(max-width:600px){.curva-primary-orders button{min-height:44px}.curva-primary-orders button b{font-size:9px}.stadium-active .match-live-event{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.curva-essential{font-size:9px}.curva-report-brief{grid-template-columns:repeat(2,1fr)}}
/* One fabric workbench shared by banners, flags, scarves and tifo artwork. */
.fabric-studio{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.8fr);gap:20px;align-items:start;margin:18px 0}.fabric-stage{position:sticky;top:0;min-width:0;text-align:center;background:#151d27;border:1px solid #425264;border-radius:12px;padding:12px}.fabric-stage canvas{display:block;width:100%;height:auto;margin:auto;background:repeating-conic-gradient(#e5e0d4 0 25%,#c9c3b7 0 50%) 0/16px 16px;touch-action:none;cursor:move}.fabric-toolbar,.layer-actions,.visual-card-actions,.fabric-save-actions,.tifo-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.fabric-toolbar button,.layer-actions button,.visual-card-actions button,.tifo-toolbar button{min-height:38px;padding:8px 10px;border-radius:7px}.fabric-tools{min-width:0;display:grid;gap:10px}.fabric-tools label,.flag-dimensions label,#visual-library-body label{display:grid;gap:5px;font-size:12px}.fabric-tools input,.fabric-tools select,.fabric-tools textarea,.flag-dimensions input,.flag-dimensions select{width:100%;min-width:0;box-sizing:border-box;min-height:38px}.fabric-tools input[type=checkbox]{min-height:auto;width:auto}.fabric-tools input[type=color]{height:40px;padding:3px}.fabric-tools input[type=range]{min-height:34px}.fabric-tools .layer-list{display:flex;flex-wrap:wrap;gap:5px}.fabric-tools [aria-pressed=true]{outline:2px solid #8ac7ee;outline-offset:-2px}.fabric-style-choices,.background-choices{display:flex;flex-wrap:wrap;gap:4px}.fabric-style-choices button,.background-choices button{font-size:11px;padding:8px}.fabric-tools details{padding:10px;background:#202d3b;border-radius:9px}.fabric-tools summary{cursor:pointer;margin-bottom:9px}.fabric-tools textarea{resize:vertical}.flag-dimensions{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}.visual-design-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.visual-design-card{padding:12px;border:1px solid #3b5065;background:#1e2b38;border-radius:12px;min-width:0}.visual-design-card canvas{width:100%;height:135px;object-fit:contain;background:#111924}.visual-design-card h3{margin:10px 0 4px}.visual-design-card small{color:#c2d7e4}.visual-library-top{display:flex;align-items:center;gap:15px;justify-content:space-between;margin:15px 0}.visual-fixture{background:#202d3a;border:1px solid #3b5063;border-radius:10px;padding:12px;margin:10px 0}.visual-library-tabs{display:flex;flex-wrap:wrap}.visual-archive{margin:18px 0}.clubhouse-fabric-gallery{display:grid;grid-template-columns:1fr 1.7fr .7fr;gap:10px;align-items:center;padding:14px;background:#28343d;border:7px solid #514431;border-radius:8px}.clubhouse-fabric-gallery canvas{display:block;width:100%;height:auto;max-height:170px;object-fit:contain;box-shadow:0 5px 14px #0006}.tifo-editor{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,.7fr);gap:18px;align-items:start}.tifo-editor canvas{width:100%;height:auto;display:block;touch-action:none;border:1px solid #4d6479;border-radius:5px}.tifo-editor label{display:grid;gap:5px;margin:10px 0}.tifo-editor input,.tifo-editor select{width:100%;box-sizing:border-box;min-width:0;min-height:38px}.tifo-editor input[type=checkbox]{width:auto;min-height:auto}.tifo-editor fieldset label{display:flex}.tifo-patterns{display:flex;flex-wrap:wrap;gap:4px}#tifo-palette{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}#tifo-palette button{height:38px;text-shadow:0 1px 3px #000;color:#fff;border:2px solid #c2d8e5}#tifo-palette [aria-pressed=true]{outline:3px solid #7ac8ff}.visual-fixture-list article{padding:12px;border-bottom:1px solid #44566a}.clubhouse-visual-wall{margin:18px 0}.fabric-save-actions{position:sticky;bottom:0;background:#14212df2;padding:10px;border-radius:10px;z-index:2}.visual-library-top .primary-button{white-space:nowrap}#fabric-title,#tifo-title{width:100%;box-sizing:border-box;min-height:42px}#tifo-preview{margin-top:14px}
@media(max-width:700px){.fabric-studio,.tifo-editor{grid-template-columns:minmax(0,1fr)}.fabric-stage{position:relative;padding:8px}.fabric-stage canvas{max-width:100%!important}.fabric-tools .layer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.flag-dimensions{grid-template-columns:1fr 1fr}.flag-dimensions label:first-child{grid-column:1/-1}.visual-library-top{align-items:stretch;flex-direction:column}.visual-design-grid{grid-template-columns:1fr}.fabric-tools button,.fabric-toolbar button,.layer-actions button,.visual-card-actions button,.tifo-toolbar button{min-height:44px}.clubhouse-fabric-gallery{gap:5px;padding:7px;border-width:4px}.fabric-save-actions .primary-button{flex:1}#panel .fabric-studio,#panel .tifo-editor{max-width:100%;overflow:clip}}
.club-mark{display:inline-flex;position:relative;flex:0 0 var(--mark-size,22px);width:var(--mark-size,22px);height:var(--mark-size,22px);border-radius:50%;border:1px solid #ffffff70;box-shadow:inset 0 0 0 1px #15181e;align-items:center;justify-content:center;vertical-align:middle;overflow:hidden}.club-mark>span{font-size:calc(var(--mark-size,22px)*.3);font-weight:900;color:#fff;text-shadow:0 1px 2px #000,1px 0 2px #000,-1px 0 2px #000;line-height:1}.club-identity-context{display:flex;align-items:center;gap:9px;margin:12px 0;flex-wrap:wrap}.club-identity-context>span:not(.club-mark){font-size:12px;flex:1}.club-official-name{font-size:12px;color:var(--muted);line-height:1.4}.stadium-scoreboard .club-mark{margin-right:4px}.club-preview-detail h2{display:flex;gap:9px;align-items:center}#leaguetable td:first-child{white-space:nowrap}

/* Task 9: one viewport-led desktop shell, with a separate compact breakpoint. */
:root{--game-hud-height:48px;--game-footer-height:42px}
#panel{position:fixed;inset:auto 12px auto auto;top:calc(var(--game-hud-height) + 12px);margin:0;width:380px;max-width:calc(100vw - 24px);max-height:calc(100dvh - var(--game-hud-height) - var(--game-footer-height) - 24px);height:auto;padding:14px 16px;overflow:auto;overscroll-behavior:contain;border-radius:6px!important;box-shadow:0 10px 36px #0007;z-index:20}
#panel[data-panel-kind=management]{width:580px}
#panel[data-panel-kind=editor]{width:min(1080px,calc(100vw - 40px));left:50%;right:auto;transform:translateX(-50%)}
#panel::backdrop{background:transparent;backdrop-filter:none}
#panel .close{top:0;min-height:28px;padding:4px 8px;font-size:11px;border-radius:4px}
#panel h1{font-size:23px;line-height:1.2;margin:8px 0 14px;padding-right:40px}
#panel h2{font-size:19px;margin:16px 0 8px}#panel h3{font-size:16px;margin:14px 0 7px}
#panel p{font-size:12px!important;line-height:1.5!important;margin-bottom:10px}
#panel section{padding-bottom:10px;margin-bottom:10px}
#panel table{margin:10px 0;font-size:12px}#panel th{font-size:10px;letter-spacing:.4px;padding:6px 5px}#panel td{padding:5px;font-size:12px}
#panel .management-tabs,#panel .paneltabs{gap:4px;margin:8px 0 12px;padding-bottom:7px;flex-wrap:wrap}
#panel .management-cards,#panel .management-actions{gap:7px;margin:8px 0;grid-template-columns:repeat(2,minmax(0,1fr))}
#panel .management-cards article,#panel .panel-card,#panel .stat-card,#panel .save-slot,#panel .match-report-grid article,#panel .curva-report-brief article{padding:9px;border-radius:4px;min-width:0}
#panel .management-cards b,#panel .stat-card b{font-size:19px}
#panel .management-cards p,#panel .management-actions small{font-size:11px!important;line-height:1.4!important}
#panel .clubhouse-interior{min-height:0;padding:12px;margin:10px 0;max-height:180px;overflow:hidden}
#panel #hq-banner{max-height:90px;object-fit:contain}
#panel .settings-grid{gap:8px 14px;margin:12px 0}#panel .audio-mixer{gap:8px 16px;margin:12px 0}
#panel .save-slots{gap:8px}#panel .save-slot h3{font-size:17px;margin:6px 0}
#panel .national-layout{grid-template-columns:minmax(0,1fr) 300px;gap:14px}
#panel .fabric-studio,#panel .tifo-editor{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:12px}
.desktop-panel-open .curva-panel,.desktop-panel-open #city-context{display:none!important}
.desktop-panel-open.stadium-active #match-controls{visibility:hidden}
.desktop-frame-setting{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;border-top:1px solid #ffffff20;padding-top:10px}
#panel .desktop-frame-setting select{width:auto;margin:0}
@media(min-width:1000px){
 .game-topbar,body.stadium-active .game-topbar{height:var(--game-hud-height);gap:14px;padding:5px 12px}
 .brand-button{width:100px;padding:3px 6px}.brand-button img{height:27px}.game-wordmark strong{font-size:12px}.game-wordmark span{font-size:9px}
 #resources{gap:6px}#resources .resource-pill{padding:3px 9px;min-height:32px;gap:7px;border-radius:4px}#resources .resource-pill svg{width:17px;height:17px}#resources .resource-pill b{font-size:16px}#resources .resource-pill small{font-size:10px}
 #layout,body.stadium-active #layout{display:block;height:calc(100dvh - var(--game-hud-height) - var(--game-footer-height))!important;grid-template-columns:minmax(0,1fr)}
 #world{width:100%;height:100%;min-width:0}#canvas{width:100%;height:100%;cursor:grab}
 .game-dock,body.stadium-active .game-dock{position:relative;inset:auto;height:var(--game-footer-height);display:flex;flex-wrap:nowrap;gap:12px;padding:4px 12px}
 .game-dock #date{font-size:11px;max-width:48%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
 .game-dock nav,body.stadium-active .game-dock nav{display:flex;gap:4px}.game-dock nav button,.time-controls button{min-height:28px;padding:4px 10px;font-size:12px;border-radius:4px}
 .game-dock .time-controls{display:flex;gap:3px}.time-controls button{min-width:30px}
 #caption{top:12px;left:12px;padding:6px 10px;max-width:350px;border-radius:4px}#caption b{font-size:14px}#caption .eyebrow{font-size:9px;margin-bottom:2px}
 #strategy-glance{top:65px;left:12px;max-width:280px;padding:6px 10px;border-radius:4px}#strategy-glance b{font-size:12px}#strategy-glance small,#strategy-glance span{font-size:10px;line-height:1.4}
 .map-tools{left:12px;bottom:12px;gap:5px}.map-tools button{padding:5px 9px;min-height:30px;font-size:11px;border-radius:4px}
 .curva-panel{right:12px;left:auto;top:60px;bottom:54px;width:360px;max-height:calc(100dvh - 114px);height:auto;padding:12px;border-radius:6px}
 .curva-panel #actions button{min-height:39px;padding:6px 8px;font-size:12px}.curva-panel #actions small{font-size:10px;line-height:1.35}
 .objective-row{padding:5px 0}.objective-row b{font-size:12px}.objective-heading h3{font-size:15px}.objective-intro{font-size:11px}.next-priority{padding:9px}.next-priority h4{font-size:14px;margin:5px 0}.next-priority p{font-size:11px;line-height:1.4}.next-priority button{min-height:30px;padding:5px 8px;font-size:11px}
 .city-context{left:12px;right:auto;bottom:52px;width:360px;max-width:360px;max-height:46%;overflow:auto;padding:7px 10px;border-radius:5px}
 .strategy-panel-open #city-context{display:none!important}
 #panel button,#panel .primary-button,#panel .primary{min-height:30px;padding:5px 9px;font-size:12px;letter-spacing:.15px;border-radius:4px}
 #panel input,#panel select,#panel textarea{font-size:12px;min-height:30px;padding:5px 7px;border-radius:4px}
 #panel input[type=range]{min-height:22px;padding:0}#panel input[type=checkbox]{min-height:16px;width:16px;height:16px}
 .stadium-scoreboard{top:10px;left:50%;transform:translateX(-50%);width:min(560px,50%);padding:5px 12px;border-radius:5px;pointer-events:none}
 .stadium-scoreboard>small{font-size:9px}.stadium-scoreboard span{font-size:14px}.stadium-scoreboard b{font-size:23px}.stadium-scoreboard em{font-size:11px}.stadium-scoreboard p{font-size:10px;height:14px}
 .stadium-command-dock{left:auto;right:12px;bottom:12px;transform:none;width:360px;max-height:calc(100% - 110px);overflow:visible;padding:8px 10px;border-radius:5px}
 .match-hud-header{gap:7px;padding:0 0 6px}.match-hud-header>div>b{font-size:12px}.match-hud-header small{font-size:10px}
 .stadium-command-dock button{min-height:28px;padding:4px 7px;font-size:11px;border-radius:4px}
 .match-hud-tabs{gap:2px;margin:5px 0}.match-hud-tabs button{min-height:28px!important;font-size:11px!important;padding:4px 7px!important}
 .match-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:180px;overflow:auto;gap:5px;margin-top:5px}
 .match-action-grid>button{min-height:38px!important;padding:5px 7px!important;gap:2px}.match-action-grid>button>b{font-size:11px}.match-action-grid>button>small{font-size:10px;line-height:1.3}
 .match-camera-bar{position:absolute;top:auto;bottom:calc(100% + 8px);right:0;max-width:360px;flex-wrap:wrap;padding:3px;gap:3px;border-radius:4px}
 .match-camera-bar button{min-height:28px!important;font-size:10px!important;padding:4px 8px!important}
 .match-hud-foot{font-size:10px;gap:4px 8px}.support-meter small{font-size:9px}.support-meters{gap:5px}
 #notice{max-width:420px;bottom:55px;font-size:12px;padding:7px 12px}
 .setup-dialog{width:min(1060px,94vw)}.setup-header{padding:10px 22px}.setup-body{padding:16px 22px}.setup-title-row{margin-bottom:14px}.setup-title-row h2{font-size:28px}.setup-steps button{min-height:35px;padding:9px 12px}.setup-footer{padding:10px 22px}.division-card{min-height:150px;padding:15px}.setup-footer button{min-height:32px;padding:6px 14px}
}
@media(max-width:999px){
 :root{--game-hud-height:54px;--game-footer-height:82px}
 .game-topbar,body.stadium-active .game-topbar{height:54px;padding:5px 8px;gap:7px}.game-wordmark{display:none}.brand-button{width:92px}.brand-button img{height:24px}
 #resources{gap:3px;overflow:hidden}#resources .resource-pill{padding:3px 5px;min-height:32px;gap:4px}#resources .resource-pill b{font-size:13px}#resources .resource-pill small{font-size:9px}#resources .resource-pill svg{width:14px}
 #layout,body.stadium-active #layout{display:block;height:calc(100dvh - 136px)!important}#world{width:100%;height:100%}
 .game-dock,body.stadium-active .game-dock{position:fixed;bottom:0;left:0;right:0;height:82px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;padding:5px 8px;align-content:center}
 .game-dock #date{font-size:10px;max-width:none;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-dock .time-controls{grid-column:2;grid-row:1/3}.time-controls button{min-width:30px;min-height:38px;padding:5px;font-size:11px}
 .game-dock nav,body.stadium-active .game-dock nav{display:flex;gap:3px;min-width:0;overflow-x:auto}.game-dock nav button{font-size:11px;min-height:34px;padding:5px 8px;white-space:nowrap}
 #panel,#panel[data-panel-kind=management],#panel[data-panel-kind=editor]{top:62px;left:8px;right:8px;width:calc(100vw - 16px);max-width:none;max-height:calc(100dvh - 152px);transform:none;padding:12px;border-radius:6px!important}
 #panel button{min-height:40px;font-size:12px;padding:7px 10px}#panel input,#panel select{min-height:38px}#panel h1{font-size:22px}
 #panel .fabric-studio,#panel .tifo-editor,#panel .national-layout{grid-template-columns:minmax(0,1fr)}#panel .fabric-stage{position:relative}.fabric-tools{min-width:0}#panel .fabric-tools .layer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #panel .save-slots{grid-template-columns:1fr}#panel .save-transfer{flex-direction:column;align-items:stretch}
 .curva-panel{top:62px;bottom:90px;right:8px;width:min(360px,calc(100vw - 16px));max-height:calc(100dvh - 152px);padding:12px}
 .stadium-scoreboard{top:6px;left:50%;transform:translateX(-50%);width:calc(100% - 16px);padding:4px 8px}.stadium-scoreboard span{font-size:12px}.stadium-scoreboard b{font-size:20px}.stadium-scoreboard>small{font-size:8px}
 .stadium-command-dock{left:auto;right:8px;bottom:8px;transform:none;width:min(360px,calc(100% - 16px));max-height:calc(100% - 85px);padding:6px 8px;border-radius:6px}
 .match-hud-tabs button{min-height:36px!important;font-size:10px!important}.match-action-grid{max-height:150px;overflow:auto}.match-action-grid>button{min-height:42px!important}.match-action-grid>button>b{font-size:11px}.match-action-grid>button>small{font-size:10px}
 .match-camera-bar{bottom:calc(100% + 6px);max-width:100%;right:0;flex-wrap:wrap}.match-camera-bar button{min-height:34px!important;font-size:10px!important;padding:4px 7px!important}
 #strategy-glance{top:55px;left:8px;max-width:235px;padding:5px 8px}#strategy-glance b{font-size:11px}#strategy-glance span{display:none}
 .map-tools{bottom:8px;left:8px;right:8px;gap:3px;flex-wrap:wrap}.map-tools button{min-height:36px;padding:5px 7px;font-size:10px}.city-context{left:8px;right:8px;bottom:52px;max-height:45%;overflow:auto;padding:6px 8px}
 #panelbody{min-width:0;overflow-wrap:anywhere}#panel table{display:block;max-width:100%;overflow:auto}#panel .fixturelist{grid-template-columns:1fr}
}
@media(max-width:999px) and (orientation:landscape){
 :root{--game-hud-height:40px;--game-footer-height:42px}
 .game-topbar,body.stadium-active .game-topbar{height:40px}#layout,body.stadium-active #layout{height:calc(100dvh - 82px)!important}
 .game-dock,body.stadium-active .game-dock{height:42px;display:flex;gap:8px;padding:3px 8px}.game-dock #date{flex:1;max-width:30%}.game-dock nav{margin-left:auto}.time-controls button{min-height:32px}
 #panel,#panel[data-panel-kind=management],#panel[data-panel-kind=editor]{top:46px;left:auto;right:6px;width:min(560px,calc(100vw - 12px));max-height:calc(100dvh - 94px)}
 .curva-panel{top:46px;bottom:48px;max-height:calc(100dvh - 94px)}
 .stadium-scoreboard{left:8px;transform:none;width:calc(100% - 340px)}.stadium-scoreboard>div{gap:6px}.stadium-scoreboard span{font-size:11px}.stadium-scoreboard b{font-size:18px}
 .stadium-command-dock{width:310px;max-height:calc(100% - 16px)}.match-camera-bar{position:static;margin-bottom:4px}.match-action-grid{max-height:98px}.match-hud-foot{display:none}
 #caption{top:7px;padding:4px 7px}#caption b{font-size:12px}#strategy-glance{top:48px;max-width:210px}
}

/* Retire inherited mobile !important dimensions at the responsive shell boundary. */
#panel{width:380px!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - var(--game-hud-height) - var(--game-footer-height) - 24px)!important;padding:14px 16px!important}
#panel[data-panel-kind=management]{width:580px!important}
#panel[data-panel-kind=editor]{width:min(1080px,calc(100vw - 40px))!important}
@media(min-width:1000px){.game-dock,body.stadium-active .game-dock{height:42px!important;min-height:42px!important;padding:4px 12px!important}}
@media(max-width:999px){.game-dock,body.stadium-active .game-dock{height:82px!important;min-height:82px!important;padding:5px 8px!important}#panel,#panel[data-panel-kind=management],#panel[data-panel-kind=editor]{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 152px)!important;padding:12px!important}}
@media(max-width:999px) and (orientation:landscape){.game-dock,body.stadium-active .game-dock{height:42px!important;min-height:42px!important;padding:3px 8px!important}#panel,#panel[data-panel-kind=management],#panel[data-panel-kind=editor]{width:min(560px,calc(100vw - 12px))!important;max-height:calc(100dvh - 94px)!important}}

@media(max-width:999px) and (orientation:landscape){.stadium-command-dock{overflow:auto;overscroll-behavior:contain}.match-camera-bar{position:static}.match-action-grid{max-height:98px}}
/* Keep live football commentary in flow so it cannot cover camera buttons. */
.match-live-event{position:static;left:auto;bottom:auto;transform:none;display:block;max-width:100%;white-space:normal;max-height:32px;overflow:hidden;margin:0 0 5px;padding:3px 0;border-radius:0;background:transparent;font-size:11px;line-height:1.3;pointer-events:none}
/* Full decisions inside the existing compact edge dock. */
.match-settings-grid{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:7px;min-width:0}.match-settings-grid label{display:flex;flex-direction:column;gap:3px;font-size:10px;color:#c7d3e2;min-width:0}.match-settings-grid select,.match-settings-grid input{width:100%;min-width:0;height:30px;padding:3px 6px;font-size:11px;border:1px solid #61718766;border-radius:4px;background:#182636;color:#f2f5fa}.match-setting-note{grid-column:1/-1;font-size:10px;line-height:1.45;margin:3px 0;color:#bac9dc}.match-action-grid>.match-event-list{grid-column:1/-1;max-height:240px;overflow:auto;padding-left:20px}.match-event-list small{color:#86acd4}.match-hud-tabs{display:flex!important}.match-hud-tabs button{flex:1;min-width:0;padding-left:4px!important;padding-right:4px!important}.match-settings-grid select:focus,.match-settings-grid input:focus{outline:2px solid #79b9ed}
@media(max-width:999px){.match-settings-grid select,.match-settings-grid input{min-height:36px;height:36px;font-size:12px}}
.match-leader-list{grid-column:1/-1}.match-settings-grid label:first-child:last-child{grid-column:1/-1}
/* Focused matchday controls: direct choices, no dropdowns. */
#match-controls.stadium-command-dock{width:336px;padding:8px;right:10px;bottom:10px;max-height:calc(100% - 80px);overflow:visible;box-sizing:border-box;background:#142334f2;border-color:#7296b04d}
#match-controls .match-hud-header{gap:7px;padding:0}.match-hud-header>div:first-child{max-width:150px}#match-controls .match-hud-header b{font-size:11px}#match-controls .match-hud-header small{font-size:9px}.support-meter{width:52px}
#match-controls button{letter-spacing:0;line-height:1.15}#match-controls .match-hud-tabs{margin:5px 0;padding-top:4px;gap:1px}#match-controls .match-hud-tabs button{font-size:10px!important;min-height:27px!important;padding:4px!important}
#match-controls .match-action-grid{display:block;max-height:none;overflow:visible;margin:0}#match-controls .match-action-grid button{min-height:26px!important;font-size:10px!important;padding:4px 5px!important;display:inline-flex;align-items:center;justify-content:center;white-space:normal;gap:1px}
#match-controls .match-action-grid button small{display:none}#match-controls .match-action-grid button b{font-size:10px}#match-controls button[aria-pressed=true]{background:#345c7c;border-color:#9cc7e1;color:#fff}#match-controls button:focus-visible{outline:2px solid #ffdf99;outline-offset:1px}
.match-choice-row{display:flex;align-items:center;gap:5px;margin:5px 0;min-width:0}.match-choice-row>span{width:42px;flex-shrink:0;font-size:10px;color:#b6c9d6}.match-choice-row>div{display:flex;flex:1;gap:3px;flex-wrap:wrap}.match-choice-row button{flex:1}.match-choice-row[aria-label=Chant]>div{display:grid;grid-template-columns:1fr 1fr}
.match-direct-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:6px}.match-direct-actions>button{min-height:29px!important}.match-swatches{display:flex;gap:7px;padding:3px 0;justify-content:center}#match-controls .match-swatches button{background:var(--swatch);width:27px;min-height:25px!important;border:2px solid #8b9dab66;border-radius:4px}#match-controls .match-swatches button[aria-pressed=true]{outline:2px solid #fff;outline-offset:1px;box-shadow:0 0 0 3px #151f29}
.match-stepper{display:flex;align-items:center;gap:5px;font-size:10px}.match-stepper>span{color:#b6c9d6;margin-right:auto}.match-stepper output{min-width:16px;text-align:center}.match-pyro-strength{display:flex;gap:12px;align-items:center}.match-pyro-strength>.match-stepper{flex:1}.match-pyro-strength>.match-choice-row{flex:1}.match-pyro-strength .match-choice-row>span{display:none}#match-controls .match-setting-note{font-size:9px;line-height:1.25;margin:5px 0;color:#b9c9d6}
.match-design-kinds,.match-design-choices{display:flex;gap:4px;margin:5px 0}.match-design-kinds>button{flex:1}.match-design-choices>button{flex:1;min-width:0;overflow:hidden}.match-design-tile{flex-direction:column!important}.match-design-tile canvas{width:100%;height:23px}.match-design-tile span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}#match-controls .match-hud-foot{font-size:9px;gap:3px 6px;margin-top:6px}.match-hud-foot>.active-chant{display:none}#match-controls .match-phase-action{margin:4px 0;display:flex;gap:4px}#match-controls .match-phase-action button{min-height:27px!important;padding:4px 6px!important;font-size:10px!important}#match-controls .match-phase-action small{display:none}
#match-controls .match-camera-bar{position:fixed;top:62px;left:12px;right:auto;bottom:auto;max-width:calc(100% - 24px);display:flex;flex-wrap:wrap;background:#172536ed}#match-controls .match-camera-bar button{min-height:28px!important;padding:4px 7px!important;font-size:10px!important}.match-live-event{display:none}#match-controls .curva-primary-orders{margin:4px 0;grid-template-columns:repeat(3,1fr)}#match-controls .curva-primary-orders button{min-height:27px!important;padding:4px!important}
#match-controls .match-leader-list{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:5px;max-height:90px;overflow:auto}#match-controls .match-leader-list button{flex-direction:column}.match-leader-list small{display:none}#match-controls .match-action-grid>.match-event-list{max-height:160px;overflow:auto;margin:4px 0;font-size:10px}#match-controls .match-action-grid>.match-event-list li{margin:4px 0}#match-controls .match-action-grid>.match-leader-list~button{display:none}
@media(min-width:700px) and (max-width:1099px){#match-controls.stadium-command-dock{width:300px}#match-controls .match-camera-bar{max-width:calc(100vw - 330px)} }
@media(max-width:699px){#match-controls.stadium-command-dock{width:calc(100% - 16px);left:8px;right:8px;bottom:8px;padding:7px;max-height:none;overflow:visible}#match-controls .match-hud-header>div:first-child{max-width:135px}#match-controls .match-hud-tabs button{min-height:31px!important}#match-controls .match-action-grid button{min-height:28px!important}#match-controls .match-camera-bar{top:61px;left:8px;max-width:calc(100% - 16px)}#match-controls .match-camera-bar button{min-height:30px!important;padding:4px 6px!important}#match-controls .match-hud-foot{margin:4px 0 0}.match-choice-row{margin:4px 0}.match-direct-actions{margin-top:4px}.match-design-choices{margin:3px 0} }
@media(max-height:530px) and (min-width:700px){#match-controls.stadium-command-dock{bottom:5px;padding:5px}.match-hud-header small{display:none}#match-controls .match-hud-tabs{margin:2px 0;padding:0}#match-controls .match-hud-foot{display:none}.match-choice-row{margin:3px 0}#match-controls .match-action-grid button{min-height:24px!important;padding:3px!important}#match-controls .match-camera-bar{top:48px} }
#match-controls .match-camera-bar{position:absolute;top:auto;bottom:calc(100% + 7px);left:auto;right:0;max-width:100%;box-sizing:border-box;margin:0;z-index:1}
@media(max-width:699px){#match-controls .match-camera-bar{top:auto;left:0;right:auto;bottom:calc(100% + 6px);max-width:100%}}
@media(max-height:530px) and (min-width:700px){#match-controls .match-camera-bar{top:auto;bottom:calc(100% + 4px)}}
@media(max-height:530px) and (min-width:700px){#match-controls.stadium-command-dock{width:360px;max-height:none;padding:5px}#match-controls .match-hud-header{height:22px}#match-controls .match-hud-header small,#match-controls .support-meter progress{display:none}#match-controls .match-hud-tabs button{min-height:22px!important;padding:3px!important}#match-controls .match-action-grid button{min-height:22px!important;font-size:9px!important;padding:3px!important}.match-choice-row{margin:2px 0}.match-choice-row>span{font-size:9px}.match-swatches{padding:2px 0}#match-controls .match-swatches button{min-height:21px!important;width:23px}#match-controls .match-setting-note{font-size:8px;line-height:1.15;margin:3px 0}.match-direct-actions{margin-top:3px}#match-controls .match-camera-bar{top:0;bottom:auto;right:calc(100% + 9px);width:170px;max-width:none}#match-controls .match-camera-bar button{min-height:24px!important;font-size:9px!important;padding:3px 5px!important}#match-controls .match-leader-list{max-height:60px}}
#match-controls .curva-primary-orders{grid-template-columns:repeat(4,1fr)}.match-stepper button{min-width:26px}
.fixture-next{border:1px solid #7595ad55;background:#1a2d40;padding:12px;border-radius:5px;margin:10px 0}.fixture-next>small{font-size:10px;color:#a9c9e3}.fixture-next h3{margin:7px 0;font-size:19px!important}.fixture-next p{font-size:11px!important;line-height:1.4!important;margin:4px 0}.fixture-next button{margin-top:7px}.fixture-list{display:flex;flex-direction:column;gap:3px}.fixture-row{display:grid!important;grid-template-columns:86px 22px minmax(0,1fr) 64px;align-items:center;gap:7px;width:100%;text-align:left;padding:8px!important;background:#ffffff04;border:1px solid #ffffff13!important}.fixture-row:hover{background:#294256}.fixture-row.completed{border-left:3px solid #6ba795!important}.fixture-row.playing{border-left:3px solid #e6bd6c!important}.fixture-date b,.fixture-teams{font-size:11px;line-height:1.4}.fixture-row small{display:block;font-size:9px;color:#9fb2c5;margin-top:2px}.fixture-ha{font:700 10px system-ui;background:#345775;padding:5px;border-radius:3px;text-align:center}.fixture-status{font-size:8px;color:#a5bfce;text-align:right}.fixture-teams b{color:#f3dc9a;white-space:nowrap}.fixture-preparation{display:flex;gap:6px;flex-wrap:wrap}#strategy-glance>small{display:block;font-size:9px;color:#a6bfd2}#strategy-glance>span{display:block;font-size:10px;margin-top:4px}#strategy-glance>small+ b{font-size:13px}
@media(max-width:699px){.fixture-row{grid-template-columns:70px 20px minmax(0,1fr);gap:5px;padding:7px!important}.fixture-status{grid-column:3;text-align:left;font-size:9px}.fixture-date b,.fixture-teams{font-size:10px}.fixture-next h3{font-size:17px!important}}
/* Visual artwork workshop: compact controls, a large canvas, and persistent primary actions. */
@font-face{font-family:CurvaClassica;src:url('/game/assets/curva-classica.woff') format('woff');font-display:swap}@font-face{font-family:CurvaBlock;src:url('/game/assets/curva-block.woff') format('woff');font-display:swap}@font-face{font-family:CurvaCondensed;src:url('/game/assets/curva-condensed.woff') format('woff');font-display:swap}@font-face{font-family:CurvaStencil;src:url('/game/assets/curva-stencil.woff') format('woff');font-display:swap}@font-face{font-family:CurvaSerif;src:url('/game/assets/curva-serif.woff') format('woff');font-display:swap}@font-face{font-family:CurvaBrush;src:url('/game/assets/curva-brush.woff') format('woff');font-display:swap}@font-face{font-family:CurvaVintage;src:url('/game/assets/curva-vintage.woff') format('woff');font-display:swap}@font-face{font-family:CurvaDisplay;src:url('/game/assets/curva-display.woff') format('woff');font-display:swap}
#panel[data-panel-kind=editor]{width:min(1120px,calc(100vw - 32px));max-width:1120px}#panel[data-panel-kind=editor] #panelbody{padding:18px}.tifo-workflow{font-size:11px;color:#a7bfd2;margin:0 0 12px}.tifo-type-buttons{display:flex;gap:8px;margin:10px 0}.tifo-type-buttons button{flex:1;text-align:left;padding:10px 12px;min-height:58px}.tifo-type-buttons b,.tifo-type-buttons small{display:block}.tifo-type-buttons small{font-size:11px;margin-top:4px;color:#b8c7d4}.tifo-compact-settings{display:grid;grid-template-columns:1fr 1fr;gap:5px 12px}.studio-setting,.fabric-dimension-tools,.studio-preview-cameras,.studio-preview-clubs{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin:5px 0}.studio-setting span{min-width:75px;color:#acbfd0;font-size:11px}.studio-setting button,.fabric-dimension-tools button{min-height:29px;font-size:11px;padding:5px 8px}.studio-setting [aria-pressed=true],.tifo-type-buttons [aria-pressed=true],.font-previews [aria-pressed=true]{background:#355d7a;outline:1px solid #92c8e9}.fabric-dimension-tools label{max-width:145px;font-size:11px}.fabric-dimension-tools input{width:100%;box-sizing:border-box;min-height:30px}.fabric-studio{gap:12px;margin:12px 0;grid-template-columns:minmax(0,1.3fr) minmax(280px,.85fr)}.fabric-stage{padding:10px;top:62px}.fabric-tools{max-height:590px;overflow:auto;padding:0 8px 10px 0;gap:7px;scrollbar-width:thin}.fabric-tools label{font-size:11px}.fabric-tools input,.fabric-tools textarea{min-height:30px}.fabric-tools input[type=range]{min-height:26px}.fabric-tools input[type=color]{height:30px;min-height:30px}.font-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.font-previews button{overflow:hidden;min-height:58px;padding:5px}.font-previews b{font:inherit;font-size:20px;display:block}.font-previews small{display:block;font:10px system-ui;color:#b4c5d3}.fabric-tools h3{font-size:12px;margin:5px 0}.studio-uploads{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:8px;background:#1d2d3a;border-radius:8px}.studio-uploads h3{grid-column:1/-1}.studio-uploads .upload-control{font-size:10px;overflow:hidden;min-width:0;padding:5px}.studio-uploads input[type=file]{font-size:10px;width:100%;max-width:100%}.studio-ranges{display:none}.studio-uploads .crop-controls,.studio-uploads .crop-ratios{display:none;grid-column:1/-1}.studio-uploads[data-crop-open=true] .crop-controls{display:grid;grid-template-columns:1fr 1fr;gap:5px}.studio-uploads[data-crop-open=true] .crop-ratios{display:flex;gap:5px}.crop-preview{max-width:100%;width:110px;height:110px;grid-row:span 3}.studio-crop-toggle,.logo-remove{font-size:10px;padding:5px;min-height:29px}.layer-actions{gap:4px}.layer-actions button{min-height:29px;padding:5px 7px;font-size:10px}.fabric-toolbar button{min-height:29px;font-size:11px;padding:5px 9px}.fabric-tools .layer-list{max-height:100px;overflow:auto}.fabric-tools .layer-list button{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:28px;padding:4px 6px;font-size:10px}.text-align-buttons{display:flex;gap:4px}.text-align-buttons button{font-size:10px;min-height:28px;padding:4px 8px}.studio-save-dock{position:sticky;top:-18px;z-index:7;background:#172735;box-shadow:0 3px 8px #0006;padding:8px;margin:6px -2px;display:flex;gap:6px;flex-wrap:wrap}.studio-save-dock button{min-height:32px;font-size:11px;padding:6px 10px}.tifo-result-panel{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:#142331;padding:10px;border-radius:9px}.tifo-result-panel canvas{width:100%;height:auto;background:#243541}.tifo-result-panel h3{font-size:12px;margin:4px 0 8px}#tifo-result-palette{display:flex;flex-wrap:wrap;gap:3px;margin:7px 0}#tifo-result-palette i{width:18px;height:18px;border:1px solid #9aa5a8}.tifo-production-summary .management-cards{grid-template-columns:repeat(3,1fr)}#tifo-live-preview{display:block;width:100%;height:auto;max-height:62vh;object-fit:contain;background:#182c31;touch-action:none}.studio-preview-cameras button,.studio-preview-clubs button{font-size:11px;min-height:30px;padding:5px 8px}.tifo-compact-settings [hidden]{display:none}
@media(max-width:700px){#panel[data-panel-kind=editor]{width:calc(100vw - 12px);max-height:96dvh}#panel[data-panel-kind=editor] #panelbody{padding:10px}.tifo-compact-settings{grid-template-columns:1fr}.tifo-type-buttons{gap:5px}.tifo-type-buttons button{padding:7px;font-size:12px}.fabric-studio{grid-template-columns:1fr}.fabric-stage{position:relative;top:auto;z-index:1;max-height:none;overflow:visible}.fabric-stage canvas{max-height:25vh;object-fit:contain}.fabric-stage .micro{font-size:9px;margin:4px}.fabric-tools{max-height:none;overflow:visible;padding:0}.font-previews{grid-template-columns:repeat(2,1fr)}.tifo-result-panel{grid-template-columns:1fr}.studio-save-dock{top:-10px;padding:5px;gap:4px}.studio-save-dock button{font-size:10px;min-height:32px;padding:5px}.tifo-production-summary .management-cards{grid-template-columns:repeat(2,1fr)}.studio-preview-cameras button{min-height:34px}}
[data-layer-kind=image] .studio-text-only,[data-layer-kind=image] .font-previews{display:none}.studio-text-only[hidden]{display:none}#panel[data-panel-kind=editor] h1{font-size:25px;line-height:1.15;margin:4px 0 10px}.tifo-compact-settings{padding:10px;background:#142431;border:1px solid #344b5e;border-radius:8px;margin:10px 0}.tifo-type-buttons{margin-bottom:2px}

/* Start-screen release badge; preserves the existing logo and menu spacing. */
.menu-logo-lockup{position:relative;flex:none}.menu-logo-lockup .menu-logo{display:block}.menu-alpha{position:absolute;left:calc(100% + 12px);top:12px;padding:4px 8px;border:1px solid #dcc18480;border-radius:2px;background:#151b23e8;color:var(--gold);font:700 11px/1.2 var(--sans);letter-spacing:2px;white-space:nowrap}

/* Closed match controls leave only the group summary and reopen button. */
#match-controls.is-collapsed .match-live-event,#match-controls.is-collapsed .match-hud-tabs,#match-controls.is-collapsed .curva-primary-orders,#match-controls.is-collapsed .match-phase-action,#match-controls.is-collapsed .match-action-grid,#match-controls.is-collapsed .match-hud-foot{display:none!important}
#match-controls [data-hud-collapse]{min-width:44px!important;min-height:44px!important;flex:none;touch-action:manipulation}
#match-controls.is-collapsed{min-height:0!important;height:auto!important}

.curva-audio-tests{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.audio-recording-note{font-size:10px;margin:3px 0 6px;color:var(--muted)}.curva-audio-settings>label{display:flex;align-items:center;gap:9px}.curva-audio-settings input[type=checkbox]{flex:none}

/* Match controls and camera choices on the left, above the game footer. */
#match-controls.stadium-command-dock{left:10px;right:auto;transform:none}#match-controls .match-camera-bar{left:0;right:auto;top:auto;bottom:calc(100% + 7px);max-width:100%}.developer-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.developer-fields label{display:flex;flex-direction:column;gap:5px}.developer-fields input{width:100%}@media(max-width:760px){#match-controls.stadium-command-dock{left:8px;right:auto;width:calc(100% - 16px)}.developer-fields{grid-template-columns:1fr 1fr}}
/* A single fullscreen control remains available in the menu and during play. */
#fullscreen-button{position:fixed;right:12px;top:10px;z-index:50;display:flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:5px 9px;background:#172333;border:1px solid #7c92af66;color:#e5edf8;font-size:11px;white-space:nowrap}#fullscreen-button>span:first-child{font-size:22px;line-height:1}.game-topbar{padding-right:130px!important}.menu-open #fullscreen-button{top:16px;right:16px}.game-fullscreen{width:100%;height:100dvh}html:fullscreen,html:-webkit-full-screen{background:#0d1015;width:100%;height:100%}@media(max-width:760px){#fullscreen-button{right:6px;top:9px;width:36px;height:36px;padding:3px}.fullscreen-label{display:none}.game-topbar{padding-right:48px!important}}@media(max-height:440px) and (min-width:761px){#fullscreen-button{top:3px;height:32px}}
#fullscreen-status{position:fixed;z-index:50;right:12px;top:53px;max-width:min(340px,calc(100vw - 24px));padding:8px 10px;background:#172333f5;border:1px solid #7c92af66;color:#e5edf8;font-size:12px;border-radius:4px}
#match-controls .match-quick-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:8px 0}#match-controls .match-quick-actions button{min-height:38px;padding:6px 4px;font-size:11px;font-weight:700}#match-controls .match-quick-actions button:first-child{background:#2579e8;border-color:#63a0fa;color:white}#match-controls.is-collapsed .match-phase-action{display:flex!important}.attendance-breakdown{font-size:10px!important;opacity:.8}
#match-controls.is-collapsed .match-quick-actions{display:grid!important}

/* Camera access is independent of the supporter dock collapse state. */
#match-controls.is-collapsed .match-camera-bar{display:flex!important;visibility:visible!important;pointer-events:auto}
@media(max-height:530px) and (min-width:700px){#match-controls .match-camera-bar{top:auto;bottom:calc(100% + 6px);left:0;right:auto;width:100%;max-width:100%}}

.original-song-imports{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.original-song-imports article{padding:12px;border:1px solid #ffffff25;border-radius:6px;background:#1b2c3d}.original-song-imports b,.original-song-imports small{display:block;margin-bottom:7px}.original-song-imports small{color:#b8c8d5;font-size:11px;overflow-wrap:anywhere}.original-song-imports .upload-control{display:inline-block;padding:8px;font-size:11px}.original-song-imports button{min-height:36px;margin:3px}@media(max-width:699px){.original-song-imports{grid-template-columns:1fr}}
#analytics-consent{position:fixed;z-index:10000;left:50%;transform:translateX(-50%);bottom:70px;width:min(780px,calc(100% - 24px));background:#17283a;border:1px solid #7593ae;border-radius:7px;box-shadow:0 8px 25px #0008;padding:13px;display:flex;align-items:center;gap:10px;font:12px/1.45 system-ui;color:#edf4fa}#analytics-consent div{flex:1}#analytics-consent b,#analytics-consent span{display:block}#analytics-consent button{flex:none;min-height:38px;padding:7px;font-size:11px}#analytics-consent a{color:#a9d1ff}.analytics-preferences-link{position:absolute;bottom:9px;right:16px;background:transparent;border:0;font-size:11px;padding:5px}@media(max-width:650px){#analytics-consent{bottom:110px;flex-wrap:wrap}#analytics-consent div{flex-basis:100%}#analytics-consent #analytics-close{position:absolute;right:6px;top:5px}#analytics-consent b{padding-right:25px}}

.seo-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.seo-menu-links{position:absolute;bottom:53px;right:25px;display:flex;gap:18px;z-index:3;font:12px system-ui;color:#dfd5bc}.seo-menu-links a{color:inherit;text-decoration:none}.seo-menu-links a:hover{text-decoration:underline}@media(max-width:760px){.seo-menu-links{position:absolute;bottom:48px;left:20px;right:20px;padding:0;justify-content:center;flex-wrap:wrap;gap:18px}}

/* Current supplied crest: preserve transparency and its original proportions. */
.menu-logo-lockup .menu-logo{width:128px;height:128px;max-height:128px;max-width:128px;padding:0;background:transparent;box-shadow:none;margin-bottom:18px;object-fit:contain}.brand-button,.brand-button:hover{background:transparent;width:64px;padding:0}.brand-button img{width:48px;height:48px;object-fit:contain}.setup-header img{width:52px;height:52px;max-height:52px;background:transparent;padding:0;object-fit:contain}@media(max-width:760px){.menu-logo-lockup .menu-logo{width:96px;height:96px;max-width:96px;max-height:96px;margin-bottom:12px}.brand-button{width:48px}.brand-button img{width:40px;height:40px}}@media(max-height:650px){.menu-logo-lockup .menu-logo{width:70px;height:70px;max-width:70px;max-height:70px;margin-bottom:8px}}

.pitch-occasion{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;border:1px solid #bfa866;border-radius:8px;background:#24342b;color:#f3e9c7}.pitch-occasion span{font-size:12px;flex:1 1 180px}.pitch-occasion button{width:100%;background:#345b40;color:#fff}.pitch-occasion.angry{border-color:#bf7568;background:#3a2526}.pitch-occasion.angry button{background:#784239}.match-phase-action:has(.pitch-occasion){flex-wrap:wrap}.pitch-occasion{flex:1 1 100%}


/* Keep direct ignition and its existing setup independently accessible. */
#match-controls .match-quick-pyro{display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:2px;min-width:0}
#match-controls .match-quick-pyro button:first-child{background:#26313d;border-color:#546273;white-space:nowrap}
#match-controls .match-quick-pyro [data-open-match-tab]{font-size:17px;padding:3px!important;min-width:0;background:#26313d;border-color:#546273}
.pyro-selected-color{display:inline-block;width:8px;height:8px;border-radius:50%;border:1px solid #ffffff90;vertical-align:middle}

/* Text entry stays beside the artwork instead of inside the scrolling tool list. */
.fabric-stage>label{display:grid;text-align:left;gap:5px;margin-top:10px;font-size:12px}.fabric-stage textarea{width:100%;box-sizing:border-box;min-height:64px;resize:vertical}.fabric-toolbar .layer-add{font-weight:800;min-height:36px;font-size:12px}

#match-controls .match-stepper input[data-pyro-quantity]{width:60px;min-width:0;min-height:30px;text-align:center;padding:3px;background:#101c29;color:#fff;border:1px solid #61778b;border-radius:5px;font-size:12px}

#match-controls .match-pyro-composer{max-height:clamp(140px,calc(100dvh - 500px),350px);overflow-y:auto;overscroll-behavior:contain;padding-right:4px}#match-controls .pyro-section-tools{grid-template-columns:1fr 1.6fr 1fr}#match-controls .match-pyro-activate{position:sticky;bottom:0;background:#142334;padding:5px 0;z-index:1}@media(max-width:699px){#match-controls .match-pyro-composer{max-height:38dvh}}

#match-controls .pyro-section-tools{grid-template-columns:repeat(2,minmax(0,1fr))}#match-controls .pyro-section-row{display:flex;gap:5px;align-items:center;padding:5px 2px;border-bottom:1px solid #ffffff22}#match-controls .pyro-section-row>span{flex:1;font-size:11px}#match-controls .pyro-section-row[data-editing=true]{background:#345c7c55}#match-controls input[type=color]{padding:1px;width:32px;height:29px;min-height:29px;border:1px solid #8ca5bb;cursor:pointer}#match-controls .pyro-custom-color{font-size:10px;display:flex;align-items:center;gap:4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

.fabric-layer-panel{background:#142237;border:1px solid #ffffff30;border-radius:8px;padding:12px;margin-bottom:14px}.fabric-layer-panel h3{margin:0 0 6px}.fabric-layer-panel h3 small{display:block;font-size:12px;font-weight:400;margin-top:5px}.fabric-layer-panel p{font-size:12px;margin:6px 0}.fabric-layer-panel .layer-list{max-height:200px;overflow:auto}.fabric-toolbar{display:flex;flex-wrap:wrap;gap:6px}.fabric-layer-panel .layer-actions{margin-bottom:0}
/* Shared Ultras Gallery */
.gallery-page-body{overflow:auto!important;background:#0b121d;color:#eef3fc;margin:0;min-height:100dvh}.gallery-site-header{display:flex;align-items:center;justify-content:space-between;padding:16px clamp(16px,5vw,80px);border-bottom:1px solid #ffffff20;background:#101c2b}.gallery-site-header a{color:#fff;text-decoration:none;display:flex;align-items:center;gap:12px;font-weight:800}.gallery-return{font-size:12px;border:1px solid #ffffff30;padding:12px;border-radius:7px}#gallery-page{max-width:1440px;margin:auto;padding:28px clamp(16px,4vw,64px) 80px}.gallery-dialog{width:min(1250px,96vw);max-width:96vw;max-height:94dvh;box-sizing:border-box;background:#101b2b;color:#edf3ff;border:1px solid #5a7393;border-radius:14px;padding:0;overflow:auto;z-index:10000}.gallery-dialog::backdrop{background:#020813cf}.gallery-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;background:#132239;border-bottom:1px solid #ffffff25;position:sticky;top:0;z-index:2}.gallery-dialog h1{font:800 clamp(20px,3vw,30px) Inter,system-ui;margin:4px 0}.gallery-dialog-body{padding:24px}.gallery-kicker{font:700 10px Inter,system-ui;letter-spacing:2px;color:#91bfff}.gallery-intro{position:relative;margin-bottom:24px}.gallery-intro h1{font:850 clamp(30px,5vw,52px) Inter,system-ui;margin:10px 0}.gallery-intro p{max-width:760px;line-height:1.6;margin:8px 0}.gallery-subtle{color:#acbfd8;font:12px/1.6 Inter,system-ui}.gallery-refresh{margin-top:12px}.gallery-filters{display:flex;flex-wrap:wrap;align-items:end;gap:14px;padding:16px;background:#162439;border:1px solid #ffffff20;border-radius:10px}.gallery-filters label,.gallery-dialog-body>label{display:flex;flex-direction:column;gap:6px;font:13px Inter,system-ui}.gallery-filters select,.gallery-dialog input,.gallery-dialog select{background:#0a1423;color:white;border:1px solid #7891b350;border-radius:6px;padding:10px;font:14px Inter,system-ui;max-width:100%;box-sizing:border-box}.gallery-dialog-body>label{margin:14px 0}.gallery-filters .gallery-mine,.gallery-dialog-body>.gallery-clean{flex-direction:row;align-items:center;min-height:40px}.gallery-mine input,.gallery-clean input{width:18px;height:18px}.gallery-status{font:13px/1.6 Inter,system-ui;min-height:22px;color:#c4ddff}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,265px),1fr));gap:20px}.gallery-card{min-width:0;background:#162337;border:1px solid #ffffff20;border-radius:12px;overflow:hidden}.gallery-image-button{border:0;border-radius:0;padding:0;width:100%;height:200px;display:block;background:#070d16;cursor:zoom-in}.gallery-image-button img{width:100%;height:100%;object-fit:contain}.gallery-card-copy{padding:16px}.gallery-category{font-size:10px;text-transform:uppercase;letter-spacing:1.5px;color:#a1c9fa}.gallery-card h2{font:750 18px Inter,system-ui;margin:8px 0;overflow-wrap:anywhere}.gallery-card p{font:12px/1.6 Inter,system-ui;overflow-wrap:anywhere;color:#b6c7df}.gallery-card footer{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#a5bad4}.gallery-dialog button,.gallery-page-body button{padding:10px 14px;background:#233752;border:1px solid #627c9e66;color:#fff;font:650 12px Inter,system-ui;cursor:pointer;min-height:40px}.gallery-dialog button:disabled{cursor:default;opacity:.55}.gallery-like[aria-pressed=true]{background:#71384a!important;border-color:#ff95b7!important}.gallery-full-image{display:flex;align-items:center;justify-content:center;background:#050a11;min-height:100px}.gallery-full-image img{max-width:100%;max-height:72dvh;object-fit:contain}.gallery-full-image:fullscreen img{max-height:100dvh}.gallery-view-actions,.gallery-share-actions{display:flex;flex-wrap:wrap;gap:10px}.gallery-share-preview{display:block;max-width:100%;max-height:53dvh;margin:16px auto;background:repeating-conic-gradient(#28364b 0% 25%,#1a283d 0% 50%) 0/20px 20px;object-fit:contain}.gallery-more{display:block;margin:24px auto}.gallery-more[hidden]{display:none}.gallery-share-hint{line-height:1.6}.gallery-inline-hint{font-size:11px!important;line-height:1.5;color:#b4cee9!important;margin:4px 0!important}.gallery-workshop-share{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.gallery-announcement{position:fixed;right:24px;bottom:24px;z-index:500;width:min(400px,calc(100vw - 32px));box-sizing:border-box;background:#152c47;color:#edf5ff;padding:24px;border:1px solid #81b8ef;border-radius:14px;box-shadow:0 12px 70px #0009;font:13px/1.6 Inter,system-ui}.gallery-announcement h2{font-size:18px;margin:0 18px 12px 0}.gallery-announcement-close{position:absolute;right:8px;top:8px;background:none;border:0;color:white;font-size:24px;cursor:pointer}.gallery-announcement p{margin:10px 0}.gallery-announcement-view{padding:12px;border-radius:6px}.gallery-capture-hint{font-size:10px;align-self:center;color:#c8ddfa}.gallery-clean-framing .stadium-command-dock,.gallery-clean-framing .game-topbar,.gallery-clean-framing .game-dock,.gallery-clean-framing .stadium-scoreboard,.gallery-clean-framing .match-camera-bar{visibility:hidden!important}
@media(max-width:600px){.gallery-dialog-body{padding:14px}.gallery-dialog>header{padding:12px 14px}.gallery-filters{gap:10px}.gallery-filters label{flex:1 1 130px}.gallery-announcement{right:16px;bottom:16px;padding:20px;max-height:75dvh;overflow:auto}.gallery-image-button{height:210px}.gallery-dialog{width:96vw}.game-dock nav button#nav-gallery{min-width:0}.gallery-capture-hint{display:none}}

@media(max-width:600px){.gallery-dialog input,.gallery-dialog select,.gallery-filters select{font-size:16px}}

/* Curva political hierarchy */
.cp-ranking{overflow-x:auto;margin:18px 0;border:1px solid #46525d;border-radius:7px}.cp-rank-head,.cp-rank-row{display:grid;grid-template-columns:minmax(200px,2.5fr) repeat(6,minmax(72px,1fr));min-width:760px;gap:9px;padding:12px;border-bottom:1px solid #354453;align-items:center}.cp-rank-head{font-size:11px;text-transform:uppercase;color:#c7b47b;background:#182737}.cp-rank-row small{display:block;color:#a8b6c6;margin-top:5px}.cp-player{background:#273c51}.cp-stages{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.cp-stages span{border:1px solid #536273;padding:10px;border-radius:6px}.cp-stages .active{background:#24567c;border-color:#80b0d1}.cp-hq-summary{margin-top:18px;padding-top:16px;border-top:1px solid #435363}.cp-hq-summary .metric-strip{margin:12px 0}

.cp-ranking{container-type:inline-size;container-name:political-ranking}@container political-ranking (max-width:740px){.cp-rank-head{display:none}.cp-rank-row{min-width:0;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;padding:13px}.cp-rank-row>span:first-child{grid-column:1/-1}.cp-rank-row>span[data-label]{font-size:15px}.cp-rank-row>span[data-label]::before{content:attr(data-label);display:block;color:#a8b6c6;font-size:10px;margin-bottom:5px}}

.historical-group-logo{object-fit:contain;vertical-align:middle;margin-right:9px;background:transparent;max-width:48px;max-height:48px}

.custom-chant-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.custom-chant-card{padding:14px;margin:10px 0;background:#18283a;border:1px solid #47576b;border-radius:8px}.custom-chant-card audio,#custom-chant-preview{display:block;width:100%;max-width:650px;margin:10px 0}#custom-chant-form label{display:block;margin:12px 0}#custom-chant-form input:not([type=radio]):not([type=checkbox]),#custom-chant-form select,#custom-chant-form textarea{width:100%;box-sizing:border-box}#custom-chant-form fieldset label{display:flex;gap:10px;align-items:center}#custom-selection button,.custom-chant-card button{margin:5px}#custom-chant-form [hidden]{display:none!important}

.flag-lineup-choice{display:flex;align-items:center;gap:8px;width:100%;font-size:13px}.flag-lineup-choice input{width:18px!important;height:18px!important;min-width:18px;flex:0 0 18px;margin:0}.flag-slot-status{color:#b9cde0}

/* Homepage support link: part of the menu only, never over active gameplay. */
.menu-support{position:fixed;top:108px;left:calc(100vw - 352px);width:320px;display:inline-flex;align-items:center;justify-content:center;gap:16px;padding:14px 18px;border:1px solid #83b5df;border-radius:10px;background:linear-gradient(135deg,#20486b,#152b43);box-shadow:0 8px 24px #0005;color:#f3f6fb;text-decoration:none;font:700 14px/1.35 Arial,sans-serif;letter-spacing:.1px;transition:background .15s,border-color .15s}.menu-support:hover{background:#285c84;border-color:#c1ddf6}.menu-support:focus-visible{outline:2px solid #f0d494;outline-offset:4px}.menu-support span{color:#b4d8f5;font-size:20px}@media(max-width:760px){.menu-support{position:static;left:auto;width:auto;flex-shrink:0;max-width:100%;margin:6px 0 18px;padding:12px 14px;font-size:13px;gap:10px}}

/* Prominent storefront entry, alongside the existing support link. */
.menu-shop{position:fixed;top:180px;left:calc(100vw - 352px);width:320px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;min-height:54px;border:1px solid #f0d494;border-radius:10px;background:#dcc184;color:#171b22;text-decoration:none;font:800 18px/1.3 Arial,sans-serif;box-shadow:0 8px 24px #0005}.menu-shop span{font-size:11px;letter-spacing:.4px}.menu-shop:hover{background:#f0d494}.menu-shop:focus-visible{outline:3px solid white;outline-offset:4px}@media(max-width:760px){.menu-shop{position:static;left:auto;width:min(320px,100%);flex-shrink:0;margin:0 0 16px;padding:13px 16px;min-height:48px}}
.grand-input-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px}.grand-input-grid label{display:grid;gap:5px;font-size:12px}.grand-input-grid input,.grand-input-grid select{width:100%;min-height:40px;box-sizing:border-box}.grand-layer{border:1px solid #ffffff25;border-radius:8px;padding:12px;margin:12px 0}.grand-layer h3{display:flex;justify-content:space-between;align-items:center}.grand-partner{display:flex;gap:9px;padding:9px}#grand-preview{width:100%;height:auto;max-height:540px;object-fit:contain;margin-top:16px}.grand-input-grid input[type=color]{height:40px}@media(max-width:600px){.grand-input-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grand-layer{padding:9px}.grand-layer h3{font-size:15px}.fabric-save-actions{flex-wrap:wrap}}
.grand-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0;position:static}.grand-actions button{flex:1 1 160px;white-space:normal;word-break:normal;padding:10px;min-height:44px}@media(max-width:600px){.grand-actions button{flex-basis:130px}.grand-layer h3 button{flex:none}}
.grand-preview-panel{margin:14px 0 20px;padding:12px;border:1px solid #ffffff24;border-radius:9px;background:#142330}.grand-preview-heading{display:flex;gap:10px;align-items:center;justify-content:space-between}.grand-preview-heading h3{font-size:13px;margin:0;letter-spacing:.05em}.grand-preview-heading button{min-height:38px}#grand-preview{display:block;margin:10px auto 0;max-height:360px;background:#233744;aspect-ratio:16/9}#grand-preview-status{font-size:12px;margin:8px 0 0}@media(max-width:600px){.grand-preview-panel{padding:8px}.grand-preview-heading{flex-wrap:wrap}#grand-preview{max-height:none}}

/* Icon-only social link, centered on the menu viewport. */
.menu-facebook{position:absolute;z-index:3;left:50%;top:28px;transform:translateX(-50%);display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#fff}.menu-facebook svg{display:block;width:32px;height:32px}.menu-facebook:hover{filter:brightness(1.15)}.menu-facebook:focus-visible{outline:3px solid #80b8ff;outline-offset:3px}@media(max-width:760px){.menu-facebook{top:64px}}
/* Keep all speeds available on compact screens. */
.time-controls{flex-shrink:0}.time-controls [data-speed]{min-width:36px;padding-inline:8px}
.match-lineups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.match-lineups ol{list-style:none;padding:0}.match-lineups li{padding:5px 0;border-bottom:1px solid #ffffff12}.match-lineups li span{display:inline-block;width:24px;color:#9dc4ef}.match-lineups small{float:right;color:#a7b6bf}
@media(max-width:600px){.time-controls [data-speed]{min-width:28px;padding-inline:5px}.match-lineups{grid-template-columns:1fr}}
@media(max-width:699px){
 .game-dock,body.stadium-active .game-dock{height:82px!important;min-height:82px!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:36px 34px;gap:3px;padding:4px 8px;}
 .game-dock #date{grid-column:1;grid-row:1;max-width:none!important;font-size:9px;}
 .game-dock .time-controls{grid-column:2;grid-row:1;}
 .game-dock nav,body.stadium-active .game-dock nav{grid-column:1/-1;grid-row:2;overflow-x:auto;gap:3px;}
 .game-dock nav button{flex:1 0 auto;min-width:48px;font-size:10px;padding:4px 7px;white-space:nowrap;}
}
/* The match paper lives inside the existing report and keeps its return action. */
#panel[data-panel-kind=match-press]{width:min(980px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;padding:16px!important}
.match-newspaper{color:#24231f;background:#f0eadb;border:1px solid #c5bba6;padding:clamp(18px,3vw,34px);margin:0 0 24px;box-shadow:0 4px 20px #0003;font-family:Georgia,'Times New Roman',serif}
.match-newspaper header{border-top:4px solid #28251f;border-bottom:1px solid #857a66;padding:9px 0 8px}.press-masthead{font-weight:900;font-size:clamp(22px,4vw,42px);letter-spacing:-1px;line-height:1.1;text-align:center}.press-issue{display:flex;justify-content:space-between;gap:12px;margin-top:8px;font:10px/1.5 Arial,sans-serif;text-transform:uppercase;letter-spacing:1px}.match-newspaper .press-kicker{font:700 10px/1.5 Arial,sans-serif;letter-spacing:2px;margin:22px 0 9px;color:#7d3727}.match-newspaper h1{font:800 clamp(28px,4vw,48px)/1.05 Georgia,serif!important;letter-spacing:-1px;margin:0 0 14px!important;color:#24231f}.press-score{font:700 18px/1.4 Arial,sans-serif;border-bottom:2px solid #544b3a;padding-bottom:16px;margin-bottom:20px}.press-copy{columns:2;column-gap:32px;column-rule:1px solid #c7beac;font:16px/1.65 Georgia,serif}.press-copy p{margin:0 0 15px;break-inside:avoid}.press-copy p:first-child::first-letter{float:left;font-size:47px;line-height:.85;padding:6px 7px 0 0;font-weight:700}
@media(max-width:600px){#panel[data-panel-kind=match-press]{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;padding:8px!important;left:6px;right:6px}.press-copy{columns:1;font-size:16px}.press-issue{font-size:9px;letter-spacing:.3px;flex-wrap:wrap}.match-newspaper{padding:17px}.press-masthead{font-size:23px}}

#panelbody .match-newspaper,#panelbody .match-newspaper *{color:#24231f!important}#panelbody .match-newspaper .press-copy p{font:16px/1.65 Georgia,'Times New Roman',serif!important}#panelbody .match-newspaper .press-kicker{color:#7d3727!important}#panelbody .match-newspaper .press-score{font:700 18px/1.4 Arial,sans-serif!important}

.fabric-stage .banner-logo-toggle{display:flex;align-items:center;gap:10px;min-height:44px;margin:8px 0;font-size:13px;color:inherit;cursor:pointer}.banner-logo-toggle input[type=checkbox]{width:20px;height:20px;min-height:20px;flex:none;accent-color:#79b9ed}

.menu-articles{position:fixed;top:260px;right:32px;width:320px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:16px 18px;border:1px solid #91b39d;border-radius:10px;background:#244b36;color:#edf4ef;text-decoration:none;font:800 18px/1.3 Arial,sans-serif;box-shadow:0 8px 24px #0005}.menu-articles span{font-size:10px;max-width:160px;letter-spacing:.5px}.menu-articles:hover{background:#326246}.menu-articles:focus-visible{outline:3px solid white;outline-offset:4px}@media(max-width:760px){.menu-articles{position:static;width:min(320px,100%);margin:0 0 16px;min-height:54px;flex-shrink:0}}
.menu-articles{left:calc(100vw - 352px);right:auto}@media(max-width:760px){.menu-articles{left:auto}}
