/* Character creation only. The server home and the game HUD keep their layout. */
#intro.is-creating{padding:26px max(20px,4vw);align-items:flex-start;background:radial-gradient(ellipse at 22% 20%,#23443ae8,#0c231fef 65%)}
#intro.is-creating .intro-layout{width:min(1160px,100%);max-width:none;margin:auto;gap:0}
#intro.is-creating .intro-copy,#intro.is-creating .intro-bottom{display:none}
#intro.is-creating .lobby{width:100%;max-width:none;padding:26px 30px 20px;border-radius:18px;background:#112a23f2;border-color:#b2a17944}
#creatorPanel .creator-heading{position:relative;padding:0 0 25px;border-bottom:1px solid #c7b98c26;margin-bottom:26px}
#creatorPanel .creator-heading #creatorBack{position:absolute;right:0;top:-10px;margin:0;min-height:44px;font-size:12px}
#creatorPanel .creator-heading>.eyebrow{font-size:9px;letter-spacing:2.5px;color:#c9bb96;display:block;padding-right:110px}
#creatorPanel .creator-heading h3{font:clamp(29px,3vw,40px)/1.15 Georgia;margin:11px 0 10px;letter-spacing:-.6px;color:#f1e8d1}
#creatorPanel .creator-heading p{font:12px/1.7 system-ui;color:#abbfb2;margin:0;max-width:560px}
#creatorPanel .creator-layout{display:grid;grid-template-columns:minmax(280px,1fr) minmax(300px,.95fr);gap:30px;align-items:start}
#creatorPanel .preview-wrap{position:sticky;top:0;min-width:0;overflow:hidden;border:1px solid #8c9a8444;border-radius:13px;background:#14232a;box-shadow:0 12px 55px #06191355}
#creatorPanel .preview-scene{position:relative;background:radial-gradient(ellipse at 50% 30%,#354c4e,#14232a 70%)}
#creatorPanel .preview-topline{position:absolute;left:17px;right:17px;top:15px;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:8px;font:8px system-ui;letter-spacing:1.4px;color:#bdc9bd;pointer-events:none}
#creatorPanel .preview-live{display:flex;align-items:center;gap:5px;letter-spacing:0;font-size:9px}
#creatorPanel .preview-live i{width:5px;height:5px;background:#c4cc9d;border-radius:50%}
#creatorPanel #avatarPreview{width:100%;height:clamp(370px,51vh,510px);min-height:0}
#creatorPanel #avatarPreview canvas{width:100%;height:100%;display:block;outline:none;touch-action:none}
#creatorPanel #avatarPreview canvas:focus-visible{outline:1px solid #dcc48f;outline-offset:-4px}
#creatorPanel .preview-caption{display:flex;align-items:center;gap:9px;padding:17px 18px 12px;background:none;border-top:1px solid #a3b29b26;font:11px system-ui}
#creatorPanel .preview-caption strong{font:22px Georgia;color:#e8d8b7}
#creatorPanel .preview-caption>span{font-size:10px;color:#b4c4bb;padding-left:10px;border-left:1px solid #9caa943b}
#creatorPanel .preview-views{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:0 14px 11px}
#creatorPanel .preview-views button{font:11px system-ui;color:#d6d4bf;min-height:38px;border:1px solid #92a08b44;border-radius:5px;background:#213730}
#creatorPanel .preview-views button:hover{background:#364b3c;border-color:#c6b58280}
#creatorPanel .preview-orbit{display:flex;align-items:center;gap:6px;padding:0 14px 5px}
#creatorPanel .preview-orbit>span{font-size:9px;color:#9caea5;flex:1;text-align:center}
#creatorPanel .preview-orbit button{font:20px Georgia;min-width:36px;min-height:36px;border:1px solid #83947f38;border-radius:5px;color:#d4c5a0}
#creatorPanel #previewStatus{font:10px/1.6 system-ui;color:#a7bbb1;min-height:32px;margin:6px 18px 13px}
#creatorPanel #previewRetry{margin:0 18px 12px;font-size:11px;color:#e2bf87}
#creatorPanel [data-state=loading] .preview-live i{animation:creatorPulse 1.1s ease-in-out infinite}
#creatorPanel [data-state=error] .preview-live{visibility:hidden}
#creatorPanel [data-state=error] #previewStatus{color:#e1b7a4}
#creatorPanel .creator-controls{min-width:0}
#creatorPanel .creator-tabs{display:grid;grid-template-columns:.85fr .80fr .75fr 1.25fr;gap:4px;padding:4px;background:#0c211b;border:1px solid #859a7733;border-radius:8px;margin-bottom:24px}
#creatorPanel .creator-tabs button{min-width:0;min-height:42px;border-radius:5px;font:11px system-ui;color:#a7bcae;padding:8px 7px}
#creatorPanel .creator-tabs button[aria-selected=true]{color:#f0dec1;background:#384a36;box-shadow:0 1px 8px #041a1233}
#creatorPanel .creator-options{display:block;overflow:visible;max-height:none;padding:0}
#creatorPanel [data-creator-panel]{display:grid;gap:23px;min-width:0}
#creatorPanel .creator-field{min-width:0;margin:0}
#creatorPanel .creator-field>label,#creatorPanel .field-title,#creatorPanel .color-field>span{display:block;font:12px system-ui;color:#d0d6c4;margin:0 0 10px}
#creatorPanel .creator-field>small{display:block;font:10px/1.7 system-ui;color:#91a997;margin-top:8px}
#creatorPanel .field-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
#creatorPanel .field-heading label{font:12px system-ui;margin:0;color:#d0d6c4}
#creatorPanel .field-heading>span{font:10px system-ui;color:#92a68f;font-variant-numeric:tabular-nums}
#creatorPanel input,#creatorPanel select{font:16px system-ui;min-height:46px;border:1px solid #91a78055;background:#10241d;color:#efe3ca;border-radius:6px;padding:12px;max-width:100%}
#creatorPanel .choice-control{display:grid;grid-template-columns:43px minmax(0,1fr) 43px;gap:6px}
#creatorPanel .choice-control select{width:100%;min-width:0;font-size:14px;padding:10px 12px;cursor:pointer}
#creatorPanel .choice-control button{min-height:46px;border:1px solid #91a78044;border-radius:6px;background:#21382b;color:#d5c69e;font:26px Georgia}
#creatorPanel .choice-control button:hover{background:#344a35;border-color:#cab88b77}
#creatorPanel .race-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0}
#creatorPanel .race-grid button{min-width:0;min-height:79px;gap:9px;font:9px/1.35 system-ui;padding:9px 3px;border-color:#8d9f7a44;border-radius:7px;background:#20372a;color:#bac9b5}
#creatorPanel .race-grid .race-symbol{font:25px Georgia;color:#b5c0a0}
#creatorPanel .race-grid .race-name{font:9px/1.35 system-ui;color:inherit;overflow-wrap:anywhere}
#creatorPanel .race-grid button[aria-pressed=true]{background:#474e35;border-color:#d4bd83;color:#f0e1c1;box-shadow:inset 0 0 0 1px #d4bd8322}
#creatorPanel .race-grid button[aria-pressed=true] .race-symbol{color:#e5cb92}
#creatorPanel #raceDescription{font:11px/1.7 system-ui;color:#a4b99e;margin:9px 0 0;min-height:19px}
#creatorPanel .gender-toggle{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
#creatorPanel .gender-toggle button{min-height:46px;border-radius:6px;font:12px system-ui;padding:10px;border:1px solid #8b9f784d;color:#bbcab4;background:#1a3225}
#creatorPanel .gender-toggle button[aria-pressed=true]{border-color:#ceb98a;background:#465039;color:#f0e0ba}
#creatorPanel .swatches{display:flex;flex-wrap:wrap;gap:11px;padding:3px}
#creatorPanel .swatch{position:relative;width:32px;height:32px;min-height:32px;border:2px solid #bbc7a733;border-radius:50%;flex:0 0 32px;box-shadow:inset 0 0 0 1px #0719102b}
#creatorPanel .swatch[aria-pressed=true]{outline:2px solid #e3cf9a;outline-offset:3px;border-color:#ebd7a455}
#creatorPanel .swatch[aria-pressed=true]:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;font:16px system-ui;color:#fff;text-shadow:0 1px 3px #000,0 0 2px #000}
#creatorPanel .creator-note{margin:0;padding:13px 14px;border-left:2px solid #9baa7866;background:#22392b66;color:#aabb9f;font:11px/1.8 system-ui}
#creatorPanel .creator-finish{margin-top:27px;border-top:1px solid #a5af8933;padding-top:19px}
#creatorPanel #creatorSummary{font:10px/1.8 system-ui;color:#a5b799;min-height:18px;margin:0 0 17px}
#creatorPanel label.permanent-check{display:flex;flex-direction:row;align-items:flex-start;gap:10px;font:11px/1.7 system-ui;color:#bdc8ae;margin:0 0 18px}
#creatorPanel .permanent-check input{appearance:auto;width:18px;max-width:18px;min-height:18px;flex:0 0 18px;margin:3px 0 0;padding:0;accent-color:#d0b57e}
#creatorPanel .creator-finish>small{display:block;font:10px/1.7 system-ui;color:#91a68d;text-align:center;margin-top:10px}
#creatorPanel .primary-button{min-height:48px;font:500 12px system-ui;border-radius:6px}
#creatorPanel button:disabled{cursor:default;opacity:.48}
#creationReview{position:fixed;inset:0;z-index:100;display:grid;place-items:center;transform:none;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:20px;background:#071b15e8;backdrop-filter:blur(12px);overflow:hidden;border:0;border-radius:0;gap:0;box-shadow:none}
#creationReview .creator-review-card{width:min(490px,100%);min-width:0;max-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;background:#183025;border:1px solid #c2ad784d;border-radius:12px;padding:28px;box-shadow:0 24px 80px #0004}
#creationReview h4{font:29px/1.2 Georgia;margin:13px 0 20px;color:#e9ddbe}
#creationReview #finalName{font:28px Georgia;color:#ebce90;overflow-wrap:anywhere}
#creationReview #finalRace{font:11px system-ui;margin:9px 0 21px;color:#aebe9f}
#finalAppearance{display:grid;grid-template-columns:.75fr 1.25fr;gap:10px 20px;padding:18px 0;margin:0;border-block:1px solid #a8b48a33;font:11px/1.5 system-ui}
#finalAppearance dt{color:#a8ba99}#finalAppearance dd{margin:0;color:#e0d6b9;display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}
.review-swatch{display:inline-block;width:13px;height:13px;border-radius:50%;border:1px solid #ded4aa66;flex:0 0 13px}
#creationReview .creator-review-card>p:last-of-type{font:11px/1.8 system-ui;color:#b0bfa4;margin:20px 0}
#creationReview .review-actions{display:grid;gap:7px}
@keyframes creatorPulse{50%{opacity:.25}}
@media(max-width:720px){
 #intro.is-creating{padding:calc(env(safe-area-inset-top) + 14px) 12px calc(env(safe-area-inset-bottom) + 18px)}
 #intro.is-creating .lobby{padding:20px 16px 14px;border-radius:13px}
 #creatorPanel .creator-heading{padding-bottom:20px;margin-bottom:20px}
 #creatorPanel .creator-heading>.eyebrow{font-size:8px;letter-spacing:1.7px}
 #creatorPanel .creator-heading h3{font-size:30px;max-width:275px;line-height:1.15;margin-top:14px}
 #creatorPanel .creator-heading p{font-size:11px;line-height:1.8;max-width:310px}
 #creatorPanel .creator-heading #creatorBack{top:-10px;font-size:10px}
 #creatorPanel .creator-layout{display:block}
 #creatorPanel .preview-wrap{position:sticky;top:0;z-index:5;margin-bottom:20px}
 #creatorPanel #avatarPreview{height:clamp(180px,27dvh,255px)}
 #creatorPanel .preview-topline{font-size:7px;left:13px;right:13px;top:13px;letter-spacing:1px}
 #creatorPanel .preview-caption{padding:8px 12px 7px}
 #creatorPanel .preview-caption strong{font-size:18px}
 #creatorPanel .preview-views{padding:0 10px 8px;gap:5px}
 #creatorPanel .preview-views button{min-height:40px}
 #creatorPanel .preview-orbit{padding:0 10px 2px}
 #creatorPanel .preview-orbit button{min-width:37px;min-height:38px}
 #creatorPanel #previewStatus{margin:4px 12px 7px;min-height:15px;font-size:8px}
 #creatorPanel .creator-tabs{position:relative;top:auto;z-index:4;margin-bottom:22px}
 #creatorPanel .creator-tabs button{min-height:44px;padding:8px 4px;font-size:10px}
 #creatorPanel .race-grid{gap:5px}
 #creatorPanel .race-grid button{min-height:76px;font-size:8px}
 #creatorPanel .race-grid .race-name{font-size:8px}
 #creatorPanel .choice-control select{font-size:16px}
 #creatorPanel .swatches{gap:12px}
 #creationReview{padding:12px}
 #creationReview .creator-review-card{padding:24px 20px;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
}
@media(max-height:500px) and (min-width:721px){
 #intro.is-creating{padding:14px 20px}#creatorPanel .creator-heading{padding-bottom:17px;margin-bottom:18px}#creatorPanel .creator-heading h3{font-size:28px}#creatorPanel .creator-heading p{display:none}#creatorPanel .creator-layout{grid-template-columns:.85fr 1.15fr;gap:20px}#creatorPanel #avatarPreview{height:clamp(115px,calc(100dvh - 250px),230px)}#creatorPanel .preview-wrap{position:sticky;top:0}#creatorPanel .creator-tabs{position:sticky;top:0;z-index:3}
 #creatorPanel .preview-caption{padding:6px 10px 5px}#creatorPanel .preview-caption strong{font-size:18px}#creatorPanel .preview-views{padding:0 9px 7px}#creatorPanel .preview-views button{min-height:44px}#creatorPanel .preview-orbit{padding:0 9px 3px}#creatorPanel #previewStatus{min-height:14px;margin:3px 10px 5px;font-size:8px}
}
@media(prefers-reduced-motion:reduce){#creatorPanel [data-state=loading] .preview-live i{animation:none}}
