@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700;800;900&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#263d34;background:#f5f4ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #9cac45;outline-offset:4px}header{max-width:1400px;margin:auto;padding:25px 42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe2d7}.back{font-size:12px;color:#56695c;text-decoration:none}.wordmark{font-family:'Barlow Condensed',sans-serif;letter-spacing:-1px;font-size:17px;font-weight:800;color:#243f32;text-decoration:none}.wordmark span{margin-left:9px}.prototype{font-size:9px;letter-spacing:1.8px;padding:7px 11px;border:1px solid #d3d9c5;border-radius:50px;color:#687451}main{max-width:1120px;margin:0 auto;padding:28px 32px 18px}.intro{margin-bottom:25px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:700;color:#7b8868}h1,h2{font-family:'Barlow Condensed',sans-serif;letter-spacing:-1.6px}h1{font-size:38px;margin:8px 0}p{color:#748074;font-size:13px;line-height:1.65}.intro p{margin:0}.studio{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-radius:24px;overflow:hidden;border:1px solid #dce0d3;background:#fdfdfa;box-shadow:0 15px 55px #203b2710}.preview{min-width:0;position:relative;min-height:470px;background:radial-gradient(ellipse at 50% 38%,#f8f3e5,#e6ebda 74%);display:flex;align-items:center;flex-direction:column;padding:22px 30px}.preview-label{align-self:flex-start;display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1.6px;color:#778367}.live-dot{width:5px;height:5px;border-radius:50%;background:#829549}#avatar{width:100%;height:310px;display:block;touch-action:none;cursor:grab}#avatar:active{cursor:grabbing}#loading{position:absolute;top:40%;left:10%;right:10%;text-align:center;font-size:13px;color:#5c6f59;background:#f0f3e6dd;padding:12px;border-radius:9px}#loading[hidden]{display:none}.front{border:1px solid #cdd5bd;background:#f9fbf280;border-radius:20px;padding:7px 12px;color:#5e7052;font-size:10px}.drag-hint{font-size:10px;margin:9px 0 12px}.name-field{width:100%;max-width:280px;margin-top:auto}.name-field label{display:block;font-size:8px;font-weight:700;letter-spacing:1.6px;margin-bottom:7px}.name-field input{border:1px solid #d1d9c5;background:#fff9;padding:12px 15px;color:#304934;font-weight:600;border-radius:10px;width:100%}.editor{min-width:0;padding:24px 28px;display:flex;flex-direction:column}nav{display:flex;border-bottom:1px solid #e3e7dc;gap:6px;padding-bottom:12px;overflow-x:auto}nav button{flex:1;white-space:nowrap;min-width:58px;border:0;border-radius:10px;background:transparent;padding:11px 5px;font-size:12px;color:#798170}nav button[aria-pressed=true]{background:#e9eecf;color:#314e2e;font-weight:700}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-top:24px}h2{font-size:28px;margin:5px 0}.free{font-size:8px;letter-spacing:1px;background:#eff3e1;color:#71804c;border-radius:5px;padding:6px 8px}#category-description{margin:4px 0 19px;font-size:12px}.options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.choice{position:relative;min-width:0;border:1px solid #dfe4d5;background:#f4f5ee;border-radius:13px;padding:5px 6px 12px;color:#66715e;font-size:11px;min-height:106px}.choice[aria-pressed=true]{border:2px solid #607347;background:#eef2de;color:#344d30}.choice[aria-pressed=true]:after{content:'✓';position:absolute;right:7px;top:6px;background:#586f41;border-radius:50%;width:16px;height:16px;font-size:10px;line-height:16px;color:white}.thumb{height:77px;width:100%;object-fit:contain;display:block}.thumb-placeholder{display:grid;place-items:center;height:77px;color:#a4af96;font-size:25px}.swatch-label{margin:20px 0 9px;font-size:9px;letter-spacing:1.5px;color:#829074;font-weight:700}.swatches{display:flex;flex-wrap:wrap;gap:11px}.swatch{width:31px;height:31px;border-radius:50%;border:3px solid #fdfdfa;box-shadow:0 0 0 1px #e3e6db}.swatch[aria-pressed=true]{box-shadow:0 0 0 2px #607347}.small-note{font-size:10px;color:#939c89;line-height:1.6}.editor-footer{display:flex;justify-content:space-between;gap:10px;margin-top:auto;padding-top:18px}.editor-footer button{border:0;background:transparent;color:#788469;padding:4px;font-size:11px}.save-bar{display:flex;align-items:center;justify-content:space-between;padding:22px 4px;gap:20px}.save-bar strong{font-size:13px;font-weight:600}.save-bar p{font-size:11px;margin:5px 0 0}#save{border:0;border-radius:12px;background:#294b37;color:#edf6d9;font-weight:700;font-size:12px;padding:16px 21px;min-width:175px;display:flex;justify-content:space-between;gap:25px}#save:hover:not(:disabled){background:#3d6044}footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #e0e4d6;padding-top:14px;font-size:10px;color:#919987}footer a{color:#7c876b} @media(max-width:650px){header{padding:18px}.prototype{display:none}.wordmark{font-size:14px}main{padding:23px 16px 15px}h1{font-size:30px}.studio{grid-template-columns:minmax(0,1fr)}.preview{min-height:370px;padding:18px 20px}#avatar{height:240px}.name-field{max-width:100%;display:flex;align-items:center;gap:14px}.name-field label{white-space:nowrap;margin:0}.name-field input{min-width:0}.drag-hint{margin-bottom:15px}.editor{padding:20px}.save-bar{position:sticky;bottom:0;background:#f5f4ef;padding:16px 0}.save-bar strong{font-size:11px}.save-bar p{font-size:10px}#save{min-width:145px;padding:14px}.section-heading{margin-top:17px}.intro{margin-bottom:19px}footer{font-size:9px}}@media(prefers-reduced-motion:no-preference){.choice,.swatch,button{transition:background .15s,border-color .15s,box-shadow .15s}}
.face-shape{padding:8px 12px;margin:0 7px 5px 0;border:1px solid #dce2d0;border-radius:8px;color:#748168;background:#f8faf2;font-size:11px}.face-shape[aria-pressed=true]{background:#e9efda;border-color:#667d4d;color:#314f2d}

/* Full-body wardrobe */
#avatar{height:420px}.preview{min-height:575px}nav{flex-wrap:wrap;overflow:visible;gap:3px}nav button{flex:0 1 calc(20% - 3px);font-size:11px;padding:9px 5px}.options{max-height:310px;overflow-y:auto;padding:2px}.thumb{height:89px}.choice{min-height:116px}@media(max-width:650px){#avatar{height:340px}.preview{min-height:440px}nav button{flex:1 0 17%}.options{max-height:280px}}

.rotation-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:20px}.rotation-controls button{min-height:36px}

