:root { color-scheme: light; font-family: "KaiTi", "STKaiti", "SimSun", serif; background: #eae2cf; color: #384139; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { -webkit-user-select: none; user-select: none; }
#scene { position: relative; width: 100%; height: 100%; height: 100dvh; overflow: hidden; isolation: isolate; }
#world { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
#world.dragging { cursor: grabbing; }
#world:focus-visible { outline: 2px solid #f1e4a4; outline-offset: -3px; }
.scene-title { position: absolute; z-index: 1; top: max(22px, env(safe-area-inset-top)); left: max(20px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 10px; pointer-events: none; padding: 5px; text-shadow: 0 0 3px #eee6d5, 0 0 10px #eee6d5; }
.seal { font-family: "STKaiti", "KaiTi", serif; display: grid; place-items: center; width: 29px; height: 36px; border: 1px solid #a4513e; background: #ac5543; color: #eee2c8; font-size: 21px; box-shadow: inset 0 0 0 3px #ac5543, inset 0 0 0 4px #e5c9aa90; }
h1 { font: 500 27px/1.2 "STKaiti", "KaiTi", "Songti SC", serif; letter-spacing: .17em; margin: 0; }
.scene-title p { font-size: 10px; letter-spacing: .15em; margin: 6px 0 0; color: #747566; }
.compass { position: absolute; top: max(24px, env(safe-area-inset-top)); right: max(23px, env(safe-area-inset-right)); width: 32px; color: #556359; text-align: center; pointer-events: none; }
.compass span { font-size: 10px; font-family: serif; }
.compass svg { display: block; width: 32px; height: 38px; margin-top: 3px; }
.drag-hint { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); margin: 0; padding: 9px 18px; white-space: nowrap; background: #eee6d5ed; border: 1px solid #958a705c; color: #5c6356; font-size: 12px; letter-spacing: .15em; pointer-events: none; transition: opacity .65s; box-shadow: 0 3px 16px #574e3520; }
.drag-hint span { display: inline-block; margin-right: 10px; font-size: 18px; vertical-align: -1px; }
.drag-hint.dismissed { opacity: 0; }
.wayfinding { position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: max(17px, env(safe-area-inset-bottom)); width: min(256px, calc(100% - 130px)); padding: 7px 0 5px; pointer-events: none; color: #475047; font-size: 11px; line-height: 1.8; text-shadow: 0 0 3px #f2ead9, 0 0 7px #f2ead9; background: linear-gradient(90deg, #eee6d6d9, #eee6d6a0 75%, #eee6d600); }
.wayfinding p { margin: 0; white-space: nowrap; }
#origin-caption { color: #7c5c45; margin-bottom: 2px; }
.bearing-label { display: inline-block; margin-right: 8px; color: #777967; font-size: 10px; }
.world-atlas { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); margin: 0; width: 90px; padding: 4px; border: 1px solid #9b907469; background: #ede5d4e8; pointer-events: none; }
.world-atlas figcaption { font-size: 9px; line-height: 15px; letter-spacing: .2em; text-align: center; color: #727562; }
#atlas-map { display: block; width: 80px; height: 80px; }
.drag-hint { bottom: max(3px, env(safe-area-inset-bottom)); padding: 1px 7px; border: 0; box-shadow: none; background: #eee6d56b; font-size: 9px; }
.drag-hint span { font-size: 13px; margin-right: 6px; }
@media (max-height: 500px) { .wayfinding { bottom: 12px; font-size: 10px; line-height: 1.7; padding: 3px 0; } .world-atlas { width: 72px; right: 15px; bottom: 12px; } #atlas-map { width: 62px; height: 62px; } .world-atlas figcaption { line-height: 11px; font-size: 8px; } .drag-hint { bottom: 3px; } }
.loading { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #e7dfcc; z-index: 3; transition: opacity .35s; }
.loading.done { opacity: 0; pointer-events: none; }
.loading[hidden] { display: none; }
.loading-mark { font: 38px "KaiTi", serif; border: 1px solid #a05b47; padding: 15px; color: #a05b47; }
.loading p { font-size: 12px; letter-spacing: .2em; margin-top: 24px; }
.loading button { font: inherit; color: #5b6356; background: transparent; border: 1px solid #9d9175; padding: 8px 18px; cursor: pointer; }
@media (min-width: 768px) { .scene-title { top: 32px; left: 36px; } .compass { top: 32px; right: 36px; } }
@media (prefers-reduced-motion: reduce) { .drag-hint, .loading { transition: none; } }
