@charset "UTF-8";
:root {
  --cream: #f6f1e7;
  --paper: #fff9f1;
  --ink: #332b26;
  --muted: #938575;
  --terracotta: #dc704b;
  --terracotta-dark: #b35638;
  --line: #e1d6c8;
  --sidebar-width: 348px;
  --sheet-height: 17dvh;
  --font-body: "Noto Sans TC", sans-serif;
  --font-latin: "Manrope", "Noto Sans TC", sans-serif;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { color: var(--ink); background: var(--cream); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }
button, a, input { outline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--terracotta-dark); }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; color: white; background: var(--terracotta-dark); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.island-experience { position: absolute; inset: 0 var(--sidebar-width) 0 0; overflow: hidden; }
#stage { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
#stage > canvas { display: block; width: 100%; height: 100%; outline-offset: -4px; touch-action: none; }
.site-header { position: absolute; z-index: 8; inset: 20px 22px auto 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; pointer-events: none; }
.site-header a, .site-header button { pointer-events: auto; }
.brand-plaque { display: flex; align-items: center; gap: 20px; padding: 15px 19px; min-height: 93px; border-radius: 19px; background: #fffaf0f5; box-shadow: 0 4px 18px #354d3210; backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-emblem { display: none; }
.brand-words { display: flex; flex-direction: column; gap: 6px; }
.brand-words strong { color: var(--terracotta); font-family: var(--font-latin); font-size: 27px; line-height: 1; letter-spacing: -1.5px; font-weight: 800; }
.brand-period { margin-left: 1px; }
.brand-words > span { font-size: 12px; font-weight: 600; letter-spacing: 3px; }
.intro { pointer-events: none; }
.intro h1 { margin: 0; font-size: 15px; line-height: 1.8; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }
.district-navigation { position: absolute; z-index: 9; top: 126px; left: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; max-width: 310px; pointer-events: none; }
.back-overview { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid #dfd4c499; border-radius: 24px; color: #7e6148; background: #fffaf1f5; font-size: 12px; pointer-events: auto; box-shadow: 0 2px 10px #3854350a; backdrop-filter: blur(10px); transition: color .18s, background .18s; }
.back-overview:hover { color: var(--terracotta-dark); background: #fffdf7; }
.back-overview .icon { width: 14px; height: 14px; transform: rotate(-135deg); }
.district-heading { max-width: 100%; padding: 12px 16px; border-radius: 13px; background: #fffaf1eb; backdrop-filter: blur(10px); }
.district-heading h2 { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 700; letter-spacing: -.3px; }
.district-heading p { margin: 5px 0 0; color: #9c826a; font-size: 11px; line-height: 1.8; }
.district-heading p:empty { display: none; }
.title-period { margin-left: -4px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.edition-label { display: none; }
.help-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: #827669; background: #fffaf2f5; border: 1px solid #d6ccbd8c; border-radius: 9px; backdrop-filter: blur(10px); transition: color .18s, background .18s; }
.help-button > span { display: none; }
.help-button:hover, .help-button[aria-expanded="true"] { color: var(--terracotta-dark); background: #fffdf7; }
.help-button .icon { width: 18px; height: 18px; }
.eyebrow { margin: 0; font-family: var(--font-latin); font-size: 10px; line-height: 1.5; letter-spacing: 1.8px; font-weight: 800; color: var(--terracotta); }
.map-note { position: absolute; left: 28px; bottom: 24px; display: flex; align-items: center; gap: 8px; color: #f9f6e9; text-shadow: 0 1px 8px #314f4270; font-size: 11px; letter-spacing: .5px; pointer-events: none; }
.note-dot { width: 5px; height: 5px; background: #faf4df; border-radius: 50%; }
.controls-bar { position: absolute; z-index: 10; inset: 20px 22px auto 28px; height: 0; pointer-events: none; }
.controls-bar button { pointer-events: auto; }
.time-control { position: absolute; top: 0; left: 52%; transform: translateX(-50%); }
.time-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.time-options { display: flex; padding: 4px; gap: 1px; background: #fffaf2f5; border-radius: 24px; box-shadow: 0 3px 16px #3956360a; backdrop-filter: blur(10px); }
.time-option { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 48px; min-height: 44px; padding: 8px 10px; border-radius: 22px; background: transparent; font-size: 11px; color: #8d8073; transition: color .18s, background .18s; }
.time-option .icon { width: 17px; height: 17px; }
.time-option > span { display: none; }
.time-option:hover { color: var(--terracotta-dark); background: #eaddcf; }
.time-option[aria-pressed="true"] { color: var(--terracotta-dark); background: #efdfcc; }
.view-controls { position: absolute; top: 0; right: 53px; display: flex; align-items: center; gap: 6px; }
.tool-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 54px; min-height: 44px; padding: 10px 11px; border: 1px solid #d6ccbd8c; border-radius: 9px; background: #fffaf2f5; font-size: 11px; color: #6f6358; backdrop-filter: blur(10px); transition: background .18s, color .18s; }
.tool-button:hover, .tool-button[aria-pressed="true"] { color: var(--terracotta-dark); background: #fffdf7; }
.tool-button .icon { width: 14px; height: 14px; }
.sidebar { position: absolute; z-index: 15; right: 0; top: 0; bottom: 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 29px 23px 0; border-left: 1px solid #d7cebd; background: #fff9f3; }
.sheet-handle { display: none; }
.sidebar-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex: 0 0 auto; padding-bottom: 13px; }
.sidebar-heading > div { min-width: 0; }
.sidebar-heading h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 11px; margin: 10px 0 0; font-size: 23px; line-height: 1.5; font-weight: 700; letter-spacing: -.5px; }
.list-count { display: block; flex: 0 0 auto; max-width: 100%; color: var(--muted); font-size: 11px; line-height: 1.5; letter-spacing: 0; font-weight: 400; white-space: nowrap; }
.sidebar-index { display: none; }
.list-toggle { display: none; }
.sidebar-content { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.sidebar-description { flex: 0 0 auto; margin: 0 0 18px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.search-field { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid #ded5cb; border-radius: 8px; background: #fffdfb; color: #ab9987; transition: border-color .18s; }
.search-field:focus-within { border-color: var(--terracotta); }
.search-field > .icon { width: 15px; height: 15px; }
.search-field input { min-width: 0; flex: 1; width: 100%; padding: 11px 0; border: 0; background: transparent; color: var(--ink); font-size: 12px; outline: 0; }
.search-field input:focus-visible { outline: 0; }
.search-field input::placeholder { color: #a69686; opacity: 1; }
.search-shortcut { display: none; }
.filters { display: flex; flex: 0 0 auto; align-items: center; flex-wrap: wrap; gap: 6px; padding: 12px 0 18px; }
.filter { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 8px 12px; border: 1px solid #dfd5ca; border-radius: 9px; background: transparent; color: #74665a; font-size: 11px; white-space: nowrap; transition: background .18s, color .18s, border-color .18s; }
.filter:hover { border-color: #d5a18b; color: var(--terracotta-dark); }
.filter[aria-pressed="true"], .filter.is-active { color: #fffaf3; background: #292421; border-color: #292421; }
.filter span { font-family: var(--font-latin); font-size: 11px; opacity: .75; }
.work-list-heading { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid var(--line); color: #a18f7d; font-family: var(--font-latin); font-size: 10px; letter-spacing: .7px; }
.work-list-heading > span:last-child { display: flex; align-items: center; gap: 5px; font-family: var(--font-body); font-size: 10px; letter-spacing: 0; }
.work-list-heading .icon { width: 11px; height: 11px; }
.district-copy { display: none; }
body[data-view="district"] .overview-copy { display: none; }
body[data-view="district"] .district-copy { display: inline; }
.work-list { min-height: 0; flex: 1; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ddcdbc transparent; padding: 0 4px 8px 0; margin-right: -8px; }
.work-list::-webkit-scrollbar { width: 3px; }
.work-list::-webkit-scrollbar-thumb { background: #ddcdbc; border-radius: 3px; }
.work-item { position: relative; display: flex; align-items: center; gap: 10px; min-height: 82px; width: 100%; padding: 13px 5px 13px 0; border-bottom: 1px solid #eadecf; transition: background .18s, padding .18s; }
.work-item:hover, .work-item.is-active { padding-left: 5px; background: #f1e6d94f; }
.work-item:focus-visible { outline-offset: -2px; }
.work-item.is-dim { opacity: .4; }
.work-number { flex: 0 0 22px; color: var(--terracotta); font-family: Georgia, serif; font-size: 19px; font-style: italic; }
.work-thumb { display: block; flex: 0 0 58px; height: 46px; overflow: hidden; border: 1px solid #e0d4c4; border-radius: 5px; background: #e7dece; }
.work-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .35s; }
.work-item:hover .work-thumb img { transform: scale(1.07); }
.work-info { display: block; min-width: 0; flex: 1; }
.work-info h3 { overflow: hidden; margin: 0 0 5px; color: #42352b; font-size: 13px; font-weight: 600; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.work-info p { overflow: hidden; margin: 0; color: #a18b75; font-size: 11px; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.work-arrow { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 24px; color: #9f8e7a; }
.work-arrow .icon, .work-arrow svg { width: 13px; height: 13px; }
.work-item:hover .work-arrow, .work-item.is-active .work-arrow { color: var(--terracotta-dark); }
.district-item { display: flex; align-items: center; gap: 10px; min-height: 88px; padding: 15px 5px 15px 0; border-bottom: 1px solid #eadecf; transition: background .18s, padding .18s; }
.district-item:hover, .district-item.is-active { padding-left: 5px; background: #f1e6d94f; }
.district-item:focus-visible { outline-offset: -2px; }
.district-number { flex: 0 0 22px; color: var(--terracotta); font-family: Georgia, serif; font-size: 20px; font-style: italic; }
.district-color { position: relative; display: block; flex: 0 0 39px; width: 39px; height: 43px; overflow: hidden; background: var(--district-color, #b8b491); border-radius: 10px; box-shadow: inset 0 0 0 1px #92784c12; }
.district-color::before { position: absolute; content: ""; left: 10px; bottom: 9px; width: 19px; height: 17px; background: #fffaf1bd; border-radius: 1px; transform: skewY(-9deg); }
.district-color::after { position: absolute; content: ""; left: 7px; top: 6px; width: 25px; height: 14px; background: #fffaf1ed; clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: rotate(-4deg); }
.district-info { min-width: 0; flex: 1; }
.district-info h3 { overflow: hidden; margin: 0 0 5px; color: #42352b; font-size: 14px; font-weight: 600; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.district-info p { overflow: hidden; margin: 0; color: #a18b75; font-size: 11px; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.district-count { flex: 0 0 auto; font-family: var(--font-latin); color: #9b8065; font-size: 11px; white-space: nowrap; }
.district-item .work-arrow { flex-basis: 13px; }
.district-item:hover .work-arrow { color: var(--terracotta-dark); }
.empty-state { margin: 25px 5px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.8; }
.sidebar-footer { display: flex; flex: 0 0 auto; align-items: flex-start; flex-direction: column; gap: 9px; padding: 15px 0 21px; border-top: 1px solid var(--line); }
.sidebar-footer > span { color: #aa9680; font-size: 11px; }
.sidebar-footer a { display: inline-flex; align-items: center; gap: 8px; color: var(--terracotta-dark); font-size: 12px; }
.sidebar-footer a:hover { color: #863b25; }
.sidebar-footer .icon { width: 12px; height: 12px; }
.island-labels { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.island-label { position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; gap: 5px; max-width: 175px; min-height: 33px; padding: 7px 12px 7px 9px; transform: translate(-50%,-50%); border: 1px solid #e0ddd3; border-radius: 25px; background: #fffcf5f5; box-shadow: 0 2px 8px #2545371c; color: #35312c; font-size: 11px; line-height: 1.4; font-weight: 600; white-space: nowrap; pointer-events: auto; transition: opacity .18s, background .18s, color .18s; }
.label-number { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 15px; color: var(--terracotta); font-family: var(--font-latin); font-size: 10px; font-weight: 800; }
.label-title { overflow: hidden; text-overflow: ellipsis; }
.district-label { gap: 6px; min-height: 38px; padding: 8px 13px; font-size: 12px; }
.district-label .label-title { overflow: visible; }
.label-count { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; margin-left: 2px; padding: 0 4px; border-radius: 10px; background: #eee1cc; color: #a36c48; font-family: var(--font-latin); font-size: 10px; font-weight: 700; }
.island-label:hover, .island-label.is-active { z-index: 5; background: #fff3e5; color: var(--terracotta-dark); }
.island-label.is-dim { opacity: .18; }
.labels-hidden .island-label { opacity: 0; pointer-events: none; }
.selection-card { position: absolute; z-index: 12; left: 50%; bottom: 30px; display: flex; align-items: stretch; gap: 13px; width: min(350px, calc(100% - 40px)); min-height: 105px; padding: 9px 34px 9px 9px; transform: translateX(-50%); border: 1px solid #ddc9af; border-radius: 13px; background: #fffaf2f5; box-shadow: 0 8px 28px #3e4c321a; backdrop-filter: blur(14px); }
#selected-image { display: block; flex: 0 0 102px; width: 102px; height: 87px; object-fit: cover; object-position: center top; border-radius: 7px; background: #e8decd; }
.selection-copy { min-width: 0; align-self: center; }
.selection-category { margin: 0 0 5px; font-size: 11px; color: var(--muted); }
.selection-copy h2 { margin: 0 0 9px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.selection-copy > a { display: flex; align-items: center; gap: 7px; min-height: 30px; color: var(--terracotta-dark); font-size: 12px; }
.selection-copy > a .icon { width: 12px; height: 12px; }
.selection-close { position: absolute; top: 1px; right: 1px; display: grid; place-items: center; width: 40px; height: 40px; padding: 8px; color: #a28870; background: transparent; }
.selection-close .icon { width: 16px; height: 16px; }
.help-panel { position: absolute; z-index: 18; right: 22px; top: 77px; width: 300px; max-width: calc(100% - 32px); padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: #fffaf2f5; box-shadow: 0 8px 30px #354d3218; backdrop-filter: blur(14px); }
.help-title { margin: 0 0 16px; font-size: 15px; font-weight: 600; }
.help-panel p:not(.help-title) { display: flex; gap: 13px; margin: 9px 0; color: #9c846d; font-size: 11px; line-height: 1.8; }
.help-panel p > span { flex: 0 0 auto; color: var(--terracotta-dark); }
.help-panel small { display: block; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); color: #a58f77; font-size: 11px; line-height: 1.8; }
.loading { position: absolute; z-index: 30; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; background: var(--cream); transition: opacity .45s, visibility .45s; }
.loading strong { margin-top: 25px; color: var(--terracotta-dark); font-size: 15px; font-weight: 500; letter-spacing: 1px; }
.loading p { margin: 11px 0 25px; color: #ad947b; font-size: 11px; }
.loading-island { position: relative; width: 54px; height: 40px; transform: skewY(-15deg); }
.loading-island span { position: absolute; bottom: 0; width: 17px; border-radius: 2px; background: #bb7550; animation: building-bob 1.4s ease-in-out infinite alternate; }
.loading-island span:nth-child(1) { left: 0; height: 24px; background: #d8ae82; }
.loading-island span:nth-child(2) { left: 18px; height: 38px; animation-delay: .2s; }
.loading-island span:nth-child(3) { left: 36px; height: 18px; background: #a5ac86; animation-delay: .4s; }
.loading-line { position: relative; width: 120px; height: 2px; overflow: hidden; background: #e5d7c3; }
.loading-line::before { position: absolute; content: ""; width: 40px; height: 2px; background: var(--terracotta); animation: loading-slide 1.4s ease-in-out infinite; }
.is-ready .loading { opacity: 0; visibility: hidden; pointer-events: none; }
.noscript-note { position: absolute; z-index: 99; left: 20px; right: 20px; top: 40%; padding: 24px; background: var(--paper); font-size: 13px; line-height: 2; }
.noscript-note a { color: var(--terracotta-dark); text-decoration: underline; }
@keyframes building-bob { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes loading-slide { from { left: -40px; } to { left: 120px; } }
@media (min-width: 1500px) {
  :root { --sidebar-width: 370px; }
  .sidebar { padding: 33px 26px 0; }
  .work-item { min-height: 88px; }
  .work-thumb { flex-basis: 64px; height: 50px; }
}
@media (min-width: 761px) and (max-width: 1200px) {
  :root { --sidebar-width: 320px; }
  .site-header { left: 21px; right: 18px; }
  .brand-plaque { gap: 15px; padding: 14px 16px; min-height: 83px; border-radius: 16px; }
  .brand-words strong { font-size: 22px; }
  .brand-words > span { font-size: 11px; letter-spacing: 2px; }
  .intro h1 { font-size: 13px; }
  .district-navigation { top: 116px; left: 21px; max-width: 270px; }
  .controls-bar { left: 21px; right: 18px; }
  .time-control { top: 91px; left: 50%; }
  .view-controls { right: 53px; }
  .tool-button { min-width: 44px; padding: 10px; }
  .tool-button > span { display: none; }
  .sidebar { padding: 24px 20px 0; }
  .sidebar-heading h2 { font-size: 21px; }
  .sidebar-description { font-size: 11px; }
  .work-item { gap: 8px; }
  .work-thumb { flex-basis: 51px; height: 43px; }
  .work-info h3 { font-size: 12px; }
}
@media (max-height: 720px) and (min-width: 761px) {
  .sidebar { padding-top: 21px; }
  .sidebar-description { margin-bottom: 13px; }
  .filters { padding-bottom: 13px; }
  .sidebar-footer { padding: 12px 0 16px; gap: 6px; }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 0px; --sheet-height: 17dvh; }
  .island-experience { inset: 0; }
  #stage { inset: 0; }
  .site-header { inset: max(16px, env(safe-area-inset-top)) 15px auto; }
  .brand-plaque { gap: 13px; padding: 11px 12px; min-height: 68px; border-radius: 14px; }
  .brand-words { gap: 5px; }
  .brand-words strong { font-size: 22px; letter-spacing: -1.4px; }
  .brand-words > span { font-size: 10px; letter-spacing: 2px; }
  .intro h1 { font-size: 11px; line-height: 1.8; letter-spacing: 0; }
  .district-navigation { top: max(96px, calc(env(safe-area-inset-top) + 80px)); left: 15px; max-width: calc(100% - 88px); gap: 6px; }
  .back-overview { gap: 6px; min-height: 44px; padding: 9px 12px; font-size: 11px; }
  .district-heading { padding: 7px 12px; border-radius: 10px; }
  .district-heading h2 { font-size: 15px; line-height: 1.5; }
  .district-heading p { display: none; }
  .help-button { width: 44px; height: 44px; border-radius: 9px; }
  .map-note { display: none; }
  .controls-bar { inset: 0; height: 100%; }
  .time-control { top: auto; bottom: calc(max(var(--sheet-height), 132px) + 13px); left: 15px; transform: none; }
  .time-options { padding: 3px; border-radius: 25px; }
  .time-option { flex-direction: column; gap: 3px; min-width: 48px; min-height: 45px; padding: 6px 8px; font-size: 11px; border-radius: 22px; }
  .time-option > span { display: block; }
  .time-option .icon { width: 14px; height: 14px; }
  .view-controls { top: max(73px, calc(env(safe-area-inset-top) + 57px)); right: 15px; flex-direction: column; gap: 6px; }
  .tool-button { flex-direction: column; gap: 3px; width: 44px; min-width: 44px; min-height: 47px; padding: 6px 3px; border-radius: 9px; font-size: 11px; line-height: 1.1; }
  .tool-button .icon { width: 14px; height: 14px; }
  .sidebar { top: auto; width: 100%; height: var(--sheet-height); min-height: 132px; max-height: calc(100dvh - 75px); padding: 0 18px; border-top: 1px solid #dacbb7; border-left: 0; border-radius: 17px 17px 0 0; background: #fff9f2fa; box-shadow: 0 -5px 24px #46604b0c; transition: height .3s cubic-bezier(.2,.7,.2,1); }
  .sheet-handle { display: block; flex: 0 0 auto; width: 30px; height: 3px; margin: 7px auto 0; border-radius: 2px; background: #d3c2ac; }
  .sidebar-heading { min-height: 47px; align-items: center; padding-bottom: 0; gap: 8px; }
  .sidebar-heading .eyebrow { display: none; }
  .sidebar-heading h2 { flex-wrap: nowrap; margin: 0; gap: 8px; font-size: 17px; line-height: 1.4; white-space: nowrap; }
  .list-count { min-width: 0; font-size: 11px; }
  .list-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; gap: 2px; width: 44px; height: 44px; padding: 0; background: transparent; color: #a06d4b; font-size: 11px; }
  .list-toggle .icon { width: 17px; height: 17px; transition: transform .3s; }
  .list-toggle > span { display: none; }
  .sidebar.is-open, body.list-open .sidebar { height: 67dvh; }
  .sidebar.is-open .list-toggle .icon, body.list-open .list-toggle .icon { transform: rotate(180deg); }
  .sidebar-description, .sidebar-footer, .work-list-heading { display: none; }
  .sidebar:not(.is-open) .search-field, .sidebar:not(.is-open) .filters { display: none; }
  body.list-open .sidebar .search-field { display: flex; }
  body.list-open .sidebar .filters { display: flex; }
  .sidebar.is-open .sidebar-description, body.list-open .sidebar .sidebar-description { display: block; margin-bottom: 12px; font-size: 11px; }
  .search-field { min-height: 44px; border-radius: 7px; }
  .search-field input { padding: 12px 0; font-size: 12px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; gap: 5px; padding: 9px 0 12px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { height: 0; }
  .filter { flex: 0 0 auto; min-height: 44px; padding: 8px 11px; font-size: 11px; border-radius: 7px; }
  .work-list { padding-bottom: max(8px, env(safe-area-inset-bottom)); margin-right: -7px; border-top: 1px solid var(--line); }
  .work-item { min-height: 73px; padding: 10px 4px 10px 0; gap: 10px; }
  .work-number { flex-basis: 22px; font-size: 18px; }
  .work-thumb { flex-basis: 60px; height: 44px; }
  .work-info h3 { margin-bottom: 4px; font-size: 12px; }
  .work-info p { font-size: 11px; }
  .work-arrow { flex-basis: 19px; }
  .district-item { gap: 9px; min-height: 74px; padding: 10px 4px 10px 0; }
  .district-number { flex-basis: 21px; font-size: 18px; }
  .district-color { flex-basis: 38px; width: 38px; height: 42px; }
  .district-info h3 { margin-bottom: 3px; font-size: 13px; }
  .district-info p { font-size: 11px; }
  .district-count { font-size: 11px; }
  .sidebar.is-open .sidebar-footer, body.list-open .sidebar .sidebar-footer { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 13px 0 max(13px, env(safe-area-inset-bottom)); }
  .sidebar-footer > span { font-size: 11px; }
  .sidebar-footer a { font-size: 11px; gap: 5px; }
  .help-panel { top: 69px; right: 15px; padding: 18px; width: 290px; }
  .selection-card { bottom: calc(max(var(--sheet-height), 132px) + 78px); width: min(320px, calc(100% - 30px)); min-height: 94px; gap: 10px; padding: 8px 34px 8px 8px; }
  #selected-image { flex-basis: 85px; width: 85px; height: 78px; }
  .selection-copy h2 { font-size: 13px; margin-bottom: 6px; }
  .selection-copy > a { font-size: 11px; }
  .island-label { max-width: 140px; min-height: 36px; padding: 8px 10px 8px 8px; gap: 4px; font-size: 11px; }
  .label-number { font-size: 10px; }
  body[data-view="district"] .island-label:not(.district-label) { width: 34px; min-width: 34px; max-width: 34px; min-height: 34px; justify-content: center; padding: 7px; }
  body[data-view="district"] .island-label:not(.district-label) .label-title { display: none; }
  .island-label.district-label { max-width: 150px; min-height: 36px; padding: 8px 11px; gap: 5px; font-size: 11px; }
  .district-label .label-title { display: inline; }
  .loading { inset: 0; }
}
@media (max-width: 390px) {
  .site-header { left: 13px; right: 13px; }
  .brand-plaque { gap: 11px; padding: 10px 11px; }
  .brand-words strong { font-size: 20px; }
  .brand-words > span { font-size: 10px; letter-spacing: 1.5px; }
  .sidebar { padding-left: 15px; padding-right: 15px; }
  .sidebar-heading h2 { font-size: 16px; gap: 6px; }
  .sidebar-footer > span { display: none; }
  .view-controls { right: 13px; }
  .time-control { left: 13px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  :root { --sidebar-width: 270px; --sheet-height: 0px; }
  .island-experience { inset: 0 var(--sidebar-width) 0 0; }
  #stage { inset: 0; }
  .site-header { inset: 14px 13px auto; }
  .brand-plaque { min-height: 61px; gap: 10px; padding: 10px 11px; border-radius: 12px; }
  .brand-words strong { font-size: 18px; }
  .brand-words > span { font-size: 10px; letter-spacing: 1px; }
  .intro h1 { font-size: 11px; }
  .district-navigation { top: 85px; left: 13px; max-width: calc(100% - 80px); gap: 5px; }
  .back-overview { min-height: 40px; padding: 8px 11px; font-size: 11px; }
  .district-heading { padding: 7px 10px; }
  .district-heading h2 { font-size: 14px; }
  .district-heading p { display: none; }
  .help-button { width: 40px; height: 40px; }
  .controls-bar { inset: 0; height: 100%; }
  .time-control { top: auto; bottom: 13px; left: 13px; transform: none; }
  .time-options { padding: 3px; }
  .time-option { min-width: 40px; min-height: 40px; padding: 7px; font-size: 11px; }
  .time-option > span { display: none; }
  .time-option .icon { width: 16px; height: 16px; }
  .view-controls { top: 63px; right: 13px; flex-direction: column; gap: 5px; }
  .tool-button { flex-direction: column; gap: 3px; min-width: 40px; width: 40px; min-height: 40px; padding: 5px; font-size: 11px; }
  .tool-button > span { display: none; }
  .tool-button .icon { width: 16px; height: 16px; }
  .sidebar { inset: 0 0 0 auto; height: 100dvh; width: var(--sidebar-width); min-height: 0; max-height: none; padding: 16px 15px 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
  .sidebar.is-open, body.list-open .sidebar { height: 100dvh; }
  .sheet-handle, .list-toggle { display: none; }
  .sidebar-heading { min-height: 0; padding-bottom: 12px; }
  .sidebar-heading .eyebrow { display: block; font-size: 9px; }
  .sidebar-heading h2 { flex-wrap: wrap; margin-top: 5px; font-size: 18px; gap: 4px 8px; }
  .list-count { font-size: 11px; }
  .sidebar-description, .sidebar.is-open .sidebar-description, body.list-open .sidebar .sidebar-description { display: none; }
  .sidebar .search-field, .sidebar:not(.is-open) .search-field { display: flex; min-height: 40px; }
  .search-field input { font-size: 11px; padding: 10px 0; }
  .sidebar .filters, .sidebar:not(.is-open) .filters { display: flex; flex-wrap: nowrap; overflow: auto; padding: 8px 0; gap: 5px; }
  .filter { min-height: 40px; flex-shrink: 0; padding: 7px 9px; font-size: 11px; }
  .work-list-heading, .sidebar-footer, .sidebar.is-open .sidebar-footer, body.list-open .sidebar .sidebar-footer { display: none; }
  .work-list { border-top: 1px solid var(--line); }
  .work-item { min-height: 70px; gap: 7px; padding: 9px 4px 9px 0; }
  .work-number { flex-basis: 19px; font-size: 16px; }
  .work-thumb { flex-basis: 44px; height: 37px; }
  .work-info h3 { font-size: 11px; }
  .work-info p { font-size: 11px; }
  .work-arrow { flex-basis: 13px; }
  .district-item { min-height: 80px; gap: 7px; padding: 11px 3px 11px 0; }
  .district-number { flex-basis: 19px; font-size: 17px; }
  .district-color { flex-basis: 32px; width: 32px; height: 38px; }
  .district-color::before { left: 7px; }
  .district-color::after { left: 4px; }
  .district-info h3 { font-size: 12px; }
  .selection-card { bottom: 69px; width: min(285px, calc(100% - 26px)); min-height: 88px; }
  #selected-image { flex-basis: 75px; width: 75px; height: 72px; }
  .selection-copy h2 { font-size: 12px; }
  .help-panel { top: 63px; right: 13px; width: 270px; padding: 16px; }
  .loading { inset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* A numbered map keeps the miniature buildings visible on narrow touch screens. */
@media (max-width: 760px) and (orientation: portrait) {
  .island-label { justify-content: center; min-width: 32px; min-height: 32px; padding: 6px; gap: 0; }
  .island-label .label-number { font-size: 11px; }
  .island-label .label-title { display: none; }
  .island-label.is-active { gap: 5px; z-index: 6; }
  .island-label.is-active .label-title { display: inline; }
  .island-label::before { content: ''; position: absolute; inset: -6px; }
}

.no-webgl #loading { display: flex !important; opacity: 1 !important; visibility: visible !important; pointer-events: none; }
.no-webgl #loading p { margin: 4px 20px; text-align: center; font-size: 14px; }
body[data-view="overview"] .island-label.district-label .label-title { display: inline; }
body[data-view="overview"] .island-label.district-label { gap: 5px; }
