/* Portal only: no changes to the game HUD or admin forms. */
body.portal:has(.portal-shell){background:radial-gradient(ellipse at 10% 15%,#16515f44,transparent 52%),radial-gradient(ellipse at 90% 85%,#1d3d6240,transparent 50%),#080f1b;color:#edf4fa}
.portal-shell{max-width:1240px;grid-template-columns:1.15fr 1fr;gap:64px;padding:40px 36px}.portal-hero{position:relative}.portal-hero .eyebrow{letter-spacing:3px;font-size:11px;color:#8edcca;display:flex;align-items:center;gap:12px}.portal-hero .eyebrow:before{content:"";width:25px;height:2px;background:#69dfc1}.portal-hero h1{font-size:clamp(48px,5.6vw,78px);font-weight:900;letter-spacing:-4px;margin:25px 0 18px;white-space:nowrap;text-shadow:0 6px 30px #0005}.portal-hero h1 span{display:inline;color:#78e0c6}.portal-hero p{font-size:18px;line-height:1.6;max-width:430px;color:#a5b5c6}.portal-scene{width:100%;height:auto;display:block;margin:24px 0;border:1px solid #284652;border-radius:18px;box-shadow:0 25px 70px #0005}.portal-hero .feature-row{gap:10px;margin:20px 0}.portal-hero .feature-row span{border-color:#284552;background:#13232f99;color:#bdccd8;padding:7px 12px}.portal-shell>.portal-card{background:linear-gradient(145deg,#172938eb,#101c2ae8);border:1px solid #36505f;border-radius:24px;padding:30px;box-shadow:0 28px 90px #0006,inset 0 1px #91c1d518;position:relative}.portal-shell>.portal-card:before{content:"";height:3px;position:absolute;top:0;left:30px;right:30px;background:linear-gradient(90deg,transparent,#7ce7cd,transparent);border-radius:100%}.portal-shell h2{font-size:27px;letter-spacing:-.7px}.portal-shell #portalStatus{color:#b3c6d5;font-size:13px;line-height:1.5;margin:0 0 20px}.portal-shell .portal-tabs{background:#081521;border:1px solid #243d4f;border-radius:12px;padding:4px;gap:4px}.portal-shell .portal-tabs button{border:0;background:transparent;border-radius:8px;color:#a4b7c9;min-height:44px}.portal-shell .portal-tabs button.active{background:#1c3943;color:#a5f2de;box-shadow:inset 0 0 0 1px #538b80}.portal-shell input:not([type=checkbox]){background:#091725;border-color:#345267;min-height:48px;border-radius:11px}.portal-shell label{color:#b6c6d4;font-size:13px}.portal-shell .primary{background:linear-gradient(110deg,#6fddbc,#89e6d7);border:1px solid #9cf2de;box-shadow:0 6px 24px #41b69418;border-radius:11px}.portal-shell .primary:hover{filter:brightness(1.08)}.portal-shell .secondary{background:#152a37;border-color:#365c69;color:#c3e5df}.portal-shell #forgotPassword{background:transparent;border-color:#2d485d;color:#a9bdcb}.portal-shell .portal-footer{border-top:1px solid #2a4051;padding-top:18px;color:#8197ab}.portal-shell #accountArea>#rankingOpen{margin:8px 6px 8px 0}.portal-shell #authForm{margin-top:20px}.portal-shell button:focus-visible,.portal-shell a:focus-visible{outline:2px solid #8cecd6;outline-offset:3px}
@media(max-width:740px),(pointer:coarse) and (max-width:1100px){body.portal .portal-shell{gap:16px;padding-top:20px}body.portal .portal-hero{padding:0 5px}body.portal .portal-hero h1{font-size:29px;letter-spacing:-1.2px;margin:0}body.portal .portal-hero .eyebrow,body.portal .portal-scene{display:none}body.portal .portal-shell>.portal-card{padding:20px 16px;border-radius:20px}body.portal .portal-shell>.portal-card:before{left:20px;right:20px}body.portal .portal-shell h2{font-size:23px;margin:18px 0 14px}body.portal .portal-shell #portalStatus{font-size:12px;margin-bottom:14px}body.portal .portal-shell #authForm{margin-top:14px}body.portal .portal-shell input:not([type=checkbox]){min-height:46px}body.portal .portal-shell .portal-footer{padding-top:14px;margin-top:20px}.portal-shell .portal-tabs button{padding:8px 5px}body.portal #installApp{border-radius:10px}}
@media(prefers-reduced-motion:reduce){.portal-shell *{scroll-behavior:auto}}
