/* Avatars (/js/avatar.js) and the Star Shop page (/avatar). */
.av { position: relative; display: inline-block; width: var(--av); height: var(--av); border-radius: calc(var(--av) * .18); overflow: hidden; flex: none; background-size: cover; background-position: center bottom; vertical-align: middle; }
.av.av-round { border-radius: 50%; }
.av > svg { position: absolute; left: 6%; bottom: 0; width: 88%; height: 88%; }
.av-pet { position: absolute; right: 2%; bottom: 2%; width: 34%; height: auto; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }

/* Star Shop page */
.shop { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.shop-me { position: sticky; top: 12px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.shop-me .av { box-shadow: var(--shadow); border: 4px solid #fff; }
.shop-stars { font-size: 1.5rem; font-weight: 900; }
.shop-stars small { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.shop-trying { background: #fff7d6; border: 2px solid #f2d36b; border-radius: 12px; padding: 8px 12px; font-weight: 700; display: grid; gap: 8px; }
.shop-closed { background: #eef1f6; border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.shop-sections { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.shop-sections .chip-btn { min-height: 44px; }
.shop-filter { display: flex; gap: 6px; margin-bottom: 10px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.shop-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px 10px; background: #fff; color: var(--ink); border: 3px solid var(--line); box-shadow: 0 3px 0 var(--line); border-radius: 16px; min-height: 160px; font-weight: 700; }
.shop-item .av { pointer-events: none; }
.shop-item.wearing { border-color: var(--good); background: #e9f7f0; }
.shop-item.trying { border-color: #f2b400; background: #fff7d6; }
.shop-item .name { font-size: .88rem; line-height: 1.15; text-align: center; }
.shop-item .price { font-size: .9rem; font-weight: 900; }
.shop-item .price.free { color: var(--good); }
.shop-item .price.owned { color: var(--brand); }
.shop-item .price.dear { color: var(--ink-soft); }
.shop-item .tag { position: absolute; top: 6px; right: 6px; font-size: 1rem; }
.shop-swatch { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.shop-pic { width: 96px; height: 96px; object-fit: contain; border-radius: 12px; }
.shop-pic.bg { object-fit: cover; }

/* Avatars in lists */
.who-avatar { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; font-weight: 800; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 3px 12px 3px 3px; }
.who-avatar:hover { border-color: var(--brand); }
.names .av { margin-right: 6px; }

@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .shop-me { position: static; }
}
/* "My avatar" link styled like the home page tabs */
a.tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 1rem; }
