/* The public entrance shares the game's celestial forge and gold/violet palette. */
#authGate,#onboardGate,#resetGate,#connGate{background:#0b0e21;color:#eee9e2;overflow-y:auto;overscroll-behavior:contain;align-items:flex-start;padding:max(24px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));font-family:'Work Sans',sans-serif;font-weight:400}
#authGate{background-image:linear-gradient(90deg,rgba(9,11,27,.91),rgba(13,13,36,.46) 55%,rgba(9,11,27,.87)),linear-gradient(0deg,#0b0e21 0%,transparent 65%),url('../assets/scenes/atelier-forge.webp');background-size:cover;background-position:center;background-attachment:local}
.entryShell{width:min(1120px,100%);display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:clamp(32px,6vw,100px);align-items:center;margin:auto;padding:36px 0;min-height:calc(100dvh - 48px)}
.entryStory{min-width:0;padding:24px 0}
.entryBrand{display:flex;align-items:center;gap:12px;margin-bottom:64px}
.entryBrand img{flex:none;filter:drop-shadow(0 2px 16px #c7954840)}
.entryWordmark{font:600 clamp(24px,3vw,35px)/1.2 'Cinzel',Georgia,serif;letter-spacing:.035em;color:#ffedc8;white-space:nowrap;text-shadow:0 2px 14px #0007}
.entryWordmark span{color:#e3b770}
.entrySignIn{display:none}
.entryEyebrow{margin:0 0 18px;color:#d6b782;font-size:11px;letter-spacing:.2em;text-transform:uppercase;font-weight:600}
#entryTitle{margin:0 0 24px;color:#faf1de;font:500 clamp(36px,4.4vw,60px)/1.12 'Cinzel',Georgia,serif;letter-spacing:-.035em;text-shadow:0 3px 20px #0008}
#entryTitle em{color:#ebc17e;font-style:normal}
.entryLead{font-size:17px;color:#ede5df;line-height:1.6;margin:0 0 12px}
.entryDescription{max-width:490px;margin:0;color:#c3bdd1;line-height:1.8;font-size:14px}
.entryEras{display:flex;align-items:center;gap:14px;margin:28px 0 22px;padding:17px 0;border-top:1px solid #dec28c33;border-bottom:1px solid #dec28c33;color:#e3c994;font:500 12px 'Cinzel',Georgia,serif}
.entryEras i{font-style:normal;color:#8e79bc}
.entryFeatures{color:#b9b1c9;font-size:11px;line-height:1.8;margin:0}.entryFeatures span{color:#dfb878;margin:0 8px}
#authGate .entryCard{max-width:none;padding:30px 27px;background:linear-gradient(155deg,rgba(35,30,57,.97),rgba(16,19,40,.98));border:1px solid #d8bd8347;border-radius:22px;box-shadow:0 24px 80px #0006,inset 0 1px 0 #ffe4b612;text-align:center}
.entrySeal{display:block;margin:0 auto 13px}
.entryCard h2{font:500 25px/1.25 'Cinzel',Georgia,serif;color:#ffefd1;margin:0 0 8px}
.entryCardIntro{margin:0 0 24px;color:#b8b1ce;font-size:13px}
#authGate .btn,#onboardGate .btn,#resetGate .btn,#connGate .btn{min-height:48px;border-radius:10px;font:600 14px 'Work Sans',sans-serif;text-shadow:none;justify-content:center;box-shadow:none;border:1px solid #867d9e66;background:#29263f;color:#e9e3f4}
#authGate .btn.pri,#onboardGate .btn.pri,#resetGate .btn.pri,#connGate .btn.pri{background:linear-gradient(120deg,#f0d39b,#d8a553);border:1px solid #f8ddb0;color:#261d25;box-shadow:0 4px 20px #d8a5531a}
#authGate .entryPlay{min-height:54px;font-size:16px;justify-content:space-between;padding:0 20px}
#authGate .btn:hover:not(:disabled){filter:brightness(1.09)}
#authGate .btn:disabled{opacity:.65;cursor:wait}
.entryGuestNote{color:#b5aec6;font-size:11px;line-height:1.65;margin:12px 4px 22px}
.entryAccount{border-top:1px solid #d7c4f024;border-bottom:1px solid #d7c4f024;text-align:left}
.entryAccount summary{padding:18px 0;color:#c1b9d1;font-size:12px;cursor:pointer;text-align:center;list-style:none;min-height:48px}
.entryAccount summary::-webkit-details-marker{display:none}.entryAccount summary::after{content:' +';color:#e8c78e;margin-left:8px}.entryAccount[open] summary::after{content:' −'}
.entryAccount summary strong{font-weight:600;color:#edc995;text-decoration:underline;text-underline-offset:3px}
.entryAccount[open]{padding:0 14px;border:1px solid #d8bd835c;border-radius:12px;background:#e8c78e0d}
.entryAccount[open] summary{color:#f6e6cb;font-size:14px;font-weight:600}
.entryAccountBody{padding:0 0 20px}.entryAccountBody h3{font:500 17px 'Cinzel',Georgia,serif;text-align:center;color:#f6e6cb;margin:3px 0 8px}
#authGate .mini{color:#b9b1ca;line-height:1.5;font-size:12px}
.entryLabel{display:block;text-align:left;color:#ccc3dc;font-size:11px;font-weight:600;margin:0 0 6px}
#authGate .ipt,#onboardGate .ipt,#resetGate .ipt{background:#0e1228;border:1px solid #69617c;color:#f2edf7;min-height:46px;border-radius:9px;font:400 16px 'Work Sans',sans-serif;box-shadow:none}
#authGate .ipt::placeholder,#onboardGate .ipt::placeholder,#resetGate .ipt::placeholder{color:#968faa}
#authGate .authswitch{color:#b8b0c8;font-size:12px;margin-top:13px}#authGate .authswitch a{color:#e7c38b}
#authGate .authdiv{color:#aba2be;margin:13px 0}#authGate .authdiv::before,#authGate .authdiv::after{background:#8e7dad40}
.entryPlatforms{display:flex;flex-direction:column;gap:7px;margin:23px 0 0}.entryPlatforms b{font-size:12px;font-weight:500;color:#e4dcec}.entryPlatforms span{font-size:11px;color:#aaa3bd}.entryPlatforms strong{font-size:10px;letter-spacing:.13em;text-transform:uppercase;font-weight:600;color:#e6bf7f}
#authGate .authlegal{font-size:10px;line-height:1.65;color:#a29ab1;margin-top:22px}
#authGate .autherr{text-align:left;line-height:1.5}
#authGate :is(button,a,summary,input):focus-visible,#onboardGate :is(button,input):focus-visible{outline:2px solid #e9c78d;outline-offset:4px}
#onboardGate .authcard,#resetGate .authcard,#connGate .authcard{margin:auto;background:linear-gradient(145deg,#242038,#12162f);border:1px solid #d8bd8347;box-shadow:0 24px 80px #0006;padding:26px;border-radius:20px}
#onboardGate .authcard h1,#resetGate .authcard h1,#connGate .authcard h1{color:#f4e3c5;font-family:'Cinzel',Georgia,serif;font-size:23px}
#onboardGate .mini,#resetGate .mini,#connGate .mini{color:#bbb2cd;line-height:1.6}
#onboardGate .avatarGrid{margin:20px 0}#onboardGate .avatarPick{background:#1c2140}#onboardGate .avatarPick.sel{border-color:#e4be7e}
#bootSplash{background:#0b0e21!important;overflow:hidden}
#bootSplash .bootLandscape{opacity:.35;object-fit:cover;inset:0;width:100%;height:100%}
.bootBrand{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;padding:24px}
.bootBrand p{color:#ccc0d9;font:400 13px/1.6 'Work Sans',sans-serif;margin:0 0 10px}
#bootSplash .bootConnecting{position:static;font:400 11px 'Work Sans',sans-serif;letter-spacing:.06em;color:#c6bbd5}
#bootSplash .bootbar{background:#64547555;width:120px;height:3px}#bootSplash .bootbar i{background:#e4be7e}
@media(max-width:760px){
  #authGate{padding:24px 20px 28px;background-image:linear-gradient(0deg,#0b0e21 8%,#0b0e21bc 58%,#0b0e2166),url('../assets/scenes/atelier-forge.webp');background-size:auto 620px;background-position:center top;background-repeat:no-repeat}
  .entryShell{display:flex;flex-direction:column;gap:25px;max-width:460px;padding:0;min-height:0;margin:0 auto}
  .entrySignIn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0 0 20px;padding:8px 15px;border:1px solid #e7c48e80;border-radius:9px;background:#19172ebf;color:#ffe3b4;font-size:12px;font-weight:700;text-decoration:none}
  .entryStory{padding:0;text-align:center}.entryBrand{justify-content:center;gap:9px;margin-bottom:30px}.entryBrand img{width:48px;height:48px}.entryWordmark{font-size:26px}
  .entryEyebrow{font-size:9px;margin-bottom:13px}#entryTitle{font-size:35px;margin-bottom:14px}.entryLead{font-size:13px;margin-bottom:8px}.entryDescription{font-size:12px;line-height:1.75;margin:auto;max-width:370px}
  .entryEras{justify-content:center;font-size:10px;gap:10px;margin:18px 0 10px;padding:12px 0}.entryFeatures{font-size:10px}.entryFeatures span{margin:0 3px}
  #authGate .entryCard{padding:23px;width:100%}.entryCard>.entrySeal{display:none}.entryCard h2{font-size:23px}.entryCardIntro{margin-bottom:18px}.entryGuestNote{margin-bottom:18px}.entryPlatforms{margin-top:18px}
}
@media(prefers-reduced-motion:reduce){#bootSplash .bootbar i{animation:none;width:100%}#bootSplash{transition:none}}
