:root {
  --map-unlocked: #7fb25d;
  --map-discovered: #6d9db0;
  --map-completed: #d6a84f;
  --map-locked: #5b5852;
  --map-event: #b94a3d;
  --map-planned: #8d6fb2;
  --map-road: rgba(236,205,142,.58);
}

body { overflow-x: hidden; }

.page-shell {
  width: min(1600px, calc(100% - 30px));
  margin: 0 auto;
  padding: 26px 0 60px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--k-gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.world-hero {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8,9,10,.95), rgba(10,13,14,.78) 58%, rgba(10,13,14,.4)),
    radial-gradient(circle at 80% 45%, rgba(117,167,189,.13), transparent 25rem),
    url('/assets/world/banner.png') center / cover no-repeat;
}

.world-hero::after {
  content: '';
  position: absolute;
  right: -90px;
  bottom: -160px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(214,168,79,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(214,168,79,.02), 0 0 0 62px rgba(214,168,79,.012);
}

.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(2.9rem, 7vw, 6.5rem);
  line-height: .9;
  letter-spacing: -.045em;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 800px;
  color: var(--k-muted);
  line-height: 1.68;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.map-section {
  margin-top: 18px;
  padding: 18px;
}

.status-line {
  margin: 10px 0 12px;
  color: var(--k-muted);
}
.status-line.error { color: #e38a7c; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 0 0 12px;
  color: var(--k-muted);
  font-size: .86rem;
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--map-locked);
  box-shadow: 0 0 0 3px rgba(255,255,255,.03);
}
.legend-dot.unknown,
.legend-dot.unavailable,
.legend-dot.available,
.legend-dot.event_closed { background: var(--map-locked); }
.legend-dot.discovered { background: var(--map-discovered); }
.legend-dot.visited,
.legend-dot.unlocked { background: var(--map-unlocked); }
.legend-dot.completed { background: var(--map-completed); }
.legend-dot.event_open { background: var(--map-event); }
.legend-dot.planned { background: var(--map-planned); }
.legend-dot.epilogue { background: #7a63b8; }

.world-map {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(236,205,142,.2);
  border-radius: 14px;
  background: #0b0d0d;
  box-shadow: inset 0 0 70px rgba(0,0,0,.78);
}

.world-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(7,8,8,.10), rgba(7,8,8,.24)),
    url('/assets/world/map-background.webp') center / cover no-repeat,
    linear-gradient(135deg, #20251f, #171b1a 50%, #211d1b);
  box-shadow: inset 0 0 100px rgba(0,0,0,.7);
}

.world-map-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 52%, rgba(0,0,0,.42)),
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.12));
}

.world-map-routes,
.world-map-nodes {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.world-map-routes { overflow: visible; }

.map-route {
  fill: none;
  stroke: var(--map-road);
  stroke-width: .65;
  stroke-linecap: round;
  stroke-dasharray: 2.2 1.2;
  vector-effect: non-scaling-stroke;
  transition: opacity .16s ease, stroke .16s ease, stroke-width .16s ease, filter .16s ease;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.75));
}
.map-route.locked,
.map-route.event_closed { stroke: rgba(178,165,139,.48); }
.map-route.event_open { stroke: rgba(229,111,94,.86); stroke-dasharray: 1.2 1.1; }
.map-route.planned { stroke: rgba(157,126,193,.66); stroke-dasharray: .8 1.5; }
.map-route.unlocked { stroke: rgba(177,231,145,.8); }
.map-route.is-muted { opacity: .2; }
.map-route.is-highlighted {
  opacity: 1;
  stroke-width: 1.1;
  filter: drop-shadow(0 0 4px rgba(241,201,109,.58));
}

