
:root{--panel:#0b161c;--line:#284753;--text:#eef7f8;--muted:#9bb1b5;--gold:#e8c679;--cyan:#76e0e6;--green:#80dda7}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Arial,sans-serif;color:var(--text);background:linear-gradient(180deg,#071116,#020609 80%)}button,input,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:var(--muted)}
.hud{position:sticky;top:0;z-index:200;max-width:1580px;margin:auto;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px;background:rgba(3,10,13,.95);backdrop-filter:blur(12px);border:1px solid rgba(118,224,230,.14);border-radius:0 0 16px 16px}.brand{font-size:12px;letter-spacing:.17em;font-weight:900}.brand span{color:var(--gold)}.hudright{display:flex;gap:8px;align-items:center}.hudbox{padding:8px 11px;border:1px solid var(--line);border-radius:10px;background:#09161b}.hudbox small{display:block;font-size:9px;color:var(--muted);letter-spacing:.12em}.hudbox b{font:850 19px ui-monospace,monospace}
.shell{max-width:1580px;margin:auto;padding:18px 16px 50px}.card{background:linear-gradient(180deg,#0e2028,#071116);border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 28px 90px rgba(0,0,0,.42)}.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:22px}.kicker{font-size:11px;text-transform:uppercase;letter-spacing:.17em;color:var(--gold);font-weight:900}h1{font-size:clamp(46px,7vw,84px);line-height:.92;letter-spacing:-.05em;margin:12px 0 18px}h2{font-size:33px;margin:0 0 10px}h3{margin:0 0 8px}p{line-height:1.58;color:#d2ddde}.panel{border:1px solid var(--line);border-radius:16px;background:#071419;padding:15px}.primary,.secondary,.ghost{border-radius:11px;padding:11px 14px;font-weight:900;border:0}.primary{background:var(--cyan);color:#032126}.secondary{background:#17343e;color:#eaffff;border:1px solid #335a65}.ghost{background:#08151a;color:#dfeaec;border:1px solid var(--line)}input,textarea{width:100%;background:#041014;color:white;border:1px solid var(--line);border-radius:10px;padding:12px 13px;outline:none}textarea{min-height:110px;resize:vertical}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:14px}.stage{position:relative;height:min(76vh,880px);min-height:650px;border-radius:22px;overflow:hidden;border:1px solid #31525d;background:#081116;box-shadow:inset 0 0 110px rgba(0,0,0,.45)}.camera{position:absolute;inset:0;overflow:hidden}.world{position:absolute;left:0;top:0;width:2700px;height:1519px;transform-origin:0 0;background:url('assets/map.webp') center/100% 100% no-repeat;filter:saturate(1.12) contrast(1.05) brightness(1.03);will-change:transform}.world::before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.04),transparent 28%,transparent 72%,rgba(0,0,0,.06)),radial-gradient(circle at 18% 15%,rgba(255,224,142,.14),transparent 16%),radial-gradient(circle at 76% 68%,rgba(118,224,230,.08),transparent 22%)}.world::after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 180px rgba(0,0,0,.18)}
#fogCanvas{position:absolute;inset:0;z-index:22;pointer-events:none;width:100%;height:100%}.poiWrap{position:absolute;z-index:30;transform:translate(-50%,-50%);width:86px;height:66px;border:0;background:transparent;padding:0}.poiArt{position:absolute;inset:0;border-radius:15px;background-size:cover;background-position:center;border:2px solid rgba(255,255,255,.32);box-shadow:0 15px 35px rgba(0,0,0,.48);overflow:hidden;transition:.17s}.poiArt:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.08),transparent 40%,rgba(0,0,0,.64))}.poiRing{position:absolute;inset:-8px;border:2px dashed rgba(118,224,230,.45);border-radius:22px;animation:pulse 1.7s infinite}.poiName{position:absolute;left:50%;top:72px;transform:translateX(-50%);white-space:nowrap;padding:6px 9px;border-radius:10px;background:rgba(6,18,23,.94);border:1px solid rgba(255,255,255,.16);font-size:11px;font-weight:900;box-shadow:0 8px 18px rgba(0,0,0,.25);opacity:.88}.poiKey{position:absolute;left:50%;top:-16px;transform:translateX(-50%);padding:4px 7px;border-radius:999px;background:#17353f;border:1px solid rgba(118,224,230,.35);font-size:9px;font-weight:900;opacity:0;transition:.15s}.poiWrap.near .poiArt{transform:translateY(-4px) scale(1.06);border-color:var(--cyan);box-shadow:0 20px 45px rgba(0,0,0,.56),0 0 0 4px rgba(118,224,230,.13)}.poiWrap.near .poiName{color:#dbffff;border-color:rgba(118,224,230,.58);box-shadow:0 0 24px rgba(118,224,230,.2)}.poiWrap.near .poiKey{opacity:1}.poiWrap.done .poiArt{border-color:var(--green)}.poiWrap.done .poiRing{display:none}.poiWrap.done .poiName{border-color:rgba(128,221,167,.45)}@keyframes pulse{0%,100%{opacity:.3;transform:scale(.98)}50%{opacity:.9;transform:scale(1.05)}}
#player{position:absolute;z-index:42;width:45px;height:64px;transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(0 6px 8px rgba(0,0,0,.35))}#player .shadow{position:absolute;left:50%;bottom:4px;transform:translateX(-50%);width:25px;height:8px;border-radius:50%;background:rgba(0,0,0,.32)}#player .head{position:absolute;left:50%;top:4px;transform:translateX(-50%);width:13px;height:13px;border-radius:50%;background:#f1c79d}#player .hair{position:absolute;left:50%;top:1px;transform:translateX(-50%);width:15px;height:7px;border-radius:9px 9px 4px 4px;background:#59402f}#player .body{position:absolute;left:50%;top:18px;transform:translateX(-50%);width:18px;height:15px;border-radius:8px;background:#efbf48}#player .arm{position:absolute;top:20px;width:6px;height:15px;border-radius:6px;background:#f1c79d;transform-origin:top center}#player .arm.l{left:9px}#player .arm.r{right:9px}#player .leg{position:absolute;top:32px;width:7px;height:21px;border-radius:7px;background:#30495d;transform-origin:top center}#player .leg.l{left:15px}#player .leg.r{right:15px}#player .foot{position:absolute;bottom:6px;width:10px;height:5px;border-radius:6px;background:#172025}#player .foot.l{left:11px}#player .foot.r{right:11px}#player.walking{animation:bob .23s infinite ease-in-out}#player.walking .leg.l{animation:legL .23s infinite linear}#player.walking .leg.r{animation:legR .23s infinite linear}#player.walking .arm.l{animation:armL .23s infinite linear}#player.walking .arm.r{animation:armR .23s infinite linear}@keyframes bob{0%,100%{margin-top:0}50%{margin-top:-2px}}@keyframes legL{0%,100%{transform:rotate(35deg)}50%{transform:rotate(-35deg)}}@keyframes legR{0%,100%{transform:rotate(-35deg)}50%{transform:rotate(35deg)}}@keyframes armL{0%,100%{transform:rotate(-30deg)}50%{transform:rotate(30deg)}}@keyframes armR{0%,100%{transform:rotate(30deg)}50%{transform:rotate(-30deg)}}
.minimap{position:absolute;right:14px;bottom:14px;z-index:90;width:230px;height:130px;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.22);background:#07151a;box-shadow:0 18px 42px rgba(0,0,0,.45);pointer-events:none}.miniBase{position:absolute;inset:0;background:url('assets/map.webp') center/100% 100% no-repeat}.miniShade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.13))}#miniFog{position:absolute;inset:0;width:100%;height:100%}#miniPlayer{position:absolute;width:9px;height:9px;border-radius:50%;background:var(--cyan);box-shadow:0 0 0 3px rgba(118,224,230,.25)}#miniView{position:absolute;border:2px solid rgba(255,255,255,.65);border-radius:8px;background:rgba(255,255,255,.04)}
.interact{position:absolute;left:14px;bottom:14px;z-index:91;display:flex;align-items:center;gap:9px;padding:10px 12px;border-radius:13px;background:rgba(6,18,23,.92);border:1px solid rgba(118,224,230,.28);box-shadow:0 12px 30px rgba(0,0,0,.35);max-width:440px}.keycap{min-width:34px;height:34px;display:grid;place-items:center;padding:0 9px;border-radius:9px;background:#17353f;border:1px solid rgba(118,224,230,.38);font-weight:900}.iname{font-size:13px;font-weight:900}.imeta{font-size:10px;color:var(--muted)}
.sidebar{display:flex;flex-direction:column;gap:11px}.side{border:1px solid var(--line);border-radius:15px;background:#071419;padding:13px}.progress{height:8px;border-radius:999px;background:#13272e;overflow:hidden}.progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--cyan),var(--green))}.controls{display:grid;grid-template-columns:repeat(3,46px);justify-content:center;gap:5px}.controls button{height:46px;border-radius:10px;background:#0d2026;color:white;border:1px solid var(--line);font-weight:900}.controls .blank{visibility:hidden}.notebook{display:grid;gap:7px;max-height:290px;overflow:auto}.note{border:1px solid var(--line);border-radius:10px;padding:9px;background:#09171c}.note b{color:var(--gold)}.note p{font-size:11px;margin:5px 0 0;color:#c9d5d6}
.modal{position:fixed;inset:0;z-index:500;background:rgba(0,0,0,.8);display:none;align-items:center;justify-content:center;padding:18px}.modal.show{display:flex}.modalbox{width:min(1080px,96vw);max-height:92vh;overflow:auto;border-radius:20px;border:1px solid var(--line);background:#071419;padding:20px;box-shadow:0 28px 90px rgba(0,0,0,.6)}.mhead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.mhead button{border:0;background:none;color:#fff;font-size:30px}.pop{display:grid;grid-template-columns:1.05fr .95fr;gap:16px}.photo{border:1px solid var(--line);border-radius:16px;overflow:hidden}.photo img{width:100%;height:100%;min-height:330px;object-fit:cover;display:block}.caption{padding:9px 11px;font-size:11px;color:#cbd6d7}.paper{background:#e2dac2;color:#293132;border-radius:12px;padding:16px;font-family:Georgia,serif}.paper p{color:#293132}.speech{padding:13px;border-radius:12px;background:#10242b;border:1px solid #2b5059}.menu{display:grid;gap:6px;margin:10px 0}.menu div{padding:9px;border-radius:9px;border:1px solid var(--line);background:#0a181e}.tag{display:inline-block;padding:4px 7px;border:1px solid var(--line);border-radius:999px;font-size:9px;color:#adbdc0}.feedback{margin-top:9px;padding:9px 11px;border-radius:9px;border:1px solid var(--line)}.good{background:#10251a;border-color:#2c6846}.bad{background:#301518;border-color:#76414a}.wave{height:42px;background:repeating-linear-gradient(90deg,transparent 0 6px,rgba(118,224,230,.58) 6px 8px,transparent 8px 12px);mask:linear-gradient(180deg,transparent,black 22%,black 78%,transparent);margin:9px 0}
@media(max-width:1050px){.hero,.layout,.pop{grid-template-columns:1fr}.sidebar{order:-1}.stage{height:62vh;min-height:540px}.minimap{width:190px;height:108px}}

.poiGlyph{position:absolute;right:-14px;top:-17px;z-index:5;width:27px;height:27px;display:grid;place-items:center;border-radius:50%;border:2px solid #f7df9d;background:#b87919;color:#fff;font-size:15px;box-shadow:0 3px 10px #0009;line-height:1}
.poiName{color:#fff}.poiArt{background-position:center center}.poiWrap.done .poiGlyph{background:#208366;border-color:#aefed7}
.readingText {
  margin-top: 8px;
  font: 17px/1.75 Georgia, serif;
  white-space: pre-line;
  color: #243236;
}
.point-audio {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, #102730, #07171e);
}
.point-audio .wave {
  margin: 0 0 8px;
}
.point-audio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 126px;
  min-height: 44px;
}
.point-audio-button:hover {
  background: #204450;
  border-color: var(--cyan);
}
.point-audio-icon {
  display: inline-block;
  min-width: 13px;
  text-align: center;
}
.point-audio-button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.point-audio-status:not(:empty) {
  margin-top: 8px;
  font-size: 12px;
}
.chat{display:grid;gap:11px;max-height:300px;overflow:auto;padding:10px;background:#081b22;border-radius:12px;border:1px solid #234451;margin:10px 0}
.message{padding:9px 12px;max-width:85%;border-radius:13px;background:#173741;line-height:1.45;font-size:14px}.message.you{justify-self:end;background:#24515d;color:#efffff}.message.npc{justify-self:start}
.shop-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: 16px;
}
.shop-heading p {
  margin: 0;
}
.shop-heading > p:first-child {
  flex: 1 1 340px;
}
.shop-heading .shop-count,
.shop-price {
  color: var(--gold);
  font-weight: 800;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.shop-item {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b1c24;
}
.shop-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.shop-item-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.shop-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.32;
}
.shop-price {
  margin: 0 0 4px;
  font-variant-numeric: tabular-nums;
}
.shop-item button {
  margin-top: auto;
  padding-inline: 8px;
  font-size: 13px;
  line-height: 1.25;
}
.shop-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: #123826;
  color: #acffd0;
  font-weight: 900;
}
.shop-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.shop-product-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b1c24;
}
.shop-product-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  transition: filter .2s ease;
}
.shop-product-photo img.shop-lamp {
  filter: hue-rotate(197deg);
}
.shop-lighting {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 0;
}
.shop-lighting label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.shop-lighting label:has(:checked) {
  border-color: var(--cyan);
  background: #102e38;
  color: var(--cyan);
}
.shop-lighting input {
  width: auto;
  margin: 0;
  accent-color: var(--cyan);
}
.shop-product-info > h3 {
  margin-bottom: 4px;
}
.shop-note-field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}
.shop-note-field textarea {
  display: block;
  min-height: 86px;
}
.shop-product-actions,
.shop-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.shop-footer {
  justify-content: flex-end;
}
.shop-item button,
.shop-product-actions button,
.shop-footer button,
#shopMap {
  min-height: 44px;
}
.shop-footer button:disabled,
.shop-product-actions button:disabled {
  opacity: .45;
  cursor: default;
}
.shop-item button:focus-visible,
.shop-product-actions button:focus-visible,
.shop-footer button:focus-visible,
.shop-lighting label:focus-within,
.shop-note-field textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.shop-notes {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 13px;
}
.shop-notes dt {
  color: var(--cyan);
  font-weight: 800;
}
.shop-notes dd {
  margin: 3px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#shopMap {
  margin-top: 10px;
}
@media (max-width: 760px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shop-product {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}
@media (max-width: 420px) {
  .shop-item-info {
    padding: 8px;
  }
  .shop-item h3 {
    font-size: 13px;
  }
}
.ticket{background:#f1e3c9;color:#293036;border-radius:15px;border:2px dashed #b89b62;padding:17px;max-width:500px;box-shadow:0 12px 35px #0005}
.ticket b{font-size:23px}.ticket .route{font-size:18px;padding:12px 0;border-top:1px solid #bba675;border-bottom:1px solid #bba675;margin:11px 0}
@media(max-width:920px){.layout{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.stage{height:70vh;min-height:510px}.hero,.pop{grid-template-columns:1fr}.photo img{min-height:220px}.hud{flex-wrap:wrap}}
@media(max-width:580px){.sidebar{grid-template-columns:1fr}.stage{min-height:440px}.minimap{width:165px;height:94px}.brand{font-size:10px}.hudbox{padding:6px}.hudbox b{font-size:15px}.interact{right:7px;left:7px;bottom:7px;max-width:none}.poiName{font-size:10px}}

/* Location cards and content photos. */
.poiWrap{width:104px;height:81px;transform:translate(-50%,-50%) scale(1.64);z-index:30;isolation:isolate}
.poiArt{inset:0;border-radius:14px;border:2.5px solid #ead59e;box-shadow:0 7px 17px #000b,0 0 0 3px rgba(9,30,42,.92);background-size:cover;background-position:center;filter:saturate(1.15) contrast(1.06)}
.poiArt::after{background:linear-gradient(160deg,#ffffff2d,transparent 35%,#07152133 75%,#07152180)}
.poiRing{inset:-5px;border:1.7px solid rgba(233,203,132,.40);border-radius:18px;animation:pulse 2s ease-in-out infinite}
.poiIndex {
  position: absolute;
  top: -8px;
  left: -6px;
  z-index: 5;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0a2331;
  color: #fce1a2;
  border: 1px solid #bba576;
  font: 900 11px Arial;
}
.poiGlyph{right:-12px;top:-15px;width:28px;height:28px;border:2px solid #fff1ca;background:linear-gradient(#fbc466,#c8871a);color:#182632;font:bold 21px Arial;display:grid;place-items:center}
.poiName{z-index:4;top:83px;max-width:180px;min-width:110px;width:max-content;white-space:normal;line-height:1.22;padding:6px 10px;border-radius:10px;border:1.5px solid #d7c28c;background:linear-gradient(180deg,#091d2af8,#041017f8);color:white;font-size:12px;text-align:center;font-weight:850;letter-spacing:.1px;opacity:1;text-shadow:0 1px 2px #000;box-shadow:0 5px 15px #0008}
.poiWrap.near .poiArt{border-color:#b8faff;transform:translateY(-3px) scale(1.035);box-shadow:0 10px 26px #000b,0 0 0 3px #7be7f450}
.poiWrap.done .poiArt{border-color:#9df2c9}
.poiWrap.done .poiGlyph{background:linear-gradient(#64c99b,#23845f);color:white;border-color:#d2ffe7}
.poiWrap.done .poiGlyph::after{content:'✓';position:absolute;background:inherit;inset:0;display:grid;place-items:center;border-radius:50%;font-size:17px}
.poiKey{z-index:10;top:-40px}
.photo{display:flex;flex-direction:column;align-self:start;background:linear-gradient(145deg,#1b4253,#091b27);border:1px solid #446473;overflow:hidden;box-shadow:0 14px 25px #0004}
.photo img{height:auto;min-height:0;aspect-ratio:3/2;object-fit:contain;background:#092431}
.photo .caption{padding:12px 14px;background:#0a202a;color:#e3f2f0;font-size:12px}
.pop{align-items:start}
@media(max-width:920px){.poiWrap{transform:translate(-50%,-50%) scale(1.48)}}

.city-complete {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: clamp(20px, 5vw, 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #14262f, #071419 74%);
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0,0,0,.6);
}
.city-complete::backdrop {
  background: rgba(0, 0, 0, .76);
}
.city-complete h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 6vw, 36px);
  line-height: 1.12;
}
.city-complete p {
  margin: 0;
  color: #cddce1;
  line-height: 1.55;
}
.city-complete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.city-complete-actions button {
  flex: 1 1 170px;
  min-height: 44px;
}
.city-complete-actions button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.tour-stop-notes {
  min-width: 0;
  overflow-wrap: anywhere;
}
.tour-stop-notes p {
  margin: 0;
  white-space: pre-wrap;
}
.tour-stop:not(.pop) .photo {
  max-width: 680px;
  margin-inline: auto;
}

.vocabHint {
  margin: 10px 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #10242b;
}
.vocabHint summary {
  cursor: pointer;
  color: var(--cyan);
  font-weight: 800;
}
.vocabHint ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.vocabHint li {
  margin: 4px 0;
}
.vocabHint [lang] {
  color: #d2ddde;
}
