/* Login-only scene. Functional controls are visible before JavaScript. */
.login-page .page-wrap{overflow-x:clip}
.cinematic-login{position:relative;isolation:isolate;min-height:660px;gap:42px;padding-block:62px 68px}
.cinematic-login .hero-copy{position:relative;z-index:2;min-width:0}
.cinematic-login h1{font-size:clamp(34px,3.35vw,51px);line-height:1.8;letter-spacing:-1px}
.cinematic-login h1 .headline-line{display:block;position:relative;overflow:clip;padding-block:.08em;margin-block:-.08em;color:var(--text)}
.cinematic-login h1 .headline-text{display:block;color:inherit}
.cinematic-login h1 .headline-gold{color:#e9c88e}
.headline-gleam{position:absolute;inset-inline:6% 4%;bottom:5px;height:1px;background:linear-gradient(90deg,transparent,#cda36490,#f2ddaf,transparent);transform-origin:right center;opacity:.5}
.cinematic-login .login-welcome{margin:18px 0 0;font-size:15px;line-height:2;color:var(--text);max-width:440px}
.cinematic-login .intro{margin-block:16px 29px}
.cinematic-login .intro>span+span{margin-top:12px}
.cinematic-login h1 bdi{letter-spacing:0}
.cinematic-login .intro>span{display:block;text-wrap:pretty}
.login-atmosphere{position:absolute;inset:-100px -56px -20px;z-index:-1;overflow:clip;pointer-events:none}
.login-atmosphere>span{position:absolute;display:block;pointer-events:none}
.atmosphere-warm{width:640px;height:640px;left:-60px;top:-80px;background:radial-gradient(ellipse,#ab804017,transparent 66%)}
.atmosphere-soft{width:480px;height:420px;right:-70px;top:80px;background:radial-gradient(ellipse,#b3925810,transparent 68%)}
.atmosphere-horizon{left:2%;right:3%;bottom:6%;height:1px;background:linear-gradient(90deg,transparent,#ddbd7c24,transparent);transform:rotate(-16deg)}
.atmosphere-grid{width:480px;height:480px;left:3%;top:50px;background-image:linear-gradient(#c5a36d07 1px,transparent 1px),linear-gradient(90deg,#c5a36d07 1px,transparent 1px);background-size:70px 70px;mask-image:radial-gradient(ellipse,#000,transparent 70%)}
.cinematic-login .bell-art{height:525px;width:100%;perspective:950px;margin:0}
.bell-visual{position:absolute;inset:0;pointer-events:none;perspective:950px}
.cinematic-login .bell-art:before{display:none}
.cinematic-login .art-grid{inset:4%;background-size:55px 55px;opacity:.55}
.ring-position{position:absolute;width:115%;aspect-ratio:1;inset:50% auto auto 50%;translate:-50% -50%;max-width:570px}
.ring-depth{position:absolute;inset:0;width:100%;height:100%}
.bell-rings{width:100%;height:100%;overflow:visible}
.cinematic-ring{stroke:#c8a363;stroke-width:.65}
.ring-outer{stroke-opacity:.23;stroke-dasharray:2 9}
.ring-middle{stroke-opacity:.22}
.ring-inner{stroke-opacity:.27;stroke-dasharray:1 5}
.ring-arc{stroke:#e0ba7b;stroke-width:1;opacity:.6}
.ring-markers{stroke:#d5b67a;fill:#d5b67a;stroke-width:.6;opacity:.65}
.bell-pulse{stroke:#e9c586;stroke-width:1;opacity:0;transform-origin:center}
/* Keep percentage centering on static wrappers, separate from GSAP x/y transforms. */
.bell-position{position:absolute;inset:50% auto auto 50%;width:278px;height:332px;translate:-50% -54%;perspective:950px}
.bell-depth{position:absolute;inset:0;width:100%;height:100%;perspective:800px}
.cinematic-login .art-seal{width:100%;height:100%;margin:0;overflow:hidden;border-radius:124px 124px 28px 28px;background:linear-gradient(138deg,#424033,#20211f 33%,#111416 72%);border-color:#a187565e;box-shadow:inset 0 1px #f5dca65c,inset 0 -5px #a6824320,0 24px 52px #0005;transform:rotate(-7deg)}
.cinematic-login .seal-edge{position:relative;width:calc(100% - 18px);height:calc(100% - 18px);border-radius:116px 116px 21px 21px;border-color:#d5b67a2c;background:radial-gradient(ellipse at 35% 15%,#d5b67a08,transparent 55%)}
.seal-topline{position:absolute;left:12px;right:12px;text-align:center;color:#c5ad7f;font:8px/1.5 Arial,sans-serif;letter-spacing:3.3px}
.seal-topline{top:38px}
.bell-sculpture{width:148px;height:174px;overflow:visible}
.bell-glyph{transform-origin:60px 24px}.bell-clapper{transform-origin:60px 110px}
.seal-sheen{position:absolute;inset:-20% auto -20% -70%;width:45%;transform:rotate(24deg);background:linear-gradient(90deg,transparent,#fff2ce0c,transparent);pointer-events:none}
.scene-lamp{position:absolute;left:50%;top:50%;width:370px;height:370px;margin:-185px;background:radial-gradient(ellipse,#d1a65b17,#b58b4909 36%,transparent 68%);pointer-events:none}

.bell-play{position:absolute;left:50%;top:50%;translate:-50% -54%;width:278px;height:332px;border-radius:124px 124px 28px 28px;border:0;background:transparent;cursor:pointer;transform:rotate(-7deg);-webkit-tap-highlight-color:transparent}
.bell-play-hint{display:grid;place-items:center;position:absolute;right:-16px;top:82px;width:33px;height:33px;border:1px solid #cfad724d;border-radius:50%;color:#e4c58e;background:#1c1d1a;transition:background .2s,border-color .2s}
.bell-play-hint svg{width:18px;height:18px}
.bell-play:hover .bell-play-hint,.bell-play:focus-visible .bell-play-hint{border-color:#e6c58b;background:#393022}
.bell-play:focus-visible{outline:2px solid #e9ce9c;outline-offset:9px}
.cinematic-login .discord{min-height:60px;min-width:294px;border-radius:13px;border-bottom-width:2px;background:linear-gradient(112deg,#584126,#352a1c 50%,#23211c);box-shadow:inset 0 1px #f6deb946,0 8px 22px #0004;text-decoration:none}
.cinematic-login .discord:hover,.cinematic-login .discord:focus-visible{border-color:#f0d4a1;background:linear-gradient(112deg,#644b2a,#3b2f1e 55%,#27231c)}
.cinematic-login .discord .button-label{gap:16px}
.cinematic-login .discord .discord-mark{width:23px;height:23px;flex-shrink:0}
.login-cursor-light{position:absolute;pointer-events:none;width:190px;height:190px;left:0;top:0;border-radius:50%;background:radial-gradient(circle,#f1cf8b20,transparent 65%);opacity:0;z-index:1}
.login-border-glint{position:absolute;top:0;left:0;width:40%;height:1px;background:linear-gradient(90deg,transparent,#fff1c8,transparent);opacity:0;pointer-events:none;z-index:3}
.cinematic-login .discord:active{border-color:#ffe5b7;box-shadow:inset 0 2px 10px #0004}
.cinematic-login .discord.is-oauth-pending{cursor:progress}
.cinematic-login .discord .button-state-label{font-size:11px}
@media(min-width:851px) and (max-width:1100px){
.cinematic-login{gap:18px;min-height:610px}.cinematic-login .bell-art{height:465px}.bell-position,.bell-play{width:232px;height:285px}.cinematic-login h1{font-size:34px}
}
@media(max-width:850px){
.cinematic-login .login-welcome{margin-inline:auto}
.cinematic-login{padding-block:36px 12px;gap:8px;min-height:0}.cinematic-login h1{font-size:43px}.cinematic-login .bell-art{width:410px;max-width:100%;height:440px;margin:25px auto 6px}.bell-position,.bell-play{width:254px;height:306px}.ring-position{width:108%}.login-atmosphere{inset:-80px -20px 0}.atmosphere-warm{width:440px;height:440px;top:300px;left:-40px}.atmosphere-soft{width:300px;height:300px;right:-20px}.atmosphere-grid{display:none}.headline-gleam{inset-inline:17%}
}
@media(max-width:600px){
.cinematic-login h1{font-size:clamp(28px,7.7vw,41px);line-height:1.9;letter-spacing:-.6px}.cinematic-login .login-welcome{font-size:14px;margin-top:16px}.cinematic-login .intro{font-size:13px;margin-block:14px 25px;line-height:2}.cinematic-login .eyebrow{font-size:8px}.cinematic-login .discord{width:100%;min-width:0;max-width:355px;font-size:12px;padding-inline:15px}.cinematic-login .bell-art{height:389px;margin-top:25px}.bell-position,.bell-play{width:219px;height:267px}.bell-sculpture{width:126px;height:147px}.seal-topline{top:27px;font-size:7px}.bell-play-hint{right:-12px;top:67px;width:30px;height:30px}.scene-lamp{width:280px;height:280px;margin:-140px}
}
@media(max-width:360px){
.cinematic-login .bell-art{height:350px}.bell-position,.bell-play{width:198px;height:242px}.bell-sculpture{width:115px;height:134px}
}
@media(prefers-reduced-motion:reduce){
.login-atmosphere{opacity:.65}.login-cursor-light,.login-border-glint,.bell-pulse,.seal-sheen,.bell-metal-sweep{display:none}.bell-play{cursor:default}.bell-play-hint{display:none}
}
/* Bring the centerpiece into the first mobile viewport. Reading and tab order stay intact. */
@media(max-width:600px){
.cinematic-login{padding-top:12px}.cinematic-login .hero-copy{grid-row:2}.cinematic-login .bell-art{grid-row:1;height:282px;margin:8px auto 24px;max-width:330px}.bell-position,.bell-play{width:192px;height:233px}.cinematic-login .bell-sculpture{width:112px;height:131px}.cinematic-login .ring-position{width:98%}.cinematic-login .seal-topline{top:24px}.cinematic-login .bell-play-hint{top:56px;width:27px;height:27px;right:-9px}
}

/* Opening is opt-in before the first paint. Without JavaScript it never covers the page. */
.bell-opening{display:none;position:fixed;inset:0;z-index:900;isolation:isolate;pointer-events:none;animation:opening-safety 2.8s step-end forwards}
html.opening-active .bell-opening{display:block}
/* Restart the independent safety timer when playback begins, after the bounded library load. */
html.opening-active .bell-opening[data-opening-state="running"]{animation-name:opening-playing-safety}
.opening-backdrop{position:absolute;inset:0;background:#0d0f12}
.opening-backdrop:after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 43%,#c2974910,transparent 53%)}
.opening-stage{position:absolute;left:50%;top:45%;width:400px;height:400px;translate:-50% -50%;pointer-events:none}
.opening-light{position:absolute;inset:0;border-radius:50%;background:radial-gradient(ellipse,#d1a65b20,transparent 65%);opacity:.15}
.opening-waves{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.opening-waves circle{stroke:#d5b67a;stroke-width:.7;opacity:0;transform-origin:0 0}
.opening-bell{position:absolute;left:50%;top:50%;width:180px;height:210px;translate:-50% -50%}
.opening-sculpture{display:block;width:100%;height:100%;overflow:visible}
.opening-wordmark{position:absolute;top:calc(50% + 135px);left:-20px;right:-20px;text-align:center;opacity:0;color:#e7c78f}
.opening-wordmark b{display:block;font:500 12px/1.6 Arial,sans-serif;letter-spacing:5px}
.opening-wordmark span{display:block;margin-top:12px;font:7px/1.6 Arial,sans-serif;letter-spacing:3px;color:#a99a7e}

html.opening-active .cinematic-login .bell-sculpture{visibility:hidden}
/* A CSS watchdog also clears the visual layer if a script unexpectedly stops. */
@keyframes opening-safety{to{visibility:hidden;opacity:0}}
@keyframes opening-playing-safety{to{visibility:hidden;opacity:0}}
@media(max-width:600px){.opening-stage{width:300px;height:300px;top:40%}.opening-bell{width:150px;height:175px}.opening-wordmark{top:calc(50% + 112px)}.opening-wordmark b{font-size:10px;letter-spacing:4px}.opening-wordmark span{font-size:6px}}
@media(prefers-reduced-motion:reduce){html.opening-active .bell-opening{display:none}html.opening-active .cinematic-login .bell-sculpture{visibility:visible}}
@media(max-height:550px){.opening-stage{top:36%;width:240px;height:240px}.opening-bell{width:110px;height:128px}.opening-wordmark{top:calc(50% + 80px)}.opening-wordmark b{font-size:10px;letter-spacing:3px}.opening-wordmark span{font-size:6px;margin-top:7px}}