.map-node-anchor {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 108px;
  min-height: 112px;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.map-node-anchor:hover,
.map-node-anchor:focus-within { z-index: 5; }
.map-node {
  position: relative;
  display: grid;
  place-items: center;
  gap: 4px;
  width: 100%;
  min-height: 112px;
  padding: 9px 9px 8px;
  border: 1px solid rgba(236,205,142,.34);
  border-radius: 12px;
  color: var(--k-text);
  background: rgba(13,15,15,.86);
  box-shadow: 0 8px 20px rgba(0,0,0,.48), inset 0 0 0 1px rgba(0,0,0,.52);
  cursor: pointer;
  text-align: center;
  transform: none;
  transition: filter .14s ease, border-color .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.map-node:hover,
.map-node:focus-visible {
  transform: none;
  filter: brightness(1.08) saturate(1.02);
  border-color: rgba(241,201,109,.84);
  box-shadow: 0 0 0 1px rgba(214,168,79,.1), 0 0 16px rgba(214,168,79,.16), 0 8px 20px rgba(0,0,0,.48);
  outline: 0;
}
.map-node:active { transform: none; }
.map-node[data-location-interactive="0"] { cursor: default; }
.map-node[data-location-interactive="0"]:hover,
.map-node[data-location-interactive="0"]:focus-visible {
  filter: brightness(1.045);
  border-color: rgba(145,135,116,.82);
  box-shadow: 0 0 12px rgba(214,168,79,.09), 0 8px 20px rgba(0,0,0,.48), inset 0 0 0 1px rgba(0,0,0,.52);
}
.map-node.is-related:not(:hover):not(:focus-visible) {
  border-color: rgba(236,205,142,.58);
  filter: brightness(1.05);
}
.map-node .node-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
}
.map-node .node-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.6));
}
.map-node strong { max-width: 100px; font-size: .79rem; line-height: 1.15; }
.map-node small { max-width: 100px; color: var(--k-muted); font-size: .66rem; line-height: 1.18; }
.map-node.unknown,
.map-node.unavailable,
.map-node.available,
.map-node.event_closed {
  color: var(--k-dim);
  border-color: rgba(91,88,82,.72);
  filter: grayscale(.7);
}
.map-node.discovered { border-color: rgba(109,157,176,.78); }
.map-node.visited,
.map-node.unlocked { border-color: rgba(127,178,93,.78); }
.map-node.completed { border-color: rgba(214,168,79,.86); }
.map-node.event_open { border-color: rgba(185,74,61,.88); box-shadow: 0 0 22px rgba(185,74,61,.18), 0 8px 20px rgba(0,0,0,.48); }
.map-node.planned { color: #c9b7df; border-color: rgba(141,111,178,.72); background: rgba(28,22,35,.9); }
.map-node.epilogue { border-color: rgba(122,99,184,.82); box-shadow: 0 0 22px rgba(122,99,184,.18), 0 8px 20px rgba(0,0,0,.48); }

.world-section { margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }

.world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.loading-card {
  grid-column: 1 / -1;
  padding: 30px;
  color: var(--k-muted);
  text-align: center;
}

.location-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 0;
  border-width: 2px;
  cursor: pointer;
  transition: filter .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.location-card:hover,
.location-card:focus-visible {
  filter: brightness(1.05);
  border-color: rgba(241,201,109,.78);
  box-shadow: 0 14px 32px rgba(0,0,0,.42);
  outline: 0;
}
.location-card--unknown {
  cursor: default;
  border-color: rgba(91,88,82,.54);
}
.location-card--unknown:hover,
.location-card--unknown:focus-visible {
  filter: none;
  border-color: rgba(91,88,82,.54);
  box-shadow: none;
}
.location-card.discovered { border-color: rgba(109,157,176,.62); }
.location-card.visited { border-color: rgba(127,178,93,.62); }
.location-card.completed { border-color: rgba(214,168,79,.68); }
.location-card.event_open { border-color: rgba(185,74,61,.72); }
.location-card.event_closed { border-color: rgba(91,88,82,.62); }
.location-card.planned { border-color: rgba(141,111,178,.66); }
.location-card.epilogue { border-color: rgba(122,99,184,.68); }

.card-image {
  position: relative;
  height: 215px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--k-line);
  background:
    radial-gradient(circle at 50% 40%, rgba(214,168,79,.13), transparent 52%),
    linear-gradient(180deg, rgba(34,34,31,.95), rgba(9,10,10,.98));
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.card-image.locked img {
  opacity: .12;
  filter: grayscale(1) blur(4px);
  transform: scale(1.04);
}
.card-image-fallback {
  font-size: 5rem;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.5));
}
.card-image.locked .card-image-fallback { opacity: .22; filter: grayscale(1) blur(1px); }
.lock-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(5,5,5,.12), rgba(5,5,5,.7));
}
.lock-overlay span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 0;
  background: url('/assets/ui/lock-seal.png') center / contain no-repeat;
  color: transparent;
  font-size: 0;
  filter: drop-shadow(0 7px 12px rgba(0,0,0,.65));
}
.card-state { position: absolute; right: 10px; top: 10px; }

