/* Pallet Academy is a school within the football world. Presentation only:
   the existing room geometry, actor placement and match surfaces stay shared. */
body.world-shell.sim-fullscreen-active>.academy-header{visibility:hidden;pointer-events:none}
body.world-shell:has(.academy-immersive) #academyMain>#notice:not([hidden]){top:auto;height:auto}
body.world-shell:has(.academy-immersive){--academy-cream:#fff7df;--academy-forest:#294f3c;--academy-gold:#f3c76d;--academy-shadow:0 7px 0 #31533b0c,0 12px 24px #243e3025;background:#c8d9ac}
.world-shell .academy-campus.academy-immersive{background:radial-gradient(ellipse at 80% 0,#fff5c7aa,transparent 52%),repeating-linear-gradient(130deg,#cad9ae22 0 2px,transparent 2px 22px),linear-gradient(155deg,#dfe8bf,#b7cb96)}
.world-shell .academy-immersive:before{inset:0;opacity:.65;background:linear-gradient(100deg,#49693d08,transparent 25%,#fff7ce44),url('assets/academy-world-pennants.svg') center top/680px 105px repeat-x}
.world-shell .academy-campus .campus-viewport .campus-scene.campus-simulation[data-scene=practice]{background-image:url('assets/academy-world-practice.svg')}
.world-shell .academy-campus .campus-viewport .campus-scene.campus-simulation[data-scene=classroom]{background-image:url('academy-art/classroom-floor.svg')}
.world-shell .academy-campus .campus-viewport .campus-scene.campus-simulation[data-scene=commonroom]{background-image:url('academy-art/commonroom-floor.svg')}
.world-shell .academy-immersive .campus-viewport .campus-scene.campus-simulation{outline:0;box-shadow:none;border-radius:0}
.world-shell .academy-immersive .hub-academy-top .campus-heading .eyebrow{font-weight:750;color:#31513c;letter-spacing:1.5px}
.world-shell .academy-immersive .academy-hud-resources button{border:1px solid #cbbb89;border-bottom:3px solid #bba773;background:linear-gradient(#fffbe8,#f6edce);border-radius:10px;box-shadow:0 6px 14px #38533616}
.world-shell .academy-immersive .academy-hud-resources button:last-child{border-color:#c49c55;background:linear-gradient(#ffe7a7,#f1cf83)}
.world-shell .academy-immersive .campus-schedule,.world-shell .academy-immersive .campus-mobile-actions button{background:linear-gradient(#fff9e3,#f3e9c8);border:1px solid #c9b886;border-bottom:3px solid #b6a276;border-radius:12px;box-shadow:0 7px 17px #36523621}
.world-shell .academy-immersive .campus-scene-picker select{border-color:#bcb185;border-radius:7px;background:#fff9e5}
.world-shell .academy-immersive .academy-options-button{background:linear-gradient(#fffbe8,#f6edce);border:1px solid #cbbb89;border-bottom:3px solid #bba773;border-radius:10px;box-shadow:0 6px 14px #38533616}
.world-shell .academy-immersive .academy-options-sheet{background:#fff7df;border:3px solid #d4bb7f;border-radius:16px;box-shadow:0 24px 90px #14302466}
.world-shell .academy-immersive .academy-options-sheet::backdrop{background:transparent;backdrop-filter:none}
.world-shell .academy-immersive .academy-system-dock{background:linear-gradient(#426d4b,#254c38);border:2px solid #e7d39e;border-radius:18px;box-shadow:0 5px 0 #24402f,0 12px 22px #243f3038;padding:7px;gap:7px}
.world-shell .academy-immersive .academy-system-dock button{background:#ffffff09;border:1px solid #9fb38b40;border-radius:11px;font-size:12px;letter-spacing:.1px}
.world-shell .academy-immersive .academy-system-dock button[aria-expanded=true]{background:linear-gradient(#ffe9ae,#e9c679);border-color:#fff2c2;color:#385139}
.world-shell .academy-immersive .academy-system-dock button:nth-child(3) svg{stroke:#f7d17a}
.world-shell .academy-immersive .academy-system-dock button:hover{background:#71905a66;border-color:#d2deb5}
.world-shell .academy-immersive .academy-system-dock button[aria-expanded=true]:hover{background:#fff0c1}
.world-shell .academy-immersive .academy-system-sheet,.world-shell .academy-immersive .campus-mobile-sheet{border:3px solid #d4bb7f;border-radius:18px;background:linear-gradient(90deg,#e4d2a922 1px,transparent 1px) 0 0/24px 24px,linear-gradient(#fff9e7,#f1ead7);box-shadow:0 24px 90px #14302466,0 0 0 1px #927943}
.world-shell .academy-immersive .academy-system-sheet::backdrop,.world-shell .academy-immersive .campus-mobile-sheet::backdrop{background:transparent;backdrop-filter:none}
.world-shell .academy-immersive .academy-system-heading{background:linear-gradient(115deg,#2a523d,#436e4a);color:#fff2ca;border-bottom:4px solid #e5c77d;padding:20px 24px}
.world-shell .academy-immersive .academy-system-heading h2{color:#fff4d2;letter-spacing:.5px}
.world-shell .academy-immersive .academy-system-heading .eyebrow{color:#d8dcaa}
.world-shell .academy-immersive .academy-system-heading button{background:#fff4d7;color:#34543e;border:1px solid #e6cf94;border-radius:8px}
.world-shell .academy-immersive .academy-system-content .hub-tabs,.world-shell .academy-immersive .campus-mobile-sheet .hub-tabs{background:#e6dcc0;border:1px solid #d6c59e;border-radius:10px;padding:5px}
.world-shell .academy-immersive .academy-system-content .hub-tabs button{border-radius:7px}
.world-shell .academy-immersive .academy-system-content .hub-tabs button[aria-selected=true]{background:#335b42;color:#fff4d2;box-shadow:0 3px 0 #23442f}
.world-shell .academy-immersive .academy-system-content .panel{background:#fffaf0;border:1px solid #d8c9a8;border-top:4px solid #8aa067;border-radius:10px;box-shadow:0 4px 0 #b5ab8d1c}
.world-shell .academy-immersive .academy-system-content .championship-panel,.world-shell .academy-immersive .academy-system-content .cup-panel{border-top-color:#c59947;background:linear-gradient(120deg,#fff9e7,#faf0d5)}
.world-shell .academy-immersive .academy-system-content .coaching-panel{border-top-color:#567f73}
.world-shell .academy-immersive .academy-system-content .choice{background:linear-gradient(#f9f2da,#fffdf4);border-color:#cfbd8d;border-radius:10px}
.world-shell .academy-immersive .academy-system-content .choice>img{background:radial-gradient(ellipse at center,#e7d9a8 0 37%,transparent 39%);filter:drop-shadow(0 5px 0 #5d6b4120)}
.world-shell .academy-immersive .economy-card{border-color:#668362;border-bottom:4px solid #d5b773;background:radial-gradient(ellipse at top right,#64834d55,transparent 60%),linear-gradient(140deg,#35543b,#1d382b);box-shadow:0 4px 0 #b5ab8d1c;border-radius:10px}
.world-shell .academy-immersive .economy-card h3{color:#f8df9c}
.world-shell .academy-immersive .campus-profile-heading{background:linear-gradient(115deg,#e8ebd1,#f8edca);border:1px solid #d0c69e;border-radius:10px;padding:12px!important}
.world-shell .academy-immersive .campus-portrait{background:radial-gradient(circle,#fff6ce 0 52%,transparent 54%);filter:drop-shadow(0 4px 0 #4d673524)}
.world-shell .academy-immersive .campus-stat-strip{padding:12px 5px!important;border-block:1px solid #d7c9a3;background:#ede6ce;border-radius:6px}
.world-shell .academy-immersive .campus-character-line{border-left:3px solid #d6b35e;padding-left:12px!important;color:#58704c}
.world-shell .academy-immersive .academy-system-content .academy-ceremony{background:radial-gradient(ellipse at top,#69834c,#203c2c 70%);border:2px solid #d5b66b}
.world-shell .academy-immersive :is(button,select,input):focus-visible{outline:3px solid #a44d2e;outline-offset:3px}
@media(max-width:700px){
 .world-shell .academy-immersive:before{background-size:500px 78px;opacity:.45}
 .world-shell .academy-immersive .campus-viewport .campus-scene.campus-simulation{outline:0;border-radius:0}
 .world-shell .academy-immersive .academy-system-dock{padding:5px;gap:3px;border-radius:14px}
 .world-shell .academy-immersive .academy-system-dock button{font-size:10px;border-radius:9px}
 .world-shell .academy-immersive .academy-system-heading{padding:14px}
 .world-shell .academy-immersive .academy-system-sheet,.world-shell .academy-immersive .campus-mobile-sheet{border-width:2px;border-radius:14px}
}

/* The hub owns the top bar and left navigation. Academy fills the remaining
   stage; menus overlay it without changing the room's fit scale. */
body.world-shell:has(.academy-immersive){--academy-site-nav-height:64px}
body.world-shell:has(.academy-immersive)>.academy-header{height:var(--academy-site-nav-height);min-height:var(--academy-site-nav-height);gap:16px;padding-inline:16px}
body.world-shell:has(.academy-immersive)>#academyMain{inset:var(--academy-site-nav-height) 0 0;width:auto;height:auto;margin:0;padding:0}
.world-shell .academy-immersive .academy-panel-wallet{color:#31553d}
.world-shell .academy-immersive .academy-options-sheet nav{display:none}
.world-shell .academy-immersive .academy-system-heading{padding:14px 18px}
@media(min-width:1100px) and (min-height:620px){
 body.world-shell:has(.academy-immersive)>#academyMain{left:var(--world-rail)}
}
@media(max-width:700px){
 body.world-shell:has(.academy-immersive){--academy-site-nav-height:56px}
 body.world-shell:has(.academy-immersive)>.academy-header{gap:5px;padding-inline:6px}
 .world-shell .academy-immersive .hub-academy-top{right:96px;gap:4px}
 .world-shell .academy-immersive .hub-academy-top .campus-heading{width:100%;min-height:0}
 .world-shell .academy-immersive .hub-academy-top .campus-heading .eyebrow{font-size:9px;letter-spacing:.6px}
 .world-shell .academy-immersive .academy-hud-resources button{min-height:38px;padding:4px 7px;gap:4px;font-size:9px}
 .world-shell .academy-immersive .academy-hud-resources button :is(b,strong){font-size:18px}
 .world-shell .academy-immersive .academy-system-heading{padding:8px;gap:6px}
 .world-shell .academy-immersive .academy-system-heading h2{font-size:21px}
 .world-shell .academy-immersive .academy-system-dock{width:80px;padding:3px;gap:3px}
 .world-shell .academy-immersive :is(.academy-system-sheet,.campus-mobile-sheet,.academy-options-sheet){right:92px}
 .world-shell .academy-immersive .academy-system-dock .academy-graduation-button{padding:7px 2px}
 .world-shell .academy-immersive .academy-system-dock button{font-size:9px}
 .world-shell .academy-immersive .academy-system-dock button span{min-width:0;max-width:100%;overflow-wrap:anywhere}
}
@media(max-height:540px) and (min-width:701px){
 .world-shell .academy-immersive .academy-system-dock{width:96px;padding:4px;gap:2px}
 .world-shell .academy-immersive .academy-system-dock button{font-size:10px;padding:4px;gap:4px}
 .world-shell .academy-immersive .academy-system-dock button svg{width:16px;height:16px;flex:none}
 .world-shell .academy-immersive :is(.academy-system-sheet,.campus-mobile-sheet,.academy-options-sheet){right:calc(var(--academy-edge) + 112px);width:min(700px,calc(100% - var(--academy-edge) * 2 - 112px))}
 .world-shell .academy-immersive .campus-schedule{top:64px;bottom:auto;min-height:44px;height:auto;width:116px}
 .world-shell .academy-immersive .campus-mobile-actions{bottom:12px}
 .world-shell .academy-immersive .academy-system-dock .academy-graduation-button{flex-direction:column;padding:5px 3px;font-size:9px;letter-spacing:0}
 .world-shell .academy-immersive .academy-graduation-button :is(span,small){min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
}
