.mkt-shell .grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 196px)) !important;
  justify-content: start;
}
.card-media { background: #fff; }
.card-media .ph-img { width: 100%; height: 100%; display: grid; place-items: center; background: #fff; }
.bs-body .card-media .pet-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  background: transparent;
}
.card:hover .card-media .pet-img { transform: scale(1.03); }
.feat-media { padding: 18px; }
.feat-art { max-width: 180px; }
.feat-art img { width: 100%; height: auto; object-fit: contain; filter: none; }
.pp-media.hq-shot { background: #fff; box-shadow: var(--shadow-md); aspect-ratio: 1; max-height: 420px; }
.pp-media.hq-shot img { width: 72%; height: 72%; object-fit: contain; }
.mkt-bn-game {
  background:
    radial-gradient(620px 300px at 88% -20%, #1d4ed8 0%, transparent 60%),
    linear-gradient(110deg, #0b1020 0%, #152044 100%);
}
.brand-accent { color: var(--accent); }
@media (max-width: 420px) {
  .brand .brand-accent { display: inline; }
}
.card-terms {
  margin: -2px 0 8px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  color: #475569;
}
.price-soon { color: var(--ink-3); font-size: 15px; }
.hq-field { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.hq-field input {
  height: 52px; border-radius: 14px; border: 1.5px solid var(--line-2); padding: 0 16px;
  font: inherit; font-weight: 650; color: var(--ink); background: #fff;
}
.hq-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-050); }
.rrow.on { background: var(--accent-050); }
.pp-variant input { position: absolute; opacity: 0; pointer-events: none; }
.pp-variant { cursor: pointer; }
.pp-variant.is-off { opacity: .45; cursor: not-allowed; }
.hq-error { margin: 14px 0 0; color: #b42318; font-size: 14px; font-weight: 700; }
.hq-pay { max-width: 1080px; margin: 0 auto; padding: 28px 28px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hq-pay-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.hq-pay-kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.hq-pay h1 { font-size: 34px; margin: 10px 0 8px; }
.hq-pay-lead { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.hq-note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fff8e8; border: 1px solid #f6ddb0; color: #9a6700; font-size: 14px; font-weight: 700; }
@media (max-width: 860px) {
  .hq-pay { grid-template-columns: 1fr; padding: 18px 16px 48px; }
}
.acct-av { overflow: hidden; }
img.acct-av { object-fit: cover; background: #eef2f7; }
.auth-wrap { min-height: 72vh; display: grid; place-items: center; padding: 36px 20px 72px; }
.auth-stage {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.auth-aside {
  padding: 36px 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(280px 180px at 12% 0%, #2563eb 0%, transparent 58%),
    linear-gradient(165deg, #0b1020 0%, #172554 100%);
}
.auth-aside .auth-kicker { color: #93c5fd; }
.auth-aside h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; line-height: 1.15; }
.auth-aside p { margin: 0; color: #cbd5e1; font-size: 14.5px; line-height: 1.55; }
.auth-points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.auth-points li {
  padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.08);
  font-size: 14px; font-weight: 750;
}
.auth-card {
  width: auto;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 32px 28px 24px;
}
.auth-wrap > .auth-card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}
.auth-switch { margin: 16px 0 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; font-weight: 650; }
.auth-switch a { color: var(--accent); font-weight: 800; }
.auth-head { margin-bottom: 14px; }
.auth-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--accent); }
.auth-card h1 { margin: 0; font-size: 32px; letter-spacing: -.03em; line-height: 1.15; }
.auth-lead { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.auth-form { margin: 0; }
.auth-panel {
  display: grid; gap: 12px; padding: 14px;
  border: 1px solid var(--line); border-radius: 18px; background: #f8fafc;
}
.auth-panel .hq-field { margin-top: 0; gap: 6px; font-size: 13px; }
.auth-panel .hq-field input { height: 48px; background: #fff; }
.discord-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; border-radius: 14px; background: #5865f2; color: #fff;
  font-weight: 800; font-size: 15px;
}
.discord-btn:hover { background: #4752c4; }
.auth-or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 14px 0; color: var(--ink-3); font-size: 12px; font-weight: 800; }
.auth-or::before, .auth-or::after { content: ""; height: 1px; background: var(--line); }
.auth-submit { width: 100%; margin-top: 2px; height: 48px; }
a.pp-add { text-decoration: none; }
.auth-hint { min-height: 0; font-size: 12px; font-weight: 750; }
.auth-hint:empty { display: none; }
.auth-hint.is-ok { color: #047857; }
.auth-hint.is-bad { color: #b42318; }
.auth-panel .hq-field input.is-ok { border-color: #10b981; }
.auth-panel .hq-field input.is-bad { border-color: #f04438; }
.auth-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.auth-links:has(.auth-chip:only-child) { grid-template-columns: 1fr; }
.auth-chip {
  display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: #f8fafc; color: var(--ink);
}
.auth-chip span { font-size: 11px; font-weight: 750; color: var(--ink-3); }
.auth-chip strong { font-size: 14px; font-weight: 800; }
.auth-chip-go { background: #eff6ff; border-color: #bfdbfe; }
.auth-chip-go strong { color: var(--accent); }
@media (max-width: 800px) {
  .auth-stage { grid-template-columns: 1fr; }
  .auth-aside { padding: 22px 20px; }
  .auth-aside h2 { font-size: 26px; }
  .auth-card { padding: 22px 18px 18px; }
}
.auth-notice { margin: 0 0 12px; color: #047857; font-size: 14px; font-weight: 750; }
.auth-text-btn { width: 100%; margin-top: 12px; height: 42px; border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 800; cursor: pointer; }
.auth-card-wide { width: min(560px, 100%); }
.hq-field select, .hq-field textarea {
  border-radius: 14px; border: 1.5px solid var(--line-2); padding: 14px 16px;
  font: inherit; font-weight: 650; color: var(--ink); background: #fff;
}
.key-box { margin-top: 18px; padding: 16px; border-radius: 16px; background: #f8fafc; border: 1px solid var(--line); }
.key-value { margin: 8px 0; font-size: 20px; font-weight: 800; letter-spacing: .04em; word-break: break-all; }
.key-note { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; font-weight: 650; }
.stock-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.stock-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; font-size: 14px; font-weight: 700; }
.loader-card {
  margin-top: 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #fff, #f8fafc);
}
.loader-mark {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: #0f172a; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.loader-kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.loader-copy h2 { margin: 2px 0 4px; font-size: 16px; word-break: keep-all; }
.loader-copy p { margin: 0; color: var(--ink-2); font-size: 13px; font-weight: 650; word-break: break-all; }
.loader-note { margin-top: 4px !important; word-break: keep-all; }
.pp-buy .loader-card, .hq-pay-card .loader-card { grid-template-columns: auto 1fr; }
.pp-buy .loader-btn, .pp-buy .loader-lock, .hq-pay-card .loader-btn, .hq-pay-card .loader-lock { grid-column: 1 / -1; }
.loader-btn, .loader-lock {
  height: 42px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; white-space: nowrap;
}
.loader-btn { background: var(--accent); color: #fff; }
.loader-lock { background: #eef2f7; color: var(--ink-3); }
@media (max-width: 720px) {
  .loader-card { grid-template-columns: auto 1fr; }
  .loader-btn, .loader-lock { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .acct-meta { display: none; }
  .hdr-join { padding: 0 12px; }
}
.hq-cart {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 11px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 800;
}
.hq-cart b {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 11px;
}
.hq-flash {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 40; padding: 12px 16px; border-radius: 999px; background: #0f172a; color: #fff;
  font-size: 14px; font-weight: 800; box-shadow: var(--shadow-md);
}
.hq-flash.hide { opacity: 0; transition: opacity .25s ease; }
.hq-families { display: flex; flex-direction: column; gap: 28px; }
.hq-family[hidden] { display: none !important; }
.hq-family-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.hq-family-mark {
  width: 44px; height: 44px; flex: none; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; background: #111318;
}
.hq-family-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(2.55); }
.hq-family-head strong { display: block; font-size: 18px; letter-spacing: -.03em; line-height: 1.2; }
.hq-family-head span span { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; font-weight: 700; }
.hq-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.hq-sku {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: #16181d; color: #fff; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.06);
}
.hq-sku[hidden] { display: none !important; }
.hq-sku-shot {
  position: relative; display: block; aspect-ratio: 1 / 1.08; overflow: hidden; background: #0c0e12;
}
.hq-sku-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; transform: scale(2.55); }
.hq-sku-term {
  position: absolute; left: 12px; bottom: 12px;
  padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff;
  font-size: 13px; font-weight: 800;
}
.hq-sku-body { display: flex; flex-direction: column; gap: 3px; padding: 14px; }
.hq-sku-name { color: #fff; font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.hq-sku-cat { color: #9aa3b2; font-size: 13px; font-weight: 700; }
.hq-sku-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.hq-sku-row form { margin: 0; }
.hq-sku-price { margin-right: auto; font-size: 18px; letter-spacing: -.03em; white-space: nowrap; }
.hq-sku.is-soon .hq-sku-price { color: #8b93a3; font-size: 15px; }
.hq-sku-bag, .hq-sku-buy {
  height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 13px; font-weight: 800; white-space: nowrap;
}
.hq-sku-bag {
  padding: 0 12px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #fff; cursor: pointer;
}
.hq-sku.is-in .hq-sku-bag { background: #1d4ed8; border-color: #1d4ed8; }
.hq-sku-bag:disabled { opacity: .35; cursor: not-allowed; }
.hq-sku-buy { padding: 0 14px; background: var(--accent); color: #fff; }
.hq-sku-buy.is-off { background: #2a2e36; color: #8b93a3; }
.hq-sku:hover { transform: translateY(-2px); }
@media (max-width: 720px) {
  .hq-family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hq-sku-name { font-size: 13px; }
  .hq-sku-bag span, .hq-sku-bag { font-size: 12px; }
  .hq-sku-price { font-size: 14px; }
}
.market-buy-form { display: flex; flex-direction: column; }
.hq-cart-add {
  width: 100%; height: 48px; margin-top: 12px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-weight: 800; cursor: pointer;
}
.hq-cart-add:disabled { opacity: .5; cursor: not-allowed; }
.hq-cart-page { max-width: 760px; margin: 0 auto; padding: 28px 28px 64px; }
.hq-cart-page h1 { font-size: 34px; margin: 8px 0 18px; }
.hq-cart-empty { color: var(--ink-2); font-weight: 700; }
.hq-cart-list { display: grid; gap: 10px; }
.hq-cart-row {
  display: grid; grid-template-columns: 52px 1fr auto auto; gap: 12px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.hq-cart-row img { width: 52px; height: 52px; object-fit: contain; }
.hq-cart-row span, .hq-cart-row em { display: block; color: var(--ink-3); font-size: 12px; font-style: normal; font-weight: 800; }
.hq-cart-row strong { display: block; font-size: 15px; }
.hq-cart-row b { font-size: 14px; }
.hq-cart-row button {
  height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-weight: 800; cursor: pointer;
}
.hq-cart-check { margin-top: 18px; }
.hq-cart-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.hq-cart-total strong { font-size: 28px; letter-spacing: -.03em; }
.hq-cart-page .pp-add { margin-top: 14px; }
@media (max-width: 720px) {
  .hq-cart-label { display: none; }
  .hq-cart-page { padding: 18px 16px 48px; }
  .hq-cart-row { grid-template-columns: 52px 1fr auto; }
  .hq-cart-row b { grid-column: 2; }
}
