/* Atlas 11.2 — Elario Studios current Designed Brand unification.
   Presentation-only: never mutates maps, datasets, saved progress or feature logic.
   Approved original Elario violet/amber visual hierarchy. */
:root{--j112-ink:#10091f;--j112-panel:#23142f;--j112-violet:#a85ee6;--j112-gold:#ffcf78;--j112-orange:#ffab4b;--j112-muted:#e0cbe7;--j112-line:#925b9d}
body.j112-unified{color-scheme:dark;color:#fff6fc;background:radial-gradient(ellipse at 85% -15%,#552260 0,transparent 47%),radial-gradient(ellipse at 4% 38%,#33134b 0,transparent 43%),#10091d;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
body.j112-unified :is(a,button,input,select,summary,textarea):focus-visible{outline:3px solid #ffe3a1!important;outline-offset:3px}
body.j112-unified a{color:#ffe0aa}
body.j112-unified :is(.top,.portal-top,.j87-daily-header){border-bottom:2px solid #f5a658;background:linear-gradient(100deg,#291034,#371748 65%,#1c1630);color:#fff;box-shadow:0 10px 30px #0b031499}
body.j112-unified :is(.top,.portal-top,.j87-daily-header) a{color:#f8e4f7}
body.j112-unified :is(.top,.portal-top,.j87-daily-header) a:hover{color:#ffcf78}
body.j112-unified :is(.side,.sidebar,.portal-rail){background:linear-gradient(160deg,#241432,#151022 75%);border-color:#80508f;color:#f4eafa}
body.j112-unified :is(.card,.entry,.studio-card,.panel,.routepanel,.custompanel,.cat,.activity-visual){background:linear-gradient(135deg,#291634,#19152c);border-color:#875596;color:#fbf1f8;box-shadow:inset 0 1px #ffffff0d}
body.j112-unified :is(.card,.entry,.studio-card,.panel):hover{border-color:#eeb078}
body.j112-unified :is(.hint,.small,.muted,.lead,.coordhelp,.toolbar-note){color:#dccbe5}
body.j112-unified :is(input,textarea,select,.search){color:#fff6fb;background:#291b39;border:1px solid #8c649a;border-radius:9px}
body.j112-unified :is(button,.tool,.btn,.cathead,.views button,.quick button,.games button){border-color:#9866a7;color:#fff0f9;background:#392044;border-radius:9px}
body.j112-unified :is(button,.tool,.btn,.cathead,.views button,.quick button,.games button):hover{border-color:#ffca80;background:#57305f}
body.j112-unified :is(.games .on,.views .on,.quick button.on,.btn.gold){background:linear-gradient(115deg,#ffdc80,#ff9e42);border-color:#ffe1a3;color:#28122c;font-weight:900}
body.j112-unified :is(.mapwrap,#map,.leaflet-container){background-color:#271e3b}
body.j112-unified :is(.mapnote,.map-badge,.maphint,.detail,.compass){background:#21132bed;border-color:#b27aa2;color:#fff0f7}
body.j112-unified .attribution,body.j112-unified .credit{color:#ead0e5}
body.j112-unified .j112-context{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px clamp(14px,2vw,27px);border-bottom:1px solid #8d5f89;background:linear-gradient(90deg,#321640,#28152fdc);color:#fff;position:relative;z-index:501;font-size:12px}
body.j112-unified .j112-context strong{color:#ffd18b;font-size:12px;letter-spacing:.08em}
body.j112-unified .j112-context a{padding:6px 9px;text-decoration:none;border:1px solid #8e5b90;background:#2d1b3b;border-radius:8px;font-weight:750}
body.j112-unified .j112-context a:hover{background:#4f2862}
body.j112-unified .j112-context small{color:#eddaee;flex:1}
body.j112-unified .j112-context img{width:25px;height:25px}
body.j112-unified .layout:has(> aside#sidebar){height:calc(100dvh - 102px)}
body.j112-unified .layout:has(> .side){height:calc(100dvh - 126px)}
body.j112-unified .portal-app{background:transparent}
body.j112-unified .portal-hero{box-shadow:0 15px 32px #12051eaa}
body.j112-unified .portal-rail a:hover,body.j112-unified .rail-link.current{background:#5b295f;color:#ffe0a3}
body.j112-unified .logo-mark{background:linear-gradient(125deg,#ffda82,#ff9b49);color:#2b1635}
body.j112-unified .top-caption{color:#ffda99}
body.j112-unified .crest{color:#ffc66f}
body.j112-unified .notice{background:#38243d;border-color:#fbbd72;color:#f4e7f4}
body.j112-unified .mainnav,body.j112-unified .nav{border-color:#a86e9d;background:#281a37}
body.j112-unified :is(.mobilemenu,.mobileToggle){border-color:#ffbf7c;background:#392146;color:#fff}
@media(max-width:800px){
 body.j112-unified .j112-context{padding:7px 11px;gap:6px}
 body.j112-unified .j112-context small{flex-basis:100%;order:3}
 body.j112-unified .layout:has(> aside#sidebar){height:calc(100dvh - 137px)}
 body.j112-unified .layout:has(> .side){height:calc(100dvh - 157px)}
}
/* Activity Intelligence: source and state remain owned by atlas-activities.js. */
body.j112-activities{--bg:#10091f;--surface:#24152f;--line:#7f4c91;--txt:#fff7ff;--soft:#e0cfe4;--gold:#ffc46c;color:#fff6fd;background:radial-gradient(ellipse at top right,#5a286f 0,transparent 37rem),radial-gradient(ellipse at 5% 34%,#3b1849,transparent 38rem),#10091e}
body.j112-activities>header{background:linear-gradient(105deg,#24102f,#35173f 65%,#25152e);border-bottom:2px solid #ffaf58;box-shadow:0 10px 25px #0a0419b5;padding:10px clamp(12px,2.5vw,30px);z-index:70}
body.j112-activities header .brand{display:flex;align-items:center;gap:10px;min-width:220px;text-decoration:none;color:#fff}
body.j112-activities header .brand img{width:40px;height:40px;object-fit:contain}
body.j112-activities header .brand small{font-size:9px;color:#ffd29b;display:block;letter-spacing:.12em}
body.j112-activities header .brand b{font-weight:950;font-size:clamp(17px,2vw,25px);font-style:italic;line-height:1.1;text-shadow:0 0 13px #f43b9d7a}
body.j112-activities header .tag{font-size:10px;color:#ffd6a5;text-transform:uppercase;letter-spacing:.13em;font-weight:850}
body.j112-activities header nav{margin-left:auto;gap:7px}
body.j112-activities header nav a{border:1px solid #815491;border-radius:9px;color:#fbeff9;padding:7px 10px;font-weight:750;font-size:12px;text-decoration:none;background:#341b47}
body.j112-activities header nav a:hover{border-color:#ffbf76;color:#ffe0a5}
body.j112-activities .wrap{padding:clamp(12px,2vw,26px);max-width:1550px}
body.j112-activities .j112-activity-hero{border-radius:20px;border:2px solid #f5ab56;position:relative;overflow:hidden;isolation:isolate;min-height:262px;padding:clamp(24px,4vw,50px);margin-bottom:16px;background:linear-gradient(90deg,#200d2ef2 0%,#271035ef 37%,#250d3199 70%,#25103225 100%),url('./art/atlas93-dispatch-hero.webp') right center/cover;box-shadow:0 15px 35px #08030d99,0 0 27px #a939b358}
body.j112-activities .j112-activity-hero:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 45px #d15cce33}
body.j112-activities .j112-eyebrow{color:#ffe0a3;font-size:11px;font-weight:900;letter-spacing:.15em;text-transform:uppercase;margin:0 0 12px}
body.j112-activities .j112-activity-hero h1{font-size:clamp(35px,5.4vw,66px);font-weight:1000;font-style:italic;text-transform:uppercase;line-height:1.04;letter-spacing:-.035em;max-width:790px;color:#fff4fb;text-shadow:0 5px 15px #0a0714}
body.j112-activities .j112-activity-hero .intro{font-size:15px;color:#f9e3f6;max-width:670px;text-shadow:0 2px 5px #1b0c28}
body.j112-activities .j112-hero-actions{display:flex;flex-wrap:wrap;gap:9px;margin:17px 0 0}
body.j112-activities .j112-hero-actions a{padding:9px 14px;border:1px solid #e3ab74;border-radius:9px;background:#2c1d3bdc;text-decoration:none;font-size:12px;font-weight:850;color:#fff4fa}
body.j112-activities .j112-hero-actions a:first-child{background:linear-gradient(120deg,#ffe08f,#ffa343);color:#2b1737;border-color:#ffcf77}
body.j112-activities .j112-hero-actions a:hover{filter:brightness(1.18)}
body.j112-activities .pills{gap:8px;margin:16px 0}
body.j112-activities .pills a{border:1px solid #9e69a2;background:#2e1940;color:#fff0f8;border-radius:10px;font-weight:750;font-size:12px}
body.j112-activities .pills a[aria-current=page]{background:linear-gradient(115deg,#ffce78,#ffa448);border-color:#ffe1a5;color:#26102f;box-shadow:0 0 15px #f4a45a55}
body.j112-activities .stats{gap:12px;margin:16px 0}
body.j112-activities .stat{background:linear-gradient(140deg,#302043,#221931);border:1px solid #a16bab;border-radius:14px;padding:17px;box-shadow:inset 0 1px #ffffff10}
body.j112-activities .stat strong{font-size:clamp(22px,3vw,34px);color:#ffbc65;font-weight:950}
body.j112-activities .stat span{font-size:12px;color:#e7d0e9}
body.j112-activities .legend{border:1px solid #815285;border-radius:12px;background:#23153099;padding:10px 14px;gap:12px;margin:12px 0}
body.j112-activities .legend span{font-size:12px;color:#f0e5f5}
body.j112-activities .layout{grid-template-columns:minmax(285px,350px) minmax(0,1fr);gap:15px}
body.j112-activities .panel{background:linear-gradient(140deg,#261730,#1a162a);border:1px solid #8c5a91;border-radius:17px;padding:clamp(15px,2vw,23px);box-shadow:0 12px 25px #08030b5e}
body.j112-activities .panel h2{font-size:17px;color:#ffdaa0}
body.j112-activities .rule-list{max-height:none;overflow:visible;padding-right:0}
body.j112-activities .rule{background:#271b35;border:1px solid #704e83;border-radius:13px;padding:15px;margin:11px 0;box-shadow:0 6px 16px #0c081455}
body.j112-activities .rule h3{font-size:15px;color:#fff8fa}
body.j112-activities .rule p{color:#dfcfe7}
body.j112-activities .group{color:#ffc980;font-size:11px;margin:19px 0 9px;letter-spacing:.12em}
body.j112-activities .status{color:#111723;border-radius:7px}
body.j112-activities :is(button,select,input[type=number],input[type=text],input[type=search]){background:#33223f;border:1px solid #966c9e;color:#fff8ff;border-radius:9px;min-height:39px}
body.j112-activities button:hover{background:#542960;border-color:#ffc37d}
body.j112-activities input[type=checkbox]{accent-color:#ffbd67}
body.j112-activities .note,body.j112-activities .foot{color:#decce3}
body.j112-activities .field{gap:9px;font-size:13px;font-weight:750}
body.j112-activities details{background:#2d1c3b;border-color:#80568d;padding:10px 14px}
body.j112-activities details summary{color:#ffd6a1}
body.j112-activities .check-label{line-height:1.45}
body.j112-activities .foot{border-top:1px solid #66386d;margin-top:28px;font-size:12px}
body.j112-activities :is(button,a,select,input):focus-visible{outline:3px solid #ffdc8d;outline-offset:3px}
@media(max-width:900px){body.j112-activities .layout{grid-template-columns:1fr}}
@media(max-width:620px){body.j112-activities header .tag{display:none}body.j112-activities .j112-activity-hero{min-height:240px;padding:25px 18px;background-position:60% center}body.j112-activities .j112-activity-hero h1{font-size:clamp(31px,9vw,47px)}body.j112-activities .stat{padding:12px}body.j112-activities .stats{grid-template-columns:repeat(2,minmax(0,1fr))}body.j112-activities .pills a{flex:1 1 135px;text-align:center}body.j112-activities header nav{overflow:auto;flex-wrap:nowrap;width:100%;padding-bottom:4px}body.j112-activities header nav a{flex:none}}