/* Shared trail-game palette and typography. */
:root{color:#fff;background:#102f2b}body{background:radial-gradient(ellipse at 15% 20%,#254a37,transparent 65%),#102f2b}header{border-color:#ffffff26}.back{color:#e4ffb1}.wordmark{display:flex;gap:12px;align-items:center;font-size:25px;font-weight:900;line-height:.85;letter-spacing:1px;color:#fff}.wordmark span{margin:0}.wordmark b{color:#ddff72}.wordmark .brand-icon{display:grid;place-content:center;width:46px;height:46px;background:#ddff72;color:#173a30;border-radius:11px;transform:rotate(-7deg);font-size:30px;letter-spacing:-3px}.prototype{color:#ddff72;border-color:#ddff7266}.eyebrow{color:#ddff72}.intro h1{font-size:54px;letter-spacing:0;line-height:1;text-transform:uppercase}.intro p,p{color:#c0d1bf}.studio{border-color:#a6c6a94d;background:#153e35;box-shadow:0 15px 55px #061c2850}.preview{background:radial-gradient(ellipse at 50% 38%,#42614c,#193b32 78%)}.preview-label{color:#d2e3c3}.live-dot{background:#ddff72}#loading{background:#153e35ee;color:#e4ffb1}.front{background:#143f37a6;color:#e4ffb1;border-color:#a6c6a966}.front:hover{background:#335c42}.drag-hint{color:#c0d1bf}.name-field input{color:#fff;background:#10382d;border-color:#a6c6a966}.name-field label{color:#e4ffb1}nav{border-color:#a6c6a933}nav button{color:#c0d1bf}nav button[aria-pressed=true]{background:#ddff72;color:#173a30}h2{font-size:36px;letter-spacing:0}.free{color:#ddff72;background:#ddff7214}.choice{background:#214a3e;color:#e6efdc;border-color:#a6c6a94d}.choice[aria-pressed=true]{background:#35583c;color:#edffcb;border-color:#ddff72}.choice[aria-pressed=true]:after{background:#ddff72;color:#173a30}.swatch-label{color:#c0d1bf}.swatch{border-color:#153e35;box-shadow:0 0 0 1px #a6c6a966}.swatch[aria-pressed=true]{box-shadow:0 0 0 2px #ddff72}.small-note{color:#c0d1bf}.editor-footer button{color:#e4ffb1}.save-bar p{color:#c0d1bf}#save{background:#ddff72;color:#173a30;font-size:15px;box-shadow:0 5px 0 #789647}#save:hover:not(:disabled){background:#e6ff99}footer{border-color:#ffffff26;color:#a9bfa9}footer a{color:#e4ffb1}button:focus-visible,a:focus-visible,input:focus-visible{outline-color:#faffab}@media(max-width:650px){.intro h1{font-size:42px}.save-bar{background:#102f2b}.wordmark{font-size:20px}.wordmark .brand-icon{width:36px;height:36px;font-size:24px}}

.save-bar{justify-content:flex-end}.save-bar #status{margin-right:auto}.save-bar #status:empty{display:none}

.back{display:inline-flex;align-items:center;min-height:48px;padding:12px 18px;font-size:16px;font-weight:700;border:1px solid #a6c6a966;border-radius:12px;background:#143f37a6}.back:hover{background:#335c42;border-color:#ddff72}@media(max-width:650px){.back{font-size:14px;padding:12px;min-height:48px}}

.name-field{max-width:400px}.name-save-row{display:flex;align-items:stretch;gap:12px}.name-save-row input{min-width:0;flex:1}.name-save-row #save{flex:none;min-width:88px;padding:12px 20px;margin:0;border-radius:12px}.name-field #status{margin:10px 0 0}.name-field #status:empty{display:none}

.editor-footer button{font-size:20px;font-weight:600;min-height:48px;padding:10px 16px;display:inline-flex;align-items:center;gap:9px}.editor-footer .undo-icon{font-size:29px;line-height:1}

.editor-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.editor-footer #undo,.editor-footer #reset{font-size:16px;min-height:44px;padding:9px 10px}.editor-footer .undo-icon{font-size:23px}.editor-footer #save{font-size:18px;min-height:48px;padding:12px 26px;margin:0;border-radius:12px}.name-save-row{display:block}@media(max-width:420px){.editor-footer{gap:6px}.editor-footer #save{padding:12px 18px}.editor-footer #undo,.editor-footer #reset{padding:9px 5px}}

.editor-footer{justify-content:flex-start}.editor-footer #save{margin-left:auto}

.wordmark .brand-icon{display:block;background:transparent;transform:none;border-radius:0;letter-spacing:normal}.wordmark .brand-icon img{display:block;width:100%;height:100%;object-fit:contain}
