/* Home only. Splash, gameplay and all other screens retain revision 31 styles. */
body:has(#homeScreen:not([hidden])){background:#091b32}body:has(#homeScreen:not([hidden]))>header{display:none}body:has(#homeScreen:not([hidden]))>main{max-width:1180px;padding:0;margin:0 auto}
#homeScreen.cinematic-home{display:block;position:relative;padding:0;border:0;border-radius:0;background:#091b32;overflow:hidden;min-height:0;isolation:isolate}
#homeScreen .home-hero{position:relative;aspect-ratio:1448/1088;background:#10284a;overflow:hidden}
#homeScreen .home-cinematic-art{display:block;width:100%;height:100%;object-fit:contain}
#homeScreen .home-publisher{position:absolute;left:5%;top:4%;margin:0;padding:7px 12px;border:1px solid #8ab8cf88;border-radius:25px;background:linear-gradient(135deg,#183a59e8,#09213ae8);box-shadow:inset 0 1px 8px #a5e9ff22;font-size:clamp(10px,2.7vw,16px);color:#eef8ff;line-height:1.3;white-space:nowrap}
#homeScreen .home-publisher strong{color:#d6fa50}#homeScreen .home-publisher>span{margin-right:5px}
#homeScreen .home-beta{position:absolute;right:4%;top:5%;font-size:clamp(7px,1.8vw,10px);letter-spacing:.06em;font-weight:750;background:#08213bd9;border:1px solid #97c4d866;border-radius:14px;padding:5px 7px;margin:0;color:#d6e7f6}
#homeScreen .home-accessible-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}
#homeScreen .home-hero-copy{position:absolute;left:8%;top:60%;width:48%;color:#fff;text-shadow:0 2px 6px #061529}
#homeScreen .home-tagline{font-size:clamp(14px,4.1vw,27px);font-weight:850;font-style:italic;line-height:1.15;white-space:nowrap;margin:0 0 10px}
#homeScreen .home-intro{font-size:clamp(10px,2.6vw,15px);line-height:1.45;color:#edf6ff;margin:0 0 10px}
#homeScreen #loadingStatus{display:inline-block;max-width:100%;border:1px solid #c7ef4d66;border-radius:18px;background:#112c3ddf;color:#dbff55;padding:5px 9px;font-size:clamp(9px,2.4vw,12px);font-weight:800;line-height:1.3}
#homeScreen #retryAssets{font-size:10px;min-height:44px;margin-top:4px;padding:6px 9px}
#homeScreen .home-controls{position:relative;z-index:1;padding:0 5% 14px;margin-top:-6px;background:linear-gradient(0deg,#091b32 65%,#091b3200)}
#homeScreen .home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;gap:9px;margin:0}
#homeScreen .home-actions button{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:0;min-height:51px;padding:10px 12px;font-size:clamp(9px,2.6vw,14px);border-radius:12px;line-height:1.2;letter-spacing:.015em;border:1px solid #72b5d3;background:linear-gradient(115deg,#173a58,#102842 62%,#1e4264);box-shadow:inset 0 1px 5px #a1e7ff44,0 3px 8px #0004;color:#f1f8ff;touch-action:manipulation}
#homeScreen .home-actions button:disabled{opacity:.5}
#homeScreen .home-actions #homePlay{grid-column:1/-1;min-height:65px;font-size:clamp(24px,6vw,37px);font-style:italic;font-weight:950;color:#0b2535;background:linear-gradient(115deg,#d8ff57,#b8f731 62%,#d5ff64);border:2px solid #e7ff9a;box-shadow:inset 0 0 0 2px #92c333,0 0 16px #caff4b8c,0 5px 0 #426125;margin:0 0 3px;border-radius:16px;padding:10px 20px}
#homeScreen .home-icon{width:24px;height:24px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#homeScreen #homePlay .home-icon{fill:currentColor;stroke:none;width:31px;height:31px}
#homeScreen .home-chevron{margin-left:auto;font-size:24px;font-style:normal;line-height:1;color:#b9e4f5}#homeScreen #homePlay .home-chevron{color:#0b2535;font-size:32px}
#homeScreen .quiet-exit{display:flex;align-items:center;gap:10px;background:transparent;border:0;color:#bdcbdc;padding:8px 4px;margin:6px 0;min-height:44px;font-size:12px;box-shadow:none}
#homeScreen .home-progress-panel{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #6facc9;border-radius:15px;box-shadow:inset 0 0 10px #90cde322;background:linear-gradient(120deg,#112f4b,#0b2038);margin-top:4px}
#homeScreen .home-progress-panel>img{display:block;width:24%;height:54px;object-fit:cover;border-radius:9px;flex-shrink:0}
#homeScreen .home-progress-panel>div{flex:1;min-width:0}#homeScreen .home-progress{font-size:11px;text-align:left;line-height:1.4;margin:0 0 7px;color:#e0ecf7;max-width:none}
#homeScreen progress{display:block;width:100%;height:11px;border:1px solid #6298b7;border-radius:10px;overflow:hidden;background:#08192c;accent-color:#c4fa3d}
#homeScreen progress::-webkit-progress-bar{background:#08192c}#homeScreen progress::-webkit-progress-value{background:linear-gradient(90deg,#d9ff5a,#b2f32d);border-radius:10px}#homeScreen progress::-moz-progress-bar{background:#c4fa3d;border-radius:10px}
body:has(#homeScreen:not([hidden]))>.site-footer{display:block;max-width:1060px;border-top:1px solid #557e9a55;margin:0 auto;padding:16px 16px calc(18px + env(safe-area-inset-bottom));font-size:12px;background:#091b32;letter-spacing:0}
body:has(#homeScreen:not([hidden]))>.site-footer .footer-credit{font-size:11.5px;color:#bdcbdd}body:has(#homeScreen:not([hidden]))>.site-footer .footer-notices{gap:0 12px;margin-top:8px}body:has(#homeScreen:not([hidden]))>.site-footer .footer-notices>span+span:before{content:'|';margin-right:12px;color:#6c87a6}
body:has(#homeScreen:not([hidden]))>.site-footer .footer-links{margin-top:8px;gap:20px}
#homeScreen[data-art-error="true"] .home-accessible-title{width:auto;height:auto;clip-path:none;margin:0;left:8%;top:25%;font-size:42px;color:#e1ff65}#homeScreen[data-art-error="true"] .home-cinematic-art{visibility:hidden}
@media(min-width:760px){#homeScreen.cinematic-home{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,1fr);align-items:center;min-height:610px;border-radius:0 0 24px 24px}#homeScreen .home-hero{align-self:start;margin-top:40px}#homeScreen .home-controls{padding:30px 24px 30px 6px;margin-top:0;background:none}#homeScreen .home-actions{gap:12px}#homeScreen .home-actions button{min-height:65px;font-size:12px}#homeScreen .home-actions #homePlay{min-height:88px;font-size:36px}#homeScreen .home-publisher{font-size:13px}#homeScreen .home-beta{font-size:8px}#homeScreen .home-tagline{font-size:23px}#homeScreen .home-intro{font-size:13px}#homeScreen .home-progress{font-size:12px}}
@media(max-width:359px){#homeScreen .home-actions button{gap:6px;padding:9px;font-size:9px}#homeScreen .home-icon{width:21px;height:21px}#homeScreen .home-tagline{font-size:13px}#homeScreen .home-intro{font-size:9px}#homeScreen .home-publisher{font-size:9px}#homeScreen .home-beta{font-size:6px}#homeScreen #loadingStatus{font-size:8px;padding:4px 7px}}
/* Revision 33: one static warehouse atmosphere behind hero, controls and footer.
   The background is already softened in the asset; no live backdrop blur. */
body:has(#homeScreen:not([hidden])){background:linear-gradient(180deg,#07172b38 0%,#081b3270 55%,#08172ca8 100%),url('assets/home-v32/warehouse-continuation.webp') center top/cover no-repeat,#091b32}
#homeScreen.cinematic-home,#homeScreen .home-hero{background:transparent}
#homeScreen .home-controls{background:transparent}
#homeScreen .home-cinematic-art{-webkit-mask-image:linear-gradient(180deg,#000 90%,transparent 100%);mask-image:linear-gradient(180deg,#000 90%,transparent 100%)}
#homeScreen .home-actions .secondary{background:linear-gradient(130deg,#94d8ff21,#194c72a6 37%,#0b2847a6);border-color:#98d8f0a6;box-shadow:inset 0 1px 0 #e0f9ff77,inset 0 -1px 0 #80c4e52b,0 6px 18px #03132945;color:#f4fbff}
#homeScreen .home-actions .secondary:hover:not(:disabled){background:linear-gradient(130deg,#b6e9ff32,#22638b99 37%,#12395b99);border-color:#bcf0ff}
#homeScreen .home-actions #homePlay{background:linear-gradient(120deg,#eeffa6 0%,#d6ff56 12%,#b5f42f 56%,#d6ff66 100%);box-shadow:inset 0 2px 0 #ffffffa6,inset 0 -3px 0 #79af3988,0 0 18px #caff4b8c,0 5px 0 #426125}
#homeScreen .home-progress-panel{background:linear-gradient(130deg,#9cd8fa18,#14345094 40%,#081d327a);border-color:#92cde3a6;box-shadow:inset 0 1px 0 #e0f9ff66,0 5px 20px #03132945}
body:has(#homeScreen:not([hidden]))>.site-footer{background:transparent;text-shadow:0 1px 4px #031124}
@media(min-width:760px){#homeScreen .home-cinematic-art{-webkit-mask-image:linear-gradient(90deg,transparent,#000 3%,#000 88%,transparent),linear-gradient(180deg,transparent,#000 3%,#000 90%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 3%,#000 88%,transparent),linear-gradient(180deg,transparent,#000 3%,#000 90%,transparent);mask-composite:intersect}}
