@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;600;700&display=swap");
body {
  color: var(--ink);
}
.toolbar svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #263d38;
  background: #eeeae1;
  font-synthesis: none;
  --ink: #263d38;
  --muted: #71807a;
  --panel: rgba(255, 255, 250, 0.88);
  --line: rgba(48, 75, 64, 0.14);
  --accent: #28675d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #d28442;
  outline-offset: 5px;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
[hidden] {
  display: none !important;
}
#scene {
  position: fixed;
  inset: 0;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
header {
  position: fixed;
  top: 32px;
  left: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 4;
}
header > * {
  pointer-events: auto;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand-mark {
  background: #2d655b;
  color: #faf0d8;
  border-radius: 12px 12px 3px 12px;
  width: 45px;
  height: 49px;
  display: grid;
  place-items: center;
  font:
    27px "Noto Serif SC",
    serif;
}
.brand b {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 2px;
}
.brand-dot {
  font-weight: 300;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2.5px;
  margin-top: 7px;
  color: var(--muted);
}
.top-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.day-switch {
  display: flex;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--panel);
  box-shadow: 0 3px 15px #24372b05;
}
.day-switch button {
  padding: 9px 17px;
  border-radius: 100px;
  font-size: 14px;
  transition: 0.3s;
}
.day-switch button.active {
  background: var(--accent);
  color: #fff;
}
.icon-button {
  height: 36px;
  width: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 16px;
}
.intro {
  position: fixed;
  left: 42px;
  top: 140px;
  pointer-events: none;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--muted);
}
h1 {
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(27px, 2.5vw, 43px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 4px;
  margin: 18px 0 13px;
}
.intro p {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}
.scene-state {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 24px;
}
.scene-state i {
  height: 6px;
  width: 6px;
  background: #c1934a;
  border-radius: 50%;
}
.state-divider {
  opacity: 0.4;
}
.landmark-nav {
  position: fixed;
  right: 40px;
  top: 128px;
  z-index: 5;
  width: 212px;
}
.landmark-nav > button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 13px;
  backdrop-filter: blur(14px);
}
.count {
  font-size: 10px;
  background: #e8ede4;
  padding: 3px 6px;
  border-radius: 5px;
  color: #45695e;
}
.chevron {
  margin-left: auto;
}
#places {
  margin-top: 8px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  max-height: 55vh;
  overflow: auto;
}
#places button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}
#places button:hover {
  background: #2e695916;
}
#places small {
  font-size: 10px;
  color: var(--muted);
}
footer {
  position: fixed;
  bottom: 29px;
  left: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 4;
}
.toolbar {
  display: flex;
  align-items: center;
  padding: 7px;
  border-radius: 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px #183c2812;
  backdrop-filter: blur(20px);
  pointer-events: auto;
  gap: 2px;
}
.toolbar button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 13px 16px;
  border-radius: 9px;
  white-space: nowrap;
}
.toolbar button > span:first-child {
  font-size: 20px;
  line-height: 14px;
}
.toolbar button:hover,
.toolbar button.selected {
  background: #28675d12;
}
.toolbar .walk-button {
  background: var(--accent);
  color: white;
  padding: 14px 20px;
}
.toolbar .walk-button:hover {
  background: #194d43;
}
.toolbar-separator {
  height: 21px;
  border-left: 1px solid var(--line);
  margin: 0 4px;
}
.interaction-hint {
  font-size: 11px;
  color: var(--muted);
}
.interaction-hint > span {
  font-size: 18px;
  padding-right: 6px;
}
.interaction-hint em {
  font-style: normal;
  margin: 0 7px;
  opacity: 0.5;
}
.footer-note {
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  letter-spacing: 3px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
.footer-note span {
  font-family: Arial, sans-serif;
  letter-spacing: 2px;
  font-size: 9px;
  color: var(--muted);
}
.compass {
  position: fixed;
  right: 48px;
  bottom: 145px;
  text-align: center;
  color: var(--muted);
  pointer-events: none;
}
.compass > div {
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.compass span {
  font-size: 31px;
  color: var(--ink);
  display: block;
}
.compass small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.8px;
  margin-top: 16px;
}
#detail {
  position: fixed;
  right: 40px;
  top: 198px;
  width: 300px;
  background: var(--panel);
  backdrop-filter: blur(22px);
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 20px 80px #12352a15;
  z-index: 6;
}
.close {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 26px;
  color: var(--muted);
  width: 32px;
  height: 32px;
}
h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1px;
  margin: 15px 0;
}
#detail p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
}
#detail-tags {
  display: flex;
  gap: 6px;
  margin: 16px 0;
}
#detail-tags span {
  font-size: 10px;
  letter-spacing: 1px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.primary {
  display: flex;
  justify-content: space-between;
  background: var(--accent);
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  width: 100%;
  font-size: 13px;
}
#detail > small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.5;
}
#tooltip {
  position: fixed;
  z-index: 8;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  pointer-events: none;
  transform: translate(14px, -40px);
}
.map-label {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 11px;
  box-shadow: 0 5px 12px #102d2110;
}
.map-label:after {
  content: "";
  display: block;
  position: absolute;
  width: 4px;
  height: 4px;
  background: #396d5c;
  left: 50%;
  bottom: -8px;
  border-radius: 50%;
}
#walk-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 102px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  z-index: 8;
  font-size: 12px;
  white-space: nowrap;
}
#walk-banner span {
  color: var(--muted);
}
#walk-banner button {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
#crosshair {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-shadow: 0 0 3px #000;
  pointer-events: none;
  font-size: 22px;
}
#touch-controls {
  position: fixed;
  left: 20px;
  bottom: 130px;
  z-index: 8;
}
.dpad {
  display: grid;
  grid-template-columns: repeat(3, 42px);
  grid-template-rows: repeat(2, 42px);
  gap: 4px;
}
.dpad button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  touch-action: none;
}
.dpad button:first-child {
  grid-column: 2;
}
.dpad button:nth-child(2) {
  grid-column: 1;
}
.dpad ~ span {
  font-size: 11px;
  display: block;
  margin-top: 9px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--ink);
  padding: 36px;
  max-width: 450px;
  backdrop-filter: blur(20px);
}
dialog::backdrop {
  background: #173e3644;
  backdrop-filter: blur(5px);
}
dialog p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
dialog small {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
#loading {
  position: fixed;
  inset: 0;
  background: #eeeae1;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s;
}
.loading-mark {
  font:
    45px "Noto Serif SC",
    serif;
  border: 1px solid #28675d40;
  color: #28675d;
  padding: 15px 20px;
  border-radius: 20px 20px 4px 20px;
}
#loading p {
  font-size: 16px;
  letter-spacing: 3px;
  margin: 25px 0 12px;
}
#loading > span {
  font-size: 12px;
  color: #71807a;
}
.night {
  --ink: #e4eee5;
  --muted: #9bb5b6;
  --panel: rgba(21, 42, 54, 0.9);
  --line: rgba(192, 222, 219, 0.17);
  --accent: #548c7e;
}
.night .count {
  background: #34534f;
  color: #cbe1d6;
}
.night .scene-state i {
  background: #f2c277;
}
.night .brand-mark {
  background: #5e8977;
}
.walking .intro,
.walking .compass,
.walking .interaction-hint {
  display: none;
}
.walking .toolbar {
  margin: auto;
}
@media (min-width: 1600px) {
  .intro {
    top: 170px;
  }
  footer {
    bottom: 36px;
  }
}
@media (max-width: 1200px) {
  .interaction-hint,
  .footer-note {
    display: none;
  }
  footer {
    justify-content: center;
  }
  .intro {
    top: 130px;
    left: 28px;
  }
  header {
    left: 28px;
    right: 28px;
  }
  .landmark-nav {
    right: 28px;
    width: 185px;
  }
  .intro p {
    max-width: 150px;
    line-height: 1.8;
  }
  .toolbar button {
    padding: 12px 14px;
  }
  #detail {
    right: 28px;
  }
  .compass {
    right: 30px;
  }
}
@media (max-width: 700px) {
  header {
    top: 20px;
    left: 19px;
    right: 19px;
  }
  .brand {
    gap: 9px;
  }
  .brand-mark {
    width: 34px;
    height: 38px;
    font-size: 22px;
    border-radius: 9px 9px 3px 9px;
  }
  .brand b {
    font-size: 15px;
    letter-spacing: 1px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.3px;
  }
  .day-switch button {
    padding: 8px 11px;
  }
  .day-switch button span {
    display: none;
  }
  .top-actions {
    gap: 8px;
  }
  .icon-button {
    width: 29px;
    height: 29px;
  }
  .intro {
    top: 105px;
    left: 22px;
  }
  .intro .eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
  }
  h1 {
    font-size: 25px;
    line-height: 1.5;
    letter-spacing: 3px;
    margin: 12px 0;
  }
  .intro p,
  .scene-state {
    display: none;
  }
  .landmark-nav {
    top: 101px;
    right: 19px;
    width: 143px;
  }
  .landmark-nav > button {
    padding: 10px;
    font-size: 11px;
    gap: 5px;
  }
  .landmark-nav .count {
    font-size: 9px;
  }
  #places {
    max-height: 45vh;
  }
  #places button {
    font-size: 11px;
    padding: 10px 7px;
  }
  #places small {
    display: none;
  }
  footer {
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
  }
  .toolbar {
    padding: 5px;
    gap: 0;
    border-radius: 13px;
    width: 100%;
    justify-content: center;
  }
  .toolbar button {
    flex-direction: column;
    padding: 10px 11px;
    gap: 9px;
    font-size: 10px;
  }
  .toolbar .walk-button {
    padding: 12px 17px;
    gap: 9px;
  }
  .toolbar-separator {
    margin: 0 2px;
  }
  .compass {
    bottom: 114px;
    right: 24px;
  }
  .compass small {
    display: none;
  }
  .compass span {
    font-size: 24px;
  }
  #detail {
    top: auto;
    bottom: 100px;
    left: 18px;
    right: 18px;
    width: auto;
    padding: 22px;
    max-height: 55vh;
    overflow: auto;
  }
  #detail p {
    font-size: 13px;
    line-height: 1.7;
  }
  #detail h2 {
    font-size: 20px;
    margin: 12px 0;
  }
  #detail-tags {
    margin: 10px 0;
  }
  #detail > small {
    font-size: 9px;
    margin-top: 10px;
  }
  #walk-banner {
    top: 84px;
    width: calc(100% - 32px);
    white-space: normal;
    flex-wrap: wrap;
    gap: 9px;
    padding: 12px;
  }
  #walk-banner span {
    font-size: 10px;
    flex: 1;
  }
  #lock-look {
    display: none;
  }
  #leave-walk {
    font-size: 11px;
  }
  .map-label {
    font-size: 10px;
    padding: 4px 6px;
  }
  dialog {
    max-width: calc(100% - 32px);
    padding: 28px;
  }
}
