:root {
    color-scheme: dark;
    --cream: #f2eadb;
    --muted: #c9c5b9;
    --accent: #e5caa1;
    --edge: 4.5vw;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--cream);
    background: #20251e;
    -webkit-font-smoothing: antialiased;
}
@supports (width: clamp(24px, 4.5vw, 76px)) {
    :root { --edge: clamp(24px, 4.5vw, 76px); }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { border: 0; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus { outline: 2px solid var(--accent); outline-offset: 6px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: #6d7c68; color: #fff9ec; }
.shelter { position: relative; isolation: isolate; width: 100%; height: 100%; min-height: 340px; }
.scenery, .scene-image, .scene-shade, #weather { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
.scenery { z-index: -1; overflow: hidden; background: #20251e; }
.scene-image { opacity: 0; transition: opacity 1.8s ease; }
.scene-image picture, .scene-image img { display: block; width: 100%; height: 100%; }
.scene-image img { object-fit: cover; object-position: center; }
.scene-image.is-visible { opacity: 1; }
#weather { pointer-events: none; opacity: 1; transition: opacity .65s ease; }
.is-changing #weather { opacity: 0; }
.scene-shade { pointer-events: none; background: linear-gradient(180deg, #0c110d5c, transparent 24%, transparent 42%, #0a0e0b21 60%, #090d0ac4), linear-gradient(90deg, #0d120e26, transparent 65%); }
.topbar { position: absolute; top: 34px; top: max(34px, env(safe-area-inset-top)); left: var(--edge); right: var(--edge); display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: flex-start; gap: 12px; text-shadow: 0 2px 20px #13191280; }
.brand > svg { width: 21px; height: 26px; margin-top: 4px; fill: none; stroke: var(--cream); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.brand > span { font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1; letter-spacing: -.8px; }
.brand-note { display: block; margin-top: 12px; color: #e1ddcf; font: 10px/1.3 -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: 2.8px; }
.tools { display: flex; gap: 12px; align-items: center; margin-top: 1px; }
.sound-controls { display: flex; align-items: center; gap: 10px; }
.sound-button { display: flex; gap: 10px; align-items: center; height: 42px; padding: 0 17px; border: 1px solid #f2eadb40; border-radius: 24px; background: #17201955; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 12px; letter-spacing: 1.8px; transition: background .3s, border-color .3s; }
.sound-button:hover, .sound-button[aria-pressed="true"] { background: #e5caa11c; border-color: #e5caa18c; }
.sound-button svg, .icon-button svg, .home-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.sound-waves { display: none; }
[aria-pressed="true"] .sound-waves { display: block; }
[aria-pressed="true"] .sound-slash { display: none; }
.volume-control { display: flex; align-items: center; }
input[type="range"] { width: 66px; height: 24px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.tool-divider { height: 17px; width: 1px; margin: 0 1px; background: #f2eadb33; }
.icon-button { width: 40px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: transparent; color: #ede8dcc4; transition: background .3s; }
.icon-button:hover { color: var(--cream); background: #ffffff14; }
.icon-button svg { width: 20px; height: 20px; }
.play-icon, [aria-pressed="false"] .pause-icon { display: none; }
[aria-pressed="false"] .play-icon { display: block; }
.caption { position: absolute; left: var(--edge); right: var(--edge); bottom: 22vh; bottom: clamp(150px, 22vh, 230px); pointer-events: none; text-shadow: 0 2px 24px #10170f8c; }
.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 26px; font-size: 10px; font-weight: 400; line-height: 1.6; letter-spacing: 2.7px; color: #e2ddcde0; }
.weather-dot, .place-dot { flex: 0 0 auto; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #d3d8b4; }
.eyebrow-line { width: 25px; height: 1px; background: #e8e4d769; }
#scene-weather { font-size: 11px; letter-spacing: 2px; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 48px; font-size: clamp(34px, 3.65vw, 58px); font-weight: 400; line-height: 1.25; letter-spacing: -.6px; }
.scene-description { margin: 21px 0 0; color: #e2ddcbe8; font-size: 12px; font-weight: 300; line-height: 1.8; letter-spacing: .5px; }
.bottom-bar { position: absolute; bottom: 36px; bottom: max(36px, env(safe-area-inset-bottom)); left: var(--edge); right: var(--edge); display: grid; grid-template-columns: 1fr auto 1fr; grid-gap: 24px; gap: 24px; align-items: center; }
.scene-index { display: flex; align-items: center; gap: 12px; margin: 0; font-family: Georgia, serif; font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: 1px; color: #e6e0d69c; }
#scene-number { color: var(--cream); }
.index-line { width: 42px; height: 1px; background: #e6e0d64d; }
.scene-switcher { display: flex; align-items: center; gap: 10px; padding: 3px 13px; border: 1px solid #e6e0d62b; border-radius: 36px; background: #17201947; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.scene-switcher button { position: relative; display: flex; align-items: center; gap: 9px; min-height: 51px; padding: 0 17px; background: transparent; border-radius: 28px; font-size: 13px; letter-spacing: 2px; color: #e8e1d7a6; transition: color .4s, background .4s; white-space: nowrap; }
.scene-switcher button:hover { color: var(--cream); background: #e6e0d60c; }
.scene-switcher button[aria-pressed="true"] { color: var(--cream); }
.place-dot { width: 4px; height: 4px; opacity: 0; background: var(--accent); transition: opacity .4s; }
[aria-pressed="true"] > .place-dot { opacity: 1; }
.place-en { font-family: Georgia, serif; font-size: 11px; font-style: italic; letter-spacing: .4px; opacity: .65; }
.scene-divider { width: 1px; height: 13px; background: #e6e0d624; }
.quiet-note { justify-self: end; margin: 0; color: #e4dfd0ae; font-size: 10px; line-height: 1.8; letter-spacing: .8px; }
.interface { opacity: 1; transition: opacity 1.5s ease; }
.is-idle .interface { opacity: 0; pointer-events: none; }
.is-idle { cursor: none; }
.toast { position: absolute; left: 50%; top: 100px; transform: translateX(-50%); width: -moz-max-content; width: max-content; max-width: calc(100% - 48px); padding: 12px 18px; margin: 0; border: 1px solid #f2eadb30; border-radius: 24px; background: #172019e6; color: var(--cream); font-size: 12px; line-height: 1.8; letter-spacing: 1px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
[data-page="not-found"] .scene-shade { background: linear-gradient(180deg, #10170f55, #10170f77 40%, #10170fb8); }
.header-note { margin-top: 13px; font-size: 11px; letter-spacing: .7px; color: #e0dacbc4; }
.lost-tools { display: flex; align-items: flex-start; gap: 22px; }
.lost { position: absolute; top: 90px; right: 24px; bottom: 70px; left: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.error-code { margin: 0 0 18px; font: 400 128px/1 Georgia, serif; font: 400 clamp(90px, 11vw, 156px)/1 Georgia, serif; letter-spacing: 8px; color: #efe8d98c; }
.lost .eyebrow { margin-bottom: 20px; font-size: 9px; letter-spacing: 4px; color: #d8d4c3b8; }
.lost h1 { font-size: 32px; font-size: clamp(28px, 2.7vw, 38px); letter-spacing: -.3px; }
.lost-description { max-width: 420px; margin: 20px 0 30px; color: #e1dccdd9; font-size: 12px; line-height: 2.3; letter-spacing: .4px; }
.home-link { display: inline-flex; align-items: center; gap: 13px; padding: 15px 25px; border: 1px solid #ece4d169; border-radius: 28px; background: #e5caa112; font-size: 12px; letter-spacing: .6px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .3s; }
.home-link:hover { background: #e5caa12e; }
.lost-footer { position: absolute; bottom: 34px; bottom: max(34px, env(safe-area-inset-bottom)); left: 24px; right: 24px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 10px; letter-spacing: 3px; color: #e4dfd0b8; }
/* Margin spacing is enabled only when the browser fails the Flexbox gap layout test. */
.no-flex-gap .topbar > * + * { margin-left: 24px; }
.no-flex-gap .brand > span { margin-left: 12px; }
.no-flex-gap .tools > * + * { margin-left: 12px; }
.no-flex-gap .sound-controls > * + * { margin-left: 10px; }
.no-flex-gap .sound-button > span { margin-left: 10px; }
.no-flex-gap .eyebrow > * + * { margin-left: 13px; }
.no-flex-gap .scene-index > * + * { margin-left: 12px; }
.no-flex-gap .scene-switcher > * + * { margin-left: 10px; }
.no-flex-gap .scene-switcher .place-dot { margin-right: 9px; }
.no-flex-gap .lost-tools > * + * { margin-left: 22px; }
.no-flex-gap .home-link > svg { margin-right: 13px; }
.no-flex-gap .lost-footer > .weather-dot { margin-right: 12px; }
@media (max-width: 900px) {
    .bottom-bar { grid-template-columns: 1fr auto; }
    .quiet-note { display: none; }
    .scene-switcher { justify-self: end; }
    .place-en { display: none; }
    .scene-switcher button { padding: 0 16px; }
    .caption { bottom: 160px; }
}
@media (max-width: 600px) {
    :root { --edge: 25px; }
    .topbar { top: 28px; top: max(28px, env(safe-area-inset-top)); gap: 16px; }
    .brand { gap: 9px; }
    .brand > span { font-size: 26px; }
    .brand > svg { width: 17px; height: 23px; margin-top: 2px; }
    .brand-note { margin-top: 10px; font-size: 8px; letter-spacing: 2.5px; }
    .tools { gap: 3px; }
    .sound-button { height: 40px; padding: 0 12px; gap: 7px; font-size: 11px; }
    .sound-button svg { width: 15px; height: 15px; }
    .tool-divider { margin: 0 4px; }
    .icon-button { width: 34px; height: 40px; }
    .icon-button svg { width: 18px; height: 18px; }
    .volume-control { position: absolute; top: 51px; right: 0; padding: 7px 14px; border-radius: 20px; background: #172019b3; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
    input[type="range"] { width: 110px; }
    .caption { bottom: 178px; }
    .eyebrow { flex-wrap: wrap; gap: 10px; margin-bottom: 20px; font-size: 8px; letter-spacing: 2px; }
    .eyebrow-line { width: 18px; }
    #scene-weather { font-size: 10px; letter-spacing: 1.3px; }
    h1 { font-size: 34px; letter-spacing: -.5px; }
    .scene-description { margin-top: 17px; font-size: 11px; letter-spacing: .3px; }
    .bottom-bar { display: flex; justify-content: center; bottom: 34px; bottom: max(34px, calc(env(safe-area-inset-bottom) + 20px)); }
    .scene-index { display: none; }
    .scene-switcher { gap: 5px; padding: 3px 9px; }
    .scene-switcher button { min-height: 49px; padding: 0 16px; font-size: 12px; letter-spacing: .6px; }
    .header-note { display: none; }
    .error-code { margin-bottom: 21px; }
    .lost h1 { font-size: 30px; letter-spacing: -.3px; }
    .lost-description { font-size: 11px; letter-spacing: .3px; }
    .no-flex-gap .topbar > * + * { margin-left: 16px; }
    .no-flex-gap .brand > span { margin-left: 9px; }
    .no-flex-gap .tools > * + * { margin-left: 3px; }
    .no-flex-gap .sound-controls > * + * { margin-left: 0; }
    .no-flex-gap .sound-button > span { margin-left: 7px; }
    .no-flex-gap .eyebrow > * + * { margin-left: 10px; }
    .no-flex-gap .scene-switcher > * + * { margin-left: 5px; }
}
@media (max-width: 380px) {
    .sound-button { width: 40px; padding: 0; justify-content: center; }
    .sound-button > span { display: none; }
    h1 { font-size: 31px; }
    .scene-switcher { gap: 2px; }
    .scene-switcher button { padding: 0 12px; }
    .no-flex-gap .scene-switcher > * + * { margin-left: 2px; }
}
@media (max-height: 650px) and (max-width: 600px) {
    .lost { top: 82px; bottom: 50px; }
    .error-code { font-size: 72px; margin-bottom: 14px; }
    .lost .eyebrow { margin-bottom: 14px; }
    .lost-description { margin: 14px 0 22px; }
}
@media (max-height: 520px) and (min-width: 601px) {
    .topbar { top: 20px; }
    .brand-note { display: none; }
    .caption { bottom: 105px; }
    .eyebrow { margin-bottom: 12px; }
    h1 { font-size: 30px; }
    .scene-description { margin-top: 9px; }
    .bottom-bar { bottom: 17px; }
    .scene-switcher button { min-height: 42px; }
    .lost { top: 55px; bottom: 35px; }
    .error-code { font-size: 66px; margin-bottom: 10px; }
    .lost .eyebrow { margin-bottom: 8px; }
    .lost h1 { font-size: 25px; }
    .lost-description { margin: 9px 0 15px; line-height: 1.8; }
    .home-link { padding: 10px 23px; }
    .lost-footer { bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
