*{box-sizing:border-box}body{margin:0;background:#080d10;color:#e4efef;font:16px system-ui,sans-serif}header,footer{padding:20px max(5vw,16px);border-bottom:1px solid #24504f;display:flex;gap:20px;align-items:center}header a:first-child{font-weight:900;letter-spacing:2px}a,b{color:#43e2ce}a{text-decoration:none}header a:last-child{margin-left:auto}main{max-width:1000px;margin:auto;padding:24px 16px}h1{font-size:clamp(30px,6vw,64px);margin:12px 0}section{background:#101b20;border:1px solid #294347;padding:20px;margin:16px 0}form{max-width:420px;display:grid;gap:12px}label{display:grid;gap:5px}input,select,button{font:inherit;padding:10px;border:1px solid #38605e;background:#14282b;color:#fff;max-width:100%}button{cursor:pointer;background:#42d8c4;color:#071313;font-weight:700;margin:3px}button:hover{background:#a4fff1}button:disabled{opacity:.5}#board{display:grid;grid-template-columns:repeat(8,1fr);max-width:560px;margin:10px auto;aspect-ratio:1}#board button{margin:0;padding:0;border:0;aspect-ratio:1;font-family:'DejaVu Sans','Segoe UI Symbol',serif;font-size:clamp(23px,7vw,54px);line-height:1;color:#101619;text-shadow:0 0 1px white;position:relative}#board .light{background:#c5d9d4}#board .dark{background:#38736e}#board .white{color:#fff;text-shadow:1px 1px 2px #000}#board .selected{box-shadow:inset 0 0 0 4px #f6d65b}#board .target:after{content:'';position:absolute;inset:38%;background:#073b36aa;border-radius:50%}#message{color:#f6d65b;overflow-wrap:anywhere}#token,#share{overflow-wrap:anywhere}#leaders div,#history div,#accounts div,#tokens div{padding:8px;border-bottom:1px solid #294347} [hidden]{display:none!important}
.auth-page{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 35%,#12292b 0%,#080d10 58%)}.auth-page main{flex:1;width:100%;max-width:460px;margin:0 auto;display:flex;flex-direction:column;justify-content:center;padding:36px 20px}.auth-brand{text-align:center;display:grid;justify-items:center;gap:8px;margin-bottom:24px}.chess-mark{font-size:44px;line-height:1;color:#43e2ce;border:1px solid #38605e;width:66px;height:66px;display:grid;place-items:center;background:#102326;border-radius:14px}.auth-brand strong{font-size:22px;letter-spacing:2px}.auth-brand small{font-size:10px;letter-spacing:3px;color:#91a6aa}.auth-card{margin:0;padding:30px;border-radius:12px;background:#101b20;box-shadow:0 18px 60px #0005}.auth-card h2{margin:0;font-size:25px}.auth-card #auth-description{color:#a0b3b6;font-size:14px;margin:8px 0 24px}.auth-card form{max-width:none;gap:16px}.auth-card label{font-size:13px;font-weight:600}.auth-card input:not([type=checkbox]){width:100%;border-radius:6px;padding:12px;background:#0c1519}.auth-card input:focus{outline:2px solid #43e2ce;outline-offset:1px}.auth-card label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px;color:#a0b3b6}.auth-card input[type=checkbox]{accent-color:#43e2ce}.auth-card #auth-submit{margin:4px 0 0;border-radius:6px;padding:13px}.auth-links{border-top:1px solid #294347;margin-top:22px;padding-top:16px;display:grid;gap:8px;text-align:center}.auth-links button{background:none;border:0;color:#43e2ce;font-size:13px;font-weight:500;margin:0;padding:4px}.auth-links button:hover{text-decoration:underline}.auth-card #message:empty{display:none}.auth-card #message{font-size:13px}.auth-page footer{justify-content:center;border-bottom:0;border-top:1px solid #294347;font-size:12px}.auth-page header{font-size:13px}@media(max-width:480px){.auth-card{padding:22px}.auth-page header{gap:10px}.auth-page header a:first-child{letter-spacing:1px}}

/* Signed-in navigation; authentication layout remains independent. */
.signed-in{--sidebar-width:244px;min-height:100vh;padding-left:var(--sidebar-width);display:flex;flex-direction:column}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);background:#101b20;border-right:1px solid #294347;display:flex;flex-direction:column;padding:20px 12px;gap:20px;overflow-y:auto;z-index:10}.side-brand{display:flex;align-items:center;gap:10px;color:#e4efef;font-size:13px;font-weight:900;letter-spacing:1px;padding:4px 8px}.side-brand>span{font-size:32px;color:#43e2ce}.side-brand small{display:block;color:#81999c;font-size:10px;margin-top:4px}.side-profile{display:flex;align-items:center;gap:10px;text-align:left;background:#15272b;color:#e4efef;border:1px solid #294347;border-radius:8px;padding:12px;margin:0;width:100%;min-width:0}.side-profile:hover,.side-profile.active{background:#1d393b;border-color:#43e2ce}.avatar{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:8px;background:#254b4a;color:#43e2ce;font-size:21px}.side-profile>span:last-child{min-width:0}.side-profile strong,.side-profile small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-profile small{font-size:11px;color:#a2b9ba;margin-top:4px}.sidebar nav,.side-bottom{display:grid;gap:5px}.side-bottom{margin-top:auto}.nav-item{display:flex;align-items:center;gap:12px;width:100%;text-align:left;margin:0;padding:12px;border:0;border-radius:6px;background:transparent;color:#b6c9ca;font-size:14px;font-weight:600}.nav-item svg{width:22px;height:22px;flex:none}.nav-item:hover,.nav-item.active{background:#20383b;color:#43e2ce}.nav-item[data-page=owner]{color:#e8b943}.nav-item[data-page=owner].active{background:#342c1b}.signed-in main{width:100%;flex:1;padding:32px 24px}.signed-in h1{font-size:clamp(28px,4vw,42px)}.signed-in footer{border-top:1px solid #294347;border-bottom:0;font-size:12px;justify-content:center}.signed-in #message:empty{display:none}#profile{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}#profile>div{background:#14282b;border:1px solid #294347;padding:16px;border-radius:6px}#profile small,#profile strong{display:block}#profile small{color:#a2b9ba;margin-bottom:8px}#profile strong{overflow-wrap:anywhere;font-size:20px}@media(max-width:700px){.signed-in{--sidebar-width:64px}.sidebar{padding:12px 6px;gap:14px}.side-brand{justify-content:center;padding:0}.side-brand>div,.side-profile>span:last-child,.nav-item>span{display:none}.side-profile,.nav-item{justify-content:center;padding:10px 0}.signed-in main{padding:16px 10px}.signed-in section{padding:12px}.signed-in #board button{font-size:clamp(18px,6vw,45px)}}

#leaders{display:grid;gap:10px}.leader-row{display:flex;align-items:center;gap:16px;padding:16px;background:#142025;border:1px solid #294347;border-radius:8px;min-width:0}.leader-position{min-width:38px;color:#a2b9ba;font-weight:700;font-variant-numeric:tabular-nums}.leader-avatar{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:50%;background:#254044;color:#a7d8d3;font-size:22px;font-weight:800}.leader-info{display:flex;flex-direction:column;gap:4px;min-width:0}.leader-info strong{font-size:19px;font-weight:800;overflow-wrap:anywhere}.leader-rank{font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}@media(max-width:500px){.leader-row{gap:9px;padding:10px}.leader-position{min-width:28px;font-size:12px}.leader-avatar{width:36px;height:36px;font-size:17px}.leader-info strong{font-size:16px}.leader-rank{font-size:12px}}
.owner-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.owner-tile{display:grid;text-align:left;gap:12px;padding:22px;margin:0;background:#142025;color:#43e2ce;border:1px solid #345158;border-radius:10px}.owner-tile:hover{background:#20383b}.owner-tile span{font-size:32px}.owner-tile strong{font-size:19px;color:inherit}.owner-tile small,.owner-muted,.owner-user-info small{color:#a2b9ba}.owner-tile.green{color:#4ade80}.owner-tile.blue{color:#60a5fa}.owner-tile.purple{color:#c084fc}.owner-user{padding:16px;margin:12px 0;background:#142025;border:1px solid #294347;border-radius:8px}.owner-user-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.owner-user-info{display:grid;gap:5px;flex:1;min-width:120px;overflow-wrap:anywhere}.owner-good{color:#4ade80}.owner-bad{color:#f87171}.owner-actions{display:flex;flex-wrap:wrap;margin-top:12px}.owner-secondary{background:#20383b;color:#43e2ce}.owner-warn{background:#49371b;color:#facc15}.owner-danger{background:#451f27;color:#fca5a5;border-color:#8e3545}.owner-edit{display:grid;gap:10px;margin-top:14px}.owner-edit input,#user-search{width:100%}#owner-status{color:#facc15}#owner-matches>div,#owner-stats>div{padding:12px;border-bottom:1px solid #294347}#accounts .owner-user div{border:0;padding:0}
