/* Wardrobe (Collection + Roll on one screen), shared by phone and desktop. */
.hero { position: absolute; overflow: hidden; background: #2a1440; }
.hero .sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) brightness(0.55) hue-rotate(-18deg); }
.hero .tint { position: absolute; inset: 0; background: radial-gradient(70% 60% at 55% 62%, rgba(255, 95, 168, 0.55), rgba(160, 74, 184, 0.35) 45%, rgba(18, 13, 46, 0.65) 100%); }
.hero .rays { position: absolute; left: 55%; top: 60%; width: 900px; height: 900px; margin: -450px 0 0 -450px; opacity: 0.35;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 234, 0.55) 0 6deg, transparent 6deg 20deg); -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 70%); mask: radial-gradient(closest-side, #000 20%, transparent 70%); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero .cast img { position: absolute; filter: drop-shadow(0 10px 12px rgba(20, 0, 30, 0.5)); }
.hero .cast .side { filter: drop-shadow(0 8px 10px rgba(20, 0, 30, 0.5)) brightness(0.82) saturate(0.9); }
.hero .feature { animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 95%; }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-4px) scale(1.015, 0.99); } }
.hero .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(18, 8, 30, 0.9)); }
.title { position: absolute; color: #fff; }
.title .stroke { display: block; line-height: 0.95; -webkit-text-stroke-color: #3a0f3a; text-shadow: 0 3px 0 #3a0f3a; transform: rotate(-3deg); transform-origin: 0 50%; }
.title .stars { margin-top: 6px; } .title .stars .ico { width: 18px; height: 18px; }
.title .sub { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 700; color: #ffd6ea; background: rgba(30, 8, 40, 0.6); padding: 4px 9px; border-radius: 9px; }
.title .sub i { width: 8px; height: 8px; border-radius: 50%; background: var(--t-ultra); box-shadow: 0 0 8px var(--t-ultra); }
.pager { position: absolute; display: flex; gap: 6px; align-items: center; }
.pager i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.45); }
.pager i.on { width: 20px; background: var(--t-ultra); }
.hbtn { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(30, 8, 40, 0.62); color: #fff; border: 1.5px solid rgba(255, 214, 234, 0.3); }
.hbtn .ico { width: 22px; height: 22px; }
.pity { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 10px; background: rgba(30, 8, 40, 0.62); color: #fff; font-size: 12px; font-weight: 700; border: 1.5px solid rgba(255, 214, 234, 0.3); }
.pity .pips { display: flex; gap: 2px; }
.pity .pips i { width: 5px; height: 12px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); }
.pity .pips i.f { background: var(--t-rare); }
.rolls { display: flex; gap: 10px; }
.roll { flex: 1; height: 58px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; position: relative; overflow: hidden;
  border: 3px solid #fff3c4; box-shadow: 0 0 0 2px #c9852a, 0 5px 0 2px #8a5216, 0 12px 20px -8px rgba(0, 0, 0, 0.6); }
.roll b { font-family: Lilita, sans-serif; font-weight: 400; font-size: 22px; letter-spacing: 0.01em; }
.roll span { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; }
.roll span .ico { width: 16px; height: 16px; }
.roll.one { background: linear-gradient(180deg, #fffaf0, #f4e3c2); color: var(--ink); }
.roll.one span { color: var(--leaf-ink); }
.roll.ten { background: linear-gradient(180deg, #ffe48a, #ffc93a 60%, #f0a91e); color: var(--ink); }
.roll.ten::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50px; left: -60px; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent); animation: sheen 3s ease-in-out infinite; }
.roll .dot { position: absolute; top: 6px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--pink-dot); border: 2px solid #fff; }

.coll { position: absolute; background: var(--paper); display: flex; flex-direction: column; }
.ctabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 2px solid #ecdcc0; flex: none; }
.ctab { flex: 1; height: 44px; font-size: 13px; font-weight: 700; color: var(--muted); position: relative; white-space: nowrap; }
.ctab.on { color: var(--ink); }
.ctab.on::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -2px; height: 3px; border-radius: 2px; background: var(--wood-dark); }
.chead { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px; flex: none; }
.chead b { font-size: 15px; } .chead b em { font-style: normal; color: var(--muted); font-weight: 600; }
.sort { height: 32px; padding: 0 10px; border-radius: 10px; background: #ecdcc0; font-size: 12px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.sort .ico { width: 14px; height: 14px; }
.grid { display: grid; gap: 8px; padding: 0 12px 12px; overflow: hidden; align-content: start; grid-auto-rows: max-content; flex: 1; min-height: 0; }
.tile { position: relative; border-radius: 14px; padding: 0 0 7px; display: flex; flex-direction: column; align-items: center; background: linear-gradient(180deg, var(--tl), #fffaf0 80%);
  border: 2.5px solid var(--t); box-shadow: 0 3px 0 color-mix(in srgb, var(--t) 70%, #4a2a14); overflow: hidden; }
.tile .art { width: 100%; height: 86px; position: relative; overflow: hidden; flex: none; }
.tile .art img { position: absolute; width: 124%; left: -12%; top: -38%; }
.tile .nm { font-size: 12px; font-weight: 700; line-height: 1.1; text-align: center; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile .stars { margin-top: 2px; } .tile .stars .ico { width: 10px; height: 10px; }
.tile:not(.owned) .art img { filter: grayscale(0.6) brightness(0.95); opacity: 0.82; }
.tile:not(.owned) { background: linear-gradient(180deg, #eee6d6, #f6efe2 80%); }
.tile:not(.owned) .nm { color: var(--muted); }
.tile.eq { box-shadow: 0 3px 0 color-mix(in srgb, var(--t) 70%, #4a2a14), 0 0 0 3px var(--gold); }
.tile .eqb { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); display: grid; place-items: center; }
.tile .eqb .ico { width: 13px; height: 13px; color: var(--ink); }
.tile .feat { position: absolute; top: 5px; left: 5px; font-size: 10px; font-weight: 700; color: #fff; background: var(--t-ultra); padding: 2px 6px; border-radius: 6px; border: 1.5px solid #fff; }
.tier-ultra.owned .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%); background-size: 250% 100%; animation: shine 3.4s linear infinite; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* skin detail sheet */
.dim { position: absolute; inset: 0; background: rgba(20, 10, 2, 0.5); z-index: 30; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.sheet { position: absolute; z-index: 31; background: var(--paper); transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.25, 1); box-shadow: 0 -10px 30px rgba(20, 10, 2, 0.4); }
.open .dim { opacity: 1; pointer-events: auto; }
.stage { position: relative; border-radius: 18px; overflow: hidden; background: radial-gradient(80% 70% at 50% 75%, #ffd6ea, #c98ad6 50%, #5a2a6e); }
.stage .stump { position: absolute; left: 50%; bottom: -8%; width: 92%; transform: translateX(-50%); }
.stage .fig { position: absolute; animation: bob 3s ease-in-out infinite; transform-origin: 50% 95%; }
.stage .turn { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: #fff; background: rgba(40, 10, 50, 0.55); padding: 4px 10px; border-radius: 10px; display: flex; gap: 6px; align-items: center; }
.sname { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sname h3 { font-family: Lilita, sans-serif; font-weight: 400; font-size: 26px; line-height: 1; }
.tchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 9px; background: var(--tl); color: var(--ink); border: 2px solid var(--t); }
.looks { display: flex; gap: 8px; }
.look { width: 62px; height: 62px; border-radius: 14px; background: #fffaf0; border: 2.5px solid var(--edge-soft); position: relative; display: grid; place-items: center; }
.look img { width: 54px; height: 54px; border-radius: 50%; }
.look.on { border-color: var(--gold-edge); box-shadow: 0 0 0 3px var(--gold); }
.look.lock img { filter: grayscale(1); opacity: 0.55; }
.look .l { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; }
.emotes { display: flex; gap: 8px; }
.emote { flex: 1; height: 44px; border-radius: 12px; background: #ecdcc0; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
.emote .ico { width: 18px; height: 18px; }
.lbl { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
