:root {
  --ink: #172b27;
  --muted: #6f7872;
  --paper: #f4f1e9;
  --paper-deep: #e9e4d8;
  --white: #fffdf7;
  --bronze: #103c35;
  --bronze-2: #1c5147;
  --bronze-soft: #dce5df;
  --gold: #c79857;
  --gold-light: #ead6ad;
  --rust: #ad5d3d;
  --line: rgba(28, 57, 51, 0.13);
  --shadow: 0 18px 45px rgba(22, 42, 37, 0.12);
  --serif: "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background: #193d36;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(199, 152, 87, 0.5);
  outline-offset: 2px;
}
button, label { touch-action: manipulation; }
.site-backdrop { position: fixed; inset: 0; overflow: hidden; pointer-events: none; opacity: .65; }
.backdrop-ring { position: absolute; border: 1px solid rgba(232, 212, 171, .18); border-radius: 50%; }
.ring-one { width: 620px; height: 620px; right: -160px; top: -240px; }
.ring-two { width: 390px; height: 390px; left: -150px; bottom: -90px; }

.app-shell {
  position: relative;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: clip;
  background:
    radial-gradient(circle at 92% 6%, rgba(202, 158, 89, .13), transparent 22%),
    var(--paper);
  box-shadow: 0 0 80px rgba(0,0,0,.28);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: env(safe-area-inset-top) 20px 0;
  background: rgba(244, 241, 233, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(20, 58, 51, .06);
}
.brand { display: flex; gap: 9px; align-items: center; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bronze); color: var(--gold-light); }
.brand-mark svg { width: 25px; fill: currentColor; }
.brand strong { display: block; font-family: var(--serif); font-size: 17px; letter-spacing: 0; line-height: 1.1; }
.brand small { display: block; margin-top: 2px; color: #7b847e; font-size: 7px; font-weight: 700; letter-spacing: 0; }
.trip-chip { display: flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255,255,255,.45); color: #53625d; font-size: 11px; font-weight: 650; }
.trip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 4px rgba(173,93,61,.10); }

