/* The first page (front.js): a drawing on a tube's screen, as the loading screen is (loading/loading.css, which this follows):
   light ink on dark glass, phosphor bloom, dark edges, a faint flicker. No text. */

html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
html.nothing body > * { display: none !important; }
#front { position: fixed; inset: 0; background: #000; }
.screen { position: absolute; left: 50%; top: 50%; width: max(100vw, 128.205vh); height: max(100vh, 78vw); transform: translate(-50%, -50%);
          background: radial-gradient(ellipse at 50% 48%, #0e0e0e 0%, #070707 70%, #030303 100%); overflow: hidden; }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0, 0, 0, .55) 100%); }
/* the drawing comes up softly out of the dark, and going through a door goes softly back into it */
.squash { position: absolute; inset: 0; transition: opacity .9s ease; animation: frIn 1.4s ease backwards; }
@keyframes frIn { from { opacity: 0; } }
.screen.leaving .squash { opacity: 0; }
.tube { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
/* the tube's look (glow, colours a hair apart, flicker), on while .screen has the class "look" (front.js gives it) */
.screen.look .tube { filter: url(#frCrt); animation: frFlicker 5s infinite; }
@keyframes frFlicker { 0%, 100% { opacity: 1; } 31% { opacity: 1; } 32% { opacity: .96; } 33% { opacity: 1; } 71% { opacity: .98; } 72% { opacity: 1; } }

.art { width: min(88vw, 74vh); height: auto; max-height: 88vh; overflow: visible; position: relative; z-index: 1; }
.art path { transition: fill .5s; }
.door rect { fill: transparent; }
.door { cursor: pointer; outline: none; }
/* no box round the drawing when it is pressed: no ring, no grey flash under a finger, nothing picked out as text */
#front, #front * { outline: none !important; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.art:has(.door:hover) path, .art:has(.door:focus-visible) path { fill: #ffffff; }     /* the ink brightens under the pointer */

/* THE TUBE SWITCHING OFF: the picture squeezes to a bright line, the line to a dot, the dot fades. Not used by this page since
   2026-11-19 (the artist: a soft fade between pages; the tube's switching off is for the way into the garden only). Kept for a door
   that asks for it (front.json, a door's "leave": "tube"). */
.line { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; z-index: 3; opacity: 0; pointer-events: none; background: #f6f6f6; box-shadow: 0 0 14px 4px rgba(235, 235, 235, .7); }
.screen.off .squash { animation: frOff .55s ease-in forwards; }
.screen.off .line { animation: frLine .55s ease-in forwards; }
@keyframes frOff { 0% { transform: none; opacity: 1; } 40% { transform: scale(1, .02); opacity: 1; } 46% { transform: scale(1, .004); opacity: 0; } 100% { transform: scale(1, .004); opacity: 0; } }
@keyframes frLine { 0%, 34% { transform: none; opacity: 0; } 44% { transform: none; opacity: 1; } 75% { transform: scale(.02, 1); opacity: 1; } 100% { transform: scale(0, 1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .screen.look .tube { animation: none; } }
