
html.w3-open, html.w3-open body { overflow: hidden; }
.w3 { position: fixed; inset: 0; z-index: 84; background: #dbeaf6; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
.w3.hidden { display: none; }
.w3.under { visibility: hidden; }
.w3-cv { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; outline: none; cursor: grab; }
.w3-cv:active { cursor: grabbing; }
.w3-beta { font: 600 10.5px/1 var(--hn-sans); letter-spacing: 0; opacity: .8; margin-left: 4px; }
.w3-tags { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.w3-tag {
  position: absolute; left: 0; top: 0; padding: 2px 8px; border-radius: 999px; white-space: nowrap; will-change: transform;
  background: rgba(15, 26, 53, .62); color: #fff8e6; font: 600 11.5px/1.3 var(--hn-sans); border: 1px solid rgba(217, 184, 103, .45);
}
.w3-tag.open { background: rgba(120, 88, 20, .82); border-color: #f0d890; }
.w3-tag.peer { background: rgba(255, 255, 255, .78); color: #1d2433; border-color: transparent; font-size: 11px; }

.w3-tag { font-size: 12.5px; padding: 3px 10px; }
.w3-tag.open { color: #fff3cf; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.w3-tag.soon { background: rgba(70, 76, 88, .66); color: #e6e8ec; border-color: rgba(220, 224, 232, .45); }
.w3-tag small { font-size: 10px; color: #c5cad3; font-weight: 500; }
.w3-tag i { font-style: normal; font-size: 10px; margin-right: 5px; padding: 0 5px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.w3-nos { position: absolute; inset: 0; }
.w3-no { position: absolute; transform: translate(-50%, -50%); min-width: 14px; height: 14px; padding: 0 2px; border-radius: 7px; background: rgba(60, 66, 78, .82); color: #fff; font: 700 8.5px/14px var(--hn-sans); text-align: center; }
.w3-no.open { background: #b8902e; }

.w3-mini {
  position: absolute; z-index: 3; right: calc(10px + env(safe-area-inset-right)); top: calc(max(8px, env(safe-area-inset-top)) + 50px);
  width: 128px; aspect-ratio: 16 / 9; border-radius: 10px; border: 1px solid var(--hn-gold); box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  background: #cfe0c0 url("../img/map_front_1119n.jpg") center / 100% 100% no-repeat; overflow: hidden; pointer-events: none;
}
.w3-dot { position: absolute; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 11px solid #e2412f; filter: drop-shadow(0 0 2px #fff); }
.w3-debug { position: absolute; z-index: 5; left: 8px; top: calc(max(8px, env(safe-area-inset-top)) + 50px); margin: 0; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #c8ffb0; font: 11px/1.4 monospace; white-space: pre-wrap; max-width: 60%; pointer-events: none; }
.w3-debug.hidden { display: none; }
.w3-near.gold { background: linear-gradient(180deg, #f3dc9c, #c9a24a); color: #2b2008; }
@media (orientation: portrait) { .w3-mini { width: 112px; } }


.tour-pick { display: grid; gap: 6px; margin: 8px 0 10px; }
.tp-row { display: grid; grid-template-columns: auto 1fr 1fr; align-items: stretch; gap: 6px; }
.tp-k { align-self: center; min-width: 34px; font: 700 12px/1.2 var(--hn-sans); color: var(--hn-ink-soft, #c9c2ad); }
.tp-b {
  min-height: 38px; padding: 5px 8px; border-radius: 10px; border: 1px solid rgba(201, 162, 74, .55); background: rgba(255, 255, 255, .08);
  color: var(--hn-ink, #fff8e6); font: 600 12.5px/1.25 var(--hn-sans); cursor: pointer; word-break: keep-all; text-align: center;
}
.tp-b.on { background: linear-gradient(180deg, #f3dc9c, #c9a24a); color: #2b2008; border-color: #f0d890; }
.tp-b.soon { opacity: .72; }
.tp-b small { display: block; font-size: 10.5px; font-weight: 600; opacity: .85; }
.tp-b:focus-visible { outline: 2px solid #f0d890; outline-offset: 1px; }

#entrySheet.kb .tour-pick { order: 2; margin: 4px 0 0; gap: 6px; grid-template-columns: 1fr 1fr; }
#entrySheet.kb .tp-row { grid-template-columns: 1fr 1fr; gap: 3px; }
#entrySheet.kb .tp-k { display: none; }
#entrySheet.kb .tp-b { min-height: 30px; padding: 2px 3px; font-size: 11px; line-height: 1.15; border-radius: 8px; }
#entrySheet.kb .tp-b small { display: none; }
@media (orientation: landscape) and (max-height: 520px) { .tour-pick { margin: 4px 0 6px; gap: 4px; } .tp-b { min-height: 32px; padding: 3px 6px; font-size: 11.5px; } }
#modalTourPrefs { z-index: 92; } 
#modalTourPrefs .sheet { width: min(420px, 100%); }
#modalTourPrefs .tour-pick { margin: 10px 0 14px; }
#modalTourPrefs .tp-k { color: #6b5f45; }
#modalTourPrefs .tp-b { color: #3b3020; background: #fffaf0; }
#modalTourPrefs .tp-b.on { background: linear-gradient(180deg, #f3dc9c, #c9a24a); color: #2b2008; }
.w3-back { position: absolute; z-index: 6; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); box-shadow: var(--shadow); }
.w3-back.hidden { display: none; }