main { padding-bottom: calc(98px + env(safe-area-inset-bottom)); }
.page { display: none; min-height: calc(100vh - 72px); padding: 12px 18px 30px; animation: page-in .34s ease both; }
.page.active { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.hero-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  padding: 34px 26px 20px;
  border-radius: 8px 8px 36px 8px;
  color: #f5efe3;
  background:
    linear-gradient(145deg, rgba(255,255,255,.04), transparent 35%),
    linear-gradient(150deg, #174d43, #0d342e 65%, #082a26);
  box-shadow: var(--shadow);
}
.hero-card::before { content: ""; position: absolute; width: 330px; height: 330px; right: -160px; top: -110px; border: 1px solid rgba(232,206,153,.18); border-radius: 50%; box-shadow: 0 0 0 35px rgba(232,206,153,.025), 0 0 0 70px rgba(232,206,153,.018); }
.hero-copy { position: relative; z-index: 3; max-width: 295px; }
.eyebrow, .section-kicker { margin: 0 0 10px; color: var(--gold-light); font-size: 9px; font-weight: 800; letter-spacing: 0; }
.eyebrow.dark { color: #8e7350; }
.hero-card h1, .page-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 9vw, 44px); font-weight: 700; line-height: 1.28; letter-spacing: 0; }
.hero-card h1 em { position: relative; color: #efc87f; font-style: normal; }
.hero-card h1 em::after { content: ""; position: absolute; right: 0; bottom: 1px; left: 0; height: 5px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='5' viewBox='0 0 100 5'%3E%3Cpath d='M1 3c17-2 31 2 49 0s32 1 49-1' fill='none' stroke='%23c79555' stroke-width='1.5'/%3E%3C/svg%3E") center/100% 5px no-repeat; }
.hero-intro { width: 245px; margin: 17px 0 21px; color: rgba(248,245,236,.68); font-size: 13px; line-height: 1.8; }
.primary-btn { display: inline-flex; align-items: center; gap: 16px; height: 45px; padding: 0 16px 0 19px; border: 0; border-radius: 3px 16px 3px 3px; background: #e9c686; color: #193a33; font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 25px rgba(0,0,0,.16); transition: transform .2s, background .2s; }
.primary-btn:active { transform: scale(.97); }
.primary-btn svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.hero-art { position: absolute; z-index: 1; right: 0; bottom: 61px; width: 100%; height: 292px; margin: 0; }
.hero-art::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, #0f3933 0, transparent 28%), linear-gradient(90deg, rgba(8,42,38,.9) 0, rgba(8,42,38,.24) 50%, rgba(8,42,38,.03) 100%); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 56% center; filter: saturate(.76) contrast(1.05); }
.hero-art figcaption { position: absolute; z-index: 2; right: 16px; bottom: 13px; padding: 5px 8px; border: 1px solid rgba(244,229,200,.24); border-radius: 3px; color: rgba(249,239,221,.74); background: rgba(8,42,38,.52); font-size: 8px; backdrop-filter: blur(6px); }
.hero-meta { position: absolute; z-index: 4; right: 20px; bottom: 18px; left: 20px; display: grid; grid-template-columns: repeat(3,1fr); padding-top: 15px; border-top: 1px solid rgba(239,216,174,.18); }
.hero-meta div { padding-left: 15px; border-left: 1px solid rgba(239,216,174,.18); }
.hero-meta div:first-child { padding-left: 0; border-left: 0; }
.hero-meta strong { display: block; color: #efd19a; font-family: var(--serif); font-size: 16px; }
.hero-meta span { display: block; margin-top: 3px; color: rgba(248,245,236,.5); font-size: 9px; }

.section-block, .tool-section { margin-top: 34px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 15px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.25; }
.section-heading .section-kicker { margin-bottom: 4px; color: #a17e52; }
.progress-label, .saved-counter { color: #7b817b; font-size: 11px; }
.text-btn { padding: 8px 0; border: 0; background: transparent; color: #6d746e; font-size: 11px; cursor: pointer; }
.text-btn span { color: var(--rust); }
.checklist { overflow: hidden; border: 1px solid var(--line); border-radius: 4px 4px 20px 4px; background: rgba(255,253,248,.72); }
.check-item { position: relative; display: flex; align-items: center; gap: 11px; min-height: 74px; padding: 12px 14px; border-top: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.check-item:first-child { border-top: 0; }
.check-item input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check { display: grid; flex: 0 0 auto; place-items: center; width: 20px; height: 20px; border: 1.5px solid #9aa19b; border-radius: 50%; transition: .2s; }
.custom-check svg { width: 13px; fill: none; stroke: #fff; stroke-width: 2; opacity: 0; transform: scale(.4); transition: .2s; }
.check-item input:checked + .custom-check { border-color: var(--bronze-2); background: var(--bronze-2); }
.check-item input:checked + .custom-check svg { opacity: 1; transform: scale(1); }
.check-item:has(input:checked) strong { color: #727a75; text-decoration: line-through; }
.check-icon { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; border-radius: 10px 10px 14px 10px; color: #896c46; background: #eee5d4; font-family: var(--serif); font-size: 12px; }
.check-item strong, .check-item small { display: block; }
.check-item strong { font-size: 13px; }
.check-item small { margin-top: 5px; color: #858a85; font-size: 10px; line-height: 1.4; }

.route-preview { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 5px 5px 24px 5px; background: #e5e0d4; color: inherit; text-align: left; cursor: pointer; }
.route-preview-top { display: flex; align-items: center; gap: 12px; padding: 16px; }
.route-number { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: var(--bronze); color: #e8c98e; font-family: var(--serif); font-size: 15px; }
.route-preview-top div { flex: 1; }
.route-preview-top div span, .route-preview-top div strong { display: block; }
.route-preview-top div span { margin-bottom: 4px; color: #7f857f; font-size: 9px; }
.route-preview-top div strong { font-family: var(--serif); font-size: 14px; }
.round-arrow { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(25,57,51,.2); border-radius: 50%; }
.route-map { position: relative; display: flex; justify-content: space-between; min-height: 87px; padding: 17px 20px 12px; background: #153f37; }
.map-path { position: absolute; top: 28px; right: 34px; left: 34px; height: 1px; background: repeating-linear-gradient(to right, rgba(222,196,147,.4) 0 5px, transparent 5px 9px); }
.map-node { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; }
.map-node i { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid rgba(238,214,168,.38); border-radius: 50%; background: #153f37; color: #d8c293; font-family: var(--serif); font-size: 9px; font-style: normal; }
.map-node b { color: rgba(248,245,236,.5); font-size: 9px; font-weight: 500; }
.map-node.node-active i { background: #d7ad6a; color: #153f37; box-shadow: 0 0 0 5px rgba(215,173,106,.1); }
.map-node.node-active b { color: #e9d3a7; }

.spotlight-row { display: grid; grid-auto-columns: 72%; grid-auto-flow: column; gap: 12px; overflow-x: auto; padding: 2px 0 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.spotlight-row::-webkit-scrollbar { display: none; }
.spotlight-card { position: relative; min-height: 270px; overflow: hidden; padding: 17px; border: 0; border-radius: 5px 5px 24px 5px; background: #ddd7c9; text-align: left; scroll-snap-align: start; cursor: pointer; }
.spotlight-card:nth-child(2) { background: #d7dfd9; }
.spotlight-card:nth-child(3) { background: #e6d9c5; }
.spotlight-card .artifact-art { height: 167px; margin: -6px auto 2px; }
.spotlight-card small { color: #83785f; font-size: 9px; font-weight: 700; letter-spacing: 0; }
.spotlight-card strong { display: block; margin-top: 5px; font-family: var(--serif); font-size: 17px; }
.spotlight-card .spot-arrow { position: absolute; right: 15px; bottom: 16px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.54); font-size: 12px; }

.question-card { position: relative; min-height: 250px; margin-top: 34px; overflow: hidden; padding: 23px 22px; border-radius: 5px 5px 28px 5px; background: #a95338; color: #fff3e9; }
.question-card::after { content: ""; position: absolute; width: 230px; height: 230px; right: -60px; top: 10px; border: 1px solid rgba(255,239,220,.18); border-radius: 50%; }
.question-index { color: rgba(255,244,232,.55); font-family: var(--serif); font-size: 10px; }
.question-card p { margin: 35px 0 7px; color: #f4cfae; font-size: 10px; font-weight: 700; letter-spacing: 0; }
.question-card h2 { position: relative; z-index: 2; margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.55; }
.question-card button { position: absolute; z-index: 3; bottom: 21px; left: 22px; padding: 0; border: 0; background: transparent; color: #fff4e9; font-size: 11px; font-weight: 700; cursor: pointer; }
.question-card button span { margin-left: 8px; }
.question-eye { position: absolute; right: -17px; bottom: 17px; width: 175px; fill: none; stroke: rgba(255,232,212,.2); stroke-width: 1.6; }
.source-note { margin: 20px 6px 0; color: #90958f; font-size: 9px; line-height: 1.7; text-align: center; }

.page-heading { display: flex; align-items: flex-start; justify-content: space-between; padding: 25px 4px 17px; }
.page-heading h1 { color: #193c35; font-size: clamp(30px, 8vw, 39px); }
.route-ring { --progress: 0deg; position: relative; display: grid; flex: 0 0 auto; place-content: center; width: 72px; height: 72px; margin-top: 5px; border-radius: 50%; background: conic-gradient(var(--rust) var(--progress), #d9d5ca 0); text-align: center; transition: background .3s; }
.route-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--paper); }
.route-ring strong, .route-ring span { position: relative; z-index: 1; display: block; }
.route-ring strong { font-family: var(--serif); font-size: 15px; }
.route-ring span { color: #868d87; font-size: 8px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border-radius: 7px 7px 17px 7px; background: #e5e0d5; }
.mode-switch button { min-height: 55px; padding: 8px; border: 0; border-radius: 4px 4px 13px 4px; background: transparent; cursor: pointer; }
.mode-switch button strong, .mode-switch button span { display: block; }
.mode-switch button strong { font-size: 12px; }
.mode-switch button span { margin-top: 4px; color: #898d88; font-size: 9px; }
.mode-switch button.active { background: var(--bronze); color: #f5ead8; box-shadow: 0 5px 14px rgba(20,60,53,.16); }
.mode-switch button.active span { color: rgba(245,234,216,.58); }
.route-tip { display: flex; gap: 12px; margin: 15px 0 4px; padding: 13px 14px; border: 1px solid rgba(176,133,76,.2); border-radius: 4px 4px 14px 4px; background: #f0e5d1; }
.route-tip > span { color: var(--rust); font-size: 20px; line-height: 1; }
.route-tip p { margin: 0; color: #6d665a; font-size: 10px; line-height: 1.7; }
.route-tip strong { color: #514b42; }
.timeline { padding: 15px 0 5px; }
.route-stop { position: relative; display: grid; grid-template-columns: 53px 1fr; gap: 9px; min-height: 185px; }
.route-stop::before { content: ""; position: absolute; top: 31px; bottom: -2px; left: 25px; width: 1px; background: repeating-linear-gradient(to bottom, #b7b7ac 0 5px, transparent 5px 9px); }
.route-stop:last-child::before { display: none; }
.stop-marker { position: relative; z-index: 1; display: grid; place-items: center; align-self: start; width: 36px; height: 36px; margin-left: 7px; border: 1px solid #aaa99e; border-radius: 50%; background: var(--paper); color: #83857f; font-family: var(--serif); font-size: 12px; transition: .2s; }
.route-stop.completed .stop-marker { border-color: var(--bronze); background: var(--bronze); color: #e9c98d; }
.route-stop.current .stop-marker { border-color: var(--rust); color: var(--rust); box-shadow: 0 0 0 5px rgba(171,91,60,.1); }
.stop-card { margin-bottom: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 5px 5px 20px 5px; background: rgba(255,253,247,.72); transition: opacity .2s, transform .2s, border-color .2s; }
.route-stop.completed .stop-card { opacity: .65; }
.route-stop.current .stop-card { border-color: rgba(173,93,61,.35); transform: translateX(2px); }
.stop-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: #8a8f89; font-size: 9px; }
.stop-meta span:first-child { color: #98744d; font-weight: 800; letter-spacing: 0; }
.stop-card h2 { margin: 0; font-family: var(--serif); font-size: 18px; }
.stop-card > p { margin: 7px 0 11px; color: #6f766f; font-size: 10px; line-height: 1.65; }
.stop-highlights { display: flex; flex-wrap: wrap; gap: 5px; }
.stop-highlights span { padding: 5px 8px; border-radius: 20px; background: #e9e5da; color: #686e68; font-size: 9px; }
.stop-guide { margin-top: 12px; border-top: 1px solid var(--line); }
.stop-guide summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; gap: 8px; align-items: center; min-height: 56px; cursor: pointer; list-style: none; }
.stop-guide summary::-webkit-details-marker { display: none; }
.stop-guide summary::after { content: "+"; color: var(--rust); font-family: var(--serif); font-size: 18px; line-height: 1; text-align: right; }
.stop-guide[open] summary::after { content: "−"; }
.stop-guide-label { min-width: 0; }
.stop-guide-label small, .stop-guide-label strong { display: block; }
.stop-guide-label small { margin-bottom: 3px; color: #a2784d; font-size: 7px; font-weight: 800; letter-spacing: 0; }
.stop-guide-label strong { overflow: hidden; font-family: var(--serif); font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.stop-guide-count { color: #8a8f89; font-size: 8px; white-space: nowrap; }
.stop-guide-content { padding: 4px 0 2px; }
.stop-guide-intro { margin: 0 0 10px; color: #5e6963; font-size: 10px; line-height: 1.8; }
.stop-guide-points { border-top: 1px solid var(--line); }
.stop-guide-points > div { display: grid; grid-template-columns: 38px 1fr; gap: 5px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stop-guide-points strong { color: #986744; font-size: 9px; }
.stop-guide-points p { margin: 0; color: #747c76; font-size: 9px; line-height: 1.7; }
.route-related-head { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-bottom: 7px; }
.route-related-head strong { font-family: var(--serif); font-size: 12px; }
.route-related-head span { color: #91958f; font-size: 8px; }
.route-artifact-list { border-top: 1px solid var(--line); }
.route-artifact-link { display: grid; grid-template-columns: 54px minmax(0, 1fr) 22px; gap: 10px; align-items: center; width: 100%; min-height: 72px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.route-artifact-link .artifact-art { width: 54px; height: 54px; overflow: hidden; border-radius: 3px; background: #dfe2db; }
.route-artifact-link .artifact-art svg { width: 82%; height: 82%; }
.route-artifact-copy { min-width: 0; }
.route-artifact-copy > small, .route-artifact-copy > strong, .route-artifact-copy > span { display: block; }
.route-artifact-copy > small { color: #9a744d; font-size: 7px; }
.route-artifact-copy > strong { overflow: hidden; margin-top: 3px; font-family: var(--serif); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.route-artifact-copy > span { overflow: hidden; margin-top: 3px; color: #858b85; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.route-artifact-arrow { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(25,57,51,.18); border-radius: 50%; color: var(--bronze); font-size: 9px; }
.stop-guide-question { margin: 14px 0 3px; padding-left: 11px; border-left: 2px solid var(--rust); }
.stop-guide-question small { color: #a06f4d; font-size: 7px; font-weight: 800; }
.stop-guide-question p { margin: 5px 0 0; color: #46544e; font-family: var(--serif); font-size: 11px; line-height: 1.65; }
.stop-action { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.stop-action small { color: #9a9d98; font-size: 8px; }
.stop-action button { min-width: 72px; height: 31px; border: 1px solid rgba(20,59,52,.25); border-radius: 3px 3px 10px 3px; background: transparent; color: var(--bronze); font-size: 9px; font-weight: 800; cursor: pointer; }
.route-stop.completed .stop-action button { border-color: transparent; background: #dce4df; }
.route-complete { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 5px 5px 22px 5px; background: var(--bronze); color: #f3eadb; }
.complete-seal { display: grid; flex: 0 0 auto; place-items: center; width: 50px; height: 50px; border: 1px solid #d7ae6f; border-radius: 50%; color: #dfbd82; font-family: var(--serif); font-size: 22px; }
.route-complete p, .route-complete h2 { margin: 0; }
.route-complete p { color: rgba(243,234,219,.55); font-size: 8px; letter-spacing: 0; }
.route-complete h2 { margin-top: 4px; font-family: var(--serif); font-size: 15px; }
.route-complete button { margin-left: auto; padding: 7px 0; border: 0; background: transparent; color: #d7ae6f; font-size: 9px; cursor: pointer; }

.collection-heading { align-items: flex-end; }
.saved-counter { margin-bottom: 6px; padding: 7px 10px; border-radius: 30px; background: #e7e1d4; }
.saved-counter b { color: var(--rust); }
.artifact-search-wrap { position: relative; margin: 5px 0 12px; }
.artifact-search-wrap svg { position: absolute; top: 50%; left: 14px; width: 18px; transform: translateY(-50%); fill: none; stroke: #7b817b; stroke-width: 1.5; }
.artifact-search-wrap input { width: 100%; height: 46px; padding: 0 15px 0 42px; border: 1px solid var(--line); border-radius: 4px 4px 15px 4px; outline: 0; color: var(--ink); background: rgba(255,253,248,.7); font-size: 12px; }
.artifact-search-wrap input::placeholder { color: #9a9d98; }
.filter-row { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 17px; scrollbar-width: none; }
.filter-row button { flex: 0 0 auto; min-width: 58px; height: 31px; padding: 0 13px; border: 1px solid var(--line); border-radius: 20px; background: transparent; color: #777d77; font-size: 10px; cursor: pointer; }
.filter-row button.active { border-color: var(--bronze); background: var(--bronze); color: #f3e8d4; }
.artifact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.artifact-card { position: relative; min-width: 0; overflow: hidden; padding: 0 0 13px; border: 1px solid rgba(26,60,53,.1); border-radius: 4px 4px 20px 4px; background: rgba(255,253,248,.68); text-align: left; cursor: pointer; }
.artifact-card:nth-child(3n+2) { background: #e5e9e3; }
.artifact-card:nth-child(3n) { background: #e9dfcf; }
.artifact-card .artifact-art { height: 165px; padding: 7px; }
.artifact-info { padding: 0 12px; }
.artifact-info small { color: #987852; font-size: 8px; font-weight: 750; letter-spacing: 0; }
.artifact-info strong { display: block; overflow: hidden; margin-top: 5px; font-family: var(--serif); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.artifact-info p { display: -webkit-box; overflow: hidden; margin: 7px 0 0; color: #818681; font-size: 9px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.save-btn { position: absolute; z-index: 3; top: 9px; right: 9px; display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 50%; background: rgba(250,248,241,.7); color: #5f6d68; backdrop-filter: blur(8px); cursor: pointer; }
.save-btn svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.save-btn.saved { color: var(--rust); }
.save-btn.saved svg { fill: currentColor; }
.artifact-art { display: grid; place-items: center; }
.artifact-art svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 12px 10px rgba(27,53,47,.16)); }
.artifact-art.has-photo { overflow: hidden; background: #c7cec7; }
.artifact-art.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.artifact-art.has-photo.photo-figure img, .artifact-art.has-photo.photo-tree img { object-fit: contain; }
.artifact-art .base { fill: #285b51; stroke: #b58a51; stroke-width: 2.2; stroke-linejoin: round; }
.artifact-art .detail { fill: none; stroke: #c69c61; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.artifact-art .dark { fill: #153f38; stroke: #ba9159; stroke-width: 2; }
.artifact-art.gold .base { fill: #d5a950; stroke: #a97528; }
.artifact-art.gold .detail { stroke: #8c6226; }
.artifact-art.jade .base { fill: #9da99a; stroke: #5f746c; }
.artifact-art.jade .detail { stroke: #526962; }
.empty-state { padding: 60px 20px; color: #8b8f89; text-align: center; }
.empty-state span, .empty-state strong, .empty-state p { display: block; }
.empty-state span { font-size: 35px; }
.empty-state strong { margin-top: 12px; color: #59635e; font-family: var(--serif); }
.empty-state p { font-size: 10px; }

.toolkit-heading { align-items: center; }
.toolkit-mark { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #b68a54; border-radius: 50%; color: #8c6740; font-family: var(--serif); font-size: 10px; line-height: 1.35; text-align: center; transform: rotate(6deg); }
.now-card { position: relative; min-height: 310px; overflow: hidden; padding: 25px 23px; border-radius: 5px 5px 28px 5px; background: linear-gradient(145deg, #174a41, #0d332d); color: #f3ecdf; }
.now-card > * { position: relative; z-index: 2; }
.now-card > p { margin: 0 0 42px; color: #d9b878; font-size: 8px; font-weight: 800; letter-spacing: 0; }
.now-card h2 { margin: 0; font-family: var(--serif); font-size: 25px; line-height: 1.5; }
.now-card > span { display: block; width: 75%; margin-top: 12px; color: rgba(243,236,223,.62); font-size: 11px; line-height: 1.75; }
.now-card button { margin-top: 25px; padding: 0; border: 0; background: transparent; color: #dfbd7f; font-size: 10px; font-weight: 750; cursor: pointer; }
.now-orbit { position: absolute; z-index: 1; width: 230px; height: 230px; right: -80px; top: -45px; border: 1px solid rgba(221,186,121,.22); border-radius: 50%; }
.now-orbit::before, .now-orbit::after { content: ""; position: absolute; border: 1px solid rgba(221,186,121,.12); border-radius: 50%; }
.now-orbit::before { inset: 30px; }
.now-orbit::after { inset: 64px; }
.now-orbit i, .now-orbit b { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #d7ad6b; box-shadow: 0 0 0 7px rgba(215,173,107,.08); }
.now-orbit i { top: 30px; left: 33px; }
.now-orbit b { right: 20px; bottom: 78px; width: 5px; height: 5px; }
.section-heading.compact { margin-bottom: 12px; }
.save-state { color: #8b918c; font-size: 9px; }
.note-card { overflow: hidden; border: 1px solid var(--line); border-radius: 4px 4px 18px 4px; background: rgba(255,253,248,.72); }
.note-card textarea { display: block; width: 100%; min-height: 128px; resize: vertical; padding: 15px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; line-height: 1.7; }
.note-card textarea::placeholder { color: #a2a49f; }
.note-footer { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); color: #999c97; font-size: 9px; }
.note-footer button { padding: 0; border: 0; background: transparent; color: #93694c; font-size: 9px; cursor: pointer; }
.observe-list { border-top: 1px solid var(--line); }
.observe-list article { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.observe-list article > span { color: #b07d4d; font-family: var(--serif); font-size: 15px; }
.observe-list strong { font-family: var(--serif); font-size: 14px; }
.observe-list p { margin: 5px 0 0; color: #7f857f; font-size: 10px; line-height: 1.65; }
.practical-card { margin-top: 32px; padding: 19px; border-radius: 5px 5px 23px 5px; background: #e3dac8; }
.visitor-photo { position: relative; height: 170px; margin: -19px -19px 18px; overflow: hidden; border-radius: 5px 5px 0 0; }
.visitor-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,47,42,.58)); }
.visitor-photo img { width: 100%; height: 100%; object-fit: cover; }
.visitor-photo figcaption { position: absolute; z-index: 1; right: 13px; bottom: 11px; color: #fff8eb; font-size: 8px; }
.practical-head { display: flex; align-items: center; gap: 11px; }
.practical-head > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #98724d; border-radius: 50%; color: #98724d; font-family: var(--serif); }
.practical-head p, .practical-head h2 { margin: 0; }
.practical-head p { color: #9b774f; font-size: 8px; letter-spacing: 0; }
.practical-head h2 { margin-top: 3px; font-family: var(--serif); font-size: 18px; }
.practical-card ul { margin: 17px 0 15px; padding: 0; list-style: none; }
.practical-card li { display: grid; grid-template-columns: 45px 1fr; padding: 10px 0; border-top: 1px solid rgba(50,66,60,.12); font-size: 10px; }
.practical-card li span { color: #9a7048; font-weight: 800; }
.practical-card li p { margin: 0; color: #68716b; line-height: 1.5; }
.pwa-install { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 43px; margin: 0 0 8px; border: 1px solid rgba(16,60,53,.24); border-radius: 4px 4px 13px 4px; background: transparent; color: var(--bronze); font-size: 10px; font-weight: 800; cursor: pointer; }
.pwa-install[hidden] { display: none; }
.pwa-install svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.practical-card > a { display: flex; align-items: center; justify-content: space-between; padding: 13px; border-radius: 4px 4px 13px 4px; background: var(--bronze); color: #f1e4cf; font-size: 10px; text-decoration: none; }
.disclaimer { margin: 10px 2px 0; color: #8c8a81; font-size: 8px; line-height: 1.55; }
.photo-credits { margin-top: 11px; color: #85857e; font-size: 8px; line-height: 1.55; }
.photo-credits summary { width: max-content; cursor: pointer; }
.photo-credits p { margin: 6px 0 0; }

.bottom-nav {
  position: fixed;
  z-index: 40;
  right: max(0px, calc((100vw - 520px) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - 520px) / 2));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 70px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(22,58,51,.1);
  background: rgba(248,246,239,.93);
  backdrop-filter: blur(20px);
}
.bottom-nav button { position: relative; display: grid; gap: 3px; place-items: center; padding: 4px; border: 0; background: transparent; color: #8a8e89; font-size: 9px; cursor: pointer; }
.bottom-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav button.active { color: var(--bronze); font-weight: 800; }
.bottom-nav button.active::before { content: ""; position: absolute; top: -8px; width: 22px; height: 2px; border-radius: 2px; background: var(--rust); }
.bottom-nav button.active svg { stroke-width: 2; }

.artifact-dialog { width: min(100%, 520px); max-height: 88vh; margin: auto auto 0; overflow-x: hidden; overflow-y: auto; padding: 11px 20px calc(25px + env(safe-area-inset-bottom)); border: 0; border-radius: 20px 20px 0 0; color: var(--ink); background: var(--paper); box-shadow: 0 -20px 50px rgba(0,0,0,.2); }
.artifact-dialog[open] { animation: dialog-up .28s ease both; }
.artifact-dialog::backdrop { background: rgba(7,31,27,.63); backdrop-filter: blur(4px); }
@keyframes dialog-up { from { transform: translateY(50%); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
.dialog-handle { width: 38px; height: 4px; margin: 0 auto 10px; border-radius: 10px; background: #cac7be; }
.dialog-close { position: absolute; z-index: 4; top: 17px; right: 17px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.62); font-size: 23px; font-weight: 200; cursor: pointer; }
.dialog-art { height: 240px; margin: 0 -20px 17px; background: #ded9ce; }
.dialog-art .artifact-art { height: 100%; }
.dialog-art .artifact-art svg { width: 75%; }
.dialog-tags { display: flex; gap: 6px; }
.dialog-tags span { padding: 5px 8px; border-radius: 20px; background: #e7dfd0; color: #876b48; font-size: 8px; }
.artifact-dialog h2 { margin: 10px 0 7px; font-family: var(--serif); font-size: 27px; }
.dialog-lede { margin: 0 0 18px; color: #727a74; font-size: 11px; line-height: 1.7; }
.look-card { margin: 14px 0; padding: 15px; border-left: 3px solid var(--rust); border-radius: 0 5px 15px 0; background: #e8e1d4; }
.look-card small { color: #a26e4c; font-size: 8px; font-weight: 800; letter-spacing: 0; }
.look-card p { margin: 7px 0 0; font-family: var(--serif); font-size: 14px; line-height: 1.7; }
.dialog-story { color: #5f6862; font-size: 11px; line-height: 1.85; }
.dialog-question { margin: 18px 0 0; padding: 15px; border-radius: 4px 4px 15px 4px; background: var(--bronze); color: #eaddc6; }
.dialog-question small { color: #d3ad6e; font-size: 8px; letter-spacing: 0; }
.dialog-question p { margin: 7px 0 0; font-family: var(--serif); font-size: 14px; line-height: 1.6; }
.dialog-save { width: 100%; height: 44px; margin-top: 14px; border: 0; border-radius: 4px 4px 14px 4px; background: #d4aa68; color: #173c35; font-size: 11px; font-weight: 800; cursor: pointer; }
.update-banner { position: fixed; z-index: 101; bottom: calc(84px + env(safe-area-inset-bottom)); left: 50%; display: flex; align-items: center; justify-content: space-between; width: min(calc(100% - 28px), 492px); min-height: 48px; padding: 8px 8px 8px 14px; border: 1px solid rgba(231,201,145,.28); border-radius: 4px 4px 15px 4px; background: #103c35; color: #f2e8d7; font-size: 10px; box-shadow: 0 10px 30px rgba(10,39,34,.28); transform: translateX(-50%); }
.update-banner[hidden] { display: none; }
.update-banner button { height: 32px; padding: 0 12px; border: 0; border-radius: 3px 3px 9px 3px; background: #e9c686; color: #173c35; font-size: 9px; font-weight: 800; cursor: pointer; }
.toast { position: fixed; z-index: 100; bottom: calc(84px + env(safe-area-inset-bottom)); left: 50%; padding: 10px 15px; border-radius: 50px; background: rgba(19,53,47,.94); color: #f1e6d4; font-size: 10px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .25s; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 521px) {
  body { padding: 24px 0; }
  .app-shell { min-height: calc(100vh - 48px); border-radius: 26px; }
  .topbar { top: 24px; border-radius: 26px 26px 0 0; }
  .bottom-nav { right: calc((100vw - 520px) / 2); bottom: 24px; left: calc((100vw - 520px) / 2); border-radius: 0 0 26px 26px; }
  .update-banner, .toast { bottom: 108px; }
  .artifact-dialog { margin-bottom: 24px; border-radius: 20px; }
}
@media (max-width: 360px) {
  .page { padding-right: 13px; padding-left: 13px; }
  .hero-card { min-height: 540px; padding-right: 20px; padding-left: 20px; }
  .hero-card h1 { font-size: 32px; }
  .hero-art { right: 0; width: 100%; height: 270px; }
  .trip-chip { padding-right: 8px; padding-left: 8px; font-size: 9px; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
