:root { color-scheme: light; font-family: Apercu, "Helvetica Neue", Arial, sans-serif; color: #282b26; background: #f8f7f3; }
* { box-sizing: border-box; }
body { margin: 0; }
main { min-height: 100svh; display: grid; place-items: center; }
#incompatible, noscript p { margin: 24px; max-width: 34ch; text-align: center; font-size: clamp(17px, 2.4vw, 22px); line-height: 1.45; text-wrap: balance; }
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #ffc974; outline-offset: -4px; }
[hidden] { display: none !important; }
#surface { position: fixed; inset: 0; background: #131611; display: grid; place-items: center; }
#frame { position: relative; width: min(100vw, 191.05svh); aspect-ratio: 1024 / 536; }
.entry { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.entry img { width: 100%; height: 100%; display: block; }
.touch { position: absolute; left: 50%; top: 50%; pointer-events: none; transform: translate(-50%,-50%); background: #141812df; color: white; padding: .66em 1em; border-radius: 2em; text-align: center; line-height: 1.3; font-size: 14px; max-width: calc(100% - 36px); width: max-content; }
.info, .close { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; }
.info { position: absolute; right: max(4px, env(safe-area-inset-right)); bottom: 4px; }
.info span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #faf9f3; color: #20231e; box-shadow: 0 0 0 1px #1a201c55; font: italic 600 17px Georgia, serif; }
#note { position: absolute; left: max(14px, env(safe-area-inset-left)); top: max(14px, env(safe-area-inset-top)); max-width: min(65vw, 34ch); color: white; background: #181d17dc; padding: 7px 10px; border-radius: 4px; font-size: 13px; pointer-events: none; }
#note:empty, .exit { display: none; }
#surface[data-immersive], #surface:xr-overlay { background: transparent; pointer-events: none; }
#surface[data-immersive] #frame { position: absolute; inset: 0; width: 100%; height: 100%; }
#surface[data-immersive] .entry, #surface[data-immersive] .touch { display: none; }
#surface[data-immersive] .info { bottom: max(7px, env(safe-area-inset-bottom)); pointer-events: auto; }
#surface[data-immersive] .exit { display: block; position: absolute; right: max(12px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); color: white; background: #181d17cf; padding: 8px 12px; border: 0; border-radius: 2em; font-size: 13px; pointer-events: auto; }
#description { position: absolute; z-index: 2; inset: 0; display: grid; align-items: end; justify-items: end; background: #14171150; pointer-events: auto; }
.sheet { position: relative; width: min(100%, 30rem); max-height: 90svh; overflow-y: auto; background: #f8f7f3; padding: 25px max(26px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) 26px; }
.close { position: absolute; top: 6px; right: 6px; font-size: 24px; }
.artist, .caption, .tip { font-size: 13px; }
h1 { font-size: clamp(31px,7vw,44px); line-height: 1; letter-spacing: -.045em; font-weight: 500; margin: 12px 0 18px; }
p { line-height: 1.48; margin: 0 0 12px; }
.sheet p:last-child { margin-bottom: 0; }
.caption { margin-top: 18px; padding-top: 12px; border-top: 1px solid #bec0b8; }
