/* The gate before the opening (v2, 26 Nov 2026, Humza's design): a blurred white dove behind fogged glass; a droplet falls
   into the middle, is absorbed with a small rebound and sends out rings; then a faint Tap wavers in the middle like a reflection. Pressing it starts the music,
   everything fades away slowly, and the opening begins. */
html:has(#gate),html:has(#gate) body{overflow:hidden}
#gate{position:fixed;inset:0;z-index:1000;background:#2a211b;overflow:hidden;transition:opacity 2.6s cubic-bezier(.4,0,.2,1)}
#gate canvas,#gate .still{position:absolute;inset:0;width:100%;height:100%;display:block}
#gate .still{background-repeat:no-repeat;background-position:center;animation:gateBreathe 14s ease-in-out infinite alternate}   /* the dove, under the glass */
@keyframes gateBreathe{from{transform:scale(1)}to{transform:scale(1.03)}}
#gate canvas{pointer-events:none}
/* the fog: a soft Paper haze, a gentle vignette and fine grain, as on the sign-up glass */
#gate .fog{position:absolute;inset:0;pointer-events:none;
  -webkit-backdrop-filter:blur(16px) saturate(1.05);backdrop-filter:blur(16px) saturate(1.05);   /* frosted glass over the dove and the rings (Humza, 25 Nov: more blur, misty glass) */
  background:radial-gradient(120% 95% at 50% 46%,rgba(238,230,217,.22),rgba(238,230,217,.12) 55%,rgba(28,15,7,.22))}
#gate .fog::after{content:"";position:absolute;inset:0;   /* mist: soft uneven light, as on breathed-on glass */
  background:radial-gradient(60% 45% at 28% 30%,rgba(255,252,246,.14),transparent 70%),radial-gradient(55% 50% at 74% 72%,rgba(255,252,246,.10),transparent 70%),radial-gradient(40% 35% at 70% 22%,rgba(28,15,7,.06),transparent 70%)}
#gate .grain{position:absolute;inset:-50%;pointer-events:none;opacity:.26;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
/* the button is the whole screen (tap anywhere); inside it the droplet (i) and its small rebound (b.re), moved by gate.js */
#gate .dot{position:absolute;inset:0;width:100%;height:100%;margin:0;border:0;padding:0;background:none;cursor:pointer;
  -webkit-tap-highlight-color:transparent;transition:opacity .9s ease}
#gate .dot i,#gate .dot b{position:absolute;left:50%;top:50%;border-radius:50% 50% 50% 50% / 58% 58% 42% 42%;opacity:0;will-change:transform,opacity;
  background:radial-gradient(circle at 38% 32%,#fff 0 18%,#F6F1E8 40%,rgba(222,212,196,.92) 100%);
  box-shadow:0 0 0 .5px rgba(28,15,7,.18),0 2px 6px rgba(28,15,7,.22),0 0 14px 3px rgba(246,241,232,.45)}
#gate .dot i{width:12px;height:12px;margin:-6px 0 0 -6px}
#gate .dot b{width:6px;height:6px;margin:-3px 0 0 -3px}
#gate .dot:focus-visible{outline:none}
#gate .dot:focus-visible~.tap{text-decoration:underline;text-underline-offset:6px}
#gate:not(.open) .dot:focus-visible~.tap{opacity:.62!important}   /* under keyboard focus Tap stays in view, at its strongest (F25, 27 Nov) */
/* Tap: faint, as if seen in the water's reflection: a soft wavering line (SVG water filter, moved by gate.js) */
#gate .tap{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;opacity:0;
  font:400 13.5px/1 "Duif Soft","Gilda Display",serif;letter-spacing:.06em;color:rgba(28,15,7,.36);   /* half the first size (Humza, 26 Nov) */
  text-shadow:0 .5px .5px rgba(255,251,244,.6),0 0 7px rgba(255,251,244,.4);filter:url(#gateWater) blur(.3px);padding:10px 16px;will-change:opacity,transform}
#gate .fx{position:absolute}
/* rings drawn in CSS only when WebGL is missing */
#gate .ring{position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;
  border:1px solid rgba(238,230,217,.5);pointer-events:none;animation:gateRing 4.8s cubic-bezier(.2,.6,.3,1) forwards}
@keyframes gateRing{from{transform:scale(1);opacity:.7}to{transform:scale(26);opacity:0}}
#gate.open{opacity:0;pointer-events:none}
#gate.open .dot,#gate.open .tap{opacity:0!important;transition:opacity .6s ease}
#gate .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

