:root{--gold:#f3c97a;--gold-soft:#ffe2a6;--cream:#fff4dc;--mint:#b9f7d6;--sans:"Be Vietnam Pro", system-ui, sans-serif;--serif:"Cormorant Garamond", Georgia, serif}*{box-sizing:border-box}html,body{height:100%;color:var(--cream);font-family:var(--sans);overscroll-behavior:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;background:#000;margin:0;overflow:hidden}#stage{touch-action:none;width:100%;height:100%;display:block;position:fixed;inset:0}body.recording #stage{aspect-ratio:9/16;width:auto;max-width:100%;height:100%;margin:auto;inset:0}.controls{top:calc(10px + env(safe-area-inset-top));gap:2px;display:flex;position:fixed;right:10px}.control{color:#fff4dcbf;cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;width:44px;height:44px;display:grid}.control[hidden],body.recording .controls,#mute .cross,#mute.off .waves{display:none}#mute.off .cross{display:inline}#gate{z-index:10;background:radial-gradient(42% 30% at 50% 36%,#2fd27f33 0%,#0000 70%),radial-gradient(70% 50% at 50% 100%,#f3c97a1a 0%,#0000 70%),radial-gradient(120% 90% at 50% 40%,#07140e 0%,#000 72%);place-items:center;padding:28px;transition:opacity 1.3s .25s,visibility 0s linear 1.6s;display:grid;position:fixed;inset:0;overflow:hidden}#gate.gone{opacity:0;visibility:hidden;pointer-events:none}#gate.done{transition:opacity .8s}.gate-snow i{will-change:transform;background-repeat:repeat;animation:linear infinite snowfall;position:absolute;inset:-100% 0 0}.gate-snow i:first-child{background-image:radial-gradient(1.4px 1.4px at 22px 34px,#ffffffd9,#0000 100%),radial-gradient(1.2px 1.2px at 118px 92px,#ffffffb3,#0000 100%),radial-gradient(1.6px 1.6px at 176px 150px,#fffc,#0000 100%),radial-gradient(1.1px 1.1px at 70px 188px,#ffffffa6,#0000 100%);background-size:220px 220px;animation-duration:18s}.gate-snow i:nth-child(2){background-image:radial-gradient(2.2px 2.2px at 44px 60px,#ffffff8c,#0000 100%),radial-gradient(1.8px 1.8px at 210px 170px,#ffffff80,#0000 100%),radial-gradient(2px 2px at 150px 290px,#fff4dc80,#0000 100%);background-size:340px 340px;animation-duration:28s}.gate-snow i:nth-child(3){background-image:radial-gradient(3.4px 3.4px at 90px 120px,#ffffff47,#0000 100%),radial-gradient(3px 3px at 380px 330px,#ffffff3d,#0000 100%);background-size:520px 520px;animation-duration:40s}@keyframes snowfall{to{transform:translate(-24px,50%)}}.gate-frame{inset:max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));opacity:0;border:1px solid #f3c97a38;border-radius:22px;animation:1.6s .6s forwards rise;position:absolute;-webkit-mask-image:linear-gradient(#000,#000),linear-gradient(#000,#000);mask-image:linear-gradient(#000,#000),linear-gradient(#000,#000);-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:calc(100% - 96px) 100%,100% calc(100% - 96px);mask-size:calc(100% - 96px) 100%,100% calc(100% - 96px);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.gate-inner{text-align:center;flex-direction:column;align-items:center;max-width:100%;transition:transform 1.2s cubic-bezier(.3,0,.2,1),opacity .9s;display:flex;position:relative}#gate.gone .gate-inner{opacity:0;transform:scale(1.12)}.gate-inner>*{opacity:0;animation:1.1s cubic-bezier(.2,.7,.2,1) forwards rise}.gate-inner>.gate-tree{opacity:1;animation:none}.gate-inner>.eyebrow{animation-delay:.9s}.gate-inner>.gate-sub{animation-delay:1.4s}.gate-inner>#open,.gate-inner>.gate-progress{animation-delay:1.7s}.gate-inner>.gate-sound{animation-delay:2s}@keyframes rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.gate-tree{filter:drop-shadow(0 0 10px #2fd27f73);width:min(42vw,168px);height:auto;margin-bottom:26px;overflow:visible}.gate-ground{fill:#b9f7d629;filter:blur(3px)}.gate-spiral{fill:none;stroke:url(#gate-ribbon);stroke-width:1.5px;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1px;animation:2.6s cubic-bezier(.5,0,.3,1) .2s forwards draw,3.2s ease-in-out 3s infinite shimmer}@keyframes draw{to{stroke-dashoffset:0}}@keyframes shimmer{50%{stroke-width:2.1px}}.gate-star{fill:var(--gold-soft);transform-origin:60px 19px;filter:drop-shadow(0 0 5px #ffe2a6f2);animation:.7s cubic-bezier(.2,1.6,.4,1) 2.5s forwards star-in,2.8s ease-in-out 3.4s infinite twinkle;transform:scale(0)}@keyframes star-in{to{transform:scale(1)}}@keyframes twinkle{50%{filter:drop-shadow(0 0 10px #ffe2a6);transform:scale(1.14)rotate(6deg)}}.eyebrow{letter-spacing:.42em;text-indent:.42em;text-transform:uppercase;color:var(--gold);align-items:center;gap:14px;margin:0 0 12px;font-size:11px;display:flex}.eyebrow:before,.eyebrow:after{content:"";background:linear-gradient(90deg, transparent, var(--gold));width:30px;height:1px}.eyebrow:after{transform:scaleX(-1)}#gate-names{font-family:var(--serif);overflow-wrap:anywhere;background:linear-gradient(100deg, var(--cream) 30%, #fff 46%, var(--gold-soft) 54%, var(--cream) 70%);color:#0000;background-size:260% 100%;-webkit-background-clip:text;background-clip:text;margin:0;padding:0 4px 6px;font-size:clamp(38px,10.5vw,68px);font-style:italic;font-weight:500;line-height:1.12;animation:1.1s cubic-bezier(.2,.7,.2,1) 1.15s forwards rise,5.5s ease-in-out 2.6s infinite sheen}@keyframes sheen{0%{background-position:100% 0}to{background-position:-40% 0}}#gate-names .icon{vertical-align:.06em;width:.5em;height:.5em;fill:var(--gold);filter:drop-shadow(0 0 6px #f3c97a8c);margin:0 .36em}#gate-names .icon-line{margin-top:.12em;line-height:1;display:block}#gate-names .icon-line .icon{width:.42em;height:.42em;margin:0}#gate-names .icon.stroke{fill:none;stroke:var(--gold);stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round}.gate-sub{letter-spacing:.04em;color:#fff4dca8;margin:10px 0 34px;font-size:13px}#open{font:400 13px var(--sans);letter-spacing:.1em;color:#fff4dc99;cursor:default;background:0 0;border:1px solid #f3c97a4d;border-radius:999px;min-width:220px;padding:16px 38px;transition:color .5s,background .5s,box-shadow .5s,border-color .5s,transform .2s;position:relative}#gate.ready #open{color:#1a1408;background:linear-gradient(180deg, var(--gold-soft), var(--gold));cursor:pointer;border-color:#0000;font-weight:600;box-shadow:0 0 36px #f3c97a66,inset 0 1px #ffffff8c}#gate.ready #open:before,#gate.ready #open:after{content:"";border-radius:inherit;border:1px solid var(--gold);pointer-events:none;animation:2.6s ease-out infinite ring;position:absolute;inset:-1px}#gate.ready #open:after{animation-delay:1.3s}@keyframes ring{0%{opacity:.7;transform:scale(1)}to{opacity:0;transform:scale(1.22,1.7)}}#gate.ready #open:active{transform:scale(.96)}#gate.done #open{color:var(--gold-soft);border-color:#f3c97a80}.gate-progress{background:#fff4dc1f;border-radius:2px;width:140px;height:2px;margin-top:18px;overflow:hidden}.gate-progress i{background:linear-gradient(90deg, var(--mint), var(--gold-soft));transform-origin:0;height:100%;transition:transform .4s;display:block;transform:scaleX(.04)}#gate.ready .gate-progress,#gate.done .gate-progress,#gate.done .gate-sound{visibility:hidden}.gate-sound{color:#fff4dc80;align-items:center;gap:8px;margin:8px 0 0;font-size:12px;display:flex}#gate-error{color:#ff9a8f;max-width:30ch;margin:18px 0 0;font-size:14px;line-height:1.5;animation-delay:0s}#gate.failed .eyebrow,#gate.failed .gate-sub,#gate.failed #open,#gate.failed .gate-progress,#gate.failed .gate-sound{display:none}@media (prefers-reduced-motion:reduce){.gate-snow i,.gate-spiral,.gate-star,#gate-names,#gate.ready #open:before,#gate.ready #open:after{animation:none}.gate-spiral{stroke-dashoffset:0}.gate-star{transform:none}.gate-inner>*,.gate-frame,#gate-names{opacity:1}}
