:root { --coin: #f6c453; }

.user-chip.static { cursor: default; }
.coin-pill { display: flex; align-items: center; gap: 5px; background: rgba(246, 196, 83, .12); border-radius: 8px; padding: 3px 9px 3px 7px; margin-left: 2px; }
.coin-pill .ms { font-size: 16px; color: var(--coin); }
.coin-pill .mono { font-size: 13px; font-weight: 700; color: var(--coin); }

.store {
  flex: 1; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); align-items: start;
  gap: 24px; padding: 24px clamp(16px, 4vw, 48px) 40px; max-width: 1400px; width: 100%; margin: 0 auto;
}
.store-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; container-type: inline-size; }
.side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.side-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.side-card h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.side-card h2 .ms { color: var(--coin); font-size: 20px; }

.store-head {
  padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(246, 196, 83, .1), rgba(246, 196, 83, 0) 60%), var(--card);
  border-color: rgba(246, 196, 83, .25);
}
.sh-text h1 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.sh-text h1 .ms { font-size: 28px; color: var(--coin); }
.sh-text p { margin: 0; font-size: 14px; color: var(--muted); max-width: 54ch; }
.sh-text b { color: var(--coin); }
.sh-balance { display: flex; align-items: center; gap: 12px; background: var(--inner); border: 1px solid rgba(246, 196, 83, .3); border-radius: 14px; padding: 12px 18px; }
.sh-balance .ms { font-size: 30px; color: var(--coin); }
.sh-balance > div { display: flex; flex-direction: column; }
.sh-balance .v { font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--coin); }
.sh-balance .k { font-size: 12px; font-weight: 600; color: var(--muted-2); }

.item-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 18px; }
.item { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; animation: hjCardIn .35s ease both; }
.item.maxed { opacity: .65; }
.item-head { display: flex; align-items: flex-start; gap: 12px; }
.item-tile { width: 46px; height: 46px; flex: none; border-radius: 13px; background: rgba(246, 196, 83, .12); display: flex; align-items: center; justify-content: center; color: var(--coin); }
.item-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.item-id b { font-size: 15px; font-weight: 800; }
.item-desc { font-size: 12px; color: var(--muted-2); line-height: 1.45; }
.own-badge { flex: none; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--coin); background: rgba(246, 196, 83, .12); border-radius: 999px; padding: 3px 9px; }
.item-effect { display: flex; align-items: center; gap: 8px; background: var(--inner); border-radius: 10px; padding: 9px 12px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.item-effect .ms { color: var(--accent); flex: none; }
.item-buy { display: flex; align-items: center; gap: 12px; }
.item-buy .price { display: flex; align-items: center; gap: 6px; background: var(--inner); border-radius: 10px; padding: 9px 12px; flex: none; }
.item-buy .price .ms { font-size: 18px; color: var(--coin); }
.item-buy .price .mono { font-size: 15px; font-weight: 800; color: var(--coin); }
.item-buy .btn { flex: 1; justify-content: center; }
.item-buy .btn[disabled] { opacity: .45; cursor: default; }

.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.info-list li { display: flex; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.info-list .ms { color: var(--coin); font-size: 18px; flex: none; margin-top: 1px; }

.perk-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--inner); border-radius: 12px; padding: 12px 14px; }
.perk-box .k { font-size: 12px; font-weight: 600; color: var(--muted-2); }
.perk-box .v { font-size: 20px; font-weight: 800; color: var(--coin); }
.owned-list { display: flex; flex-direction: column; gap: 6px; }
.owned-list .empty { font-size: 13px; color: var(--muted-2); }
.owned-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 13px; }
.owned-row .ms { color: var(--muted); font-size: 18px; }
.owned-row .o-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-weight: 600; }
.owned-row .o-n { font-weight: 700; color: var(--coin); }

