/* K-Craft map skin: the map stays the primary surface. */
:root {
  --ui-background: rgba(19, 39, 42, .94);
  --ui-background-hover: #315d55;
  --ui-background-active: #23483f;
  --ui-background-selected: #356b59;
  --ui-text: #f2f5ea;
  --ui-text-hover: #fff;
  --ui-text-selected: #fff;
  --ui-border: 1px solid rgba(215, 234, 211, .24);
  --ui-border-radius: 9px;
  --ui-box-shadow: 0 3px 14px rgba(9, 28, 27, .23);
}
body { font-family: "Yu Gothic UI", "Meiryo", sans-serif; }
.kc-map-brand { position: fixed; z-index: 1100; top: 12px; left: 50%; transform: translateX(-50%); display:flex; align-items:center; gap:10px; padding:8px 14px 8px 9px; border:1px solid rgba(225,241,221,.36); border-radius:12px; color:#f7f7e9; background:rgba(18,45,42,.92); box-shadow:0 4px 18px rgba(0,0,0,.22); pointer-events:none; }
.kc-map-mark { width:34px; height:34px; display:grid; place-items:center; background:#79ba80; color:#14362b; border-radius:7px; font:900 19px/1 Georgia,serif; }
.kc-map-title { display:block; font:800 13px/1.1 "Yu Gothic UI",sans-serif; letter-spacing:.08em; }
.kc-map-sub { display:block; margin-top:4px; font:600 10px/1 "Yu Gothic UI",sans-serif; letter-spacing:.1em; color:#b8d6c5; }
#sidebar #sidebar__content, .leaflet-control-panel { box-shadow: 0 5px 24px rgba(0,0,0,.22); backdrop-filter: blur(8px); }
.leaflet-control-attribution { opacity:.85; }
@media (max-width: 520px) { .kc-map-brand { top:10px; padding:6px; gap:6px; } .kc-map-mark { width:28px; height:28px; font-size:16px; } .kc-map-sub { display:none; } .kc-map-title { font-size:11px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }

/* A compact header identifies the world without covering map controls. */
.kc-map-brand { gap: 16px; padding: 9px 16px 9px 10px; pointer-events: auto; min-width: 310px; }
.kc-map-home { display:flex; align-items:center; gap:10px; color:inherit; text-decoration:none; }
.kc-map-home:focus-visible { outline:2px solid #b9f5bd; outline-offset:4px; border-radius:4px; }
.kc-map-mark { width:38px; height:38px; font-size:21px; }
.kc-map-title { font-size:14px; letter-spacing:.1em; }
.kc-map-sub { font-size:10px; letter-spacing:.04em; }
.kc-map-divider { width:1px; height:28px; background:rgba(214,235,218,.25); }
.kc-map-context { display:flex; flex-direction:column; gap:4px; min-width:0; }
.kc-map-label { color:#bdd9ca; font:600 10px/1 sans-serif; }
.kc-map-context strong { font:700 12px/1.2 "Yu Gothic UI",sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:180px; }
#sidebar #sidebar__content { padding: 1rem; border-radius: 12px; }
#sidebar #sidebar__content h2 { font-family: "Yu Gothic UI",sans-serif; letter-spacing:.04em; }
@media (max-width: 520px) { .kc-map-brand { min-width:0; gap:7px; padding:6px 8px; } .kc-map-mark { width:28px; height:28px; font-size:16px; } .kc-map-sub { display:none; } .kc-map-context strong { max-width:94px; font-size:10px; } .kc-map-label { font-size:9px; } .kc-map-divider { height:22px; } }
