/* Atlas welcome: preserve native entry points and the approved tabletop art. */
#online-screen.welcome-screen.welcome-atlas{--atlas-paper:#f8edda;--atlas-ink:#321c27;--atlas-muted:#715d50;--atlas-line:#c6a77480;--atlas-scene:url(visuals/welcome/warm.webp);background:var(--atlas-paper);color:var(--atlas-ink);overflow:auto;overscroll-behavior:contain}
#online-screen.welcome-screen.welcome-atlas[data-welcome-theme=cosmos]{--atlas-paper:#211b2b;--atlas-ink:#fff0d6;--atlas-muted:#d4bfa2;--atlas-line:#b9955a70;--atlas-scene:url(visuals/welcome/cosmos.webp?v=detail1)}
#online-screen.welcome-screen.welcome-atlas>.online-card{box-sizing:border-box;min-height:100dvh;max-width:1586px;width:100%;padding:0;background:none!important;display:flex;flex-direction:column;color:inherit}
#online-screen.welcome-screen.welcome-atlas #online-content{display:flex;flex-direction:column;flex:1;min-width:0}
#online-screen.welcome-screen.welcome-atlas .welcome-header{flex:none;box-sizing:border-box;padding:18px max(5%,env(safe-area-inset-right)) 10px max(5%,env(safe-area-inset-left))!important;min-height:94px;gap:16px;position:relative;z-index:4;flex-direction:row}
#online-screen.welcome-screen.welcome-atlas .welcome-logo{width:clamp(175px,20vw,240px);height:auto;max-width:40%;filter:none;flex:none}
#online-screen.welcome-screen.welcome-atlas .welcome-controls{display:flex;align-items:center;flex-wrap:nowrap;gap:7px;background:none;border:0;border-radius:0;padding:0;max-width:60%;font:13px/1.4 system-ui,sans-serif;color:inherit}
#online-screen.welcome-screen.welcome-atlas #home-account{display:inline-flex;align-items:center;gap:6px;min-height:44px;max-width:200px;border:1px solid var(--atlas-line);border-radius:30px;padding:7px 13px;background:transparent;box-shadow:none;color:inherit;font:inherit;overflow-wrap:anywhere}
#online-screen.welcome-screen.welcome-atlas #home-account:before{content:'♙';font-size:17px;color:#ac7b39}
#online-screen.welcome-screen.welcome-atlas #home-account:after{content:'⌄';font-size:14px;color:inherit}
#online-screen.welcome-screen.welcome-atlas .atlas-language{display:flex;margin:0;padding:0;flex:none}
#online-screen.welcome-screen.welcome-atlas #welcome-language{min-height:44px;width:58px;max-width:58px;border:0;border-left:1px solid var(--atlas-line);border-radius:0;background:transparent;padding:5px;color:inherit;font:13px system-ui,sans-serif}
#online-screen.welcome-screen.welcome-atlas .atlas-preferences{position:relative;margin:0;padding:0;border:0;background:none;box-shadow:none;flex:none}
#online-screen.welcome-screen.welcome-atlas .atlas-preferences>summary{display:grid;place-items:center;width:44px;height:44px;padding:0;list-style:none;cursor:pointer;font:22px/1 system-ui,sans-serif;color:inherit;border:0;background:transparent}
#online-screen.welcome-screen.welcome-atlas .atlas-preferences summary::-webkit-details-marker{display:none}
#online-screen.welcome-screen.welcome-atlas .atlas-preferences>div{position:absolute;right:0;top:50px;z-index:5;width:220px;box-sizing:border-box;background:var(--atlas-paper);border:1px solid var(--atlas-line);padding:17px;border-radius:10px;box-shadow:0 10px 25px #321c2720}
#online-screen.welcome-screen.welcome-atlas .atlas-preferences label{display:grid;gap:8px;font-size:13px;margin:0;color:inherit}
#online-screen.welcome-screen.welcome-atlas #welcome-theme{width:100%;box-sizing:border-box;min-height:44px;color:inherit;background:var(--atlas-paper);border:1px solid var(--atlas-line);border-radius:6px;padding:6px;font-size:14px}
#online-screen.welcome-screen.welcome-atlas .atlas-intro{text-align:center;padding:24px 6% 0;position:relative;z-index:1}
#online-screen.welcome-screen.welcome-atlas .atlas-eyebrow{display:flex;align-items:center;justify-content:center;gap:14px;color:var(--atlas-muted);text-transform:uppercase;letter-spacing:.18em;font:500 11px/1.5 system-ui,sans-serif;margin:0 0 16px}
#online-screen.welcome-screen.welcome-atlas .atlas-eyebrow:before,#online-screen.welcome-screen.welcome-atlas .atlas-eyebrow:after{content:'';height:1px;width:30px;background:#b48644;flex:none}
#online-screen.welcome-screen.welcome-atlas h1{font:400 clamp(44px,5.1vw,78px)/1.03 Georgia,'Times New Roman',serif;letter-spacing:-.045em;margin:0;color:inherit;overflow-wrap:normal;text-wrap:balance}
#online-screen.welcome-screen.welcome-atlas .atlas-tagline{font:15px/1.6 system-ui,sans-serif;color:var(--atlas-muted);margin:18px auto 0;max-width:620px}
#online-screen.welcome-screen.welcome-atlas .atlas-panorama{flex:1 0 auto;min-height:220px;height:clamp(220px,30dvh,380px);margin-top:25px;position:relative;isolation:isolate;background:var(--atlas-scene) 70% 44%/cover no-repeat}
#online-screen.welcome-screen.welcome-atlas .atlas-panorama:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,var(--atlas-paper) 0%,transparent clamp(28px,9vw,160px),transparent calc(100% - clamp(28px,9vw,160px)),var(--atlas-paper) 100%),linear-gradient(180deg,var(--atlas-paper) 0%,transparent 22%,transparent 73%,var(--atlas-paper) 100%)}
body.faithful-target #online-screen.welcome-screen.welcome-atlas #online-content .atlas-launch{position:relative;z-index:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;box-sizing:border-box;width:min(1100px,88%);margin:-30px auto 0;padding:8px;background:linear-gradient(#fff5e2,#eddbb7)!important;border:1px solid #b7985d!important;border-radius:14px;box-shadow:0 8px 20px #5e3d2020,inset 0 0 0 4px #fff2d5!important;color:#321c27}
#online-screen.welcome-screen.welcome-atlas .atlas-launch button,#online-screen.welcome-screen.welcome-atlas .atlas-launch button:hover:not(:disabled),#online-screen.welcome-screen.welcome-atlas .atlas-launch button:active:not(:disabled){display:grid;grid-template-columns:45px minmax(0,1fr) 25px;align-items:center;justify-content:stretch;gap:18px;min-width:0;width:100%;min-height:112px;margin:0;padding:21px 23px;text-align:left;border:0;background:transparent;box-shadow:none!important;border-radius:7px;color:#321c27;white-space:normal;transform:none!important}
#online-screen.welcome-screen.welcome-atlas .atlas-launch button+button{border-left:1px solid #b7985d66;border-radius:0}
#online-screen.welcome-screen.welcome-atlas .atlas-launch button:hover:not(:disabled){background:#fff7e7}
#online-screen.welcome-screen.welcome-atlas .atlas-action-copy{display:block;min-width:0}
#online-screen.welcome-screen.welcome-atlas .atlas-launch strong{display:block;font:400 clamp(24px,2.6vw,36px)/1.2 Georgia,serif;color:inherit}
#online-screen.welcome-screen.welcome-atlas .atlas-launch small{display:block;font:12px/1.5 system-ui,sans-serif;margin-top:6px;color:#715d50}
#online-screen.welcome-screen.welcome-atlas .atlas-arrow{font:26px/1 Georgia,serif;justify-self:end;grid-column:3;grid-row:1}
#online-screen.welcome-screen.welcome-atlas .welcome-icon{width:45px;height:45px;grid-column:1;grid-row:1;align-self:center}
#online-screen.welcome-screen.welcome-atlas .welcome-icon img{width:100%;height:100%;object-fit:contain}
#online-screen.welcome-screen.welcome-atlas .atlas-resume{display:flex;justify-content:center;align-items:center;gap:10px 24px;flex-wrap:wrap;padding:16px 6% 0}
#online-screen.welcome-screen.welcome-atlas .atlas-resume button{display:flex;align-items:center;gap:8px;min-height:44px;max-width:100%;border:0;background:transparent;color:inherit;box-shadow:none;font:13px/1.4 system-ui,sans-serif;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--atlas-line);padding:7px 0;white-space:normal}
#online-screen.welcome-screen.welcome-atlas .atlas-resume img{width:23px;height:23px;flex:none}
#online-screen.welcome-screen.welcome-atlas .atlas-resume #home-delete-save{font-size:12px;color:var(--atlas-muted)}
#online-screen.welcome-screen.welcome-atlas #local-delete-status{margin:0;text-align:center;font:13px/1.5 system-ui,sans-serif;color:inherit}
#online-screen.welcome-screen.welcome-atlas #local-delete-status:empty{display:none}
#online-screen.welcome-screen.welcome-atlas .atlas-footer{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:26px max(5%,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(5%,env(safe-area-inset-left));font:12px/1.6 system-ui,sans-serif;color:var(--atlas-muted)}
#online-screen.welcome-screen.welcome-atlas .atlas-playtest{max-width:520px;margin:0;padding:0;border:0;background:none;box-shadow:none;min-width:0}
#online-screen.welcome-screen.welcome-atlas .atlas-playtest>summary{display:flex;align-items:center;gap:7px;min-height:44px;list-style:none;cursor:pointer;color:inherit;font:12px/1.5 system-ui,sans-serif;padding:0}
#online-screen.welcome-screen.welcome-atlas .atlas-playtest>summary::-webkit-details-marker{display:none}
#online-screen.welcome-screen.welcome-atlas .atlas-playtest>summary:before{content:'';width:6px;height:6px;flex:none;background:#ac7c31;border-radius:50%}
#online-screen.welcome-screen.welcome-atlas .atlas-playtest>summary:after{content:'+';font-size:16px;margin-left:3px}
#online-screen.welcome-screen.welcome-atlas .atlas-playtest[open]>summary:after{content:'−'}
#online-screen.welcome-screen.welcome-atlas .atlas-playtest p{font:12px/1.65 system-ui,sans-serif;margin:4px 0 10px;color:inherit}
#online-screen.welcome-screen.welcome-atlas .atlas-learning{display:flex;flex-direction:column;align-items:flex-end;gap:2px;min-width:0}
#online-screen.welcome-screen.welcome-atlas #home-rulebook{min-height:44px;padding:8px 0;border:0;background:transparent;box-shadow:none;color:inherit;font:12px/1.5 system-ui,sans-serif;text-decoration:underline;text-decoration-color:var(--atlas-line);text-underline-offset:4px;white-space:normal}
#online-screen.welcome-screen.welcome-atlas .home-tutorial{margin:0;padding:0;border:0;border-radius:0;background:none;opacity:1;font:11px/1.5 system-ui,sans-serif;color:var(--atlas-muted)}
#online-screen.welcome-screen.welcome-atlas #online-error:empty{display:none}
#online-screen.welcome-screen.welcome-atlas #online-error:not(:empty){margin:0 6% 16px}
#online-screen.welcome-screen.welcome-atlas :is(button,summary,select):focus-visible{outline:2px solid #865c9e;outline-offset:4px}
/* One hover treatment for welcome controls, including the legacy account entry. */
#online-screen.welcome-screen.welcome-atlas :is(#home-account,#home-rulebook,.atlas-resume button,.atlas-preferences>summary,.atlas-playtest>summary,#welcome-language,#welcome-theme){text-decoration:none;transform:none;transition:background-color .15s ease}
#online-screen.welcome-screen.welcome-atlas :is(#home-account,#home-rulebook,.atlas-resume button,.atlas-preferences>summary,.atlas-playtest>summary,#welcome-language,#welcome-theme):hover:not(:disabled){text-decoration:none;background-color:#fff7e7;transform:none;box-shadow:none}
#online-screen.welcome-screen.welcome-atlas[data-welcome-theme=cosmos] :is(#home-account,#home-rulebook,.atlas-resume button,.atlas-preferences>summary,.atlas-playtest>summary,#welcome-language,#welcome-theme):hover:not(:disabled){background-color:#ffffff12}
@media(prefers-reduced-motion:reduce){#online-screen.welcome-screen.welcome-atlas :is(button,summary,select){transition:none}}
#online-screen.welcome-screen.welcome-atlas .atlas-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#online-screen.welcome-screen.welcome-atlas[data-welcome-theme=cosmos] .atlas-launch{filter:none}
@media(max-width:680px){
 #online-screen.welcome-screen.welcome-atlas .welcome-header{padding:14px 5% 8px!important;min-height:83px;gap:7px;align-items:center!important;flex-direction:row!important}
 #online-screen.welcome-screen.welcome-atlas .welcome-logo{width:clamp(105px,31vw,160px);max-width:40%}
 #online-screen.welcome-screen.welcome-atlas .welcome-controls{max-width:62%;gap:3px}
 #online-screen.welcome-screen.welcome-atlas #home-account{font-size:12px;padding:6px 8px;gap:3px;max-width:110px;min-width:0}
 #online-screen.welcome-screen.welcome-atlas #home-account:before{display:none}
 #online-screen.welcome-screen.welcome-atlas #welcome-language{width:44px;max-width:44px;font-size:12px;padding:3px}
 #online-screen.welcome-screen.welcome-atlas .atlas-intro{padding:24px 6% 0}
 #online-screen.welcome-screen.welcome-atlas .atlas-eyebrow{font-size:10px;letter-spacing:.12em;gap:7px;margin-bottom:16px}
 #online-screen.welcome-screen.welcome-atlas .atlas-eyebrow:before,#online-screen.welcome-screen.welcome-atlas .atlas-eyebrow:after{width:20px}
 #online-screen.welcome-screen.welcome-atlas h1{font-size:clamp(36px,10.5vw,54px)}
 #online-screen.welcome-screen.welcome-atlas .atlas-tagline{font-size:14px;max-width:300px;margin-top:18px}
 #online-screen.welcome-screen.welcome-atlas .atlas-panorama{height:230px;min-height:230px;flex:none;margin-top:15px;background-size:auto 125%;background-position:77% 50%}
 body.faithful-target #online-screen.welcome-screen.welcome-atlas #online-content .atlas-launch{grid-template-columns:1fr;margin-top:-16px}
 #online-screen.welcome-screen.welcome-atlas .atlas-launch button,#online-screen.welcome-screen.welcome-atlas .atlas-launch button:hover:not(:disabled){min-height:98px;padding:18px 14px;gap:12px;grid-template-columns:38px minmax(0,1fr) 22px}
 #online-screen.welcome-screen.welcome-atlas .atlas-launch button+button{border-left:0;border-top:1px solid #b7985d66}
 #online-screen.welcome-screen.welcome-atlas .welcome-icon{width:38px;height:38px}
 #online-screen.welcome-screen.welcome-atlas .atlas-launch strong{font-size:27px}
 #online-screen.welcome-screen.welcome-atlas .atlas-launch small{font-size:11px}
 #online-screen.welcome-screen.welcome-atlas .atlas-footer{flex-wrap:wrap;gap:8px;padding-top:20px}
 #online-screen.welcome-screen.welcome-atlas .atlas-learning{align-items:flex-start;flex-direction:row;align-items:center;gap:14px;flex-wrap:wrap}
 #online-screen.welcome-screen.welcome-atlas .atlas-resume{align-items:flex-start;flex-direction:column;gap:0}
}
@media(max-width:360px){#online-screen.welcome-screen.welcome-atlas #home-account{max-width:82px;font-size:11px}#online-screen.welcome-screen.welcome-atlas .atlas-launch strong{font-size:24px}}
/* Top-layer native dialog: keyboard focus and Escape are managed by the browser. */
#online-entry{box-sizing:border-box;inset:0;width:min(440px,calc(100% - 32px));max-width:calc(100% - 32px);height:fit-content;min-height:0;position:fixed;max-height:calc(100dvh - 32px);margin:auto;padding:26px;border:1px solid #b18a4d;border-radius:16px;background:#fff4df;color:#321c27;box-shadow:0 24px 70px #21131b50;overflow:auto;overscroll-behavior:contain;font:14px/1.5 system-ui,sans-serif}
#online-entry:not([open]){display:none}
#online-entry::backdrop{background:#24172180;backdrop-filter:blur(5px)}
#online-entry .entry-heading{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:17px}
#online-entry h2{font:400 32px/1.1 Georgia,serif;letter-spacing:-.025em;margin:0;color:inherit;overflow-wrap:anywhere}
#online-entry button{font:14px/1.4 system-ui,sans-serif;min-height:46px;box-shadow:none;transform:none!important}
#online-entry #entry-close{flex:none;display:grid;place-items:center;width:44px;min-height:44px;height:44px;border:1px solid #b18a4d66;border-radius:50%;background:none;color:inherit;font:25px/1 Georgia,serif;margin:0;padding:0}
#online-entry .entry-intro{margin:0 0 22px;font:14px/1.6 system-ui,sans-serif;color:#715d50}
#online-entry :is(#entry-google,#entry-email-toggle,#entry-email-send){display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;border:1px solid #b18a4d;border-radius:8px;background:transparent;color:inherit;margin:0 0 12px;padding:13px 16px;white-space:normal;text-align:left}
#online-entry #entry-google,#online-entry #entry-email-send{background:#321c27;color:#fff0d6;border-color:#4e303d}
#online-entry #entry-email{margin-top:17px;padding-top:15px;border-top:1px solid #b18a4d66}
#online-entry [hidden]{display:none!important}
#online-entry label{display:block;font:13px/1.5 system-ui,sans-serif;margin-bottom:6px;color:inherit}
#online-entry input{box-sizing:border-box;width:100%;min-height:46px;border:1px solid #bba074;border-radius:7px;padding:10px;background:#fffaf0;color:#321c27;font:16px/1.5 system-ui,sans-serif}
#online-entry :is(.entry-password-note,#entry-email-status,.entry-host-note){font:12px/1.6 system-ui,sans-serif;color:#715d50;margin:9px 0 14px}
#online-entry #entry-auth-error{font:13px/1.5 system-ui,sans-serif;color:#9b302c;margin:10px 0}
#online-entry :is(#entry-auth-error,#entry-email-status):empty{display:none}
#online-entry .entry-guest{display:grid;justify-items:center;padding-top:13px;border-top:1px solid #b18a4d66;gap:3px}
#online-entry #entry-guest{padding:9px 5px;background:none;border:0;color:inherit;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#b18a4d66}
#online-entry .entry-guest small{font:11px/1.5 system-ui,sans-serif;text-align:center;color:#715d50}
#online-entry button:disabled{opacity:.5;cursor:default}
#online-entry :is(button,input):focus-visible{outline:2px solid #865c9e;outline-offset:3px}
#online-entry[data-theme=cosmos]{background:#211b2b;color:#fff0d6}
#online-entry[data-theme=cosmos] :is(.entry-intro,.entry-password-note,#entry-email-status,.entry-host-note,.entry-guest small){color:#d4bfa2}
#online-entry[data-theme=cosmos] #entry-auth-error{color:#ffb6a5}
@media(max-height:500px){#online-entry{max-height:calc(100dvh - 16px);padding:18px}#online-entry .entry-intro{margin-bottom:14px}#online-entry h2{font-size:27px}}

#online-entry[open]{display:block}
/* A quiet shared hover response, without rectangular highlight patches. */
#online-screen.welcome-screen.welcome-atlas :is(#home-account,#home-rulebook,.atlas-resume button,.atlas-preferences>summary,.atlas-playtest>summary,#welcome-language){transition:color .16s ease,border-color .16s ease;}
#online-screen.welcome-screen.welcome-atlas :is(#home-account,#home-rulebook,.atlas-resume button,.atlas-preferences>summary,.atlas-playtest>summary,#welcome-language):hover:not(:disabled){background:transparent!important;color:#94682e;text-decoration:none;box-shadow:none!important;transform:none!important}
#online-screen.welcome-screen.welcome-atlas[data-welcome-theme=cosmos] :is(#home-account,#home-rulebook,.atlas-resume button,.atlas-preferences>summary,.atlas-playtest>summary,#welcome-language):hover:not(:disabled){color:#f2cb8c;background:transparent!important}
#online-screen.welcome-screen.welcome-atlas #home-account:hover{border-color:#b9955a}
#online-screen.welcome-screen.welcome-atlas .atlas-launch button:hover:not(:disabled){background:#b9955a0d!important}
#online-screen.welcome-screen.welcome-atlas .atlas-language{position:relative;display:block;border:0;background:none;box-shadow:none;flex:none;margin:0;padding:0}
#online-screen.welcome-screen.welcome-atlas #welcome-language{display:flex;align-items:center;justify-content:center;gap:7px;list-style:none;cursor:pointer;box-sizing:border-box;border-radius:7px;font:13px/1.4 system-ui,sans-serif;color:inherit}
#online-screen.welcome-screen.welcome-atlas #welcome-language::-webkit-details-marker{display:none}
#online-screen.welcome-screen.welcome-atlas .atlas-language-options{position:absolute;right:0;top:calc(100% + 6px);z-index:6;width:170px;box-sizing:border-box;padding:5px;border:1px solid var(--atlas-line);border-radius:10px;background:var(--atlas-paper);box-shadow:0 12px 28px #100b1830;color:var(--atlas-ink)}
#online-screen.welcome-screen.welcome-atlas .atlas-language-options button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:8px 11px;border:0;border-radius:6px;background:transparent;color:inherit;box-shadow:none;font:13px/1.4 system-ui,sans-serif;transform:none!important;white-space:nowrap}
#online-screen.welcome-screen.welcome-atlas .atlas-language-options button small{font:11px/1 system-ui,sans-serif;color:var(--atlas-muted)}
#online-screen.welcome-screen.welcome-atlas .atlas-language-options button[aria-pressed=true]{box-shadow:inset 2px 0 #b9955a;color:#94682e}
#online-screen.welcome-screen.welcome-atlas[data-welcome-theme=cosmos] .atlas-language-options button[aria-pressed=true]{color:#f2cb8c}
#online-screen.welcome-screen.welcome-atlas .atlas-language-options button:hover{background:#b9955a12!important;color:inherit}
#online-screen.welcome-screen.welcome-atlas :is(#welcome-language,.atlas-language-options button):focus-visible{outline:2px solid #b9955a;outline-offset:3px}
@media(prefers-reduced-motion:reduce){#online-screen.welcome-screen.welcome-atlas :is(button,summary){transition:none!important}}
/* Compact header rules must inherit the active palette as well. */
#online-screen.welcome-screen.welcome-atlas .welcome-controls :is(#home-account,#welcome-language,.atlas-preferences>summary){color:var(--atlas-ink)!important}
#online-screen.welcome-screen.welcome-atlas .welcome-controls :is(#home-account,#welcome-language,.atlas-preferences>summary):hover:not(:disabled){color:#94682e!important}
#online-screen.welcome-screen.welcome-atlas[data-welcome-theme=cosmos] .welcome-controls :is(#home-account,#welcome-language,.atlas-preferences>summary):hover:not(:disabled){color:#f2cb8c!important}
.atlas-version{opacity:.8;letter-spacing:.04em}
