/* ASHRIFT // UNIFIED INTERFACE 3.7.0
   Shared style layer; visual only, keeping verified Steam/Bridge/CMS contracts unchanged.
   Reference: PLAYERS 3.6.1. Strict CSP: no inline JS/CSS. */
:root{
 --ash-bg:#020d16;--ash-bg2:#061522;--ash-panel:#031522;--ash-panel-hi:#071e2b;
 --ash-line:#21435b;--ash-line-hi:#356580;--ash-white:#f1f6ff;--ash-sub:#99b2c7;
 --ash-hot:#ff3657;--ash-neon:#30eba5;--ash-gold:#ffbf60;--ash-blue:#4fa5ff;
 --ash-glow-red:0 0 0 1px #ff365716,0 0 24px #f7274b13;
 --ash-glow-green:0 0 0 1px #30eba513,0 0 20px #30eba510;
}
html {color-scheme:dark}
body.ash-theme-unified{background:radial-gradient(ellipse 58% 24% at 74% -4%,#5c1b2b33,transparent),linear-gradient(128deg,#02111c 0%,#010914 64%,#04101a 100%);color:var(--ash-white);font-family:Inter,'Segoe UI',Arial,sans-serif;min-height:100dvh}
body.ash-theme-unified :is(a,button,input,textarea,select):focus-visible{outline:2px solid var(--ash-neon);outline-offset:3px}
body.ash-theme-unified a{transition:color .18s ease,border-color .18s ease,background .18s ease}
body.ash-theme-unified .ash-unified-header{box-sizing:border-box;position:relative;z-index:25;min-height:82px;max-width:1920px;margin-inline:auto;display:flex;align-items:center;gap:16px;padding:10px clamp(15px,2vw,32px);background:linear-gradient(90deg,#03111cf2 0%,#041522f2 57%,#210e1bd4 100%),url('/assets/hero-scene.webp') right 41%/cover!important;border:0;border-bottom:1px solid #325269!important;box-shadow:0 9px 32px #0008;}
body.ash-theme-unified .ash-unified-header::after{content:'';position:absolute;bottom:0;left:15px;right:15px;height:1px;background:linear-gradient(90deg,transparent,#ff365755 18%,#45a2c136 55%,transparent);pointer-events:none}
body.ash-theme-unified .ash-unified-brand{display:flex;align-items:center;gap:12px;min-width:unset;max-width:none;padding:0 14px 0 0;border:0;flex-shrink:0}
body.ash-theme-unified .ash-unified-brand img{height:58px;width:58px;object-fit:contain;mix-blend-mode:normal;filter:drop-shadow(0 0 11px #ff36574b)}
body.ash-theme-unified .ash-unified-brand strong,body.ash-theme-unified .ash-unified-brand b{font-family:Inter,'Segoe UI',sans-serif;font-size:clamp(20px,2.1vw,29px);font-weight:950;letter-spacing:2.6px;line-height:1.06;color:white;text-shadow:0 1px 8px #fff2}
body.ash-theme-unified .ash-unified-brand small,body.ash-theme-unified .ash-unified-brand .brand-text>span{display:block;color:#b3c3d1;font-size:9px;letter-spacing:3px;line-height:1.5;text-transform:uppercase}
body.ash-theme-unified .ash-unified-links{display:flex;align-items:stretch;justify-content:center;flex-wrap:wrap;gap:4px 5px;min-width:0;margin-left:auto;font-size:inherit}
body.ash-theme-unified .ash-unified-links a{position:relative;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:55px;padding:8px 12px;color:#b4cadd;border:0;border-bottom:2px solid transparent;background:transparent;border-radius:0;font-size:10px;font-weight:850;letter-spacing:.3px;line-height:1.12;white-space:nowrap;text-transform:uppercase}
body.ash-theme-unified .ash-unified-links a:hover,body.ash-theme-unified .ash-unified-links a[aria-current='page'],body.ash-theme-unified .ash-unified-links a.active{color:#ff5272;background:#d41d3920;border-bottom-color:var(--ash-hot)}
body.ash-theme-unified .ash-nav-svg{display:block;width:20px;height:20px;flex-shrink:0;stroke:currentColor;fill:none}
body.ash-theme-unified .ash-unified-links a svg:not(.ash-nav-svg){width:20px;height:20px}
body.ash-theme-unified .ash-unified-links button{font-size:10px;cursor:pointer}
/* topbar on home requires limited horizontal room */
body.ash-theme-unified .topbar .brand{min-width:0;width:auto;flex:0 0 auto}
body.ash-theme-unified .topbar .brand img{width:54px;height:54px}
body.ash-theme-unified .topbar .brand-text strong{font-size:23px;letter-spacing:1.8px}
body.ash-theme-unified .topbar .brand-text{align-items:start}
body.ash-theme-unified .topbar .brand-text span{font-size:8px;letter-spacing:2.5px}
body.ash-theme-unified .topbar .desktop-nav{align-items:stretch;gap:0;justify-content:center;flex:1 1 auto}
body.ash-theme-unified .topbar .desktop-nav :is(a,button).nav-item{padding:7px clamp(5px,.65vw,12px);min-height:60px;flex-direction:column;gap:4px;font-size:9px;border-bottom:2px solid transparent}
body.ash-theme-unified .topbar .desktop-nav :is(a,button).nav-item:hover,body.ash-theme-unified .topbar .desktop-nav .nav-item.active{border-bottom-color:var(--ash-hot);color:var(--ash-hot);background:#ca173122}
body.ash-theme-unified .topbar .top-controls{gap:6px}
body.ash-theme-unified .topbar .steam-login{border:1px solid #ff365769;background:linear-gradient(125deg,#3b0d1d,#150c1a);box-shadow:0 0 15px #f42b461f;border-radius:8px;color:#f5e5ee}
/* unified panel styling */
body.ash-theme-unified :is(.server-info,.live-map,.top-players,.panel,.info-panel,.account-surface,.ed-panel,.ah-panel,.chat-card,.sidebar-card,.ash-live-overview,.subcontent,.news-block,.news-item){background:linear-gradient(135deg,#071e2b 0%,#03131f 68%,#041320 100%);border-color:#28495e;border-radius:10px;color:#eaf3fd;box-shadow:inset 0 1px #ffffff06,0 9px 26px #0003}
body.ash-theme-unified :is(.info-grid>*,.bottom-grid>*,.ah-counters>div,.account-stat,.stat-card,.ed-status,.feature-tile){border-color:#28495e}
body.ash-theme-unified :is(.account-surface,.ed-panel,.ah-panel,.chat-card,.sidebar-card,.news-item,.feature-tile){transition:box-shadow .23s ease,border-color .23s ease,transform .23s ease}
body.ash-theme-unified :is(.news-item,.feature-tile):hover{border-color:#ff36577a;box-shadow:0 0 0 1px #ff36572b,0 12px 35px #ef264523;transform:translateY(-2px)}
body.ash-theme-unified :is(.account-surface,.ed-panel,.ah-panel,.chat-card,.sidebar-card):hover{border-color:#3c5e74}
body.ash-theme-unified :is(.section-title,.account-surface h2,.ah-panel h2,.ed-panel h2,.chat-card h2,.sidebar-card h2){letter-spacing:.6px;font-weight:900;color:#f1f6ff}
body.ash-theme-unified :is(.eyebrow,.mini-kicker,.ah-eyebrow,.ed-title small,.heading .eyebrow){color:#ff5273;letter-spacing:2.2px;font-weight:950}
body.ash-theme-unified :is(.account-title h1,.ed-title h1,.ah-head h1,.heading h1){font-weight:950;line-height:1.05;letter-spacing:.8px;text-shadow:0 1px 14px #ffffff0d}
body.ash-theme-unified :is(.account-title,.ed-title,.ah-head,.heading){border-left:3px solid #ff3657;padding-left:18px}
body.ash-theme-unified :is(.account-main,.ed-main,.ah-main,main){scroll-margin-top:90px}
/* all panels use subtle neon accent; highlight active controls only */
body.ash-theme-unified :is(.ed-tabs button.active,.ah-filters button.active,.tab.active,.selected){border-color:#ff3657!important;background:linear-gradient(140deg,#430c20,#180e1d)!important;color:#ffe5eb!important;box-shadow:inset 0 -2px #ff3657,0 0 14px #ff365724}
body.ash-theme-unified :is(.account-primary,.ed-btn.primary,.primary,.orange-button){background:linear-gradient(135deg,#a71234,#370e23);border:1px solid #fa3a5d;border-radius:7px;color:#ffeef3;font-weight:900;box-shadow:0 0 20px #ff365719;transition:background .22s,transform .22s,box-shadow .22s}
body.ash-theme-unified :is(.account-primary,.ed-btn.primary,.primary,.orange-button):hover:not(:disabled){background:linear-gradient(135deg,#c91d40,#4b122b);transform:translateY(-1px);box-shadow:0 0 24px #ff365735}
body.ash-theme-unified :is(.account-outline,.ed-btn:not(.primary),.outline-action){border:1px solid #426077;border-radius:7px;background:#091c2c;color:#d8edfa;transition:border-color .22s,box-shadow .22s}
body.ash-theme-unified :is(.account-outline,.ed-btn:not(.primary),.outline-action):hover:not(:disabled){border-color:#ff5273;box-shadow:0 0 0 1px #ff36571c}
body.ash-theme-unified :is(input,select,textarea){accent-color:#ff3657}
body.ash-theme-unified :is(input:not([type=checkbox]),textarea,select){background-color:#071d2d;color:#eaf3fb;border-color:#315369;border-radius:6px}
body.ash-theme-unified :is(input,select,textarea):focus{border-color:#ff5273;outline:none;box-shadow:0 0 0 3px #ff36571d}
body.ash-theme-unified :is(.account-surface,.ed-panel,.ah-panel,.chat-card) button:disabled{opacity:.46;cursor:not-allowed;filter:grayscale(.35)}
/* home layout: follow players' visual rhythm without moving existing hooks */
body.ash-theme-unified .site-shell{background:transparent;max-width:1920px}
body.ash-theme-unified .hero{position:relative;isolation:isolate;border-bottom:1px solid #28465b}
body.ash-theme-unified .hero::after{content:'';position:absolute;inset:auto 3% 0;height:2px;background:linear-gradient(90deg,transparent,#ff3657a8,transparent);pointer-events:none}
body.ash-theme-unified .feature-row{gap:12px;padding-top:16px;padding-bottom:6px}
body.ash-theme-unified .feature-tile{border-radius:9px;overflow:hidden}
body.ash-theme-unified .feature-tile :is(img,.feature-bg){object-fit:cover}
body.ash-theme-unified .info-grid{gap:14px}
body.ash-theme-unified .ash-live-overview{max-width:none;margin:18px clamp(16px,2.5vw,48px);border-color:#ff365741;border-radius:11px;box-shadow:0 0 26px #ff36570e}
body.ash-theme-unified .ash-live-title h2{color:white;text-shadow:0 1px 8px #ff36572b}
body.ash-theme-unified .ash-live-card{border-color:#33556c;border-radius:8px;background:linear-gradient(125deg,#071927,#091c2a)}
body.ash-theme-unified .news-item{border-radius:9px;overflow:hidden}
body.ash-theme-unified .news-item img{object-fit:cover}
/* account and admin centered wide panels and detailed dashboards */
body.ash-theme-unified .account-layout{background:transparent}
body.ash-theme-unified .account-main{width:min(1480px,95%);margin:clamp(20px,3vw,44px) auto 65px}
body.ash-theme-unified .account-surface{padding:clamp(16px,2vw,26px)}
body.ash-theme-unified .player-header.account-surface{border-top:2px solid #ff3657;background:linear-gradient(120deg,#0a2531,#04121f)}
body.ash-theme-unified .owner-access{border-color:#fd385b6e;box-shadow:var(--ash-glow-red)}
body.ash-theme-unified .account-brand img{width:58px;height:58px}
body.ash-theme-unified .account-top nav button#account-lang{border:1px solid #355269;padding:9px 11px;border-radius:6px;color:#e4eff8;background:#091e2d}
/* editor dashboard */
body.ash-theme-unified .ed-main{max-width:1480px}
body.ash-theme-unified .ed-tabs{gap:8px;padding:20px 0}
body.ash-theme-unified .ed-tabs button{border-radius:7px;min-height:44px;background:#081d2d;border-color:#31516a;transition:transform .2s,border-color .2s,background .2s}
body.ash-theme-unified .ed-tabs button:hover{border-color:#ff456b;transform:translateY(-1px)}
body.ash-theme-unified .ed-panel{border-top:2px solid #c62a4c}
body.ash-theme-unified .ed-status.ok{border-color:#30eba558;color:#b5eed4}
/* Activity stream */
body.ash-theme-unified .ah-main{max-width:1480px}
body.ash-theme-unified .ah-counters>div{border-radius:8px;background:linear-gradient(135deg,#09212e,#03131e);border-top:2px solid #3b6579}
body.ash-theme-unified .ah-counters>div strong{color:#f5f7ff}
body.ash-theme-unified .ah-panel{border-top:2px solid #284f69}
body.ash-theme-unified .ah-feed{border-top-color:#ff3657}
body.ash-theme-unified .ah-status{background:#061c28;border-color:#345166;border-radius:8px}
/* Chat */
body.ash-theme-unified main{max-width:1600px}
body.ash-theme-unified .chat-card{border-top:2px solid #ff3657;overflow:hidden}
body.ash-theme-unified .sidebar-card{border-top:2px solid #315a75}
body.ash-theme-unified .state{background:#071e2c;border:1px solid #31536a;border-radius:8px}
/* closing bar */
body.ash-theme-unified footer{border-top:1px solid #244253;color:#8fabc2;background:linear-gradient(90deg,#03111b,#071927,#03111b)}
/* no floating or inauthentic counters; animations only cosmetic */
@keyframes ash-soft-intro{from{opacity:.3;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
body.ash-theme-unified :is(.info-grid,.ash-live-overview,.account-title,.ah-counters,.ed-title,.chat-layout){animation:ash-soft-intro .45s ease both}
@media(min-width:1600px){body.ash-theme-unified .ash-unified-header{padding-inline:clamp(20px,3vw,50px)}}
@media(max-width:1100px){
 body.ash-theme-unified .ash-unified-header{min-height:72px;gap:10px;padding:8px 15px;flex-wrap:wrap}
 body.ash-theme-unified .ash-unified-links{flex:1 1 60%;justify-content:flex-end}
 body.ash-theme-unified .ash-unified-links a{min-height:48px;padding:8px;font-size:10px}
 body.ash-theme-unified .ash-unified-brand img{width:50px;height:50px}
 body.ash-theme-unified .account-main{width:min(100% - 28px,1480px)}
}
@media(max-width:760px){
 body.ash-theme-unified .ash-unified-header{min-height:66px;padding:9px 12px 7px;gap:7px;align-items:center}
 body.ash-theme-unified .ash-unified-brand{padding:0}
 body.ash-theme-unified .ash-unified-brand img{width:39px;height:39px}
 body.ash-theme-unified .ash-unified-brand strong,body.ash-theme-unified .ash-unified-brand b{font-size:18px;letter-spacing:1.1px}
 body.ash-theme-unified .ash-unified-brand small{font-size:7px;letter-spacing:1.6px}
 body.ash-theme-unified .ash-unified-links{order:10;flex:1 0 100%;display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;justify-content:flex-start;gap:0;padding:3px 0 0;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#2b4b61 transparent}
 body.ash-theme-unified .ash-unified-links a{min-height:45px;flex:0 0 auto;font-size:9px;padding:5px 10px}
 body.ash-theme-unified .ash-nav-svg{width:17px;height:17px}
 body.ash-theme-unified .ash-live-overview{margin:12px 12px}
 body.ash-theme-unified .account-main,.ash-theme-unified .ed-main,.ash-theme-unified .ah-main{padding-left:12px;padding-right:12px;width:100%}
 body.ash-theme-unified .account-title h1,body.ash-theme-unified .ah-head h1{font-size:clamp(28px,8vw,42px)}
 body.ash-theme-unified :is(.account-title,.ed-title,.ah-head,.heading){padding-left:12px}
 body.ash-theme-unified .account-surface{padding:15px}
 body.ash-theme-unified .ed-panel{padding:14px}
 body.ash-theme-unified .feature-tile{border-radius:7px}
 body.ash-theme-unified .topbar{flex-wrap:nowrap;min-height:64px}
 body.ash-theme-unified .topbar .brand img{height:43px;width:43px}
 body.ash-theme-unified .topbar .brand-text strong{font-size:17px}
 body.ash-theme-unified .topbar .desktop-nav{display:none}
}
@media(prefers-reduced-motion:reduce){body.ash-theme-unified :is(.info-grid,.ash-live-overview,.account-title,.ah-counters,.ed-title,.chat-layout){animation:none}body.ash-theme-unified :is(.news-item,.feature-tile):hover{transform:none}body.ash-theme-unified *{scroll-behavior:auto!important}}
/* Mobile account/admin nav overflow safeguard (verified at 393 px). */
@media(max-width:760px){
 body.ash-theme-unified .account-layout{width:100%;max-width:100%;min-width:0;overflow-x:clip}
 body.ash-theme-unified .account-top.ash-unified-header{box-sizing:border-box;width:100%;min-width:0;max-width:100%;flex:0 0 auto}
 body.ash-theme-unified .account-top.ash-unified-header .ash-unified-links{box-sizing:border-box;display:flex;flex:0 0 calc(100vw - 24px);width:calc(100vw - 24px);max-width:calc(100vw - 24px);min-width:0;overflow-x:auto;overflow-y:hidden;white-space:nowrap;justify-content:flex-start;scrollbar-width:thin;}
 body.ash-theme-unified .account-top.ash-unified-header .ash-unified-links>*{flex-shrink:0}
}

/* ASHRIFT 3.7.1: no duplicate/stacked navigation strip, responsive Players controls. */
body.ash-theme-unified .ash-leader-top .ash-unified-links{flex-wrap:nowrap;min-width:0;}
body.ash-theme-unified .ash-leader-top .ash-unified-links a{flex-shrink:0;}
body.ash-theme-unified .ash-leader-top .ash-play-now{font-family:inherit;cursor:pointer;line-height:1.2;}
@media(max-width:1100px){
 body.ash-theme-unified .ash-leader-top .ash-unified-links{flex-basis:100%;width:100%;order:5;overflow-x:auto;overscroll-behavior-x:contain;justify-content:flex-start;scrollbar-width:thin;}
}
@media(max-width:760px){
 body.ash-theme-unified .ash-leader-top{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;align-items:center;gap:7px 9px;padding:9px 10px;max-width:100%;width:100%;}
 body.ash-theme-unified .ash-leader-top .ash-leader-brand{grid-column:1;grid-row:1;min-width:0;gap:8px;}
 body.ash-theme-unified .ash-leader-top .ash-leader-brand span{min-width:0;}
 body.ash-theme-unified .ash-leader-top .ash-leader-brand strong{font-size:clamp(16px,4.8vw,22px);letter-spacing:.8px;}
 body.ash-theme-unified .ash-leader-top .ash-leader-brand small{font-size:7px;letter-spacing:1.2px;white-space:nowrap;}
 body.ash-theme-unified .ash-leader-top .ash-play-now{grid-column:2;grid-row:1;min-width:103px;min-height:43px;padding:9px 10px;font-size:11px;gap:6px;}
 body.ash-theme-unified .ash-leader-top .ash-leader-online{grid-column:1/-1;grid-row:2;justify-self:stretch;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:12px;min-height:31px;padding:6px 8px;white-space:normal;font-size:10px;}
 body.ash-theme-unified .ash-leader-top .ash-unified-links{grid-column:1/-1;grid-row:3;order:initial;flex:unset;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;justify-content:flex-start;scrollbar-width:thin;gap:0;padding:0;border-top:1px solid #29445a;}
 body.ash-theme-unified .ash-leader-top .ash-unified-links a{flex:1 0 auto;min-width:67px;min-height:59px;gap:3px;padding:7px 10px;font-size:9px;}
 body.ash-theme-unified .ash-leader-top .ash-unified-links a .ash-nav-svg{width:20px;height:20px;}
}
/* Join dialog works in desktop Chromium and mobile Chrome; no external scripts or inline styles. */
.ash-connect-dialog{color:#f2f6fa;background:linear-gradient(140deg,#08202e,#030e1b);border:1px solid #ff42657b;border-radius:12px;box-shadow:0 25px 90px #000c,0 0 35px #f32b4f22;width:min(430px,calc(100vw - 26px));max-height:calc(100dvh - 26px);overflow:auto;padding:20px;box-sizing:border-box;font-family:Inter,'Segoe UI',Arial,sans-serif}
.ash-connect-dialog::backdrop{background:#010812cc;backdrop-filter:blur(4px)}
.ash-connect-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#fc5273;font-weight:900;letter-spacing:1.2px;font-size:10px;}
.ash-connect-close{background:#14293a;border:1px solid #355368;border-radius:6px;width:35px;height:35px;cursor:pointer;color:white;font-size:25px;line-height:1}
.ash-connect-dialog h2{margin:14px 0 5px;font-size:clamp(20px,5vw,27px);font-weight:950;letter-spacing:1px}
.ash-connect-dialog p{color:#abc0cf;line-height:1.5;font-size:13px}
.ash-connect-box{display:flex;flex-direction:column;gap:7px;background:#091d2c;border:1px solid #315069;border-radius:8px;margin:18px 0 12px;padding:13px}
.ash-connect-box span{font-size:10px;color:#94b0c4;letter-spacing:1px;font-weight:800}
.ash-connect-box code{font-size:clamp(17px,4.7vw,22px);font-weight:900;color:#2be5a5;overflow-wrap:anywhere}
.ash-connect-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.ash-connect-actions button,.ash-connect-steam{display:flex;align-items:center;justify-content:center;text-align:center;border:1px solid #ff4764;background:#4a1527;color:#fff!important;padding:12px 8px;font-weight:900;font-size:11px;cursor:pointer;border-radius:7px;min-height:43px;text-decoration:none}
.ash-connect-actions button:nth-child(2){background:#0b2938;border-color:#38647e}
.ash-connect-steam{background:#a71a3a;margin-top:8px}
.ash-connect-steam[hidden]{display:none!important}
.ash-connect-dialog .ash-connect-help{font-size:12px;margin:17px 0 7px}
.ash-connect-command{display:block;overflow-wrap:anywhere;color:#dcecf5;background:#061521;border:1px solid #36536a;border-radius:6px;padding:12px;font-size:12px;user-select:all}
.ash-connect-dialog .ash-connect-feedback{min-height:18px;color:#36e5aa;font-weight:850;margin:9px 0 0;font-size:12px}
@media(max-width:380px){.ash-connect-dialog{padding:15px}.ash-connect-actions button{font-size:10px}}
@media(min-width:360px) and (max-width:760px){
 body.ash-theme-unified .ash-leader-top .ash-unified-links a{flex:1 1 0;min-width:0;padding:7px 2px;font-size:8px;letter-spacing:0;text-align:center}
}
