/* The gate is present at first paint; only a server-loaded session reveals the game. */
html[data-wallet="locked"] body>.phone{visibility:hidden;pointer-events:none}
html[data-wallet="locked"] body>:not(#walletgate):not(script){visibility:hidden!important}
html[data-wallet="preview"] #walletgate,html[data-wallet="preview"] .wallet-account{display:none!important}
html:not([data-wallet="preview"]) .legacy-save-tools{display:none}
#walletgate[hidden]{display:none}
#walletgate{position:fixed;inset:0;z-index:100000;overflow-y:auto;box-sizing:border-box;padding:26px clamp(24px,4vw,76px);display:flex;flex-direction:column;gap:24px;background:linear-gradient(90deg,#091522fa 0%,#101e30ef 38%,#102038a6 78%,#0b1725d0),url('shell-city.webp') center/cover no-repeat;color:#e8e0d2;font:400 16px/1.55 var(--font-ui);outline:none}
#walletgate *{box-sizing:border-box}
.wallet-top,.wallet-main,.wallet-footer{width:100%;max-width:1320px;margin:0 auto}
.wallet-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;color:#c3b38f;font-size:15px;letter-spacing:.1em;text-transform:uppercase}
.wallet-languages{display:flex;gap:4px;border:1px solid #8296ac44;background:#0d1a2b94;border-radius:5px;padding:3px}
#walletgate button{cursor:pointer;font-family:var(--font-ui)}
.wallet-languages button{border:0;background:none;color:#b4c4d6;min-width:44px;min-height:38px;border-radius:3px}
.wallet-languages button[aria-pressed="true"]{background:#334454;color:#f5e4c3}
.wallet-main{flex:1;display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:clamp(30px,5vw,80px);align-items:center}
.wallet-panel{max-width:510px;padding:24px 0}
.wallet-eyebrow{color:#d6b87d;font-size:15px;text-transform:uppercase;letter-spacing:.16em;margin:0 0 14px}
#wallet-title{font:500 clamp(48px,5.2vw,76px)/1.08 var(--font-display);letter-spacing:-.045em;color:#f8e9cc;max-width:510px;margin:0;text-wrap:balance}
.wallet-lead{font-size:17px;line-height:1.65;color:#c5d1df;max-width:400px;margin:24px 0 28px}
.wallet-entry{border-top:1px solid #bfa57055;padding-top:22px;max-width:420px}
.wallet-entry>p:first-child{font-size:15px;color:#aebfd1;margin:0 0 20px}
#wallet-connect,#wallet-retry{display:block;width:100%;min-height:50px;padding:12px 20px;border:1px solid #d7ba84;border-radius:4px;background:linear-gradient(115deg,#efd6a6,#c09a5f);color:#251e14;font-size:15px;font-weight:600;box-shadow:inset 0 1px #fff0cb,0 4px 14px #050d1755}
#walletgate [hidden]{display:none!important}
#walletgate button:focus-visible,#walletgate a:focus-visible,.wallet-account button:focus-visible{outline:2px solid #f1d399;outline-offset:4px}
#walletgate button:hover{filter:brightness(1.1)}
#wallet-status{font-size:15px;line-height:1.6;color:#d9c9a8;margin:16px 0;min-height:21px}
.wallet-entry>small{display:block;font-size:15px;color:#9aaec4;margin-top:18px;line-height:1.6}
#wallet-providers{display:grid;gap:8px}
#wallet-providers button,#wallet-cancel,.wallet-account button{min-height:44px;border:1px solid #8399b05c;background:#182d43;color:#d7e1ec;border-radius:4px;padding:9px 16px;font:500 15px var(--font-ui)}
#wallet-cancel{margin-top:12px}
#wallet-install{display:grid;gap:12px;font-size:15px;margin-bottom:18px}
#wallet-install>span{color:#aebfd1}
#wallet-install a{color:#ead1a0;min-height:36px;display:flex;align-items:center;text-underline-offset:4px}
.wallet-gallery{position:relative;width:100%;height:min(580px,64vh);min-height:380px;filter:drop-shadow(0 15px 25px #02091580)}
.wallet-portrait{position:absolute;overflow:hidden;border:1px solid #d4c18d9c;background:#132031;box-shadow:0 18px 38px #030a17b0,inset 0 0 0 2px #101c2d;aspect-ratio:5/7}
.wallet-portrait .artclip{position:absolute;inset:7px;overflow:hidden;display:block;border:1px solid #0a101c}
.wallet-portrait::after{content:'';position:absolute;inset:8px;background:linear-gradient(0deg,#0a1524db,transparent 33%);pointer-events:none}
.wallet-front{width:52%;left:24%;top:10%;z-index:2}
.wallet-left,.wallet-right{width:37%;top:20%;filter:brightness(.8)}
.wallet-left{left:0;transform:rotate(-8deg)}
.wallet-right{right:0;transform:rotate(8deg)}
.wallet-gallery>p{position:absolute;bottom:0;left:0;right:0;text-align:center;font:500 15px var(--font-display);color:#dcc79f}
.wallet-footer{display:flex;justify-content:space-between;gap:20px;flex-shrink:0;border-top:1px solid #8b9baa30;padding-top:16px;font-size:15px;color:#8d9fb2}
.wallet-footer>span:last-child{color:#b3a88e;letter-spacing:.15em;font-size:15px}
.wallet-account{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;margin-top:22px;padding:18px 0 0;border-top:1px solid #8296ac44;font-size:15px}
.wallet-account>strong{font-variant-numeric:tabular-nums;color:#e7cea1;font-weight:500}
.wallet-account>p{grid-column:1/-1;color:#9db0c4;font-size:15px;margin:0}
.wallet-account>button{grid-column:1/-1}
@media(max-width:799px){
 #walletgate{padding:18px 22px;gap:16px}
 .wallet-top{font-size:15px;letter-spacing:.06em}.wallet-top>span{max-width:180px}
 .wallet-main{display:flex;justify-content:center}.wallet-panel{max-width:460px;width:100%;padding:16px 0}
 #wallet-title{font-size:clamp(43px,9vw,60px)}.wallet-lead{font-size:15px;margin:20px 0 24px}
 .wallet-gallery{display:none}.wallet-footer>span:last-child{display:none}
 .wallet-entry{max-width:none}.wallet-entry>p:first-child{font-size:15px}.wallet-footer{font-size:15px}
}
@media(max-height:600px) and (min-width:800px){#walletgate{padding-top:14px;padding-bottom:14px;gap:12px}.wallet-panel{padding:6px 0}#wallet-title{font-size:46px}.wallet-lead{margin:12px 0;font-size:15px}.wallet-entry{padding-top:14px}.wallet-gallery{min-height:330px}.wallet-gallery>p{bottom:-20px}}
@media(prefers-reduced-motion:reduce){#walletgate *{animation:none!important;transition:none!important}}
