@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{--bg:#10100f;--panel:#171816;--panel2:#1d1e1a;--line:#34352e;--ink:#efeee7;--muted:#999a8e;--lime:#d3f36b;--orange:#ff805c;--mono:'DM Mono',monospace;--sans:'DM Sans',sans-serif;--display:'Space Grotesk',sans-serif}*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:15px;line-height:1.55;min-height:100vh;overflow-x:hidden}a{color:inherit;text-decoration:none}button,input{font:inherit}.noise{pointer-events:none;position:fixed;inset:0;z-index:10;opacity:.035;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E")}.topbar{height:86px;border-bottom:1px solid #ffffff16;padding:0 clamp(22px,5vw,82px);display:flex;align-items:center;justify-content:space-between;position:relative;z-index:2;background:#10100fee}.wordmark{display:flex;align-items:center;gap:12px}.sigil{width:39px;height:39px;border:1px solid #d3f36b75;display:grid;place-items:center;font:700 22px var(--display);color:var(--lime);position:relative}.sigil span{font-size:11px;position:absolute;right:5px;bottom:1px}.wordmark-copy{display:grid;gap:1px}.wordmark-copy b{font:700 13px var(--display);letter-spacing:.16em}.wordmark-copy small{font:10px var(--mono);letter-spacing:.14em;color:var(--muted)}.topbar-right{display:flex;align-items:center;gap:24px}.server-status,.nav-user{font:10px var(--mono);letter-spacing:.12em;color:var(--muted)}.server-status{display:flex;align-items:center;gap:8px}.server-status i,.status-pill i{width:6px;height:6px;background:var(--lime);border-radius:50%;box-shadow:0 0 12px #d3f36b70}.nav-user{color:var(--ink);letter-spacing:.04em}.quiet-button{border:1px solid #ffffff2a;background:transparent;color:var(--ink);padding:10px 14px;font-size:12px;cursor:pointer;display:inline-block}.quiet-button:hover{border-color:var(--lime);color:var(--lime)}.inline-form{display:inline}.site-footer{padding:25px clamp(22px,5vw,82px);display:flex;justify-content:space-between;gap:15px;border-top:1px solid #ffffff15;color:#77796f;font:9px var(--mono);letter-spacing:.1em}.site-footer b{color:var(--lime);font-size:14px;margin-left:4px}.muted{color:#696b61}.flash{position:relative;z-index:3;max-width:720px;margin:20px auto 0;padding:12px 16px;border:1px solid #d3f36b50;background:#d3f36b0d;color:var(--lime);font-size:13px}.flash.error{border-color:#ff805c66;color:#ffad97;background:#ff805c0d}.eyebrow{font:10px var(--mono);letter-spacing:.16em;color:var(--lime);display:flex;align-items:center;gap:10px}.eyebrow-line{display:inline-block;width:24px;height:1px;background:var(--lime)}.eyebrow-dot{font-size:13px}.landing{display:grid;grid-template-columns:1fr .95fr;min-height:640px;border-bottom:1px solid #ffffff16}.landing-copy{padding:clamp(48px,7vw,110px) clamp(25px,6.8vw,110px) 42px;display:flex;flex-direction:column;align-items:flex-start}.landing h1,.auth-art h1,.character-create h1,.dashboard-heading h1,.error-page h1{font:500 clamp(48px,6.2vw,88px)/.98 var(--display);letter-spacing:-.075em;margin:38px 0 22px}.landing h1 em,.auth-art h1 em,.character-create h1 em,.dashboard-heading h1 em,.error-page h1 em{font-style:normal;color:var(--lime)}.landing-lede{max-width:420px;color:#aaa99e;font-size:15px;line-height:1.85;margin:0}.landing-actions{display:flex;align-items:center;gap:28px;margin-top:35px}.button{display:inline-flex;justify-content:space-between;align-items:center;gap:26px;border:0;padding:15px 18px;font-weight:700;font-size:12px;letter-spacing:.01em;cursor:pointer;transition:transform .2s,background .2s}.button span{font-size:17px}.button-primary{background:var(--lime);color:#171912}.button-primary:hover{background:#e2ff8b;transform:translateY(-2px)}.text-link{font-size:12px;color:#d4d4c9;border-bottom:1px solid #66685c;padding:0 0 5px}.text-link span{color:var(--lime);padding-left:8px}.text-link:hover{color:var(--lime);border-color:var(--lime)}.landing-meta{display:flex;align-items:center;gap:16px;margin-top:auto;padding-top:55px}.landing-meta div{display:flex;align-items:center;gap:9px}.landing-meta b{font:16px var(--display);color:var(--lime)}.landing-meta span{font:8px/1.5 var(--mono);letter-spacing:.08em;color:#85867a}.landing-meta>i{width:26px;height:1px;background:#45463c}.landing-visual{position:relative;overflow:hidden;min-height:640px;background:linear-gradient(155deg,#282e25 0%,#1b211b 44%,#111310 100%);border-left:1px solid #ffffff13}.visual-grid{position:absolute;inset:0;background-image:linear-gradient(#ffffff09 1px,transparent 1px),linear-gradient(90deg,#ffffff09 1px,transparent 1px);background-size:45px 45px;mask-image:linear-gradient(to bottom,black,transparent 88%)}.moon{position:absolute;width:230px;height:230px;border:1px solid #d3f36b52;border-radius:50%;top:17%;left:38%;transform:translateX(-10%);background:radial-gradient(circle at 40% 40%,#d3f36b23,#d3f36b04 58%,transparent 70%);box-shadow:0 0 90px #d3f36b0d}.moon:after{content:'';position:absolute;inset:17px;border:1px solid #d3f36b20;border-radius:50%}.mountain{position:absolute;bottom:0;left:-15%;width:130%;height:57%;clip-path:polygon(0 100%,0 74%,14% 53%,24% 70%,39% 27%,49% 60%,62% 16%,76% 65%,88% 40%,100% 74%,100% 100%)}.mountain-back{background:linear-gradient(145deg,#353e30,#1e251d);opacity:.85}.mountain-front{height:42%;background:linear-gradient(160deg,#252b21,#11130f 75%);clip-path:polygon(0 100%,0 65%,18% 30%,30% 69%,48% 20%,64% 66%,80% 34%,100% 70%,100% 100%);border-top:1px solid #d3f36b30}.monolith{position:absolute;left:52%;bottom:18%;width:75px;height:210px;transform:translateX(-50%);background:linear-gradient(90deg,#0d100d,#343b2d 48%,#151914);clip-path:polygon(22% 0,78% 0,100% 100%,0 100%);display:grid;place-items:start center;padding-top:32px;filter:drop-shadow(0 0 24px #d3f36b10)}.monolith span{font-size:29px;color:var(--lime);text-shadow:0 0 22px #d3f36b99}.visual-label{position:absolute;left:26px;right:26px;display:flex;justify-content:space-between;font:9px var(--mono);letter-spacing:.12em;color:#a7aa9a}.label-top{top:24px}.label-bottom{bottom:22px}.vertical-type{position:absolute;right:17px;top:43%;writing-mode:vertical-rl;font:9px var(--mono);letter-spacing:.22em;color:#a7aa9a}.manifesto{padding:34px clamp(25px,6.8vw,110px);display:grid;grid-template-columns:1fr 2fr 1fr;align-items:center;gap:24px;border-bottom:1px solid #ffffff16}.manifesto-label{font:9px var(--mono);letter-spacing:.1em;color:var(--lime)}.manifesto>p{font:500 clamp(19px,2.2vw,29px)/1.35 var(--display);letter-spacing:-.04em;margin:0}.manifesto>p span{color:#85867a}.manifesto-right{justify-self:end;color:#c2c3b8;font-size:11px;line-height:1.8}.manifesto-right small{font:8px var(--mono);color:#77796f;letter-spacing:.08em}.feature-strip{display:grid;grid-template-columns:repeat(3,1fr);padding:0 clamp(25px,6.8vw,110px)}.feature-strip article{padding:28px 28px 36px 0;border-right:1px solid #ffffff16}.feature-strip article+article{padding-left:28px}.feature-strip article:last-child{border:0}.feature-index{font:9px var(--mono);color:#85867a;letter-spacing:.1em}.feature-icon{margin:24px 0 15px;color:var(--lime);font-size:24px}.feature-strip h3{font:500 20px var(--display);margin:0 0 7px;letter-spacing:-.03em}.feature-strip p{color:#929387;font-size:12px;max-width:260px;margin:0;line-height:1.8}.auth-layout{display:grid;grid-template-columns:1fr .8fr;max-width:1160px;min-height:650px;margin:54px auto 70px;border:1px solid #ffffff17}.auth-art{position:relative;overflow:hidden;padding:52px clamp(30px,5vw,70px);background:linear-gradient(145deg,#282e24,#141711 75%);display:flex;flex-direction:column;justify-content:center;min-height:650px}.auth-art:after{content:'';position:absolute;width:360px;height:360px;border:1px solid #d3f36b25;border-radius:50%;right:-100px;top:20%;box-shadow:0 0 0 32px #d3f36b05,0 0 0 65px #d3f36b04}.orbit{position:absolute;border:1px solid #d3f36b24;border-radius:50%;width:380px;height:380px;right:-105px;top:18%}.orbit-two{width:300px;height:300px;right:-65px;top:24%}.art-kicker{font:9px var(--mono);letter-spacing:.16em;color:var(--lime);position:relative;z-index:1}.art-glyph{font-size:50px;color:var(--lime);margin:38px 0 0;position:relative;z-index:1}.auth-art h1{font-size:clamp(45px,5vw,70px);position:relative;z-index:1;margin:18px 0}.auth-art>p{max-width:340px;color:#a4a699;font-size:13px;line-height:1.9;position:relative;z-index:1}.art-foot{display:flex;justify-content:space-between;gap:12px;margin-top:auto;padding-top:50px;font:9px var(--mono);letter-spacing:.12em;color:#85867a;position:relative;z-index:1}.auth-panel{padding:clamp(28px,5vw,68px);display:flex;flex-direction:column;justify-content:center;background:#141512}.auth-panel h2{font:500 clamp(31px,3vw,42px) var(--display);letter-spacing:-.06em;margin:18px 0 4px}.subcopy{font-size:12px;color:#929387;margin:0 0 29px}.stack-form{display:grid;gap:17px}.field{display:grid;gap:8px}.field>span,.class-label{font:9px var(--mono);letter-spacing:.12em;color:#a5a699}.field input{width:100%;background:#10110f;border:1px solid #3a3b32;color:var(--ink);padding:14px 13px;outline:none;border-radius:0;font-size:13px}.field input:focus{border-color:var(--lime);box-shadow:0 0 0 2px #d3f36b13}.field input::placeholder{color:#696b60}.field small{font-size:10px;color:#77796e}.stack-form .button{margin-top:6px;width:100%}.form-switch{font-size:11px;color:#96978c;margin-top:24px}.form-switch a{color:var(--lime);margin-left:4px}.legal-note{font-size:10px;color:#65675e;line-height:1.7;margin-top:34px}.character-create{max-width:900px;margin:70px auto 100px;padding:0 25px}.character-create h1{font-size:clamp(45px,6vw,72px);margin:28px 0 16px}.character-create>.subcopy{font-size:13px}.character-form{margin-top:38px}.class-label{margin:28px 0 14px}.class-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:25px}.class-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:20px 16px 17px;border:1px solid #393a32;background:#171815;cursor:pointer;min-height:190px;transition:border .2s,background .2s}.class-card:has(input:checked){border-color:var(--lime);background:#d3f36b0b}.class-card input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}.class-mark{color:var(--lime);font-size:25px;margin-bottom:18px}.class-card>b{font:500 18px var(--display)}.class-card>small{font:8px var(--mono);letter-spacing:.06em;color:#929387;margin-top:4px}.class-desc{font-size:10px;line-height:1.6;color:#8d8e83;margin-top:13px}.character-form>.button{min-width:220px}.dashboard-heading{max-width:1320px;margin:58px auto 36px;padding:0 34px;display:flex;justify-content:space-between;align-items:flex-end;gap:30px}.dashboard-heading h1{font-size:clamp(42px,5vw,66px);margin:24px 0 9px}.dashboard-heading>div>p{color:#929387;margin:0;font-size:12px}.profile-chip{display:flex;align-items:center;gap:12px;border:1px solid #ffffff1c;padding:10px 13px;min-width:235px;position:relative}.avatar{width:38px;height:38px;display:grid;place-items:center;background:var(--lime);color:#171912;font:600 19px var(--display)}.profile-chip>div:nth-child(2){display:grid;gap:2px}.profile-chip b{font-size:11px}.profile-chip small{font:8px var(--mono);color:#8b8d81;letter-spacing:.05em}.online-dot{position:absolute;right:12px;top:12px;width:5px;height:5px;border-radius:50%;background:var(--lime)}.dashboard-grid{max-width:1320px;margin:0 auto 70px;padding:0 34px;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,.8fr);gap:18px}.main-column,.side-column{display:grid;align-content:start;gap:18px}.character-banner{position:relative;min-height:300px;overflow:hidden;border:1px solid #45483a;background:radial-gradient(ellipse at 66% 32%,#39442d 0%,#20251b 35%,#151712 72%)}.banner-lines{position:absolute;inset:0;background-image:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px);background-size:30px 30px;mask-image:linear-gradient(to right,transparent,black)}.banner-top{position:absolute;left:24px;right:24px;top:20px;display:flex;justify-content:space-between;font:9px var(--mono);letter-spacing:.12em;color:#aaaD9d}.status-pill{display:flex;align-items:center;gap:7px;border:1px solid #d3f36b35;padding:5px 8px;color:var(--lime);font-size:8px}.character-art{position:absolute;right:12%;top:10%;width:220px;height:220px;display:grid;place-items:center}.art-ring{position:absolute;inset:10px;border:1px solid #d3f36b54;border-radius:50%;box-shadow:0 0 70px #d3f36b09}.art-ring:before,.art-ring:after{content:'';position:absolute;inset:19px;border:1px dashed #d3f36b2b;border-radius:50%}.art-ring:after{inset:-16px;border:1px solid #d3f36b15}.art-emblem{font-size:87px;color:var(--lime);text-shadow:0 0 40px #d3f36b44;z-index:1}.banner-bottom{position:absolute;left:26px;right:26px;bottom:23px;display:flex;justify-content:space-between;align-items:flex-end;gap:15px}.class-overline{font:9px var(--mono);letter-spacing:.14em;color:var(--lime)}.banner-bottom h2{font:500 36px/.95 var(--display);letter-spacing:-.06em;margin:9px 0}.banner-bottom p{font-size:11px;color:#999b8e;margin:0}.level-mark{display:grid;justify-items:end}.level-mark small{font:9px var(--mono);color:#999b8e;letter-spacing:.12em}.level-mark b{font:500 46px/.95 var(--display);color:var(--lime);letter-spacing:-.08em}.panel{border:1px solid #ffffff1b;background:var(--panel);padding:22px 23px}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.panel-heading h3,.account-panel h3{font:500 19px var(--display);letter-spacing:-.04em;margin:7px 0 0}.subtle-tag{font:8px var(--mono);letter-spacing:.1em;color:#a6a89a;border:1px solid #ffffff22;padding:6px 7px}.progress-copy{display:flex;justify-content:space-between;align-items:center;margin:25px 0 9px;font:9px var(--mono);letter-spacing:.09em;color:#929387}.progress-copy>b{font-size:11px;color:var(--ink);letter-spacing:0}.progress-copy small{color:#929387;font-weight:400}.progress-track,.vital-track{height:5px;background:#303129;overflow:hidden}.progress-track span{display:block;height:100%;background:var(--lime)}.progress-foot{display:flex;justify-content:space-between;gap:10px;margin-top:10px;font:8px var(--mono);letter-spacing:.06em;color:#77796e}.next-panel{padding-bottom:8px}.coming-row{display:flex;align-items:center;gap:13px;border-top:1px solid #ffffff12;padding:15px 0}.coming-row:first-of-type{margin-top:16px}.coming-icon{width:36px;height:36px;display:grid;place-items:center;border:1px solid #ffffff1b;color:var(--lime);font-size:17px}.coming-row>div{display:grid;gap:3px;flex:1}.coming-row b{font-size:11px;font-weight:600}.coming-row small{font-size:10px;color:#85877b}.coming-state{font:8px var(--mono);color:#8b8d81;letter-spacing:.05em}.vitals-panel .panel-heading{margin-bottom:27px}.pulse{color:var(--lime);font-size:11px;text-shadow:0 0 10px #d3f36b77}.vital{margin-bottom:23px}.vital>div:first-child{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.vital>div:first-child span,.currency-row>div>span:last-child{font:9px var(--mono);letter-spacing:.1em;color:#999b8e}.vital b{font:500 13px var(--display)}.vital b small{font-size:10px;color:#929387;font-weight:400}.vital-track{height:6px}.vital-track span{display:block;height:100%}.health-track span{background:var(--orange)}.energy-track span{background:#b5d66a}.currency-row{display:flex;align-items:center;justify-content:space-between;padding-top:19px;border-top:1px solid #ffffff18}.currency-row>div{display:flex;align-items:center;gap:9px}.coin{color:var(--lime);font-size:17px}.currency-row>b{font:500 19px var(--display);color:var(--lime)}.quote-card{position:relative;overflow:hidden;padding:24px 23px 23px;background:#d3f36b;color:#202218;min-height:190px}.quote-mark{font:64px/.8 Georgia,serif}.quote-card p{font:500 21px/1.3 var(--display);letter-spacing:-.05em;max-width:250px;margin:8px 0 19px;position:relative;z-index:1}.quote-credit{font:8px var(--mono);letter-spacing:.1em;color:#51583d}.quote-symbol{position:absolute;right:-11px;bottom:-50px;font-size:150px;color:#2022180b}.account-panel{padding-bottom:24px}.account-panel>p{font-size:11px;color:#929387;line-height:1.8;margin:11px 0 20px}.account-line{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid #ffffff13}.account-line span{font:8px var(--mono);letter-spacing:.09em;color:#929387}.account-line b{font-size:10px;font-weight:500}.account-panel .text-link{display:inline-block;margin-top:14px;font-size:10px}.error-page{max-width:760px;min-height:65vh;margin:0 auto;padding:100px 25px}.error-page h1{font-size:clamp(45px,6vw,75px)}.error-page>p{max-width:560px;color:#a1a396;font-size:13px;line-height:1.9}.error-page .button{margin-top:20px}@media(max-width:950px){.landing{grid-template-columns:1fr .75fr}.landing-copy{padding-left:35px;padding-right:25px}.landing-visual{min-height:590px}.manifesto{grid-template-columns:1fr 2fr}.manifesto-right{display:none}.auth-layout{margin:28px 20px 50px;grid-template-columns:1fr 1fr}.auth-art{padding:35px 30px}.auth-panel{padding:32px}.dashboard-grid{grid-template-columns:minmax(0,1.3fr) minmax(250px,.8fr);padding:0 22px}.dashboard-heading{padding:0 22px}.character-art{right:5%;transform:scale(.85)}}@media(max-width:680px){.topbar{height:72px;padding:0 18px}.server-status{display:none}.topbar-right{gap:12px}.nav-user{display:none}.wordmark-copy b{font-size:11px}.site-footer{flex-wrap:wrap;font-size:8px;padding:22px 18px}.site-footer span:nth-child(2){display:none}.landing{display:flex;flex-direction:column}.landing-copy{padding:54px 24px 34px;min-height:570px}.landing h1{font-size:clamp(54px,13vw,75px);margin:34px 0 20px}.landing-lede{font-size:13px}.landing-actions{gap:18px;flex-wrap:wrap}.landing-meta{gap:10px;padding-top:48px}.landing-meta>i{width:15px}.landing-meta span{font-size:7px}.landing-visual{min-height:390px;border-left:0;border-top:1px solid #ffffff13}.moon{width:175px;height:175px;top:13%;left:45%}.monolith{height:145px;bottom:18%;width:56px}.mountain{height:60%}.mountain-front{height:43%}.manifesto{grid-template-columns:1fr;gap:13px;padding:25px 24px}.manifesto>p{font-size:23px}.feature-strip{grid-template-columns:1fr;padding:0 24px}.feature-strip article,.feature-strip article+article{padding:22px 0;border-right:0;border-bottom:1px solid #ffffff16}.feature-icon{margin:14px 0 7px}.feature-strip article:last-child{border-bottom:0}.feature-strip p{max-width:360px}.auth-layout{display:flex;flex-direction:column;margin:18px 12px 40px}.auth-art{min-height:310px;padding:28px 25px}.auth-art h1{font-size:45px;margin:15px 0}.art-glyph{font-size:32px;margin-top:20px}.auth-art>p{font-size:11px;max-width:280px}.art-foot{padding-top:24px}.auth-art:after{width:220px;height:220px;right:-80px;top:15%}.orbit{width:240px;height:240px;right:-90px;top:14%}.orbit-two{width:190px;height:190px;right:-65px;top:20%}.auth-panel{padding:30px 24px}.class-grid{grid-template-columns:repeat(2,1fr)}.class-card{min-height:165px}.character-create{margin:44px auto 65px;padding:0 20px}.character-create h1{font-size:49px}.dashboard-heading{display:block;margin:40px auto 25px;padding:0 18px}.dashboard-heading h1{font-size:48px}.profile-chip{margin-top:25px;max-width:100%}.dashboard-grid{display:flex;flex-direction:column;padding:0 14px;margin-bottom:45px;gap:14px}.main-column,.side-column{gap:14px}.character-banner{min-height:270px}.banner-top{left:16px;right:16px;top:15px}.character-art{right:-10px;top:16%;transform:scale(.72)}.banner-bottom{left:17px;right:17px;bottom:18px}.banner-bottom h2{font-size:30px}.banner-bottom p{font-size:10px}.panel{padding:18px}.coming-row{gap:10px}.coming-state{font-size:7px}.quote-card{min-height:165px}.error-page{padding-top:70px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}


/* THE VEIL gameplay milestone */
.game-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 auto 28px;max-width:1180px;padding:12px 0;border-bottom:1px solid var(--line,rgba(255,255,255,.12))}
.game-nav a{display:inline-flex;padding:10px 14px;border:1px solid rgba(255,255,255,.12);border-radius:4px;color:inherit;text-decoration:none;font-size:.78rem;letter-spacing:.04em}
.game-nav a:hover{border-color:#c6f36b;color:#c6f36b}
.game-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 auto 24px;max-width:1180px}
.game-card,.combat-panel,.inventory-panel,.quest-panel{padding:26px;margin-bottom:18px}
.game-card h2{font-size:1.6rem;margin:14px 0}
.game-card p,.combat-empty p{color:var(--muted,#a5a59d);line-height:1.7}
.game-card form{margin-top:20px}
.combat-enemy{display:grid;grid-template-columns:130px 1fr;gap:26px;align-items:center}
.enemy-glyph{height:130px;display:grid;place-items:center;border:1px solid rgba(198,243,107,.25);border-radius:50%;font-size:3.6rem;color:#c6f36b;background:radial-gradient(circle,rgba(198,243,107,.1),transparent 70%)}
.combat-enemy h2{margin:10px 0}
.combat-enemy p{color:var(--muted,#a5a59d)}
.combat-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.combat-empty{text-align:center;padding:30px 10px}
.combat-empty .art-glyph{font-size:3rem;color:#c6f36b}
.inventory-row,.quest-row{display:flex;align-items:center;gap:18px;padding:18px 0;border-bottom:1px solid rgba(255,255,255,.1)}
.inventory-row:last-child,.quest-row:last-child{border-bottom:0}
.item-icon,.quest-icon{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border:1px solid rgba(198,243,107,.28);color:#c6f36b;font-size:1.25rem}
.inventory-row>div,.quest-row>div{flex:1;min-width:0}
.inventory-row small,.quest-row small{display:block;color:var(--muted,#a5a59d);margin-top:6px}
.inventory-row form{margin-left:auto}
.quest-row h3{margin:7px 0}
.quest-row p{color:var(--muted,#a5a59d);line-height:1.6}
.quest-row .progress-track{margin:12px 0 6px}
@media(max-width:760px){.game-cards{grid-template-columns:1fr}.combat-enemy{grid-template-columns:1fr}.enemy-glyph{height:90px;width:90px;font-size:2.5rem}.inventory-row{align-items:flex-start;flex-wrap:wrap}.inventory-row form{margin-left:62px}.quest-row{align-items:flex-start;flex-wrap:wrap}}

/* THE VEIL · visual overhaul, 24 October 2026 */
:root{--bg:#090d0c;--panel:#111815;--panel2:#17211b;--line:#2b3a31;--ink:#f2f3e9;--muted:#a0aea2;--lime:#d7f58a;--orange:#ff9677;--sans:'DM Sans',system-ui,sans-serif;--display:'Space Grotesk',system-ui,sans-serif}
html{background:#090d0c}body{background:radial-gradient(ellipse at 50% -20%,#1b2a20 0,transparent 48%),#090d0c;color:var(--ink)}
body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;background-image:linear-gradient(#ffffff03 1px,transparent 1px),linear-gradient(90deg,#ffffff03 1px,transparent 1px);background-size:54px 54px;mask-image:linear-gradient(to bottom,#000,transparent 75%)}
.topbar{position:sticky;top:0;backdrop-filter:blur(18px);background:rgba(9,13,12,.88);border-bottom:1px solid #d7f58a20;box-shadow:0 8px 35px #0004;min-height:78px}
.wordmark .sigil{border-radius:12px;background:linear-gradient(145deg,#d7f58a20,#d7f58a04);box-shadow:inset 0 0 22px #d7f58a08,0 0 24px #d7f58a08}
main{position:relative;z-index:1;padding-bottom:30px}.site-footer{position:relative;z-index:1;border-color:#d7f58a18;background:#090d0c;color:#7f9084}
.panel,.game-card,.combat-panel,.inventory-panel,.quest-panel{background:linear-gradient(145deg,rgba(21,31,25,.96),rgba(14,20,17,.98));border:1px solid #d7f58a1b;border-radius:16px;box-shadow:0 16px 45px #0002;transition:border-color .22s,transform .22s,box-shadow .22s}
.panel:hover,.game-card:hover{border-color:#d7f58a42;box-shadow:0 20px 55px #0003,0 0 25px #d7f58a05}
.button{border-radius:10px;transition:transform .2s,filter .2s,box-shadow .2s}.button-primary{background:linear-gradient(135deg,#e0ff9e,#b8df69);box-shadow:0 6px 20px #b8df6918}.button-primary:hover{filter:brightness(1.07);box-shadow:0 10px 28px #b8df6927}.button-secondary,.quiet-button{border-radius:9px;background:#ffffff05;border-color:#ffffff20}.quiet-button:hover{background:#d7f58a0b}
.field input,.field textarea,.field select,.admin-lookup select,.admin-lookup input{border-radius:10px!important;background:#0a100d!important;border:1px solid #33463a!important;color:var(--ink)!important;transition:border-color .18s,box-shadow .18s}.field input:focus,.field textarea:focus,.field select:focus{border-color:#d7f58a!important;box-shadow:0 0 0 3px #d7f58a13!important}
.eyebrow{color:#d7f58a;letter-spacing:.17em}.game-page{max-width:1260px;margin:0 auto;padding:35px clamp(16px,3vw,38px) 55px}.game-page>h1,.game-head h1{font-size:clamp(38px,5vw,66px);letter-spacing:-.075em;line-height:1.02}.game-page>h1 em,.game-head h1 em{color:var(--lime);font-style:normal}.subcopy,.game-note,.game-panel>p,.panel>p{color:#a2afa4;line-height:1.8}.game-nav{max-width:1260px;padding:13px clamp(16px,3vw,38px);gap:8px;border-color:#d7f58a1b}.game-nav a{border-radius:9px;background:#ffffff04;border-color:#ffffff12;transition:all .18s}.game-nav a:hover{background:#d7f58a0d;border-color:#d7f58a70;transform:translateY(-1px)}
.character-hero,.game-head{position:relative;overflow:hidden;border:1px solid #d7f58a30;border-radius:22px;background:linear-gradient(110deg,#101914f7 0%,#111a15ed 50%,#101512c9 100%),url('veil-wilds.svg') center 44%/cover;padding:clamp(24px,4vw,46px);box-shadow:0 24px 70px #0004}.character-hero:after,.game-head:after{content:"";position:absolute;right:-65px;top:-120px;width:340px;height:340px;border:1px solid #d7f58a26;border-radius:50%;box-shadow:0 0 0 26px #d7f58a04,0 0 0 60px #d7f58a03;pointer-events:none}.character-stat-grid{gap:12px;margin-top:28px}.character-stat-card{border:1px solid #d7f58a1c!important;border-radius:12px!important;background:linear-gradient(145deg,#1c2a20d9,#0d1410e8)!important;padding:16px!important;backdrop-filter:blur(8px)}.character-stat-card>span{color:#b0c0b2}.character-stat-card>strong{font-size:clamp(19px,2vw,27px);letter-spacing:-.04em}.stat-meter,.progress-track,.vital-track{border-radius:99px;overflow:hidden;background:#28362d}.stat-meter span,.progress-track span,.vital-track span{border-radius:99px;box-shadow:0 0 14px currentColor}
.dashboard-heading{max-width:1220px;margin:45px auto 28px;padding:0 28px}.dashboard-heading h1{letter-spacing:-.075em}.dashboard-heading h1 em{color:var(--lime)}.profile-chip{border-radius:15px;border:1px solid #d7f58a25;background:linear-gradient(130deg,#17241b,#101713);padding:13px 17px}.avatar{border-radius:12px;background:linear-gradient(145deg,#d7f58a,#8da957);color:#11180f;font-weight:800}.dashboard-grid{max-width:1220px;gap:22px}.main-column,.side-column{gap:18px}.character-banner{border-radius:20px;border:1px solid #d7f58a2c;background:linear-gradient(90deg,#101812e8,#10181291),url('veil-wilds.svg') center/cover;box-shadow:0 20px 60px #0004}.art-ring{border-color:#d7f58a55;box-shadow:0 0 85px #d7f58a13}.art-emblem{color:#e0ff9e;text-shadow:0 0 38px #d7f58a66}.progress-panel,.next-panel,.vitals-panel,.account-panel{border-radius:16px}.coming-row{transition:background .2s,padding .2s;border-radius:10px;padding:14px 10px}.coming-row:hover{background:#d7f58a08;padding-left:14px}.coming-icon{border-radius:10px;background:#d7f58a08;border-color:#d7f58a24}.quote-card{border-radius:16px;background:linear-gradient(135deg,#e4ffab,#b5d56a);box-shadow:0 15px 40px #0002}
.explore-world{overflow:hidden;border:1px solid #d7f58a28;border-radius:22px;background:#101713;box-shadow:0 24px 65px #0003}.explore-sky{min-height:430px;background:linear-gradient(90deg,#0b100de8 0%,#0b100d9e 47%,#0b100d1c 100%),url('veil-wilds.svg') center/cover!important;border-bottom:1px solid #d7f58a20}.explore-hero-copy{max-width:620px;padding:clamp(28px,5vw,62px)!important}.explore-hero-copy h2{font-size:clamp(38px,5vw,66px);letter-spacing:-.07em;line-height:1.02}.explore-hero-copy h2 em{color:var(--lime);font-style:normal}.explore-region-grid{padding:20px;gap:14px;background:#0e1511}.explore-region-card{position:relative;overflow:hidden;border:1px solid #d7f58a20!important;border-radius:14px!important;background:linear-gradient(115deg,#111b15f5,#111b15d9),url('veil-wilds.svg') center/cover!important;transition:transform .2s,border-color .2s}.explore-region-card:nth-child(2){background:linear-gradient(115deg,#111714f5,#111714d8),url('veil-heist.svg') center/cover!important}.explore-region-card:nth-child(3){background:linear-gradient(115deg,#111714f4,#111714d8),url('veil-arena.svg') center/cover!important}.explore-region-card:hover{transform:translateY(-3px);border-color:#d7f58a60!important}.explore-region-sigil{border-radius:12px!important;background:#d7f58a0d;border-color:#d7f58a40!important;color:#e0ff9e!important}
.arena-grid,.game-grid{gap:16px}.arena-rival,.inventory-item,.heist-risk-choice{border:1px solid #d7f58a20!important;border-radius:14px!important;background:linear-gradient(140deg,#17221b,#101612)!important;transition:transform .2s,border-color .2s,box-shadow .2s}.arena-rival:hover,.inventory-item:hover,.heist-risk-choice:hover{transform:translateY(-2px);border-color:#d7f58a5c!important;box-shadow:0 14px 35px #0003}.battle-cooldown-panel{border-radius:15px;background:linear-gradient(110deg,#17241b,#111713)!important}.realm-bonus-row{max-width:1220px;width:calc(100% - 32px);gap:16px}.turn-bonus-panel,.battle-turn-bonus-panel{border-radius:15px!important;background:linear-gradient(135deg,#15251a,#101612)!important;border-color:#b8e65b35!important}.turn-bonus-value{letter-spacing:-.04em}.chronicle-entry{border:1px solid #d7f58a15;border-radius:12px;background:#0e1511;padding:14px;margin:12px 0}.chronicle-entry img{border-radius:9px;background:#18231b;padding:8px}.chronicle-tag{border-radius:6px;background:#d7f58a0a;border-color:#d7f58a24!important}
.admin-console>.panel,.admin-console .admin-leaderboard,.admin-console .admin-reward-form,.admin-console .admin-lookup,.admin-console .admin-reset-form{margin-top:18px;border-radius:16px}.admin-console>h1{margin:18px 0 10px}.admin-reward-grid{gap:14px}.admin-reward-grid .field{padding:15px;border:1px solid #d7f58a16;border-radius:12px;background:#0c130f}.admin-reward-grid .field input{background:#080d0a!important}.admin-leaderboard-grid{gap:16px}.admin-leaderboard{overflow:hidden}.realm-rankings-table{border-collapse:separate;border-spacing:0;width:100%}.realm-rankings-table th{background:#1a281e;color:#d7f58a;font:10px var(--mono);letter-spacing:.1em}.realm-rankings-table td,.realm-rankings-table th{padding:12px 14px;border-bottom:1px solid #ffffff0c}.realm-rankings-table tr:hover td{background:#d7f58a07}.admin-stat{border-radius:10px;background:#0c130f;border:1px solid #d7f58a16}
.flash{border-radius:12px;backdrop-filter:blur(12px);max-width:900px}.chronicle-flash{display:flex;gap:12px}.site-footer{margin-top:22px}.battle-turn-top-indicator{border-radius:10px;background:linear-gradient(135deg,#1b2b1d,#111713);box-shadow:0 0 20px #d7f58a08}.battle-turn-top-indicator:hover{border-color:#d7f58a80;transform:translateY(-1px)}
@media(max-width:760px){.topbar{padding:0 14px;min-height:70px}.topbar-right{gap:8px}.game-page{padding:24px 13px 40px}.character-hero,.game-head{padding:23px 18px;border-radius:16px}.character-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.character-stat-card{padding:12px!important}.explore-sky{min-height:420px}.explore-region-grid{padding:12px}.realm-bonus-row{grid-template-columns:1fr;width:calc(100% - 26px)}.admin-reward-grid{grid-template-columns:1fr}.admin-console .panel{padding:17px}.admin-leaderboard-grid{grid-template-columns:1fr}.realm-rankings-table{font-size:11px}.realm-rankings-table td,.realm-rankings-table th{padding:9px 7px}}
@media(prefers-reduced-motion:reduce){.panel,.game-card,.coming-row,.explore-region-card,.arena-rival,.inventory-item,.heist-risk-choice{transition:none!important}}

/* Character stats: use one responsive row when space allows, then wrap naturally. */
.character-stat-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))!important;gap:10px!important;margin-top:24px!important;align-items:stretch}
.character-stat-card{min-width:0;min-height:76px;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;row-gap:3px;align-content:center;align-items:baseline;padding:13px 15px!important}
.character-stat-card>span{grid-column:1;grid-row:1 / span 2;align-self:center;white-space:nowrap;font-size:11px;letter-spacing:.04em}
.character-stat-card>strong{grid-column:2;grid-row:1;min-width:0;line-height:1.15;font-size:clamp(18px,1.5vw,25px)!important;overflow-wrap:anywhere}
.character-stat-card>small{grid-column:2;grid-row:2;min-width:0;line-height:1.4;font-size:10px;color:#b0b8ad}
.character-stat-card .stat-meter{grid-column:2;grid-row:3;margin-top:4px}
@media(max-width:760px){.character-stat-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))!important}.character-stat-card{padding:12px!important}}

/* Keep the character identity hero on Home only; other game pages get a compact stats strip. */
body:not(.page-dashboard) .character-hero > .eyebrow,
body:not(.page-dashboard) .character-hero > h1,
body:not(.page-dashboard) .character-hero > .character-class-line,
body:not(.page-dashboard) .character-hero > .level-meta{display:none!important}
body:not(.page-dashboard) .character-hero{padding:12px 16px!important;border-radius:14px!important;margin-bottom:16px!important}
body:not(.page-dashboard) .character-hero .character-stat-grid{margin-top:0!important;gap:8px!important}
body:not(.page-dashboard) .character-hero .character-stat-card{min-height:60px;padding:9px 12px!important}


/* Mobile repair: keep the header in its own rows instead of letting the nav
   wrap vertically over the page content. */
@media (max-width: 680px) {
  .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 10px;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 12px 0 !important;
    overflow: hidden;
  }
  .topbar > .wordmark { grid-column: 1; grid-row: 1; min-width: 0; }
  .topbar > .topbar-right {
    grid-column: 2; grid-row: 1;
    min-width: 0; gap: 7px !important;
    justify-content: flex-end;
  }
  .topbar > .game-nav {
    grid-column: 1 / -1; grid-row: 2;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    gap: 6px !important;
    width: 100%; max-width: none !important;
    margin: 8px 0 0 !important;
    padding: 7px 0 9px !important;
    border-bottom: 0;
    overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topbar > .game-nav::-webkit-scrollbar { display: none; }
  .topbar > .game-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 10px !important;
    font-size: 12px !important;
    line-height: 1.2;
  }
  .topbar-right .battle-turn-top-indicator { white-space: nowrap; padding: 7px 8px; font-size: 11px; }
  .topbar-right .mail-notification { white-space: nowrap; font-size: 12px; }
  .topbar-right .inline-form { display: none; }
  .character-hero, .game-head { padding: 20px 15px !important; }
  .character-hero > .eyebrow { font-size: 9px; }
  .character-hero > h1 { font-size: clamp(34px, 10vw, 48px) !important; margin: 18px 0 12px !important; }
  .character-class-line { font-size: 13px; }
  .character-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 18px !important;
  }
  .character-stat-card {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: center;
    gap: 3px !important;
    min-width: 0;
    min-height: 86px !important;
    padding: 11px !important;
  }
  .character-stat-card > span { white-space: normal; font-size: 9px !important; }
  .character-stat-card > strong { font-size: clamp(16px, 4.5vw, 22px) !important; overflow-wrap: anywhere; }
  .character-stat-card > small { font-size: 10px !important; line-height: 1.3; }
  .character-stat-card .stat-meter { width: 100%; margin-top: 5px; }
  .level-meta { font-size: 12px; margin-top: 8px; }
  .realm-bonus-row { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 380px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; padding-left: 9px !important; padding-right: 9px !important; }
  .wordmark { gap: 7px; }
  .sigil { width: 32px; height: 32px; font-size: 18px; }
  .wordmark-copy b { font-size: 9px !important; }
  .wordmark-copy small { font-size: 8px !important; }
  .topbar-right { gap: 5px !important; }
  .topbar-right .mail-notification > span:not(.mail-icon) { display: none; }
  .character-stat-card { padding: 9px !important; }
}


/* Final mobile header repair: nav is a separate, non-overlapping scroll row. */
@media screen and (max-width: 680px) {
  header.topbar {
    display: grid !important;
    position: relative !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    justify-content: initial !important;
    column-gap: 8px !important;
    row-gap: 8px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 12px 0 !important;
    overflow: visible !important;
  }
  header.topbar > a.wordmark {
    grid-column: 1 !important; grid-row: 1 !important;
    min-width: 0 !important; max-width: 100% !important;
  }
  header.topbar > .topbar-right {
    grid-column: 2 !important; grid-row: 1 !important;
    display: flex !important; align-items: center !important;
    justify-content: flex-end !important; gap: 6px !important;
    min-width: 0 !important; max-width: 100% !important;
  }
  header.topbar > nav.game-nav {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    grid-column: 1 / -1 !important; grid-row: 2 !important;
    display: flex !important; flex-direction: row !important;
    flex-wrap: nowrap !important; align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important; max-width: none !important;
    min-width: 0 !important; height: auto !important;
    margin: 0 !important; padding: 0 0 9px !important;
    border: 0 !important;
    overflow-x: auto !important; overflow-y: hidden !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }
  header.topbar > nav.game-nav::-webkit-scrollbar { display: none !important; }
  header.topbar > nav.game-nav > a {
    display: inline-flex !important; flex: 0 0 auto !important;
    align-items: center !important; justify-content: center !important;
    width: auto !important; max-width: none !important;
    min-height: 38px !important; white-space: nowrap !important;
    margin: 0 !important; padding: 8px 11px !important;
    font-size: 12px !important; line-height: 1.2 !important;
  }
  header.topbar .battle-turn-top-indicator {
    flex: 0 0 auto !important; white-space: nowrap !important;
    padding: 7px 8px !important; font-size: 10px !important;
  }
  header.topbar .mail-notification {
    flex: 0 0 auto !important; white-space: nowrap !important;
    padding: 5px !important; font-size: 12px !important;
  }
  header.topbar .mail-notification > span:not(.mail-icon) { display: none !important; }
  header.topbar .nav-user, header.topbar .server-status,
  header.topbar .inline-form { display: none !important; }
  .game-page { padding-top: 18px !important; }
  .game-head.character-hero { position: relative !important; clear: both !important; margin-top: 12px !important; }
}
@media screen and (max-width: 380px) {
  header.topbar { padding-left: 9px !important; padding-right: 9px !important; }
  header.topbar > .topbar-right { gap: 4px !important; }
  header.topbar > nav.game-nav > a { padding: 8px 9px !important; font-size: 11px !important; }
  .wordmark-copy b { font-size: 9px !important; }
  .wordmark-copy small { font-size: 8px !important; }
}


/* Restore the two-column contract layout on the Heists page. */
.heist-layout{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start;gap:16px!important}
.heist-layout>.panel{min-width:0;height:100%}
@media(max-width:520px){.heist-layout{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.heist-layout>.panel{padding:12px!important}.heist-layout .inventory-item{padding:10px!important}.heist-layout .inventory-item form .button,.heist-layout form .button{padding:10px 8px;font-size:10px;gap:6px}.heist-layout .field>span{font-size:8px}.heist-layout h2{font-size:19px}}


/* v3: force a clean mobile header regardless of earlier legacy navigation rules. */
@media only screen and (max-width: 680px) {
  body header.topbar {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    grid-template-rows: auto auto !important;
    gap: 8px 8px !important;
    align-items: center !important;
    justify-content: initial !important;
    height: auto !important; min-height: 0 !important;
    padding: 10px 12px 0 !important;
    overflow: visible !important;
  }
  body header.topbar > a.wordmark { grid-area: 1 / 1 / 2 / 2 !important; min-width:0 !important; }
  body header.topbar > div.topbar-right { grid-area: 1 / 2 / 2 / 3 !important; display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important; justify-content:flex-end !important; align-items:center !important; gap:6px !important; min-width:0 !important; }
  body header.topbar > nav.game-nav {
    grid-area: 2 / 1 / 3 / 3 !important;
    position:relative !important; inset:auto !important; transform:none !important;
    display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important;
    align-items:center !important; justify-content:flex-start !important;
    box-sizing:border-box !important; width:100% !important; max-width:100% !important;
    min-width:0 !important; height:auto !important; margin:0 !important;
    padding:0 0 9px !important; gap:6px !important;
    overflow-x:auto !important; overflow-y:hidden !important;
    white-space:nowrap !important; scrollbar-width:none !important;
    -webkit-overflow-scrolling:touch !important;
  }
  body header.topbar > nav.game-nav::-webkit-scrollbar { display:none !important; }
  body header.topbar > nav.game-nav > a {
    display:inline-flex !important; position:relative !important; flex:0 0 auto !important;
    width:auto !important; min-width:max-content !important; max-width:none !important;
    height:auto !important; min-height:36px !important; margin:0 !important;
    padding:8px 10px !important; white-space:nowrap !important;
    font-size:11px !important; line-height:1.2 !important;
  }
  body header.topbar > .topbar-right .server-status,
  body header.topbar > .topbar-right .nav-user,
  body header.topbar > .topbar-right .inline-form { display:none !important; }
  body header.topbar > .topbar-right .battle-turn-top-indicator { flex:0 0 auto !important; white-space:nowrap !important; padding:7px 8px !important; font-size:10px !important; }
  body header.topbar > .topbar-right .mail-notification { flex:0 0 auto !important; white-space:nowrap !important; padding:5px !important; font-size:12px !important; }
  body header.topbar > .topbar-right .mail-notification > span:not(.mail-icon) { display:none !important; }
  body .game-page { padding-top:18px !important; }
  body .game-head.character-hero { clear:both !important; position:relative !important; margin-top:12px !important; }
}
@media only screen and (max-width: 380px) {
  body header.topbar { padding-left:9px !important; padding-right:9px !important; }
  body header.topbar > nav.game-nav > a { padding-left:8px !important; padding-right:8px !important; font-size:10px !important; }
  body header.topbar .wordmark-copy b { font-size:9px !important; }
  body header.topbar .wordmark-copy small { font-size:8px !important; }
}

/* Explore rebuild: six distinct expedition destinations. */
.explore-region-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;padding:clamp(14px,2.4vw,28px)!important;gap:14px!important}
.explore-region-card{display:flex;flex-direction:column;min-width:0;min-height:330px;padding:17px!important;background:linear-gradient(150deg,#18251b,#0e1511 75%)!important;border-color:#d7f58a25!important;box-shadow:inset 0 1px #ffffff08,0 12px 28px #0002}
.explore-region-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#d7f58a,transparent);opacity:.65}
.explore-region-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#8b9a8c;font:9px var(--mono);letter-spacing:.08em}
.explore-region-tag{border:1px solid #d7f58a2c;border-radius:99px;padding:4px 7px;color:#d7f58a;font-size:8px;white-space:nowrap}
.explore-region-number{white-space:nowrap}
.explore-region-sigil{width:54px;height:54px;display:grid;place-items:center;font-size:25px;margin:24px 0 16px;border:1px solid #d7f58a30;border-radius:15px;background:#d7f58a08;color:#e0ff9e}
.explore-region-copy{flex:1}
.explore-region-copy .eyebrow{font-size:8px}
.explore-region-copy h3{font:600 clamp(16px,1.35vw,20px)/1.2 var(--display);letter-spacing:-.035em;margin:9px 0 10px;overflow-wrap:anywhere}
.explore-region-copy p{color:#a6b2a7;font-size:12px;line-height:1.7;margin:0 0 14px}
.explore-region-copy small{display:block;color:#d7f58a;font:9px/1.5 var(--mono);letter-spacing:.04em}
.region-expedition-form{margin-top:20px}
.region-expedition-form .quiet-button{width:100%;display:flex;justify-content:space-between;align-items:center;padding:11px 12px;border-radius:9px;border-color:#d7f58a35;background:#d7f58a08;color:#e8f5d9;font-size:11px}
.region-expedition-form .quiet-button span{color:#d7f58a;font-size:15px}
.region-expedition-form .quiet-button:hover:not(:disabled){background:#d7f58a18;border-color:#d7f58a80;color:#fff}
.region-expedition-form .quiet-button:disabled{opacity:.4;cursor:not-allowed}
.explore-hero-hint{display:flex;align-items:center;gap:12px;margin-top:26px;color:#d7f58a;font:10px var(--mono);letter-spacing:.14em}
.explore-hero-hint span{font-size:18px;animation:explore-point-down 1.5s ease-in-out infinite}
@keyframes explore-point-down{0%,100%{transform:translateY(0)}50%{transform:translateY(4px)}}
.explore-region-emberfall:before{background:linear-gradient(90deg,#ff9a57,transparent)}
.explore-region-emberfall .explore-region-sigil{color:#ffb37a;border-color:#ff9a5740;background:#ff9a570d}
.explore-region-hollowmere:before{background:linear-gradient(90deg,#78d7c8,transparent)}
.explore-region-hollowmere .explore-region-sigil{color:#8be5d6;border-color:#78d7c840;background:#78d7c80d}
.explore-region-starwatch:before{background:linear-gradient(90deg,#b5a0ff,transparent)}
.explore-region-starwatch .explore-region-sigil{color:#c6b6ff;border-color:#b5a0ff40;background:#b5a0ff0d}
@media(max-width:900px){.explore-region-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.explore-region-grid{grid-template-columns:1fr;padding:12px!important;gap:11px!important}.explore-region-card{min-height:0;padding:16px!important}.explore-region-sigil{margin:18px 0 12px}.explore-region-copy h3{font-size:19px}.explore-region-copy p{font-size:13px}.region-expedition-form{margin-top:17px}.explore-hero-hint{font-size:9px;letter-spacing:.08em}.explore-sky-label{font-size:9px!important}}


/* Explore page sizing pass: compact the oversized hero and restore a deliberate content rhythm. */
body.page-explore .explore-world{border-radius:18px;max-width:100%;}
body.page-explore .explore-sky{position:relative;min-height:0!important;height:320px;display:flex;align-items:center;background-position:center 48%!important;background-size:cover!important;}
body.page-explore .explore-hero-copy{box-sizing:border-box;width:min(100%,560px);max-width:560px;padding:30px 34px!important;}
body.page-explore .explore-hero-copy h2{max-width:500px;font-size:clamp(34px,3.5vw,48px)!important;line-height:1.04;margin:18px 0 20px;}
body.page-explore .explore-hero-copy p{max-width:430px;font-size:13px;line-height:1.65;margin:0;}
body.page-explore .explore-hero-hint{margin-top:18px;font-size:9px;}
body.page-explore .explore-sky-label{position:absolute;left:28px;right:28px;bottom:0;padding:10px 0;font-size:10px;letter-spacing:.09em;}
body.page-explore .explore-briefing{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;padding:24px 28px;border-bottom:1px solid #d7f58a18;background:linear-gradient(110deg,#111a14,#0d130f);}
body.page-explore .explore-briefing>div:first-child{min-width:0;max-width:780px;}
body.page-explore .explore-briefing h3{font-size:22px;line-height:1.2;margin:9px 0 10px;letter-spacing:-.035em;}
body.page-explore .explore-briefing p{font-size:12px;line-height:1.7;color:#a6b2a7;margin:0;max-width:780px;}
body.page-explore .explore-odds{display:grid;grid-template-columns:repeat(3,minmax(75px,auto));gap:10px;align-items:stretch;}
body.page-explore .explore-odds>div{display:flex;flex-direction:column;gap:5px;padding:10px 12px;border:1px solid #d7f58a1a;border-radius:10px;background:#d7f58a05;}
body.page-explore .explore-odds strong{font-size:19px;line-height:1.1;color:#e0ff9e;}
body.page-explore .explore-odds span{font:8px/1.4 var(--mono);letter-spacing:.05em;color:#9eae9f;white-space:nowrap;}
body.page-explore .explore-region-grid{padding:18px!important;gap:12px!important;}
@media(max-width:760px){
 body.page-explore .explore-sky{height:auto;min-height:0!important;min-height:290px!important;align-items:center;background-position:center!important;}
 body.page-explore .explore-hero-copy{padding:28px 20px 48px!important;width:100%;}
 body.page-explore .explore-hero-copy h2{font-size:clamp(32px,8vw,42px)!important;margin:15px 0 16px;}
 body.page-explore .explore-hero-copy p{font-size:12px;max-width:360px;}
 body.page-explore .explore-sky-label{left:20px;right:20px;font-size:8px;padding:8px 0;}
 body.page-explore .explore-briefing{grid-template-columns:minmax(0,1fr);gap:16px;padding:20px 18px;}
 body.page-explore .explore-briefing h3{font-size:20px;}
 body.page-explore .explore-briefing p{font-size:12px;}
 body.page-explore .explore-odds{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
 body.page-explore .explore-odds>div{padding:9px 8px;}
 body.page-explore .explore-odds strong{font-size:17px;}
 body.page-explore .explore-odds span{font-size:7px;white-space:normal;}
 body.page-explore .explore-region-grid{padding:12px!important;}
}


/* Live game balancing controls: gold, XP and battle turns share one row on desktop */
.live-game-percentages form { margin-top: 18px; }
.live-game-percentages .admin-reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 22px;
  align-items: stretch;
}
.live-game-percentages .admin-reward-grid .field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(215, 245, 138, .13);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(18, 29, 22, .96), rgba(10, 16, 13, .96));
}
.live-game-percentages .admin-reward-grid .field span { line-height: 1.5; min-height: 2.8em; }
.live-game-percentages .admin-reward-grid .field input { width: 100%; box-sizing: border-box; margin-top: auto; }
.live-game-percentages .admin-reward-grid .field small { display: block; line-height: 1.45; opacity: .72; }
.live-game-percentages > form > .button { margin-top: 2px; }
@media (max-width: 680px) {
  .live-game-percentages .admin-reward-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 16px 0 18px; }
  .live-game-percentages .admin-reward-grid .field { padding: 15px; }
  .live-game-percentages .admin-reward-grid .field span { min-height: 0; }
}

/* Per-region expedition cooldown indicator */
.expedition-cooldown-status{display:flex;align-items:center;gap:8px;margin:14px 16px 0;padding:9px 11px;border:1px solid #d7f58a24;border-radius:9px;background:#d7f58a08;color:#a8b6a8;font:10px/1.4 var(--mono);letter-spacing:.025em}.expedition-cooldown-status strong{color:#d7f58a;font-weight:700}.region-expedition-form button:disabled{opacity:.5;cursor:not-allowed}


/* Training / Armory layout repair: restore a proper two-column desktop layout. */
.game-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:18px!important;align-items:start!important;max-width:1400px;margin:0 auto 36px!important;padding:0 24px!important;box-sizing:border-box}
.game-grid>.game-panel,.game-grid>.panel,.game-grid>section{min-width:0;box-sizing:border-box}
.game-grid h2,.game-grid h3{line-height:1.25;margin:0 0 12px!important}
.record-stats-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:16px 0!important}
.record-stat{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:6px!important;min-width:0;padding:13px!important;border:1px solid #d7f58a24!important;border-radius:10px!important;background:linear-gradient(145deg,#17221b,#101612)!important;box-sizing:border-box}
.record-stat>span{display:block!important;font-size:9px!important;line-height:1.45!important;letter-spacing:.08em!important;color:#a9b39e!important;white-space:normal!important}
.record-stat>strong{display:block!important;font-size:clamp(17px,1.6vw,24px)!important;line-height:1.2!important;overflow-wrap:anywhere!important;color:#e8f1dc!important}
.armory-stats .gold-stat{grid-column:1/-1!important}
.inventory-item{display:flex!important;align-items:center!important;gap:12px!important;padding:14px!important;min-width:0;box-sizing:border-box}
.inventory-item>div{flex:1 1 auto!important;min-width:0!important;display:flex!important;flex-direction:column!important;gap:5px!important}
.inventory-item b,.inventory-item small{display:block!important;line-height:1.5!important;white-space:normal!important}
.inventory-item form{flex:0 0 auto!important;margin:0!important}
.owned-weapons-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:14px 0!important}
.owned-weapons-grid>div{display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0;padding:12px!important;border:1px solid #d7f58a20!important;border-radius:10px!important;background:#121a14!important}
.owned-weapons-grid b,.owned-weapons-grid small{display:block!important;line-height:1.55!important;white-space:normal!important}
.armory-catalog-gold{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;padding:14px!important;margin:12px 0!important;border:1px solid #d7f58a24!important;border-radius:10px!important;background:#1b241a!important}
@media(max-width:850px){.game-grid{grid-template-columns:minmax(0,1fr)!important;padding:0 14px!important}.record-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){.record-stats-grid,.owned-weapons-grid{grid-template-columns:minmax(0,1fr)!important}.armory-stats .gold-stat{grid-column:auto!important}.inventory-item{flex-wrap:wrap!important}.inventory-item form{margin-left:34px!important}}

/* Stack realm reward fields on narrow screens. */
@media (max-width: 760px) {
  .live-game-percentages .admin-reward-grid { grid-template-columns: minmax(0, 1fr); }
}


/* Cross-browser layout safeguards (Edge/Chromium and Chrome). */
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body{ min-width:320px; }
.game-page,.game-grid,.panel,.character-hero,.admin-console{min-width:0;}
img,svg,video,canvas{max-width:100%;height:auto;}
button,input,select,textarea{box-sizing:border-box;}
/* Fallback for browsers with incomplete support for min() in grid tracks. */
.character-stat-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;}
@media(max-width:560px){.character-stat-grid{grid-template-columns:1fr!important;}}
@media(min-width:561px) and (max-width:760px){.character-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}

/* Dashboard wealth and raffle card: restore readable hierarchy and keep the CTA with its context. */
.wealth-home-panel{box-sizing:border-box;width:calc(100% - 32px);max-width:1400px;margin:18px auto 28px!important;padding:22px 24px!important;display:flex;flex-direction:column;align-items:stretch;gap:10px;overflow:hidden}
.wealth-home-panel h3{font-size:16px!important;line-height:1.35!important;margin:0!important;color:#e5eddc;letter-spacing:-.015em}
.wealth-home-panel .home-galaxy-empty{font-size:12px!important;line-height:1.65!important;color:#aab6a8!important;margin:0!important;overflow-wrap:anywhere}
.wealth-home-panel .home-galaxy-list{display:flex;flex-wrap:wrap;gap:8px;margin:0!important}
.wealth-home-panel .home-galaxy-pill{font-size:11px!important;line-height:1.45;padding:7px 10px;max-width:100%;overflow-wrap:anywhere}
.wealth-home-panel .wealth-raffle-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:4px;padding-top:14px;border-top:1px solid rgba(215,245,138,.12)}
.wealth-home-panel .wealth-raffle-pot{font-size:13px!important;line-height:1.5!important;color:#dce8d5!important}
.wealth-home-panel .wealth-raffle-cta{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 15px!important;font-size:12px!important;line-height:1.35;white-space:normal;text-align:center;max-width:100%;box-sizing:border-box}
@media(max-width:600px){.wealth-home-panel{width:calc(100% - 24px);padding:17px 15px!important;margin:14px auto 22px!important}.wealth-home-panel .wealth-raffle-footer{align-items:stretch;flex-direction:column;gap:10px}.wealth-home-panel .wealth-raffle-cta{width:100%}.wealth-home-panel .home-galaxy-pill{white-space:normal}}

/* Wealth & Daily Raffle: align with the full-width Galaxy section, not the narrow dashboard content column. */
.wealth-home-panel{width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;border-left:0!important;border-right:0!important;border-radius:0!important;padding-left:clamp(16px,2vw,32px)!important;padding-right:clamp(16px,2vw,32px)!important}
@media(max-width:600px){.wealth-home-panel{width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;padding-left:16px!important;padding-right:16px!important}}

/* Keep the dashboard's Galaxy bubble and archive aligned with the main content column. */
.home-galaxy-sections{width:min(100% - 32px,1260px);max-width:1260px;margin:16px auto 0;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;box-sizing:border-box}
.home-galaxy-sections .home-galaxy-bubble,.home-galaxy-sections .home-galaxies-panel{width:100%;max-width:none;min-width:0;box-sizing:border-box;margin:0}
.home-galaxy-sections .home-galaxy-bubble{padding:16px}
.home-galaxy-sections .home-galaxies-panel{padding:20px}
@media(max-width:600px){.home-galaxy-sections{width:calc(100% - 24px);margin-top:12px;gap:10px}.home-galaxy-sections .home-galaxy-bubble,.home-galaxy-sections .home-galaxies-panel{padding:14px}}

/* Inventory layout: belongings full-width, Shop and Heist Equipment side-by-side. */
.game-grid.inventory-page-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:18px}
.game-grid.inventory-page-grid>.panel:first-child{grid-column:1 / -1;min-width:0}
.game-grid.inventory-page-grid>.panel:nth-child(2),.game-grid.inventory-page-grid>.panel:nth-child(3){grid-column:auto;min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.game-grid.inventory-page-grid .panel{min-width:0;overflow-wrap:anywhere}
.game-grid.inventory-page-grid button,.game-grid.inventory-page-grid .button{max-width:100%;white-space:normal}
@media(max-width:760px){
 .game-grid.inventory-page-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .game-grid.inventory-page-grid>.panel:first-child,.game-grid.inventory-page-grid>.panel:nth-child(2),.game-grid.inventory-page-grid>.panel:nth-child(3){grid-column:1;grid-row:auto}
}

/* Help Page quick-start guide */
.help-page{max-width:1260px;margin:24px auto;padding:0 16px;box-sizing:border-box}
.help-hero{padding:26px;margin-bottom:16px}
.help-hero h1{font-size:clamp(2rem,4vw,3.2rem);margin:8px 0}
.help-quicklinks{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.help-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.help-guide-card{padding:20px;min-width:0;box-sizing:border-box}
.help-guide-card h2{font-size:1.2rem;margin:8px 0 10px}
.help-guide-card p,.help-tip-panel li{line-height:1.65;color:var(--muted,#a9b2a8)}
.help-tip-panel{margin-top:14px;padding:22px}
.help-tip-panel li{margin:6px 0}
@media(max-width:680px){.help-page{padding:0 12px;margin:14px auto}.help-guide-grid{grid-template-columns:minmax(0,1fr);gap:10px}.help-hero,.help-guide-card,.help-tip-panel{padding:16px}.help-quicklinks .button{flex:1 1 100%;text-align:center}}

/* Keep the Home wealth/raffle panel in the same centered content column as Galaxies. */
.home-galaxy-sections{width:min(calc(100% - 32px),1260px);max-width:1260px;margin-left:auto;margin-right:auto}
.wealth-home-panel{display:block;width:min(calc(100% - 32px),1260px);max-width:1260px;margin:16px auto 20px;box-sizing:border-box;min-width:0}
.wealth-home-panel .wealth-raffle-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:12px;margin-top:12px;border-top:1px solid var(--line,rgba(190,220,120,.18))}
.wealth-home-panel .wealth-raffle-cta{white-space:normal;text-align:center}
@media(max-width:600px){.home-galaxy-sections,.wealth-home-panel{width:calc(100% - 24px);margin-left:auto;margin-right:auto}.wealth-home-panel{padding:14px}.wealth-home-panel .wealth-raffle-footer{align-items:flex-start;flex-direction:column}.wealth-home-panel .wealth-raffle-cta{width:100%;box-sizing:border-box}}

/* FINAL layout override: scope wealth panel and force inventory desktop/mobile columns. */
.home-wealth-sections{display:block!important;width:min(calc(100% - 32px),1260px)!important;max-width:1260px!important;margin:16px auto 24px!important;padding:0!important;box-sizing:border-box!important}
.home-wealth-sections>.wealth-home-panel{display:flex!important;width:100%!important;max-width:none!important;margin:0!important;box-sizing:border-box!important}
.game-grid.inventory-page-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:start!important;gap:18px!important;width:100%!important;max-width:1260px!important;box-sizing:border-box!important}
.game-grid.inventory-page-grid>section:nth-child(1),.game-grid.inventory-page-grid>.panel:nth-child(1){grid-column:1 / -1!important;min-width:0!important}
.game-grid.inventory-page-grid>section:nth-child(2),.game-grid.inventory-page-grid>.panel:nth-child(2){grid-column:1!important;min-width:0!important;width:100%!important}
.game-grid.inventory-page-grid>section:nth-child(3),.game-grid.inventory-page-grid>.panel:nth-child(3){grid-column:2!important;grid-row:2!important;min-width:0!important;width:100%!important}
@media(max-width:760px){
 .home-wealth-sections{width:calc(100% - 24px)!important;margin:12px auto 18px!important}
 .game-grid.inventory-page-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 .game-grid.inventory-page-grid>section:nth-child(1),.game-grid.inventory-page-grid>.panel:nth-child(1){grid-column:1!important;grid-row:1!important}
 .game-grid.inventory-page-grid>section:nth-child(2),.game-grid.inventory-page-grid>.panel:nth-child(2){grid-column:1!important;grid-row:2!important}
 .game-grid.inventory-page-grid>section:nth-child(3),.game-grid.inventory-page-grid>.panel:nth-child(3){grid-column:1!important;grid-row:3!important}
}


/* Eye-friendly theme pass: softer contrast, calmer accents, clearer reading rhythm. */
:root{
 --bg:#111411;
 --panel:#191e19;
 --panel2:#20271f;
 --line:#394438;
 --ink:#e5e9df;
 --muted:#aab4a5;
 --lime:#c5df91;
 --orange:#e99a7d;
}
html{color-scheme:dark}
body{font-size:16px;line-height:1.68;letter-spacing:.005em}
.noise{opacity:.012}
.topbar{background:rgba(17,20,17,.97);border-bottom-color:rgba(190,210,177,.14);backdrop-filter:blur(12px)}
.panel,.game-panel,.help-guide-card,.help-hero{
 background:linear-gradient(145deg,rgba(31,39,31,.94),rgba(23,29,24,.97));
 border-color:rgba(157,183,143,.20);
 box-shadow:0 8px 26px rgba(0,0,0,.10);
}
h1,h2,h3,h4{line-height:1.3;letter-spacing:-.018em}
p,.subcopy,.muted,.help-guide-card p{color:var(--muted)}
.eyebrow{color:#c5d99a;letter-spacing:.12em}
button,.button,input,select,textarea{border-radius:10px}
button,.button{transition:background-color .16s ease,border-color .16s ease,transform .16s ease}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
 outline:2px solid #c5df91;outline-offset:3px
}
button:hover,.button:hover{filter:brightness(1.04)}
input,select,textarea{background:#151b16;color:var(--ink);border-color:#455243}
hr{border:0;border-top:1px solid rgba(157,183,143,.18)}
.nav a,.topnav a{border-color:rgba(157,183,143,.15)}
::selection{background:#c5df91;color:#172017}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}


/* JOEADACTLE: immersive premium game UI pass */
:root{
 --bg:#0b100f;
 --panel:#121b19;
 --panel2:#172522;
 --line:#2b4640;
 --ink:#edf5ef;
 --muted:#a5b9b0;
 --lime:#b9f6d0;
 --orange:#ffb779;
 --accent-violet:#b8a6ff;
 --accent-cyan:#7de7d2;
}
html{background:#0b100f}
body{
 background:
   radial-gradient(ellipse at 12% 0%,rgba(36,115,91,.20),transparent 34rem),
   radial-gradient(ellipse at 88% 12%,rgba(100,76,164,.13),transparent 32rem),
   linear-gradient(180deg,#0b100f 0%,#0d1412 48%,#0a100f 100%);
 color:var(--ink);
 font-size:16px;
 line-height:1.68;
}
.noise{opacity:.008}
.topbar{
 background:rgba(8,14,13,.91)!important;
 border-bottom:1px solid rgba(125,231,210,.18)!important;
 box-shadow:0 10px 40px rgba(0,0,0,.26),0 1px 0 rgba(255,255,255,.025);
 backdrop-filter:blur(18px);
}
.sigil{
 border-radius:12px!important;
 background:linear-gradient(145deg,rgba(125,231,210,.16),rgba(184,166,255,.09));
 border-color:rgba(125,231,210,.48)!important;
 box-shadow:0 0 24px rgba(125,231,210,.08),inset 0 1px rgba(255,255,255,.08);
}
.wordmark-copy b{letter-spacing:.18em}
nav a, .topbar nav a, .main-nav a{
 transition:background .18s,border-color .18s,color .18s,transform .18s;
}
nav a:hover,.topbar nav a:hover,.main-nav a:hover{
 background:rgba(125,231,210,.09)!important;
 border-color:rgba(125,231,210,.32)!important;
 color:#dffbf2!important;
}
.panel,.game-panel,.help-guide-card,.help-hero{
 position:relative;
 background:linear-gradient(145deg,rgba(23,38,34,.96),rgba(15,25,23,.97))!important;
 border:1px solid rgba(125,180,160,.23)!important;
 border-radius:18px!important;
 box-shadow:0 16px 44px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.025);
}
.panel:focus-within,.panel:hover{
 border-color:rgba(125,231,210,.32)!important;
}
.panel h1,.panel h2,.panel h3,.game-page h1,.game-page h2{
 color:#f0f7f1;
}
.eyebrow{
 color:var(--accent-cyan)!important;
 font-size:9px!important;
 letter-spacing:.16em!important;
}
h1,h2,h3,h4{line-height:1.28;letter-spacing:-.025em}
p,.subcopy,.muted{color:var(--muted)}
.button,.button-primary,button[type=submit]{
 border-radius:11px!important;
 font-size:13px;
 letter-spacing:.01em;
 transition:transform .18s,box-shadow .18s,filter .18s,background .18s;
}
.button-primary, .button.primary{
 color:#092019!important;
 background:linear-gradient(135deg,#b9f6d0,#7de7d2)!important;
 box-shadow:0 6px 22px rgba(91,219,178,.15),inset 0 1px rgba(255,255,255,.5);
}
.button-primary:hover,.button.primary:hover{
 filter:brightness(1.07);
 box-shadow:0 10px 28px rgba(91,219,178,.25);
 transform:translateY(-2px);
}
.button:not(.button-primary){
 border:1px solid rgba(125,231,210,.2)!important;
 background:rgba(125,231,210,.055)!important;
 color:#e2f6ed!important;
}
button:hover,.button:hover{filter:brightness(1.07)}
input,select,textarea{
 background:#0d1714!important;color:var(--ink)!important;
 border:1px solid #34534a!important;border-radius:10px!important;
}
input:focus,select:focus,textarea:focus{
 border-color:var(--accent-cyan)!important;
 box-shadow:0 0 0 3px rgba(125,231,210,.10);
}
.inventory-item,.arena-rival,.heist-risk-choice{
 background:linear-gradient(120deg,rgba(27,49,42,.96),rgba(16,29,25,.96))!important;
 border:1px solid rgba(125,180,160,.2)!important;
 border-radius:14px!important;
 transition:transform .18s,border-color .18s,box-shadow .18s!important;
}
.inventory-item:hover,.arena-rival:hover,.heist-risk-choice:hover{
 transform:translateY(-2px);
 border-color:rgba(125,231,210,.42)!important;
 box-shadow:0 12px 28px rgba(0,0,0,.22);
}
.status-pill{
 border-radius:999px!important;
 background:rgba(125,231,210,.07);
 border-color:rgba(125,231,210,.25)!important;
 color:var(--accent-cyan)!important;
}
.stat-meter,.progress-track,.vital-track{background:#243c34!important}
.stat-meter span,.progress-track span,.vital-track span{
 box-shadow:0 0 16px rgba(125,231,210,.22);
}
.dashboard-heading{
 max-width:1320px;
}
.dashboard-heading h1{
 text-shadow:0 0 36px rgba(125,231,210,.10);
}
.dashboard-heading h1 em,.game-page>h1 em,.game-head h1 em{
 color:var(--accent-cyan)!important;
}
.game-grid{gap:20px!important}
.help-quicklinks{gap:12px}
.help-guide-card:hover{
 transform:translateY(-2px);
 transition:transform .18s,border-color .18s;
 border-color:rgba(125,231,210,.38)!important;
}
hr{border-color:rgba(125,180,160,.18)}
::selection{background:#7de7d2;color:#092019}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
 outline:2px solid #7de7d2!important;outline-offset:3px!important;
}
@media(max-width:760px){
 body{font-size:15px}
 .panel,.game-panel,.help-guide-card{border-radius:15px!important}
 .game-grid{gap:12px!important}
 .topbar{backdrop-filter:blur(12px)}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}


/* Theme alignment: match the inviting teal/emerald battle-screen palette. */
:root{
 --bg:#0a1110;
 --panel:#111d1a;
 --panel2:#172723;
 --line:#29463e;
 --ink:#e8f2ee;
 --muted:#a0b2ab;
 --lime:#9df2d4;
 --accent-violet:#a9cfc7;
 --accent-cyan:#73ddc5;
}
body{
 background:
  radial-gradient(ellipse at 18% 8%,rgba(36,112,91,.17),transparent 38rem),
  radial-gradient(ellipse at 84% 16%,rgba(39,99,91,.13),transparent 36rem),
  linear-gradient(180deg,#0a1110 0%,#0c1513 52%,#09100f 100%)!important;
 color:#e8f2ee;
}
.topbar{background:rgba(7,13,12,.94)!important;border-bottom-color:rgba(115,221,197,.2)!important}
.panel,.game-panel,.help-guide-card,.help-hero{
 background:linear-gradient(145deg,rgba(19,35,31,.97),rgba(14,27,24,.98))!important;
 border-color:rgba(111,177,156,.25)!important;
 box-shadow:0 12px 34px rgba(0,0,0,.14),inset 0 1px 0 rgba(220,255,245,.025)!important;
}
.panel:hover,.panel:focus-within,.game-panel:hover{
 border-color:rgba(115,221,197,.3)!important;
}
.button-primary,.button.primary,button[type=submit]{
 background:linear-gradient(135deg,#a9f2d5 0%,#73ddc5 100%)!important;
 color:#10231e!important;
 box-shadow:0 5px 18px rgba(74,203,169,.12),inset 0 1px 0 rgba(255,255,255,.38)!important;
}
.button-primary:hover,.button.primary:hover,button[type=submit]:hover{
 box-shadow:0 8px 24px rgba(74,203,169,.2)!important;
}
.button:not(.button-primary),.button:not(.primary){
 background:rgba(115,221,197,.055)!important;
 border-color:rgba(115,221,197,.22)!important;
 color:#e0f2ec!important;
}
.inventory-item,.arena-rival,.heist-risk-choice{
 background:linear-gradient(125deg,rgba(24,46,40,.97),rgba(16,31,27,.98))!important;
 border-color:rgba(111,177,156,.23)!important;
}
.eyebrow,.dashboard-heading h1 em,.game-page>h1 em,.game-head h1 em{color:#73ddc5!important}
.status-pill{color:#9df2d4!important;background:rgba(115,221,197,.075)!important;border-color:rgba(115,221,197,.25)!important}
input,select,textarea{background:#0e1916!important;border-color:#34574c!important;color:#e8f2ee!important}
input:focus,select:focus,textarea:focus{border-color:#73ddc5!important;box-shadow:0 0 0 3px rgba(115,221,197,.1)!important}
::selection{background:#73ddc5;color:#10231e}


/* Inbox layout: use the available content width instead of a narrow single column. */
.inbox-page,
.page-inbox,
.inbox-container,
.mail-page{
 width:min(1360px,calc(100% - 48px))!important;
 max-width:1360px!important;
 margin-left:auto!important;
 margin-right:auto!important;
}
.inbox-page .panel,
.page-inbox .panel,
.inbox-container .panel,
.mail-page .panel{
 width:100%;
 max-width:none!important;
}
.inbox-messages,
.inbox-list,
.message-list,
.inbox-content{
 width:100%;
 max-width:none!important;
}
@media(min-width:900px){
 body:has(.inbox-page) .inbox-page,
 body:has(.page-inbox) .page-inbox,
 body:has(.inbox-container) .inbox-container,
 body:has(.mail-page) .mail-page{
  display:block!important;
 }
}
@media(max-width:700px){
 .inbox-page,.page-inbox,.inbox-container,.mail-page{
  width:calc(100% - 24px)!important;
 }
}

/* Inbox is a full-width mail workspace, not a half-width card. */
.game-grid.inbox-grid{
 display:grid!important;
 grid-template-columns:minmax(0,1fr)!important;
 width:100%!important;
 max-width:1400px!important;
 margin-left:auto!important;
 margin-right:auto!important;
 box-sizing:border-box!important;
}
.game-grid.inbox-grid>.game-panel,
.game-grid.inbox-grid>.panel,
.game-grid.inbox-grid>section{
 width:100%!important;
 max-width:none!important;
 min-width:0!important;
}

/* Temporary spy intelligence dossier */
.spy-dossier{margin:22px 0;padding:22px;border:1px solid rgba(115,221,197,.32);border-radius:18px;background:linear-gradient(140deg,rgba(20,48,40,.92),rgba(13,28,25,.96));box-shadow:inset 0 1px 0 rgba(220,255,245,.04)}
.spy-dossier h3{margin:8px 0}.spy-dossier-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin-top:16px}.spy-dossier-row{display:flex;flex-direction:column;gap:7px;padding:14px;border:1px solid rgba(115,221,197,.17);border-radius:12px;background:rgba(5,16,13,.3)}.spy-dossier-row span{font-size:.78rem;color:#a0b9af}.spy-dossier-row strong{font-size:1.2rem;color:#a9f2d5}


/* Header layout repair: keep account controls readable and navigation in its own row when needed. */
header.topbar{height:auto!important;min-height:86px;padding:12px clamp(14px,3vw,42px)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;flex-wrap:wrap!important;box-sizing:border-box!important}
header.topbar>.wordmark{flex:0 0 auto!important;min-width:190px}
header.topbar>.game-nav{flex:1 1 620px!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;flex-wrap:wrap!important}
header.topbar>.game-nav a{padding:9px 11px!important;white-space:nowrap!important;flex:0 0 auto!important}
header.topbar>.topbar-right{flex:0 0 auto!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;flex-wrap:nowrap!important}
header.topbar .inline-form{flex:0 0 auto!important;margin:0!important}
header.topbar .quiet-button{white-space:nowrap!important;min-width:max-content!important;width:auto!important;min-height:42px!important;padding:10px 14px!important;line-height:1.2!important}
header.topbar .mail-notification,header.topbar .battle-turn-top-indicator{white-space:nowrap!important;flex:0 0 auto!important}
@media(max-width:1100px){header.topbar{justify-content:center!important}header.topbar>.wordmark{margin-right:auto}header.topbar>.topbar-right{margin-left:auto}header.topbar>.game-nav{order:3;flex:1 0 100%!important;justify-content:center!important}}
@media(max-width:680px){header.topbar{gap:10px!important;padding:12px!important}header.topbar>.wordmark{min-width:0;margin-right:auto}header.topbar>.wordmark-copy b{font-size:11px}header.topbar>.topbar-right{gap:7px!important;max-width:100%;flex-wrap:wrap!important}header.topbar .server-status,header.topbar .nav-user{display:none!important}header.topbar>.game-nav{justify-content:flex-start!important;gap:5px!important}header.topbar>.game-nav a{font-size:.72rem!important;padding:8px 9px!important}}

@media(max-width:900px){.inbox-with-log{grid-template-columns:minmax(0,1fr)!important}.inbox-with-log>*{min-width:0}}
.inbox-with-log table td,.inbox-with-log table th{padding:10px 8px;text-align:left;vertical-align:top}.inbox-with-log table tbody tr{border-bottom:1px solid rgba(115,221,197,.15)}


/* Definitive header and inbox layout overrides */
@media(min-width:1201px){
header.topbar{display:grid!important;grid-template-columns:190px minmax(480px,1fr) auto!important;grid-template-rows:auto!important;align-items:center!important;justify-content:initial!important;column-gap:18px!important;row-gap:0!important;min-height:86px!important;height:auto!important;padding:12px clamp(18px,3vw,42px)!important;flex-wrap:initial!important}
header.topbar>.wordmark{grid-column:1;grid-row:1;min-width:0!important;margin:0!important}
header.topbar>.game-nav{grid-column:2;grid-row:1;display:flex!important;flex-flow:row wrap!important;justify-content:flex-start!important;align-content:center!important;gap:6px!important;min-width:0!important;width:100%!important;margin:0!important;padding:0!important;max-width:none!important}
header.topbar>.game-nav a{flex:0 0 auto!important;white-space:nowrap!important;padding:9px 11px!important}
header.topbar>.topbar-right{grid-column:3;grid-row:1;display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;min-width:0!important;width:auto!important;margin:0!important}
header.topbar .quiet-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;width:auto!important;min-width:max-content!important;max-width:none!important;padding:11px 15px!important}
}
@media(min-width:901px){
.game-grid.inbox-grid.inbox-with-log{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(360px,1fr)!important;width:100%!important;max-width:1400px!important;margin:0 auto 36px!important;padding:0 24px!important;gap:18px!important;align-items:start!important;box-sizing:border-box!important}
.game-grid.inbox-grid.inbox-with-log>.panel,.game-grid.inbox-grid.inbox-with-log>.game-panel,.game-grid.inbox-grid.inbox-with-log>section,.game-grid.inbox-grid.inbox-with-log>div{min-width:0!important;width:100%!important;max-width:none!important}
}
@media(max-width:1200px){
header.topbar{display:flex!important;flex-flow:row wrap!important;align-items:center!important;justify-content:space-between!important;gap:10px 14px!important;height:auto!important;min-height:0!important;padding:12px 16px!important}
header.topbar>.wordmark{order:1;flex:0 0 auto!important;min-width:0!important;margin:0!important}
header.topbar>.topbar-right{order:2;flex:0 1 auto!important;margin:0!important;display:flex!important;flex-flow:row wrap!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-width:0!important}
header.topbar>.game-nav{order:3;flex:1 0 100%!important;display:flex!important;flex-flow:row wrap!important;justify-content:flex-start!important;gap:6px!important;min-width:0!important;width:100%!important;margin:0!important;padding:0!important}
header.topbar .quiet-button{display:inline-flex!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;width:auto!important;min-width:max-content!important;max-width:none!important;padding:10px 12px!important}
}
@media(max-width:900px){.game-grid.inbox-grid.inbox-with-log{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;padding:0 14px!important;gap:14px!important}}
@media(max-width:520px){header.topbar>.topbar-right{flex:1 1 100%!important;justify-content:space-between!important}header.topbar>.game-nav a{font-size:.72rem!important;padding:8px 9px!important}.game-grid.inbox-grid.inbox-with-log{padding:0 10px!important}}


/* Header spacing repair based on deployed screenshot */
@media(min-width:1201px){
 header.topbar{grid-template-columns:170px minmax(0,1fr) minmax(360px,auto)!important;column-gap:22px!important;padding-left:clamp(18px,2.2vw,32px)!important;padding-right:clamp(18px,2.2vw,32px)!important}
 header.topbar>.game-nav{gap:6px!important}
 header.topbar>.game-nav a{padding:9px 10px!important;font-size:12px!important}
 header.topbar>.topbar-right{gap:14px!important;justify-content:flex-end!important;flex-wrap:nowrap!important}
 header.topbar .mail-notification{display:inline-flex!important;align-items:center!important;gap:5px!important;padding:7px 8px!important;min-width:max-content!important;font-size:13px!important;line-height:1.2!important}
 header.topbar .mail-notification>span:not(.mail-icon){display:inline!important}
 header.topbar .mail-notification .notification-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:18px!important;height:18px!important;padding:0 4px!important;border-radius:999px!important;line-height:1!important;font-size:10px!important}
 header.topbar .nav-user{display:inline-block!important;white-space:nowrap!important;margin-left:2px!important;font-size:11px!important}
 header.topbar .server-status{white-space:nowrap!important;flex:0 0 auto!important}
 header.topbar .inline-form{display:block!important;flex:0 0 auto!important}
 header.topbar .quiet-button{min-width:88px!important;padding:11px 13px!important}
}
@media(min-width:901px) and (max-width:1200px){
 header.topbar{display:flex!important;flex-flow:row wrap!important;align-items:center!important;gap:12px 18px!important}
 header.topbar>.wordmark{flex:0 0 170px!important}
 header.topbar>.topbar-right{flex:1 1 auto!important;gap:12px!important;justify-content:flex-end!important;flex-wrap:nowrap!important}
 header.topbar .mail-notification{display:inline-flex!important;align-items:center!important;gap:5px!important;white-space:nowrap!important}
 header.topbar .mail-notification>span:not(.mail-icon){display:inline!important}
 header.topbar .nav-user{display:inline-block!important;white-space:nowrap!important}
 header.topbar .inline-form{display:block!important;flex:0 0 auto!important}
 header.topbar>.game-nav{order:3!important;flex:1 0 100%!important;justify-content:flex-start!important}
}


/* Global navigation layout: shared header fix on every game page */
header.topbar{
 display:grid!important;
 grid-template-columns:minmax(165px,190px) minmax(0,1fr)!important;
 grid-template-rows:auto auto!important;
 align-items:center!important;
 justify-content:initial!important;
 gap:10px 18px!important;
 height:auto!important;min-height:0!important;
 padding:12px clamp(14px,2.4vw,32px)!important;
 box-sizing:border-box!important;
}
header.topbar>.wordmark{grid-column:1;grid-row:1;min-width:0!important;margin:0!important;align-self:center!important}
header.topbar>.topbar-right{
 grid-column:2;grid-row:1;min-width:0!important;width:100%!important;
 display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
 justify-content:flex-end!important;gap:clamp(7px,1vw,14px)!important;margin:0!important;
}
header.topbar>.game-nav{
 grid-column:1 / -1;grid-row:2;min-width:0!important;width:100%!important;max-width:none!important;
 display:flex!important;flex-flow:row wrap!important;align-items:center!important;
 justify-content:flex-start!important;align-content:center!important;gap:6px!important;
 margin:0!important;padding:0!important;border:0!important;
}
header.topbar>.game-nav a{flex:0 0 auto!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;padding:9px 11px!important}
header.topbar .mail-notification,header.topbar .battle-turn-top-indicator,header.topbar .server-status{flex:0 0 auto!important;white-space:nowrap!important}
header.topbar .quiet-button,header.topbar .sign-out,header.topbar a[href*="logout"]{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:max-content!important;max-width:none!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;padding:10px 13px!important}
@media(max-width:760px){
 header.topbar{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;gap:10px!important;padding:12px 14px!important}
 header.topbar>.wordmark{grid-column:1;grid-row:1}
 header.topbar>.topbar-right{grid-column:1;grid-row:2;justify-content:flex-start!important;flex-wrap:wrap!important}
 header.topbar>.game-nav{grid-column:1;grid-row:3;justify-content:flex-start!important;gap:5px!important}
 header.topbar>.game-nav a{font-size:.75rem!important;padding:8px 9px!important}
}


/* Inbox page should use the same full-width content canvas as Explore. */
main:has(.inbox-with-log) { width:100%!important; max-width:none!important; margin:0!important; padding-left:0!important; padding-right:0!important; }
main:has(.inbox-with-log) > .game-head,
main:has(.inbox-with-log) > .character-hero { width:100%!important; max-width:none!important; }
main:has(.inbox-with-log) > .inbox-log-shortcuts {
  width:auto!important; max-width:none!important; margin:0 0 14px!important;
  padding:0 clamp(14px,2vw,32px)!important; box-sizing:border-box!important;
}
main:has(.inbox-with-log) > .game-grid.inbox-grid.inbox-with-log {
  width:100%!important; max-width:none!important; margin:0!important;
  padding:0 clamp(14px,2vw,32px) 36px!important;
  box-sizing:border-box!important; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)!important;
  gap:18px!important;
}
main:has(.inbox-with-log) .inbox-with-log > *,
main:has(.inbox-with-log) > .game-grid.inbox-with-log > * { min-width:0!important; max-width:none!important; }
@media(max-width:900px){
 main:has(.inbox-with-log) > .game-grid.inbox-grid.inbox-with-log {grid-template-columns:minmax(0,1fr)!important;padding:0 12px 24px!important}
 main:has(.inbox-with-log) > .inbox-log-shortcuts {padding:0 12px!important}
}


/* Escape the narrow site content wrapper on the Inbox page only.
   Other pages retain their existing width and layout. */
body:has(main .inbox-with-log) main {
  width:100vw!important;
  max-width:none!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
  padding-left:0!important;
  padding-right:0!important;
  box-sizing:border-box!important;
}
body:has(main .inbox-with-log) main > .inbox-log-shortcuts {
  width:100%!important;
  max-width:none!important;
  margin:0 0 14px!important;
  padding:0 clamp(16px,2.2vw,36px)!important;
  box-sizing:border-box!important;
}
body:has(main .inbox-with-log) main > .game-grid.inbox-grid.inbox-with-log {
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0 clamp(16px,2.2vw,36px) 36px!important;
  box-sizing:border-box!important;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)!important;
  gap:18px!important;
}
body:has(main .inbox-with-log) main > .game-grid.inbox-grid.inbox-with-log > * {
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
@media(max-width:900px) {
 body:has(main .inbox-with-log) main > .game-grid.inbox-grid.inbox-with-log {
   grid-template-columns:minmax(0,1fr)!important;
   padding:0 12px 24px!important;
 }
 body:has(main .inbox-with-log) main > .inbox-log-shortcuts {padding:0 12px!important}
}

/* Match the full-width header used by other pages on Inbox as well. */
body.page-inbox > header.topbar { width:100vw!important; max-width:none!important; margin-left:calc(50% - 50vw)!important; margin-right:calc(50% - 50vw)!important; box-sizing:border-box!important; }
body.page-inbox > .stats-bar, body.page-inbox > .character-stats, body.page-inbox > .status-strip { width:100vw!important; max-width:none!important; margin-left:calc(50% - 50vw)!important; margin-right:calc(50% - 50vw)!important; box-sizing:border-box!important; }

/* Crew charter pricing and crew-wide power overview */
.crew-charter-callout{margin:14px 0 20px;padding:18px;border:1px solid rgba(125,235,201,.28);border-radius:14px;background:radial-gradient(ellipse at top left,rgba(125,235,201,.12),transparent 72%),rgba(10,25,22,.78)}
.crew-charter-callout strong{display:block;margin:7px 0;font-size:clamp(24px,3vw,34px);letter-spacing:-.04em;color:#9ef0d3}
.crew-charter-callout p{margin:0;color:var(--muted,#a4b5ad);line-height:1.65;font-size:13px}
.crew-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0 20px}
.crew-stat-card{min-width:0;padding:16px;border:1px solid rgba(125,235,201,.18);border-radius:12px;background:linear-gradient(145deg,rgba(125,235,201,.075),rgba(255,255,255,.018))}
.crew-stat-card>span{display:block;color:#9eafa7;font-size:10px;font-weight:800;letter-spacing:.12em;margin-bottom:9px}
.crew-stat-card strong{display:block;font-size:clamp(20px,2.3vw,28px);letter-spacing:-.035em;overflow-wrap:anywhere}
.crew-stat-card small{display:block;margin-top:6px;color:#9eafa7;font-size:11px;line-height:1.45}
@media(max-width:520px){.crew-stat-grid{grid-template-columns:1fr 1fr;gap:8px}.crew-stat-card{padding:12px}.crew-stat-card strong{font-size:19px}}

/* Crew charter and combined strength dashboard */
.crew-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 22px}.crew-stat-card,.crew-fee-banner{border:1px solid rgba(116,218,190,.24);background:linear-gradient(135deg,rgba(19,45,38,.94),rgba(13,25,24,.96));border-radius:16px;padding:18px;min-width:0}.crew-stat-card small,.crew-fee-banner small{display:block;color:var(--muted,#9baea8);font-size:.68rem;letter-spacing:.12em;font-weight:700}.crew-stat-card strong,.crew-fee-banner strong{display:block;font-size:clamp(1.25rem,2vw,1.8rem);margin:8px 0;color:#b8f28b;overflow-wrap:anywhere}.crew-stat-card span,.crew-fee-banner span{display:block;color:var(--muted,#9baea8);font-size:.8rem}.crew-charter-card{max-width:760px}.crew-fee-banner{margin:18px 0}@media(max-width:760px){.crew-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.crew-stat-card{padding:13px}}

/* Crew dashboard: keep long totals readable on narrow screens. */
@media (max-width: 900px) {
  .crew-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .crew-stat-card { padding: 16px !important; }
  .crew-stat-card strong { font-size: clamp(1rem, 3.2vw, 1.65rem) !important; white-space: nowrap; overflow-wrap: normal !important; word-break: normal !important; letter-spacing: -0.025em; }
}
@media (max-width: 380px) {
  .crew-stat-card { padding: 12px !important; }
  .crew-stat-card strong { font-size: clamp(.9rem, 4.2vw, 1.1rem) !important; }
}


/* Definitive crew-stat layout: two roomy columns even when the page is embedded in a narrow content panel. */
.crew-stat-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
.crew-stat-card { min-width: 0 !important; padding: 16px !important; }
.crew-stat-card strong { display: block !important; white-space: nowrap !important; overflow-wrap: normal !important; word-break: normal !important; font-size: clamp(16px, 2vw, 28px) !important; letter-spacing: -0.035em !important; }
.crew-stat-card small { overflow-wrap: normal; word-break: normal; }
@media (max-width: 420px) { .crew-stat-grid { gap: 8px !important; } .crew-stat-card { padding: 12px !important; } .crew-stat-card strong { font-size: clamp(14px, 4vw, 19px) !important; } }


/* Rankings layout containment fix: keep the panel and table within the viewport. */
body .leaderboard-layout{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box!important;overflow:visible!important}
body .leaderboard-layout .leaderboard-wide{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box!important;overflow:hidden!important}
body .leaderboard-layout .leaderboard-wide .table-wrap{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow-x:auto!important;overflow-y:hidden!important;margin:0!important;-webkit-overflow-scrolling:touch}
body .leaderboard-layout .leaderboard-wide .realm-rankings-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:auto!important;border-collapse:collapse!important}
body .leaderboard-layout .leaderboard-wide .realm-rankings-table th,body .leaderboard-layout .leaderboard-wide .realm-rankings-table td{padding:10px 6px!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;font-size:clamp(10px,0.75vw,12px)!important}
body .leaderboard-layout .leaderboard-wide .realm-rankings-table th:first-child,body .leaderboard-layout .leaderboard-wide .realm-rankings-table td:first-child{width:4%!important}
body .leaderboard-layout .leaderboard-wide .realm-rankings-table th:nth-child(2),body .leaderboard-layout .leaderboard-wide .realm-rankings-table td:nth-child(2){width:16%!important}
body .leaderboard-layout .leaderboard-wide .realm-rankings-table th:last-child,body .leaderboard-layout .leaderboard-wide .realm-rankings-table td:last-child{width:10%!important}
body .leaderboard-layout .leaderboard-wide .realm-rankings-table form{margin:0!important}
body .leaderboard-layout .leaderboard-wide .realm-rankings-table .button{padding:6px 9px!important;white-space:nowrap!important}
@media(max-width:900px){body .leaderboard-layout .leaderboard-wide .table-wrap{overflow-x:auto!important}body .leaderboard-layout .leaderboard-wide .realm-rankings-table{min-width:760px!important;max-width:none!important}body .leaderboard-layout .leaderboard-wide .realm-rankings-table th,body .leaderboard-layout .leaderboard-wide .realm-rankings-table td{font-size:11px!important;padding:9px 7px!important}}

/* JOEADACTLE VISUAL UPGRADE: luminous surfaces, richer artwork and stronger game hierarchy. */
:root{--bg:#050b11;--panel:#09151d;--panel2:#0c2029;--line:#1d5260;--ink:#edfaff;--muted:#9bb5c0;--lime:#54f6e2;--orange:#ffb45c;--mono:'DM Mono',monospace;--sans:'DM Sans',sans-serif;--display:'Space Grotesk',sans-serif}
html{background:#040a10}body{background:radial-gradient(ellipse at 50% -18%,#0e3442 0,transparent 46%),linear-gradient(180deg,#050b11,#07131a 55%,#04090e);color:#eaf8ff}
body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;opacity:.22;background-image:linear-gradient(#54f6e208 1px,transparent 1px),linear-gradient(90deg,#54f6e208 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(to bottom,#000,transparent 80%)}
.topbar{background:linear-gradient(180deg,#06121bed,#07131ae8)!important;border-bottom:1px solid #54f6e233!important;box-shadow:0 10px 40px #0006;backdrop-filter:blur(18px)}
.sigil{border-radius:12px!important;border-color:#54f6e299!important;color:#74fff0!important;box-shadow:0 0 22px #54f6e21c,inset 0 0 18px #54f6e210}
.wordmark-copy b{letter-spacing:.19em;text-shadow:0 0 18px #54f6e233}.server-status i{background:#54f6e2!important;box-shadow:0 0 13px #54f6e2!important}
.game-nav a,.topbar .quiet-button,.mail-notification,.battle-turn-top-indicator{border-radius:10px!important;transition:all .2s ease!important}.game-nav a:hover,.game-nav a.active{border-color:#54f6e277!important;background:#54f6e210!important;box-shadow:0 0 20px #54f6e214!important;color:#9cfff5!important}
main{isolation:isolate}.panel,.game-panel,.home-galaxy-bubble,.explore-world,.character-banner,.quote-card,.game-card,.admin-console>section{border-color:#2b7381a3!important;background:linear-gradient(145deg,#0b1c25f2,#071119f5)!important;box-shadow:0 18px 55px #0005,inset 0 1px #c7ffff0b,0 0 26px #20cde008;border-radius:18px!important;backdrop-filter:blur(10px)}
.panel-heading h3,.game-page h2,.game-page h3{letter-spacing:-.035em}.eyebrow{color:#62f6e8!important}.button,.quiet-button,.region-expedition-form button{border-radius:10px!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important}.button-primary{background:linear-gradient(135deg,#70fff0,#24c9d7)!important;color:#041117!important;box-shadow:0 0 22px #28d9df33,inset 0 1px #fff8!important}.button-primary:hover,.region-expedition-form button:hover:not(:disabled){box-shadow:0 0 30px #28d9df70!important;transform:translateY(-2px)}.quiet-button{border-color:#2c6570!important;background:linear-gradient(135deg,#102631,#0a1720)!important;color:#e3fbff!important}.quiet-button:hover{border-color:#54f6e2!important;box-shadow:0 0 22px #54f6e21c!important;color:#7efff2!important}
.dashboard-heading h1 em,.game-page>h1 em,.game-head h1 em{color:#54f6e2!important;text-shadow:0 0 32px #54f6e233}.dashboard-heading{align-items:end}.dashboard-heading h1{line-height:.98}.character-banner{position:relative;overflow:hidden!important;background:linear-gradient(90deg,#061018f5 0%,#071a24e8 60%,#061018d8),url('veil-wilds.svg') center 44%/cover!important;min-height:300px;border:1px solid #3b9da5a3!important;box-shadow:0 0 40px #19d6e20c,inset 0 1px #fff1!important}.character-banner:after{content:"";position:absolute;right:-70px;top:-130px;width:390px;height:390px;border:1px solid #54f6e222;border-radius:50%;box-shadow:0 0 0 28px #54f6e208,0 0 0 65px #54f6e205,0 0 90px #54f6e21a;pointer-events:none}.art-emblem{color:#7efff2!important;text-shadow:0 0 32px #54f6e2aa!important}.art-ring{border-color:#54f6e24a!important;box-shadow:0 0 42px #54f6e21a,inset 0 0 32px #54f6e20a!important}.progress-track,.vital-track{background:#122e38!important;border:1px solid #2c6873!important;border-radius:999px!important;overflow:hidden}.progress-track span{background:linear-gradient(90deg,#25bcd0,#67ffdf)!important;box-shadow:0 0 16px #54f6e280!important}.health-track span{background:linear-gradient(90deg,#ff5e79,#ff9a88)!important;box-shadow:0 0 14px #ff647533}.energy-track span{background:linear-gradient(90deg,#1ab8ff,#66eaff)!important;box-shadow:0 0 14px #38dfff44}
.next-panel .action-row{border:1px solid #1b4854!important;border-radius:12px!important;margin:8px 0!important;background:linear-gradient(100deg,#0c202a,#08141c)!important;transition:all .2s ease!important}.next-panel .action-row:hover{transform:translateX(4px);border-color:#54f6e266!important;box-shadow:0 0 22px #54f6e20c!important}.coming-icon{background:linear-gradient(145deg,#123b47,#0b202a)!important;border:1px solid #2c7a87!important;border-radius:12px!important;color:#71fff0!important;box-shadow:inset 0 0 15px #54f6e20c}
.quote-card{background:linear-gradient(135deg,#0d2932,#08131b)!important;position:relative;overflow:hidden}.quote-card:after{content:"✦";position:absolute;right:15px;bottom:-35px;font-size:150px;color:#54f6e209;pointer-events:none}.account-panel,.vitals-panel{border-color:#236170!important}.currency-row,.account-line{border-color:#1b3d48!important}.currency-row .coin{color:#54f6e2!important;text-shadow:0 0 16px #54f6e255}
/* Explore is the visual centrepiece: illustrated world, atmospheric overlays and region-specific colour. */
.explore-world{border-radius:22px!important;border-color:#2c8b9c!important;background:#061119!important;box-shadow:0 24px 70px #0007,0 0 42px #18c9d71a!important}.explore-sky{position:relative;isolation:isolate;min-height:470px!important;background:linear-gradient(90deg,#041018f2 0%,#07151bd9 35%,#07151b72 72%,#07151b20 100%),url('veil-wilds.svg') center 43%/cover!important;border-bottom:1px solid #3d9eae77!important}.explore-sky:before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 77% 24%,#54f6e22c,transparent 34%),linear-gradient(0deg,#061018 0%,transparent 45%)}.explore-hero-copy{position:relative;z-index:1;max-width:700px!important}.explore-hero-copy h2{font-size:clamp(42px,6vw,78px)!important;text-shadow:0 5px 35px #000b;max-width:650px}.explore-hero-copy h2 em{color:#75fff0!important;text-shadow:0 0 35px #54f6e244}.explore-hero-copy p{max-width:520px;color:#d0e5e8!important;font-size:15px;line-height:1.85}.explore-sky-label{color:#b6dce1!important}.explore-briefing{background:linear-gradient(110deg,#0c2029,#07131b)!important;border-bottom:1px solid #225461!important}.explore-briefing h3{color:#e9fdff}.explore-odds>div{border:1px solid #225968!important;background:linear-gradient(145deg,#0e2b36,#091820)!important;border-radius:13px!important;box-shadow:inset 0 1px #fff1,0 0 22px #54f6e208}.explore-odds strong{color:#71fff0!important;text-shadow:0 0 22px #54f6e240}.explore-region-grid{background:radial-gradient(ellipse at 50% 0%,#12303a,#071219 70%)!important;gap:16px!important;padding:clamp(14px,2.4vw,30px)!important}.explore-region-card{position:relative;isolation:isolate;min-height:365px!important;padding:20px!important;border:1px solid #286b79!important;border-radius:17px!important;background:linear-gradient(180deg,#07121a55 0%,#07121af2 66%,#061018 100%),url('veil-wilds.svg') center/cover!important;box-shadow:inset 0 1px #fff2,0 12px 32px #0005!important;transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease!important}.explore-region-card:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(130deg,#54f6e20d,transparent 45%,#54f6e206)}.explore-region-card:nth-child(2){background:linear-gradient(180deg,#06111b35,#07121af0 68%,#061018),url('veil-arena.svg') 60% center/cover!important;border-color:#4b8ba4!important}.explore-region-card:nth-child(3){background:linear-gradient(180deg,#06111b35,#07121af0 68%,#061018),url('veil-wilds.svg') 80% center/cover!important;border-color:#a76a52!important}.explore-region-card:nth-child(4){background:linear-gradient(180deg,#06111b35,#07121af0 68%,#061018),url('veil-arena.svg') 25% center/cover!important;border-color:#b18b4d!important}.explore-region-card:nth-child(5){background:linear-gradient(180deg,#06111b35,#07121af0 68%,#061018),url('veil-wilds.svg') 15% center/cover!important;border-color:#4d86c6!important}.explore-region-card:nth-child(6){background:linear-gradient(180deg,#06111b35,#07121af0 68%,#061018),url('veil-wilds.svg') 75% center/cover!important;border-color:#7b69ce!important}.explore-region-card:hover{transform:translateY(-5px)!important;border-color:#75fff0!important;box-shadow:0 18px 42px #0007,0 0 30px #54f6e219!important}.explore-region-card:before{height:3px!important;background:linear-gradient(90deg,#54f6e2,#31b8ff,#a07bff)!important;opacity:1!important;box-shadow:0 0 16px #54f6e277}.explore-region-number,.explore-region-tag{border-radius:999px!important;background:#07131dcc!important;border:1px solid #4d9ba755!important;padding:6px 10px!important;backdrop-filter:blur(8px)}.explore-region-sigil{width:54px;height:54px;display:grid;place-items:center;border:1px solid #54f6e266!important;border-radius:15px!important;background:linear-gradient(145deg,#123b46d9,#07131bd9)!important;color:#82fff1!important;font-size:24px!important;box-shadow:0 0 25px #54f6e21c,inset 0 0 20px #54f6e20c!important}.explore-region-copy h3{font-size:clamp(18px,1.5vw,22px)!important;color:#f0fcff!important;text-shadow:0 2px 15px #000}.explore-region-copy p{color:#c4dbe0!important;line-height:1.75}.explore-region-copy small{color:#7deadd!important}.expedition-cooldown-status{border-top:1px solid #ffffff19!important;color:#c3e2e5!important}.expedition-cooldown-status strong{color:#80fff0!important}.region-expedition-form button{width:100%;justify-content:center!important;border:1px solid #54f6e277!important;background:linear-gradient(135deg,#0c3b46,#0a202b)!important;color:#85fff1!important;box-shadow:0 0 18px #54f6e20b}.region-expedition-form button:disabled{opacity:.55;filter:saturate(.45)}.explore-footer-note{color:#8bb8bf!important;padding:18px!important}
/* Rich image treatment across feature pages. */
.game-head,.character-hero{border-color:#286b79!important;background:linear-gradient(105deg,#07131af2,#0a2028df),url('veil-wilds.svg') center/cover!important;box-shadow:0 16px 48px #0005,0 0 24px #54f6e20b!important}.game-head h1,.character-hero h1{ text-shadow:0 3px 24px #000b}.game-card,.arena-rival,.inventory-item,.help-guide-card,.chronicle-entry,.heist-risk-choice{border-radius:14px!important;border-color:#235967!important;background:linear-gradient(145deg,#0d2029,#07131b)!important;box-shadow:inset 0 1px #fff1,0 12px 28px #0003!important}.game-card:hover,.arena-rival:hover,.inventory-item:hover{border-color:#54f6e277!important;box-shadow:0 0 24px #54f6e20e!important}.help-hero{background:linear-gradient(100deg,#06131cf2,#092832e8),url('veil-wilds.svg') center 40%/cover!important;border-color:#338b98!important}.help-guide-card{position:relative;overflow:hidden}.help-guide-card:before{content:"";position:absolute;right:-34px;top:-42px;width:120px;height:120px;border-radius:50%;border:1px solid #54f6e21b;box-shadow:0 0 0 15px #54f6e206,0 0 0 30px #54f6e204}.site-footer{border-color:#1b4651!important;background:#050d13;color:#8daab3!important}.site-footer b{color:#54f6e2!important}
@media(max-width:760px){.explore-sky{min-height:390px!important}.explore-hero-copy{padding:28px 22px!important}.explore-hero-copy h2{font-size:clamp(37px,11vw,56px)!important}.explore-region-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.explore-region-card{min-height:330px!important;padding:14px!important}.explore-region-topline{align-items:flex-start;gap:7px;flex-wrap:wrap}.explore-region-number,.explore-region-tag{font-size:9px!important}.character-banner{min-height:250px}.topbar{box-shadow:0 8px 25px #0008}}
@media(max-width:520px){.explore-region-grid{grid-template-columns:1fr!important}.explore-region-card{min-height:300px!important}.explore-sky{min-height:360px!important}.explore-briefing{padding:18px!important}.explore-odds{gap:8px!important}.explore-odds>div{padding:10px!important}.dashboard-heading h1{font-size:clamp(39px,12vw,58px)!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


/* Training page: stack Covert Spot and Recruit & Equip in the left column. */
body.page-training main>.game-grid.training-page-grid{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important;align-items:start!important;gap:20px!important}
body.page-training .training-left-stack{display:flex!important;flex-direction:column!important;gap:20px!important;min-width:0!important;width:100%!important}
body.page-training .training-left-stack>.game-panel{min-width:0!important;width:100%!important;max-width:none!important;margin:0!important;box-sizing:border-box!important}
body.page-training main>.game-grid.training-page-grid>.game-panel{min-width:0!important;width:100%!important;max-width:none!important;grid-column:2!important;grid-row:1!important}
@media(max-width:850px){body.page-training main>.game-grid.training-page-grid{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}body.page-training main>.game-grid.training-page-grid>.training-left-stack{grid-column:1!important;grid-row:1!important}body.page-training main>.game-grid.training-page-grid>.game-panel{grid-column:1!important;grid-row:2!important}}
/* Keep bonus annotations legible without widening cards or clipping on mobile. */
.record-stat strong{overflow-wrap:anywhere;line-height:1.35}
.crew-stat-card strong{overflow-wrap:anywhere;white-space:normal!important;line-height:1.3}
.crew-stat-card>span{letter-spacing:0;text-transform:none;font-size:11px;line-height:1.45;margin-top:6px}

/* Final requested layout and dossier polish */
body.page-inbox, body:has(main .inbox-with-log){background:radial-gradient(ellipse at 50% 0%,rgba(22,66,55,.22),transparent 55%),#050b0a!important;background-attachment:fixed!important;}
body:has(main .inbox-with-log) main > .game-grid.inbox-grid.inbox-with-log{background:transparent!important;}
.rank-crew-name{display:inline-block;margin-left:3px;color:#b7e87d;font-size:.84em;font-weight:600;white-space:normal;}
.spy-dossier-grid{align-items:stretch}.spy-dossier-row{min-width:0;overflow-wrap:anywhere}.spy-dossier-row strong{line-height:1.3}


/* Compact mobile rankings: keep rival identity and meaningful actions, not a squeezed spreadsheet. */
@media (max-width: 760px){
 .leaderboard-wide .table-wrap{overflow-x:visible!important;}
 .leaderboard-wide .realm-rankings-table{min-width:0!important;width:100%!important;table-layout:auto!important;}
 .leaderboard-wide .realm-rankings-table thead th:nth-child(3),.leaderboard-wide .realm-rankings-table tbody td:nth-child(3),
 .leaderboard-wide .realm-rankings-table thead th:nth-child(4),.leaderboard-wide .realm-rankings-table tbody td:nth-child(4),
 .leaderboard-wide .realm-rankings-table thead th:nth-child(5),.leaderboard-wide .realm-rankings-table tbody td:nth-child(5),
 .leaderboard-wide .realm-rankings-table thead th:nth-child(6),.leaderboard-wide .realm-rankings-table tbody td:nth-child(6),
 .leaderboard-wide .realm-rankings-table thead th:nth-child(7),.leaderboard-wide .realm-rankings-table tbody td:nth-child(7),
 .leaderboard-wide .realm-rankings-table thead th:nth-child(8),.leaderboard-wide .realm-rankings-table tbody td:nth-child(8){display:none!important;}
 .leaderboard-wide .realm-rankings-table th,.leaderboard-wide .realm-rankings-table td{padding:10px 5px!important;font-size:.82rem;}
 .leaderboard-wide .realm-rankings-table th:nth-child(1),.leaderboard-wide .realm-rankings-table td:nth-child(1){width:10%;}
 .leaderboard-wide .realm-rankings-table th:nth-child(2),.leaderboard-wide .realm-rankings-table td:nth-child(2){width:43%;text-align:left!important;}
 .leaderboard-wide .realm-rankings-table th:nth-child(9),.leaderboard-wide .realm-rankings-table td:nth-child(9){width:47%;}
 .leaderboard-wide .realm-rankings-table td:nth-child(9) .rank-actions{flex-wrap:wrap!important;gap:5px!important;}
 .leaderboard-wide .rank-actions .button,.leaderboard-wide .realm-rankings-table td:nth-child(9) .rank-actions .button{min-width:0!important;padding:7px 8px!important;font-size:.74rem!important;}
 .leaderboard-wide .rank-profile-link{overflow-wrap:anywhere;}
 .leaderboard-wide .rank-crew-name{display:block;font-size:.72rem;}
}

/* Arena page: match the tighter, deliberate proportions used by Battle. */
.arena-warning-panel{box-sizing:border-box;width:calc(100% - 32px);max-width:1180px;margin:18px auto 26px!important;padding:24px!important;}
.arena-warning-panel>.subcopy{max-width:760px;margin:10px 0 18px;}
.arena-warning-panel>.arena-death-warning{max-width:none;margin:14px 0 18px;padding:12px 15px;border-radius:10px;}
.arena-warning-panel .arena-target-choices{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;margin-top:18px;}
.arena-warning-panel .arena-target-choices>.inventory-item{box-sizing:border-box;min-height:0;height:100%;padding:20px;gap:12px;}
.arena-warning-panel .arena-target-choices>.inventory-item>div{display:flex;flex-direction:column;align-items:flex-start;gap:8px;}
.arena-warning-panel .arena-target-choices>.inventory-item>div>small{line-height:1.55;}
.arena-warning-panel .arena-target-form{width:100%;margin-top:8px;}
.arena-warning-panel .arena-name-card .arena-target-form{display:grid;grid-template-columns:minmax(0,1fr);}
.arena-warning-panel .arena-name-card input[name="character_name"]{box-sizing:border-box;width:100%;}
.arena-warning-panel .arena-name-label{margin-bottom:-3px;}
@media(max-width:760px){.arena-warning-panel{width:calc(100% - 24px);padding:17px!important}.arena-warning-panel .arena-target-choices{grid-template-columns:minmax(0,1fr);gap:12px}.arena-warning-panel .arena-target-choices>.inventory-item{padding:16px}.arena-warning-panel .arena-target-form .button{width:auto;max-width:100%}.arena-warning-panel .arena-name-card .arena-target-form .button{width:100%}}

/* Training page: keep both armory repair actions together at the top of the Armory panel. */
body.page-training .training-repair-box{width:100%;margin:0 0 22px;box-sizing:border-box;border:1px solid rgba(45,194,209,.38);border-radius:14px;padding:16px;background:linear-gradient(135deg,rgba(14,34,42,.72),rgba(5,17,24,.9));}
body.page-training .training-repair-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch;}
body.page-training .training-repair-card{min-width:0;box-sizing:border-box;border:1px solid rgba(45,194,209,.25);border-radius:10px;padding:16px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;background:rgba(7,22,30,.72);}
body.page-training .training-repair-card h3{margin:2px 0 4px;font-size:1.1rem;}
body.page-training .training-repair-card p{margin:0;color:var(--text-secondary,#a6b8b7);}
body.page-training .training-repair-card small{display:block;line-height:1.5;}
body.page-training .training-repair-card form{margin-top:auto;padding-top:8px;width:100%;}
body.page-training .training-repair-card form button{width:100%;}
@media(max-width:650px){body.page-training .training-repair-grid{grid-template-columns:minmax(0,1fr);}body.page-training .training-repair-box{padding:10px;}body.page-training .training-repair-card{padding:13px;}}

/* Feedback inbox: readable admin table with breathing room */
.feedback-inbox { overflow: hidden; }
.feedback-inbox > h2 { margin: 7px 0 8px; font-size: 1.45rem; }
.feedback-inbox > .game-note { margin: 0 0 18px; }
.feedback-inbox .table-scroll { width: 100%; overflow-x: auto; border: 1px solid rgba(96, 185, 198, .24); border-radius: 12px; background: rgba(3, 12, 17, .42); }
.feedback-inbox table { width: 100%; min-width: 820px; border-collapse: collapse; table-layout: fixed; }
.feedback-inbox th { padding: 13px 15px; text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: #9de9df; background: rgba(29, 64, 72, .42); border-bottom: 1px solid rgba(96, 185, 198, .28); }
.feedback-inbox td { padding: 15px; vertical-align: top; border-bottom: 1px solid rgba(96, 185, 198, .14); line-height: 1.55; overflow-wrap: anywhere; }
.feedback-inbox tbody tr:last-child td { border-bottom: 0; }
.feedback-inbox tbody tr:hover { background: rgba(96, 185, 198, .055); }
.feedback-inbox th:nth-child(1), .feedback-inbox td:nth-child(1) { width: 7%; }
.feedback-inbox th:nth-child(2), .feedback-inbox td:nth-child(2) { width: 15%; }
.feedback-inbox th:nth-child(3), .feedback-inbox td:nth-child(3) { width: 17%; }
.feedback-inbox th:nth-child(4), .feedback-inbox td:nth-child(4) { width: 38%; }
.feedback-inbox th:nth-child(5), .feedback-inbox td:nth-child(5) { width: 10%; }
.feedback-inbox th:nth-child(6), .feedback-inbox td:nth-child(6) { width: 13%; }
.feedback-inbox td form { margin: 0; }
.feedback-inbox td .button { white-space: nowrap; padding: 8px 11px; }
@media (max-width: 720px) { .feedback-inbox { padding: 15px !important; } .feedback-inbox table { min-width: 820px; } }

/* JOEADACTLE landing + auth refresh: cinematic, responsive, and conversion-focused. */
.home-screen.auth-layout{max-width:1240px;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);min-height:640px;margin:34px auto 28px;border:1px solid #d7f58a28;border-radius:20px;overflow:hidden;box-shadow:0 30px 90px #0008;background:#0d110e;position:relative}
.home-art.auth-art{min-height:640px;padding:clamp(34px,5vw,72px);background:radial-gradient(ellipse at 75% 25%,#31462b80 0%,transparent 34%),linear-gradient(145deg,#1c2a20 0%,#101712 62%,#0b100d 100%)}
.home-art:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 49%,#d7f58a08 50%,transparent 51%),linear-gradient(0deg,transparent 49%,#d7f58a07 50%,transparent 51%);background-size:44px 44px;mask-image:linear-gradient(135deg,#000,transparent 82%);pointer-events:none}
.home-art:after{width:430px;height:430px;right:-145px;top:12%;border-color:#d7f58a35;box-shadow:0 0 0 34px #d7f58a07,0 0 0 72px #d7f58a05,0 0 90px #d7f58a0b}
.home-art .orbit{width:460px;height:460px;right:-155px;top:10%;border-color:#d7f58a25}.home-art .orbit-two{width:330px;height:330px;right:-90px;top:20%;border-style:dashed}
.home-art .art-glyph{font-size:clamp(46px,6vw,76px);margin-top:44px;text-shadow:0 0 44px #d7f58a88}
.home-art h1{font-size:clamp(52px,6vw,82px);line-height:.97;max-width:620px;margin:20px 0 18px;letter-spacing:-.085em}.home-art>p{font-size:14px;max-width:410px;color:#b6c0b4;line-height:1.9}
.home-feature-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px;position:relative;z-index:1}.home-feature-pills span{padding:8px 10px;border:1px solid #d7f58a2a;border-radius:999px;background:#0b100d88;color:#d9e8c5;font:9px var(--mono);letter-spacing:.08em}
.home-panel.auth-panel{padding:clamp(28px,4vw,56px);background:linear-gradient(160deg,#171d17,#101410 70%);position:relative}.home-panel:before{content:"";position:absolute;top:0;left:12%;right:12%;height:1px;background:linear-gradient(90deg,transparent,#d7f58a88,transparent)}
.home-panel .eyebrow{font-size:9px}.home-panel h2{font-size:clamp(38px,4vw,52px);line-height:1.02;margin:22px 0 12px;letter-spacing:-.075em}.home-panel .subcopy{font-size:13px;line-height:1.85;margin-bottom:30px;max-width:370px}
.home-actions{display:grid;gap:12px}.home-actions .button{width:100%;min-height:56px;padding:16px 18px;border-radius:8px;font-size:13px}.home-primary{box-shadow:0 10px 32px #d7f58a1c}.home-secondary{justify-content:space-between;border:1px solid #ffffff22;border-radius:8px;background:#ffffff04;color:#d7d9cf}.home-secondary:hover{border-color:#d7f58a70;background:#d7f58a08;color:#efffcf}
.home-divider{display:flex;align-items:center;gap:12px;margin:28px 0 18px;color:#858d80;font:8px var(--mono);letter-spacing:.12em;white-space:nowrap}.home-divider span{height:1px;background:#ffffff15;flex:1}
.home-mini-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #ffffff13;border-radius:10px;background:#0b100d66}.home-mini-stats>div{padding:15px 8px;display:grid;gap:4px;text-align:center;border-right:1px solid #ffffff12}.home-mini-stats>div:last-child{border-right:0}.home-mini-stats b{font:600 18px var(--display);color:var(--lime);letter-spacing:-.04em}.home-mini-stats small{font:8px var(--mono);letter-spacing:.08em;color:#8d988b}
.home-card-foot{font-size:8px;letter-spacing:.1em;color:#7f8b7d}.home-feature-strip{max-width:1240px;margin:0 auto 55px;padding:0 2px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #ffffff13;border-radius:14px;background:linear-gradient(110deg,#111711,#0d110e)}.home-feature-strip article{padding:22px 26px;border-right:1px solid #ffffff13}.home-feature-strip article:last-child{border-right:0}.home-feature-strip article>span{display:block;font:8px var(--mono);letter-spacing:.12em;color:var(--lime);margin-bottom:12px}.home-feature-strip article>b{font:500 19px var(--display);letter-spacing:-.04em}.home-feature-strip article>p{font-size:11px;line-height:1.8;color:#969f92;margin:8px 0 0}
/* Login and registration share the same premium visual language without changing their forms. */
.auth-layout:not(.home-screen){border-radius:18px;overflow:hidden;border-color:#d7f58a28;box-shadow:0 28px 80px #0007;background:#0d110e}.auth-layout:not(.home-screen) .auth-art{background:radial-gradient(ellipse at 78% 20%,#34472a70,transparent 38%),linear-gradient(145deg,#1b281e,#101611 70%,#0b100d)}.auth-layout:not(.home-screen) .auth-panel{background:linear-gradient(155deg,#171d17,#101410)}.auth-panel .stack-form .button{border-radius:8px;min-height:52px}.auth-panel .field input{border-radius:8px;padding:15px 14px;background:#0b100d;border-color:#343f32}.auth-panel .field input:focus{border-color:var(--lime);box-shadow:0 0 0 3px #d7f58a12}.auth-panel .form-switch a{font-weight:700}
@media(max-width:900px){.home-screen.auth-layout{margin:22px 16px 22px;grid-template-columns:minmax(0,1fr) minmax(310px,.9fr)}.home-art.auth-art{padding:36px 30px}.home-art h1{font-size:clamp(46px,6vw,64px)}.home-panel.auth-panel{padding:32px 26px}.home-feature-strip{margin-left:16px;margin-right:16px}}
@media(max-width:680px){.home-screen.auth-layout{display:flex;flex-direction:column;margin:14px 10px 20px;min-height:0;border-radius:15px}.home-art.auth-art{min-height:0;padding:28px 23px 25px}.home-art .art-glyph{font-size:38px;margin-top:25px}.home-art h1{font-size:clamp(43px,12vw,60px);margin:14px 0 12px}.home-art>p{font-size:12px;line-height:1.75}.home-art .art-foot{margin-top:24px;padding-top:20px;font-size:7px}.home-art:after{width:230px;height:230px;right:-100px;top:8%}.home-art .orbit{width:260px;height:260px;right:-110px;top:6%}.home-art .orbit-two{width:190px;height:190px;right:-75px;top:15%}.home-feature-pills{gap:6px}.home-feature-pills span{font-size:8px;padding:7px 8px}.home-panel.auth-panel{padding:28px 23px}.home-panel h2{font-size:39px;margin-top:15px}.home-panel .subcopy{margin-bottom:22px}.home-mini-stats>div{padding:12px 4px}.home-mini-stats b{font-size:16px}.home-mini-stats small{font-size:7px}.home-feature-strip{grid-template-columns:1fr;margin:0 10px 30px}.home-feature-strip article{padding:17px 20px;border-right:0;border-bottom:1px solid #ffffff13}.home-feature-strip article:last-child{border-bottom:0}.auth-layout:not(.home-screen){margin:14px 10px 35px}.auth-layout:not(.home-screen) .auth-art{min-height:285px}}

/* Public sign-in and registration screens: remove the game navigation chrome. */
body.page-login header.topbar,
body.page-register header.topbar,
body.page-signup header.topbar{display:none!important}
body.page-login .home-screen.auth-layout,
body.page-register .home-screen.auth-layout,
body.page-signup .home-screen.auth-layout{margin-top:clamp(28px,7vh,76px)}
@media(max-width:680px){body.page-login .home-screen.auth-layout,body.page-register .home-screen.auth-layout,body.page-signup .home-screen.auth-layout{margin-top:16px}}


/* Public landing page: match the clean login screen by removing the global top bar. */
body.page-home header.topbar { display: none !important; visibility: hidden !important; height: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; overflow: hidden !important; }


/* Final landing-page header removal: default route uses page-dashboard, not page-home. */
body:has(.home-screen) > header.topbar { display:none!important; visibility:hidden!important; height:0!important; min-height:0!important; margin:0!important; padding:0!important; border:0!important; overflow:hidden!important; }


/* Help page uses the same clean, distraction-free header treatment as the public landing page. */
body.page-help header.topbar { display:none!important; visibility:hidden!important; height:0!important; min-height:0!important; margin:0!important; padding:0!important; border:0!important; overflow:hidden!important; }


/* November 2026 UI corrections: flash reports, crew theme support and disabled-state clarity */
.chronicle-flash{display:flex!important;align-items:flex-start!important;gap:14px!important;width:calc(100% - 28px)!important;max-width:980px!important;min-width:0!important;margin:18px auto!important;padding:14px 18px!important;box-sizing:border-box!important}
.chronicle-flash>img{display:block!important;flex:0 0 58px!important;width:58px!important;height:58px!important;max-width:58px!important;max-height:58px!important;object-fit:contain!important;margin:0!important}
.chronicle-flash .chronicle-flash-copy{flex:1 1 auto!important;min-width:0!important;max-width:none!important;overflow-wrap:anywhere!important}
.chronicle-flash .chronicle-flash-label{display:block!important;line-height:1.4!important;margin-bottom:5px!important}
.chronicle-flash .chronicle-flash-copy p{margin:3px 0!important;line-height:1.55!important;white-space:normal!important;overflow-wrap:anywhere!important}
.crew-perks-panel{opacity:1!important;filter:none!important;pointer-events:auto!important;box-sizing:border-box!important}
.crew-perks-panel .crew-perk-row{opacity:1!important;filter:none!important}
.crew-perks-panel .crew-perk-row button:disabled{opacity:.48!important;cursor:not-allowed!important}
.crew-stat-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:16px 0!important}
.crew-stat-card{min-width:0!important;border-radius:12px!important;padding:15px!important}
.crew-stat-card strong{display:block!important;overflow-wrap:anywhere!important}
body[data-theme="neon"] .crew-perks-panel{background:linear-gradient(145deg,#101d20,#091316)!important;border-color:#28515a!important;color:#e6f4f5!important}
body[data-theme="neon"] .crew-stat-card{background:linear-gradient(145deg,#10272b,#0b171b)!important;border:1px solid #28515a!important;color:#e6f4f5!important}
body[data-theme="classic-green"] .crew-perks-panel{background:linear-gradient(145deg,#182319,#0c130d)!important;border-color:#344d30!important;color:#edf5e7!important}
body[data-theme="classic-green"] .crew-stat-card{background:linear-gradient(145deg,#182b21,#101b14)!important;border:1px solid #344d30!important;color:#edf5e7!important}
body[data-theme="daylight"] .crew-perks-panel{background:#f8fafc!important;border:1px solid #d5dde7!important;color:#172033!important;box-shadow:0 8px 24px #1720330a!important}
body[data-theme="daylight"] .crew-perks-panel .game-note,body[data-theme="daylight"] .crew-perk-row small{color:#536278!important}
body[data-theme="daylight"] .crew-perks-panel .crew-perk-row{border-top-color:#e1e7ef!important}
body[data-theme="daylight"] .crew-perks-panel .crew-perk-row strong{color:#176b58!important}
body[data-theme="daylight"] .crew-stat-card{background:linear-gradient(145deg,#eff7f3,#e5f0eb)!important;border:1px solid #c9ddd3!important;color:#172b25!important}
@media(max-width:640px){.chronicle-flash{width:calc(100% - 20px)!important;padding:12px!important;gap:10px!important}.chronicle-flash>img{flex-basis:42px!important;width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important}.crew-stat-grid{grid-template-columns:1fr!important}}


/* Shared theme-consistent panels for the November 2026 UI pass. */
body .explore-world .explore-briefing,
body .explore-world .explore-region-card,
body .galaxy-search-panel,
body .intel-hero,
body .intel-dossier,
body .crew-charter-card,
body .crew-perks-panel {color:var(--ink);border-color:var(--line);background:var(--panel);}
body .explore-world .explore-briefing p,
body .explore-world .explore-region-card p,
body .galaxy-search-panel p,
body .intel-hero p,
body .crew-charter-card p {color:var(--muted);}
body .explore-world .explore-briefing,
body .galaxy-search-panel,
body .intel-hero {border:1px solid var(--line)!important;border-radius:14px!important;box-shadow:0 8px 24px rgba(0,0,0,.07);}
body .explore-world .explore-region-card {border:1px solid var(--line)!important;border-radius:14px!important;}
body .explore-world .explore-region-card .explore-level-requirement {color:var(--muted)!important;}
body .galaxy-countdown {background:color-mix(in srgb,var(--lime) 14%,var(--panel))!important;color:var(--ink)!important;border:1px solid var(--line);}
body .galaxy-search-panel .galaxy-odds {color:var(--muted)!important;}
body .intel-hero {padding:22px!important;margin-bottom:16px!important;}
body .intel-hero h1,body .intel-hero .eyebrow,body .intel-hero p {color:var(--ink)!important;}
body .intel-hero p {color:var(--muted)!important;}
body .rank-player-bio {font-size:.78rem;line-height:1.45;color:var(--muted);margin-top:5px;overflow-wrap:anywhere;text-align:left;}
body[data-theme="daylight"] .explore-world .explore-briefing,
body[data-theme="daylight"] .explore-world .explore-region-card,
body[data-theme="daylight"] .galaxy-search-panel,
body[data-theme="daylight"] .intel-hero,
body[data-theme="daylight"] .crew-charter-card {background:#f8fafc!important;color:#172033!important;border-color:#d5dde7!important;}
body[data-theme="daylight"] .explore-world .explore-briefing p,
body[data-theme="daylight"] .explore-world .explore-region-card p,
body[data-theme="daylight"] .galaxy-search-panel p,
body[data-theme="daylight"] .intel-hero p,
body[data-theme="daylight"] .crew-charter-card p {color:#536278!important;}
body[data-theme="classic-green"] .explore-world .explore-briefing,
body[data-theme="classic-green"] .explore-world .explore-region-card,
body[data-theme="classic-green"] .galaxy-search-panel,
body[data-theme="classic-green"] .intel-hero,
body[data-theme="classic-green"] .crew-charter-card {background:linear-gradient(145deg,#182b21,#101b14)!important;color:#edf5e7!important;border-color:#344d30!important;}
body[data-theme="classic-green"] .explore-world .explore-briefing p,
body[data-theme="classic-green"] .explore-world .explore-region-card p,
body[data-theme="classic-green"] .galaxy-search-panel p,
body[data-theme="classic-green"] .intel-hero p,
body[data-theme="classic-green"] .crew-charter-card p {color:#b8c9b8!important;}
body[data-theme="neon"] .explore-world .explore-briefing,
body[data-theme="neon"] .explore-world .explore-region-card,
body[data-theme="neon"] .galaxy-search-panel,
body[data-theme="neon"] .intel-hero,
body[data-theme="neon"] .crew-charter-card {background:linear-gradient(145deg,#10272b,#0b171b)!important;color:#e6f4f5!important;border-color:#28515a!important;}
body[data-theme="neon"] .explore-world .explore-briefing p,
body[data-theme="neon"] .explore-world .explore-region-card p,
body[data-theme="neon"] .galaxy-search-panel p,
body[data-theme="neon"] .intel-hero p,
body[data-theme="neon"] .crew-charter-card p {color:#a9c7cb!important;}
@media(max-width:760px){body .explore-world .explore-region-grid{grid-template-columns:1fr!important}body .explore-world .explore-briefing{grid-template-columns:1fr!important}}


/* Keep authentication screens visually consistent regardless of a player's saved in-game theme. */
body.page-login,body.page-register,body.page-forgot,body.page-reset,body.page-resend{background:#101713!important;color:#edf5e7!important}
body.page-login .auth-layout,body.page-register .auth-layout,body.page-forgot .auth-layout,body.page-reset .auth-layout,body.page-resend .auth-layout{background:#101713!important;border-color:#344d30!important}
body.page-login .auth-art,body.page-register .auth-art,body.page-forgot .auth-art,body.page-reset .auth-art,body.page-resend .auth-art{background:linear-gradient(145deg,#182b21,#0c130d 75%)!important;color:#edf5e7!important}
body.page-login .auth-panel,body.page-register .auth-panel,body.page-forgot .auth-panel,body.page-reset .auth-panel,body.page-resend .auth-panel{background:#111a14!important;color:#edf5e7!important}
body.page-login .auth-panel h2,body.page-register .auth-panel h2,body.page-forgot .auth-panel h2,body.page-reset .auth-panel h2,body.page-resend .auth-panel h2{color:#edf5e7!important}
body.page-login .field input,body.page-register .field input,body.page-forgot .field input,body.page-reset .field input,body.page-resend .field input{background:#0b120d!important;color:#edf5e7!important;border-color:#344d30!important}
body.page-login .legal-note,body.page-register .legal-note,body.page-forgot .legal-note,body.page-reset .legal-note,body.page-resend .legal-note{color:#a5b7a5!important}
/* Explore artwork and cards now inherit the selected theme, not fixed dark/blue artwork treatments. */
body[data-theme="daylight"] .explore-world .explore-sky{background:linear-gradient(100deg,#edf3f8ee,#edf3f8a8 60%,#edf3f844),url('veil-wilds.svg') center/cover!important}
body[data-theme="daylight"] .explore-world .explore-region-grid{background:#eef3f8!important}
body[data-theme="daylight"] .explore-world .explore-region-card{background:#fff!important;box-shadow:0 8px 24px rgba(23,32,51,.07)!important}
body[data-theme="daylight"] .explore-world .explore-region-card h3{color:#172033!important;text-shadow:none!important}
body[data-theme="daylight"] .explore-world .explore-region-card small{color:#536278!important}
body[data-theme="classic-green"] .explore-world .explore-sky{background:linear-gradient(100deg,#0b100de8,#0b100d88),url('veil-wilds.svg') center/cover!important}
body[data-theme="classic-green"] .explore-world .explore-region-grid{background:#0e1511!important}
body[data-theme="classic-green"] .explore-world .explore-region-card{background:linear-gradient(145deg,#182b21,#101b14)!important}
body[data-theme="neon"] .explore-world .explore-sky{background:linear-gradient(100deg,#041018f2,#07151b70),url('veil-wilds.svg') center/cover!important}
body[data-theme="neon"] .explore-world .explore-region-grid{background:#071219!important}
body[data-theme="neon"] .explore-world .explore-region-card{background:linear-gradient(145deg,#10272b,#0b171b)!important}
/* Arena art is decorative; keep it inside the battle column rather than letting it dominate the page. */
body.page-battle .arena-visual,body.page-battle .arena-art,body.page-battle .arena-hero-art,body.page-battle .arena-illustration,body.page-arena .arena-visual,body.page-arena .arena-art,body.page-arena .arena-hero-art,body.page-arena .arena-illustration{width:min(100%,300px)!important;max-width:300px!important;max-height:300px!important;margin-inline:auto!important;overflow:hidden!important}
body.page-battle .arena-visual img,body.page-battle .arena-art img,body.page-battle .arena-hero-art img,body.page-battle .arena-illustration img,body.page-arena .arena-visual img,body.page-arena .arena-art img,body.page-arena .arena-hero-art img,body.page-arena .arena-illustration img{display:block!important;width:100%!important;max-width:300px!important;max-height:300px!important;object-fit:contain!important}
body.page-battle main img[src*="veil-arena"],body.page-arena main img[src*="veil-arena"]{width:min(100%,300px)!important;max-width:300px!important;max-height:300px!important;object-fit:contain!important}

/* Match the remaining dashboard and crew panels to the active theme. */
body[data-theme="daylight"] .home-galaxy-bubble,body[data-theme="daylight"] .home-galaxies-panel,body[data-theme="daylight"] .wealth-home-panel,body[data-theme="daylight"] .crew-fee-banner{background:#f8fafc!important;color:#172033!important;border:1px solid #d5dde7!important;box-shadow:0 8px 24px rgba(23,32,51,.06)!important}
body[data-theme="daylight"] .home-galaxy-bubble h3,body[data-theme="daylight"] .home-galaxies-panel h2,body[data-theme="daylight"] .wealth-home-panel h3,body[data-theme="daylight"] .crew-fee-banner strong{color:#172033!important}
body[data-theme="daylight"] .home-galaxy-empty,body[data-theme="daylight"] .home-galaxy-pill,body[data-theme="daylight"] .crew-fee-banner span{color:#536278!important}
body[data-theme="daylight"] .home-galaxy-pill{background:#eef5f1!important;border-color:#c9ddd3!important}
body[data-theme="classic-green"] .home-galaxy-bubble,body[data-theme="classic-green"] .home-galaxies-panel,body[data-theme="classic-green"] .wealth-home-panel,body[data-theme="classic-green"] .crew-fee-banner{background:linear-gradient(145deg,#182b21,#101b14)!important;color:#edf5e7!important;border-color:#344d30!important}
body[data-theme="neon"] .home-galaxy-bubble,body[data-theme="neon"] .home-galaxies-panel,body[data-theme="neon"] .wealth-home-panel,body[data-theme="neon"] .crew-fee-banner{background:linear-gradient(145deg,#10272b,#0b171b)!important;color:#e6f4f5!important;border-color:#28515a!important}
body[data-theme="daylight"] .crew-charter-card .field input,body[data-theme="daylight"] .crew-charter-card input{background:#fff!important;color:#172033!important;border-color:#cbd5e1!important}
body[data-theme="daylight"] .crew-charter-card .eyebrow,body[data-theme="daylight"] .crew-charter-card h3{color:#172033!important}
body[data-theme="classic-green"] .crew-charter-card input,body[data-theme="neon"] .crew-charter-card input{background:rgba(0,0,0,.25)!important;color:inherit!important}
/* Keep the Arena's central emblem from expanding beyond its visual card. */
body.page-battle main .battle-arena-art,body.page-battle main .battle-arena-visual,body.page-battle main .arena-emblem-panel,body.page-battle main .arena-stage-visual{width:min(100%,300px)!important;max-width:300px!important;max-height:300px!important;margin-inline:auto!important;overflow:hidden!important}
body.page-battle main .battle-arena-art img,body.page-battle main .battle-arena-visual img,body.page-battle main .arena-emblem-panel img,body.page-battle main .arena-stage-visual img{width:100%!important;max-width:300px!important;max-height:300px!important;object-fit:contain!important}

/* V39: compact Home character overview. Keep all theme colours intact. */
body.page-dashboard .character-hero{
  padding:20px 22px!important;
  border-radius:18px!important;
}
body.page-dashboard .character-hero:after{
  width:190px!important;height:190px!important;right:-45px!important;top:-85px!important;
  box-shadow:0 0 0 16px #d7f58a04,0 0 0 34px #d7f58a03!important;
}
body.page-dashboard .character-hero>h1{
  font-size:clamp(34px,3.2vw,46px)!important;
  line-height:1!important;
  margin:12px 0 8px!important;
}
body.page-dashboard .character-hero>.character-class-line{
  margin:0 0 12px!important;font-size:13px!important;
}
body.page-dashboard .character-hero .character-stat-grid{
  margin-top:10px!important;gap:9px!important;
}
body.page-dashboard .character-hero .character-stat-card{
  min-height:58px!important;padding:9px 12px!important;
}
body.page-dashboard .character-hero .character-stat-card>strong{
  font-size:clamp(17px,1.35vw,22px)!important;
}
body.page-dashboard .character-hero .level-meta{
  margin-top:6px!important;font-size:11px!important;
}
@media(max-width:760px){
  body.page-dashboard .character-hero{padding:16px 14px!important}
  body.page-dashboard .character-hero>h1{font-size:34px!important;margin:9px 0 7px!important}
  body.page-dashboard .character-hero .character-stat-card{min-height:54px!important;padding:8px 10px!important}
}


/* V40: dashboard Galaxy strip must follow the selected theme, not retain its legacy dark treatment. */
body.page-dashboard[data-theme="daylight"] .home-galaxy-sections .home-galaxy-bubble{
  background:#ffffff!important;
  color:#172033!important;
  border:1px solid #cbd5e1!important;
  box-shadow:0 8px 24px rgba(23,32,51,.06)!important;
}
body.page-dashboard[data-theme="daylight"] .home-galaxy-sections .home-galaxy-bubble h3,
body.page-dashboard[data-theme="daylight"] .home-galaxy-sections .home-galaxy-bubble p,
body.page-dashboard[data-theme="daylight"] .home-galaxy-sections .home-galaxy-bubble a{
  color:#526174!important;
}
body.page-dashboard[data-theme="classic-green"] .home-galaxy-sections .home-galaxy-bubble{
  background:linear-gradient(145deg,#182b21,#101b14)!important;
  color:#edf5e7!important;border-color:#344d30!important;
}
body.page-dashboard[data-theme="neon"] .home-galaxy-sections .home-galaxy-bubble{
  background:linear-gradient(145deg,#10272b,#0b171b)!important;
  color:#e6f4f5!important;border-color:#28515a!important;
}
body.page-dashboard .home-galaxy-sections .home-galaxy-bubble h3{margin-top:0!important}


/* THE VEIL PUBLIC HOMEPAGE / REAL GAMEPLAY SHOWCASE */
.veil-showcase{width:min(1240px,calc(100% - 40px));margin:clamp(46px,7vw,88px) auto 70px;color:var(--text,#edf5e9)}
.veil-showcase-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px;padding:0 2px}
.veil-showcase-heading h2{font-size:clamp(32px,4.5vw,54px);line-height:1.02;letter-spacing:-.055em;margin:10px 0 12px}
.veil-showcase-heading h2 em{font-style:normal;color:var(--accent,#c7ef83)}
.veil-showcase-heading p{margin:0;color:var(--muted,#a5b5aa);max-width:620px;line-height:1.65}
.veil-showcase-stamp{flex:none;border:1px solid rgba(190,235,143,.25);border-radius:10px;padding:12px 15px;color:#c8ed98;background:rgba(129,184,92,.07);font:800 9px/1.7 ui-monospace,monospace;letter-spacing:.13em;text-align:center}
.veil-showcase-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.veil-shot{position:relative;display:block;min-width:0;aspect-ratio:16/9;overflow:hidden;border:1px solid rgba(160,210,142,.22);border-radius:15px;background:#07100d;box-shadow:0 16px 38px rgba(0,0,0,.22);isolation:isolate}
.veil-shot img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .55s cubic-bezier(.2,.7,.2,1),filter .4s ease;filter:saturate(.88) brightness(.84)}
.veil-shot:after{content:"";position:absolute;inset:25% 0 0;background:linear-gradient(180deg,transparent,rgba(3,10,8,.88));z-index:0;pointer-events:none}
.veil-shot-overlay{position:absolute;z-index:1;left:20px;right:20px;bottom:17px;display:grid;gap:4px;color:#f1f7ed}
.veil-shot-overlay small{font:800 8px/1.4 ui-monospace,monospace;letter-spacing:.16em;color:#c6ed8c}
.veil-shot-overlay b{font-size:clamp(20px,2.4vw,29px);letter-spacing:-.04em}
.veil-shot-overlay i{font-style:normal;font-size:11px;color:#d0dfd0;opacity:.82}
.veil-shot:hover img,.veil-shot:focus-visible img{transform:scale(1.035);filter:saturate(1.08) brightness(1)}
.veil-shot:focus-visible{outline:2px solid #c8ef8b;outline-offset:4px}
.veil-showcase-disclaimer{display:flex;align-items:flex-start;gap:14px;margin-top:18px;padding:18px 20px;border:1px solid rgba(188,230,143,.19);border-radius:12px;background:linear-gradient(110deg,rgba(116,163,86,.10),rgba(12,28,22,.7))}
.veil-disclaimer-icon{flex:none;color:#c8ef8b;font-size:19px;line-height:1.2}
.veil-showcase-disclaimer p{margin:0;color:#aebeb0;font-size:13px;line-height:1.7}
.veil-showcase-disclaimer strong{color:#e2efda}
.veil-showcase-cta{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-top:16px;padding:24px 26px;border:1px solid rgba(159,214,129,.2);border-radius:14px;background:radial-gradient(ellipse at 8% 50%,rgba(106,170,93,.15),transparent 55%),rgba(9,23,18,.82)}
.veil-showcase-cta h3{margin:6px 0;font-size:clamp(22px,3vw,30px);letter-spacing:-.04em}
.veil-showcase-cta p{margin:0;color:#a8b8ab;font-size:13px}
@media(max-width:700px){.veil-showcase{width:calc(100% - 24px);margin:48px auto}.veil-showcase-heading{align-items:flex-start;flex-direction:column}.veil-showcase-stamp{display:none}.veil-showcase-grid{gap:10px}.veil-shot{border-radius:10px}.veil-shot-overlay{left:11px;right:10px;bottom:10px}.veil-shot-overlay small{font-size:6px}.veil-shot-overlay b{font-size:17px}.veil-shot-overlay i{font-size:9px}.veil-showcase-disclaimer{padding:14px}.veil-showcase-disclaimer p{font-size:12px}.veil-showcase-cta{align-items:flex-start;flex-direction:column;padding:20px}}
@media(max-width:430px){.veil-showcase-grid{grid-template-columns:1fr}.veil-shot{aspect-ratio:16/9}}

/* THE VEIL public landing page: restore the living-world energy and make the homepage an experience. */
body:has(.home-screen){background:radial-gradient(ellipse at 16% 8%,rgba(43,118,79,.19),transparent 33%),radial-gradient(ellipse at 88% 42%,rgba(25,100,93,.13),transparent 35%),#050b09!important}
body:has(.home-screen) .noise{opacity:.19!important}
.home-screen.auth-layout{min-height:690px!important;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr)!important;margin-top:28px!important;box-shadow:0 35px 110px rgba(0,0,0,.48),0 0 90px rgba(86,183,111,.09)!important}
.home-art.auth-art{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 70% 48%,rgba(102,205,133,.18),transparent 32%),radial-gradient(ellipse at 15% 5%,rgba(120,190,96,.16),transparent 38%),linear-gradient(145deg,#1b3025 0%,#101d18 55%,#07110e 100%)!important}
.home-art.auth-art:before{z-index:-1;opacity:.5;background-image:radial-gradient(1.5px 1.5px at 12% 17%,#eaffd4 99%,transparent),radial-gradient(1px 1px at 31% 62%,#b8e6c5 99%,transparent),radial-gradient(1.5px 1.5px at 72% 24%,#eaffd4 99%,transparent),radial-gradient(1px 1px at 88% 73%,#b8e6c5 99%,transparent);background-size:230px 190px,310px 270px,370px 330px,420px 360px;animation:home-star-drift 55s linear infinite}
.home-art.auth-art:after{z-index:-1;animation:home-orbit-pulse 9s ease-in-out infinite alternate}
.home-art .orbit{animation:home-orbit-spin 70s linear infinite}.home-art .orbit-two{animation:home-orbit-spin 48s linear infinite reverse}
.home-art .art-glyph{color:#c9ff91;animation:home-glyph-pulse 4s ease-in-out infinite}
.home-art h1 em{color:#69e8d5!important;text-shadow:0 0 35px rgba(68,225,192,.14)}
.home-panel.auth-panel{background:radial-gradient(ellipse at 100% 0%,rgba(74,154,105,.16),transparent 45%),linear-gradient(160deg,#17241c,#0d1511 75%)!important}
.home-panel .home-primary{box-shadow:0 12px 38px rgba(192,240,128,.2);transition:transform .2s,box-shadow .2s}
.home-panel .home-primary:hover{transform:translateY(-3px);box-shadow:0 18px 48px rgba(192,240,128,.3)}
.home-feature-strip{position:relative;overflow:hidden}.home-feature-strip article{transition:background .25s,transform .25s}.home-feature-strip article:hover{background:rgba(159,220,116,.06);transform:translateY(-2px)}
.realm-proof,.home-encounter,.home-mechanics,.veil-showcase{width:min(1240px,calc(100% - 40px));margin-left:auto;margin-right:auto}
.realm-proof{margin-top:28px;margin-bottom:36px;padding:20px 22px;border:1px solid rgba(133,209,145,.2);border-radius:16px;background:linear-gradient(110deg,rgba(17,39,29,.92),rgba(8,20,17,.95));box-shadow:0 18px 55px rgba(0,0,0,.18)}
.realm-proof-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}
.realm-proof-live{font:800 8px var(--mono,monospace);letter-spacing:.13em;color:#91b5a3}.realm-proof-live i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#59e7c8;box-shadow:0 0 12px #59e7c8;margin-right:7px}
.realm-proof-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.realm-proof-grid article{padding:13px 15px;border:1px solid rgba(175,226,161,.12);border-radius:10px;background:rgba(1,10,7,.35)}
.realm-proof-grid b{display:block;color:#d9f5b5;font:600 clamp(23px,3vw,34px) var(--display,inherit);letter-spacing:-.06em}.realm-proof-grid span{display:block;margin-top:5px;color:#91a89a;font:800 8px var(--mono,monospace);letter-spacing:.1em}
.home-encounter{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:26px;align-items:stretch;margin-top:35px;margin-bottom:74px;padding:clamp(22px,4vw,42px);border:1px solid rgba(119,209,165,.22);border-radius:20px;background:radial-gradient(ellipse at 82% 50%,rgba(28,118,102,.17),transparent 45%),linear-gradient(125deg,#10231b,#09130f 70%);box-shadow:0 26px 80px rgba(0,0,0,.25);overflow:hidden}
.home-encounter-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.home-encounter-copy h2,.home-section-heading h2{font-size:clamp(34px,4vw,51px);line-height:1.01;letter-spacing:-.065em;margin:13px 0}
.home-encounter-copy h2 em,.home-section-heading h2 em{font-style:normal;color:#c8ef83}
.home-encounter-copy>p{max-width:390px;color:#a7b8aa;font-size:13px;line-height:1.8}
.home-encounter-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.encounter-choice{padding:10px 14px;border:1px solid rgba(168,224,151,.2);border-radius:9px;background:rgba(255,255,255,.025);color:#b6c9b8;font:800 10px var(--mono,monospace);cursor:pointer;transition:.2s}
.encounter-choice:hover,.encounter-choice.is-active{border-color:#bce987;background:rgba(182,233,128,.12);color:#e0ffb9;box-shadow:0 0 22px rgba(171,231,121,.08)}
.encounter-output{display:grid;gap:6px;max-width:440px;min-height:76px;margin:5px 0 18px;padding:13px 15px;border-left:2px solid #6de5c9;background:rgba(1,10,8,.42)}
.encounter-output b{font:800 8px var(--mono,monospace);letter-spacing:.14em;color:#72e8d0}.encounter-output span{font-size:11px;line-height:1.6;color:#a9bcae}
.home-encounter-copy>.button{min-height:47px}
.home-sector-map{position:relative;min-height:390px;overflow:hidden;border:1px solid rgba(127,217,181,.2);border-radius:16px;background:radial-gradient(circle at 53% 46%,rgba(80,188,143,.22),transparent 5%),radial-gradient(ellipse at 50% 50%,rgba(29,91,78,.22),transparent 45%),linear-gradient(145deg,rgba(4,16,16,.7),rgba(7,18,14,.95))}
.home-sector-map:before{content:"";position:absolute;inset:0;opacity:.23;background-image:linear-gradient(rgba(131,221,178,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(131,221,178,.13) 1px,transparent 1px);background-size:34px 34px;mask-image:radial-gradient(ellipse at center,#000,transparent 78%)}
.sector-orbit{position:absolute;left:50%;top:45%;border:1px solid rgba(134,226,181,.23);border-radius:50%;transform:translate(-50%,-50%) rotate(-22deg)}
.sector-orbit-one{width:74%;height:55%;animation:home-map-rotate 40s linear infinite}.sector-orbit-two{width:55%;height:82%;border-style:dashed;animation:home-map-rotate 55s linear infinite reverse}
.sector-sun{position:absolute;left:50%;top:45%;width:94px;height:94px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle at 34% 30%,#e3ffc0,#79d9a3 12%,#1e6559 38%,#071a18 72%);box-shadow:0 0 32px rgba(123,232,161,.34),0 0 90px rgba(70,194,151,.16)}
.sector-point{position:absolute;z-index:2;display:flex;align-items:center;gap:7px;border:0;background:none;color:#a8c5b0;font:800 8px var(--mono,monospace);letter-spacing:.1em;cursor:pointer}
.sector-point i{width:9px;height:9px;border:1px solid #a8efb8;border-radius:50%;background:#63dcae;box-shadow:0 0 15px #63dcae;transition:.2s}
.sector-point:hover i,.sector-point.is-selected i{transform:scale(1.7);background:#e2ff9c;box-shadow:0 0 22px #c8f18a}
.point-alpha{left:12%;top:25%}.point-beta{right:9%;top:35%}.point-gamma{left:38%;bottom:24%}
.sector-readout{position:absolute;left:16px;right:16px;bottom:15px;display:grid;gap:5px;padding:12px 14px;border:1px solid rgba(158,225,170,.18);border-radius:10px;background:rgba(3,13,11,.82);backdrop-filter:blur(8px)}
.sector-readout small,.sector-readout span{font:800 7px var(--mono,monospace);letter-spacing:.13em;color:#7eaa99}.sector-readout b{font:600 15px var(--display,inherit);color:#dcf6c6;letter-spacing:-.02em}
.home-mechanics{margin-bottom:75px}.home-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}
.home-section-heading>p{max-width:390px;color:#9eafa2;font-size:13px;line-height:1.8}
.home-mechanics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.home-mechanics-grid article{position:relative;min-height:150px;padding:20px;border:1px solid rgba(153,209,150,.16);border-radius:13px;background:linear-gradient(145deg,rgba(19,41,30,.86),rgba(8,18,14,.96));transition:transform .22s,border-color .22s,background .22s}
.home-mechanics-grid article:hover{transform:translateY(-4px);border-color:rgba(195,241,137,.45);background:linear-gradient(145deg,rgba(31,66,43,.9),rgba(8,18,14,.98))}
.home-mechanics-grid article>span{display:block;margin-bottom:13px;color:#9edb93;font:800 8px var(--mono,monospace);letter-spacing:.13em}
.home-mechanics-grid article>b{font:600 21px var(--display,inherit);letter-spacing:-.04em;color:#edf5e9}
.home-mechanics-grid article>p{margin:8px 0 0;color:#9aab9e;font-size:11px;line-height:1.7}
.veil-showcase{margin-top:68px}.veil-showcase-cta{background:radial-gradient(ellipse at 85% 0%,rgba(74,151,111,.16),transparent 50%),linear-gradient(110deg,#14271c,#0a1510)!important}
@keyframes home-star-drift{to{background-position:230px 190px,-310px 270px,370px -330px,-420px 360px}}
@keyframes home-orbit-pulse{from{opacity:.45;transform:scale(.96)}to{opacity:1;transform:scale(1.04)}}
@keyframes home-orbit-spin{to{transform:rotate(360deg)}}@keyframes home-glyph-pulse{0%,100%{filter:drop-shadow(0 0 8px rgba(190,245,140,.35))}50%{filter:drop-shadow(0 0 25px rgba(190,245,140,.9))}}
@keyframes home-map-rotate{to{transform:translate(-50%,-50%) rotate(338deg)}}
@media(max-width:850px){.home-encounter{grid-template-columns:1fr}.home-sector-map{min-height:340px}.home-mechanics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.realm-proof-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.home-section-heading{display:block}.home-section-heading>p{margin-top:10px}.home-mechanics-grid{grid-template-columns:1fr}.realm-proof,.home-encounter,.home-mechanics,.veil-showcase{width:calc(100% - 24px)}.realm-proof-heading{align-items:flex-start;flex-direction:column}.home-encounter{padding:22px 17px;margin-bottom:48px}.home-sector-map{min-height:300px}.veil-showcase{margin-top:48px}}
@media(prefers-reduced-motion:reduce){.home-art.auth-art:before,.home-art.auth-art:after,.home-art .orbit,.home-art .orbit-two,.home-art .art-glyph,.sector-orbit{animation:none!important}.home-feature-strip article,.home-mechanics-grid article,.home-panel .home-primary{transition:none!important}}


/* Same-page screenshot lightbox */
.veil-shot{cursor:zoom-in}
.veil-image-viewer{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:clamp(14px,4vw,48px);background:rgba(1,6,7,.92);backdrop-filter:blur(12px)}
.veil-image-viewer.is-open{display:flex}
.veil-image-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent;cursor:zoom-out}
.veil-image-figure{position:relative;z-index:2;max-width:min(1400px,96vw);max-height:90vh;margin:0;display:flex;flex-direction:column;align-items:center;gap:12px}
.veil-image-figure img{display:block;max-width:100%;max-height:calc(90vh - 52px);width:auto;height:auto;object-fit:contain;border:1px solid rgba(180,235,156,.38);border-radius:12px;box-shadow:0 30px 100px rgba(0,0,0,.7),0 0 50px rgba(111,214,148,.1)}
.veil-image-figure figcaption{color:#b7c9ba;text-align:center;font-size:11px;line-height:1.5}
.veil-image-close{position:absolute;z-index:3;right:22px;top:18px;width:44px;height:44px;border:1px solid rgba(196,238,171,.35);border-radius:50%;background:rgba(11,27,20,.9);color:#eaffd7;font-size:29px;line-height:1;cursor:pointer}
.veil-image-close:hover{background:#c8ef83;color:#102015}
body.veil-lightbox-open{overflow:hidden}
@media(max-width:600px){.veil-image-viewer{padding:10px}.veil-image-figure{max-width:100%;max-height:86vh}.veil-image-figure img{max-height:78vh}.veil-image-close{right:12px;top:12px}}


/* Homepage hero structural repair: keep artwork and signup panel in the same two-column grid. */
.auth-layout.home-screen{
 display:grid!important;
 grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr)!important;
 width:min(1240px,calc(100% - 40px))!important;
 max-width:1240px!important;
 min-height:640px!important;
 margin:34px auto 28px!important;
 border:1px solid rgba(215,245,138,.16)!important;
 border-radius:20px!important;
 overflow:hidden!important;
 position:relative!important;
 background:#0d110e!important;
}
.auth-layout.home-screen>.home-art{
 min-width:0!important;
 min-height:640px!important;
}
.auth-layout.home-screen>.home-panel{
 min-width:0!important;
 min-height:640px!important;
}
.home-feature-strip{width:min(1240px,calc(100% - 40px))!important;margin:0 auto 55px!important}
.realm-proof,.home-encounter,.home-mechanics,.veil-showcase{width:min(1240px,calc(100% - 40px))!important}
@media(max-width:850px){
 .auth-layout.home-screen{grid-template-columns:minmax(0,1fr)!important;width:calc(100% - 30px)!important}
 .auth-layout.home-screen>.home-art{min-height:500px!important}
 .auth-layout.home-screen>.home-panel{min-height:460px!important}
}
@media(max-width:680px){
 .auth-layout.home-screen{width:calc(100% - 20px)!important;margin:16px auto 28px!important}
 .auth-layout.home-screen>.home-art{min-height:420px!important}
 .auth-layout.home-screen>.home-panel{min-height:390px!important}
 .home-feature-strip{width:calc(100% - 24px)!important;grid-template-columns:1fr!important}
 .home-feature-strip article{border-right:0!important;border-bottom:1px solid rgba(255,255,255,.08)}
 .home-feature-strip article:last-child{border-bottom:0}
}


/* Homepage simplification: one strong hero, then real screenshots. */
.auth-layout.home-screen{margin-bottom:30px!important}
.veil-showcase{margin-top:30px!important;margin-bottom:65px!important}
.veil-showcase-heading{margin-bottom:18px!important}
.veil-showcase-heading p{max-width:560px!important}
.veil-showcase-grid{gap:14px!important}
.veil-shot{transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.veil-shot:hover{transform:translateY(-3px);box-shadow:0 16px 42px rgba(0,0,0,.3)}
@media(max-width:680px){.veil-showcase{margin-top:22px!important}}


/* Public homepage background cleanup: remove the noisy grain and grid overlays. */
body:has(.home-screen){
 background:
  radial-gradient(ellipse at 50% 0%,rgba(29,76,55,.16),transparent 42rem),
  linear-gradient(180deg,#080f0d 0%,#0a110f 55%,#070d0b 100%)!important;
}
body:has(.home-screen):before{display:none!important;content:none!important}
body:has(.home-screen) .noise{display:none!important;opacity:0!important;background:none!important}


/* Homepage marketing: concise gameplay proposition + genuine live-world proof. */
.home-gameplay-overview,.home-realm-pulse,.realm-chronicle-compact{
 width:min(1240px,calc(100% - 40px));
 margin:34px auto 0!important;
}
.home-gameplay-overview{padding:25px 0 8px;border-top:1px solid rgba(153,207,151,.14)}
.home-gameplay-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:17px}
.home-gameplay-heading h2{margin:7px 0 0;font-size:clamp(25px,3vw,36px);line-height:1.08;letter-spacing:-.055em;color:var(--ink)}
.home-gameplay-heading h2 em{font-style:normal;color:#c8ef83}
.home-gameplay-heading>p{max-width:420px;margin:0;color:var(--muted);font-size:12px;line-height:1.7}
.home-gameplay-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.home-gameplay-grid article{min-width:0;padding:19px 20px;border:1px solid var(--line);border-radius:12px;background:var(--panel);transition:border-color .2s,transform .2s}
.home-gameplay-grid article:hover{transform:translateY(-2px);border-color:rgba(194,235,133,.45)}
.home-gameplay-index{font:800 8px var(--mono,monospace);letter-spacing:.12em;color:#9fdc9a}
.home-gameplay-grid h3{margin:11px 0 7px;font-size:19px;letter-spacing:-.035em;color:var(--ink)}
.home-gameplay-grid p{min-height:58px;margin:0;color:var(--muted);font-size:11px;line-height:1.7}
.home-gameplay-grid small{display:block;margin-top:13px;padding-top:10px;border-top:1px solid var(--line);font:800 7px var(--mono,monospace);letter-spacing:.09em;color:#83b9a4}
.home-realm-pulse{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 16px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.home-realm-metrics{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:10px}
.home-realm-metrics b{color:var(--ink);font-size:13px;font-weight:800}
.home-realm-metrics i{width:3px;height:3px;border-radius:50%;background:#80c9a5}
.realm-chronicle-compact{padding:17px 19px!important;border-radius:12px!important;background:var(--panel)!important;border-color:var(--line)!important}
.realm-chronicle-compact>div:first-child h2{font-size:19px!important;letter-spacing:-.03em}
.realm-chronicle-compact .realm-news-item{border-color:var(--line)!important}
.realm-chronicle-compact .realm-news-item .eyebrow{font-size:8px!important;letter-spacing:.08em}
.realm-chronicle-compact .realm-news-item p,.realm-chronicle-compact .realm-news-item div:not(.eyebrow){font-size:10px!important;line-height:1.6!important;color:var(--muted)!important}
@media(max-width:820px){
 .home-gameplay-heading{display:block}.home-gameplay-heading>p{margin-top:10px}
 .home-gameplay-grid{grid-template-columns:1fr}
 .home-gameplay-grid p{min-height:0}
 .home-realm-pulse{align-items:flex-start;flex-direction:column}
 .home-realm-metrics{justify-content:flex-start}
}
@media(max-width:600px){
 .home-gameplay-overview,.home-realm-pulse,.realm-chronicle-compact{width:calc(100% - 24px)}
 .home-gameplay-grid article{padding:16px}
 .home-realm-metrics{gap:8px}
}


/* Public homepage Chronicle alignment repair and stats placement polish. */
body:has(.home-screen) .realm-chronicle-compact{
 display:block!important;
 position:relative!important;
 inset:auto!important;
 float:none!important;
 clear:both!important;
 box-sizing:border-box!important;
 width:min(1240px,calc(100% - 40px))!important;
 max-width:1240px!important;
 min-width:0!important;
 margin:34px auto 55px!important;
 transform:none!important;
 justify-self:center!important;
 grid-column:1/-1!important;
 left:auto!important;
 right:auto!important;
}
body:has(.home-screen) .home-realm-pulse{
 width:min(1240px,calc(100% - 40px))!important;
 max-width:1240px!important;
 margin:32px auto 28px!important;
 box-sizing:border-box!important;
}
@media(max-width:680px){
 body:has(.home-screen) .realm-chronicle-compact,
 body:has(.home-screen) .home-realm-pulse{width:calc(100% - 24px)!important}
}


/* Match the homepage live totals to THE VEIL's established lime/forest palette. */
.home-realm-pulse{
 border:1px solid rgba(169,218,133,.22)!important;
 background:linear-gradient(110deg,rgba(20,39,27,.96),rgba(10,22,16,.98))!important;
 box-shadow:inset 0 1px 0 rgba(210,245,173,.035),0 12px 30px rgba(0,0,0,.12)!important;
}
.home-realm-pulse>.eyebrow{
 color:#c8ef83!important;
}
.home-realm-metrics{
 color:#aab9a6!important;
}
.home-realm-metrics span{
 color:#aab9a6!important;
}
.home-realm-metrics b{
 color:#e7f2dc!important;
 font-weight:800!important;
}
.home-realm-metrics i{
 background:#b8e77e!important;
 box-shadow:0 0 7px rgba(184,231,126,.25)!important;
}


/* Homepage green palette alignment: remove the blue/teal cast from marketing cards. */
.home-gameplay-grid article{
 border:1px solid rgba(169,218,133,.22)!important;
 background:linear-gradient(145deg,rgba(20,39,27,.96),rgba(10,22,16,.98))!important;
 box-shadow:inset 0 1px 0 rgba(210,245,173,.035)!important;
}
.home-gameplay-grid article:hover{
 border-color:rgba(200,239,131,.48)!important;
 background:linear-gradient(145deg,rgba(27,51,34,.98),rgba(11,24,17,.99))!important;
}
.home-gameplay-index{color:#c8ef83!important}
.home-gameplay-grid h3{color:#e7f2dc!important}
.home-gameplay-grid p{color:#aab9a6!important}
.home-gameplay-grid small{
 border-top-color:rgba(169,218,133,.2)!important;
 color:#a8cf87!important;
}
.home-gameplay-heading h2{color:#e7f2dc!important}
.home-gameplay-heading h2 em{color:#c8ef83!important}
.home-gameplay-heading>p{color:#aab9a6!important}


/* Compact public homepage interactive teaser, using the established green palette. */
.home-encounter{
 width:min(1120px,calc(100% - 40px))!important;
 margin:26px auto 32px!important;
 padding:clamp(18px,2.5vw,28px)!important;
 display:grid!important;
 grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)!important;
 gap:20px!important;
 border:1px solid rgba(169,218,133,.22)!important;
 border-radius:14px!important;
 background:linear-gradient(125deg,rgba(20,39,27,.96),rgba(8,18,13,.98))!important;
 box-shadow:inset 0 1px 0 rgba(210,245,173,.035)!important;
}
.home-encounter-copy h2{font-size:clamp(25px,3vw,35px)!important;line-height:1.05!important;margin:8px 0!important;color:#e7f2dc!important}
.home-encounter-copy h2 em{color:#c8ef83!important}
.home-encounter-copy>p{font-size:11px!important;line-height:1.65!important;color:#aab9a6!important;max-width:390px}
.home-encounter-actions{gap:7px!important;margin:10px 0!important}
.encounter-choice{
 padding:8px 11px!important;border:1px solid rgba(169,218,133,.23)!important;
 border-radius:8px!important;background:rgba(5,15,9,.55)!important;
 color:#b8c8b0!important;cursor:pointer!important;
}
.encounter-choice:hover,.encounter-choice.is-active{
 border-color:#c8ef83!important;background:rgba(184,231,126,.12)!important;
 color:#e7f2dc!important;box-shadow:0 0 16px rgba(171,231,121,.07)!important;
}
.encounter-output{
 max-width:100%!important;min-height:62px!important;margin:4px 0 12px!important;
 padding:10px 12px!important;border-left:2px solid #b8e77e!important;
 background:rgba(3,12,7,.5)!important;
}
.encounter-output b{color:#c8ef83!important}
.encounter-output span{color:#aab9a6!important;font-size:10px!important}
.home-encounter-copy>.button{min-height:38px!important}
.home-sector-map{
 min-height:245px!important;border:1px solid rgba(169,218,133,.2)!important;
 border-radius:11px!important;
 background:radial-gradient(circle at 53% 46%,rgba(140,205,95,.18),transparent 7%),linear-gradient(145deg,rgba(10,25,15,.95),rgba(5,14,9,.98))!important;
}
.home-sector-map:before{opacity:.12!important;background-image:linear-gradient(rgba(184,231,126,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(184,231,126,.1) 1px,transparent 1px)!important}
.sector-orbit{border-color:rgba(184,231,126,.2)!important}
.sector-sun{background:radial-gradient(circle at 34% 30%,#e3ffc0,#a4d76f 12%,#37633a 38%,#071a10 72%)!important;box-shadow:0 0 28px rgba(184,231,126,.22)!important}
.sector-point{color:#b9c8ae!important}
.sector-point i{border-color:#c8ef83!important;background:#a7d76f!important;box-shadow:0 0 12px rgba(184,231,126,.5)!important}
.sector-point:hover i,.sector-point.is-selected i{background:#e2ff9c!important;box-shadow:0 0 18px #c8f18a!important}
.sector-readout{border-color:rgba(169,218,133,.2)!important;background:rgba(5,16,9,.88)!important}
.sector-readout small,.sector-readout span{color:#91ad86!important}
.sector-readout b{color:#e0f4c7!important}
@media(max-width:760px){
 .home-encounter{grid-template-columns:1fr!important;width:calc(100% - 24px)!important}
 .home-sector-map{min-height:220px!important}
}


/* Give the lead Dashboard screenshot a subtle visual priority. */
.veil-showcase-grid{
 grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)!important;
}
.veil-shot-dashboard{
 border-color:rgba(200,239,131,.34)!important;
 box-shadow:0 18px 42px rgba(0,0,0,.24),0 0 22px rgba(184,231,126,.055)!important;
}
.veil-shot-dashboard img{filter:saturate(.96) brightness(.9)!important}
@media(max-width:680px){
 .veil-showcase-grid{grid-template-columns:1fr!important}
}
