/* A quiet game-client entry: story first, then one focused sign-in form. */
#authGate,#serverGate,#onboardGate,#resetGate,#connGate,#sessionGate{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,#serverGate{background:radial-gradient(ellipse at 50% 0,#31274b55 0,transparent 48%),radial-gradient(circle at 15% 85%,#9b6c3020 0,transparent 30%),#0b0e21}
.entryShell{width:min(100%,400px);min-height:calc(100dvh - 48px);display:grid;place-items:center;margin:auto}
#authGate .entryCard,#serverGate .entryCard{width:100%;padding:32px 28px;background:linear-gradient(155deg,rgba(35,30,57,.98),rgba(16,19,40,.99));border:1px solid #d8bd8347;border-radius:16px;box-shadow:0 24px 80px #0008,inset 0 1px 0 #ffe4b612;text-align:center}
.entryBrand{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:25px}.entryBrand img{flex:none;filter:drop-shadow(0 2px 16px #c7954840)}
.entryWordmark{font:600 clamp(25px,7vw,32px)/1.2 'Cinzel',Georgia,serif;letter-spacing:.035em;color:#ffedc8;white-space:nowrap;text-shadow:0 2px 14px #0007}.entryWordmark span{color:#e3b770}
#authGate .entryCard h1,#serverGate .entryCard h1{font:500 23px/1.25 'Cinzel',Georgia,serif;color:#ffefd1;margin:0 0 8px}
#authGate .entryCardIntro{margin:0 0 24px;color:#b8b1ce;font-size:13px}
#authGate .entryForm{display:grid;gap:10px;text-align:left}
#authGate .btn,#onboardGate .btn,#resetGate .btn,#connGate .btn,#sessionGate .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,#sessionGate .btn.pri{background:linear-gradient(120deg,#f0d39b,#d8a553);border:1px solid #f8ddb0;color:#261d25;box-shadow:0 4px 20px #d8a5531a}
#authGate .btn:hover:not(:disabled){filter:brightness(1.09)}#authGate .btn:disabled{opacity:.65;cursor:wait}
#authGate .btn img{margin-right:8px}
.entryLabel{display:block;text-align:left;color:#ccc3dc;font-size:11px;font-weight:600;margin:4px 0 -3px}
#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}
.entrySecondary{display:grid;justify-items:center;gap:11px;margin-top:20px;color:#b8b0c8;font-size:12px;line-height:1.4}.entrySecondary a{color:#e7c38b}
#authGate .entryGuest,#authGate .entryReplay{padding:0;border:0;background:transparent;color:#c8c0d6;font:500 12px 'Work Sans',sans-serif;cursor:pointer}.entryGuest:hover,.entryReplay:hover{color:#ffe3b4}.entryReplay span{color:#e6bf7f;margin-right:4px}
/* A first visit (data-mode="welcome", see showAuthGate in js/08-main.js): one big Play now, the log-in form a link away */
#authGate[data-mode="welcome"] .entryCardIntro{margin-bottom:22px;font-size:14px;line-height:1.55}
#authGate[data-mode="welcome"] .entrySecondary{margin-top:0;width:100%}
#authGate[data-mode="welcome"] #authGuest{order:-1;width:100%;min-height:56px;font-size:16px;margin-bottom:8px}
#authGate .entryGame{display:inline-flex;align-items:center;gap:5px;min-height:44px;color:#8fdcf0;text-decoration:underline;text-underline-offset:4px}#authGate .entryGame:hover{color:#d4f6ff}
#authGate .authlegal{font-size:10px;line-height:1.65;color:#a29ab1;margin-top:22px}
#authGate .autherr,#serverGate .autherr{text-align:left;line-height:1.5;margin:0 0 12px}
#authGate :is(button,a,input):focus-visible,#onboardGate :is(button,input):focus-visible{outline:2px solid #e9c78d;outline-offset:4px}
#onboardGate .authcard,#resetGate .authcard,#connGate .authcard,#sessionGate .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,#sessionGate .authcard h1{color:#f4e3c5;font-family:'Cinzel',Georgia,serif;font-size:23px}
#onboardGate .mini,#resetGate .mini,#connGate .mini,#sessionGate .mini,#authGate .mini,#serverGate .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:430px){#authGate,#serverGate{padding:18px 16px 24px}.entryShell{min-height:calc(100dvh - 42px)}#authGate .entryCard,#serverGate .entryCard{padding:28px 20px;border-radius:14px}.entryBrand{margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){#bootSplash .bootbar i{animation:none;width:100%}#bootSplash{transition:none}}
/* the "playing somewhere else" lock screen (lockSession in js/08-main.js) covers everything, sheets and toasts included */
#sessionGate{z-index:9400}
/* the server step after signing in (showServerGate in js/22-servers.js): the sign-in card holding the picker's rows */
#serverGate .entryCard{text-align:left;padding-left:18px;padding-right:18px}
#serverGate .entryBrand{margin-bottom:20px}
#serverGate .entryCard h1{text-align:center;margin-bottom:22px}
#serverGate .settingsRows{max-height:none;margin:0;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
#serverGate .settingsRow{box-sizing:border-box;width:100%;min-height:62px;padding:10px 12px;border:1px solid #69617c66;border-radius:11px;background:#1a1e3a;color:#eee9e2;font:inherit;cursor:pointer;text-align:left}
#serverGate .settingsRow:nth-child(2n){background:#1a1e3a}
#serverGate .settingsRow:hover,#serverGate .settingsRow:focus-visible{border-color:#e4be7e;background:#232848}
#serverGate .serverHead b{color:#ffefd1;font-size:15px}
