:root { color-scheme: dark; background: #030303; color: #a5a5a0; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
[hidden] { display: none !important; }
.universe { position: relative; display: grid; place-items: center; width: 100%; height: 100svh; min-height: 260px; overflow: hidden; }
.aperture { --diameter: min(88svh, 88vw); position: relative; display: block; width: var(--diameter); height: var(--diameter); padding: 0; border: 0; border-radius: 50%; background: #030303; overflow: hidden; isolation: isolate; cursor: pointer; touch-action: pan-y; }
.optics { display: block; position: absolute; inset: 0; filter: blur(var(--defocus, 0px)); transform: scale(var(--breathing, 1)); will-change: filter, transform; }
.scene { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; transition: opacity 1.2s ease-in-out; }
.scene img, .scene video { position: absolute; display: block; max-width: none; height: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; user-select: none; }
/* Crop the surrounding borders in CSS; keep the downloaded files untouched. */
.scene--balloon img, .scene--balloon video { width: 111%; }
.scene--balloon video { aspect-ratio: 850 / 841; }
.scene--house img, .scene--house video { width: 133%; left: 49.1%; }
.scene video { opacity: 0; }
.scene video.is-playing { opacity: 1; }
.top-controls { position: absolute; z-index: 5; top: max(14px, env(safe-area-inset-top)); right: 22px; display: flex; align-items: center; gap: 4px; }
.world-switch { display: grid; place-items: center; min-width: 64px; height: 44px; padding: 0 8px; border: 0; border-radius: 2px; background: transparent; color: #aaa9a3; font-size: 9px; letter-spacing: .12em; cursor: pointer; opacity: .65; transition: opacity .25s; }
.world-switch:hover, .world-switch:focus-visible { opacity: 1; }
.world-switch:disabled { cursor: default; }
.lens { position: absolute; inset: -1px; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 4px 2px #030303, inset 0 0 24px 2px rgb(0 0 0 / 16%); background: radial-gradient(circle, transparent 64%, rgb(0 0 0 / 9%) 89%, rgb(0 0 0 / 32%) 100%); }
.caption { position: absolute; z-index: 3; top: max(14px, env(safe-area-inset-top)); left: 50%; display: flex; align-items: center; min-height: 44px; width: max-content; max-width: calc(100% - 420px); transform: translateX(-50%); pointer-events: none; }
.caption, .top-controls, .edge { transition: opacity .6s ease, visibility 0s; }
.caption.is-dismissed, .universe.is-idle .top-controls, .universe.is-idle .edge { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.universe.is-idle, .universe.is-idle * { cursor: none !important; }
.universe.is-idle :focus-visible { outline: none; }
.arrival { margin: 0; text-align: center; font-size: 10px; line-height: 1.6; letter-spacing: .035em; color: #a5a5a0; opacity: .85; }
.info { flex: 0 0 44px; pointer-events: auto; }
.info-trigger { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; opacity: .65; transition: opacity .2s; }
.info-trigger svg { width: 16px; height: 16px; }
.info-trigger:hover, .info-trigger:focus-visible, .info-trigger[aria-expanded="true"] { opacity: 1; }
.info-panel { position: absolute; right: 0; top: calc(100% - 2px); width: 280px; max-width: calc(100vw - 48px); padding: 16px 18px; border: 1px solid #292927; border-radius: 4px; background: #10100f; color: #b4b4ac; font-size: 11px; line-height: 1.7; animation: reveal-info .18s ease-out; }
.info-panel p { margin: 0; }
@keyframes reveal-info { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.edge { position: absolute; z-index: 4; inset: auto 22px max(15px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.edge a, .edge button { pointer-events: auto; }
.author { min-height: 44px; display: inline-flex; align-items: center; color: #a5a5a0; font-size: 10px; text-decoration: none; opacity: .8; transition: opacity .2s; }
.author:hover, .author:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.right-edge { position: relative; display: flex; align-items: center; gap: 8px; }
.clock { font-size: 10px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.sound { display: grid; place-items: center; width: 44px; height: 44px; padding: 14px; border: 0; border-radius: 50%; background: transparent; color: #aaa9a3; cursor: pointer; opacity: .52; transition: opacity .25s; }
.sound:hover, .sound:focus-visible { opacity: 1; }
.sound svg { width: 16px; height: 16px; }
.sound-waves { display: none; }
.sound[aria-pressed="true"] .sound-waves { display: block; }
.sound[aria-pressed="true"] .sound-slash { display: none; }
:focus-visible { outline: 1px solid #d4d1c3; outline-offset: 5px; }
.aperture:focus-visible { outline-offset: 8px; }
.error, .no-script { position: fixed; inset: auto 20px 80px; text-align: center; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .aperture { --diameter: min(94vw, 80svh); }
  .edge { left: 12px; right: 22px; }
  .caption { top: calc(max(14px, env(safe-area-inset-top)) + 44px); max-width: calc(100% - 40px); min-height: 32px; }
  .arrival { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .optics { will-change: auto; }
}
