:root { color-scheme: dark; --ivory: #fff1df; --ink: #080c20; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: var(--ink); color: var(--ivory); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
.auto-show { width: 100%; height: 100vh; height: 100dvh; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 6% 38%, #24203c 0, transparent 48%), radial-gradient(ellipse at 94% 66%, #21223b 0, transparent 48%), #080c20; }
.scene-frame { position: relative; width: min(100vw, calc(100vh * 2 / 3)); width: min(100vw, calc(100dvh * 2 / 3)); aspect-ratio: 2 / 3; flex: none; box-shadow: 0 0 100px 18px #070b1c; }
.scene-image { display: block; width: 100%; height: 100%; user-select: none; }
.scene-art { display: block; width: 100%; height: 100%; }
.scene-links-desktop { display: none; }
.scene-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.scene-link { cursor: pointer; outline: none; }
.scene-link polygon { fill: transparent; stroke: transparent; stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linejoin: round; pointer-events: all; transition: fill .18s ease, stroke .18s ease; }
.scene-link:hover polygon, .scene-link:focus-visible polygon, .scene-link.is-highlighted polygon { fill: #fff1df18; stroke: #fff1dfd9; }
.scene-link:focus-visible polygon { stroke-width: 2.5px; fill: #fff1df25; }
.gallery-menu { position: fixed; z-index: 20; top: max(20px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); width: 244px; color: var(--ivory); }
.gallery-menu summary { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; min-height: 44px; margin-left: auto; padding: 12px 17px; border: 1px solid #fff1df45; border-radius: 6px; background: #0b1129e8; backdrop-filter: blur(16px); font-size: 12px; line-height: 18px; letter-spacing: .1em; cursor: pointer; list-style: none; box-shadow: 0 3px 20px #0003; }
.gallery-menu summary::-webkit-details-marker { display: none; }
.menu-icon { display: grid; grid-template-columns: repeat(2, 4px); gap: 3px; }
.menu-icon i { width: 4px; height: 4px; background: currentColor; border-radius: 1px; }
.gallery-menu nav { display: grid; gap: 2px; margin-top: 8px; padding: 8px; border: 1px solid #fff1df33; border-radius: 7px; background: #0b1129f5; backdrop-filter: blur(20px); box-shadow: 0 12px 50px #0006; max-height: calc(100vh - 94px); max-height: calc(100dvh - 94px); overflow-y: auto; }
.gallery-menu nav a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 12px 10px; border-radius: 4px; color: inherit; font-size: 14px; line-height: 20px; text-decoration: none; }
.gallery-menu small { color: #bbb9cf; font-size: 11px; white-space: nowrap; }
.gallery-menu small span { margin-left: 5px; }
.gallery-menu a:hover, .gallery-menu summary:hover { background-color: #2a2943; }
.gallery-menu :focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.home-visitors { position: fixed; left: max(24px, env(safe-area-inset-left)); bottom: max(22px, env(safe-area-inset-bottom)); margin: 0; max-width: 180px; color: #d9d2e5; font-size: 11px; line-height: 1.7; letter-spacing: .06em; text-shadow: 0 1px 8px #000; pointer-events: none; }
.hint-touch { display: none; }
.visitor-count { display: block; margin-top: 5px; color: #fff1df; font-size: 10px; letter-spacing: .025em; font-variant-numeric: tabular-nums; }
.visitor-count[hidden] { display: none; }
.scene-tooltip { position: fixed; z-index: 30; max-width: calc(100vw - 24px); padding: 11px 14px; border: 1px solid #fff1df55; border-radius: 5px; background: #0b1129f5; box-shadow: 0 8px 30px #0005; pointer-events: none; white-space: nowrap; }
.scene-tooltip strong { display: block; color: var(--ivory); font-size: 13px; font-weight: 600; letter-spacing: .02em; line-height: 1.4; }
.scene-tooltip span { display: block; margin-top: 3px; color: #c5bed4; font-size: 11px; line-height: 1.4; }
.scene-tooltip[hidden] { display: none; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 50; top: 20px; left: 20px; padding: 12px 16px; background: var(--ivory); color: var(--ink); border-radius: 4px; }
@media (max-width: 700px) {
  .gallery-menu { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
  .gallery-menu summary { padding: 10px 14px; font-size: 11px; }
  .home-visitors { left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 24px); transform: translateX(-50%); padding: 5px 10px; border-radius: 4px; background: #0b1129c9; font-size: 10px; }
}
@media (hover: none), (pointer: coarse) { .hint-desktop { display: none; } .hint-touch { display: inline; } }
@media (max-height: 500px) { .home-visitors { display: none; } }
@media (prefers-reduced-motion: reduce) { .scene-link polygon { transition: none; } }
@media (min-width: 900px) and (min-aspect-ratio: 4/3) {
  .auto-show { position: relative; isolation: isolate; }
  .auto-show::before { content: ""; position: absolute; z-index: -1; inset: -30px; background: url('/assets/leonida-ten-panel-20261020-desktop-1920.webp') center / cover; filter: blur(24px) brightness(.55); }
  .scene-frame { width: min(100vw, calc(100vh * 2730 / 1536)); width: min(100vw, calc(100dvh * 2730 / 1536)); aspect-ratio: 2730 / 1536; box-shadow: none; }
  .scene-links-portrait { display: none; }
  .scene-links-desktop { display: block; }
}
/* Three compositions use matching image and hotspot coordinate systems. */
.scene-links-phone{display:none}
.scene-tap-target{position:absolute;z-index:5;display:block;min-width:44px;min-height:44px;border-radius:5px;transform:translate(-50%,-50%)}
.scene-tap-target:focus-visible{outline:2px solid #fff1df;background:#fff1df25;outline-offset:2px}
.diary-tap{left:20.85%;top:5.4%;width:6.2%;height:6.8%}.host-tap{left:50%;top:12.7%;width:25.3%;height:4%}
.gallery-menu nav a span:last-child{color:#c6b4c9}
@media (max-aspect-ratio:3/5){
 .scene-frame{width:min(100vw,calc(100dvh * 6 / 13));aspect-ratio:6/13}
 .scene-links-portrait,.scene-links-desktop{display:none}.scene-links-phone{display:block}
 .diary-tap{left:20.85%;top:9.7%;height:5.8%}.host-tap{left:50%;top:15.6%;height:5.6%}
 .home-visitors{bottom:max(6px,env(safe-area-inset-bottom));font-size:9px}
 .gallery-menu{top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right))}
}
@media (min-aspect-ratio:4/3){
 .auto-show{position:relative;isolation:isolate}.auto-show::before{content:"";position:absolute;z-index:-1;inset:-30px;background:url('/assets/leonida-ten-panel-20261020-desktop-1920.webp') center/cover;filter:blur(24px) brightness(.55)}
 .scene-frame{width:min(100vw,calc(100dvh * 2730 / 1536));aspect-ratio:2730/1536;box-shadow:none}
 .scene-links-portrait,.scene-links-phone{display:none}.scene-links-desktop{display:block}
 .diary-tap{left:39.1%;top:5.4%;width:2.4%;height:6.8%}.host-tap{left:50%;top:12.7%;width:9.6%;height:4%}
}
@media (max-height:500px){.gallery-menu{top:8px;right:8px}.gallery-menu nav{max-height:calc(100dvh - 65px)}.gallery-menu summary{padding:8px 12px}.gallery-menu nav a{min-height:44px;padding:9px 10px}}

/* The atlas is an additional way into the existing collections. */

.scene-link.discovery-locked{pointer-events:none!important}.scene-link.discovery-locked polygon{pointer-events:none!important}

/* The expanded menu is a complete directory, with no nested disclosures. */
.full-gallery-menu nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(520px,calc(100vw - 40px));gap:2px}
.full-gallery-menu nav a{gap:12px;line-height:1.4;min-height:44px}
.full-gallery-menu nav .gallery-menu-label{color:inherit}
@media(max-width:600px){.full-gallery-menu nav a{font-size:12px;padding:10px}}

.full-gallery-menu{width:min(520px,calc(100vw - 40px))}
.full-gallery-menu nav{width:100%}

/* Fill the mobile browser's visible page, not its unremovable browser chrome.
   Scale the complete artwork + hotspot frame together: object-fit on the image
   alone would move the pictured subjects away from their SVG tap targets.
   Top alignment retains the baked-in sky title. Taller artwork scrolls within
   the viewport so the cars and character hotspots remain reachable. */
@media (max-width:899px) {
 .auto-show{place-items:start center;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;touch-action:pan-y pinch-zoom}
 .scene-frame{width:max(100vw,calc(100vh * 2 / 3));width:max(100vw,calc(100dvh * 2 / 3));box-shadow:none}
}
@media (max-width:899px) and (max-aspect-ratio:3/5) {
 .scene-frame{width:max(100vw,calc(100vh * 6 / 13));width:max(100vw,calc(100dvh * 6 / 13))}
}
@media (max-width:899px) and (min-aspect-ratio:4/3) {
 .scene-frame{width:max(100vw,calc(100vh * 2730 / 1536));width:max(100vw,calc(100dvh * 2730 / 1536))}
}
