/* Profil (who you are), Kustomisasi (what you wear) and Koleksi (what you have): three pages, one job each. */
html:not([data-panel=profil]) #profil,html:not([data-panel=kustomisasi]) #kustomisasi,html:not([data-panel=koleksi]) #koleksi{display:none}
html:not([data-panel=kustomisasi]):not([data-panel=koleksi]) #look-load{display:none}
html:not(.is-signed-in) :is(#profil,#kustomisasi,#koleksi,#look-load){display:none}
.look-load{display:flex;align-items:center;gap:14px;margin:16px 0 32px}.look-load:not(:has(#look-status:not(:empty),#look-retry:not([hidden]))){display:none}
.look-load #look-status{margin:0;font-size:13px;color:var(--text-2)}
:is(.pf,.wr,.kl){margin:0 0 48px;padding:0;border:0}
:is(.wr,.kl)>.section__head{align-items:baseline;margin-bottom:20px}
:is(.wr,.kl)>.section__head h2{font-size:28px}
:is(.wr,.kl,.pf-block)>.section__head>:last-child:not(:first-child){margin-left:auto}

/* Profil */
.pf-hero{position:relative;display:grid;grid-template-columns:248px minmax(0,1fr) auto;align-items:center;gap:20px 44px;padding:36px 44px;border:1px solid #2b465b;border-radius:28px;background:radial-gradient(520px 380px at 168px 50%,#2b648a66,transparent 72%),linear-gradient(110deg,#12293a,#0f1b27 70%);overflow:hidden}
/* The level is an orbit around the avatar: ticks, how far this level has come, and the level docked under it. */
.pf-orbit{position:relative;display:grid;place-items:center;width:248px;aspect-ratio:1}
.pf-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);fill:none}
.pf-ring__ticks{stroke:#7dd3fc40;stroke-width:5;stroke-dasharray:1 5}
.pf-ring__track{stroke:#071b2a;stroke-width:7}
.pf-ring__fill{stroke:#7dd3fc;stroke-width:7;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;transition:stroke-dashoffset .9s cubic-bezier(.2,.8,.2,1)}
.pf-orbit[data-state=max] .pf-ring__fill{stroke:#f5c451}
.pf-orbit:not([data-state=ready],[data-state=max]) .pf-ring__fill{display:none}
.pf-orbit .avatar{--avatar-size:176px;font-size:68px}
.pf-orbit .avatar.has-composed-card{background:none!important}.pf-orbit .avatar.has-composed-card .avatar__base{visibility:hidden}
.pf-level{position:absolute;bottom:-4px;display:flex;align-items:baseline;gap:5px;padding:5px 15px 6px;border-radius:999px;border:1px solid #75c9ec80;background:#112c40;color:#d9f5ff;box-shadow:0 0 0 5px #11222f}
.pf-level small{font-size:11px;font-weight:700;letter-spacing:.06em;color:#9fd3ee}.pf-level b{font-size:20px;line-height:1;font-variant-numeric:tabular-nums}
.pf-id{min-width:0}
.pf-title{display:inline-block;margin:0 0 10px;padding:4px 11px;border-radius:8px;background:#f5c4511f;color:#f5cf77;font-size:12px;font-weight:700}
#look-name.pf-name{margin:0;font:700 clamp(34px,4.4vw,56px)/1.06 Fredoka,var(--font);letter-spacing:-.02em;overflow-wrap:anywhere;width:fit-content;max-width:100%}
.pf-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:14px 0 0;color:var(--text-2);font-size:13px}
.pf-code{display:inline-flex;align-items:center;gap:2px;padding:0 0 0 11px;border:1px solid #7dd3fc24;border-radius:9px}
.pf-code code{font:600 13px ui-monospace,Consolas,monospace;letter-spacing:.04em;color:var(--text-1)}
.pf-code button{display:grid;place-items:center;width:34px;height:32px;padding:0;border:0;background:none;color:var(--text-3)}.pf-code button:hover{color:var(--blue-400)}.pf-code svg{width:16px;height:16px}
.pf-form{display:flex;flex-wrap:wrap;gap:8px;max-width:440px}.pf-form input{flex:1 1 180px;font-size:18px;font-weight:650}
.pf-hint{margin:10px 0 0;font-size:13px;color:var(--text-2)}.pf-hint:empty{display:none}.pf-hint.bad{color:var(--red)}
.pf-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.pf-stats.stats{margin:0;padding:0 0 0 36px;border:0;border-left:1px solid #7dd3fc24;background:none;min-width:200px}
.pf-stats dl{display:grid;gap:10px;margin:0}
.pf-stats dl div{display:grid;grid-template-columns:44px auto;grid-template-rows:auto auto;column-gap:14px;align-items:center;padding:10px 16px 10px 10px;border-radius:16px;background:#0b1f2d;border:1px solid #7dd3fc14}
.pf-stats dd{grid-column:2;grid-row:1;margin:0;font:700 24px/1 Fredoka,var(--font);font-variant-numeric:tabular-nums;color:var(--text-1)}
.pf-stats dt{grid-column:2;grid-row:2;margin-top:3px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3)}
.pf-stat__icon{grid-row:1/3;display:grid;place-items:center;width:44px;height:44px;border-radius:50%}.pf-stat__icon svg{width:24px;height:24px}
.pf-stat__icon--points{background:#1d4561;color:#8fd8ff;box-shadow:inset 0 0 0 3px #163449}
.pf-stat__icon--chip{background:#4a3a12;box-shadow:inset 0 0 0 3px #362a0c}
.pf-stat__icon--stars{background:#4a3a12;color:#f5c451;box-shadow:inset 0 0 0 3px #362a0c}
/* XP for this level sits on the ring itself and shows on hover, focus or tap. */
.pf-orbit{outline:none;cursor:default}
.pf-xp{position:absolute;top:-6px;left:50%;z-index:5;transform:translate(-50%,4px);padding:6px 12px;border-radius:999px;border:1px solid #75c9ec80;background:#112c40;color:#d9f5ff;font-size:12px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums;box-shadow:0 8px 20px #0008;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}
.pf-xp:empty{display:none}
.pf-orbit:is(:hover,:focus-visible,:focus) .pf-xp{opacity:1;transform:translate(-50%,0)}
.pf-orbit:is(:hover,:focus-visible,:focus) .pf-ring__fill{filter:drop-shadow(0 0 6px #7dd3fcaa)}
.pf-orbit:focus-visible .pf-ring__track{stroke:#13354d}
.pf-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:24px 48px;margin-top:40px;align-items:start}
.pf-block .section__head{margin-bottom:8px;align-items:center}.pf-block h3{font-size:18px;letter-spacing:-.02em}
:is(.pf-matches,.pf-quests){list-style:none;margin:0;padding:0}
:is(.pf-matches,.pf-quests) li{border-top:1px solid var(--line)}:is(.pf-matches,.pf-quests) li:first-child{border-top:0}
.pf-matches li{display:flex;align-items:center;gap:14px;padding:12px 0}
.pf-matches__art{flex:none;width:64px;height:44px;border-radius:9px;overflow:hidden;background:var(--surface-2)}.pf-matches__art img{width:100%;height:100%;object-fit:cover;display:block}
.pf-matches__text{flex:1;min-width:0}.pf-matches__text b,.pf-matches__text small{display:block}.pf-matches__text b{font-size:14px}.pf-matches__text small{font-size:12px;color:var(--text-3)}
.pf-result{flex:none;font-size:12px;font-weight:650;color:var(--text-2)}.pf-result.is-win{color:#a1edcd}
.pf-quests li{padding:13px 0}
.pf-quest__top,.pf-quest__foot{display:flex;justify-content:space-between;gap:16px;align-items:baseline}
.pf-quest__top b{font-size:14px}.pf-quest__stars{flex:none;font-size:15px;letter-spacing:2px;color:#35495a}.pf-quest__stars i{font-style:normal}.pf-quest__stars .on{color:#f5c451}
.pf-quest__bar{display:block;height:6px;margin:8px 0 7px;border-radius:9px;background:#071b2a;overflow:hidden}.pf-quest__bar i{display:block;height:100%;border-radius:inherit;background:#57b4e3}
.pf-quest__foot{font-size:12px;color:var(--text-3)}.pf-quest__foot span:last-child{flex:none;font-variant-numeric:tabular-nums}

/* A face from stacked item previews, for trying on before havenhold composes the card. */
.face{--face:100%;width:var(--face);height:auto;aspect-ratio:1;background:none;overflow:visible}
.face>img{position:absolute;inset:0;width:100%;height:100%}
.face__base{display:grid;place-items:center;width:81%;height:81%;border-radius:50%;background:#29455b}
/* The moving light follows the frame itself, not the edge of the square art. */
:is(.face,.pf-orbit .avatar)[data-frame]::after{inset:2%}
.face__badge{position:absolute;left:3.1%;top:3.1%;width:29.7%;aspect-ratio:1;overflow:hidden;z-index:4}
.face--seat .face__badge{left:0;top:0;width:44%}
/* Badge art is a 152 px box at 16,16 of the 512 px canvas (havenhold BADGE_BOX). */
.face__badge-art{position:absolute;max-width:none;width:336.8%;height:336.8%;left:-10.5%;top:-10.5%}

/* Kustomisasi: a mirror that stays put, and the rack beside it. */
.wr-room{display:grid;grid-template-columns:320px minmax(0,1fr);gap:32px;align-items:start}
.wr-stage{position:sticky;top:24px;display:grid;justify-items:center;padding:30px 24px 24px;border:1px solid #2b465b;border-radius:28px;background:radial-gradient(300px 260px at 50% 150px,#2b648a80,transparent 75%),linear-gradient(180deg,#12293a,#0f1b27)}
.wr-mirror{display:grid;place-items:center;width:216px;max-width:100%}.wr-mirror .avatar{font-size:72px}
.wr-name{margin:22px 0 0;max-width:100%;font:700 28px/1.15 Fredoka,var(--font);text-align:center;overflow-wrap:anywhere}
.wr-seat{display:flex;align-items:center;gap:10px;max-width:100%;margin-top:22px;padding:7px 16px 7px 8px;border-radius:14px;background:#071521b3}
.wr-seat small{order:3;margin-left:6px;font-size:11px;color:var(--text-3);white-space:nowrap}
.wr-seat__face{flex:none;width:40px}.wr-seat__face .avatar{font-size:15px}.wr-seat__name{min-width:0;font-size:13px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wr-save{width:100%;margin-top:22px}.wr-save p{min-height:20px;margin:0 0 8px;font-size:12px;line-height:20px;color:var(--text-2);text-align:center}
.wr-save__row{display:flex;gap:8px}.wr-save__row .btn{padding:0 16px}:is(#wear-save,#emote-save){flex:1;min-width:0;white-space:normal}
#wear-save:disabled{opacity:1;background:#1a2c3a;color:#7f95a6}
.wr-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--line);margin-bottom:22px}
.wr-tab{position:relative;min-width:0;padding:4px 12px 14px;border:0;background:none;color:var(--text-2);text-align:left}
.wr-tab b,.wr-tab small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wr-tab b{font-size:15px}.wr-tab small{font-size:12px;color:var(--text-3)}
.wr-tab:hover{color:var(--text-1)}.wr-tab[aria-selected=true]{color:var(--text-1)}
.wr-tab[aria-selected=true]::after{content:'';position:absolute;inset:auto 0 -1px;height:3px;border-radius:3px 3px 0 0;background:var(--blue-400)}
.wr-tab.is-changed small{color:var(--blue-400)}
.wr-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(136px,1fr));gap:12px}
.wr-item{--rarity:#8fa6b8;display:grid;justify-items:center;align-content:start;min-width:0;padding:16px 10px 13px;border:2px solid transparent;border-radius:18px;background:#14212d;color:var(--text-1);transition:background .15s,border-color .15s}
.wr-item[data-rarity=rare]{--rarity:#7dd3fc}.wr-item[data-rarity=epic]{--rarity:#c4b5fd}.wr-item[data-rarity=legendary]{--rarity:#f8d47e}
.wr-item:hover{background:#1a2d3c}.wr-item[aria-pressed=true]{border-color:var(--blue-400);background:#17303f}
.wr-item:disabled{opacity:.7}
.wr-item__art{display:grid;place-items:center;width:100%;height:96px;margin-bottom:10px}
.wr-item__art .face{--face:92px;font-size:28px}
.wr-item__badge{position:relative;display:block;width:66px;aspect-ratio:1;overflow:hidden}
.wr-item__name{max-width:100%;padding:0 4px;font:700 19px/1.2 Fredoka,var(--font);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wr-item__none{width:64px;height:64px;border:2px dashed #3c5568;border-radius:50%}
.wr-item b{max-width:100%;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.wr-item small{display:inline-flex;align-items:center;gap:4px;margin-top:2px;font-size:12px;color:var(--rarity)}.wr-item small.is-worn{color:#a1edcd}.wr-item small.chip-amount{color:#f5cf77}
.wr-item.is-locked .wr-item__art{opacity:.55}.wr-item.is-locked[aria-pressed=true] .wr-item__art{opacity:1}

.kl-count{font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums}
.kl>.section__head #look-customize{margin-left:auto}
/* Koleksi shows avatar parts the way Kustomisasi does. */
.look-wear{display:grid;place-items:center;width:100%;height:112px}.look-item .look-wear img{width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:auto}.look-item .look-wear .face>img{position:absolute;inset:0}.look-wear .face{--face:104px;font-size:30px}
.look-wear--badge .wr-item__badge{width:80px}.look-wear--name .wr-item__name{font-size:18px}

/* Kustomisasi has two pages: what you wear (Persona) and what you bring to the table (Ekspresi). */
.wr-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:560px;margin:0 0 24px}
.wr-modes button{display:flex;align-items:center;gap:12px;min-width:0;padding:12px 16px 12px 12px;border:1px solid #2b465b;border-radius:18px;background:#101c27;color:var(--text-2);text-align:left}
.wr-modes button:hover{background:#142636;color:var(--text-1)}
.wr-modes button[aria-selected=true]{border-color:var(--blue-400);background:linear-gradient(120deg,#1b435e,#112331);color:var(--text-1)}
.wr-modes b,.wr-modes small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wr-modes b{font-size:15px}.wr-modes small{font-size:12px;color:var(--text-3)}
.wr-modes button>span:last-child{min-width:0}
.wr-mode__icon{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#0b1f2d;color:var(--blue-400)}.wr-mode__icon svg{width:22px;height:22px}
.wr-room[hidden]{display:none}

/* Emoji: the tray is the table-side picker, in the order it shows there. */
.wr-stage--tray{justify-items:stretch}
.wr-tray__head{display:flex;gap:12px;width:100%;align-items:baseline;justify-content:space-between;margin-bottom:14px}
.wr-tray__head b{font:700 22px/1 Fredoka,var(--font)}.wr-tray__head span{font-size:13px;font-weight:700;color:var(--text-2);font-variant-numeric:tabular-nums}
/* The wheel as the games open it: a dark dial of six wedges, slot numbers inside, items on the
   rim, the chosen slot lit with a dashed edge. Slot 1 on top, then clockwise. */
.wr-wheel{position:relative;width:min(100%,300px);aspect-ratio:1;margin:4px auto 0}
.wr-wheel__face{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.wr-wheel__disc{fill:#08131c;stroke:#7dd3fc1f;stroke-width:1}
.wr-wheel__wedge{fill:transparent;stroke:#7dd3fc14;stroke-width:1;cursor:pointer;transition:fill .15s}
.wr-wheel__wedge:hover{fill:#7dd3fc0f}
.wr-wheel__wedge.is-on{fill:#2f5f86b3;stroke:#7dd3fc;stroke-width:1.4;stroke-dasharray:4 3}
.wr-wheel__hub{fill:#0b1a26;stroke:#7dd3fc1f;stroke-width:1;pointer-events:none}
.wr-wheel__num{fill:#8fa6b8;font:700 9px var(--font);text-anchor:middle;dominant-baseline:central;pointer-events:none}
.wr-wheel__slot{position:absolute;display:grid;place-items:center;width:27%;aspect-ratio:1;padding:0;border:0;border-radius:50%;background:none;transform:translate(-50%,-50%);cursor:pointer}
.wr-wheel__slot:focus-visible{outline:2px solid var(--blue-400);outline-offset:2px}
.wr-wheel__slot :is(img,picture,canvas){max-width:100%;max-height:100%}
.wr-wheel__slot .sticker-art{max-width:100%;max-height:100%}
.wr-wheel__slot .sticker-caption{font-size:8px}.wr-wheel__slot .sticker-art--captioned{transform:translateY(-6%)}
.wr-wheel__slot .wr-bubble{max-width:110%;padding:4px 7px;font-size:10px}
.wr-pages{width:100%;display:flex;justify-content:center;gap:6px;margin-top:14px}
.wr-pages button{min-width:36px;min-height:32px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:none;color:var(--text-2);font-size:12px;font-weight:700}
.wr-pages button[aria-pressed=true]{border-color:var(--blue-400);background:#7dd3fc1f;color:var(--text-1)}
.wr-slot{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;margin-top:12px;padding:0 4px 0 12px;border-radius:12px;background:#071521b3;font-size:13px;font-weight:700}
.wr-slot span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* A quick chat line, as its bubble at the table. */
.wr-bubble{display:inline-block;max-width:100%;padding:8px 12px;border-radius:14px 14px 14px 4px;background:#e8f6ff;color:#0b2233;font-size:13px;font-weight:750;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#emote-kinds{margin-bottom:16px}
.wr-item__art--emote{position:relative;overflow:visible}.wr-item__art--emote .sticker-art{max-height:100%}
.wr-item__order{position:absolute;top:0;right:8px;display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:var(--blue-400);color:#062033;font-size:12px;font-weight:800}

@media(max-width:1180px){
 .pf-hero{grid-template-columns:220px minmax(0,1fr);gap:24px 36px;padding:32px}.pf-orbit{width:220px}.pf-orbit .avatar{--avatar-size:156px}
 .pf-stats.stats{grid-column:1/-1;max-width:none;padding:22px 0 0;border-left:0;border-top:1px solid #7dd3fc24}
 .pf-stats dl{grid-template-columns:repeat(3,minmax(0,1fr))}.pf-stats dl div{flex-direction:column-reverse;gap:6px;justify-content:flex-end}
 .wr-room{grid-template-columns:260px minmax(0,1fr);gap:24px}.wr-mirror{width:176px}
}
@media(max-width:760px){
 .pf-hero{grid-template-columns:1fr;justify-items:center;padding:28px 20px 24px;text-align:center;background:radial-gradient(380px 300px at 50% 130px,#2b648a66,transparent 75%),linear-gradient(180deg,#12293a,#0f1b27)}
 .pf-id,.pf-stats.stats{width:100%}.pf-stats dl div{align-items:center}#look-name.pf-name{margin:0 auto}.pf-meta,.pf-actions{justify-content:center}.pf-form{margin:0 auto}
 .pf-actions .btn{flex:1 1 130px}.pf-grid{margin-top:32px}
 /* The mirror shrinks to a bar that stays on screen while the rack scrolls. */
 .wr-room{grid-template-columns:minmax(0,1fr);gap:20px}
 .wr-stage{top:8px;z-index:20;grid-template-columns:92px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;justify-items:start;gap:8px 14px;padding:14px;border-radius:22px;background:linear-gradient(110deg,#1b435e,#0f1b27 75%);box-shadow:0 12px 30px #020a1280}
 .wr-mirror{grid-row:1/3;width:92px}.wr-mirror .avatar{font-size:32px}
 .wr-name{margin:0;font-size:20px;text-align:left;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wr-seat{display:none}
 .wr-save{margin:0}.wr-save p{display:none}.wr-save p:not(:empty){display:block;min-height:0;margin:0 0 4px;text-align:left}
 .wr-save__row .btn{min-height:40px;padding:0 12px}
 .wr-modes{gap:8px;margin-bottom:18px}.wr-modes button{padding:10px;gap:10px}.wr-modes small{display:none}.wr-mode__icon{width:34px;height:34px}
 .wr-stage--tray{display:block;position:static}
 .pf-stats dl{gap:8px}.pf-stats dl div{grid-template-columns:1fr;grid-template-rows:auto;justify-items:center;row-gap:6px;padding:14px 6px 12px;text-align:center}
 .pf-stats .pf-stat__icon,.pf-stats dd,.pf-stats dt{grid-column:1;grid-row:auto}.pf-stats dt{margin:0;font-size:10px}.pf-stats dd{font-size:21px}
 .pf-stats .pf-stat__icon{width:36px;height:36px}.pf-stat__icon svg{width:20px;height:20px}.wr-tray__head{margin-bottom:10px}.wr-tray__head b{font-size:18px}.wr-tray{padding:6px;gap:6px}.wr-stage--tray .wr-save{margin-top:10px}
 .wr-tab{padding:4px 4px 12px;text-align:center}.wr-tab b{font-size:14px}.wr-tab small{font-size:11px}
 .wr-items{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.wr-item{padding:12px 6px 11px;border-radius:14px}.wr-item__art{height:78px;margin-bottom:8px}.wr-item__art .face{--face:76px}.wr-item__name{font-size:16px}
}
@media(max-width:350px){.wr-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