.card-body { padding: 17px; }
.card-body h3 { margin: 0; font-size: 1.3rem; }
.card-region { margin: 6px 0 0; color: var(--k-muted); font-size: .86rem; }
.card-description { margin: 12px 0; color: var(--k-muted); font-size: .93rem; line-height: 1.55; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.card-tag {
  padding: 5px 8px;
  border: 1px solid var(--k-line);
  border-radius: 999px;
  color: var(--k-muted);
  background: rgba(0,0,0,.2);
  font-size: .78rem;
}
.card-discovery-note { margin: 13px 0 0; color: var(--k-dim); font-size: .8rem; }
.card-body--unknown { min-height: 130px; display: grid; align-content: center; text-align: center; }
.card-body--unknown h3 { color: var(--k-muted); }
.card-body--unknown p { margin: 9px 0 0; color: var(--k-dim); }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid var(--k-line);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
}
.status-chip.available,
.status-chip.unavailable,
.status-chip.event_closed { color: #cfb77b; background: rgba(14,14,13,.78); }
.status-chip.discovered { color: #9ec9da; background: rgba(31,57,67,.8); }
.status-chip.visited { color: #a9da86; background: rgba(33,57,27,.8); }
.status-chip.completed { color: var(--k-gold-2); background: rgba(71,47,14,.82); }
.status-chip.event_open { color: #f0a099; background: rgba(83,29,24,.82); }
.status-chip.planned { color: #d7c2ef; background: rgba(50,37,65,.82); }
.status-chip.epilogue { color: #d0c3f3; background: rgba(48,38,72,.84); }

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.detail-modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(5px);
  cursor: pointer;
}
.detail-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 22px;
  background: var(--k-panel-2);
}
.modal-close {
  position: sticky;
  float: right;
  top: 0;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid var(--k-line);
  border-radius: 50%;
  color: var(--k-text);
  background: rgba(0,0,0,.66);
  cursor: pointer;
  font-size: 1.5rem;
}
.location-layer-tabs {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 54px 14px 0;
}
.location-layer-tab {
  padding: 9px 12px;
  border: 1px solid var(--k-line);
  border-radius: 999px;
  color: var(--k-muted);
  background: rgba(0,0,0,.28);
  cursor: pointer;
  font-weight: 800;
}
.location-layer-tab:hover:not(:disabled) { color: var(--k-gold-2); border-color: var(--k-line-2); }
.location-layer-tab.active { color: #17100a; border-color: transparent; background: var(--k-gold); }
.location-layer-tab:disabled { opacity: .55; cursor: not-allowed; }

.detail-banner {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  clear: both;
  overflow: hidden;
  border: 1px solid var(--k-line);
  border-radius: 12px;
  background: radial-gradient(circle, rgba(214,168,79,.13), transparent 60%), rgba(0,0,0,.28);
}
.detail-banner img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  image-rendering: pixelated;
}
.detail-banner > span { font-size: 8rem; }
.detail-copy { padding-top: 20px; }
.detail-copy h2 { margin: 4px 0 8px; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: .94; }
.detail-copy > p { color: var(--k-muted); line-height: 1.68; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.detail-columns {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  margin-top: 16px;
}
.detail-columns.single { grid-template-columns: 1fr; }
.detail-columns > div { display: grid; align-content: start; gap: 14px; }
.detail-box {
  padding: 14px;
  border: 1px solid var(--k-line);
  border-radius: 10px;
  background: rgba(0,0,0,.22);
}
.detail-box h3 { margin: 0 0 10px; color: var(--k-gold-2); }
.detail-list { display: grid; gap: 8px; }
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(236,205,142,.1);
  border-radius: 8px;
  color: inherit;
  background: rgba(255,255,255,.015);
  text-decoration: none;
}
.detail-row-link:hover { border-color: rgba(214,168,79,.4); background: rgba(214,168,79,.05); }
.detail-row small { color: var(--k-muted); text-align: right; }
.detail-box--compact .detail-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.detail-box--compact .detail-row {
  min-height: 58px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 3px;
  padding: 8px 9px;
}
.detail-box--compact .detail-row small {
  text-align: left;
  line-height: 1.35;
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }

@media (max-width: 1250px) {
  .world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) and (min-width: 701px) {
  .map-node-anchor { width: 96px; min-height: 106px; }
  .map-node {
    min-height: 106px;
    padding: 8px 7px 7px;
  }
  .map-node .node-icon { width: 46px; height: 46px; }
  .map-node strong { max-width: 88px; font-size: .73rem; }
  .map-node small { max-width: 88px; font-size: .62rem; }
}

@media (max-width: 980px) {
  .world-hero { grid-template-columns: 1fr; }
  .detail-columns { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .page-shell { width: min(100% - 18px, 1600px); padding-top: 14px; }
  .world-grid { grid-template-columns: 1fr; }
  .world-map {
    aspect-ratio: auto;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .world-map-canvas {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 12px;
    border: 1px solid rgba(236,205,142,.2);
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(7,8,8,.72), rgba(7,8,8,.84)),
      url('/assets/world/map-background.webp') center / cover no-repeat,
      #171b1a;
  }
  .world-map-routes { display: none; }
  .world-map-nodes {
    position: relative;
    display: grid;
    gap: 9px;
    height: auto;
  }
  .map-node-anchor {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-height: 0;
    transform: none;
  }
  .map-node {
    position: relative;
    transform: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    justify-items: start;
    width: 100%;
    min-height: 0;
    text-align: left;
  }
  .map-node:hover,
  .map-node:focus-visible,
  .map-node:active { transform: none; }
  .map-node .node-icon { grid-row: 1 / 3; }
  .map-node strong,
  .map-node small { max-width: none; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .card-image { height: 250px; }
  .detail-modal { padding: 10px; }
  .detail-panel { max-height: calc(100vh - 20px); padding: 14px; }
  .detail-banner { min-height: 240px; }
  .detail-row { align-items: flex-start; flex-direction: column; }
  .detail-row small { text-align: left; }
  .detail-box--compact .detail-list { grid-template-columns: 1fr; }
  .location-layer-tabs { margin-right: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* 0.10.25a182 – šířka obsahu pro sdílený modal */
.detail-panel { --modal-width: 980px; }

/* 0.10.25a194p6 – osobní resource actions na Mapě */
.resource-action-panel{margin-top:16px;border-color:rgba(119,184,91,.3);background:linear-gradient(180deg,rgba(119,184,91,.055),rgba(0,0,0,.22))}.resource-action-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}.resource-action-heading h3{margin:2px 0 0}.resource-action-heading small{max-width:420px;color:var(--k-muted);line-height:1.4;text-align:right}.resource-action-list{display:grid;gap:8px}.resource-action-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px;border:1px solid rgba(236,205,142,.1);border-radius:9px;background:rgba(0,0,0,.2)}.resource-action-row>div:first-child{display:grid;gap:4px}.resource-action-row small{color:var(--k-muted)}.resource-action-counts{display:flex;gap:6px}.resource-action-counts .k-button{min-width:48px;padding:7px 10px}.resource-action-result{margin-top:10px;padding:10px 12px;border:1px solid var(--k-line);border-radius:8px;color:var(--k-muted);background:rgba(0,0,0,.25);line-height:1.45}.resource-action-result.is-success{border-color:rgba(119,184,91,.42);color:#c7dcb7}.resource-action-result.is-error{border-color:rgba(143,44,37,.55);color:#f0a099}.resource-action-result.is-loading{opacity:.8}@media(max-width:700px){.resource-action-heading,.resource-action-row{align-items:flex-start;flex-direction:column}.resource-action-heading small{text-align:left}.resource-action-counts{width:100%}.resource-action-counts .k-button{flex:1}}

/* ========================================================================== */
/* 0.10.25a194p16 – Svazek II / Mapa Království                              */
/* Kronikářská mapa, regionální akcenty a živý inkoust                         */
/* ========================================================================== */

.world-hero {
  border-color: rgba(92,148,86,.38);
  background:
    linear-gradient(90deg, rgba(7,9,8,.96), rgba(10,13,12,.80) 58%, rgba(10,13,12,.42)),
    radial-gradient(circle at 77% 42%, rgba(92,148,86,.15), transparent 25rem),
    radial-gradient(circle at 15% 8%, rgba(214,168,79,.09), transparent 26rem),
    url('/assets/world/banner.png') center / cover no-repeat;
}
.world-hero::before {
  content:'';
  position:absolute;
  inset:9px;
  border:1px solid rgba(214,168,79,.07);
  border-radius:12px;
  pointer-events:none;
}
.world-hero .section-emblem {
  border-color:rgba(92,148,86,.34);
  background:linear-gradient(155deg,rgba(18,31,20,.78),rgba(8,10,9,.84));
  box-shadow:inset 0 0 32px rgba(92,148,86,.06),0 18px 40px rgba(0,0,0,.28);
}
.world-hero .section-emblem__icon { filter:drop-shadow(0 10px 20px rgba(0,0,0,.54)); }

.map-section {
  position:relative;
  padding:20px;
  overflow:hidden;
  border-color:rgba(214,168,79,.28);
  background:
    radial-gradient(circle at 10% 0%,rgba(214,168,79,.06),transparent 25rem),
    linear-gradient(155deg,rgba(17,18,17,.97),rgba(9,11,10,.99));
}
.map-section::before {
  content:'';
  position:absolute;
  inset:8px;
  border:1px solid rgba(214,168,79,.06);
  border-radius:12px;
  pointer-events:none;
}
.map-section > * { position:relative; z-index:1; }
.map-section .k-panel-title { margin-bottom:12px; }

.map-legend-wrap {
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 0 13px;
  padding:9px 12px;
  border:1px solid rgba(214,168,79,.14);
  border-radius:9px;
  background:rgba(0,0,0,.20);
}
.map-legend-title {
  flex:none;
  color:#d8bd84;
  font-family:Georgia,'Times New Roman',serif;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.06em;
}
.map-legend {
  gap:9px 14px;
  margin:0;
  font-size:.76rem;
}
.map-legend span { gap:5px; }
.legend-dot {
  width:7px;
  height:7px;
  box-shadow:0 0 0 2px rgba(255,255,255,.025);
}

.world-map {
  border-color:rgba(214,168,79,.28);
  border-radius:13px;
  box-shadow:inset 0 0 90px rgba(0,0,0,.72),0 18px 42px rgba(0,0,0,.22);
}
.world-map-canvas {
  --map-active-rgb:214,168,79;
  background:
    linear-gradient(180deg,rgba(7,8,8,.05),rgba(7,8,8,.18)),
    url('/assets/world/map-background.webp') center / cover no-repeat,
    linear-gradient(135deg,#20251f,#171b1a 50%,#211d1b);
}
.world-map-canvas::after {
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.009) 1px,transparent 1px);
  background-size:7.5% 7.5%;
  opacity:.24;
  mask-image:radial-gradient(circle at center,#000 25%,transparent 83%);
}

.map-route {
  stroke:rgba(209,191,151,.48);
  stroke-width:.56;
  stroke-dasharray:2.4 1.45;
  opacity:.82;
  transition:opacity .22s ease,stroke .22s ease,stroke-width .22s ease,filter .22s ease;
}
.map-route.locked,.map-route.event_closed { stroke:rgba(158,148,129,.38); }
.map-route.event_open { stroke:rgba(204,110,89,.68); }
.map-route.planned { stroke:rgba(141,111,178,.55); }
.map-route.unlocked { stroke:rgba(156,185,127,.62); }
.map-route.is-muted { opacity:.13; }
.map-route.is-highlighted {
  opacity:1;
  stroke:rgb(var(--map-active-rgb));
  stroke-width:1.05;
  stroke-dasharray:3.2 1.7;
  filter:drop-shadow(0 0 4px rgba(var(--map-active-rgb),.52));
  animation:world-ink-flow 1.35s linear infinite;
}
@keyframes world-ink-flow { to { stroke-dashoffset:-14; } }

.map-node-anchor {
  width:116px;
  min-height:96px;
  z-index:2;
}
.map-node-anchor:hover,.map-node-anchor:focus-within { z-index:7; }
.map-node {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:4px;
  width:100%;
  min-height:96px;
  padding:0;
  border:0;
  border-radius:0;
  color:var(--k-text);
  background:transparent;
  box-shadow:none;
  cursor:pointer;
  text-align:center;
  filter:none;
  transition:filter .22s ease,opacity .22s ease;
}
.map-node:hover,.map-node:focus-visible,.map-node.is-focused {
  transform:none;
  filter:none;
  border:0;
  box-shadow:none;
  outline:0;
}
.node-marker {
  position:relative;
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  border:1px solid rgba(var(--location-rgb),.28);
  border-radius:50%;
  background:
    radial-gradient(circle,rgba(var(--location-rgb),.13),rgba(7,9,8,.42) 58%,transparent 72%);
  box-shadow:0 6px 14px rgba(0,0,0,.35),inset 0 0 16px rgba(0,0,0,.18);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,background .22s ease,filter .22s ease;
}
.map-node .node-icon {
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
}
.map-node .node-icon img {
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 4px 7px rgba(0,0,0,.66));
  transition:filter .22s ease,transform .22s ease;
}
.map-node strong {
  max-width:112px;
  padding:3px 7px 4px;
  border:1px solid rgba(var(--location-rgb),.11);
  border-radius:5px;
  color:#e6dcc9;
  background:rgba(8,10,9,.72);
  box-shadow:0 3px 9px rgba(0,0,0,.32);
  font-size:.72rem;
  line-height:1.15;
  text-shadow:0 1px 2px #000;
  transition:color .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease;
}
.map-node small {
  position:absolute;
  top:calc(100% + 2px);
  left:50%;
  width:max-content;
  max-width:150px;
  padding:4px 7px;
  border:1px solid rgba(var(--location-rgb),.22);
  border-radius:5px;
  color:#d5cab4;
  background:rgba(7,9,8,.92);
  box-shadow:0 7px 16px rgba(0,0,0,.38);
  font-size:.62rem;
  line-height:1.15;
  opacity:0;
  pointer-events:none;
  transform:translate(-50%,-4px);
  transition:opacity .16s ease,transform .16s ease;
}
.node-state {
  --state-rgb:91,88,82;
  position:absolute;
  right:2px;
  bottom:3px;
  width:9px;
  height:9px;
  border:2px solid rgba(8,10,9,.94);
  border-radius:50%;
  background:rgb(var(--state-rgb));
  box-shadow:0 0 7px rgba(var(--state-rgb),.56);
}
.node-state.discovered,.card-state-dot.discovered { --state-rgb:109,157,176; }
.node-state.visited,.node-state.unlocked,.card-state-dot.visited,.card-state-dot.unlocked { --state-rgb:127,178,93; }
.node-state.completed,.card-state-dot.completed { --state-rgb:214,168,79; }
.node-state.event_open,.card-state-dot.event_open { --state-rgb:185,74,61; }
.node-state.planned,.card-state-dot.planned { --state-rgb:141,111,178; }
.node-state.epilogue,.card-state-dot.epilogue { --state-rgb:122,99,184; }
.node-state.unknown,.node-state.unavailable,.node-state.available,.node-state.event_closed,
.card-state-dot.unknown,.card-state-dot.unavailable,.card-state-dot.available,.card-state-dot.event_closed { --state-rgb:91,88,82; }

.map-node:hover .node-marker,.map-node:focus-visible .node-marker,.map-node.is-focused .node-marker {
  transform:translateY(-2px) scale(1.06);
  border-color:rgba(var(--location-rgb),.74);
  background:radial-gradient(circle,rgba(var(--location-rgb),.24),rgba(7,9,8,.36) 60%,transparent 73%);
  box-shadow:0 0 0 1px rgba(var(--location-rgb),.10),0 0 22px rgba(var(--location-rgb),.20),0 8px 18px rgba(0,0,0,.38);
}
.map-node:hover .node-icon img,.map-node:focus-visible .node-icon img,.map-node.is-focused .node-icon img {
  transform:scale(1.04);
  filter:drop-shadow(0 4px 7px rgba(0,0,0,.62)) drop-shadow(0 0 7px rgba(var(--location-rgb),.36));
}
.map-node:hover strong,.map-node:focus-visible strong,.map-node.is-focused strong {
  color:#fff6df;
  border-color:rgba(var(--location-rgb),.42);
  background:rgba(8,10,9,.88);
  box-shadow:0 0 12px rgba(var(--location-rgb),.10),0 4px 10px rgba(0,0,0,.34);
}
.map-node:hover small,.map-node:focus-visible small,.map-node.is-focused small { opacity:1; transform:translate(-50%,0); }
.map-node.is-related:not(.is-focused) .node-marker { border-color:rgba(var(--location-rgb),.46); box-shadow:0 0 15px rgba(var(--location-rgb),.11),0 6px 14px rgba(0,0,0,.34); }
.map-node.is-related:not(.is-focused) strong { border-color:rgba(var(--location-rgb),.24); }

.map-node.unknown,.map-node.unavailable,.map-node.available,.map-node.event_closed { color:var(--k-dim); filter:saturate(.55); }
.map-node.unknown .node-marker,.map-node.unavailable .node-marker,.map-node.available .node-marker,.map-node.event_closed .node-marker { border-color:rgba(117,111,101,.25); background:rgba(12,13,12,.36); }
.map-node.planned .node-marker { background:radial-gradient(circle,rgba(141,111,178,.14),rgba(7,9,8,.42) 60%,transparent 72%); }
.map-node.event_open .node-marker { animation:world-event-breathe 2.3s ease-in-out infinite; }
@keyframes world-event-breathe { 50% { box-shadow:0 0 0 1px rgba(var(--location-rgb),.13),0 0 25px rgba(var(--location-rgb),.24),0 7px 16px rgba(0,0,0,.38); } }

.world-section { margin-top:28px; }
.section-heading { margin-bottom:16px; }

.location-card {
  --location-rgb:214,168,79;
  min-height:338px;
  border:1px solid rgba(var(--location-rgb),.25);
  border-width:1px;
  border-radius:13px;
  background:
    radial-gradient(circle at 84% 95%,rgba(var(--location-rgb),.055),transparent 17rem),
    linear-gradient(155deg,rgba(19,20,19,.97),rgba(9,11,10,.99));
  box-shadow:0 14px 32px rgba(0,0,0,.24),inset 0 0 0 1px rgba(255,255,255,.012);
  transition:transform .18s ease,filter .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.location-card::after {
  content:'';
  position:absolute;
  inset:8px;
  border:1px solid rgba(var(--location-rgb),.055);
  border-radius:9px;
  pointer-events:none;
}
.location-card:hover,.location-card:focus-visible,.location-card.is-map-focus {
  transform:translateY(-3px);
  filter:brightness(1.035);
  border-color:rgba(var(--location-rgb),.74);
  box-shadow:0 0 0 1px rgba(var(--location-rgb),.10),0 0 25px rgba(var(--location-rgb),.10),0 18px 38px rgba(0,0,0,.34);
}
.location-card--unknown {
  border-color:rgba(91,88,82,.38);
  background:linear-gradient(155deg,rgba(17,18,17,.95),rgba(9,10,10,.98));
}
.location-card--unknown:hover,.location-card--unknown:focus-visible { transform:none; filter:none; border-color:rgba(91,88,82,.38); box-shadow:0 14px 32px rgba(0,0,0,.20); }

.card-image {
  height:202px;
  border-bottom:1px solid rgba(var(--location-rgb),.22);
  background:#0c0d0d;
}
.card-image::after {
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg,transparent 48%,rgba(7,8,8,.18) 72%,rgba(7,8,8,.77)),
    radial-gradient(circle at 50% 42%,transparent 45%,rgba(0,0,0,.20));
}
.card-image img {
  image-rendering:auto;
  transition:transform .32s ease,filter .32s ease;
}
.location-card:hover .card-image img,.location-card:focus-visible .card-image img,.location-card.is-map-focus .card-image img { transform:scale(1.025); filter:saturate(1.04) contrast(1.02); }
.card-image.locked img { opacity:.11; filter:grayscale(1) blur(3px); }
.card-state-dot {
  --state-rgb:91,88,82;
  position:absolute;
  z-index:3;
  right:12px;
  top:12px;
  width:12px;
  height:12px;
  border:2px solid rgba(9,10,10,.86);
  border-radius:50%;
  background:rgb(var(--state-rgb));
  box-shadow:0 0 9px rgba(var(--state-rgb),.54),0 3px 8px rgba(0,0,0,.36);
}

.card-body {
  position:relative;
  z-index:1;
  min-height:136px;
  padding:18px 19px 20px;
}
.card-region {
  margin:0 0 6px;
  color:rgba(var(--location-rgb),.88);
  font-size:.7rem;
  font-weight:850;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.card-body h3 { margin:0; font-size:1.38rem; line-height:1.08; }
.card-description { margin:11px 0 0; color:#b9b0a2; font-size:.91rem; line-height:1.58; }
.card-body--unknown { min-height:136px; padding:18px; }
.card-body--unknown p { margin:9px 0 0; color:#77736d; line-height:1.45; }
.lock-overlay { z-index:2; }
.lock-overlay span { width:70px; height:70px; }

.detail-panel {
  --location-rgb:214,168,79;
  width:min(1160px,100%);
  padding:22px;
  border-color:rgba(var(--location-rgb),.38);
  background:
    radial-gradient(circle at 90% 8%,rgba(var(--location-rgb),.075),transparent 25rem),
    linear-gradient(155deg,rgba(20,21,20,.99),rgba(9,10,10,.995));
  box-shadow:0 0 0 1px rgba(var(--location-rgb),.06),0 26px 70px rgba(0,0,0,.56);
}
.detail-panel::before {
  content:'';
  position:absolute;
  inset:8px;
  border:1px solid rgba(var(--location-rgb),.075);
  border-radius:11px;
  pointer-events:none;
}
.modal-close { border-color:rgba(var(--location-rgb),.28); }
.modal-close:hover { color:#fff2d5; border-color:rgba(var(--location-rgb),.58); box-shadow:0 0 14px rgba(var(--location-rgb),.12); }
.location-layer-tab { border-color:rgba(var(--location-rgb),.18); }
.location-layer-tab:hover:not(:disabled) { color:#f3e1bc; border-color:rgba(var(--location-rgb),.48); }
.location-layer-tab.active { color:#f5eee2; border-color:rgba(var(--location-rgb),.58); background:rgba(var(--location-rgb),.20); box-shadow:0 0 12px rgba(var(--location-rgb),.10); }

.detail-banner {
  min-height:335px;
  border-color:rgba(var(--location-rgb),.26);
  background:radial-gradient(circle,rgba(var(--location-rgb),.11),transparent 62%),rgba(0,0,0,.28);
  box-shadow:inset 0 0 42px rgba(0,0,0,.26);
}
.detail-banner::after {
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,transparent 55%,rgba(8,9,9,.44));
}
.detail-banner img { image-rendering:auto; }
.detail-copy { position:relative; padding:22px 4px 4px; }
.detail-kicker {
  margin:0 0 7px;
  color:rgba(var(--location-rgb),.92);
  font-size:.74rem;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.detail-copy h2 { margin:0; }
.detail-lore { max-width:920px; margin:13px 0 0; color:#bdb4a6; font-size:1rem; line-height:1.72; }
.detail-columns { margin-top:20px; gap:15px; }
.detail-box {
  border-color:rgba(var(--location-rgb),.16);
  background:linear-gradient(180deg,rgba(var(--location-rgb),.028),rgba(0,0,0,.20));
}
.detail-box h3 { color:#e4cf9e; font-size:1rem; letter-spacing:.02em; }
.detail-row { border-color:rgba(var(--location-rgb),.10); }
.detail-row-link:hover { border-color:rgba(var(--location-rgb),.38); background:rgba(var(--location-rgb),.045); }
.resource-action-panel { border-color:rgba(var(--location-rgb),.22); background:linear-gradient(180deg,rgba(var(--location-rgb),.045),rgba(0,0,0,.22)); }
.detail-actions { padding-top:3px; }

@media (max-width:1100px) and (min-width:701px) {
  .map-node-anchor { width:100px; min-height:88px; }
  .map-node { min-height:88px; }
  .node-marker { width:54px; height:54px; }
  .map-node .node-icon { width:42px; height:42px; }
  .map-node strong { max-width:96px; font-size:.66rem; }
  .map-node small { font-size:.58rem; }
}

@media (max-width:700px) {
  .map-section { padding:14px; }
  .map-legend-wrap { align-items:flex-start; flex-direction:column; gap:7px; }
  .map-legend { gap:7px 11px; }
  .world-map-canvas {
    padding:10px;
    background:
      linear-gradient(180deg,rgba(7,8,8,.69),rgba(7,8,8,.83)),
      url('/assets/world/map-background.webp') center / cover no-repeat,
      #171b1a;
  }
  .world-map-canvas::after { display:none; }
  .map-node-anchor { width:100%; min-height:0; }
  .map-node {
    min-height:0;
    display:grid;
    grid-template-columns:52px minmax(0,1fr) auto;
    grid-template-rows:auto auto;
    gap:2px 10px;
    align-items:center;
    justify-items:start;
    padding:8px 10px;
    border:1px solid rgba(var(--location-rgb),.16);
    border-radius:9px;
    background:rgba(8,10,9,.64);
    text-align:left;
  }
  .map-node:hover,.map-node:focus-visible,.map-node.is-focused { border:1px solid rgba(var(--location-rgb),.46); background:rgba(8,10,9,.78); box-shadow:0 0 14px rgba(var(--location-rgb),.08); }
  .node-marker { grid-row:1 / 3; width:48px; height:48px; }
  .map-node .node-icon { width:38px; height:38px; }
  .map-node strong { max-width:none; padding:0; border:0; background:transparent; box-shadow:none; font-size:.83rem; }
  .map-node small { position:static; width:auto; max-width:none; padding:0; border:0; color:#8f8a80; background:transparent; box-shadow:none; font-size:.66rem; opacity:1; transform:none; }
  .map-node:hover small,.map-node:focus-visible small,.map-node.is-focused small { transform:none; }
  .node-state { right:-1px; bottom:0; }
  .card-image { height:225px; }
  .location-card { min-height:0; }
  .detail-panel { padding:14px; }
  .detail-banner { min-height:230px; }
  .detail-copy { padding:18px 2px 2px; }
}

@media (prefers-reduced-motion:reduce) {
  .map-route.is-highlighted,.map-node.event_open .node-marker { animation:none !important; }
}

/* Neobjevené cesty zůstávají jen slabým náznakem; mapa nemá předčasně prozrazovat směr dalšího příběhu. */
.map-route.locked { opacity:.26; }
.map-route.event_closed { opacity:.44; }

/* Stav lokace je na kartě jen malá tečka; hlavní rámeček patří barevné identitě samotného místa. */
.location-card.discovered,
.location-card.visited,
.location-card.completed,
.location-card.event_open,
.location-card.event_closed,
.location-card.planned,
.location-card.epilogue { border-color:rgba(var(--location-rgb),.25); }
.map-node.discovered,
.map-node.visited,
.map-node.unlocked,
.map-node.completed,
.map-node.event_open,
.map-node.event_closed,
.map-node.planned,
.map-node.epilogue { border:0; background:transparent; box-shadow:none; }
.map-node.is-related { filter:none; }
.map-node[data-location-interactive="0"]:hover,
.map-node[data-location-interactive="0"]:focus-visible {
  border:0;
  background:transparent;
  box-shadow:none;
}

@media (max-width:700px) {
  .map-node.discovered,
  .map-node.visited,
  .map-node.unlocked,
  .map-node.completed,
  .map-node.event_open,
  .map-node.event_closed,
  .map-node.planned,
  .map-node.epilogue,
  .map-node[data-location-interactive="0"],
  .map-node[data-location-interactive="0"]:hover,
  .map-node[data-location-interactive="0"]:focus-visible {
    border:1px solid rgba(var(--location-rgb),.16);
    background:rgba(8,10,9,.64);
    box-shadow:none;
  }
}


/* ========================================================================== */
/* 0.10.25a194p17 – hotfix markerů, rohů karet a pořadí Starého dolu        */
/* ========================================================================== */

/* Souřadnice z map-layoutu nyní označují skutečný střed grafického markeru.
   Text pod ikonou už souřadnici opticky neposouvá směrem vzhůru. */
@media (min-width:1101px) {
  .map-node-anchor {
    width:132px;
    min-height:116px;
    transform:translate(-50%,-40px);
  }
  .map-node { min-height:116px; }
  .node-marker { width:80px; height:80px; }
  .map-node .node-icon { width:66px; height:66px; }
  .map-node .node-icon img.is-lock-marker { width:74px; height:74px; max-width:none; max-height:none; }
  .map-node strong { max-width:128px; font-size:.76rem; }
}

@media (max-width:1100px) and (min-width:701px) {
  .map-node-anchor {
    width:116px;
    min-height:102px;
    transform:translate(-50%,-34px);
  }
  .map-node { min-height:102px; padding:0; }
  .node-marker { width:68px; height:68px; }
  .map-node .node-icon { width:56px; height:56px; }
  .map-node .node-icon img.is-lock-marker { width:62px; height:62px; max-width:none; max-height:none; }
  .map-node strong { max-width:108px; font-size:.70rem; }
}

/* Na mobilu je mapa záměrně seznamová; ikony jsou větší, ale souřadnicové
   ukotvení se zde nepoužívá. */
@media (max-width:700px) {
  .map-node-anchor { transform:none; }
  .node-marker { width:58px; height:58px; }
  .map-node .node-icon { width:47px; height:47px; }
  .map-node .node-icon img.is-lock-marker { width:53px; height:53px; max-width:none; max-height:none; }
}

/* Karta lokace používá jediný corner-gold jako překryv NAD kartou,
   lehce přes levý horní roh, aby vypadal jako skutečný ozdobný okraj rámu. */
.location-card.k-frame::before {
  display:block;
  left:-12px;
  top:-12px;
  width:64px;
  height:64px;
  z-index:7;
  pointer-events:none;
  background:url('/assets/ui/corner-gold.png') left top / 64px 64px no-repeat;
  opacity:.90;
  filter:drop-shadow(2px 3px 5px rgba(0,0,0,.42));
}
.location-card.k-frame::after { display:none; }

/* V modalu lokace corner-gold nechceme; detail má zůstat čistší. */
.detail-panel.k-frame::before,
.detail-panel.k-frame::after {
  display:none !important;
}

/* Pečeť zamčené karty byla na velkém náhledu příliš drobná. */
.location-card--unknown .lock-overlay span {
  width:112px;
  height:112px;
}

@media (max-width:700px) {
  .location-card--unknown .lock-overlay span { width:100px; height:100px; }
}


/* 0.10.25a194p18 – corner-gold above cards, removed from modal */

/* ========================================================================== */
/* 0.10.25a194p19 – audit a nové rozvržení modalů lokací                      */
/* ========================================================================== */

.detail-panel {
  width:min(1180px,100%);
  padding:16px;
  border-color:rgba(var(--location-rgb),.42);
  border-radius:14px;
  overflow:auto;
  background:
    radial-gradient(circle at 92% 6%,rgba(var(--location-rgb),.08),transparent 24rem),
    linear-gradient(155deg,rgba(20,21,20,.995),rgba(8,10,9,.998));
}
.detail-panel.k-frame::before,
.detail-panel.k-frame::after { display:none !important; }

.modal-close {
  position:absolute;
  top:26px;
  right:26px;
  float:none;
  z-index:8;
  width:42px;
  height:42px;
  border-color:rgba(255,255,255,.18);
  background:rgba(5,6,6,.78);
  box-shadow:0 6px 18px rgba(0,0,0,.32);
}

.detail-hero {
  position:relative;
  overflow:hidden;
  min-height:300px;
  border:1px solid rgba(var(--location-rgb),.30);
  border-radius:11px;
  background:#090b0a;
  box-shadow:inset 0 0 55px rgba(0,0,0,.28);
}
.detail-banner {
  min-height:300px;
  height:300px;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:radial-gradient(circle,rgba(var(--location-rgb),.10),transparent 64%),#0a0c0b;
}
.detail-banner::after {
  background:
    linear-gradient(180deg,rgba(5,6,6,.02) 18%,rgba(5,6,6,.18) 55%,rgba(5,6,6,.91) 100%),
    linear-gradient(90deg,rgba(5,6,6,.62),transparent 58%);
}
.detail-banner img {
  width:100%;
  height:100%;
  max-height:none;
  object-fit:cover;
  image-rendering:auto;
}
.detail-hero-copy {
  position:absolute;
  z-index:3;
  left:0;
  right:0;
  bottom:0;
  padding:30px 26px 22px;
  pointer-events:none;
}
.detail-hero-copy .detail-kicker {
  margin:0 0 6px;
  color:rgba(var(--location-rgb),.98);
  text-shadow:0 2px 8px rgba(0,0,0,.9);
}
.detail-hero-copy h2 {
  max-width:850px;
  margin:0;
  color:#f2ede4;
  font-size:clamp(2.15rem,4.5vw,4rem);
  line-height:.96;
  text-shadow:0 3px 16px rgba(0,0,0,.92);
}
.detail-meta-line {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:12px;
}
.detail-meta-line span {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 8px;
  border:1px solid rgba(var(--location-rgb),.28);
  border-radius:999px;
  color:#d3cabd;
  background:rgba(7,8,8,.70);
  box-shadow:0 4px 10px rgba(0,0,0,.20);
  font-size:.73rem;
  font-weight:750;
}

.detail-copy {
  padding:18px 4px 3px;
}
.detail-lore {
  max-width:980px;
  margin:0;
  color:#c2b9ab;
  font-size:1rem;
  line-height:1.68;
}
.detail-body { margin-top:16px; }

.location-layer-wrap {
  margin-top:17px;
  padding-top:14px;
  border-top:1px solid rgba(var(--location-rgb),.11);
}
.location-layer-label {
  display:block;
  margin:0 0 8px;
  color:#9b9285;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.location-layer-tabs {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:0;
}
.location-layer-tab {
  min-height:35px;
  padding:7px 10px;
  border-radius:8px;
  font-size:.78rem;
  font-weight:760;
}

.detail-columns {
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(250px,.75fr);
  gap:12px;
  margin:0;
}
.detail-columns.single { grid-template-columns:1fr; }
.detail-columns > div { display:grid; align-content:start; gap:12px; }

.detail-box {
  margin:0;
  padding:12px;
  border:1px solid rgba(var(--location-rgb),.15);
  border-radius:9px;
  background:
    linear-gradient(180deg,rgba(var(--location-rgb),.025),rgba(0,0,0,.18));
  box-shadow:none;
}
.detail-box + .detail-box { margin-top:12px; }
.detail-box h3 {
  margin:0 0 9px;
  color:#ddca9d;
  font-size:.86rem;
  font-weight:850;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.detail-feature-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
}
.detail-feature {
  min-height:58px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 10px;
  border:1px solid rgba(var(--location-rgb),.10);
  border-radius:8px;
  background:rgba(0,0,0,.18);
}
.detail-feature__icon {
  flex:none;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:7px;
  background:rgba(var(--location-rgb),.08);
  font-size:1.12rem;
}
.detail-feature strong {
  color:#d9d2c8;
  font-size:.84rem;
  line-height:1.25;
}

.detail-creature-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.detail-creature,
.detail-resource {
  min-width:0;
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:8px 9px;
  border:1px solid rgba(var(--location-rgb),.09);
  border-radius:7px;
  background:rgba(0,0,0,.16);
}
.detail-creature > span,
.detail-resource > span { flex:none; }
.detail-creature > div,
.detail-resource > div { min-width:0; display:grid; gap:2px; }
.detail-creature strong,
.detail-resource strong { color:#d8d1c7; font-size:.84rem; line-height:1.25; }
.detail-creature small,
.detail-resource small { color:#8f897f; font-size:.72rem; line-height:1.3; }

.detail-resource-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.detail-box--resources .detail-resource-grid:has(.detail-resource:only-child) {
  grid-template-columns:1fr;
}

.detail-boss-list { display:grid; gap:7px; }
.detail-boss-card {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:11px;
  border:1px solid rgba(var(--location-rgb),.16);
  border-radius:8px;
  color:inherit;
  background:rgba(0,0,0,.20);
  text-decoration:none;
  transition:border-color .15s ease,background .15s ease,transform .15s ease;
}
.detail-boss-card:hover {
  transform:translateY(-1px);
  border-color:rgba(var(--location-rgb),.45);
  background:rgba(var(--location-rgb),.055);
}
.detail-boss-card__icon { font-size:1.2rem; }
.detail-boss-card > div { display:grid; gap:2px; }
.detail-boss-card strong { color:#e5d8bb; }
.detail-boss-card small { color:#918a80; font-size:.74rem; }
.detail-boss-card__arrow { color:rgba(var(--location-rgb),.92); font-size:1.15rem; }

.detail-inline-note {
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border:1px solid rgba(var(--location-rgb),.14);
  border-radius:8px;
  background:rgba(var(--location-rgb),.035);
}
.detail-inline-note > span { font-size:1.25rem; }
.detail-inline-note > div { display:grid; gap:2px; }
.detail-inline-note strong { color:#d8d0c4; }
.detail-inline-note small { color:#908a80; line-height:1.35; }

.resource-action-panel {
  margin-top:12px;
  padding:12px;
  border-color:rgba(var(--location-rgb),.20);
  background:linear-gradient(180deg,rgba(var(--location-rgb),.035),rgba(0,0,0,.18));
}
.resource-action-heading {
  align-items:center;
  margin-bottom:8px;
}
.resource-action-heading .eyebrow { margin-bottom:2px; font-size:.67rem; }
.resource-action-heading h3 {
  margin:0;
  color:#e0d6c6;
  font-size:.95rem;
  letter-spacing:0;
  text-transform:none;
}
.resource-action-heading small { max-width:360px; font-size:.75rem; }
.resource-action-row {
  min-height:54px;
  padding:8px 9px;
  border-radius:7px;
}
.resource-action-row strong { font-size:.84rem; }
.resource-action-row small { font-size:.72rem; }
.resource-action-counts .k-button { min-width:44px; padding:6px 9px; }

.detail-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(var(--location-rgb),.10);
}
.detail-actions .k-button { min-height:38px; }

@media (max-width:900px) {
  .detail-feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .detail-columns { grid-template-columns:1fr; }
  .detail-creature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .detail-resource-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:700px) {
  .detail-modal { padding:7px; }
  .detail-panel { max-height:calc(100vh - 14px); padding:9px; }
  .modal-close { top:16px; right:16px; width:38px; height:38px; }
  .detail-hero { min-height:230px; }
  .detail-banner { min-height:230px; height:230px; }
  .detail-hero-copy { padding:24px 15px 15px; }
  .detail-hero-copy h2 { font-size:clamp(1.8rem,10vw,2.7rem); }
  .detail-meta-line { gap:5px; margin-top:9px; }
  .detail-meta-line span { padding:4px 7px; font-size:.68rem; }
  .detail-copy { padding:14px 2px 2px; }
  .detail-lore { font-size:.92rem; line-height:1.58; }
  .location-layer-tabs { flex-wrap:nowrap; overflow-x:auto; padding-bottom:3px; scrollbar-width:thin; }
  .location-layer-tab { flex:none; }
  .detail-feature-grid,
  .detail-creature-grid,
  .detail-resource-grid { grid-template-columns:1fr; }
  .resource-action-heading,
  .resource-action-row { align-items:flex-start; flex-direction:column; }
  .resource-action-heading small { text-align:left; }
  .resource-action-counts { width:100%; }
  .resource-action-counts .k-button { flex:1; }
}