@media (max-width: 1000px) {
  .store { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .store-head { padding: 18px; }
  .sh-balance { width: 100%; }
  .user-chip.static .uname { display: none; }
}

.supreme {
  position: relative; overflow: hidden; isolation: isolate; padding: 26px 28px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(220px, 250px); align-items: center; gap: 24px;
  border: 1px solid rgba(246, 196, 83, .5);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(246, 196, 83, .2), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(181, 156, 245, .16), transparent 60%),
    linear-gradient(135deg, #2c2a26, #24252c 60%, #262531);
  box-shadow: 0 0 0 1px rgba(246, 196, 83, .08) inset, 0 18px 50px rgba(0, 0, 0, .35), 0 0 60px rgba(246, 196, 83, .07);
}
.sup-shine {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 233, 171, .09) 50%, transparent 65%);
  background-size: 250% 100%; animation: hjSupShine 6s ease-in-out infinite;
}
@keyframes hjSupShine { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }
.sup-emblem {
  width: 76px; height: 76px; border-radius: 22px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #ffe39a, #f6c453 45%, #c98a2a); color: #3a2a06;
  box-shadow: 0 10px 30px rgba(246, 196, 83, .35), 0 0 0 4px rgba(246, 196, 83, .12);
}
.sup-emblem .ms { font-size: 42px; }
.sup-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sup-tag {
  align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #2a2008; background: linear-gradient(90deg, #f6c453, #ffe9ab, #f6c453); background-size: 200% 100%;
  border-radius: 999px; padding: 4px 12px; animation: hjShine 3s linear infinite;
}
.supreme h2 {
  margin: 2px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
  background: linear-gradient(90deg, #fff3c8, #f6c453 55%, #ffe39a); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.supreme p { margin: 0; font-size: 14px; color: var(--muted); max-width: 56ch; }
.sup-perks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.sup-perks li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .05); border-radius: 12px; padding: 8px 12px 8px 8px; }
.sup-perks .pi { width: 30px; height: 30px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(246, 196, 83, .14); color: var(--coin); }
.sup-perks .pi .ms { font-size: 18px; }
.sup-side { display: flex; flex-direction: column; gap: 10px; }
.sup-price { display: flex; flex-direction: column; gap: 2px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(246, 196, 83, .28); border-radius: 16px; padding: 14px 16px; }
.sup-amount { display: flex; align-items: center; gap: 8px; }
.sup-amount .ms { font-size: 26px; color: var(--coin); }
.sup-amount .mono { font-size: 30px; font-weight: 800; color: var(--coin); line-height: 1.05; }
.sup-amount .u { font-size: 15px; font-weight: 700; color: var(--green); }
.sup-price .k { font-size: 12px; font-weight: 600; color: var(--muted-2); }
.sup-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 8px; }
.sup-bar > div { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #8fe3a8, #c8f5d6); }
.sup-btn {
  width: 100%; border: none; border-radius: 12px; padding: 13px 16px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 800; color: #2a2008;
  background: linear-gradient(135deg, #ffe39a, #f6c453 50%, #e0a83a);
  box-shadow: 0 8px 22px rgba(246, 196, 83, .28); transition: transform .12s, box-shadow .12s, filter .12s;
}
.sup-btn:hover:not([disabled]) { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(246, 196, 83, .38); filter: brightness(1.04); }
.sup-btn[disabled] { cursor: default; color: var(--muted); background: rgba(255, 255, 255, .06); box-shadow: none; }
.sup-note { font-size: 12px; font-weight: 600; color: var(--muted-2); text-align: center; }
.supreme.on { border-color: rgba(143, 227, 168, .5); }
.supreme.on .sup-tag { background: linear-gradient(90deg, #8fe3a8, #d8ffe6, #8fe3a8); background-size: 200% 100%; color: #10311d; }
.supreme.on .sup-active { border-color: rgba(143, 227, 168, .35); }
.supreme.on .sup-active .mono { color: var(--green); }

.store-sections { display: flex; flex-direction: column; gap: 32px; }
.store-section { display: flex; flex-direction: column; gap: 14px; }
.sec-head { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sec-head .ms { color: var(--coin); }
.sec-head .n { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--dim); }
.cat-emoji { font-size: 22px; line-height: 1; }

.item-buy .price .old { color: var(--dim); font-size: 12px; font-weight: 600; text-decoration-thickness: 1px; }

@container (max-width: 820px) {
  .supreme { grid-template-columns: auto minmax(0, 1fr); padding: 22px 22px; row-gap: 18px; }
  .sup-side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .sup-btn { height: 100%; }
  .sup-note { grid-column: 1 / -1; }
}
@container (max-width: 520px) {
  .supreme { grid-template-columns: 1fr; padding: 20px 18px; gap: 14px; }
  .sup-side { grid-template-columns: 1fr; }
  .sup-btn { height: auto; }
  .sup-emblem { width: 54px; height: 54px; border-radius: 16px; justify-self: start; }
  .sup-emblem .ms { font-size: 30px; }
  .supreme h2 { font-size: 23px; }
  .sup-perks { grid-template-columns: 1fr; }
}
