/* Work-ID 20260925-shutdown-login-4c8e | isolated real PNG/UV login chrome.
   Geometry and text remain HTML. Each nine-slice image paints an OPAQUE center;
   fallback paint remains beneath it, including during slow asset loading.
   Do not modify auth IDs, world art, scripts or shared stylesheets here. */
/* Login lifecycle: app.js toggles .hidden on successful joined/logout. The #id
   + class display:grid!important rule below must never outrank that state. */
#login.login-screen.hidden{display:none!important}
#login.login-screen{
 --shutdown-gold:#efc989;--shutdown-cream:#f0ede7;--shutdown-muted:#d2c2b4;
 --shutdown-line:#77503e;--shutdown-panel-height:638px;
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(430px,532px);
 gap:clamp(16px,2.2vw,36px);width:100%;height:100dvh;min-height:0;
 padding:clamp(12px,2vh,26px) clamp(14px,2.4vw,48px);
 overflow:auto;overscroll-behavior:contain;background-color:#121927!important;
 background-image:url("../theme/pal/main/backdrop.png?v=pal1")!important;background-size:48px!important;
 align-items:stretch;
}
#login .login-story{
 position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-start;
 min-width:0;min-height:0;margin:0;padding:clamp(20px,2.6vw,44px);
 border:1px solid #5d373a!important;border-image:none!important;overflow:hidden;
 background-color:#151c2c!important;
 background-image:url("scene.png?v=1")!important;
 background-position:center center!important;background-size:cover!important;background-repeat:no-repeat!important;
 box-shadow:inset 0 0 0 3px #131928,0 0 0 1px #192236!important;
}
#login .login-story::before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:linear-gradient(90deg,rgba(18,25,39,.91) 0%,rgba(19,25,40,.78) 48%,rgba(18,25,39,.34) 100%);
}
#login .login-story::after{
 content:"";position:absolute;right:5%;top:16%;width:min(28vw,290px);aspect-ratio:1;z-index:-1;
 background:url("../../branding/pokeshadowgarden-256.png?v=ch-brand-1") center/contain no-repeat;opacity:.18;pointer-events:none;
}
#login .shutdown-brand{display:block;flex:0 0 auto;width:min(100%,550px);font-size:inherit;letter-spacing:normal}
#login .shutdown-brand img{display:block;max-width:100%;width:550px;height:auto;min-height:104px;object-fit:contain;object-position:left}
#login .hero-copy{position:relative;z-index:1;margin:auto 0 24px;padding:12px 0 0;max-width:690px}
#login .hero-copy .eyebrow{font-size:12px!important;line-height:1.5;letter-spacing:.2em;color:var(--shutdown-gold)!important}
#login .hero-copy h1{
 margin:14px 0 16px;font:800 clamp(42px,4.1vw,77px)/.98 Arial,sans-serif!important;
 letter-spacing:-.055em;color:var(--shutdown-cream)!important;text-shadow:0 3px 0 #192236,0 7px 16px #0d111cbb!important;
}
#login .hero-copy h1 em{font:inherit!important;color:#d0796a!important}
#login .hero-copy p{max-width:535px;font-size:clamp(15px,1vw,18px)!important;line-height:1.55;color:#e7e4df!important;text-shadow:0 1px 3px #0d111c!important}
#login .region-preview{position:relative;z-index:1;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;flex:0 0 auto}
#login .region-preview article{
 position:relative;height:clamp(142px,17.7vh,174px);min-width:0;overflow:hidden;
 border:1px solid transparent!important;border-image:url("frame-active.png?v=cabare-uv-1") 24 fill / 12px / 0 stretch!important;
 background-color:#182032!important;box-shadow:0 5px 17px #0d111c99!important;border-radius:0!important;
}
#login .region-preview article:nth-child(2){border-image-source:url("frame.png?v=cabare-uv-1")!important}
#login .region-preview article img{
 display:block;position:absolute;inset:8px 8px 7px;width:calc(100% - 16px);height:calc(100% - 15px);
 object-fit:cover;object-position:center;image-rendering:pixelated;opacity:1;
}
#login .region-preview article>div{
 position:absolute;left:8px;right:8px;bottom:7px;z-index:1;inset:auto 8px 7px!important;
 display:flex;flex-direction:column;justify-content:flex-end;min-height:63px;
 padding:13px 14px 12px!important;background-color:#151c2ce9!important;background-image:none!important;
 border:1px solid transparent;border-image:url("slot.png?v=cabare-uv-1") 24 fill / 8px / 0 stretch;
}
#login .region-preview span{color:var(--shutdown-gold)!important;font-size:11px!important;letter-spacing:.18em;font-weight:700}
#login .region-preview strong{color:#fff3de!important;font-size:18px!important;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#login .login-foot{z-index:1;flex:0 0 auto;margin-top:14px;gap:12px;flex-wrap:wrap;min-height:34px;color:#e1cdb9!important;font-size:12px!important}
#login .login-foot .pill{
 border:1px solid transparent!important;border-image:url("slot.png?v=cabare-uv-1") 24 fill / 8px / 0 stretch!important;
 color:var(--shutdown-gold)!important;background-color:#171f32!important;border-radius:0!important;
 font-size:11px!important;letter-spacing:.09em;padding:7px 10px;
}
#login .login-side{
 display:flex;flex-direction:column;justify-content:center;gap:12px;
 min-width:0;width:100%;max-width:532px;min-height:0;height:100%;margin:0;padding:0;
 background:transparent!important;overflow:visible;
}
#login .connection-card,#login .login-panel,#login .build-note{
 min-width:0;border:1px solid transparent!important;border-image:url("frame.png?v=cabare-uv-1") 24 fill / 12px / 0 stretch!important;
 background-color:#182032!important;border-radius:0!important;box-shadow:0 8px 24px #0d111c99!important;
}
#login .connection-card{
 flex:0 0 70px;height:70px;padding:12px 20px;gap:12px;
}
#login .connection-card>div{min-width:0;flex:1}
#login .connection-card strong{display:block;color:#fff0dd!important;font-size:14px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
#login .connection-card small{font-size:12px!important;color:#c4b8ad!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#login .connection-card .status-dot{width:9px;height:9px;box-shadow:0 0 0 3px #172c22,0 0 9px #25d26a}
#login .connection-card .status-dot.offline{box-shadow:0 0 0 3px #232e49,0 0 8px #724347}
#login .connection-card #reconnect{
 flex:0 0 36px;width:36px;height:36px;margin-left:2px;padding:0!important;font-size:25px;
 border-image:url("button.png?v=cabare-uv-1") 24 fill / 9px / 0 stretch!important;
 color:#f9d5a1!important;
}
#login .login-panel{
 position:relative;display:flex;flex-direction:column;flex:0 0 var(--shutdown-panel-height);
 box-sizing:border-box;width:100%;height:var(--shutdown-panel-height);min-height:0;max-height:none;
 margin:0;padding:26px 32px 19px;overflow:hidden;
 border-image-source:url("frame-active.png?v=cabare-uv-1")!important;
}
#login .login-panel::before{
 content:"";position:absolute;right:23px;top:18px;width:74px;height:74px;
 background:url("../../branding/pokeshadowgarden-256.png?v=ch-brand-1") center/contain no-repeat;opacity:.2;pointer-events:none;
}
#login .login-panel>.eyebrow{
 flex:0 0 auto;display:block;min-height:25px;padding:0 0 10px;
 background:url("divider.png?v=cabare-uv-1") left bottom / 160px 12px no-repeat;
 color:var(--shutdown-gold)!important;font-size:11px!important;letter-spacing:.22em;line-height:1.1;
}
#login .login-panel h2{position:relative;flex:0 0 auto;margin:10px 0 7px;color:#fff3e8!important;font-size:clamp(26px,1.9vw,31px)!important;line-height:1.18;font-weight:700!important;letter-spacing:-.03em}
#login .login-panel>.muted{flex:0 0 auto;margin:0 0 10px;color:#cfc0b5!important;font-size:14px!important;line-height:1.4;min-height:20px}
#login .login-panel .sound-entry{
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 flex:0 0 32px;width:100%;min-height:32px;margin:0;padding:3px 6px!important;
 font-size:13px!important;color:var(--shutdown-gold)!important;text-align:left;
 border:0!important;border-image:none!important;border-bottom:1px solid #283555!important;
 background:transparent!important;
}
#login .login-panel .sound-state{font-size:12px!important;color:#c7b5a5!important;text-align:right}
#login .segmented{
 display:grid;grid-template-columns:1fr 1fr;align-items:stretch;flex:0 0 41px;
 gap:6px;margin:10px 0 9px;padding:0;border:0!important;background:transparent!important;
}
#login .segmented>button{
 min-width:0;min-height:40px;padding:7px 9px!important;
 border:1px solid transparent!important;border-image:url("button.png?v=cabare-uv-1") 24 fill / 9px / 0 stretch!important;
 background-color:#182032!important;color:#d6c4b6!important;border-radius:0!important;
 font-size:14px!important;font-weight:700!important;
}
#login .segmented>button.selected,#login .segmented>button[aria-selected="true"]{
 border-image-source:url("button-active.png?v=cabare-uv-1")!important;color:#fff8ea!important;background-color:#29344d!important;
}
#login #auth-form{display:flex;flex:1 1 auto;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
#login #auth-form>label:not(.remember-me),#login #registration-options label{
 display:block;margin:8px 0 5px;font-size:13px!important;line-height:1.2;
 font-weight:700!important;color:#f3d7ae!important;
}
#login #auth-form>input:not([type="checkbox"]),#login #registration-options select{
 flex:0 0 42px;box-sizing:border-box;width:100%;height:42px;min-height:42px;
 padding:8px 13px!important;border:1px solid transparent!important;
 border-image:url("slot.png?v=cabare-uv-1") 24 fill / 10px / 0 stretch!important;
 background-color:#182033!important;color:#f5f2eb!important;border-radius:0!important;font-size:15px!important;
}
#login #auth-form input::placeholder{color:#b2a7a5!important}
#login #auth-form>input:focus,#login #registration-options select:focus{
 border-image-source:url("frame-active.png?v=cabare-uv-1")!important;background-color:#1b253a!important;
}
#login .remember-me{display:flex;align-items:center;gap:10px;flex:0 0 29px;min-height:29px;margin:7px 0 0;color:#dcd9d3!important;font-size:13px!important;font-weight:400!important;line-height:1.2}
#login .remember-me input{flex:0 0 16px;width:16px;height:16px;margin:0;accent-color:#c0534b!important}
#login #registration-options{
 flex:0 1 188px;min-height:0;max-height:188px;overflow-y:auto;overflow-x:hidden;
 margin-top:3px;padding:0 4px 7px 0;overscroll-behavior:contain;
}
#login #registration-options .form-row{gap:9px;min-width:0}
#login #registration-options select{min-height:38px;height:38px;font-size:13px!important;padding:5px 10px!important}
#login #registration-options label{font-size:12px!important;margin:7px 0 4px}
#login #registration-options .starter-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
#login #registration-options .starter-choice{
 min-width:0;min-height:62px;padding:3px 0!important;gap:1px;
 background-color:#182033!important;border-image:url("slot.png?v=cabare-uv-1") 24 fill / 8px / 0 stretch!important;
 color:#f4dfcc!important;font-size:11px!important;
}
#login #registration-options .starter-choice.selected{border-image-source:url("frame-active.png?v=cabare-uv-1")!important;color:#fff0c6!important}
#login #registration-options .starter-choice img{width:39px;height:39px;object-fit:contain;image-rendering:pixelated}
#login #registration-options .starter-choice span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#login #registration-summary{color:#e8c990!important;font-size:12px!important;margin:5px 0 0}
#login #auth-form .form-error{flex:0 0 auto;min-height:24px;margin:auto 0 4px;color:#ff9b9f!important;font-size:12px!important;line-height:1.25;overflow-y:auto}
#login #auth-submit{
 flex:0 0 50px;box-sizing:border-box;width:100%;height:50px;min-height:50px;
 border:1px solid transparent!important;border-image:url("button-active.png?v=cabare-uv-1") 24 fill / 12px / 0 stretch!important;
 background-color:#ae373a!important;border-radius:0!important;color:#fff7ea!important;
 font-size:16px!important;font-weight:700!important;letter-spacing:.065em;
}
#login #auth-submit:hover:not(:disabled),#login #reconnect:hover:not(:disabled){
 border-image-source:url("frame-active.png?v=cabare-uv-1")!important;background-color:#b94542!important;
}
#login #auth-submit:disabled{opacity:.5}
#login .login-note{flex:0 0 auto;margin:8px 0 0;color:#cdbeb1!important;font-size:12px!important;line-height:1.35;text-align:center}
#login .build-note{
 flex:0 0 98px;min-height:98px;height:98px;overflow:hidden;padding:15px 21px 12px;gap:5px;
}
#login .build-note strong{font-size:13px!important;letter-spacing:.075em;color:var(--shutdown-gold)!important}
#login .build-note span{font-size:12px!important;line-height:1.3;color:#d7c6b6!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#login :is(button,input,select):focus-visible{outline:2px solid #ffd89b!important;outline-offset:2px!important}
#login :is(.login-panel,.connection-card,.build-note,.region-preview article){background-color:#182032!important}
#boot .shutdown-boot-logo{width:min(550px,85vw);height:auto;display:block}
#boot .visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
#game .hud-brand{flex:0 0 auto}
#game .hud-brand b{color:#d27f70!important}
@media (max-width:1150px){
 #login.login-screen{grid-template-columns:minmax(0,1fr) minmax(390px,490px);gap:15px;padding:12px}
 #login .login-story{padding:20px}
 #login .hero-copy h1{font-size:clamp(39px,4.2vw,60px)!important}
 #login .login-panel{padding:23px 24px 17px}
 #login .login-side{max-width:490px}
}
@media (max-width:850px){
 #login.login-screen{display:flex!important;flex-direction:column;align-items:center;gap:12px;padding:10px;overflow-y:auto}
 #login .login-story{display:flex!important;flex:0 0 auto;width:100%;max-width:532px;height:230px;min-height:230px;padding:12px 22px}
 #login .shutdown-brand{width:270px}
 #login .shutdown-brand img{width:270px;min-height:0}
 #login .hero-copy{margin:auto 0 0;padding:0}
 #login .hero-copy .eyebrow{font-size:10px!important}
 #login .hero-copy h1{font-size:34px!important;margin:4px 0}
 #login .hero-copy p,#login .region-preview,#login .login-foot{display:none!important}
 #login .login-side{display:flex!important;max-width:532px;height:auto;min-height:0;overflow:visible;padding:0!important;margin:0!important}
 #login .login-panel{height:var(--shutdown-panel-height);flex-basis:var(--shutdown-panel-height)}
 #login .build-note{flex-basis:auto;height:auto;min-height:95px}
}
@media (max-width:480px){
 #login .login-story{height:204px;min-height:204px}
 #login .hero-copy h1{font-size:28px!important}
 #login .login-panel{padding:20px 17px 15px}
 #login .login-panel h2{font-size:24px!important}
 #login .connection-card{padding:10px 14px}
 #login #registration-options .starter-choice img{width:34px;height:34px}
 #login .build-note{padding:14px 16px}
}
@media (prefers-reduced-motion:reduce){#login :is(button,.region-preview article){transition:none!important}}
