/* Garacast, the opening (redesigned 2026-11-11): the garage's door. The application's launch picture is the mark on black: that black
   is the garage's rolling door at night and the mark its emblem. The light comes on inside (a warm line under the door, its slats
   caught from below, the name under the emblem); when the garage answers, the emblem's garage lights and the door rolls up on the
   screen. Only opacity and transform move. Every length of the emblem is in the launch picture's own unit, --u: that picture is a
   square of 2732 that fills the screen's longer side, so the emblem lies exactly where the launch picture drew it.
   The light is the colour the map's own light has (243, 220, 154); the gold is the mark's (#d4af37), flat, as its icon. */
html.gc-opening > body{visibility:hidden}
#gc-open{--u:calc(100vmax / 2732);--p:24px;position:fixed;inset:0;z-index:10050;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
#gc-open .gco-door{position:absolute;left:0;top:0;width:100%;height:100%;background:#0a0a0b;will-change:transform}
/* the light: off as the launch picture is, then on (a lamp warming: longer than an interface's fade, under half a second) */
#gc-open .gco-light{position:absolute;inset:0;opacity:0;transition:opacity .42s cubic-bezier(.23,1,.32,1)}
#gc-open.lit .gco-light{opacity:1}
/* its slow breath, three seconds, between four fifths and full: its instant is read off the clock (the script gives the delay), so
   every page that draws this door breathes as one */
#gc-open .gco-breath{position:absolute;inset:0;animation:gco-breath 3s ease-in-out infinite}
@keyframes gco-breath{0%,100%{opacity:.8}50%{opacity:1}}
/* the slats, 24 points each (a steel slat of 75 mm on a door of 2.9 m, at a phone's height), counted from the door's bottom rail:
   each one catches the light on its underside, and the light dies before half the door's height, under the emblem */
#gc-open .gco-slats{position:absolute;left:0;right:0;top:0;bottom:12px;
  background:repeating-linear-gradient(to top,rgba(0,0,0,.7) 0,rgba(0,0,0,.7) 1px,rgba(243,220,154,.17) 1.5px,rgba(243,220,154,.05) calc(var(--p) * .42),rgba(243,220,154,0) calc(var(--p) * .7),rgba(243,220,154,0) var(--p));
  -webkit-mask-image:linear-gradient(to top,#000 0,rgba(0,0,0,.5) 14%,rgba(0,0,0,.16) 30%,transparent 47%);mask-image:linear-gradient(to top,#000 0,rgba(0,0,0,.5) 14%,rgba(0,0,0,.16) 30%,transparent 47%)}
/* the door's bottom rail, lit from under */
#gc-open .gco-rail{position:absolute;left:0;right:0;bottom:0;height:12px;background:linear-gradient(to top,#4a3f22,#1c1910 70%,#131210)}
/* the light that leaves under the door: its glow up the door's face, and the line itself, which dims toward the door's two ends */
#gc-open .gco-glow{position:absolute;left:0;right:0;bottom:0;height:132px;background:linear-gradient(to top,rgba(243,220,154,.26) 0,rgba(243,220,154,.09) 30%,rgba(243,220,154,0) 100%)}
#gc-open .gco-gap{position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(to right,rgba(255,244,214,0) 0,#fff4d6 16%,#fff4d6 84%,rgba(255,244,214,0) 100%);box-shadow:0 0 14px 2px rgba(243,220,154,.5)}
/* the shadow the door lays on the screen just under its edge, as it rolls up */
#gc-open .gco-shade{position:absolute;left:0;right:0;top:100%;height:72px;background:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}
/* the emblem: the mark, where and as large as the launch picture draws it (the ring's centre a quarter of a unit left of and 15.75
   under the screen's centre, in a box of 760) */
#gc-open .gco-mark{position:absolute;overflow:visible;left:calc(50% - 380.25 * var(--u));top:calc(50% - 364.25 * var(--u));width:calc(760 * var(--u));height:calc(760 * var(--u))}
#gc-open .gco-arc,#gc-open .gco-node{fill:none;stroke:#d4af37;stroke-linecap:butt}
#gc-open .gco-dot{fill:#d4af37}
/* the emblem's garage lights when the garage answers */
#gc-open .gco-on{fill:#fff4d6;opacity:0;transition:opacity .14s linear}
#gc-open.on .gco-on{opacity:1}
/* the name under the emblem, as wide as the ring, the ring's own node away from it: it shows as the light reaches it */
#gc-open .gco-name{position:absolute;overflow:visible;left:calc(50% - 304.25 * var(--u));top:calc(50% + 422.25 * var(--u));width:calc(608 * var(--u));height:calc(67.08 * var(--u));opacity:0;transition:opacity .42s cubic-bezier(.23,1,.32,1) .12s}
#gc-open.lit .gco-name{opacity:1}
#gc-open .gco-ga{fill:#f4efe2}#gc-open .gco-ca{fill:#d4af37}
/* a page opened with no launch picture before it (a browser, an application built before this door): the emblem comes with the light */
#gc-open.fresh .gco-mark{opacity:0;transition:opacity .42s cubic-bezier(.23,1,.32,1)}
#gc-open.fresh.lit .gco-mark{opacity:1}
/* a page that takes the door over from the page before it draws it lit at once, with no fade */
#gc-open.now .gco-light,#gc-open.now .gco-name,#gc-open.now .gco-mark{transition:none}
/* the service does not answer (the application's own page): the light goes out; it comes back with the next try */
#gc-open.dark .gco-light{opacity:0;transition-duration:.6s}
/* the door rolls up: the screen under it is usable as soon as it shows */
#gc-open.go{pointer-events:none}
/* a touch, or reduced motion: the door fades over the screen (it still takes the touch that ended it, so nothing under it is pressed) */
#gc-open.out{opacity:0;transition:opacity .18s linear}
#gc-open.still .gco-breath{animation:none}
#gc-open.still.out{transition:opacity .2s linear}
