/* v35: lens falloff and a fine sensor grain for the interior tour. Purely
   optical; never blocks pointer input; omitted when the viewer asks for more
   contrast, and the grain holds still when motion is reduced. */
.tour-scene::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:
    url("assets/tour-v35/grain.png"),
    radial-gradient(ellipse 75% 70% at 50% 48%,transparent 58%,rgba(28,22,14,.16) 100%);
  animation:tour-grain .5s steps(3) infinite}
@keyframes tour-grain{0%{background-position:0 0,0 0}33%{background-position:-37px 21px,0 0}66%{background-position:23px -41px,0 0}100%{background-position:0 0,0 0}}
@media (prefers-reduced-motion:reduce){.tour-scene::after{animation:none}}
/* Standard quality keeps the grain still (no per-frame compositing); light
   quality drops it and keeps only the lens falloff. */
.tour-scene[data-quality-mode="standard"]::after{animation:none}
.tour-scene[data-quality-mode="lite"]::after{animation:none;background:radial-gradient(ellipse 75% 70% at 50% 48%,transparent 58%,rgba(28,22,14,.16) 100%)}
@media (prefers-contrast:more){.tour-scene::after{display:none}}
/* Fifty-years mode: always-visible way back to today (top centre, clear of the close button). */
.tour-age-exit{position:fixed;z-index:60;top:calc(env(safe-area-inset-top,0px) + 12px);left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:1px;padding:7px 16px;border-radius:999px;border:1px solid #fff6;background:#1b1712d9;color:#f3ede2;font:600 13px/1.3 system-ui,sans-serif;cursor:pointer;box-shadow:0 4px 14px #0005;backdrop-filter:blur(6px)}
.tour-age-exit small{font-size:10px;font-weight:400;letter-spacing:.08em;opacity:.75}
.tour-age-exit:hover{background:#2b241cdd}.tour-age-exit:focus-visible{outline:2px solid #e7c98f;outline-offset:2px}
@media (max-width:560px){.tour-age-exit{top:calc(env(safe-area-inset-top,0px) + 112px);font-size:12px;padding:6px 14px}}
