/* KITTY POP / Sigma's original kawaii navigation world. Pure vector geography,
   own icon language, and restrained candy-shop hardware for readability. */
body[data-theme=kawaii]{
  --skin-accent:#ee70a6;--skin-accent-rgb:238,112,166;
  --sigma-mint:#ee70a6;--accent:#ee70a6;--accent-rgb:238,112,166;--accent-ink:#fff;
  --shell-bg:rgba(255,246,249,.97);--shell-bg-raised:#fffafc;
  --shell-ink:#784260;--shell-muted:#a47690;--shell-stroke:rgba(216,139,176,.42);
  --shell-shadow:rgba(182,86,134,.18);--shell-shine:#fff;
  --radius-control:26px;--radius-sheet:30px;
  --experience-font:'Nunito',sans-serif;
}
body[data-theme=kawaii][data-ui=day]{--shell-bg:#fff8fb;--shell-bg-raised:#fff;--shell-ink:#784260;--shell-muted:#a47690}
body[data-theme=kawaii] .map-shell,body[data-theme=kawaii] .leaflet-container{background:#fff3f0}
body[data-theme=kawaii] .map-vignette{background:linear-gradient(180deg,rgba(255,228,242,.2),transparent 23%,transparent 72%,rgba(255,223,238,.18));mix-blend-mode:normal}
body[data-theme=kawaii] .grain{opacity:.045;background-image:radial-gradient(#fff 1px,transparent 1.3px);background-size:16px 16px;mix-blend-mode:screen}
body[data-theme=kawaii] .world-illustration{display:none}
body[data-theme=kawaii] .map-world-tag{color:#b85688;background:rgba(255,252,253,.91);border:1px solid #f7cede;border-radius:100px;padding:8px 13px;box-shadow:0 4px 15px #cf8fa926;font:800 10px 'Nunito',sans-serif;letter-spacing:.1em}
body[data-theme=kawaii] .map-caption{color:#9c5278;text-shadow:0 1px #fff;filter:none;font-family:'Nunito',sans-serif}
body[data-theme=kawaii] .caption-dash{background:#ee78a7}
body[data-theme=kawaii] .caption-coords{color:#a77a90}
body[data-theme=kawaii] .engine-indicator{background:#fffafcee;color:#a55f85;border:1px solid #f2cadc;border-radius:30px;font-family:'Nunito',sans-serif;box-shadow:0 4px 16px #ca8fab2c}
body[data-theme=kawaii] .status-ring,body[data-theme=kawaii] .live-dot{background:#f27cab;box-shadow:0 0 0 3px #ffe6f0}
body[data-theme=kawaii] .brand{background:linear-gradient(150deg,#fffefd,#ffe7f1);border:1px solid #fff;border-radius:25px;padding:5px 16px 5px 5px;box-shadow:0 6px 24px #ce8da54d,inset 0 2px #fff}
body[data-theme=kawaii] .brand-type strong{font:700 22px/.95 'Fredoka','Nunito',sans-serif;letter-spacing:-.04em;color:#b94d81;text-shadow:none}
body[data-theme=kawaii] .brand-type>span{font:800 8px/1.1 'Nunito',sans-serif;color:#b37c9b;letter-spacing:.09em}
body[data-theme=kawaii] .brand-dot{color:#f4a6c0}
body[data-theme=kawaii] .build-tag{background:#fff8fbea;color:#b56289;border:1px solid #f4d5e4;border-radius:30px;box-shadow:0 4px 12px #bb7c9d22;font-family:'Nunito',sans-serif;font-size:9px}
body[data-theme=kawaii] :is(.circle-button,.tool-button,.theme-close,.drawer-close,.route-close,.modal-close,.clear-search,.studio-launch,.route-style-button,.utility-button,.secondary-button,.origin-shortcuts button,.quick-places button){
  color:#995b81;background:linear-gradient(160deg,#fffefd 5%,#ffe7f1 100%);border:1px solid #edbfd5;border-radius:18px;
  box-shadow:inset 0 2px #fff,0 4px 13px #b67d9a38;backdrop-filter:blur(16px);
}
body[data-theme=kawaii] :is(.circle-button,.tool-button,.theme-close,.drawer-close,.route-close,.studio-launch,.utility-button):hover:not(:disabled){background:linear-gradient(155deg,#fff,#ffd5e7);border-color:#eaa5c5;transform:translateY(-1px)}
body[data-theme=kawaii] :is(.circle-button,.tool-button).active{background:#fbd2e6;border-color:#ef92bc;color:#a93d75}
body[data-theme=kawaii] :is(#uiModeButton){display:none!important}
body[data-theme=kawaii] .search-box{background:rgba(255,252,253,.97);border:2px solid #f5c9de;border-radius:26px;box-shadow:inset 0 2px #fff,0 11px 30px #ba78a53b}
body[data-theme=kawaii] .search-box input{font:700 17px 'Nunito',sans-serif;color:#81516e;letter-spacing:0}
body[data-theme=kawaii] .search-box input::placeholder{color:#b68fa5;opacity:1}
body[data-theme=kawaii] .search-shortcut{color:#ca80a3;font:900 10px 'Nunito',sans-serif;letter-spacing:.04em}
body[data-theme=kawaii] .search-results,body[data-theme=kawaii] .origin-results{background:#fffafc;border:1px solid #f1c8dc;box-shadow:0 9px 25px #b57ca633;border-radius:19px;color:#744360}
body[data-theme=kawaii] .search-result,body[data-theme=kawaii] .origin-result{color:#7c4a68;border-radius:13px;font-family:'Nunito',sans-serif}
body[data-theme=kawaii] .search-result:hover,body[data-theme=kawaii] .origin-result:hover{background:#ffedf5}
body[data-theme=kawaii] .search-result small,body[data-theme=kawaii] .search-message{color:#a67c92}
body[data-theme=kawaii] .styles-launcher{background:linear-gradient(145deg,#fff,#ffdbe9);border:2px solid #f2bed6;border-radius:24px;color:#995475;box-shadow:inset 0 2px #fff,0 8px 21px #ba7ca73a}
body[data-theme=kawaii] .styles-launcher:after{background:linear-gradient(90deg,#f16c9f,#ffd27c);opacity:.7;height:3px}
body[data-theme=kawaii] .styles-copy strong{color:#ac5882;font-family:'Fredoka',sans-serif;font-weight:600}
body[data-theme=kawaii] .styles-copy small{color:#aa7b98;font-family:'Nunito',sans-serif}
body[data-theme=kawaii] .quick-label{color:#ac5d83;background:#fffafce8;border-radius:99px;padding:6px 10px;font:900 10px 'Nunito',sans-serif;text-shadow:none}
body[data-theme=kawaii] .quick-places button{border-radius:99px;color:#9a527a;font:800 12px 'Nunito',sans-serif;background:#fffcfdee;border:1px solid #f0c7db;box-shadow:0 5px 15px #be86a53d}
body[data-theme=kawaii] .quick-places .place-dot{background:#f47aab;border:2px solid #fff;box-shadow:0 0 0 1px #f4b0ce}
body[data-theme=kawaii] .route-card,body[data-theme=kawaii] .theme-dock,body[data-theme=kawaii] .places-drawer{
  color:#774564;background:linear-gradient(160deg,rgba(255,254,254,.99),rgba(255,237,245,.97));
  border:1px solid #f8d7e6;border-radius:30px;box-shadow:inset 0 2px #fff,0 17px 56px #a9688e42;
  backdrop-filter:blur(26px);
}
body[data-theme=kawaii] .route-card:before,body[data-theme=kawaii] .theme-dock:before{height:3px;background:linear-gradient(90deg,#ffd2e4,#f47ba8,#ffe4a0,#ffd2e4);opacity:.9;border-radius:9px}
body[data-theme=kawaii] .route-kicker,body[data-theme=kawaii] .dock-eyebrow{font:900 10px 'Nunito',sans-serif;letter-spacing:.12em;color:#e66e9f}
body[data-theme=kawaii] .route-kicker-dot{width:14px;height:14px;border-radius:0;border:0;background:url('./assets/kawaii/position.svg') center/contain no-repeat;box-shadow:none}
body[data-theme=kawaii] .route-place-symbol{border:1.5px solid #f2bdd4;border-radius:21px;background:#fffafd;box-shadow:0 4px 13px #bd82a241;color:#be5a86}
body[data-theme=kawaii] .route-destination,body[data-theme=kawaii] .dock-heading h2,body[data-theme=kawaii] .drawer-heading h2{font:600 26px/1.05 'Fredoka',sans-serif;letter-spacing:-.025em;color:#965178}
body[data-theme=kawaii] .route-subline,body[data-theme=kawaii] .route-notice{color:#a67d94;font-family:'Nunito',sans-serif}
body[data-theme=kawaii] :is(.utility-button,.origin-summary,.secondary-button){color:#975875;font-family:'Nunito',sans-serif;font-weight:800;border-radius:16px}
body[data-theme=kawaii] .origin-summary strong{color:#915171}
body[data-theme=kawaii] .route-stats{background:linear-gradient(95deg,#fff3f8,#ffe2ee);border:1px solid #f4cde0;border-radius:22px}
body[data-theme=kawaii] .route-stats strong{color:#a34a7c;font:600 28px 'Fredoka',sans-serif}
body[data-theme=kawaii] .route-stats span{color:#b47f9b;font-family:'Nunito',sans-serif}
body[data-theme=kawaii] .primary-button{background:linear-gradient(155deg,#ff9fc5,#ef69a1 60%,#df4d8e);border:1px solid #ffd0e2;border-radius:21px;color:white;text-shadow:0 1px #bc5185aa;box-shadow:inset 0 2px #ffd6e6a8,0 7px 20px #da639c55;font:800 15px 'Nunito',sans-serif;letter-spacing:.025em}
body[data-theme=kawaii] .primary-button:hover{filter:brightness(1.04)}
body[data-theme=kawaii] .secondary-button:disabled{opacity:.42}
body[data-theme=kawaii] :is(.route-style-button,.route-close,.theme-close,.drawer-close,.modal-close){color:#a85b82}
body[data-theme=kawaii] .dock-heading p,body[data-theme=kawaii] .dock-foot{color:#a47b93;font-family:'Nunito',sans-serif}
body[data-theme=kawaii] .theme-card{background:#fff9fb;border:1px solid #efc5da;border-radius:19px}
body[data-theme=kawaii] .theme-card[aria-pressed=true]{background:#ffe6f0;border-color:#e975a6;box-shadow:0 0 0 1px #e975a655}
body[data-theme=kawaii] .theme-art{border-radius:13px}
body[data-theme=kawaii] .theme-details strong{font:600 17px 'Fredoka',sans-serif;color:#965478}
body[data-theme=kawaii] .theme-details small{font:900 9px 'Nunito',sans-serif;color:#b4869f;letter-spacing:.055em}
body[data-theme=kawaii] .selected-badge{background:#ec70a3;color:white}
body[data-theme=kawaii] .modal{background:linear-gradient(155deg,#fff,#ffe6f1);color:#784b67;border:2px solid #f3c6de;border-radius:28px}
body[data-theme=kawaii] .modal h2{font-family:'Fredoka',sans-serif;color:#a95180}
body[data-theme=kawaii] .modal-note,body[data-theme=kawaii] .modal-credits{color:#9b738a}
body[data-theme=kawaii] .toast{background:#fff6fa;color:#a0507d;border:1px solid #f2c9dc;box-shadow:0 6px 25px #a2678a40;font:800 12px 'Nunito',sans-serif}
body[data-theme=kawaii] .demo-banner{background:#fff7fb;color:#984972;border-color:#f4a8c7;font-family:'Nunito',sans-serif}
body[data-theme=kawaii] .demo-banner button{background:#f18cba;color:white}
body[data-theme=kawaii] .places-drawer .places-empty,body[data-theme=kawaii] .drawer-foot{color:#a17b93}
body[data-theme=kawaii] .place-row-select{color:#82506d}
body[data-theme=kawaii][data-renderer=raster] .leaflet-tile-pane img{filter:sepia(.13) hue-rotate(289deg) saturate(.83) brightness(1.10)}
body[data-theme=kawaii] .map-error{background:#fff1f7;color:#9a5480}

/* Every interactive control swaps its art with the selected world. */
.kawaii-ui-glyph{display:none;object-fit:contain;flex-shrink:0;vertical-align:middle;pointer-events:none;user-select:none;-webkit-user-drag:none}
body[data-theme=kawaii] .kawaii-ui-glyph{display:inline-block;width:24px;height:24px}
body[data-theme=kawaii] .kawaii-fallback-glyph{display:none!important}
body[data-theme=kawaii] :is(.circle-button,.tool-button)>.kawaii-ui-glyph{width:28px;height:28px}
body[data-theme=kawaii] .search-icon>.kawaii-ui-glyph{width:28px;height:28px}
body[data-theme=kawaii] .styles-launcher>.kawaii-ui-glyph{width:31px;height:31px}
body[data-theme=kawaii] .route-place-symbol>.kawaii-ui-glyph{width:37px;height:37px}
body[data-theme=kawaii] :is(.utility-button,.route-style-button,.origin-summary,.origin-shortcuts button)>.kawaii-ui-glyph{width:23px;height:23px}
body[data-theme=kawaii] :is(.search-result,.origin-result,.place-row-select)>.kawaii-ui-glyph{width:24px;height:24px}
body[data-theme=kawaii] .studio-launch>.kawaii-ui-glyph{width:25px;height:25px;margin-right:2px}
body[data-theme=kawaii] .studio-spark{display:none}
body[data-theme=kawaii] .drawer-section-heading>.kawaii-ui-glyph{width:20px;height:20px}
body[data-theme=kawaii] #routeButton>.kawaii-ui-glyph{width:30px;height:30px}
/* One consistent, centered pink X throughout Kitty Pop. */
body[data-theme=kawaii] :is(#clearSearch,#routeClose,#themeClose,#placesClose,#aboutClose){padding:0!important;display:grid;place-items:center;line-height:0}
body[data-theme=kawaii] :is(#clearSearch,#routeClose,#themeClose,#placesClose,#aboutClose)>.kawaii-ui-glyph{display:block;width:24px;height:24px;margin:0!important;place-self:center}

/* Geographic marker artwork is tied to the actual map coordinate. */
body[data-theme=kawaii] .sigma-marker.sigma-destination{
  width:35px;height:44px;padding:0;margin:0;border:0!important;border-radius:0!important;
  background:url('./assets/kawaii/icons-256/destination.png') center bottom/contain no-repeat!important;
  box-shadow:none!important;clip-path:none;filter:drop-shadow(0 3px 3px #b4759b55);
}
body[data-theme=kawaii] .sigma-marker.sigma-destination .marker-centre{display:none}
body[data-theme=kawaii] .nav-here-dot{display:block;width:28px;height:28px;border:0;border-radius:0;background:url('./assets/kawaii/icons-256/position.png') center/contain no-repeat;box-shadow:none;filter:drop-shadow(0 2px 2px #b4759b55)}
body[data-theme=kawaii] .nav-here-dot:after{display:none}
.nav-pointer-kawaii{display:none}
body[data-theme=kawaii] .nav-pointer-aero,body[data-theme=kawaii] .nav-pointer-frontier{display:none}
body[data-theme=kawaii] .nav-pointer-kawaii{display:block;width:52px;height:52px;filter:drop-shadow(0 3px 4px #b4759b77)}

/* The gallery remains usable on narrow phones. */
body[data-theme] .theme-list{grid-template-columns:repeat(6,minmax(0,1fr))}
.art-kawaii{--mini-land:#fff3f0;--mini-water:#bbdfef;--mini-park:#c9e7b1;--mini-block:#f2d9e7;--mini-road:#fff;--mini-casing:#e9cbdc;--mini-arterial:#fdd4e7;--mini-arterial-case:#d77ea9;--mini-route:#f55191;--mini-dot:#db4b91}
.art-kawaii:after{content:'';position:absolute;inset:0;background:linear-gradient(145deg,#fff8,transparent 52%,#ffddec44);pointer-events:none}
.art-kawaii .mini-heart{fill:#f8a2c3;stroke:#fff;stroke-width:1.5}
.art-kawaii .mini-star{fill:#f4c56f;stroke:#fff;stroke-width:1.3}
.art-kawaii .mini-route{stroke-width:5;stroke-dasharray:none;filter:drop-shadow(0 0 2px #ee86b4)}

@media(max-width:900px){
  body[data-theme] .theme-list{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:7px}
  body[data-theme] .theme-card{height:145px;flex:0 0 min(45vw,210px);min-width:0;scroll-snap-align:start}
  body[data-theme] .theme-art{height:91px;flex-basis:91px}
  body[data-theme=kawaii] .theme-dock,body[data-theme=kawaii] .route-card{border-radius:27px 27px 0 0}
  body[data-theme=kawaii] .brand-type strong{font-size:18px}
  body[data-theme=kawaii] .brand{padding:4px 9px 4px 4px;border-radius:20px}
  body[data-theme=kawaii] .search-box input{font-size:16px}
  body[data-theme=kawaii] .theme-details strong{font-size:15px}
  body[data-theme=kawaii] .theme-details small{font-size:8px}
}
@media(max-width:370px), (max-height:650px) and (max-width:900px){
  body[data-theme] .theme-card{height:119px;flex-basis:46vw}
  body[data-theme] .theme-art{height:69px;flex-basis:69px}
  body[data-theme=kawaii] .theme-details strong{font-size:13px}
}
@media(prefers-reduced-motion:reduce){body[data-theme=kawaii] .theme-card,body[data-theme=kawaii] .kawaii-ui-glyph{transition:none;animation:none}}
