* { box-sizing: border-box; }
:root { font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #283c37; background: #e8e1d4; font-synthesis: none; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; min-height: 100dvh; margin: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 45% 15%, #f6f1e8 0, #e7e1d4 72%); }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, summary { touch-action: manipulation; }
button:focus-visible, summary:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid #2f6b5b; outline-offset: 4px; }
button:disabled { opacity: .5; cursor: wait; }
button svg, summary svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
#artwork { --ink: #293e38; --muted: #5c6d63; --jade: #315d50; --paper: #fff9ed; --line: #536d5530; position: relative; width: min(1080px, calc(100vw - 40px), calc(100dvh - 40px)); aspect-ratio: 1; overflow: hidden; container-type: inline-size; background: #d6bf9c; color: var(--ink); border-radius: 3px; box-shadow: 0 22px 80px #44433a1f, 0 1px 0 #fff9; isolation: isolate; }
#scene { position: absolute; inset: 0; }
#scene canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
#scene canvas:active { cursor: grabbing; }
#scene canvas[data-hover="water"] { cursor: crosshair; }
#scene canvas[data-hover="boat"], #scene canvas[data-hover="landmark"] { cursor: pointer; }
#scene canvas:focus-visible { outline: 2px solid #ebd7ab; outline-offset: -5px; }
.overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, #fff5df23, transparent 23%, transparent 78%, #eae1ce16); }
.scene-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.title-block { position: relative; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 10px; font-weight: 650; letter-spacing: 3.6px; line-height: 1.2; }
.city-mark { display: inline-block; width: 13px; height: 13px; border: 1px solid #40574c; border-radius: 50%; position: relative; }
.city-mark::after { content: ""; width: 1px; height: 17px; background: #40574c; position: absolute; left: 5px; top: -3px; transform: rotate(32deg); }
.edition { margin-left: 6px; font-size: 8px; font-weight: 400; letter-spacing: 1.1px; color: var(--muted); }
h1 { margin: 11px 0 7px; font-size: 31px; font-weight: 450; line-height: 1.4; letter-spacing: 5px; }
.subtitle { color: var(--muted); font-size: 11px; letter-spacing: 1.6px; margin: 0; }
.subtitle > span { margin: 0 3px; }
.time-modes { display: inline-flex; align-items: center; padding: 3px; gap: 2px; margin-top: 18px; background: #fff9eea8; border: 1px solid #fffdf08c; border-radius: 30px; backdrop-filter: blur(16px); pointer-events: auto; box-shadow: 0 2px 8px #48543b05; }
.time-modes button { min-height: 34px; border: 0; border-radius: 25px; background: transparent; color: var(--ink); padding: 7px 11px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; letter-spacing: .4px; }
.time-modes button:hover { background: #b3c0a529; }
.time-modes button[aria-pressed="true"] { background: var(--jade); color: #fff9e9; box-shadow: 0 2px 5px #1d483123; }
.mode-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .75; }
.mode-dot.day { background: #a48e4a; }
.mode-dot.sunset { background: #e7aa68; }
.mode-dot.night { background: #738b9b; }
.view-tools { pointer-events: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
#view-label { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; background: #fff9ee82; border: 1px solid #fffcef80; backdrop-filter: blur(14px); border-radius: 30px; padding: 7px 12px; color: #516454; font-size: 10px; letter-spacing: .8px; }
.view-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.scene-settings { position: relative; font-size: 11px; }
.scene-settings > summary { min-height: 39px; display: flex; align-items: center; gap: 7px; list-style: none; cursor: pointer; border: 1px solid #fffaf3b3; border-radius: 25px; background: #fff9ede6; padding: 8px 12px; box-shadow: 0 2px 10px #42573b05; }
.scene-settings > summary::-webkit-details-marker { display: none; }
.scene-settings > summary > svg { width: 14px; height: 14px; }
.settings-chevron { font-size: 17px; line-height: 12px; margin-left: 2px; transform: translateY(-2px); }
.scene-settings[open] .settings-chevron { transform: rotate(180deg) translateY(-1px); }
.settings-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 8; width: 255px; max-width: calc(100cqw - 36px); max-height: max(160px, calc(100cqw - 240px)); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; background: #fffbf2f2; border: 1px solid #ffffffe0; backdrop-filter: blur(24px); box-shadow: 0 10px 40px #33452d20; border-radius: 13px; padding: 19px; color: #30483d; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }
.panel-heading h2 { margin: 0; font-weight: 550; font-size: 13px; letter-spacing: 1px; }
.panel-heading > span { color: #718071; font-size: 9px; }
.control-row + .control-row { margin-top: 23px; }
.slider-label { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.slider-label output { color: #617d6e; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; height: 22px; margin: 7px 0 0; accent-color: #3c6b59; cursor: pointer; }
.control-note, .settings-help { margin: 4px 0 0; font-size: 10px; color: #6b7a6f; line-height: 1.8; }
.check-label { margin-top: 19px; padding: 17px 0; display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; font-size: 11px; }
.check-label > span:first-child { flex: 1; }
.check-label input { position: absolute; opacity: 0; width: 30px; height: 23px; right: 20px; cursor: pointer; }
.switch { width: 30px; height: 18px; border-radius: 12px; background: #b7c1b2; position: relative; transition: background .2s; pointer-events: none; }
.switch::after { content: ""; position: absolute; width: 12px; height: 12px; left: 3px; top: 3px; background: #fffdf5; border-radius: 50%; box-shadow: 0 1px 3px #31493630; transition: transform .2s; }
.check-label input:checked + .switch { background: #3c6b59; }
.check-label input:checked + .switch::after { transform: translateX(12px); }
.check-label input:focus-visible + .switch { outline: 2px solid #2f6b5b; outline-offset: 3px; }
.settings-help { margin-top: 12px; }
.scene-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.scene-caption { display: flex; align-items: center; gap: 12px; color: #334e43; }
.caption-line { width: 24px; height: 1px; background: currentColor; opacity: .6; }
.scene-caption p { margin: 0; }
#interaction-status { display: block; font-size: 12px; font-weight: 550; line-height: 1.7; letter-spacing: 1px; }
.interaction-hint { display: block; font-size: 10px; margin-top: 2px; color: #566d5e; letter-spacing: .35px; }
.bottom-row { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 15px; }
.toolbar { display: inline-flex; align-items: center; gap: 3px; padding: 5px; background: #fffaf0e6; border: 1px solid #fffdf5b3; backdrop-filter: blur(18px); border-radius: 30px; box-shadow: 0 5px 18px #38553f13; pointer-events: auto; }
.toolbar button { display: flex; justify-content: center; align-items: center; gap: 7px; height: 38px; padding: 0 15px; background: transparent; border: 0; border-radius: 30px; font-size: 11px; white-space: nowrap; }
.toolbar button:hover { background: #d9e1d265; }
.toolbar .view-button[aria-pressed="true"] { color: #255b48; background: #d9e2cfaa; }
.toolbar #pause { min-width: 78px; background: var(--jade); color: #fff8e8; padding: 0 17px; }
.toolbar #pause:hover { background: #23493e; }
.pause-icon { display: inline-block; width: 10px; font-size: 13px; line-height: 1; }
.toolbar-divider { width: 1px; height: 15px; background: #acbba966; margin: 0 4px; }
.toolbar .view-button svg { width: 15px; height: 15px; }
.art-note { margin: 0; flex-shrink: 0; color: #5e7163; text-align: right; font-size: 9px; line-height: 1.8; letter-spacing: .5px; white-space: nowrap; }
#landmark-card { position: absolute; z-index: 5; bottom: 160px; left: 30px; width: 290px; max-width: calc(100% - 60px); max-height: clamp(160px, calc(100cqw - 340px), 350px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: #fffbf1f2; backdrop-filter: blur(24px); border: 1px solid #fffef8c2; border-radius: 13px; padding: 22px; box-shadow: 0 10px 40px #263f3724; }
#close-landmark { position: absolute; top: 7px; right: 7px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #597263; }
#close-landmark:hover { background: #dae3d06e; }
.landmark-kicker { margin: 1px 20px 11px 0; font-size: 9px; color: #6d7d70; text-transform: uppercase; letter-spacing: 1.8px; line-height: 1.7; }
#landmark-name { font-size: 21px; font-weight: 450; letter-spacing: 2px; margin: 0 0 12px; }
#landmark-description { margin: 0; color: #597062; font-size: 11px; line-height: 1.9; letter-spacing: .3px; }
#landmark-reference { display: inline-flex; align-items: center; min-height: 40px; margin-top: 10px; padding: 4px 0; color: var(--jade); font-size: 11px; line-height: 1.6; text-decoration-thickness: 1px; text-underline-offset: 4px; }
#landmark-reference:hover { color: #1d483a; text-decoration: none; }
#loading { position: absolute; inset: 0; z-index: 20; background: #ece2cf; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; }
#loading > span { font-size: 12px; letter-spacing: 2px; color: #536859; }
#loading > p { margin: 0; font-size: 8px; letter-spacing: 3px; color: #819080; }
.loading-emblem { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 35px; margin-bottom: 5px; }
.loading-emblem i { width: 7px; height: 20px; background: #5e7b69; animation: skyline 1.6s ease-in-out infinite; border-radius: 1px 1px 0 0; }
.loading-emblem i:nth-child(2) { height: 32px; animation-delay: .15s; }
.loading-emblem i:nth-child(3) { height: 26px; animation-delay: .3s; }
.loading-emblem i:nth-child(4) { height: 17px; animation-delay: .45s; }
@keyframes skyline { 0%, 100% { opacity: .3; transform: scaleY(.8); } 50% { opacity: .9; transform: scaleY(1); } }
#error { position: absolute; z-index: 30; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(380px, calc(100% - 44px)); padding: 30px; background: #fffaf0; color: #344d41; border: 1px solid #fffdf5; border-radius: 14px; box-shadow: 0 20px 80px #314a3430; }
.error-kicker { font-size: 10px; color: #71846e; letter-spacing: 1.5px; }
#error h2 { font-size: 22px; font-weight: 450; letter-spacing: 2px; margin: 12px 0; }
#error p { font-size: 12px; line-height: 1.9; }
#reload { min-height: 42px; background: #315d50; color: #fff8e9; padding: 9px 18px; border: 0; border-radius: 24px; font-size: 12px; margin-top: 9px; }
.noscript-note { position: absolute; z-index: 40; inset: 40% 8% auto; padding: 24px; background: #fffaf0; text-align: center; font-size: 13px; }
[hidden] { display: none !important; }
#artwork[data-night="true"] .title-block, #artwork[data-night="true"] .scene-caption { color: #f5e9d2; text-shadow: 0 1px 8px #172c384d; }
#artwork[data-night="true"] .subtitle, #artwork[data-night="true"] .edition, #artwork[data-night="true"] .interaction-hint, #artwork[data-night="true"] .art-note { color: #d1d5cc; }
#artwork[data-night="true"] .city-mark { border-color: #e1dec9; }
#artwork[data-night="true"] .city-mark::after { background: #e1dec9; }
@container (max-width: 700px) {
  .overlay { padding: 23px; }
  h1 { font-size: 27px; letter-spacing: 4px; }
  .edition { display: none; }
  .subtitle { font-size: 10px; letter-spacing: 1px; }
  .eyebrow { font-size: 9px; letter-spacing: 3px; }
  .time-modes { margin-top: 14px; }
  .time-modes button { min-height: 32px; padding: 6px 9px; font-size: 10px; }
  .scene-footer { gap: 14px; }
  .art-note { font-size: 8px; letter-spacing: .2px; }
  .toolbar button { padding: 0 12px; }
  #landmark-card { left: 23px; bottom: 150px; max-width: calc(100% - 46px); max-height: clamp(150px, calc(100cqw - 310px), 300px); }
}
@container (max-width: 480px) {
  #view-label { display: none; }
  .overlay { padding: 17px; }
  h1 { font-size: 23px; margin-top: 9px; margin-bottom: 5px; letter-spacing: 3px; }
  .eyebrow { font-size: 8px; letter-spacing: 2.8px; gap: 7px; }
  .city-mark { width: 10px; height: 10px; }
  .city-mark::after { height: 14px; left: 4px; }
  .subtitle { font-size: 8px; letter-spacing: .7px; }
  .time-modes { padding: 2px; gap: 0; margin-top: 11px; }
  .time-modes button { gap: 4px; min-height: 31px; padding: 6px 8px; font-size: 9px; }
  .mode-dot { width: 4px; height: 4px; }
  .view-tools { gap: 6px; }
  #view-label { min-height: 30px; font-size: 9px; padding: 6px 10px; }
  .scene-settings > summary { min-height: 35px; padding: 7px 10px; gap: 5px; font-size: 10px; }
  .scene-settings > summary > svg { width: 12px; height: 12px; }
  .settings-panel { max-height: max(130px, calc(100cqw - 208px)); padding: 16px; width: 230px; }
  .panel-heading { margin-bottom: 14px; }
  .control-row + .control-row { margin-top: 13px; }
  .check-label { margin-top: 12px; padding: 12px 0; }
  .scene-footer { gap: 11px; }
  .scene-caption { gap: 8px; }
  .caption-line { width: 15px; }
  #interaction-status { font-size: 10px; letter-spacing: .5px; }
  .interaction-hint { font-size: 8px; letter-spacing: 0; }
  .toolbar { gap: 0; padding: 4px; }
  .toolbar button { height: 35px; padding: 0 10px; gap: 5px; font-size: 10px; }
  .toolbar #pause { min-width: 65px; padding: 0 12px; }
  .toolbar .view-button svg { display: none; }
  .toolbar-divider { margin: 0 3px; height: 13px; }
  .bottom-row { gap: 8px; }
  .art-note { font-size: 7px; line-height: 1.7; letter-spacing: 0; }
  #landmark-card { left: 17px; right: 17px; bottom: 86px; width: auto; max-width: none; min-height: 110px; max-height: clamp(140px, calc(100cqw - 190px), 235px); padding: 14px 16px; }
  .landmark-kicker { font-size: 8px; margin-bottom: 7px; }
  #landmark-name { font-size: 17px; margin-bottom: 8px; }
  #landmark-description { font-size: 10px; line-height: 1.8; }
  #landmark-reference { min-height: 40px; margin-top: 6px; font-size: 10px; }
}
@container (max-width: 340px) {
  .overlay { padding: 13px; }
  .subtitle { max-width: 140px; line-height: 1.7; }
  #view-label { font-size: 8px; padding: 5px 8px; }
  .scene-settings > summary { font-size: 9px; padding: 7px 8px; }
  .art-note { display: none; }
  .scene-footer { gap: 8px; }
  .interaction-hint { font-size: 7px; }
  #landmark-card { left: 13px; right: 13px; }
}
@media (max-width: 600px) {
  body { padding: 8px; }
  #artwork { width: min(calc(100vw - 16px), calc(100dvh - 16px)); }
}
@media (pointer: coarse) {
  .time-modes button { min-height: 42px; min-width: 46px; }
  .scene-settings > summary { min-height: 44px; }
  .toolbar button { height: 42px; }
  #close-landmark { width: 44px; height: 44px; }
  #landmark-reference { min-height: 44px; }
  input[type="range"] { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .loading-emblem i { animation: none; opacity: .7; }
}

/* The studio stays tucked away until opened; its form scrolls independently
   of the square artwork, with tabs and the save controls always in reach. */
button, input, select { font: inherit; }
select:focus-visible { outline: 2px solid #2f6b5b; outline-offset: 3px; }
.view-status { display: flex; align-items: center; gap: 7px; }
#scene-clock { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #fffcef80; background: #fff9eeae; border-radius: 24px; backdrop-filter: blur(14px); color: #425f50; font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .8px; }
#scene-clock::before { content: ""; width: 4px; height: 4px; background: #73947a; border-radius: 50%; }
#scene-clock[data-auto="true"]::before { box-shadow: 0 0 0 3px #5c8c6825; background: #3d7954; }
.scene-settings { position: static; }
#artwork[data-controls-open] .overlay { z-index: 7; }
.scene-settings[open] > summary { background: #315d50; border-color: #315d50; color: #fff8e8; }
.settings-panel { position: absolute; top: 86px; right: 24px; bottom: 24px; width: 342px; max-width: calc(100% - 48px); max-height: none; padding: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden; background: #fffbf3f5; border: 1px solid #fffef5; border-radius: 17px; box-shadow: 0 16px 55px #263f3730, 0 2px 6px #263f3710; color: #30483d; }
.panel-heading { min-height: 76px; padding: 16px 19px 14px; margin: 0; gap: 12px; }
.panel-kicker { margin: 0 0 6px; color: #718373; font-size: 8px; letter-spacing: 1.8px; line-height: 1.3; }
.panel-heading h2 { font-size: 17px; font-weight: 500; letter-spacing: 2px; line-height: 1.35; }
.panel-close { align-self: flex-start; flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #e9eddf9e; color: #5b7160; }
.panel-close:hover { background: #dde6d5; }
.panel-close svg { width: 17px; height: 17px; }
.control-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 0 16px; padding: 4px; background: #e9ebdfbd; border-radius: 11px; }
.control-tabs button { min-width: 0; min-height: 36px; padding: 7px 5px; border: 0; border-radius: 8px; background: transparent; color: #708071; font-size: 11px; letter-spacing: 1px; }
.control-tabs button:hover { background: #f7f6eb9c; color: #315d50; }
.control-tabs button[aria-selected="true"] { background: #fffdf3; color: #315d50; font-weight: 600; box-shadow: 0 1px 5px #364c3610; }
.control-tabs button:focus-visible { outline-offset: -2px; }
.control-pages { min-height: 0; overflow: hidden; margin-top: 3px; }
.control-page { height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #a8b6a5 transparent; padding: 16px 20px 21px; }
.control-page:focus-visible { outline: 1px solid #78998270; outline-offset: -4px; }
.control-intro { margin: 0 0 19px; color: #778475; font-size: 10px; line-height: 1.8; }
.settings-panel .control-row { margin: 0 0 19px; }
.settings-panel .control-row + .control-row { margin-top: 0; }
.settings-panel .control-row:last-child { margin-bottom: 0; }
.settings-panel .slider-label { align-items: baseline; font-size: 11px; line-height: 1.6; }
.settings-panel .slider-label output { color: #46765d; font-size: 11px; white-space: nowrap; }
.settings-panel input[type="range"] { display: block; margin: 7px 0 0; height: 26px; accent-color: #3c6b59; }
.range-endpoints { display: flex; justify-content: space-between; color: #94a08f; font-size: 8px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.settings-panel .control-note { margin-top: 3px; font-size: 9px; color: #8a9586; line-height: 1.7; }
.settings-panel .check-label { position: relative; margin: 0 0 18px; padding: 0 0 16px; gap: 13px; border-top: 0; border-bottom: 1px solid #536d551b; font-size: 11px; line-height: 1.6; min-height: 36px; }
.settings-panel .check-label small { display: block; color: #8a9586; font-size: 9px; font-weight: 400; margin-top: 3px; }
.settings-panel .check-label input { right: 0; top: 0; width: 38px; height: 30px; margin: 0; }
.settings-panel .switch { flex-shrink: 0; width: 34px; height: 20px; }
.settings-panel .switch::after { width: 14px; height: 14px; }
.settings-panel .check-label input:checked + .switch::after { transform: translateX(14px); }
.select-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; }
.select-row select { border: 1px solid #b5c3ae80; border-radius: 8px; min-width: 112px; min-height: 36px; background: #faf9ef; padding: 6px 9px; color: #45624f; cursor: pointer; }
.camera-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 0 0 23px; }
.camera-presets button { min-height: 64px; padding: 9px 3px; border: 1px solid #93aa8d52; border-radius: 9px; background: #f0f2e5b8; font-size: 10px; line-height: 1.6; color: #51705b; }
.camera-presets button span { display: block; font-size: 22px; font-weight: 300; line-height: 1; margin-bottom: 7px; }
.camera-presets button:hover { background: #dfe8d5; border-color: #7b9e76a1; }
.settings-panel .settings-help { margin-top: 2px; font-size: 10px; line-height: 1.9; color: #85917f; }
.interaction-guide { border: 1px solid #c0cdb55c; border-radius: 10px; padding: 9px 12px; background: #eef0e452; }
.interaction-guide p { display: flex; align-items: center; gap: 10px; margin: 5px 0; font-size: 10px; line-height: 1.8; color: #788870; }
.interaction-guide p > span:first-child { width: 16px; text-align: center; color: #5e7d5c; font-size: 14px; }
.panel-footer { padding: 12px 16px 11px; border-top: 1px solid #536d551c; background: #f5f4e9e8; }
#scene-capture-link { display: block; color: #315d50; font-size: 10px; margin: 0 0 9px; min-height: 24px; text-underline-offset: 3px; }
#scene-panel-status { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; min-height: 16px; font-size: 9px; line-height: 1.65; color: #73856e; }
.live-dot { display: inline-block; flex-shrink: 0; width: 4px; height: 4px; border-radius: 50%; background: #6d9667; }
.panel-actions { display: grid; grid-template-columns: 1fr 1fr 1.17fr; gap: 6px; }
.panel-actions button { min-width: 0; min-height: 36px; border: 1px solid #a5b69a63; border-radius: 8px; padding: 8px 5px; background: #fffdf2; color: #58724f; font-size: 10px; white-space: nowrap; }
.panel-actions button:hover { background: #e6ecdb; }
.panel-actions .primary-action { background: #315d50; border-color: #315d50; color: #fff9e9; }
.panel-actions .primary-action:hover { background: #234b3f; }
.keyboard-hints { margin: 9px 0 0; color: #98a08f; font-size: 8px; line-height: 1.6; text-align: center; white-space: nowrap; }
.keyboard-hints > span { margin: 0 3px; }
kbd { font-family: inherit; font-size: .95em; color: #83927a; }
#focus-landmark { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; margin: 12px 12px 0 0; padding: 6px 11px; border: 1px solid #b1c2a782; border-radius: 20px; background: #e4ecd9a6; color: #315d50; font-size: 10px; }
#focus-landmark:hover { background: #d9e7cb; }
.toolbar #return-view { color: #315d50; background: #e5ecd9; font-size: 10px; }
.landmark-labels { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.landmark-tag { pointer-events: auto; font-family: inherit; cursor: pointer; }
.landmark-tag:hover, .landmark-tag:focus-visible { outline: 2px solid #8fae80; outline-offset: 2px; }
.landmark-tag { position: absolute; transform: translate(-50%, -100%); max-width: 140px; border: 1px solid #fffef2d9; border-radius: 20px; padding: 5px 9px; background: #fff9e9dc; box-shadow: 0 2px 10px #34452a18; color: #48654f; backdrop-filter: blur(12px); font-size: 9px; line-height: 1.4; letter-spacing: .35px; white-space: nowrap; }
.landmark-tag::after { content: none; }
.landmark-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.landmark-leaders line { stroke: #5d806b; stroke-width: 1; opacity: .65; }
#artwork[data-night="true"] .landmark-leaders line { stroke: #c5d6b7; opacity: .65; }
.scene-hover-tip { position: absolute; z-index: 3; pointer-events: none; max-width: min(210px, calc(100% - 24px)); border: 1px solid #a9c6a533; border-radius: 24px; padding: 8px 12px; background: #244c40e8; color: #fff7e3; box-shadow: 0 4px 15px #153c2b26; backdrop-filter: blur(10px); font-size: 10px; line-height: 1.4; white-space: nowrap; }
#artwork[data-night="true"] .landmark-tag { color: #f1e7c8; background: #263f46dd; border-color: #b4c3ad40; box-shadow: 0 2px 12px #12283240; }
#artwork[data-night="true"] .landmark-tag::after { background: #e3d29d; box-shadow: 0 0 0 2px #839f9a45; }
#artwork[data-night="true"] .scene-hover-tip { color: #f4e9ca; background: #172f3af0; border-color: #bed1c52e; }
@container (max-width: 700px) {
  .settings-panel { right: 17px; bottom: 17px; top: 79px; max-width: calc(100% - 34px); width: 322px; }
  #scene-clock { min-height: 31px; font-size: 10px; }
}
@container (max-width: 480px) {
  .view-status { gap: 0; }
  #scene-clock { min-height: 28px; padding: 6px 9px; font-size: 9px; }
  .settings-panel { top: 13px; right: 13px; bottom: 13px; width: calc(100% - 26px); max-width: none; border-radius: 14px; }
  .panel-heading { min-height: 61px; padding: 12px 15px 10px; }
  .panel-kicker { font-size: 7px; margin-bottom: 4px; letter-spacing: 1.5px; }
  .panel-heading h2 { font-size: 16px; }
  .panel-close { width: 32px; height: 32px; }
  .control-tabs { margin: 0 12px; padding: 3px; }
  .control-tabs button { min-height: 34px; font-size: 10px; }
  .control-page { padding: 12px 17px 18px; }
  .control-intro { margin-bottom: 15px; font-size: 9px; }
  .settings-panel .control-row { margin-bottom: 17px; }
  .settings-panel .check-label { margin-bottom: 16px; padding-bottom: 13px; }
  .panel-footer { padding: 9px 12px; }
  #scene-panel-status { font-size: 8px; margin-bottom: 7px; }
  .panel-actions button { min-height: 35px; font-size: 9px; }
  .keyboard-hints { margin-top: 7px; font-size: 7px; }
  #focus-landmark { margin-top: 9px; min-height: 35px; }
  .landmark-tag { padding: 4px 7px; font-size: 8px; }
  .scene-hover-tip { padding: 6px 10px; font-size: 9px; }
  .toolbar:has(#return-view:not([hidden])) .view-button:not(#return-view) { display: none; }
}
@media (pointer: coarse) {
  .panel-close { min-width: 40px; min-height: 40px; }
  .control-tabs button { min-height: 40px; }
  .settings-panel input[type="range"] { height: 32px; }
  .settings-panel .check-label { min-height: 42px; }
  .select-row select { min-height: 42px; }
  .panel-actions button { min-height: 40px; }
  #focus-landmark { min-height: 40px; }
}
.signature-button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 12px; border: 1px solid #a9c4bb99; border-radius: 24px; color: #315d50; background: #fff9ede6; box-shadow: 0 2px 10px #42573b0d; backdrop-filter: blur(14px); font-size: 11px; letter-spacing: .5px; }
.signature-button:hover { background: #e8eee3; }
.signature-button svg { width: 16px; height: 16px; }
.signature-state { width: 5px; height: 5px; border-radius: 50%; background: #9cad9c; }
.signature-button[aria-pressed="true"] { color: #edfaff; border-color: #a6d4df99; background: linear-gradient(115deg, #235c61ed, #545579ed); }
.signature-button[aria-pressed="true"] .signature-state { background: #72efc3; box-shadow: 0 0 7px #72efc3b3; }
#artwork[data-night="true"] .signature-button:not([aria-pressed="true"]) { color: #e3ebdf; background: #233f4bea; border-color: #90b0b95c; }
@container (max-width: 480px) {
  .signature-button { min-height: 35px; padding: 7px 10px; gap: 5px; font-size: 10px; letter-spacing: 0; }
  .signature-button svg { width: 13px; height: 13px; }
}
@media (pointer: coarse) {
  .signature-button { min-height: 40px; }
}
:root { --map-geography-version: 2; }
.geo-compass { position:absolute; top:32px; left:50%; display:grid; justify-items:center; gap:1px; color:#355755; z-index:3; font:9px/1.1 sans-serif; pointer-events:none; }
.geo-compass .north-arrow { display:block; font-size:26px; line-height:29px; transform-origin:50% 50%; }
.art-note a { color:inherit; text-decoration:none; opacity:.78; }
.art-note a:hover { text-decoration:underline; }
@media(max-width:680px) { .geo-compass {top:16px;left:49%;font-size:8px;} .geo-compass .north-arrow{font-size:20px;line-height:23px;} }
.map-water-label {position:absolute;pointer-events:none;transform:translate(-50%,-50%);color:#284d5c;font:italic 9px/1.2 sans-serif;letter-spacing:.04em;white-space:nowrap;text-shadow:0 1px 3px #e0eef0;z-index:2;}

.sr-only, #view-label.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
button:disabled { cursor:default; }
/* Keep the complete harbour below the header on a small screen. */
@media (max-width:480px) {
  #artwork { aspect-ratio:auto; width:calc(100vw - 16px); height:calc(100vw + 184px); }
  #scene { inset:110px 0 90px; }
}

/* A separate perspective camera follows a bounded sidewalk, leaving the
   miniature's orbit and saved framing untouched. */
.street-hud { position:absolute; bottom:115px; left:50%; transform:translateX(-50%); width:min(340px,calc(100% - 40px)); pointer-events:auto; border:1px solid #fffbeaaf; border-radius:16px; padding:12px; background:#fff9e9ed; backdrop-filter:blur(18px); box-shadow:0 8px 30px #1b39252b; color:#315447; }
.street-heading { display:flex; gap:8px; align-items:center; }
.street-heading select { min-width:0; flex:1; border:0; background:transparent; color:inherit; font-size:12px; padding:4px 0; cursor:pointer; }
#street-progress { font-size:9px; color:#718573; font-variant-numeric:tabular-nums; }
.street-badge { font-size:8px; letter-spacing:1px; border:1px solid #91a78a60; border-radius:10px; padding:4px 6px; white-space:nowrap; }
.street-help { margin:6px 0 10px; color:#78866d; font-size:9px; line-height:1.6; }
.street-actions { display:grid; grid-template-columns:36px 1fr 1.2fr 1fr 36px; gap:6px; }
.street-actions button { min-width:0; min-height:38px; border:1px solid #abc09a55; border-radius:9px; background:#e7eddb; color:#385e48; font-size:11px; }
.street-actions button:hover { background:#d7e3c9; }
.street-actions button:disabled { opacity:.35; cursor:default; }
#street-walk[aria-pressed="true"],#streetview[aria-pressed="true"] { background:#315d50; color:#fff9e9; }
#artwork[data-streetview="true"] .scene-caption,#artwork[data-streetview="true"] .geography-note,#artwork[data-streetview="true"] .signature-button { display:none; }
#artwork[data-streetview="true"] .toolbar #streetview { display:none; }
#artwork[data-streetview="true"] .bottom-row { justify-content:center; }
#artwork[data-streetview="true"] .scene-header { text-shadow:0 1px 10px #fff5df; }
#artwork[data-streetview="true"][data-night="true"] .scene-header { text-shadow:0 1px 10px #122a33; }
@container (max-width:480px) {
  .street-hud { bottom:73px; width:calc(100% - 34px); padding:10px; border-radius:13px; }
  .street-actions { grid-template-columns:44px 1fr 1.1fr 1fr 44px; }
  .street-actions button { min-height:44px; }
  .street-help span { display:none; }
  #artwork .toolbar:has(#return-view:not([hidden])) #streetview { display:inline-flex; }
  #artwork[data-streetview="true"] .toolbar #streetview { display:none; }
  #artwork[data-streetview="true"] .toolbar:has(#return-view:not([hidden])) #streetview { display:none; }
  .toolbar #streetview { gap:3px; padding-inline:7px; }
}

/* Keep the view open while the visitor consults a compact route guide. */
.street-heading select { width:0; }
#street-collapse { flex-shrink:0; min-width:44px; min-height:32px; border:1px solid #91a78a60; border-radius:10px; background:#e7eddb; color:#315447; font-size:10px; }
.street-stop-row { display:flex; align-items:center; gap:8px; margin-top:8px; border-top:1px solid #91a78a30; padding-top:6px; }
#street-stop { flex:1; min-width:0; width:0; min-height:36px; border:0; border-radius:7px; background:#e7eddb80; color:#315447; font-family:inherit;font-size:11px;line-height:1.4; padding:5px; text-overflow:ellipsis; }
#street-map { width:92px; height:36px; flex-shrink:0; border-radius:8px; background:#e9ecde; }
.street-map-line { fill:none; stroke:#6d8d77; stroke-width:2; stroke-linejoin:round; }
.street-map-stop { fill:#c4944e; stroke:#fff9e9; stroke-width:1; }
.street-map-cursor { fill:#245e4d; stroke:#fff9e9; stroke-width:1.5; }
#artwork[data-night="true"] .street-hud { color:#d7e2d5; background:#18333de8; border-color:#83aaa14d; }
#artwork[data-night="true"] .street-hud select { color:inherit; }
#artwork[data-night="true"] .street-hud option { color:#315447; background:#fff9e9; }
#artwork[data-night="true"] .street-help,#artwork[data-night="true"] #street-progress { color:#b6cabd; }
#artwork[data-night="true"] #street-stop { background:#385455; }
#artwork[data-night="true"] #street-map { background:#30494a; }
#artwork[data-night="true"] .street-map-line { stroke:#8ead98; }
#artwork[data-night="true"] .street-map-cursor { fill:#8bd1b5; }
@container(max-width:480px){ #street-collapse{min-height:44px;} .street-hud[data-collapsed="true"]{padding-block:5px;} }

/* A quiet camera desk, separate from city size and scene controls. */
.photo-hud{pointer-events:auto;position:absolute;z-index:30;left:50%;bottom:24px;transform:translateX(-50%);width:min(620px,calc(100% - 32px));padding:14px 16px;border:1px solid #bcc7ae80;border-radius:18px;background:#fff9e9ed;color:#315447;box-shadow:0 12px 30px #253d3a26;backdrop-filter:blur(12px);font-size:12px;}
.photo-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;letter-spacing:.08em;}
.photo-hud button,.photo-hud select{min-height:44px;min-width:44px;border:1px solid #91a78a50;border-radius:9px;background:#e7eddb;color:#315447;padding:6px 10px;font:inherit;cursor:pointer;}
.photo-controls{display:flex;flex-wrap:wrap;gap:7px;}.photo-controls select{flex:1;min-width:150px;}.photo-hud p{font-size:10px;opacity:.7;margin:10px 0 0;}.photo-hud button[aria-pressed="true"]{background:#315f50;color:#fff9e9;}
#artwork[data-photo-mode="true"] .overlay>header,#artwork[data-photo-mode="true"] .overlay>.orientation,#artwork[data-photo-mode="true"] .overlay>.street-hud,#artwork[data-photo-mode="true"] .overlay>.scene-footer,#artwork[data-photo-mode="true"] #landmark-card,#artwork[data-photo-mode="true"] .landmark-labels,#artwork[data-photo-mode="true"] .geo-compass{display:none!important;}
#artwork[data-photo-clean="true"] .photo-hud{visibility:hidden;pointer-events:none;}
@container(max-width:480px){.photo-hud{bottom:14px;padding:10px;width:calc(100% - 24px);}.photo-controls button{flex:1 0 28%;}.photo-hud p{line-height:1.6;}.photo-controls select{width:100%;flex-basis:100%;}}

#artwork[data-photo-mode="true"] .scene-hover-tip{display:none!important;}

#artwork[data-photo-mode="true"] .overlay > :not(.photo-hud){display:none!important;}

/* The city sandboxes share direct links, including on narrow screens. */
.city-navigation{display:flex;align-items:center;gap:12px;margin-top:13px;pointer-events:auto;font-size:10px;line-height:1.7;letter-spacing:.7px}
.city-navigation a{color:inherit;text-decoration:none;opacity:.66;border-bottom:1px solid transparent;padding:2px 0}
.city-navigation a:hover,.city-navigation a:focus-visible{opacity:1;border-color:currentColor;outline-offset:4px}
.city-navigation a[aria-current="page"]{opacity:1;border-color:currentColor}
@media(max-width:480px){.city-navigation{gap:9px;margin-top:9px;font-size:9px;letter-spacing:0}}
#artwork[data-streetview="true"] .city-navigation{display:none}

/* London: slate ink and a restrained red city seal. */
#artwork{--ink:#2e3d47;--muted:#64717a;--jade:#40566b;--line:#53637330}
.city-mark{border-color:#a75d48;border-radius:50%}.city-mark::after{width:7px;height:7px;left:2px;top:2px;background:#a75d48;border-radius:50%;transform:none}

@media(max-width:480px){
 .city-navigation{max-width:190px;flex-wrap:wrap;gap:0 2px;margin-top:8px}
 .city-navigation a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 4px}
 .time-modes button,.toolbar button,.signature-button,.scene-settings>summary{min-height:44px;min-width:44px}
}

.touch-hint{display:none}
@media(max-width:480px){
 #artwork{height:calc(100vw + 274px)}#scene{inset:200px 0 90px}
 #artwork[data-streetview="true"]{height:calc(100vw + 184px)}#artwork[data-streetview="true"] #scene{inset:110px 0 90px}
 .interaction-hint .pointer-hint{display:none}.interaction-hint .touch-hint{display:inline}
}
