[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a0ecf2; outline-offset: 4px; }
main [id] { scroll-margin-top: 96px; }
main article[id] { scroll-margin-top: 24px; }
main .map-pin[id] { scroll-margin-top: min(35vh, 270px); }
.guide-links {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 12px 0 18px;
}
.guide-links a, .control-button, .map-controls a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid #687381;
  border-radius: 7px;
  background: #202630;
  color: #f2d599;
  font: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.guide-links a:hover, .control-button:hover, .map-controls a:hover {
  background: #32414a;
  text-decoration: underline;
}
.control-button { cursor: pointer; }
.secondary-links { margin-top: 0; }
.guide-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr)); gap: 12px; }
.guide-index a, .compact-card {
  display: block;
  padding: 14px;
  border: 1px solid #4e5264;
  border-radius: 9px;
  background: #202530;
}
.guide-index strong { display: block; font-size: 1.08em; }
.guide-index span { display: block; color: #d7dbe1; font-size: .88em; margin-top: 5px; }
.chapter { padding-top: 3px; }
.walkthrough { padding-left: 1.55em; margin: 12px 0 24px; }
.walkthrough > li { padding: 5px 0 12px 6px; border-bottom: 1px solid #43495b; }
.walkthrough > li::marker { color: #f2d599; font-weight: 700; }
.walkthrough h3 { margin-top: .45em; }
.checkpoint-list { display: grid; gap: 8px; }
.checkpoint-list > div { border-left: 2px solid #ad9361; padding: 8px 12px; background: #202530; }
.checkpoint-list dt { color: #f2d599; font-weight: 700; }
.checkpoint-list dd { margin: 5px 0 0; }
.guide-source, .route-caption { color: #bfc4ca; font-size: .9em; }
.guide-source { margin-top: 26px; }
.route-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 16px; }
.route-card { min-width: 0; padding: 13px; border: 1px solid #4e5264; border-radius: 9px; }
.route-card h3 { margin: 0 0 8px; }
.route-figure { margin: 12px 0; }
.route-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  border: 1px solid #697173;
  border-radius: 6px;
}
.route-caption { margin: .4em 0 0; }
.final-layout { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); align-items: start; gap: 20px; }
.final-layout .route-figure { justify-self: center; }
.guide-data { width: 100%; min-width: 0; }
.guide-data th, .guide-data td { overflow-wrap: anywhere; white-space: normal; }
.guide-data td { vertical-align: top; }
.guide-filter { padding: 12px; margin: 12px 0; border: 1px solid #687381; border-radius: 8px; }
.guide-filter label, .floor-picker label { display: block; font-weight: 700; }
.guide-filter input, .floor-picker select {
  width: min(100%, 30rem);
  min-height: 44px;
  border: 1px solid #7d8997;
  border-radius: 5px;
  padding: 5px 9px;
  background: #18202a;
  color: #f5f6f9;
  font: inherit;
}
.guide-filter [role=status] { margin-bottom: 0; }
.search-results { margin: 12px 0; padding: 0; list-style: none; }
.search-results li { border-bottom: 1px solid #43495b; padding: 10px 4px; }
.search-results a { display: inline-block; min-height: 38px; padding: 5px 6px 5px 0; }
.search-kind { color: #bac5ce; margin-left: 8px; font-size: .85em; }
.floor-picker { margin: 14px 0; }
.floor-picker .control-button { margin-top: 6px; }
.floor-return { display: flex; flex-wrap: wrap; column-gap: 12px; }
.floor-return a { display: inline-block; min-height: 42px; padding-block: 5px; }
.enemy-locations { min-width: 9rem; }
.enemy-locations a { display: block; padding-block: 2px; }
.town-event { background: #125e65; color: #fff; }
.town-event-note { margin: 10px 0; padding-left: 10px; border-left: 2px solid #6fc1cc; }
.town-event-note h3 { margin: .4em 0; }
.map-viewer::backdrop { background: #000b; }
.map-viewer {
  box-sizing: border-box;
  width: min(96vw, 1100px);
  max-width: 96vw;
  max-height: 94vh;
  padding: 10px;
  color: #ecf4ed;
  background: #111c22;
  border: 1px solid #799398;
  border-radius: 9px;
  overflow: auto;
}
.map-viewer h2 { margin: 4px 0 8px; font-size: 1rem; line-height: 1.5; }
.map-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.map-viewport { max-height: 65vh; overflow: auto; border: 1px solid #799398; }
.map-viewport img { display: block; height: auto; max-width: 100%; margin: 0 auto; border: 0; }
.map-zoomed .map-viewport img { max-width: none; width: max(170%, 720px); margin: 0; }
.guide-nav a { min-height: 44px; padding-block: 5px; }
.guide-nav-sub { max-width: 960px; margin-inline: auto; padding-inline: 16px; }
.map img, .title-shot img { height: auto; }
.linked-map { display: block; }
main .map-pin[data-fixed]::after { border-color: #ffc1a7; }
@media (max-width: 620px) {
  nav.gnav { position: static; }
  nav.gnav .wrap { align-items: center; }
  nav.gnav a { min-height: 44px; display: inline-flex; align-items: center; padding: 5px 8px; }
  main [id] { scroll-margin-top: 15px; }
  .final-layout { grid-template-columns: 1fr; gap: 10px; }
  .final-layout > div { grid-row: 1; }
  .guide-data th, .guide-data td { padding: 6px; font-size: .9rem; }
  .walkthrough { padding-left: 1.25em; }
  .route-card { padding: 11px; }
  .map-viewport { max-height: 66dvh; }
}


#d2-f1-event-1 { left:50.000000%;top:44.599303%; }
#d2-f1-event-2 { left:87.190083%;top:52.961672%; }
#d2-f2-event-1 { left:27.111111%;top:27.874564%; }
#d3-f1-event-1 { left:24.015748%;top:65.054945%; }
#d4-f0-event-1 { left:61.777778%;top:27.586207%; }
#d4-f2-event-1 { left:84.322034%;top:66.830467%; }
#d5-f1-event-1 { left:21.478873%;top:70.080863%; }
#d6-f1-event-1 { left:72.444444%;top:81.572482%; }
#d6-f3-event-1 { left:29.777778%;top:64.804469%; }
#d7-f0-event-1 { left:13.602941%;top:54.489164%; }
#d7-f0-event-2 { left:86.397059%;top:69.349845%; }
#d8-f0-event-1 { left:62.132353%;top:16.693419%; }
#d8-f0-event-2 { left:33.455882%;top:37.881220%; }
#d8-f0-event-3 { left:13.602941%;top:28.250401%; }
#d10-f0-event-1 { left:74.473684%;top:49.230769%; }
#d10-f0-event-2 { left:74.473684%;top:51.868132%; }
#d10-f0-event-3 { left:76.052632%;top:49.230769%; }
#d10-f0-event-4 { left:76.052632%;top:51.868132%; }
#d10-f0-event-5 { left:42.894737%;top:38.681319%; }
#d10-f0-event-6 { left:58.684211%;top:38.681319%; }
#d10-f0-event-7 { left:27.105263%;top:62.417582%; }
#d10-f0-event-8 { left:74.473684%;top:62.417582%; }
#d11-f3-event-1 { left:61.660777%;top:41.453567%; }
#d11-f3-event-2 { left:61.660777%;top:44.683715%; }
#d11-f3-event-3 { left:60.600707%;top:43.068641%; }
#d11-f3-event-4 { left:62.720848%;top:43.068641%; }
#d11-f3-event-5 { left:75.441696%;top:30.148048%; }
#d11-f3-event-6 { left:53.180212%;top:31.763122%; }
#d11-f3-event-7 { left:50.000000%;top:51.144011%; }
#d11-f3-event-8 { left:90.282686%;top:89.905787%; }
#d11-f3-event-9 { left:96.643110%;top:46.298789%; }
#d11-f3-event-10 { left:35.159011%;top:34.993271%; }
#d11-f3-event-11 { left:79.681979%;top:76.985195%; }
#d11-f3-event-12 { left:18.197880%;top:83.445491%; }
#d11-f3-event-13 { left:18.197880%;top:31.763122%; }
#d11-f3-event-14 { left:11.837456%;top:47.913863%; }
#d11-f3-event-15 { left:27.738516%;top:73.755047%; }
#d11-f3-event-16 { left:47.879859%;top:67.294751%; }
#d13-f1-event-1 { left:12.758621%;top:42.819843%; }
#d13-f4-event-1 { left:21.777778%;top:16.407355%; }


.event-frinkam { left:52.702703%;top:47.560976%; }
.event-bridge { left:66.216216%;top:30.487805%; }
.event-bell { left:90.540541%;top:42.682927%; }
.event-basement { left:25.000000%;top:10.000000%; }







