/* Reuse the existing Lorespan artwork and compose the account page across the viewport. */
:root{font:clamp(16px,1.1vw,22px)/1.5 system-ui,sans-serif;color:#e5ebec;background:#07111b;color-scheme:dark}
*{box-sizing:border-box}
body{position:relative;isolation:isolate;margin:0;min-height:100vh;min-height:100svh;background:#07111b}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(3,9,16,.72),rgba(3,9,16,.3) 58%,rgba(3,9,16,.42)),url('/lorespan-desktop-hero.png') center/cover no-repeat}
main{display:flex;flex-direction:column;width:100%;min-height:100vh;min-height:100svh;margin:0 auto;padding:clamp(18px,2.7vh,36px) clamp(24px,3.2vw,72px)}
a{color:#e9cf96;text-underline-offset:4px}
.back{display:inline-flex;align-self:flex-start;align-items:center;min-height:44px;font-size:clamp(14px,1vw,18px);text-shadow:0 2px 5px #000}
/* Keep public navigation available independently of sign-in or access status. */
.account-topbar{position:relative;z-index:2;display:flex;flex:none;align-items:center;justify-content:space-between;gap:24px;padding-bottom:12px;border-bottom:1px solid #bda47544}
.account-nav{display:flex;align-items:center;gap:clamp(16px,2vw,36px)}
.account-nav a,.account-mobile-menu nav a{display:inline-flex;align-items:center;min-height:44px;color:#d8e1e8;font-size:clamp(14px,1vw,18px);text-decoration:none;white-space:nowrap}
.account-nav a:hover,.account-mobile-menu nav a:hover{color:#eedbb4;text-decoration:underline}
.account-nav [aria-current=page],.account-mobile-menu [aria-current=page]{color:#e9cf96;text-decoration:underline;text-underline-offset:6px}
.account-nav .account-play-link,.account-mobile-menu .account-play-link{color:#eedbb4;border:1px solid #bda47599;border-radius:5px;padding:0 18px;background:#07111b99}
.account-mobile-menu{display:none;position:relative;flex:none}
.account-mobile-menu>summary{display:flex;align-items:center;justify-content:center;gap:10px;min-width:94px;min-height:44px;padding:8px 12px;border:1px solid #bda47599;border-radius:5px;background:#07111bcc;font-size:14px;list-style:none}
.account-mobile-menu>summary::-webkit-details-marker{display:none}
.account-menu-icon,.account-menu-icon::before,.account-menu-icon::after{display:block;width:18px;height:2px;background:currentColor}
.account-menu-icon{position:relative}
.account-menu-icon::before,.account-menu-icon::after{content:"";position:absolute;left:0}
.account-menu-icon::before{top:-6px}
.account-menu-icon::after{top:6px}
.account-mobile-menu[open] .account-menu-icon{background:transparent}
.account-mobile-menu[open] .account-menu-icon::before{transform:translateY(6px) rotate(45deg)}
.account-mobile-menu[open] .account-menu-icon::after{transform:translateY(-6px) rotate(-45deg)}
.account-mobile-menu nav{position:absolute;right:0;top:calc(100% + 8px);width:min(250px,calc(100vw - 32px));display:grid;gap:4px;padding:8px;border:1px solid #bda47599;border-radius:6px;background:#07111b;box-shadow:0 16px 40px #0009}
.account-mobile-menu nav a{padding:8px 12px;font-size:15px}
@media(max-width:899px){
 .account-nav{display:none}
 .account-mobile-menu{display:block}
 .account-topbar{gap:12px;padding-bottom:10px}
 .account-topbar .back{font-size:14px}
}
.account-header{flex:1;display:flex;align-items:center;gap:clamp(20px,2.2vw,44px);margin:clamp(14px,2.7vh,34px) 0 clamp(24px,4vh,48px);text-shadow:0 3px 14px #000}
.account-heading{min-width:0}
.eyebrow{margin:0 0 8px;color:#d6b775;font-size:clamp(13px,1.1vw,20px);letter-spacing:.2em}
h1,h2,h3{font-family:Georgia,serif;line-height:1.15;color:#eedbb4}
h1{font-size:clamp(40px,4.2vw,80px);margin:0 0 12px}
h2,h3{font-size:clamp(25px,1.8vw,36px);margin:0 0 20px}
p{margin:16px 0}
.intro{margin:0;font-size:clamp(17px,1.3vw,25px);color:#d8e1e8}
.account-content{flex:0;min-height:44svh;display:grid;grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);gap:clamp(18px,1.6vw,32px);align-items:stretch}
section{min-width:0;margin:0;padding:clamp(24px,2.4vw,48px);background:linear-gradient(145deg,rgba(8,21,32,.91),rgba(5,15,24,.86));border:1px solid #bda47566;border-radius:10px;box-shadow:0 16px 48px #0004,inset 0 1px #f4d8950a;backdrop-filter:blur(4px)}
#signIn{display:flex;flex-direction:column}
.entry-choices{flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(24px,2.4vw,48px)}
.new-player,.returning-player{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.entry-choices p{margin:0 0 24px;max-width:36ch}
.entry-choices form{margin-top:auto;width:100%}
.entry-choices button{min-width:min(100%,190px)}
.returning-player{border-left:1px solid #bda47544;padding-left:clamp(24px,2.4vw,48px)}
.sign-in-footnote{border-top:1px solid #bda47544;padding-top:22px;margin:28px 0 0}
.muted,.footnote{font-size:clamp(14px,.95vw,18px);color:#b9c8d4}
.footnote{margin:10px 0 0}
#family{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
#family>.button{margin-top:clamp(22px,3vh,36px);width:100%}
#family>p:last-child{margin-bottom:0}
label{display:block;margin:18px 0 10px}
input:not([type=checkbox]){width:100%;padding:13px;border:1px solid #8496a3;border-radius:5px;font:18px/1.4 ui-monospace,monospace;background:#07111b;color:#fff}
button,.button{display:inline-flex;align-items:center;justify-content:center;column-gap:.25em;max-width:100%;min-height:54px;margin-top:10px;padding:13px 22px;border:1px solid #c4a76e;border-radius:5px;background:linear-gradient(110deg,#c19d5d,#e0c086 54%,#c29b58);color:#06121b;text-decoration:none;text-align:center;font:600 clamp(16px,1.1vw,21px)/1.4 system-ui,sans-serif;cursor:pointer;overflow-wrap:anywhere;box-shadow:0 5px 16px #0003}
button:disabled{opacity:.5;cursor:wait}
.secondary{background:#091725aa;color:#eedbb4;box-shadow:none}
button:hover:not(:disabled),.button:hover{filter:brightness(1.1)}
.check{display:flex;gap:12px;align-items:flex-start;font-size:clamp(15px,1vw,18px)}
.check input{margin-top:5px;flex-shrink:0;width:20px;height:20px}
[role=status]{color:#e1d2ad}
[role=status]:empty,#loginAvailability:empty{display:none}
[hidden]{display:none!important}
#status{margin:0 0 18px;text-shadow:0 2px 6px #000}
#saves{grid-column:1/-1}
.account-footer{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;text-shadow:0 2px 6px #000}
.account-footer:has(button:not([hidden])){margin-top:20px}
.account-footer .footnote,#signOutForm button{margin:0}
#importPreview,#importOldPreview,#importLegacy{border-top:1px solid #bda47544;margin-top:24px;padding-top:22px}
#authNotice{border:1px solid #b28d50;padding:12px;border-radius:6px;color:#eedbb4;background:#07111be6;margin:0 0 18px}
#accessCode{width:100%;border-top:1px solid #bda47544;margin-top:24px;padding-top:12px}
summary{cursor:pointer;color:#e9cf96;font-weight:600;min-height:44px;padding:10px 0}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:2px solid #eedbb4;outline-offset:4px}
@media(min-width:900px){
 .account-content:has(#freePreview:not([hidden])) #freePreview{grid-column:1;grid-row:1}
 .account-content:has(#freePreview:not([hidden])) #family{grid-column:2;grid-row:1/span 2}
 .account-content:has(#freePreview:not([hidden])) #saves{grid-column:1;grid-row:2}
 #freePreview{display:flex;flex-direction:column;align-items:flex-start}
 #previewLink{margin-top:auto}
}
@media(max-width:899px){
 :root{font-size:16px}
 main{display:block;max-width:820px;padding:18px 24px 24px}
 body::before{background-position:56% center;background-image:linear-gradient(90deg,rgba(3,9,16,.76),rgba(3,9,16,.54)),url('/lorespan-desktop-hero.png')}
 .account-header{gap:20px;margin:16px 0 26px}
 .account-header .account-brand-logo{width:88px;height:88px}
 h1{font-size:42px}
 h2,h3{font-size:25px;margin-bottom:16px}
 .intro{font-size:17px}
 .account-content{min-height:0;grid-template-columns:minmax(0,1fr);gap:18px}
 section{padding:24px}
 .entry-choices{gap:24px}
 .returning-player{padding-left:24px}
 #family>.button{margin-top:16px;width:auto}
 .sign-in-footnote{margin-top:24px;padding-top:18px}
}
@media(max-width:560px){
 main{padding:12px 16px 24px}
 body::before{background-position:52% center}
 .account-header{gap:14px;margin:12px 0 22px;align-items:flex-start}
 .account-header .account-brand-logo{width:64px;height:64px;margin-top:3px}
 h1{font-size:32px;margin-bottom:8px}
 h2,h3{font-size:23px}
 .eyebrow{font-size:12px;letter-spacing:.16em;margin-bottom:6px}
 .intro{font-size:15px;line-height:1.45}
 .account-content{gap:16px}
 section{padding:20px}
 .entry-choices{grid-template-columns:minmax(0,1fr);gap:22px}
 .new-player,.returning-player{align-items:stretch}
 .returning-player{border-left:0;border-top:1px solid #bda47544;padding:22px 0 0}
 .entry-choices p{margin-bottom:14px}
 button,.button{width:100%;min-height:48px}
 #family>.button{width:100%;margin-top:12px}
 .sign-in-footnote{margin-top:20px;padding-top:16px}
 .account-footer{display:block}
 .account-footer .footnote{margin-top:14px}
}
@media(min-width:900px) and (max-height:760px){
 :root{font-size:16px}
 main{padding:12px 28px 20px}
 .account-header{gap:20px;margin:8px 0 20px}
 .account-header .account-brand-logo{width:86px;height:86px}
 h1{font-size:42px;margin-bottom:7px}
 h2,h3{font-size:25px;margin-bottom:16px}
 .intro{font-size:17px}
 .eyebrow{font-size:13px;margin-bottom:5px}
 section{padding:24px}
 .entry-choices{gap:24px}
 .returning-player{padding-left:24px}
 .entry-choices p{margin-bottom:18px}
 .sign-in-footnote{margin-top:22px;padding-top:18px}
 button,.button{min-height:48px;padding:11px 18px;font-size:16px}
 .muted,.footnote{font-size:14px}
}
@media(min-width:900px) and (max-height:640px){
 main{padding:8px 24px 16px}
 .account-header{margin:4px 0 16px}
 .account-header .account-brand-logo{width:70px;height:70px}
 h1{font-size:36px}
 h2,h3{font-size:23px;margin-bottom:12px}
 section{padding:20px}
 .entry-choices{gap:20px}
 .returning-player{padding-left:20px}
 .sign-in-footnote{margin-top:18px;padding-top:14px}
 #status{margin-bottom:12px}
 .account-footer:has(button:not([hidden])){margin-top:14px}
}

@media(min-width:900px){
 main:has(#signIn[hidden]){padding-bottom:12px}
 main:has(#signIn[hidden]) .account-header{margin:4px 0 10px}
 main:has(#signIn[hidden]) #status{margin-bottom:12px}
 main:has(#signIn[hidden]) .account-footer{margin-top:12px}
}

.account-brand-logo{display:block;width:clamp(88px,10vw,160px);height:clamp(88px,10vw,160px);object-fit:contain;margin:0;flex:none;clip-path:polygon(95.169% 47.526%,95.032% 48.312%,94.947% 49.096%,94.977% 49.883%,94.929% 50.668%,94.868% 51.451%,94.792% 52.234%,94.703% 53.015%,94.601% 53.794%,94.485% 54.572%,94.291% 55.336%,94.212% 56.120%,93.991% 56.877%,93.885% 57.658%,93.701% 58.422%,93.442% 59.166%,93.232% 59.923%,93.009% 60.675%,92.773% 61.424%,92.524% 62.168%,92.262% 62.908%,91.987% 63.643%,91.639% 64.349%,91.339% 65.073%,91.026% 65.792%,90.701% 66.505%,90.364% 67.213%,89.956% 67.885%,89.595% 68.579%,89.221% 69.267%,88.836% 69.948%,88.439% 70.622%,88.030% 71.290%,87.609% 71.950%,87.177% 72.602%,86.681% 73.210%,86.279% 73.885%,85.814% 74.514%,85.337% 75.135%,84.850% 75.747%,84.352% 76.351%,83.844% 76.946%,83.374% 77.576%,82.797% 78.109%,82.352% 78.768%,81.755% 79.281%,81.242% 79.878%,80.628% 80.370%,80.093% 80.948%,79.548% 81.517%,78.951% 82.028%,78.385% 82.579%,77.769% 83.069%,77.184% 83.600%,76.512% 84.016%,75.908% 84.527%,75.222% 84.919%,74.601% 85.408%,73.936% 85.832%,73.297% 86.299%,72.617% 86.700%,71.930% 87.089%,71.236% 87.466%,70.566% 87.888%,69.829% 88.182%,69.144% 88.581%,68.425% 88.909%,67.700% 89.224%,66.969% 89.527%,66.234% 89.817%,65.493% 90.094%,64.769% 90.419%,64.018% 90.670%,63.263% 90.908%,62.504% 91.133%,61.758% 91.408%,60.975% 91.543%,60.205% 91.728%,59.432% 91.899%,58.668% 92.121%,57.889% 92.266%,57.107% 92.396%,56.323% 92.514%,55.536% 92.617%,54.749% 92.707%,53.959% 92.783%,53.169% 92.845%,52.378% 92.893%,51.585% 92.928%,50.793% 92.949%,50.000% 92.956%,49.207% 92.949%,48.415% 92.928%,47.622% 92.893%,46.826% 92.910%,46.035% 92.848%,45.251% 92.707%,44.464% 92.617%,43.668% 92.578%,42.883% 92.461%,42.100% 92.330%,41.332% 92.121%,40.555% 91.963%,39.781% 91.791%,39.010% 91.606%,38.225% 91.471%,37.460% 91.258%,36.718% 90.971%,35.961% 90.732%,35.188% 90.542%,34.440% 90.277%,33.719% 89.938%,32.957% 89.708%,32.249% 89.344%,31.522% 89.028%,30.801% 88.699%,30.056% 88.416%,29.375% 88.004%,28.672% 87.638%,27.944% 87.317%,27.253% 86.926%,26.602% 86.467%,25.926% 86.053%,25.293% 85.572%,24.632% 85.135%,23.980% 84.687%,23.335% 84.227%,22.699% 83.756%,22.071% 83.274%,21.451% 82.781%,20.840% 82.277%,20.238% 81.763%,19.645% 81.238%,19.061% 80.704%,18.487% 80.159%,17.922% 79.604%,17.367% 79.039%,16.870% 78.420%,16.288% 77.881%,15.763% 77.288%,15.249% 76.686%,14.745% 76.075%,14.252% 75.455%,13.770% 74.827%,13.299% 74.191%,12.840% 73.546%,12.391% 72.894%,11.954% 72.233%,11.473% 71.600%,11.003% 70.958%,10.600% 70.273%,10.209% 69.582%,9.830% 68.885%,9.464% 68.180%,9.051% 67.498%,8.709% 66.780%,8.379% 66.057%,8.062% 65.328%,7.758% 64.593%,7.466% 63.853%,7.127% 63.131%,6.861% 62.380%,6.608% 61.625%,6.306% 60.885%,6.142% 60.102%,5.867% 59.352%,5.667% 58.579%,5.481% 57.804%,5.308% 57.026%,5.149% 56.244%,4.940% 55.471%,4.808% 54.684%,4.690% 53.894%,4.650% 53.094%,4.495% 52.309%,4.419% 51.514%,4.356% 50.718%,4.307% 49.921%,4.273% 49.123%,4.187% 48.326%,4.049% 47.526%,2.950% 46.705%,4.208% 45.927%,4.177% 45.125%,4.226% 44.325%,4.289% 43.527%,4.366% 42.730%,4.457% 41.934%,4.561% 41.140%,4.615% 40.338%,4.812% 39.558%,4.958% 38.771%,5.117% 37.986%,5.291% 37.204%,5.478% 36.425%,5.678% 35.650%,5.955% 34.896%,6.182% 34.129%,6.422% 33.367%,6.676% 32.608%,6.943% 31.855%,7.223% 31.106%,7.577% 30.386%,7.882% 29.648%,8.201% 28.916%,8.532% 28.189%,8.934% 27.497%,9.290% 26.783%,9.658% 26.076%,10.095% 25.407%,10.488% 24.714%,10.948% 24.061%,11.363% 23.383%,11.790% 22.712%,12.229% 22.049%,12.733% 21.431%,13.194% 20.785%,13.666% 20.147%,14.201% 19.557%,14.745% 18.977%,15.199% 18.324%,15.714% 17.721%,16.288% 17.171%,16.870% 16.632%,17.414% 16.058%,17.968% 15.494%,18.532% 14.940%,19.106% 14.396%,19.689% 13.862%,20.324% 13.387%,20.924% 12.875%,21.574% 12.423%,22.191% 11.932%,22.816% 11.452%,23.488% 11.036%,24.129% 10.579%,24.814% 10.187%,25.435% 9.699%,26.133% 9.331%,26.803% 8.920%,27.480% 8.521%,28.196% 8.191%,28.886% 7.816%,29.612% 7.512%,30.285% 7.104%,31.021% 6.825%,31.734% 6.500%,32.478% 6.247%,33.201% 5.948%,33.929% 5.661%,34.685% 5.448%,35.443% 5.249%,36.163% 4.939%,36.927% 4.766%,37.657% 4.482%,38.444% 4.399%,39.199% 4.204%,39.942% 3.959%,40.717% 3.853%,41.468% 3.634%,42.247% 3.556%,43.026% 3.492%,43.786% 3.312%,44.559% 3.210%,45.333% 3.122%,46.109% 3.048%,46.885% 2.986%,47.667% 3.004%,48.444% 2.970%,49.213% 2.429%,50.000% 1.380%,50.781% 2.754%,51.556% 2.970%,52.333% 3.004%,53.110% 3.051%,53.891% 3.048%,54.667% 3.122%,55.441% 3.210%,56.214% 3.312%,56.974% 3.492%,57.753% 3.556%,58.519% 3.698%,59.283% 3.853%,60.058% 3.959%,60.801% 4.204%,61.556% 4.399%,62.325% 4.545%,63.073% 4.766%,63.837% 4.939%,64.557% 5.249%,65.293% 5.509%,66.047% 5.722%,66.774% 6.008%,67.496% 6.307%,68.213% 6.619%,68.924% 6.943%,69.658% 7.221%,70.359% 7.570%,71.053% 7.931%,71.741% 8.305%,72.422% 8.690%,73.096% 9.087%,73.798% 9.441%,74.459% 9.862%,75.113% 10.295%,75.759% 10.739%,76.397% 11.194%,77.027% 11.660%,77.649% 12.137%,78.303% 12.575%,78.867% 13.124%,79.463% 13.633%,80.050% 14.152%,80.628% 14.682%,81.242% 15.174%,81.755% 15.771%,82.258% 16.375%,82.844% 16.898%,83.374% 17.476%,83.893% 18.063%,84.352% 18.701%,84.901% 19.264%,85.389% 19.877%,85.866% 20.499%,86.332% 21.129%,86.787% 21.767%,87.231% 22.413%,87.609% 23.102%,88.085% 23.728%,88.439% 24.430%,88.836% 25.104%,89.221% 25.785%,89.652% 26.443%,89.956% 27.167%,90.364% 27.839%,90.701% 28.547%,91.026% 29.260%,91.339% 29.979%,91.578% 30.727%,91.865% 31.455%,92.201% 32.166%,92.462% 32.905%,92.649% 33.669%,92.884% 34.415%,93.107% 35.165%,93.316% 35.920%,93.512% 36.677%,93.758% 37.424%,93.864% 38.203%,94.084% 38.957%,94.162% 39.739%,94.292% 40.511%,94.472% 41.276%,94.574% 42.053%,94.728% 42.825%,94.803% 43.606%,94.864% 44.389%,94.912% 45.172%,94.947% 45.956%,96.594% 46.713%)}

#caseContinue{margin:0 0 24px;max-width:100%}#caseContinueButton{min-height:58px;font-size:clamp(18px,1.3vw,24px)}#caseContinueResult:empty{display:none}@media(max-width:599px){#caseContinueButton{width:100%}}
