/* Infinimix's Shop (14/11, static/shop.js + server/shop.py): fixed prices in coins and Mix Tokens, nothing random.
   Also the things it sells: profile backgrounds and avatar frames, card backs (html[data-cback]). */

/* ------------------------------------------------------------------ the page */
.sh-page { padding-bottom: 6px; }
.sh-top { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 10px; }
.sh-wallet { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-wallet > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--panel);
  border: 1px solid var(--line); font: 700 15px Fredoka, sans-serif; color: var(--text); }
.sh-vipw, .sh-vip { font: 800 10px Nunito, sans-serif; letter-spacing: 1px; color: #3a2400; font-style: normal;
  background: linear-gradient(90deg, #ffe27a, #ffb627); box-shadow: 0 2px 6px rgba(60, 30, 0, .25); }
.sh-wallet > .sh-vipw { padding: 6px 12px; font-size: 11px; border: 0; }
.sh-tabs { position: sticky; top: 62px; z-index: 3; margin: 0 -2px 4px; padding: 6px 2px; background: var(--bg); flex-wrap: nowrap; overflow-x: auto; }
.sh-tabs .chip { cursor: pointer; font: 700 14px Fredoka, sans-serif; }
.sh-h { display: flex; flex-direction: column; gap: 2px; margin: 18px 2px 8px; }
.sh-h h2 { margin: 0; font-size: 18px; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.sh-grid.one { grid-template-columns: 1fr; }
.sh-it { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 18px; background: var(--panel);
  border: 1px solid var(--line); box-shadow: var(--soft, 0 4px 14px rgba(0, 0, 0, .25)); }
.sh-it.on { border-color: var(--good); box-shadow: inset 0 0 0 1px var(--good), var(--soft, 0 4px 14px rgba(0, 0, 0, .25)); }
.sh-it.got { animation: shgot .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes shgot { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: none; } }
.sh-vip { position: absolute; z-index: 2; top: 10px; left: -3px; padding: 2px 10px 2px 8px; border-radius: 0 99px 99px 0; }
.sh-check { position: absolute; z-index: 2; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--good); color: #052616; font: 800 12px Nunito, sans-serif; font-style: normal; box-shadow: 0 0 0 2px var(--panel); }
.sh-prev { display: grid; place-items: center; width: 100%; height: 98px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: linear-gradient(160deg, #2a2266, #17123c); color: var(--text); font: inherit; }
html.light .sh-prev { background: linear-gradient(160deg, #efe8ff, #ffe8f4); }
.k-slot .sh-prev { height: 110px; }
.sh-nm { font: 600 15px/1.15 Fredoka, sans-serif; padding: 0 2px; }
.sh-st { margin-top: -4px; padding: 0 2px; color: var(--muted); font-weight: 800; font-size: 11.5px; }
.sh-act { margin-top: auto; }
.sh-act .btn { white-space: nowrap; }
.sh-c, .sh-t { display: inline-flex; align-items: center; gap: 3px; }
.sh-t .tok { text-shadow: none; }
.btn.good .sh-t .tok, .btn.good .sh-t { color: #063b2a; }
.sh-plus { margin: 0 4px; opacity: .7; }
.sh-need { display: block; margin-top: 4px; text-align: center; color: var(--bad); font-weight: 800; font-size: 11px; }
.sh-conf p { margin: 0 0 6px; color: var(--muted); line-height: 1.3; }
.sh-qty { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 6px; }
.sh-qty button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  font: 700 18px Fredoka, sans-serif; cursor: pointer; }
.sh-qty button:disabled { opacity: .4; cursor: default; }
.sh-qty b { min-width: 24px; text-align: center; font: 700 20px Fredoka, sans-serif; }
.sh-cbtn { display: flex; flex-direction: column-reverse; gap: 6px; }
.sh-foot { margin: 22px 0 0; text-align: center; }
.sh-look { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 6px 0 2px; }
.sh-look .pcard { width: min(100%, 360px); }
.sh-look p { margin: 0; text-align: center; }

/* previews */
.sh-bnp { width: 100%; height: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr 1fr; column-gap: 9px; align-items: center;
  padding: 0 14px; border-radius: 14px; border: 0; cursor: pointer; }
.sh-bnp .pc-av { grid-row: span 2; width: 42px; height: 42px; font-size: 19px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--acc, #a470ff); }
.sh-bnp i { height: 8px; width: 80%; border-radius: 4px; background: rgba(255, 255, 255, .88); align-self: end; margin-bottom: 3px; }
.sh-bnp i + i { width: 50%; opacity: .6; align-self: start; margin: 3px 0 0; }
.sh-afp { --afp: 9px; --aft: 6px; }
.sh-afp .pc-av, .sh-accp .pc-av { width: 54px; height: 54px; font-size: 24px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--acc, #a470ff); }
.sh-tip { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(160deg, #30268c, #6828a0 55%, #963070); }
.sh-accp { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.sh-accp .pc-av { width: 44px; height: 44px; font-size: 20px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--c); }
.sh-accp .pc-title { padding: 1px 10px; font-size: 11px; }
.sh-cb { width: 56px; cursor: pointer; }
.sh-sum { display: flex; align-items: center; }
.sh-scard { width: 36px; height: 50px; margin-left: -12px; border-radius: 7px; border: 2px solid #fff; display: grid; place-items: center;
  background: linear-gradient(160deg, #3dd6ff, #a470ff 55%, #ff4fa3); box-shadow: 0 4px 10px rgba(30, 10, 80, .35); transform: rotate(-8deg); }
.sh-scard:first-child { margin-left: 0; }
.sh-scard:nth-child(2) { transform: rotate(2deg) translateY(-4px); } .sh-scard:nth-child(3) { transform: rotate(11deg); }
.sh-scard i { font: 700 20px Fredoka, sans-serif; color: #fff; font-style: normal; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
  background: var(--btngrad, linear-gradient(100deg, #ff8a3d, #ff4fa3)); color: #fff; font: 700 12px Fredoka, sans-serif; }

/* ------------------------------------------------------------------ profile backgrounds sold in the Shop */
html body :is(.pcard, .lk-b).bn-galaxy { background: radial-gradient(circle, rgba(255, 255, 255, .95) 0 1px, transparent 1.7px) 0 0 / 46px 38px,
  radial-gradient(circle, rgba(200, 220, 255, .7) 0 .8px, transparent 1.4px) 17px 11px / 31px 27px,
  radial-gradient(circle at 75% 18%, rgba(140, 100, 255, .75), transparent 45%), radial-gradient(circle at 18% 85%, rgba(230, 70, 170, .6), transparent 42%), #120c38; }
html body :is(.pcard, .lk-b).bn-lagoon { background: repeating-linear-gradient(100deg, rgba(255, 255, 255, .12) 0 18px, transparent 18px 46px),
  radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, .45), transparent 55%), linear-gradient(180deg, #4fe3d2, #1aa7c2 45%, #13579a); }
html body :is(.pcard, .lk-b).bn-lava { background: radial-gradient(ellipse at 30% 115%, #ffd23d, #ff6a1f 28%, transparent 58%),
  radial-gradient(ellipse at 85% 110%, #ff8a3d, transparent 45%), linear-gradient(180deg, #24090f, #561213 60%, #8a2110); }
html body :is(.pcard, .lk-b).bn-candy { background: radial-gradient(circle at 18% 26%, rgba(255, 255, 255, .85) 0 9%, transparent 10%),
  radial-gradient(circle at 82% 66%, rgba(255, 255, 255, .7) 0 8%, transparent 9%), radial-gradient(circle at 60% 12%, rgba(255, 255, 255, .6) 0 6%, transparent 7%),
  linear-gradient(160deg, #ff7cbd, #b88bff 50%, #4fd1b8); }
html body :is(.pcard, .lk-b).bn-neon { background: linear-gradient(transparent calc(100% - 1px), rgba(255, 79, 163, .55) 0) 0 0 / 100% 24px,
  linear-gradient(90deg, transparent calc(100% - 1px), rgba(61, 214, 255, .45) 0) 0 0 / 24px 100%, linear-gradient(180deg, #0e0828, #2b0f4f 60%, #571068); }
html body :is(.pcard, .lk-b).bn-infinity { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M13 4C6 4 3 8 3 12s3 8 10 8c8 0 14-16 22-16 7 0 10 4 10 8s-3 8-10 8C27 20 21 4 13 4z' fill='none' stroke='%23ffd23d' stroke-width='2.2' opacity='.42'/%3E%3C/svg%3E") 0 0 / 56px 28px,
  radial-gradient(circle at 50% 0, #7a4be0, #2a145e 65%, #140838); box-shadow: inset 0 0 0 2px #ffd23d; }

/* ------------------------------------------------------------------ avatar frames (profileHead wraps .pc-av in .pc-af) */
.pc-af { --afp: 14px; --aft: 8px; position: relative; display: inline-grid; place-items: center; padding: var(--afp); border-radius: 50%; isolation: isolate; }
.pc-af::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; padding: var(--aft); background: var(--afg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.pc-af::after { position: absolute; z-index: 2; font-size: calc(var(--afp) * 1.35); line-height: 1; font-style: normal; text-shadow: none; pointer-events: none; }
.lk-card .pc-af { --afp: 11px; --aft: 7px; }
.af-spark { --afg: conic-gradient(#3dd6ff, #d4fbff, #3dd6ff, #1f7bff, #8ef0ff, #3dd6ff); box-shadow: 0 0 18px rgba(61, 214, 255, .55); }
.af-spark::after { content: "✦"; top: 2%; right: 4%; color: #e6fdff; filter: drop-shadow(0 0 4px #3dd6ff); animation: aftwinkle 1.8s ease-in-out infinite; }
.af-ember { --afg: conic-gradient(from 180deg, #ffd23d, #ff8a3d, #ff3d3d, #ff8a3d, #ffd23d, #ff8a3d, #ff3d3d, #ffd23d); box-shadow: 0 0 18px rgba(255, 120, 40, .6);
  animation: afember 1.6s ease-in-out infinite alternate; }
.af-bloom { --afg: repeating-conic-gradient(#ff8fc8 0 12deg, #ffd6ec 12deg 24deg); box-shadow: 0 0 14px rgba(255, 120, 190, .45); }
.af-bloom::after { content: "✿"; top: 0; right: 6%; color: #ff4fa3; filter: drop-shadow(0 1px 1px rgba(120, 0, 60, .4)); }
.af-frost { --afg: conic-gradient(#ffffff, #9be7ff, #e8fbff, #6cc8ff, #ffffff, #b8eeff, #ffffff); box-shadow: 0 0 16px rgba(160, 230, 255, .6); }
.af-frost::after { content: ""; top: 1%; right: 5%; width: 1.1em; height: 1.1em; background: var(--gi-snow) center / contain no-repeat; filter: drop-shadow(0 0 3px #6cc8ff); }
.af-prism { --afg: conic-gradient(#ff5e7e, #ffb84d, #ffe95c, #6bf0a0, #4dd8ff, #8f7bff, #ff6bd5, #ff5e7e); box-shadow: 0 0 18px rgba(200, 140, 255, .5); }
.af-prism::before { animation: afspin 6s linear infinite; }
.af-crown { --afg: conic-gradient(#fff3b0, #ffd23d, #e09a00, #ffd23d, #fff3b0, #e09a00, #ffd23d, #fff3b0); box-shadow: 0 0 20px rgba(255, 200, 60, .65); }
.af-crown::after { content: ""; top: calc(var(--afp) * -1.15); left: 50%; width: 46%; aspect-ratio: 40 / 26; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 26'%3E%3Cpath d='M3 21L1 6l10 7 9-11 9 11 10-7-2 15z' fill='%23ffd23d' stroke='%23a86b00' stroke-width='1.4' stroke-linejoin='round'/%3E%3Ccircle cx='20' cy='3.2' r='2.4' fill='%23ff4fa3'/%3E%3Ccircle cx='1.6' cy='5.6' r='1.6' fill='%233dd6ff'/%3E%3Ccircle cx='38.4' cy='5.6' r='1.6' fill='%233dd6ff'/%3E%3Crect x='3' y='20' width='34' height='5' rx='1.6' fill='%23e09a00'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(60, 30, 0, .4)); }
.pcard .pc-af.af-crown { margin-top: 12px; }
/* 14/11: the VIP plan's ring */
.af-vip { --afg: conic-gradient(#a470ff, #ff4fa3, #ffd23d, #3dd6ff, #a470ff); box-shadow: 0 0 20px rgba(164, 112, 255, .6); }
.af-vip::before { animation: afspin 9s linear infinite; }
.af-vip::after { content: "Infini+"; top: -2%; right: 0; padding: 1px 6px; border-radius: 99px; font: 800 calc(var(--afp) * .8)/1.4 Nunito, sans-serif;
  color: #fff; background: linear-gradient(90deg, #ff8a3d, #ff4fa3); box-shadow: 0 2px 6px rgba(120, 30, 90, .4); }
@keyframes afspin { to { transform: rotate(1turn); } }
@keyframes aftwinkle { 50% { opacity: .45; transform: scale(.8); } }
@keyframes afember { to { box-shadow: 0 0 26px rgba(255, 90, 30, .8); } }

/* ------------------------------------------------------------------ card backs (your own face-down cards; pastel = default)
   html[data-cback] repaints every .card.back of the player; a preview carries data-cb and only follows its own. */
html[data-cback="midnight"] .card.back:not([data-cb]), .card.back[data-cb="midnight"] {
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0 1px, transparent 1.8px) 0 0 / 23% 17%,
    radial-gradient(circle, rgba(190, 210, 255, .7) 0 .8px, transparent 1.4px) 11% 9% / 31% 23%,
    radial-gradient(circle at 50% 38%, #4c52c8, #1b1660 55%, #080626); }
html[data-cback="ember"] .card.back:not([data-cb]), .card.back[data-cb="ember"] {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .11) 0 5%, transparent 5% 11%),
    radial-gradient(circle at 50% 46%, rgba(255, 230, 140, .8), transparent 42%), linear-gradient(165deg, #ffb347, #ff6a2f 50%, #c2185b); }
html[data-cback="tide"] .card.back:not([data-cb]), .card.back[data-cb="tide"] {
  background: radial-gradient(circle at 50% 100%, transparent 56%, rgba(255, 255, 255, .26) 58% 63%, transparent 65%) 0 0 / 34% 12%,
    linear-gradient(175deg, #a9f6ff, #36b3ff 45%, #2b44c8); }
html[data-cback="meadow"] .card.back:not([data-cb]), .card.back[data-cb="meadow"] {
  background: radial-gradient(ellipse 34% 26% at 50% 50%, rgba(255, 255, 255, .3), transparent 70%) 0 0 / 22% 13%,
    linear-gradient(170deg, #e4ff9e, #6cd67f 45%, #1d8a66); }
html[data-cback="candy"] .card.back:not([data-cb]), .card.back[data-cb="candy"] {
  background: radial-gradient(circle at 50% 49%, rgba(255, 255, 255, .75) 0 16%, transparent 30%),
    repeating-linear-gradient(45deg, #ffb8dd 0 6%, #fff4fb 6% 12%, #b3ecff 12% 18%, #fff4fb 18% 24%); }
html[data-cback="prism"] .card.back:not([data-cb]), .card.back[data-cb="prism"] {
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .6) 48%, transparent 60%) 0 0 / 250% 100%,
    conic-gradient(from 210deg at 50% 49%, #ff6b8b, #ffb84d, #ffe95c, #6bf0a0, #4dd8ff, #8f7bff, #ff6bd5, #ff6b8b);
  animation: cbprism 3.6s linear infinite; }
@keyframes cbprism { from { background-position: 130% 0, 0 0; } to { background-position: -130% 0, 0 0; } }
/* the ∞ lens glows in each back's colour */
html[data-cback="midnight"] .card.back:not([data-cb]) .back-mark, .card.back[data-cb="midnight"] .back-mark { --cbg: rgba(120, 150, 255, .85); }
html[data-cback="ember"] .card.back:not([data-cb]) .back-mark, .card.back[data-cb="ember"] .back-mark { --cbg: rgba(255, 140, 40, .9); }
html[data-cback="tide"] .card.back:not([data-cb]) .back-mark, .card.back[data-cb="tide"] .back-mark { --cbg: rgba(60, 214, 255, .9); }
html[data-cback="meadow"] .card.back:not([data-cb]) .back-mark, .card.back[data-cb="meadow"] .back-mark { --cbg: rgba(150, 255, 150, .85); }
html[data-cback="candy"] .card.back:not([data-cb]) .back-mark, .card.back[data-cb="candy"] .back-mark { --cbg: rgba(255, 110, 190, .85); }
html[data-cback="prism"] .card.back:not([data-cb]) .back-mark, .card.back[data-cb="prism"] .back-mark { --cbg: rgba(255, 255, 255, .95); }
:is(html[data-cback] .card.back:not([data-cb]), .card.back[data-cb]:not([data-cb="pastel"])) .back-mark {
  box-shadow: 0 0 0 1cqw rgba(255, 255, 255, .45), 0 1.5cqw 4cqw rgba(20, 10, 60, .4), 0 0 9cqw var(--cbg, rgba(255, 120, 200, .65)); }
html[data-cback="midnight"] .card.back:not([data-cb]) .back-hint { color: #3b3fae; }
html[data-cback="ember"] .card.back:not([data-cb]) .back-hint { color: #c8401b; }
html[data-cback="tide"] .card.back:not([data-cb]) .back-hint { color: #1f6fd0; }
html[data-cback="meadow"] .card.back:not([data-cb]) .back-hint { color: #1f8a55; }
html[data-cback="candy"] .card.back:not([data-cb]) .back-hint { color: #e0448f; }

/* ------------------------------------------------------------------ the profile editor: the Shop's items locked until bought */
.lk-ac { flex-wrap: wrap; }
.lk-box [data-lock] { position: relative; }
.lk-box :is(.lk-b, .lk-c)[data-lock] { filter: saturate(.55) brightness(.8); }
.lk-box .chip[data-lock] { opacity: .72; padding-right: 26px; }
.lk-box [data-lock]::after { content: ""; position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%;
  background: #2c2650 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 10px no-repeat;
  box-shadow: 0 0 0 2px #fff; }
.lk-box .chip[data-lock]::after { top: 50%; right: 5px; margin-top: -8px; }
.lk-shopnote { display: flex; align-items: center; gap: 8px; margin: -2px 0 10px; padding: 8px 10px; border-radius: 12px; background: var(--panel2);
  border: 1px solid var(--line); font-size: 13px; }
.lk-shopnote svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; vertical-align: -2px; margin-right: 3px; }
.lk-shopnote .coin.sm { margin-right: 2px; }

/* the Shop tile on your own profile */
.sh-ptile { text-decoration: none; }
.sh-ptile svg { width: 19px; height: 19px; fill: none; stroke: #ff8a3d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; margin-right: 6px; }
.sh-ptile b { font: 700 12px Nunito, sans-serif; color: var(--muted); margin-right: 4px; }

@media (prefers-reduced-motion: reduce) {
  .af-prism::before, .af-spark::after, .af-ember, .sh-it.got { animation: none !important; }
  html[data-cback="prism"] .card.back:not([data-cb]), .card.back[data-cb="prism"] { animation: none; }
}

/* ------------------------------------------------------------------ 19/11 the Explorer tab: the outfits on your explorer in 3D
   (static/shop.js renderExplorerTab, heroStage, heroThumbs) */
.shx-show { display: grid; gap: 10px; margin: 6px 0 4px; }
.shx-stage { position: relative; height: min(52vh, 340px); min-height: 250px; border-radius: 22px; overflow: hidden; touch-action: pan-y; scroll-margin-top: 120px;
  background: radial-gradient(120% 80% at 50% 18%, #6a52d6 0%, #33237e 46%, #170f3e 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), 0 12px 30px rgba(20, 10, 60, .3); }
.shx-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(38% 60% at 50% 0%, rgba(255, 255, 255, .24), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, .5) 0 1px, transparent 1.6px) 0 0 / 38px 34px; opacity: .9; }
.hs-cv { position: relative; display: block; touch-action: pan-y; cursor: grab; }
.hs-cv:active { cursor: grabbing; }
.shx-g { position: absolute; z-index: 2; top: 10px; right: 10px; display: flex; gap: 3px; padding: 3px; border-radius: 99px; background: rgba(10, 6, 30, .45); }
.shx-g button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; font-size: 19px; line-height: 1; cursor: pointer; }
.shx-g button.on { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.shx-drag { position: absolute; z-index: 2; left: 12px; bottom: 10px; color: rgba(255, 255, 255, .78); font: 800 11px Nunito, sans-serif; pointer-events: none; }
.shx-panel { padding: 12px 14px 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--soft, none); }
.shx-ph { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shx-ph b { font: 700 21px Fredoka, sans-serif; }
.shx-panel p { margin: 4px 0 10px; color: var(--muted); line-height: 1.35; }
.shx-tier { display: inline-block; padding: 2px 9px; border-radius: 99px; font: 800 10.5px Nunito, sans-serif; font-style: normal; letter-spacing: .5px;
  text-transform: uppercase; color: #fff; background: var(--tc, #8f9fba); text-shadow: none; }
.shx-tier[style*="ff9d1c"] { background: linear-gradient(90deg, #ffc93d, #ff8a3d 55%, #ff4fa3); }
.shx-conf { display: flex; gap: 8px; }
.shx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.shx-it { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 6px 8px; border-radius: 16px;
  border: 2px solid transparent; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: inherit; cursor: pointer; }
.shx-it.sel { border-color: var(--tc); }
.shx-pic { position: relative; width: 100%; aspect-ratio: 5 / 6; border-radius: 12px; overflow: hidden; background: #2a2266;
  background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--tc) 70%, #fff), color-mix(in srgb, var(--tc) 45%, #160f3a) 85%); }
.shx-grid.acc .shx-pic { aspect-ratio: 1; }
.shx-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shx-pic img:not([src]), .shx-pic img[src=""] { visibility: hidden; }
.shx-lock { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 6, 30, .6); }
.shx-lock svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.shx-nm { font: 600 14px/1.1 Fredoka, sans-serif; text-align: center; }
.shx-it .shx-tier { font-size: 9px; padding: 1px 7px; }
.shx-price { font: 800 12.5px Nunito, sans-serif; }
.shx-on { color: var(--good); font: 800 12px Nunito, sans-serif; }
.shx-own { color: var(--muted); font: 800 12px Nunito, sans-serif; }
.shx-poselink { margin-top: 18px; text-decoration: none; }

/* ------------------------------------------------------------------ 19/11 the look picker (infiniworld.js lookPicker): outfit pictures,
   a lock and the price on the ones sold in the Shop, your accessories */
.look-pick .lp-view { position: relative; }
.look-pick .lp-view .hs-cv { position: absolute; inset: 0; }
.look-pick .lp-skins { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.look-pick .lp-skins button { gap: 2px; padding: 4px 3px 6px; font-size: 11.5px; line-height: 1.1; }
.lp-pic { display: block; width: 100%; aspect-ratio: 5 / 6; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #7a62e6, #241a5a 85%); }
.lp-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lp-pic img:not([src]) { visibility: hidden; }
.lp-skins button.locked .lp-pic { filter: saturate(.7) brightness(.82); }
.lp-price { display: inline-flex; align-items: center; gap: 2px; font: 800 10.5px Nunito, sans-serif; color: var(--muted); }
.lp-price .coin.sm { margin: 0 1px; }
.lp-lbl { font: 800 12px Nunito, sans-serif; color: var(--muted); }
.lp-acc { flex-wrap: wrap; }
.lp-acc .chip { cursor: pointer; }
.lp-acc .chip.on { background: var(--btngrad, linear-gradient(100deg, #5a9cf6, #9259f2 45%, #ef5aae)); color: #fff; border-color: transparent; }

/* ------------------------------------------------------------------ 19/11 the profile: your explorer in 3D in the pose you pick
   (app.js viewProfile; the stage is shop.js heroStage) */
.hp { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 2px 0 16px; }
.hp-left, .hp-right { display: contents; }
.hp > *, .hp-left > *, .hp-right > * { width: min(100%, 640px); }
.hp .hp-card.pcard { width: min(100%, 460px); padding: 0 14px 12px; gap: 8px; outline: none; overflow: hidden; }
.hp-stage { position: relative; width: calc(100% + 28px); margin: 0 -14px; height: clamp(270px, 74vw, 340px); touch-action: pan-y; cursor: pointer;
  background: radial-gradient(55% 42% at 50% 46%, rgba(255, 255, 255, .3), transparent 72%); }
.hp-stage .hs-cv { position: absolute; inset: 0; }
.hp-posetag { position: absolute; z-index: 2; left: 12px; bottom: 8px; padding: 3px 10px; border-radius: 99px; background: rgba(10, 6, 30, .5); color: #fff;
  font: 800 12px Nunito, sans-serif; text-shadow: none; pointer-events: none; }
.hp-edit { position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; background: rgba(10, 6, 30, .45);
  font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 4px 10px rgba(20, 10, 60, .3); }
.hp-nogl::after { content: ""; position: absolute; inset: 0; background: var(--gi-person) center / 96px no-repeat; opacity: .9; }
.hp-id { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.hp-id .pc-av { width: 56px; height: 56px; font-size: 26px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--acc, #a470ff), 0 6px 14px rgba(30, 15, 80, .3); flex: none; }
.hp-id .pc-af { --afp: 8px; --aft: 5px; flex: none; }
.hp-id .pc-af.af-crown { margin-top: 10px; }
.hp-nm { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.hp-nm h1 { margin: 0; font-size: 26px; line-height: 1.05; overflow-wrap: anywhere; }
.hp-card .pc-feats { justify-content: flex-start; width: 100%; }
.hp-lvs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.hp-lv { display: flex; flex-direction: column; gap: 5px; padding: 7px 9px 8px; border-radius: 12px; background: rgba(255, 255, 255, .16); text-align: left;
  font: 800 11.5px Nunito, sans-serif; }
.hp-lv span i { font-style: normal; margin-right: 4px; }
.hp-lv b { font: 700 14px Fredoka, sans-serif; }
.hp-lv em { display: block; height: 6px; border-radius: 99px; background: rgba(0, 0, 0, .2); overflow: hidden; }
.hp-lv em i { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(90deg, #3dd6ff, var(--acc, #a470ff), #ff4fa3); }
.hp-card .pc-stats { margin-top: 0; }
.hp-card .pc-stats span { font-size: 10px; }
.hp-card .pc-stats b { font-size: 17px; }
.hp-card .pc-since { font-size: 11px; opacity: .85; }
html body .pcard.hp-card:not(.bn-cardback) .hp-lv { background: rgba(10, 6, 30, .35); color: #fff; }
html.light .hp-lv { background: rgba(255, 255, 255, .62); }
html.light .hp-lv em { background: rgba(60, 40, 120, .14); }
.hp-poses { display: flex; flex-direction: column; gap: 4px; }
.hp-pl { font: 800 12px Nunito, sans-serif; color: var(--muted); padding: 0 2px; }
.hp-pscroll { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; }
.hp-pscroll button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 66px; padding: 6px 8px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--panel); color: var(--text); font: 800 11px Nunito, sans-serif; cursor: pointer; scroll-snap-align: start; }
.hp-pscroll button i { font-style: normal; font-size: 21px; line-height: 1.1; }
.hp-pscroll button.on { border-color: transparent; color: #fff; background: var(--btngrad, linear-gradient(100deg, #5a9cf6, #9259f2 45%, #ef5aae));
  box-shadow: 0 4px 12px rgba(146, 89, 242, .35); }
.hp-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hp-acts .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.hp-gear { padding-left: 11px; padding-right: 11px; }
.hp .pc-medals { margin: 2px auto 0; width: min(100%, 640px); }
.hp-tabs { justify-content: center; margin-top: 4px; }
.hp-tabs .chip { cursor: pointer; }
.hp-h { margin: 14px 2px 8px; align-items: baseline; }
.hp-h h2 { margin: 0; font-size: 18px; }
.hp-hint { text-align: center; margin: 6px 0 0; }
.hp-wall { justify-content: flex-start; padding: 2px; }
.hp .cbadges, .hp .badges { margin-top: 12px; }
.hp-players { margin-top: 6px; }
.hp-players summary { cursor: pointer; padding: 11px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); font: 700 15px Fredoka, sans-serif; list-style: none; }
.hp-players summary::-webkit-details-marker { display: none; }
.hp-players summary::after { content: "›"; float: right; transition: transform .2s; }
.hp-players[open] summary { margin-bottom: 8px; }
.hp-players[open] summary::after { transform: rotate(90deg); }

/* 20/11 (owner: "on a computer the profile should fill the space better; Found first like the Home's carousel, more
   compact; the same filters as your cards in other players' cards"): on a wide screen the profile is two columns (the
   explorer's card, the poses and the buttons on the left, sticky; the showcase, Found first and the cards on the right) */
@media (min-width: 1100px) {
  .hp { display: grid; grid-template-columns: minmax(360px, 430px) minmax(0, 1fr); align-items: start; gap: 18px 28px; max-width: 1360px; margin: 4px auto 18px; }
  .hp-left { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 74px; }
  .hp-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .hp > .hp-left, .hp > .hp-right { width: auto; }
  .hp-left > *, .hp-right > * { width: 100%; }
  .hp .hp-card.pcard { width: 100%; }
  .hp .pc-medals { width: 100%; }
  .hp-right .hp-tabs { justify-content: flex-start; margin-top: 0; }
  .hp-right .hp-h { margin-top: 6px; }
  .hp-right .showcase { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
/* Found first: the Home's carousel of cards, a little smaller, with arrows on a computer */
.hp-rail { gap: 8px; padding: 2px 2px 8px; }
.hp-rail .ds-mini { width: 86px; color: inherit; }
.hp-rail .ds-mini-by { font-size: 10.5px; opacity: .75; }
.hp-rnav { display: inline-flex; align-items: center; gap: 6px; }
.hp-rb { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: inherit; font: 700 18px/1 system-ui, sans-serif;
  cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; }
.hp-rb:hover { filter: brightness(1.15); }
@media (max-width: 699px) { .hp-rb { display: none; } }
/* the card browser (other players' cards) */
.cb-note { margin: 8px 2px; }
.cb-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 6px; }
.cb-bar .cb-q { flex: 1 1 200px; min-width: 0; margin: 0; }
.cb-bar .cb-sort { flex: none; }
.cb-chips, .cb-els { margin: 4px 0; }
.cb-grid { margin-top: 8px; }
/* a card sorted by one stat shows that stat's value on it */
.ccell { position: relative; }
.st-chip { position: absolute; z-index: 4; top: 6px; left: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 4px; border-radius: 99px;
  background: rgba(16, 8, 40, .82); color: #fff; font: 800 11px Nunito, sans-serif; box-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 1.5px rgba(255, 255, 255, .55); pointer-events: none; }
.st-chip b { font: 700 12.5px Fredoka, sans-serif; }
.ws-t { position: relative; }
.ws-t .st-chip { top: 2px; left: 2px; font-size: 10px; padding: 1px 6px 1px 3px; }
.ws-filter .ws-sort { flex: none; max-width: 170px; height: 32px; font-size: 12px; }
/* the explorer's face as the picture (icons via shop.js faceAvatars) */
.faced { background: var(--face) center / cover no-repeat, radial-gradient(circle at 50% 30%, #c9b2ff, #8b5cff 55%, #5b33d6) !important; color: transparent !important; }
.fr-page { max-width: 900px; margin: 0 auto; }
/* 20/11 (owner: "custom facial expressions"): the profile's Expression row: each button shows your explorer with that face */
.hp-faces .hpf-ic { display: block; width: 38px; height: 38px; border-radius: 50%; color: transparent; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.hp-faces button.on .hpf-ic { box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(255, 255, 255, .5); }

/* 20/11 (owner: "in the showcase without Infini+ keep the frame only around the 3 cards"): with three slots the frame
   (and its hint) hugs the three cards instead of running the whole width; Infini+'s six keep the full width */
@media (min-width: 1100px) {
  .hp-right .sf-wrap.sf-n3 { width: fit-content; max-width: 100%; }
  .hp-right .sf-n3 .showcase { grid-template-columns: repeat(3, minmax(0, 176px)); }
}
