/* Atlas 12.8 — Map Explorer visual continuity, not a map engine rewrite.
   Scoped to GTA V Story, GTA Online and provisional GTA VI world pages.
   No changes to positions, tile sources, events, routes, data or localStorage. */
body.j128-map-chrome{--j128-edge:#98649f;--j128-gold:#ffcf87;--j128-text:#f8eafa;--j128-panel:#281933;--j128-deep:#160f25;color:#f9eefa}
body.j128-map-chrome .shell>.sidebar{
  color:var(--j128-text);
  background:radial-gradient(ellipse at 70% 0,#4c2958a8,transparent 360px),
             linear-gradient(160deg,#2d183d,#171022 76%);
  border-right:2px solid #a36a9d;
  scrollbar-color:#a973b3 #1a1124;
}
body.j128-map-chrome .sidebar .worlds{gap:8px}
body.j128-map-chrome .sidebar .world{
  color:#f9edf8;background:linear-gradient(140deg,#382347,#261932);
  border:1px solid #875e96;border-radius:12px;
  box-shadow:0 4px 12px #0d06144b;
}
body.j128-map-chrome .sidebar .world small{color:#ddc3e3}
body.j128-map-chrome .sidebar .world:focus-visible,
body.j128-map-chrome .sidebar :is(button,input,select,a,summary):focus-visible{
  outline:3px solid #ffda99!important;outline-offset:3px
}
body.j128-map-chrome .sidebar .world:hover{background:#56305d;border-color:#ffc77a}
body.j128-map-chrome .sidebar .world.active,
body.j128-map-chrome .sidebar .world[aria-pressed="true"]{
  background:linear-gradient(120deg,#ffdc92,#f0a85f)!important;
  color:#2b1432;border:1px solid #ffe6b5;box-shadow:0 6px 18px #f3aa5736;
}
body.j128-map-chrome .sidebar .world.active small,
body.j128-map-chrome .sidebar .world[aria-pressed="true"] small{color:#422446}
body.j128-map-chrome .sidebar .atlas-explorer-head{
  isolation:isolate;overflow:hidden;
  border:1px solid #d6a1a5;border-radius:15px;padding:23px 18px;
  box-shadow:0 9px 22px #0c04159a;margin:13px 0;
  background-size:cover;background-position:center;
}
body.j128-map-chrome[data-start-world="5"] .sidebar .atlas-explorer-head{
  background-image:linear-gradient(105deg,#1d0d2de8,#2e1648c4 74%,#170f29a9),
                   url('./art/atlas93-los-santos.svg');
}
body.j128-map-chrome[data-start-world="online"] .sidebar .atlas-explorer-head{
  background-image:linear-gradient(105deg,#1d0d2de8,#2e1648c4 74%,#170f29a9),
                   url('./art/atlas93-gta-online.svg');
}
body.j128-map-chrome[data-start-world="6"] .sidebar .atlas-explorer-head{
  background-image:linear-gradient(105deg,#1d0d2de8,#2e1648c4 74%,#170f29a9),
                   url('./art/atlas93-leonida.svg');
}
body.j128-map-chrome .sidebar .atlas-explorer-head h1{
  font-size:clamp(24px,2.4vw,35px);letter-spacing:-.025em;
  font-style:italic;line-height:1.08;color:#fff8fe;text-shadow:0 4px 12px #11061e
}
body.j128-map-chrome .sidebar .atlas-explorer-head :is(p,.atlas-eyebrow){color:#ffe0aa;text-shadow:0 2px 7px #14081e}
body.j128-map-chrome .sidebar .dataset{color:#ecd1e8;border-radius:9px;
  background:#311d3e;padding:10px 11px;margin:6px 0;border:1px solid #795488}
body.j128-map-chrome .sidebar .hint{color:#e5cbec}
body.j128-map-chrome .sidebar .hint a{color:#ffcf8d;text-underline-offset:3px}
body.j128-map-chrome .sidebar .field-label{color:#ffdc9e;font-weight:800}
body.j128-map-chrome .sidebar :is(input[type="search"],select,textarea){
  background:#231731;color:#fff7ff;border:1px solid #9870a4;border-radius:10px;
}
body.j128-map-chrome .sidebar input::placeholder{color:#c3afcb}
body.j128-map-chrome .sidebar .atlas-filter-drawer,
body.j128-map-chrome .sidebar :is(.j101-special-layers,.named-layer-section,.offline){
  background:linear-gradient(142deg,#332043,#20172d);
  border:1px solid #91649d;color:#f8ebfb;border-radius:13px
}
body.j128-map-chrome .sidebar :is(details,summary){color:#f5e6f6}
body.j128-map-chrome .sidebar details>summary{cursor:pointer;color:#ffdeab;font-weight:850}
body.j128-map-chrome .sidebar .sectionrow strong{color:#ffda9d}
body.j128-map-chrome .sidebar .jura-legend-credit{color:#dac2df}
body.j128-map-chrome .sidebar .legend{gap:7px}
body.j128-map-chrome .sidebar .legend button,
body.j128-map-chrome .sidebar :is(.named-layer-actions,.named-layers) button{
  color:#f3e9f7;background:#2f203f;border:1px solid #895a9b;border-radius:10px;
}
body.j128-map-chrome .sidebar .legend button[aria-pressed="true"],
body.j128-map-chrome .sidebar :is(.named-layer-actions,.named-layers) button[aria-pressed="true"]{
  border-color:#f7bc79;background:#614068;color:#fff7fa;opacity:1;
}
body.j128-map-chrome .sidebar .legend button[aria-pressed="false"]{opacity:.73}
body.j128-map-chrome .sidebar :is(.link-btn,.named-layer-head strong){color:#ffd393}
body.j128-map-chrome .sidebar .tabs{border-color:#98669f}
body.j128-map-chrome .sidebar .tabs button{color:#efd4f4}
body.j128-map-chrome .sidebar .tabs button.selected{color:#ffd393;border-color:#ffc184}
body.j128-map-chrome .sidebar .tabs span{background:#54335f;color:#fff}
body.j128-map-chrome .sidebar .counts,
body.j128-map-chrome .sidebar .pagination{color:#e3cce7}
body.j128-map-chrome .sidebar .result{
  background:linear-gradient(135deg,#30203e,#201b31);color:#f6eaf8;
  border-color:#845b96;border-radius:11px
}
body.j128-map-chrome .sidebar .result.selected{background:#503259;border-color:#ffd18a}
body.j128-map-chrome .sidebar .result small{color:#e0cbdf}
body.j128-map-chrome .sidebar :is(.result-actions button,.pagination button,.gridbuttons button,.wide,.bottomlinks button,.offline button){
  background:#3f2a4d;color:#fff4fb;border:1px solid #9c6ba6;border-radius:9px;
}
body.j128-map-chrome .sidebar :is(.result-actions button,.pagination button,.gridbuttons button,.wide,.bottomlinks button,.offline button):hover{
  background:#62366b;border-color:#ffcb89
}
body.j128-map-chrome .sidebar .result-actions .primary,
body.j128-map-chrome .sidebar .accent{
  background:linear-gradient(110deg,#ffda94,#eea15e);color:#29142d;border-color:#ffe2ac;font-weight:850
}
body.j128-map-chrome .sidebar .offline strong{color:#ffdb9f}
body.j128-map-chrome .sidebar .bottomlinks{border-color:#865a91}
body.j128-map-chrome .sidebar .bottomlinks small{color:#d9c5df}
body.j128-map-chrome .map-wrap{background:#221831}
@media(prefers-reduced-motion:reduce){
  body.j128-map-chrome .sidebar :is(button,a,summary){transition:none!important}
}
