body.account-view{background:linear-gradient(#170a08c9,#160806ed),url('/royal-board.png') center/cover fixed}.account-screen{min-height:100svh;padding:48px 24px 120px;display:flex;align-items:center;justify-content:center;gap:clamp(35px,8vw,120px)}.account-brand{max-width:380px}.account-brand h1{font:bold clamp(65px,9vw,110px)/1 Georgia;color:#ecc36d;margin:15px 0;text-shadow:0 3px 20px #000}.eyebrow{font:10px/1.5 system-ui;letter-spacing:3px;color:#d5a95f}.account-brand p{font:19px/1.5 Georgia;color:#e8d1ad}.account-card{width:100%;max-width:410px;background:linear-gradient(140deg,#32170ff5,#1a0b07fa);border:1px solid #b784456e;border-radius:12px;padding:30px;box-shadow:0 20px 70px #0007}.account-card h2{font:28px/1.2 Georgia;margin:22px 0}.auth-tabs{display:flex;gap:8px}.auth-tabs button{flex:1;background:transparent;color:#b9a18a}.auth-tabs [aria-selected=true]{color:#f8d088;background:#9c642826;border-color:#d6a550}form label{display:block;font:13px system-ui;color:#e1c8a0;margin:16px 0 7px}form input{display:block;width:100%;max-width:none;border:1px solid #87613788;background:#140a07b3;border-radius:5px;font:16px system-ui;min-height:46px;padding:10px 12px;color:#fff0d0}form button.primary{margin-top:20px;width:100%}#auth-status,#recovery-status,#password-status{margin-top:16px;font-size:13px}.account-fine{font:11px/1.65 system-ui;color:#a58f75;margin-top:20px}.text-button{background:transparent;border:0;color:#dbb777;padding:10px 0;min-height:44px}.text-button:hover{background:transparent;color:#ffe5b0}.lobby-screen{display:block;width:min(1120px,100%);margin:auto}.court-header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:38px}.court-header h1{margin:10px 0;color:#f4d28e;font-size:clamp(30px,5vw,46px)}.court-tools{display:flex;gap:10px}.court-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.court-grid .account-card{max-width:none}.play-card .crest{font-size:48px}.play-card>button{display:block;width:100%;margin-top:15px}.play-card>p{margin-bottom:24px}#online-games{display:grid;gap:10px;margin-top:20px}.empty-state{font-size:13px;color:#bca389;padding:12px 0}.social-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:13px 0;border-bottom:1px solid #85603b55}.social-row strong{flex:1;min-width:120px;font-size:15px;font-weight:500}.social-row button{font-size:12px;padding:7px 11px}#social-dock{position:fixed;right:18px;bottom:76px;z-index:10;display:flex;gap:8px}#social-dock button{background:#291106f2;box-shadow:0 3px 18px #0008;font:14px Georgia}.unread-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:20px;background:#ad3333;color:#fff3da;font:bold 11px system-ui;margin-left:4px;padding:0 4px}#account-status{position:fixed;top:108px;left:50%;transform:translateX(-50%);z-index:60;max-width:calc(100% - 30px);padding:10px 16px;border-radius:5px;background:#3c1c0ff5;color:#ffe0a4;box-shadow:0 4px 15px #0007;text-align:center}#account-status:empty{display:none}.inline-form{display:flex;gap:8px;align-items:center}.inline-form input{flex:1;min-width:0}.inline-form button.primary{margin:0;width:auto;white-space:nowrap}.social-panel,.chat-panel{max-width:620px}#friends-list h3{font-size:18px;font-weight:500;margin:25px 0 6px}#chat-log{height:clamp(180px,45svh,410px);overflow:auto;padding:10px 0;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}.chat-bubble{align-self:flex-start;max-width:85%;padding:10px 13px;background:#56301e;border-radius:12px 12px 12px 2px;overflow-wrap:anywhere}.chat-bubble.mine{align-self:flex-end;background:#9a6825;border-radius:12px 12px 2px 12px}.chat-bubble span{display:block;white-space:pre-wrap;font:14px/1.5 system-ui;color:#fff0d3}.chat-bubble small{display:block;text-align:right;font:10px system-ui;color:#d6c1a3;margin-top:5px}#chat-friends{display:grid;gap:8px}#profile-panel{max-width:420px}#connection-note{font-size:11px;color:#bba186}
@media(max-width:700px){.account-screen{flex-direction:column;padding:30px 18px 110px;gap:24px}.account-brand{text-align:center}.account-brand h1{font-size:64px;margin:8px 0}.account-brand p{font-size:16px}.account-card{padding:24px}.account-card h2{font-size:25px}.court-header{display:block;margin-bottom:24px}.court-tools{margin-top:20px}.court-grid{grid-template-columns:1fr;gap:18px}.lobby-screen{display:block}.social-row strong{flex-basis:100%}#social-dock{bottom:75px;right:12px}#social-dock button{padding:8px 12px}.account-view #social-dock{bottom:18px}#account-status{top:auto;bottom:133px}.inline-form button{font-size:13px;padding:10px}#chat-panel{padding:20px}.chat-bubble{max-width:90%}}
.dialog-notice{padding:10px 12px;margin:0 0 14px;border:1px solid #c28b4655;background:#97642426;border-radius:5px;color:#ffdda1;font-size:13px}.dialog-notice:empty{display:none}#invitation-list:not(:empty),#social-invitations:not(:empty){margin-top:14px}.social-row>span{flex:1;min-width:140px}.social-row button{min-height:44px}.account-view #social-dock{bottom:max(18px,env(safe-area-inset-bottom))}
.language-tools{position:fixed;left:24px;bottom:76px;z-index:11}.account-view .language-tools{bottom:max(18px,env(safe-area-inset-bottom))}select{font:15px/1.5 system-ui,Nyala,sans-serif;color:#ffe3a3;background:#291106f5;border:1px solid #bb843c88;border-radius:5px;padding:10px 30px 10px 12px;min-height:44px;max-width:100%;cursor:pointer}select:focus-visible{outline:2px solid #ffd481;outline-offset:3px}.language-tools select{font-size:13px;box-shadow:0 3px 18px #0008}.level-picker{padding:16px 0 4px;border-top:1px solid #b784453f;margin:18px 0}.level-picker label{display:block;margin-bottom:8px;font:13px system-ui;color:#e3c99e}.level-picker select{width:100%;font-size:16px}.level-picker p{font:12px/1.6 system-ui;margin:9px 0 0;min-height:38px;color:#c6ab86}html[lang="am"] .level-picker p{font-size:14px;line-height:1.7}html[lang="am"] .eyebrow{letter-spacing:1px}
@media(max-width:700px){.language-tools{left:12px}.language-tools select{font-size:12px;padding:9px 24px 9px 9px}.account-view .language-tools{left:18px}html[lang="am"] #social-dock button{font-size:13px;padding:8px 10px}}
html[lang="am"] .turn-panel p{font-size:18px}html[lang="am"] .turn-panel>span{font-size:13px;letter-spacing:0}html[lang="am"] .score span{font-family:Nyala,'Noto Sans Ethiopic',system-ui,sans-serif;font-size:12px;letter-spacing:0}html[lang="am"] #sowing-timing{font-size:13px}html[lang="am"] .account-card p{line-height:1.8}html[lang="am"] .account-fine{font-size:13px}html[lang="am"] .social-row button{font-size:15px}html[lang="am"] footer button{font-size:15px;padding-left:10px;padding-right:10px}
@media(max-width:600px){html[lang="am"] footer button{font-size:14px;padding-left:8px;padding-right:8px}html[lang="am"] #social-dock button{font-size:14px}}
/* The entry screen is scoped so the court and game keep their existing layout. */
.entry-language{display:flex;gap:8px;border-top:1px solid #b98a4233;margin-top:18px;padding-top:10px}.entry-language button{font:12px system-ui;min-height:44px;padding:8px 13px;background:transparent;border-color:transparent}.entry-language button[aria-pressed=true]{border-color:#bf914b66;background:#97642426;color:#ffe1a0}
.entry-logo img{display:block;width:100%;height:auto;filter:drop-shadow(0 5px 10px #0008)}.auth-view .account-brand{width:min(440px,100%)}.auth-view .account-brand .entry-logo{width:100%;font-size:0;margin:18px 0 22px}.auth-view .brand-crown{font-size:44px}.entry-dialog .code-input{text-align:center;font:28px/1.4 system-ui;letter-spacing:.35em;font-variant-numeric:tabular-nums;min-height:64px;padding-left:20px}.code-actions{display:flex;justify-content:space-between;gap:12px}.entry-dialog .code-actions .text-button{margin-top:6px}.recovery-step{display:inline-block;font:11px system-ui;letter-spacing:2px;color:#e6bd6e;margin:8px 0 12px}#recovery-code-form h2{font:27px Georgia;color:#ffe0a0;margin:0 0 12px}#recovery-destination{overflow-wrap:anywhere;color:#f6dba5;margin:8px 0 18px}#recovery-code-form #code-expiry{font-variant-numeric:tabular-nums}html[lang=am] #recovery-code-form h2{font-family:Nyala,'Noto Sans Ethiopic',system-ui}
body.auth-view{background:linear-gradient(90deg,#120806a6,#120806e8 65%),url('/royal-board.png') center/cover fixed}.auth-view .language-tools{top:22px;right:24px;left:auto;bottom:auto}.auth-view #sound-toggle{display:none}#auth-screen{width:min(1100px,100%);margin:auto;padding:100px 32px 60px;gap:clamp(40px,7vw,100px);min-height:100svh;align-items:center}#auth-screen[hidden],#auth-loading[hidden]{display:none!important}.auth-view .account-brand{flex:1;max-width:370px}.brand-crown{display:block;font:65px/1 Georgia;color:#efc770;margin-bottom:20px;text-shadow:0 3px 25px #000}.auth-view .account-brand h1{font-size:clamp(70px,8vw,112px);margin:15px 0 20px}.auth-view .account-brand p{font:23px/1.5 Georgia;color:#f3dfbc}.account-brand>small{font:13px/1.7 system-ui;color:#c4ae8b}.brand-divider{display:flex;align-items:center;gap:18px;margin:28px 0;color:#c99748;font-size:13px}.brand-divider:before,.brand-divider:after{content:'';height:1px;background:linear-gradient(90deg,#c9974877,transparent);flex:1}.brand-divider:before{transform:rotate(180deg)}.entry-card{flex:1;max-width:440px;padding:32px;border-radius:16px;background:linear-gradient(145deg,#341c12fa,#180b07fc);border:1px solid #c29a5666;box-shadow:0 24px 80px #0008,inset 0 1px #fff1c511}.entry-card .auth-tabs{background:#160a07;border:1px solid #9f723c44;border-radius:7px;padding:4px;gap:4px}.entry-card .auth-tabs button{border:0;border-radius:4px;font:13px system-ui;min-height:44px;padding:10px}.entry-card .auth-tabs [aria-selected=true]{background:linear-gradient(#755028,#54351c);color:#ffe5ad;box-shadow:0 2px 8px #0004}.entry-card h2{font:32px/1.25 Georgia;color:#ffe1a0;margin:26px 0 7px}.entry-intro{font:13px/1.6 system-ui;color:#cbb28e;margin-bottom:22px}.entry-card form label,.entry-dialog form label{font:13px/1.5 system-ui;margin:17px 0 7px;color:#f4dbb1}.entry-card input:not([type=checkbox]),.entry-dialog input{min-height:50px;border-radius:6px;background:#120906c9;border:1px solid #a77d4a88;color:#fff3d8;padding:12px 13px;scroll-margin:90px 0;font:16px/1.5 system-ui;max-width:100%}.entry-card input::placeholder{color:#987f66;opacity:1}.entry-card input[aria-invalid=true],.entry-dialog input[aria-invalid=true]{border-color:#f5a798;outline-color:#f5a798}.field-help{display:block;font:11px/1.6 system-ui;color:#bda586;margin-top:7px}.field-help[hidden]{display:none}.field-error{display:block;font:12px/1.6 system-ui;color:#ffb9a6;margin-top:6px}.field-error:empty{display:none}.password-field{position:relative}.password-field input{padding-right:72px!important}.password-field button{position:absolute;right:3px;top:3px;bottom:3px;min-width:60px;padding:8px;background:transparent;border:0;font:12px system-ui;color:#efcf95;border-radius:4px}.password-field button:hover{background:#9b6c2426}.entry-options{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}.entry-card .remember-choice{display:flex;align-items:center;gap:9px;min-height:44px;margin:0;font:12px system-ui;cursor:pointer}.remember-choice input{width:18px;height:18px;min-height:18px;padding:0;flex-shrink:0;accent-color:#dfb35e;max-width:none}.entry-options .text-button{font:12px system-ui;white-space:nowrap;min-height:44px}.entry-card #remember-help{margin-top:0}.entry-card .primary,.entry-dialog .primary{min-height:50px;border-radius:6px;font:600 15px system-ui;letter-spacing:.2px}.entry-card .entry-security{border-top:1px solid #ac7a3e33;padding-top:17px;color:#bca27f;font:11px/1.6 system-ui;text-align:center;margin-top:8px}#auth-status{font:13px/1.7 system-ui;color:#ffdc9a}#auth-status:empty{display:none}.entry-dialog{max-width:470px;padding:30px;border-radius:14px;background:linear-gradient(145deg,#341c12,#180b07)}.entry-dialog h1{font:29px/1.25 Georgia;margin:0 0 18px}.entry-dialog>p{font:13px/1.7 system-ui}.entry-dialog #recovery-status,.entry-dialog #password-status{color:#ffdc9a}.recovery-warning{border:1px solid #c49b4b66;background:#84582122;border-radius:7px;padding:16px;margin:14px 0}.entry-dialog .text-button{font:13px system-ui;margin-top:15px}.entry-dialog .dialog-head button{flex-shrink:0;min-width:44px}.auth-boot #auth-screen{visibility:hidden}#auth-loading{min-height:100svh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px}#auth-loading>span{font:54px Georgia;color:#efc770}#auth-loading>strong{font:40px Georgia;color:#ffe1a0}#auth-loading>p{font:13px system-ui;color:#d6bb8c}.auth-view button:focus-visible,.auth-view input:focus-visible{outline:2px solid #ffe1a0;outline-offset:3px}.auth-view button:disabled{cursor:wait;opacity:.65}html[lang=am] .entry-card h2,html[lang=am] .entry-dialog h1{font-family:Nyala,'Noto Sans Ethiopic',system-ui}html[lang=am] .field-help,html[lang=am] .field-error,html[lang=am] .entry-intro,html[lang=am] .entry-card .entry-security{font-size:14px;line-height:1.7}html[lang=am] .entry-options .text-button,html[lang=am] .entry-card .remember-choice{font-size:14px}
@media(max-width:700px){body.auth-view{background:linear-gradient(#120806bd,#120806f5 50%),url('/royal-board.png') center top/auto 80svh no-repeat fixed}#auth-screen{padding:85px 18px 35px;gap:25px;justify-content:flex-start;min-height:100svh}.auth-view .language-tools{top:16px;right:18px;left:auto;bottom:auto}.auth-view .account-brand{flex:none}.auth-view .account-brand h1{font-size:58px;margin:8px 0}.brand-crown{display:none}.auth-view .account-brand .eyebrow{font-size:9px}.auth-view .account-brand p{font:16px/1.5 Georgia}.auth-view .account-brand p br{display:none}.brand-divider,.account-brand>small{display:none}.entry-card{flex:none;width:100%;max-width:440px;padding:23px}.entry-card h2{font-size:29px;margin-top:22px}.entry-intro{margin-bottom:18px}.entry-dialog{padding:23px;max-height:90dvh;overflow:auto}.entry-options{gap:5px}.entry-card .remember-choice{font-size:12px}.entry-options .text-button{font-size:11px}.auth-view:has(input:focus) .language-tools{position:absolute}.entry-card input,.entry-dialog input{scroll-margin-block:100px}}

/* Approved home lobby: scoped away from sign-in and the playable board. */
.lobby-screen{width:min(1240px,100%);padding:24px 28px 110px;min-height:100svh}.lobby-header{display:flex;align-items:center;gap:32px;padding:18px 22px;background:linear-gradient(120deg,#2b140df5,#180c08f5);border:1px solid #a8783866;border-bottom:2px solid #bc914d;border-radius:8px}.lobby-wordmark{font:600 30px Georgia;letter-spacing:4px;color:#f5cc7b}.lobby-identity{display:flex;gap:14px;align-items:center;min-width:0;flex:1}.avatar-button{flex-shrink:0;display:grid;place-items:center;width:62px;height:62px;padding:10px;border:2px solid #e9bd64;border-radius:50%;background:radial-gradient(circle at 30% 20%,#806344,#24180f);box-shadow:0 3px 10px #0008}.avatar-button svg{width:100%;height:100%;fill:#150d09;color:#150d09}.lobby-header h1{font:600 25px/1.2 Georgia;margin:0 0 7px;overflow-wrap:anywhere;color:#fff0cf}.player-progress{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font:11px system-ui;color:#dac4a0}.player-progress progress{width:95px;height:6px;accent-color:#e7b651}.lobby-coins{white-space:nowrap;background:transparent;border:0;font:16px Georgia}.lobby-coins>span:first-child{font-size:27px;color:#eebd5d;vertical-align:middle;margin-right:5px}.lobby-coins strong{font:600 23px Georgia}.lobby-intro{padding:32px 12px 24px}.lobby-intro h2{font:clamp(30px,4vw,46px)/1.2 Georgia;margin:5px 0;color:#ffebbd}.lobby-intro h2:after{content:'';display:block;width:180px;height:1px;margin:15px 0 10px;background:linear-gradient(90deg,#dfac51,transparent)}.mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.mode-card{min-width:0;display:flex;flex-direction:column;align-items:stretch;padding:25px 22px 22px;border:1px solid #a6773a88;border-radius:8px;background:radial-gradient(ellipse at 50% 35%,#54301d90,transparent 70%),linear-gradient(135deg,#2f190ff5,#180d08fa);box-shadow:0 8px 22px #0006,inset 0 0 28px #a6781a0c;position:relative;overflow:hidden}.mode-card:before{content:'◆';position:absolute;right:10px;top:8px;color:#c7964a70;font-size:12px}.mode-card h2{font:clamp(24px,2.5vw,31px)/1.2 Georgia;color:#ffeac0;margin:0 0 12px}.mode-card>p{font:14px/1.6 system-ui;min-height:46px;color:#e5d0b3}.mode-card>button{margin-top:auto;width:100%;font-size:17px;min-height:48px;border-color:#e1b65e}.computer-card{border-color:#e1b65e;box-shadow:0 5px 24px #0007,inset 0 0 25px #cf9d2220}.mode-card .level-picker{margin:0 0 14px;padding:0;border:0}.mode-card .level-picker label{font:12px system-ui;margin:0 0 5px;display:block;color:#dfc493}.mode-card select{width:100%;min-height:44px;font:14px system-ui;background:#170d08;color:#ffe7b2;border:1px solid #af874e;border-radius:4px;padding:8px}.mode-card #level-description{font:11px/1.4 system-ui;min-height:32px;padding-top:7px}.lobby-board{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;padding:14px 10px;margin:22px 0 25px;border:4px ridge #b67b3d;border-radius:25px;background:linear-gradient(100deg,#5d2a0c,#ab6628,#6b320f);transform:rotate(-8deg);box-shadow:0 15px 12px #0009}.lobby-board>span{position:relative;aspect-ratio:1;border-radius:50%;background:radial-gradient(ellipse at 50% 70%,#64300e,#241006 75%);box-shadow:inset 0 3px 4px #000c,0 1px 1px #ffcc7070}.lobby-board i{position:absolute;width:23%;height:20%;border-radius:50%;background:radial-gradient(at 30% 20%,#fff1a2,#d88b20 50%,#693607);box-shadow:1px 2px 2px #0008}.lobby-board i:nth-child(1){left:25%;top:30%}.lobby-board i:nth-child(2){left:53%;top:30%}.lobby-board i:nth-child(3){left:24%;top:56%}.lobby-board i:nth-child(4){left:53%;top:56%}.friend-art{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-height:180px;color:#e1b361}.friend-art svg{height:115px;width:80px;fill:#130b07;filter:drop-shadow(0 0 1px #e1b361)}.friend-art svg:last-child{transform:scaleX(-1)}.friend-art>span{font-size:36px}.challenge-art{align-self:center;display:flex;flex-direction:column;justify-content:center;align-items:center;width:115px;height:135px;margin:28px 0 35px;border:3px solid #bc8b43;border-radius:22px 22px 45px 45px;background:linear-gradient(130deg,#71351f,#32130b);color:#f1c568;box-shadow:0 8px 25px #0009;flex:0 0 auto}.challenge-art span:first-child{font-size:48px}.challenge-art span:last-child{font:17px/1.2 Georgia;text-align:center;letter-spacing:3px}.lobby-matches{display:flex;align-items:center;gap:22px;margin-top:20px;padding:18px 22px;border:1px solid #a6773a77;border-radius:7px;background:#20110cf0}.lobby-matches h2{font:20px/1.3 Georgia;margin:0;flex-shrink:0}.lobby-matches h2 span{color:#d9a85a}.match-items{flex:1;min-width:0}.lobby-matches #online-games{margin:0}.lobby-matches .empty-state{text-align:right;margin:0;padding:0}.lobby-collections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:18px 0 0}.lobby-collections button{display:flex;align-items:center;gap:16px;text-align:left;min-width:0;padding:22px 18px;background:linear-gradient(130deg,#311b10ef,#1a0d08f5);border-color:#a6773a77;border-radius:7px}.collection-icon{font-size:40px;color:#dab261}.lobby-collections button>span:nth-child(2){flex:1;min-width:0}.lobby-collections strong{font:22px Georgia;display:block;color:#ffe8b9}.lobby-collections small{display:block;font:12px/1.5 system-ui;color:#cdb79a;margin-top:5px}.lobby-stages{display:block;margin:12px auto 0;padding:10px 20px}.lobby-screen~* #signout{margin-top:20px}body.account-view:not(.auth-view) .language-tools{bottom:18px;left:24px;top:auto;z-index:11}body.account-view:not(.auth-view) #social-dock{bottom:18px}.lobby-screen button:hover{border-color:#f3cb80;background-color:#53301b}.lobby-screen button:focus-visible,.lobby-screen select:focus-visible{outline:2px solid #ffe3a0;outline-offset:4px}
@media(max-width:850px){.lobby-screen{padding:18px 18px 105px}.lobby-header{gap:18px;padding:16px}.lobby-wordmark{font-size:22px;letter-spacing:2px}.mode-card{padding:22px 16px 18px}.mode-grid{gap:12px}.mode-card h2{font-size:25px}.lobby-collections{gap:12px}.lobby-collections button{gap:10px;padding:18px 12px}.lobby-collections strong{font-size:20px}.collection-icon{font-size:30px}}
@media(max-width:650px){.lobby-screen{padding:12px 14px 110px}.lobby-header{flex-wrap:wrap;gap:14px;padding:14px}.lobby-wordmark{width:100%;font-size:24px;padding-bottom:10px;border-bottom:1px solid #a6773a55}.lobby-identity{gap:10px}.avatar-button{width:50px;height:50px;padding:8px}.lobby-header h1{font-size:21px}.player-progress{font-size:10px;gap:6px}.player-progress progress{width:54px}.player-progress [data-xp]{display:none}.lobby-coins{padding:8px 0;font-size:11px}.lobby-coins strong{font-size:19px}.lobby-coins>span:first-child{font-size:21px}.lobby-intro{padding:24px 5px 18px}.lobby-intro h2{font-size:32px}.mode-grid{grid-template-columns:1fr;gap:14px}.mode-card{padding:20px;display:grid;grid-template-columns:minmax(0,1fr) 95px;column-gap:10px}.mode-card h2{grid-column:1;font-size:26px;margin-bottom:8px}.mode-card>p{grid-column:1;font-size:13px;min-height:0}.mode-card>button,.mode-card .level-picker{grid-column:1/-1}.mode-card>button{margin-top:16px}.lobby-board{grid-column:2;grid-row:1/3;width:95px;align-self:center;padding:7px 4px;gap:2px;border-width:2px;margin:0}.friend-art{grid-column:2;grid-row:1/3;min-height:0}.friend-art svg{width:35px;height:65px}.friend-art>span{font-size:20px}.challenge-art{grid-column:2;grid-row:1/3;width:65px;height:80px;margin:0;justify-self:center;border-width:2px;border-radius:10px 10px 25px 25px}.challenge-art span:first-child{font-size:28px}.challenge-art span:last-child{font-size:10px;letter-spacing:1px}.mode-card .level-picker{margin:16px 0 0}.mode-card #level-description{min-height:0}.lobby-matches{display:block;padding:17px}.lobby-matches h2{font-size:20px;margin-bottom:10px}.lobby-matches .empty-state{text-align:left;font-size:12px}.lobby-collections{gap:8px}.lobby-collections button{flex-direction:column;text-align:center;gap:5px;padding:14px 5px}.lobby-collections strong{font-size:17px}.lobby-collections small,.lobby-collections button>span:last-child{display:none}.collection-icon{font-size:30px}body.account-view:not(.auth-view) .language-tools{left:14px;gap:4px}body.account-view:not(.auth-view) .language-tools select{max-width:94px;font-size:12px;padding:8px}body.account-view:not(.auth-view) #social-dock{right:14px;gap:5px}body.account-view:not(.auth-view) #social-dock button{font-size:13px;padding:8px 10px}body.account-view:not(.auth-view):after{content:'';position:fixed;bottom:0;left:0;right:0;height:80px;background:linear-gradient(transparent,#160b06 30%);z-index:9;pointer-events:none}}

/* Player header and account controls. */
.lobby-header{gap:14px}.lobby-identity{flex:1}.avatar-button,.profile-picture{position:relative;overflow:hidden}.avatar-button img,.profile-picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}.crystal-balance{display:flex;align-items:center;gap:7px;background:none;border:0;font:12px system-ui;padding:10px 6px}.crystal-icon{font-size:28px;color:#97dcfa;text-shadow:0 1px #366b9b,0 0 12px #66b7e440}.settings-button{font-size:26px;border:0;background:transparent;padding:8px;min-width:44px}.profile-summary{display:flex;align-items:center;gap:16px;margin:12px 0}.profile-summary h2{margin:0 0 5px;overflow-wrap:anywhere}.profile-summary p{overflow-wrap:anywhere}.profile-summary>div:last-child{min-width:0}.profile-picture{width:70px;height:70px;flex-shrink:0;border:2px solid #e0b66a;border-radius:50%;background:#49301b;display:grid;place-items:center;font-size:36px}.profile-panel{width:min(560px,calc(100% - 24px))}.profile-photo-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 10px}.upload-button{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #c99d56;border-radius:4px;padding:10px 16px;font:14px Georgia;cursor:pointer}.profile-photo-actions input[type=file]{width:100%;font:12px system-ui;color:#cfb99b}.profile-name-actions{display:flex;gap:10px;margin:12px 0}.profile-name-actions>button{flex:1;margin:0!important}.profile-option{width:100%;display:flex;justify-content:space-between;margin-top:20px;text-align:left}.profile-signout{margin-top:24px;width:100%;color:#efb6a1}.profile-panel .field-help,#settings-panel .field-help{font:12px/1.6 system-ui;color:#d2ba97;margin-top:8px}#profile-status{font:13px/1.6 system-ui;margin-top:15px;color:#f6d799}#settings-panel{max-width:460px}#settings-panel>label:not(.settings-choice){display:block;margin:15px 0 8px;font:14px system-ui}#settings-language{width:100%;min-height:44px;background:#1a0d08;color:#ffe8be;border:1px solid #b48b4f;padding:10px;font-size:16px}.settings-choice{display:flex;align-items:center;gap:12px;min-height:52px;font:15px system-ui}.settings-choice input{width:22px;height:22px;accent-color:#e4b762}#settings-help-content{margin-top:15px}.crystal-preview{font-size:72px;color:#94d9f3;text-align:center;margin:20px}.profile-photo-actions:focus-within .upload-button{outline:2px solid #f6d799;outline-offset:3px}
@media(max-width:650px){.lobby-header{gap:8px}.lobby-identity{flex-basis:calc(100% - 52px);order:0}.settings-button{order:1}.crystal-balance{order:2;flex:1;justify-content:flex-start;border-top:1px solid #a6773a55;border-radius:0;padding-top:12px}.lobby-coins{order:3;flex:1;text-align:right;border-top:1px solid #a6773a55;border-radius:0;padding-top:12px}.player-progress [data-xp]{display:inline}.profile-name-actions{flex-direction:column}.profile-summary{gap:12px}}
