/* A single rectangular game console, including every menu and all touch controls. */
body[data-game-app=goal]{display:grid;place-items:center;background:radial-gradient(ellipse at top,#23304b,#080e1a 80%);padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))}
.goal-console{width:100%;height:100%;max-width:1280px;max-height:800px;min-height:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #527087;border-radius:16px;background:linear-gradient(150deg,#14252d,#0b1721);box-shadow:0 18px 65px #0007;isolation:isolate}
.goal-console>header{height:46px;min-height:46px;flex:none;width:100%;padding:0 16px;max-width:none;margin:0;gap:10px;background:#142433aa}.goal-console>footer{display:none}body[data-game-app=goal] main{width:100%;max-width:none;min-height:0;padding:10px;overflow:hidden}body[data-game-app=goal] #lobby{grid-template-rows:auto auto minmax(0,1fr);gap:8px;overflow:hidden}body[data-game-app=goal] .panel{overflow:hidden!important;min-height:0;min-width:0}body[data-game-app=goal] .title-row{height:28px;min-height:28px}body[data-game-app=goal] .title-row p{display:none}body[data-game-app=goal] .title-row h1,body[data-game-app=goal] .title-row h1 span{font-size:23px}body[data-game-app=goal] .tabs{height:36px;min-height:36px;gap:18px}body[data-game-app=goal] .tabs button{font-size:10px;min-height:34px;white-space:nowrap}body[data-game-app=goal] #record{font-size:8px;letter-spacing:0}
body[data-game-app=goal] #play-panel{background:linear-gradient(#071c27c9,#10212ce8),url('assets/arena101/stadium.webp') center/cover;border:1px solid #416071;border-radius:12px;padding:14px}body[data-game-app=goal] .lobby-grid{display:block;height:100%}body[data-game-app=goal] .hero-stage{display:none}body[data-game-app=goal] .setup{height:100%;width:min(820px,100%);margin:auto;overflow:hidden;padding:0;display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:8px}.setup-pages{min-height:0;overflow:hidden}.setup-page{height:100%;min-height:0;display:flex;flex-direction:column;justify-content:center}.setup-page[hidden]{display:none}.setup-page .section-label{justify-content:center;font-size:16px!important;letter-spacing:1px;margin:8px 0 16px!important}.setup-page .section-label small{display:none}.setup-page .section-label>span{display:none}body[data-game-app=goal] .roster{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0}body[data-game-app=goal] .character{height:clamp(105px,26vh,230px);padding:8px;border-radius:10px;background:#203648aa}body[data-game-app=goal] .character img{height:calc(100% - 28px);max-height:none;width:100%;padding:0;transform:none}body[data-game-app=goal] .character b{font-size:14px;margin-top:4px}body[data-game-app=goal] .character.selected{background:#294135;border-color:#ffe18a}.setup-footer{display:flex;align-items:center;justify-content:center;gap:12px;min-height:46px}.setup-footer>button{min-height:44px;background:#263c52;border:1px solid #608092;border-radius:8px;color:#e5eef2;font-weight:700;padding:8px 18px}.setup-footer>span{font-size:10px;color:#b6c9ce}.setup-footer #kickoff{width:auto;min-width:180px;margin:0;padding:10px 20px;color:#142834;background:#ffe28e;box-shadow:none;border:0}.setup-footer #kickoff span{margin-left:18px}.setup-footer [hidden]{display:none!important}.setup-page .difficulty{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:12px}.setup-page .difficulty button{text-align:center;min-height:48px}.setup-page .match-options{margin:4px 0 8px!important}.setup-page select{font-size:13px!important;min-height:38px!important}body[data-game-app=goal] #setupNotice{margin:0;text-align:center;font-size:10px;min-height:12px;max-height:24px;overflow:hidden}
body[data-game-app=goal] #locker-panel:not(.hidden){display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:8px}#locker-panel>.section-label{margin:0!important;font-size:10px!important}#locker-panel>.section-label small{display:none}.shop-filters{padding:0;gap:10px;flex-wrap:nowrap}.shop-filters label{min-width:0}.shop-filters select{min-height:36px;margin-top:4px;padding:6px;font-size:12px}.shop-filters>button{min-height:36px;font-size:10px;padding:6px 9px;white-space:nowrap}.locker-grid{height:100%;min-height:0;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0!important;align-items:stretch}.kit{display:grid;grid-template-rows:minmax(0,1fr) auto auto;min-height:0;overflow:hidden;padding:8px;gap:6px;border-radius:10px}.kit canvas{height:100%;max-height:100%;width:100%;min-height:0;aspect-ratio:auto;object-fit:contain}.kit h3{font-size:17px;margin:0;line-height:1.1;min-height:36px;display:grid;place-items:center}.kit p{display:none}.kit button{min-height:40px;padding:6px;font-size:10px}.screen-pager{display:flex;justify-content:center;align-items:center;gap:18px;min-height:36px}.screen-pager button{min-width:94px;min-height:34px;padding:7px 14px;background:#254252;border:1px solid #547483;border-radius:7px;color:#ecf6e7;font-size:11px}.screen-pager button:disabled{opacity:.35;cursor:default}.screen-pager span{font-size:11px;color:#bad0d6}#locker-panel>.muted{display:none}#saveStatus{font-size:10px;min-height:14px;margin:0;text-align:center;max-height:28px;overflow:hidden}
body[data-game-app=goal] #saves-panel:not(.hidden){display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:12px;border:1px solid #416071;border-radius:12px;background:#142936}#saves-panel h2{font:700 26px 'Barlow Condensed',Arial;margin:0;color:#ffe28e}.save-slot-bar{width:min(740px,100%);margin:0}#saveSlots{gap:12px}#saveSlots button{height:110px;text-align:center;border-radius:10px;min-height:0}#saveSlots b{font-size:16px}#saveSlots span{font-size:13px;margin:8px 0}#saveSlots small{font-size:10px}.save-explainer,#slotNotice{font-size:12px;line-height:1.4;text-align:center;margin:8px 0 0;color:#c3d2d4}.save-explainer{max-width:560px;margin:0}.save-tools{margin:0;gap:10px}.save-tools button,.file-label{min-height:40px;padding:10px 14px}.help-card{width:min(700px,100%);margin:auto;padding:20px;background:#19313e;border:1px solid #476271;border-radius:12px;overflow:hidden}.help-card small{font-size:11px;color:#f6d986}.help-card h2{font:700 30px 'Barlow Condensed',Arial;margin:12px 0}.help-card p{font-size:16px;line-height:1.6;color:#d3e0dc}#guide-panel:not(.hidden){display:grid;grid-template-rows:minmax(0,1fr) auto;gap:10px}
body[data-game-app=goal] .game-frame{border-radius:10px;flex:1;aspect-ratio:auto;min-height:0;height:auto;max-width:none;margin:0}body[data-game-app=goal] #game{justify-content:flex-start}.goal-console .match-overlay,.goal-console .overlay-card{overflow:hidden!important}.goal-console .overlay-card{padding:8px}.goal-console .overlay-card h2{font-size:clamp(16px,3vh,28px);margin:6px 0}.goal-console .overlay-card p{font-size:10px;line-height:1.3;margin:6px 0}.goal-console .overlay-card .result-score{font-size:24px}.goal-console .overlay-card>small{font-size:8px;letter-spacing:1px}.goal-console .overlay-card button{min-height:32px;margin:3px;padding:7px 12px;font-size:10px}
html.fit-fullscreen body[data-game-app=goal]{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}html.fit-fullscreen .goal-console{max-width:none;max-height:none;border-radius:0;border:0}
@media(max-width:680px){body[data-game-app=goal]{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.goal-console{border-radius:0;border:0;max-height:none}.goal-console>header{height:44px;min-height:44px;padding:0 8px}body[data-game-app=goal] main{padding:7px}body[data-game-app=goal] .title-row{height:25px;min-height:25px}body[data-game-app=goal] .title-row h1,body[data-game-app=goal] .title-row h1 span{font-size:19px}body[data-game-app=goal] .tabs{gap:12px}body[data-game-app=goal] .tabs button{font-size:9px}body[data-game-app=goal] #record{display:none}body[data-game-app=goal] #play-panel{padding:10px}body[data-game-app=goal] .roster{gap:6px}body[data-game-app=goal] .character{height:clamp(90px,26vh,180px);padding:3px}body[data-game-app=goal] .character b{font-size:9px}.setup-page .section-label{font-size:14px!important;margin:4px 0 12px!important}.setup-footer{gap:7px;flex-wrap:wrap}.setup-footer>span{order:-1;width:100%;text-align:center;font-size:10px}.setup-footer>button{padding:8px 12px;font-size:12px}.setup-footer #kickoff{min-width:140px;font-size:14px}.setup-page .difficulty button{font-size:9px!important;min-height:45px;padding:7px 2px!important}.setup-page .difficulty small{font-size:8px}.setup-page .match-options{gap:7px!important}.setup-page select{font-size:12px!important;min-height:36px!important}.locker-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.shop-filters{gap:7px;display:grid;grid-template-columns:1fr 1fr}.shop-filters>button{grid-column:1/-1;min-height:32px}.shop-filters select{font-size:12px}.kit{padding:6px;gap:5px}.kit h3{font-size:15px;min-height:32px}.kit button{font-size:10px;min-height:40px}.screen-pager{gap:12px}.screen-pager button{padding:6px 9px;min-width:85px}#saves-panel h2{font-size:23px}#saveSlots{gap:6px}#saveSlots button{height:100px;padding:5px}#saveSlots b{font-size:13px}#saveSlots span{font-size:11px}#saveSlots small{font-size:9px}#saves-panel .save-explainer,#slotNotice{font-size:10px}.save-tools{gap:6px}.save-tools button,.file-label{font-size:10px;padding:8px}.help-card{padding:14px}.help-card h2{font-size:25px}.help-card p{font-size:13px;line-height:1.5}body[data-game-app=goal] .control-deck{height:100px;min-height:100px}.goal-console .game-frame{flex:1;aspect-ratio:auto;height:auto}body[data-game-app=goal] .scoreboard{gap:7px}body[data-game-app=goal] .scoreboard>div{font-size:9px}}
@media(max-width:360px){body[data-game-app=goal] .control-deck{height:114px;min-height:114px}.setup-page .match-options{margin:2px 0 4px!important}.setup-page select{padding:4px!important}.setup-page .section-label{margin-bottom:7px!important}.setup-page .difficulty{margin-bottom:6px}.setup-footer>span{font-size:9px}.kit h3{font-size:14px}.help-card p{font-size:12px;line-height:1.4}}
@media(max-height:500px) and (min-width:681px){body[data-game-app=goal]{padding:0}.goal-console{border-radius:0;border:0;max-height:none}.goal-console>header{height:38px;min-height:38px;padding:0 10px}body[data-game-app=goal] main{padding:5px 8px}body[data-game-app=goal] #lobby{grid-template-rows:auto minmax(0,1fr);gap:5px}body[data-game-app=goal] .title-row{display:none}body[data-game-app=goal] .tabs{min-height:31px;height:31px}.setup-page .section-label{font-size:13px!important;margin:3px 0 7px!important}body[data-game-app=goal] .character{height:130px}.setup-page .match-options{margin:2px 0 4px!important}.setup-page .difficulty{margin-bottom:6px}.setup-page .difficulty button{min-height:37px;padding:5px!important}.setup-page select{min-height:32px!important;padding:5px!important}.setup-footer{min-height:38px}.setup-footer>button,.setup-footer #kickoff{min-height:36px;padding:6px 14px;font-size:13px}body[data-game-app=goal] #play-panel{padding:7px}.setup{gap:4px!important}body[data-game-app=goal] .control-deck{height:62px;min-height:62px}.shop-filters{display:flex}.shop-filters>button{min-height:32px}.shop-filters select{min-height:31px}.locker-grid{gap:8px!important}.kit{padding:5px;gap:3px}.kit h3{font-size:14px;min-height:28px}.kit button{min-height:33px;font-size:9px}.screen-pager{min-height:32px}.screen-pager button{min-height:30px}.help-card{padding:8px 16px}.help-card h2{font-size:22px;margin:5px 0}.help-card p{font-size:13px;line-height:1.35;margin:7px 0}#saves-panel:not(.hidden){gap:7px!important}#saveSlots button{height:65px}#saveSlots b{font-size:12px}#saveSlots span{font-size:11px;margin:4px}#saveSlots small{display:block;font-size:9px}#saves-panel h2{font-size:20px}.save-explainer,#slotNotice{font-size:10px;margin-top:3px}.save-tools button,.file-label{min-height:32px;padding:7px 12px}}
@media(display-mode:standalone){.goal-console{max-width:none;max-height:none}}
@media(max-width:680px){body[data-game-app=goal] .roster{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));height:clamp(180px,42vh,320px);flex:none}body[data-game-app=goal] .character{height:auto;min-height:0}body[data-game-app=goal] .character img{height:calc(100% - 22px)}body[data-game-app=goal] .character b{font-size:10px}}
@media(max-width:680px){body[data-game-app=goal] .roster{grid-template-columns:repeat(6,minmax(0,1fr))}body[data-game-app=goal] .character{grid-column:span 2}body[data-game-app=goal] .character:nth-child(4){grid-column:2/span 2}body[data-game-app=goal] .character:nth-child(5){grid-column:4/span 2}}
@media(max-width:680px){body[data-game-app=goal][data-scene=play] .goal-console{height:min(100%,calc(50vw + 285px));border:1px solid #4c697e;border-radius:12px}body[data-game-app=goal] #game{justify-content:center}body[data-game-app=goal] .game-frame{flex:none;height:auto;aspect-ratio:2/1}body[data-game-app=goal] .overlay-card{padding:6px}body[data-game-app=goal] .overlay-card h2{font-size:16px;margin:4px 0}body[data-game-app=goal] .overlay-card p{font-size:9px;line-height:1.2;margin:4px 0}body[data-game-app=goal] .overlay-card .result-score{font-size:20px}body[data-game-app=goal] .overlay-card>small{font-size:7px}body[data-game-app=goal] .overlay-card button{min-height:30px;padding:6px 10px}}
html.fit-fullscreen body[data-game-app=goal] .goal-console{height:100%;border:0;border-radius:0}
@media(display-mode:standalone){body[data-game-app=goal][data-scene=play] .goal-console{height:100%;border:0;border-radius:0}}
