@font-face{font-family:Nunito;font-style:normal;font-weight:400 900;font-display:swap;src:url('/assets/ui/nunito-latin.woff2') format('woff2')}
:root{font-family:Nunito,'Trebuchet MS',sans-serif;color:#33261d;background:#d9bf98}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#d9bf98 url('/assets/landing/puzzle-pattern.svg') repeat;background-size:540px 360px}button,a,input{font:inherit}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #ec9f52;outline-offset:3px}[hidden]{display:none!important}.pageWrap{width:min(1120px,calc(100% - 32px));margin:auto}.siteNav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:88px;gap:12px}.siteNav>a:first-child{font-weight:800;text-decoration:none;font-size:13px}.brand{display:flex;align-items:center;gap:8px;text-decoration:none;font-size:28px;font-weight:900;letter-spacing:-.06em}.brand img{width:32px;height:32px}.siteNav>a:last-child{justify-self:end;font-size:13px;font-weight:900;text-decoration:none}.pageShell{border:2px solid #4d3828;background:#fffaf0;box-shadow:0 6px 0 #a6845b;min-height:65vh}.pageTabs{display:flex;border-bottom:2px solid #4d3828;background:#f5e8ce}.pageTabs a{padding:15px 25px;border-right:1px solid #cdb894;text-decoration:none;font-weight:900;font-size:14px}.pageTabs a.active{background:#fffaf0;border-bottom:3px solid #a96236}.profileHero{padding:30px 35px 26px;background:#f1dfbc}.heroTop{display:flex;align-items:center;justify-content:space-between}.overline{font-size:10px;font-weight:900;letter-spacing:.13em;color:#9b5937}.badgeMark{font-size:11px;font-weight:900}.identityRow{display:flex;align-items:center;gap:22px;margin:15px 0 25px}.heroAvatar{width:110px;height:110px;display:grid;place-items:center;flex:none;border:5px solid #43301f;background:#e6b778;font-size:52px;font-weight:900;overflow:hidden;box-shadow:6px 6px 0 #b99564}.heroAvatar img{width:100%;height:100%;object-fit:cover}.identityCopy{flex:1;min-width:0}.identityCopy h1{margin:0;font-size:clamp(28px,4vw,45px);line-height:1.1;letter-spacing:-.045em;overflow-wrap:anywhere}.identityCopy p{margin:6px 0 0;color:#766048;font-size:14px}.textButton{border:0;background:transparent;padding:8px 0;color:#583922;text-decoration:underline;text-underline-offset:4px;font-size:13px;font-weight:900;white-space:nowrap}.levelRow{display:grid;grid-template-columns:auto minmax(100px,1fr) auto;align-items:center;gap:16px;font-size:12px;color:#604730}.levelRow strong{font-size:15px;color:#38271b}.xpTrack{height:13px;border:2px solid #5b412d;background:#fff8e7}.xpTrack span{display:block;height:100%;background:#d97742;transition:width .3s}.statStrip{display:grid;grid-template-columns:repeat(3,1fr);border-top:2px solid #4d3828;border-bottom:2px solid #4d3828}.statStrip>div{padding:21px 35px}.statStrip>div+div{border-left:1px solid #d5bea0}.statStrip span{display:block;margin-bottom:4px;font-size:10px;font-weight:900;letter-spacing:.09em;color:#886a4e}.statStrip strong{font-size:32px;line-height:1;font-weight:900}.section{padding:30px 35px;border-bottom:1px solid #d9c4a9}.sectionHeader{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}.sectionHeader h2{margin:3px 0 0;font-size:26px;line-height:1.1;letter-spacing:-.04em}.sectionHint{margin:15px 0 17px;color:#806952;font-size:12px}.avatarShelf{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px}.avatarChoice{display:grid;gap:6px;padding:5px 5px 7px;border:2px solid #d3b994;background:#f9edda;text-align:center;font-weight:900;font-size:11px;color:#5c4531;transition:transform .14s,box-shadow .14s}.avatarChoice img{width:100%;aspect-ratio:1;object-fit:cover}.avatarChoice:hover{transform:translateY(-3px)}.avatarChoice.selected{border-color:#45301f;background:#ffe2a3;box-shadow:0 4px 0 #45301f}.button{display:inline-flex;align-items:center;justify-content:center;border:2px solid #42301e;background:#ffca59;color:#34251b;padding:9px 15px;box-shadow:0 4px 0 #42301e;text-decoration:none;font-size:12px;font-weight:900;transition:transform .15s,box-shadow .15s}.button:hover{transform:translateY(2px);box-shadow:0 2px 0 #42301e}.button:disabled{opacity:.55;cursor:default;transform:none;box-shadow:0 4px 0 #42301e}.sectionCount{font-size:13px;font-weight:900;color:#806447}.finishedGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:22px 20px}.finishedBox{min-width:0}.boxArt{position:relative;width:calc(100% - 10px);aspect-ratio:1/.9;margin:0 0 13px 10px;border:4px solid #2d241c;background:#be946e;box-shadow:-7px 5px 0 #4c3020,-10px 8px 0 #2b1a10,3px 7px 0 #aa825d;overflow:hidden}.boxArt:before{content:'COZYPUZZLE';position:absolute;z-index:1;inset:0 0 auto;padding:4px;background:#25201b;color:#e8d5a7;font-size:8px;font-weight:900;letter-spacing:.05em;text-align:center}.boxArt img{width:100%;height:100%;object-fit:cover}.fallback{display:grid;place-items:center;height:100%;font-size:50px}.finishedBox strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.finishedBox small{display:block;color:#806b55;font-size:11px}.empty{grid-column:1/-1;margin:0;padding:30px 0;color:#806952;font-size:13px}.shopHeader{padding:40px 35px 25px;background:#f1dfbc;border-bottom:2px solid #4d3828}.shopHeader h1{max-width:700px;margin:8px 0;font-size:clamp(30px,4vw,45px);line-height:1.08;letter-spacing:-.05em}.shopHeader p{margin:0;color:#73583e;font-size:13px}.balanceLine{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:30px;padding-top:14px;border-top:1px solid #c8a87a;font-size:13px}.balanceLine strong{font-size:21px}.shopGroup{padding:22px 35px}.shopGroup+ .shopGroup{border-top:2px solid #4d3828}.shopGroup h2{margin:0 0 12px;font-size:19px}.shopRow{display:grid;grid-template-columns:112px minmax(0,1fr) auto;align-items:center;gap:20px;padding:16px 0;border-top:1px solid #dcc7a7}.shopSample{display:grid;place-items:center;width:112px;height:104px;background:#e9d6b4;border:1px solid #bd9d75}.sampleAvatar{width:68px;height:68px;border:4px solid #563923;border-radius:50%;overflow:hidden}.sampleAvatar img{width:100%;height:100%;object-fit:cover}.shopIcon{font-size:49px;filter:drop-shadow(2px 3px 0 #8a714f)}.shopDescription h3{margin:0 0 4px;font-size:18px}.shopDescription p{margin:0;color:#806b55;font-size:12px}.shopPurchase{display:grid;justify-items:end;gap:9px;min-width:125px}.shopPurchase strong{font-size:12px;color:#775b40}.shopPurchase .button{min-width:92px}.frame-stitch{border:5px dashed #f4e2c0!important;outline:3px solid #805a3a}.frame-gold{border:6px ridge #e5ac39!important;box-shadow:0 0 0 3px #684524}.frame-stars{border:6px double #b9a2dc!important;box-shadow:0 0 0 3px #695a8b}.siteFooter{display:flex;justify-content:space-between;padding:28px 0;color:#6c523a;font-size:11px;font-weight:800}.siteFooter div{display:flex;gap:20px}.siteFooter a{text-decoration:none}.signInGate{padding:80px 24px;text-align:center}.notice{position:fixed;right:18px;bottom:18px;z-index:10;max-width:300px;padding:12px 15px;border:2px solid #42301e;background:#ffdc85;box-shadow:0 4px 0 #42301e;font-size:12px;font-weight:900}.notice.error{background:#ffc6b6}.creatorHeader{padding:32px 35px;border-bottom:2px solid #4d3828;background:#f1dfbc}.creatorHeader h1{margin:8px 0 4px;font-size:38px;letter-spacing:-.05em}.creatorHeader p{margin:0;color:#765b41;font-size:13px}.creatorLayout{display:grid;grid-template-columns:270px 1fr;gap:34px;padding:30px 35px}.creatorPreview{display:flex;flex-direction:column;align-items:center;gap:24px;align-self:start;position:sticky;top:20px}.creatorPreview img{width:250px;height:250px;border:5px solid #3e2b1c;box-shadow:8px 8px 0 #a88459}.creatorPreview .button{width:250px}.optionGroup{padding:0 0 22px;margin-bottom:21px;border-bottom:1px solid #dfc9ab}.optionGroup h2{font-size:15px;margin:0 0 11px}.characterOptions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.characterChoice{display:grid;gap:5px;padding:5px;border:2px solid #d8bb93;background:#f7ead4;font-size:11px;font-weight:900}.characterChoice img{width:100%;aspect-ratio:1}.characterChoice.selected,.choice.selected{border-color:#42301e;background:#ffdf9a;box-shadow:0 3px 0 #42301e}.swatches,.choiceLine{display:flex;flex-wrap:wrap;gap:9px}.swatch{width:42px;height:42px;border:2px solid #73583d}.swatch.selected{outline:3px solid #34251b;outline-offset:2px}.choice{border:2px solid #cdb18d;background:#fff6e7;padding:8px 11px;font-size:11px;font-weight:900}
@media(max-width:800px){.avatarShelf{grid-template-columns:repeat(4,1fr)}.creatorLayout{grid-template-columns:210px 1fr;gap:20px}.creatorPreview img,.creatorPreview .button{width:200px}.creatorPreview img{height:200px}.characterOptions{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.pageWrap{width:calc(100% - 16px)}.siteNav{min-height:75px;grid-template-columns:1fr auto}.siteNav .brand{grid-column:1;grid-row:1;font-size:23px}.siteNav .brand img{width:25px;height:25px}.siteNav>a:first-child{grid-column:1;grid-row:2;margin-bottom:12px}.siteNav>a:last-child{grid-column:2;grid-row:1;font-size:11px}.profileHero{padding:22px 18px}.identityRow{gap:12px;flex-wrap:wrap}.heroAvatar{width:76px;height:76px}.identityCopy h1{font-size:26px}.identityRow .textButton{width:100%;text-align:left}.levelRow{grid-template-columns:1fr auto}.xpTrack{grid-column:1/-1;grid-row:2}.statStrip>div{padding:14px 8px}.statStrip span{font-size:8px}.statStrip strong{font-size:23px}.section{padding:23px 17px}.sectionHeader{align-items:start}.sectionHeader .textButton{font-size:11px}.avatarShelf{gap:6px}.avatarChoice{font-size:9px}.shopHeader{padding:25px 17px}.shopGroup{padding:18px 17px}.shopRow{grid-template-columns:76px 1fr;gap:10px}.shopSample{width:76px;height:74px}.sampleAvatar{width:51px;height:51px}.shopIcon{font-size:35px}.shopPurchase{grid-column:2;display:flex;justify-content:space-between;align-items:center;width:100%;min-width:0}.shopDescription h3{font-size:15px}.creatorHeader{padding:22px 17px}.creatorHeader h1{font-size:28px}.creatorLayout{grid-template-columns:1fr;padding:19px 17px}.creatorPreview{position:static}.creatorPreview img{width:180px;height:180px}.creatorPreview .button{width:180px}.characterOptions{grid-template-columns:repeat(4,1fr)}.siteFooter{font-size:10px}}
@media(max-width:600px){.avatarSection .sectionHeader{flex-direction:column;gap:7px}.avatarSection .sectionHeader h2{white-space:nowrap}}

.shopCategories{display:flex;gap:8px;flex-wrap:wrap;padding:18px 35px 0}.shopCategory{border:2px solid #674d32;background:#fff5e2;padding:9px 17px;font-weight:900;font-size:12px;box-shadow:0 3px 0 #674d32}.shopCategory.selected{background:#ffca59}.shopCategory:hover{transform:translateY(1px);box-shadow:0 2px 0 #674d32}.shopList{padding:8px 35px 25px}.shopList .shopRow:first-child{border-top:0}.shopIcon{width:52px;height:52px;filter:none}.badgeMark{display:inline-flex;align-items:center;gap:6px}.badgeMark img{width:18px;height:18px}.previewProgress{display:inline-block;margin:0 0 18px;border:1px solid #9d714c;background:#fff4df;color:#553b28;padding:7px 11px;font-size:11px;font-weight:900}.finishedBox .demoFlag{display:inline-block;margin-top:4px;padding:2px 6px;border:1px solid #af8a5d;color:#6c4c2e;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.boxFallback{width:42px!important;height:42px!important;object-fit:contain!important;margin:35px auto}.xpTrack span{transition:none}@media(max-width:600px){.shopCategories{padding:15px 17px 0}.shopList{padding:8px 17px 20px}.shopCategory{padding:8px 11px;font-size:11px}.shopIcon{width:38px;height:38px}}

.boxArt{display:block;cursor:pointer;padding:0;border:0;text-align:left;aspect-ratio:512/640;background:#211a13}.boxArt:before{display:none}.boxArt canvas{display:block;width:100%;height:100%}.boxArt:hover{transform:translateY(-3px)}.boxPreviewDialog{width:min(800px,94vw);max-width:94vw;max-height:94vh;padding:0;border:2px solid #7b593c;background:#24180f;color:#f4e5cb;box-shadow:0 20px 80px #130b08b8}.boxPreviewDialog::backdrop{background:#170d09ce;backdrop-filter:blur(4px)}.boxPreviewHeader{display:flex;align-items:center;gap:18px;padding:14px 18px;border-bottom:1px solid #725032}.boxPreviewHeader strong{flex:1;font-size:16px}.boxPreviewHeader span{font-size:11px;color:#d7bc91}.boxPreviewClose{border:1px solid #97734a;background:#3b2819;color:#f5e5c8;font-size:23px;line-height:1;width:34px;height:34px}.boxPreviewStage{height:min(70vh,580px);background:radial-gradient(ellipse at center,#523520,#1b100b);touch-action:none;cursor:grab}.boxPreviewStage:active{cursor:grabbing}.boxPreviewStage canvas{display:block;width:100%;height:100%}@media(max-width:600px){.boxPreviewHeader{gap:8px}.boxPreviewHeader span{font-size:9px}.boxPreviewStage{height:62vh}}

.siteNav{grid-template-columns:1fr auto 1fr auto}.siteNav #navWallet{grid-column:3;justify-self:end}.siteNav .languagePicker{grid-column:4;justify-self:end;margin-left:12px}#profilePane:not([hidden]),#shopPane:not([hidden]){animation:account-pane-in .24s ease both}@keyframes account-pane-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@media(max-width:600px){.siteNav{grid-template-columns:1fr auto auto}.siteNav #navWallet{grid-column:2;grid-row:1}.siteNav .languagePicker{grid-column:3;grid-row:1;margin-left:3px}.siteNav .brand{grid-column:1;grid-row:1}.siteNav>a:first-child{grid-column:1;grid-row:2}}@media(prefers-reduced-motion:reduce){#profilePane:not([hidden]),#shopPane:not([hidden]){animation:none}}

body{animation:profile-pieces-drift 48s linear infinite}
@keyframes profile-pieces-drift{to{background-position:540px 360px}}
.heroAvatar{position:relative;padding:0;cursor:pointer}.heroAvatar::after{content:'✎';position:absolute;right:0;bottom:0;display:grid;place-items:center;width:25px;height:25px;border:2px solid #43301f;background:#ffca59;color:#322418;font-size:17px;line-height:1}.heroAvatar:hover,.heroAvatar:focus-visible{box-shadow:6px 6px 0 #b99564,0 0 0 3px #ffca59}.identityName{display:flex;align-items:center;gap:10px}.editName{display:grid;place-items:center;flex:none;width:33px;height:33px;padding:0;border:1px solid #8f7354;border-radius:5px;background:#fff8e9;color:#4d3828;font-size:22px;line-height:1;cursor:pointer}.editName:hover{background:#ffdf99}.profileEditDialog{width:min(760px,calc(100% - 30px));max-height:min(85vh,860px);padding:26px;border:2px solid #4d3828;border-radius:8px;background:#fffaf0;color:#33261d;box-shadow:0 8px 0 #8f704d;overflow:auto}.profileEditDialog::backdrop{background:#251a11a8}.editDialogHead{display:flex;justify-content:space-between;align-items:start;gap:15px;margin-bottom:22px}.editDialogHead h2{margin:3px 0 0;font-size:29px;letter-spacing:-.04em}.dialogClose{width:34px;height:34px;border:1px solid #bda688;border-radius:5px;background:#fff2d9;font-size:25px;line-height:1;cursor:pointer}.profileEditDialog .avatarShelf{grid-template-columns:repeat(7,minmax(0,1fr))}.profileEditDialog .avatarChoice{min-width:0}.editDialogActions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:24px}.subtleButton{background:#fff2d9}.nameDialog{width:min(480px,calc(100% - 30px))}.nameDialog label{display:block;margin:0 0 7px;font-size:13px;font-weight:900}.nameDialog input{width:100%;padding:12px;border:2px solid #bda688;border-radius:5px;background:#fffdf7;color:#33261d}.nameDialog #nameError{color:#a13520;font-size:12px;font-weight:800}@media(max-width:650px){.profileEditDialog .avatarShelf{grid-template-columns:repeat(3,minmax(0,1fr))}}
.xpTrack{overflow:hidden}.xpTrack span{width:100%;transform:scaleX(0);transform-origin:left center;transition:none;will-change:transform}
.collectionPrivacy{display:inline-flex;align-items:center;gap:7px;margin-left:auto;font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer}.collectionPrivacy input{accent-color:#a96820;width:16px;height:16px}
.boxPreviewDialog[open]{animation:profile-preview-in .25s cubic-bezier(.2,.7,.2,1) both}.boxPreviewDialog[open]::backdrop{animation:profile-preview-backdrop .25s ease both}
@keyframes profile-preview-in{from{opacity:0;transform:translateY(20px) scale(.965)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes profile-preview-backdrop{from{opacity:0}to{opacity:1}}
.finishedBox{animation:profile-card-in .3s ease both}@keyframes profile-card-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
@media(max-width:600px){.finishedSection .sectionHeader{flex-wrap:wrap}.collectionPrivacy{order:3;width:100%;margin:6px 0 0}}
@media(prefers-reduced-motion:reduce){body,.boxPreviewDialog[open],.boxPreviewDialog[open]::backdrop,.finishedBox{animation:none!important}}

.boxPreviewStage:empty{display:grid;place-items:center}.boxPreviewStage:empty:before{content:'Opening preview…';font-size:12px;color:#d7bc91;font-weight:800}

.pageWrap button,.pageWrap a{transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.creatorPreview canvas{display:block;width:250px;height:250px;border:5px solid #3e2b1c;background:#f7e7cc;box-shadow:8px 8px 0 #a88459}
.originalSwatch{font-size:9px;font-weight:900;line-height:1.05;background:linear-gradient(135deg,#f5d8ad 50%,#fff9ed 50%)}
@media(max-width:800px){.creatorPreview canvas{width:200px;height:200px}}
@media(max-width:600px){.creatorPreview canvas{width:180px;height:180px}}
.shopList .shopRow{animation:profile-card-in .24s ease-out both}
.shopCategories .shopCategory{transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
@media(prefers-reduced-motion:reduce){.shopList .shopRow{animation:none!important}}

.heroAvatar img { display:block; width:100%; height:100%; padding:6%; object-fit:contain; object-position:center; }
.avatarChoice { display:block; padding:7px; }
.avatarChoice img { display:block; object-fit:contain; }
/* puzzle pieces drift like the home page */
@keyframes piecesDrift{to{background-position:540px 360px}}
body{animation:piecesDrift 48s linear infinite}
@media(prefers-reduced-motion:reduce){body{animation:none}}

/* shop avatar frames (ring images) */
.frame-knit,.frame-cookie,.frame-daisy,.frame-leaves,.frame-brass,.frame-night{position:relative;overflow:visible!important}
.frame-knit img,.frame-cookie img,.frame-daisy img,.frame-leaves img,.frame-brass img,.frame-night img{border-radius:50%}
.frame-knit::after,.frame-cookie::after,.frame-daisy::after,.frame-leaves::after,.frame-brass::after,.frame-night::after{content:'';position:absolute;inset:-17%;background:center/contain no-repeat;pointer-events:none;z-index:2}
.frame-knit::after{background-image:url('/assets/shop/frame-knit.png?v=s1')}.frame-cookie::after{background-image:url('/assets/shop/frame-cookie.png?v=s1')}.frame-daisy::after{background-image:url('/assets/shop/frame-daisy.png?v=s1')}.frame-leaves::after{background-image:url('/assets/shop/frame-leaves.png?v=s1')}.frame-brass::after{background-image:url('/assets/shop/frame-brass.png?v=s1')}.frame-night::after{background-image:url('/assets/shop/frame-night.png?v=s1')}

/* ---- shop1: banner, game shelf, cozier details ---- */
.navBack{display:inline-block;width:0;height:0;margin-right:7px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:7px solid currentColor;vertical-align:1px}
.editName img,.dialogClose img{width:18px;height:18px;image-rendering:pixelated;display:block}
.dialogClose img{width:20px;height:20px;image-rendering:auto}
.heroAvatar::after{content:none!important}
.heroAvatar .avatarEdit{position:absolute;right:-2px;bottom:-2px;z-index:3;display:grid;place-items:center;width:27px;height:27px;border:2px solid #43301f;background:#ffca59}
.heroAvatar .avatarEdit img{width:17px;height:17px;image-rendering:pixelated}
.heroAvatar.framed{border-radius:50%;border-color:transparent;background:#e6b778;box-shadow:none}
.heroAvatar.framed::after{content:''!important}
.heroAvatar.framed .avatarEdit{right:-12px;bottom:-12px;border-radius:50%}
.heroAvatar.framed:hover,.heroAvatar.framed:focus-visible{box-shadow:0 0 0 4px #ffca59}
.sampleAvatar.framed{border-color:transparent}
.profileHero{position:relative;overflow:hidden;isolation:isolate}
.heroBanner{position:absolute;inset:0;z-index:-1;background:center/cover no-repeat;opacity:0;transform:scale(1.04);transition:opacity .6s ease,transform 1.2s cubic-bezier(.22,1,.36,1)}
.profileHero.hasBanner .heroBanner{opacity:1;transform:none}
.profileHero.hasBanner .heroBanner::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,248,232,.0) 0%,rgba(255,248,232,.55) 55%,rgba(241,223,188,.92) 100%)}
.profileHero.hasBanner .identityCopy h1{text-shadow:0 2px 0 rgba(255,248,232,.85)}
.profileHero.hasBanner .overline{background:#fff6e2;padding:3px 7px;border:1px solid #c9a77a}
.heroAvatar{animation:hero-pop .55s cubic-bezier(.34,1.56,.64,1) both}
@keyframes hero-pop{from{opacity:0;transform:scale(.86)}}
.statStrip>div{transition:background .2s}
.statStrip>div:hover{background:#fff3dc}
.gamesSection .sectionHeader{margin-bottom:16px}
.gameShelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.gameCard{position:relative;display:flex;flex-direction:column;gap:12px;padding:16px 16px 13px;border:2px solid #4d3828;background:#fffaf0;box-shadow:4px 4px 0 #c9a77a;animation:card-rise .55s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--i)*80ms);transition:transform .18s ease,box-shadow .18s ease}
.gameCard::before{content:'';position:absolute;left:0;right:0;top:0;height:6px;background:var(--tint)}
.gameCard:hover{transform:translate(-2px,-3px);box-shadow:7px 8px 0 #c9a77a}
@keyframes card-rise{from{opacity:0;transform:translateY(14px)}}
.gameHead{display:flex;align-items:center;gap:11px;margin-top:3px}
.gameIcon{width:42px;height:42px;object-fit:contain;flex:none;padding:5px;border:2px solid #4d3828;background:color-mix(in srgb,var(--tint) 35%,#fff8ea);transition:transform .25s cubic-bezier(.34,1.56,.64,1)}
.gameCard:hover .gameIcon{transform:translateY(-2px)}
.gameIcon[src$=".png"][src*="pixel-ui"]{image-rendering:pixelated}
.gameTitle h3{margin:0;font-size:16px;font-weight:900;line-height:1.1}
.gameTitle span{font-size:11px;font-weight:800;color:#8a6c50}
.gameStats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.gameStat{padding:8px 8px 7px;background:#f6ead2;border:1px solid #e0c9a6}
.gameStat strong{font-size:22px;font-weight:900;line-height:1;font-variant-numeric:tabular-nums}
.gameStat small{font-size:11px;font-weight:900;color:#8a6c50}
.gameStat span{display:block;margin-top:4px;font-size:9.5px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#886a4e}
.gameMeter{height:7px;border:1.5px solid #5b412d;background:#fff8e7;overflow:hidden}
.gameMeter i{display:block;height:100%;background:var(--tint);transform:scaleX(0);transform-origin:left;transition:transform 1.1s cubic-bezier(.22,1,.36,1)}
.gameFoot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;font-size:11.5px;font-weight:800;color:#775b40}
.gamePlay{padding:5px 12px;border:2px solid #4d3828;background:#ffca59;color:#33261d;font-size:12px;font-weight:900;text-decoration:none;box-shadow:2px 2px 0 #4d3828;transition:transform .12s,box-shadow .12s}
.gamePlay:hover{transform:translate(-1px,-1px);box-shadow:3px 3px 0 #4d3828}
.gamePlay:active{transform:translate(1px,1px);box-shadow:1px 1px 0 #4d3828}
.shopRow{animation:card-rise .45s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--i,0)*45ms)}
.shopKind{display:block;font-size:9.5px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#9b5937;margin-bottom:2px}
.shopSample{transition:transform .2s cubic-bezier(.34,1.56,.64,1)}
.shopRow:hover .shopSample{transform:translateY(-2px)}
.shopSample .sampleAvatar.framed{width:64px;height:64px;overflow:visible}
.kind-badge .shopIcon,.kind-reaction .shopIcon{width:62px;height:62px}
.kind-cardback .shopIcon{width:auto;height:88px;filter:drop-shadow(2px 3px 0 rgba(77,56,40,.35))}
.kind-banner .shopIcon{width:104px;height:78px;object-fit:cover;border:2px solid #4d3828}
.shopCategories{flex-wrap:wrap}
.badgeMark img{width:22px;height:22px}
@media(max-width:900px){.gameShelf{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.gameShelf{grid-template-columns:1fr}.gameStat strong{font-size:19px}}
@media(prefers-reduced-motion:reduce){.gameCard,.shopRow,.heroAvatar{animation:none}.gameMeter i,.heroBanner{transition:none}}
.heroAvatar.framed::after{width:auto!important;height:auto!important;border:0!important;background-color:transparent!important}
/* keep the language fade-in AND the drifting puzzle pieces (language.css loads later and replaced the drift) */
html body{animation:page-in .22s ease both,piecesDrift 48s linear infinite}
@media(prefers-reduced-motion:reduce){html body{animation:page-in .22s ease both}}
.heroAvatar .avatarEdit{font-size:17px;line-height:1;color:#322418;font-weight:400}
.editName{font-size:22px}

/* Character maker */
.profileEditDialog.makerDialog{width:min(860px,calc(100% - 24px))}
.avatarMaker{display:grid;grid-template-columns:minmax(220px,300px) 1fr;gap:26px;align-items:start}
.makerStage{display:grid;gap:14px;justify-items:center;position:sticky;top:0}
.makerPortrait{width:100%;aspect-ratio:1;padding:14px;border:2px solid #4d3828;background:#f3e3c7;box-shadow:inset 0 0 0 4px #fbf1df,0 5px 0 #8f704d}
.makerPortrait canvas{display:block;width:100%;height:100%}
.makerShuffle{width:100%}
.makerControls{display:grid;gap:9px}
.makerRow{display:grid;grid-template-columns:104px 38px minmax(0,1fr) 38px;align-items:center;gap:8px}
.makerLabel{font-size:11px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#7a5638}
.makerArrow{display:grid;place-items:center;width:38px;height:36px;padding:0;border:2px solid #42301e;background:#ffca59;color:#34251b;box-shadow:0 3px 0 #42301e;transition:transform .12s,box-shadow .12s}
.makerArrow:hover{transform:translateY(1px);box-shadow:0 2px 0 #42301e}
.makerArrow:active{transform:translateY(3px);box-shadow:0 0 0 #42301e}
.makerArrow svg{width:16px;height:16px}
.makerValue{display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:0 10px;border:2px solid #d3b994;background:#f9edda;font-weight:900;font-size:13px;color:#4a3626;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.makerValue small{font-size:11px;color:#8a6d52}
.makerSwatch{display:block;width:22px;height:22px;border:2px solid #4d3828;border-radius:50%}
.makerSliders{display:grid;gap:7px;margin-top:6px;padding:12px 12px 10px;border:2px solid #d3b994;background:#fff4e2}
.makerSlider{display:grid;grid-template-columns:86px 1fr;align-items:center;gap:10px;font-size:12px;font-weight:800;color:#5c4531}
.makerSlider input{-webkit-appearance:none;appearance:none;width:100%;height:16px;margin:0;border:2px solid #4d3828;background:var(--track,#d3b994);cursor:pointer}
.makerSlider input::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:24px;border:2px solid #42301e;background:#fffaf0;box-shadow:0 2px 0 #42301e}
.makerSlider input::-moz-range-thumb{width:12px;height:22px;border:2px solid #42301e;border-radius:0;background:#fffaf0;box-shadow:0 2px 0 #42301e}
.makerSlider input:focus-visible{outline:3px solid #ffca59;outline-offset:2px}
@media(max-width:720px){.avatarMaker{grid-template-columns:1fr}.makerStage{position:static}.makerPortrait{width:min(260px,100%)}.makerRow{grid-template-columns:86px 36px minmax(0,1fr) 36px}}

/* gender badge (drawn asset) next to the player name, vertically centred on the name */
.identityName { display: flex; align-items: center; gap: 10px; }
.identityName .genderBadge { width: 34px; height: 34px; flex: none; display: block; }

/* new close-up avatars fill their frame edge to edge (no padding ring) */
img[src*="/api/avatar/"] { padding: 0 !important; object-fit: cover !important; background: none !important; }
