:root {
  color-scheme: dark;
  --paper: #172720;
  --ink: #e0dfcb;
  --muted: #a9b1a0;
  --rule: #48594c;
  --accent: #d9a17a;
  --highlight: #21372c;
  --body-font: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif;
  --editorial-font: 'Iowan Old Style', 'Baskerville', 'Palatino Linotype', Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 13px/1.7 var(--body-font); }
a { color: inherit; text-decoration: none; }
button, input, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button, a, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible, canvas:focus-visible, input:focus-visible { outline: 2px dotted var(--accent); outline-offset: 5px; }
button:hover, a:hover { color: var(--accent); }
button:disabled { cursor: wait; opacity: .55; }
canvas { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.masthead { max-width: 1700px; margin: auto; min-height: 100px; padding: 24px 4%; display: flex; align-items: center; gap: 40px; border-bottom: 1px dotted var(--rule); }
.wordmark { display: flex; align-items: center; gap: 9px; font: 23px/1 var(--editorial-font); letter-spacing: .015em; }
.wordmark-slash { margin: 0 1px; opacity: .5; }
.dot-mark { display: inline-block; width: 30px; height: 30px; margin-right: 8px; background: radial-gradient(circle, var(--ink) 1.4px, transparent 1.8px) 0 0 / 7px 7px; clip-path: polygon(35% 0, 65% 0, 100% 35%, 100% 65%, 65% 100%, 35% 100%, 0 65%, 0 35%); }
.edition { font-size: 9px; letter-spacing: .18em; line-height: 1.9; color: var(--muted); }
.edition span { display: block; font-size: 10px; letter-spacing: .1em; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.language-switch { display: flex; flex: none; border: 1px dotted var(--rule); }
.language-switch button { padding: 8px 10px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.language-switch button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.language-switch button:focus-visible { outline: 2px dotted var(--accent); outline-offset: 3px; }
.library-link { display: flex; align-items: center; gap: 13px; min-height: 44px; font-size: 11px; }
.guide { position: relative; z-index: 5; }
.guide summary { min-height: 44px; display: flex; align-items: center; gap: 18px; cursor: pointer; list-style: none; font-size: 11px; }
.guide summary::-webkit-details-marker { display: none; }
.guide[open] summary { color: var(--accent); }
.guide-content { position: absolute; top: 55px; right: 0; width: 295px; padding: 25px; background: var(--paper); border: 1px dotted var(--ink); }
.guide h2 { font: 17px/1.7 var(--editorial-font); margin: 0 0 18px; }
.guide p { color: var(--muted); font-size: 12px; margin: 14px 0 0; }
main { max-width: 1700px; margin: auto; }
.observatory { position: relative; display: grid; grid-template-columns: minmax(280px, 30%) 1fr; min-height: 610px; height: min(73vh, 790px); padding-left: 4%; }
.intro { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: clamp(42px, 6vh, 72px); padding: 42px 26px 46px 0; min-width: 0; pointer-events: none; }
.intro-manifesto, .scene-story { width: min(100%, 336px); }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 9px; line-height: 1.5; letter-spacing: .13em; color: var(--accent); }
.eyebrow-index { margin-left: auto; font-size: 8px; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.signal-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.dot-heading { display: grid; gap: 12px; width: 100%; margin: 28px 0 0; }
.dot-heading canvas { width: 100%; height: auto; aspect-ratio: 4.2; }
.intro-english { margin: 22px 0 0; font: 21px/1.4 var(--editorial-font); letter-spacing: -.02em; color: #c8cab5; }
.intro-english i { font-weight: 400; }
.intro-note { margin: 18px 0 0; font-size: 12px; line-height: 1.95; color: var(--muted); letter-spacing: .025em; }
.scene-story { border-top: 1px dotted var(--rule); padding-top: 16px; }
.scene-caption { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.scene-caption-label { font-size: 9px; letter-spacing: .12em; color: var(--accent); }
.scene-caption-index { font-size: 7px; letter-spacing: .18em; color: var(--muted); }
.scene-code, .micro-label { font-size: 8px; letter-spacing: .17em; color: var(--muted); }
.scene-story h2 { margin: 16px 0 3px; font: 400 24px/1.4 var(--body-font); letter-spacing: .1em; }
.scene-story .scene-code { margin: 0 0 17px; font-size: 8px; letter-spacing: .1em; overflow-wrap: anywhere; }
.scene-story > p:not(.scene-code) { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.95; }
.scene-tag { display: block; margin-top: 15px; font-size: 9px; color: var(--accent); letter-spacing: .1em; }
.viewport { position: relative; min-width: 0; min-height: 0; }
#worldCanvas { width: 100%; height: 100%; cursor: grab; touch-action: none; }
#worldCanvas:active { cursor: grabbing; }
.canvas-fallback { position: absolute; top: 40%; left: 15%; color: var(--muted); }
.field-index { position: absolute; top: 33px; right: 6%; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.field-index span { font-size: 7px; letter-spacing: .2em; color: var(--muted); }
.field-index b { font: 56px/1.3 var(--editorial-font); letter-spacing: -.07em; font-weight: 400; }
.annotation { position: absolute; display: flex; align-items: center; gap: 8px; pointer-events: none; font-size: 9px; letter-spacing: .04em; color: var(--muted); }
.annotation-north { top: 11%; left: 8%; }
.annotation-south { bottom: 12%; right: 8%; }
.annotation-dot { width: 6px; height: 6px; border: 1px dotted var(--muted); border-radius: 50%; }
.annotation::before { content: ''; width: 48px; height: 1px; background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 5px); }
.viewport-bottom { position: absolute; left: 8%; right: 6%; bottom: 25px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gesture-hint { font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.view-actions { display: flex; align-items: center; gap: 5px; }
.view-actions button { min-width: 44px; height: 44px; border: 1px dotted var(--rule); font-size: 11px; }
.view-actions button:hover { border-color: var(--accent); }
.world-navigation { margin: 0 4%; padding: 22px 0 21px; display: grid; grid-template-columns: 19% 1fr; border-top: 1px dotted var(--rule); border-bottom: 1px dotted var(--rule); }
.navigation-note { padding: 5px 0; }
.navigation-note p { font: 15px/1.65 var(--editorial-font); margin: 9px 0 0; letter-spacing: .05em; }
.world-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.world-tab { position: relative; padding: 4px 8px 4px 0; display: flex; text-align: left; align-items: center; gap: 15px; transition: color .2s; min-height: 95px; }
.world-tab::after { position: absolute; bottom: -22px; left: 0; right: 0; content: ''; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 6px); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.world-tab.active::after { transform: scaleX(1); }
.world-tab.active .tab-title { color: var(--accent); }
.world-thumb { width: 70px; height: 70px; flex-shrink: 0; }
.tab-copy { display: flex; flex-direction: column; }
.tab-code { font-size: 8px; letter-spacing: .13em; color: var(--muted); }
.tab-title { font-size: 16px; letter-spacing: .09em; line-height: 2; }
.tab-subtitle { font: italic 12px/1.4 var(--editorial-font); color: var(--muted); }
.tab-indicator { margin-left: auto; opacity: 0; font-size: 15px; }
.active .tab-indicator, .world-tab:hover .tab-indicator { opacity: 1; }
.control-strip { display: flex; align-items: center; gap: 24px; margin: 0 4%; padding: 20px 0; }
.control-strip button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 7px; font-size: 11px; letter-spacing: .025em; white-space: nowrap; }
.control-strip button > span:not(#playLabel) { font-size: 19px; }
.time-control { display: flex; align-items: center; gap: 15px; margin-right: 20px; font-size: 11px; }
.time-control input { appearance: none; width: 120px; height: 44px; background: transparent; cursor: pointer; }
.time-control input::-webkit-slider-runnable-track { height: 1px; background: repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 4px); }
.time-control input::-webkit-slider-thumb { appearance: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: -3.5px; }
.time-control input::-moz-range-track { height: 1px; background: var(--muted); }
.time-control input::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--accent); }
.time-control output { font-size: 10px; width: 30px; font-variant-numeric: tabular-nums; color: var(--accent); }
.control-strip .save-button { margin-left: auto; border-bottom: 1px dotted var(--ink); padding: 0; gap: 28px; }
.colophon { max-width: 1700px; margin: auto; padding: 20px 4% 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 28px; border-top: 1px dotted var(--rule); }
.footer-thought { font: italic 12px/1.5 var(--editorial-font); color: var(--muted); }
.field-data { display: flex; gap: 22px; margin-left: auto; color: var(--muted); font-size: 7px; letter-spacing: .12em; }
.field-data b { font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.live-status { display: flex; align-items: center; gap: 7px; font-size: 9px; color: var(--muted); }
.live-status i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.toast { position: fixed; z-index: 10; bottom: 25px; left: 50%; transform: translateX(-50%); margin: 0; padding: 12px 24px; border: 1px dotted var(--ink); background: var(--paper); color: var(--ink); max-width: 90vw; font-size: 12px; text-align: center; }
@media (min-width: 1700px) { .observatory { height: 790px; } }
@media (max-width: 1100px) {
  .masthead { gap: 22px; }
  .observatory { grid-template-columns: 31% 1fr; min-height: 600px; }
  .intro-english { font-size: 18px; }
  .world-tabs { gap: 12px; }
  .world-thumb { width: 52px; height: 60px; }
  .world-tab { gap: 8px; }
  .tab-subtitle { font-size: 10px; }
  .control-strip { gap: 12px; }
  .time-control { margin-right: 0; gap: 8px; }
  .field-data span:last-child { display: none; }
}
@media (max-width: 760px) {
  .masthead { min-height: 78px; padding: 15px 6%; gap: 12px; }
  .wordmark { font-size: 19px; gap: 5px; }
  .dot-mark { width: 23px; height: 23px; margin-right: 5px; background-size: 6px 6px; }
  .edition { display: none; }
  .header-actions { gap: 10px; }
  .language-switch button { padding: 6px; font-size: 9px; }
  .library-link { font-size: 10px; gap: 5px; }
  .guide summary { font-size: 10px; gap: 5px; }
  .guide-content { width: min(295px, 88vw); }
  .observatory { display: flex; flex-direction: column; height: auto; min-height: 0; padding: 0; }
  .intro { padding: 30px 6% 18px; gap: 30px; }
  .intro-manifesto, .scene-story { width: 100%; }
  .eyebrow { font-size: 9px; }
  .dot-heading { width: min(100%, 310px); margin: 24px 0 0; gap: 10px; }
  .intro-english { margin-top: 18px; font-size: 20px; }
  .intro-note { margin-top: 14px; font-size: 11px; }
  .scene-story { padding-top: 14px; }
  .scene-story h2 { margin-top: 12px; font-size: 22px; }
  .scene-story .scene-code { margin-bottom: 12px; }
  .scene-story > p:not(.scene-code) { font-size: 11px; }
  .scene-tag { margin-top: 12px; font-size: 9px; }
  .viewport { height: clamp(370px, 85vw, 490px); margin-top: 3px; }
  .field-index { top: 5px; right: 6%; }
  .field-index b { font-size: 40px; }
  .field-index span { font-size: 6px; }
  .annotation-north { top: 7%; left: 6%; }
  .annotation-south { bottom: 16%; right: 6%; }
  .annotation { font-size: 8px; }
  .annotation::before { width: 20px; }
  .viewport-bottom { bottom: 13px; left: 6%; right: 6%; }
  .gesture-hint { font-size: 9px; }
  .world-navigation { display: block; margin: 0 6%; padding: 17px 0 20px; }
  .navigation-note { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .navigation-note p { margin: 0; font-size: 11px; }
  .navigation-note p br { display: none; }
  .world-tabs { gap: 9px; }
  .world-tab { flex-direction: column; align-items: flex-start; gap: 5px; padding: 0; min-width: 0; }
  .world-thumb { width: 58px; height: 58px; }
  .tab-copy { gap: 4px; }
  .tab-title { font-size: 13px; line-height: 1.5; }
  .tab-code { font-size: 6px; }
  .tab-subtitle { font-size: 9px; min-height: 24px; }
  .tab-indicator { position: absolute; top: 18px; right: 6px; }
  .world-tab::after { bottom: -20px; }
  .control-strip { margin: 0 6%; padding: 15px 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 15px; }
  .time-control { grid-column: 1 / -1; gap: 12px; padding-bottom: 6px; }
  .time-control input { flex: 1; min-width: 0; }
  .control-strip button { justify-content: flex-start; padding: 0; }
  .control-strip .save-button { margin: 0; gap: 15px; justify-content: space-between; }
  .colophon { padding: 18px 6% 23px; gap: 13px; }
  .field-data { order: 3; width: 100%; margin: 0; gap: 14px; font-size: 7px; }
  .live-status { margin-left: auto; font-size: 8px; }
}
@media (max-width: 520px) {
  .masthead { position: relative; flex-wrap: wrap; }
  .header-actions { width: 100%; justify-content: space-between; margin-left: 0; padding-right: 0; }
  .header-actions .language-switch { position: absolute; top: 15px; right: 6%; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 16px; }
  .header-actions { gap: 10px; }
  .intro-english { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
