/* SW Starters original dark storefront styles */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --bg: #0b0d12;
  --bg-soft: #10131a;
  --surface: #151922;
  --surface-2: #1b2130;
  --surface-3: #222a3c;
  --line: rgba(124, 77, 255, 0.16);
  --line-strong: rgba(124, 77, 255, 0.4);
  --gold: #7C4DFF;
  --gold-2: #9B74FF;
  --gold-dim: #5B35C9;
  --teal: #3ee0c5;
  --teal-dim: #1a8f7e;
  --text: #eceef4;
  --text-soft: #c5cad6;
  --muted: #8b93a7;
  --light: #ece6ff;
  --dark: #b9a8ff;
  --ok: #5ee0a8;
  --ok-bg: rgba(94, 224, 168, 0.1);
  --warn: #f0c36a;
  --danger: #ff8b8b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --header-h: 76px;
  --font: "Outfit", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 480px at 15% -10%, rgba(124, 77, 255, 0.14), transparent 55%),
    radial-gradient(700px 400px at 100% 0%, rgba(62, 224, 197, 0.05), transparent 50%),
    linear-gradient(180deg, #0e1118 0%, var(--bg) 28%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold-2);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(11, 13, 18, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--gold-2);
}

.brand {
  gap: 0;
}
.brand-logo,
.brand img,
.brand svg {
  width: auto;
  height: 42px;
  max-width: min(210px, 54vw);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-gold {
  color: #fff;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1406;
}

.btn-gold:hover {
  color: #1a1406;
}

.btn-teal {
  background: var(--teal);
  color: #06241f;
}

.btn-teal:hover {
  color: #06241f;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--gold);
}

.btn-discord {
  background: #5865f2;
  color: #fff;
}

.btn-discord:hover {
  color: #fff;
}

.btn-telegram {
  background: #229ed9;
  color: #fff;
}

.btn-telegram:hover {
  color: #fff;
}

.btn-full {
  width: 100%;
}

/* Hero / about */
.hero {
  padding: 64px 0 28px;
}

.kicker {
  color: var(--gold);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  max-width: 16ch;
  margin-bottom: 14px;
}

.hero-lead,
.about-copy {
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}

.trust-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Sample banner */
.sample-banner {
  display: none;
  margin: 8px 0 22px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(240, 195, 106, 0.45);
  background: rgba(240, 195, 106, 0.08);
  color: var(--warn);
  font-size: 0.9rem;
}

.sample-banner.is-visible,
body.has-sample .sample-banner {
  display: block;
}

/* Catalog */
.catalog {
  padding: 20px 0 72px;
}

.section-head h1,
.section-head h2 {
  font-size: 1.6rem;
  margin: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 1.6rem;
  margin: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  appearance: none;
  background: var(--surface);
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.is-active {
  color: #fff;
  background: var(--gold);
  border-color: var(--gold);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.empty-state {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 32px 0;
}

/* Product card */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 100%;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.product-flags {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.code {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(124, 77, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
}

.server {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid transparent;
}

.server-global {
  color: var(--teal);
  background: rgba(62, 224, 197, 0.08);
  border-color: rgba(62, 224, 197, 0.25);
}

.server-europe {
  color: #9ec4ff;
  background: rgba(110, 160, 255, 0.1);
  border-color: rgba(110, 160, 255, 0.28);
}

.card h3 {
  font-size: 1.22rem;
  margin: 0 0 4px;
}

.family {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.ld-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
}

.ld-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

.attr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.attr-light {
  background: var(--light);
  color: #3a2f12;
}

.attr-dark {
  background: #3a2a6b;
  color: var(--dark);
  box-shadow: inset 0 0 0 1px rgba(185, 168, 255, 0.5);
}

.attr-random {
  background: var(--surface-3);
  color: var(--gold-2);
}

.stats {
  list-style: none;
  margin: 0 0 16px;
  padding: 12px 12px 4px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.stats li {
  color: var(--text-soft);
  font-size: 0.82rem;
  padding-bottom: 8px;
}

.stats strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 14px;
}

.badge-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
  background: var(--ok-bg);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-guarantee::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

.stock {
  color: var(--muted);
  font-size: 0.82rem;
}

.stock.is-low {
  color: var(--warn);
}

.stock.is-out {
  color: var(--danger);
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* Product page */
.crumb {
  padding: 22px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.crumb a {
  color: var(--muted);
}

.crumb a:hover {
  color: var(--gold-2);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
  padding: 22px 0 72px;
  align-items: start;
}

.product-main h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 8px;
}

.product-sub {
  color: var(--muted);
  margin-bottom: 22px;
}

.feature-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}

.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.buy-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.buy-panel .price {
  font-size: 2rem;
  display: block;
  margin: 8px 0 14px;
}

.buy-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fine-print {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* How to buy */
.buy-page {
  padding: 28px 0 80px;
  max-width: 640px;
}

.buy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}

.buy-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 24px;
}

.summary-item {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 12px 14px;
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.summary-item strong {
  font-family: var(--font);
  font-size: 1.15rem;
}

.message-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 12px;
  margin-bottom: 18px;
}

.message-box p {
  margin: 0 0 10px;
  font-size: 1rem;
}

.message-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.steps {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--text-soft);
}

.steps li {
  margin-bottom: 8px;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 80;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* FAQ */
.faq {
  padding: 10px 0 80px;
}

.faq h2 {
  margin-bottom: 16px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-family: var(--font);
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--text-soft);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: grid;
  gap: 12px;
}

.disclaimer {
  max-width: 72ch;
  margin: 0;
}

.error-box {
  padding: 64px 0;
}

/* Modal (same How to buy flow, in-place) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.72);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.modal-close {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

/* Responsive */
@media (max-width: 960px) {
  .grid,
  .trust-row {
    grid-template-columns: 1fr 1fr;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .buy-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .header-tools {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    background: rgba(11, 13, 18, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .grid,
  .trust-row,
  .buy-summary,
  .channel-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .card-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .buy-card {
    padding: 20px 16px;
  }
}

/* Language switcher: globe + current language, always visible in the header */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  appearance: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  max-width: min(220px, 46vw);
}

.lang-switch-btn:hover,
.lang-switch.is-open .lang-switch-btn {
  border-color: var(--gold);
  color: var(--text);
}

.lang-globe {
  flex-shrink: 0;
  color: var(--gold-2);
}

.lang-current {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 168px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: min(70vh, 420px);
  overflow: auto;
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.lang-option:hover,
.lang-option.is-active {
  background: rgba(124, 77, 255, 0.14);
  color: var(--text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.server-asia {
  color: #f0b07a;
  background: rgba(240, 176, 122, 0.1);
  border-color: rgba(240, 176, 122, 0.3);
}

.highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
}

.highlights li {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold-2);
  background: rgba(124, 77, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
}

.card-midgame,
.card-endgame {
  background: linear-gradient(180deg, rgba(62, 224, 197, 0.04), var(--surface) 28%);
}

.card-endgame {
  background: linear-gradient(180deg, rgba(124, 77, 255, 0.08), var(--surface) 30%);
}


.nav-discord {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.nav-discord:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}



/* Catalog search + server filters */
.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 18px;
}
.search-box {
  flex: 1 1 240px;
  min-width: min(100%, 220px);
}
.search-box input {
  width: 100%;
  appearance: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.search-box input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.18);
}
.server-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Catalog toolbar: category + server chips above the grid */
.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 20px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.filter-row-servers .filter-btn {
  padding: 8px 14px;
  font-size: 0.92rem;
}
.filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-right: 4px;
  min-width: 5.5rem;
}

/* Card / product art. Official icons at the top of the pill */
.card {
  overflow: hidden;
  padding: 0 0 16px;
}
.card-art {
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0a0910;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.card-art.is-2 {
  grid-template-columns: 1fr 1fr;
}
.card-art.is-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.card-art img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  display: block;
  background: #0a0910;
}
.card-body {
  padding: 14px 18px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-art {
  margin: 0 0 20px;
}
.product-hero {
  background: #0a0910;
  border-radius: 16px;
  overflow: hidden;
}
.product-hero img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  display: block;
}
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.product-thumbs img {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  background: #0a0910;
  border-radius: 12px;
  display: block;
}

/* Ban guarantee */
.ban-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}
.card-meta .ban-line {
  flex: 1 1 auto;
  min-width: 0;
}
.buy-panel .ban-line {
  margin: 0 0 16px;
  font-size: 0.9rem;
}
.ban-shield {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--gold-2);
  filter: drop-shadow(0 0 4px rgba(124, 77, 255, 0.45));
}

/* Servers not yet in stock still have classes ready */
.server-korea {
  color: #ffb4c8;
  background: rgba(255, 120, 160, 0.1);
  border-color: rgba(255, 120, 160, 0.28);
}
.server-japan {
  color: #ffd39a;
  background: rgba(255, 180, 80, 0.1);
  border-color: rgba(255, 180, 80, 0.3);
}
.server-china {
  color: #ff8f8f;
  background: rgba(255, 100, 100, 0.1);
  border-color: rgba(255, 100, 100, 0.28);
}

/* Referral */
.referred-note {
  margin: 0 0 14px;
  color: var(--gold-2);
  font-size: 0.92rem;
  font-weight: 600;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
}
.footer-nav a {
  color: var(--text-soft);
  font-size: 0.88rem;
}
.footer-nav a:hover {
  color: var(--gold-2);
}
.refer-page {
  padding: 36px 0 64px;
  max-width: 760px;
}
.refer-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.refer-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.refer-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.refer-steps li span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(124, 77, 255, 0.18);
  color: var(--gold-2);
  font-family: var(--font);
  font-weight: 700;
}
.refer-steps li p {
  margin: 0;
}
.refer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
}
.refer-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 12px 0 6px;
}
.refer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.refer-row input {
  flex: 1 1 200px;
  appearance: none;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
}
.refer-result {
  margin-top: 8px;
}
@media (max-width: 700px) {
  .filter-label {
    min-width: 0;
    flex: 1 1 100%;
  }
  .card-art {
    aspect-ratio: 1;
  }
  .brand-logo,
  .brand img,
  .brand svg {
    height: 34px;
  }
  .product-flags {
    flex-wrap: wrap;
  }
}


/* Header search */
.site-header {
  height: auto;
  min-height: var(--header-h);
  padding: 8px 0;
}
.header-search {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 440px;
}
.hero-search-block {
  margin: 0 0 22px;
}
.search-widget {
  position: relative;
  width: 100%;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 8px 0 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-widget.is-open .search-field,
.search-field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.2);
}
.search-icon {
  color: var(--gold-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.search-field input {
  flex: 1;
  min-width: 0;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 0;
  outline: none;
}
.search-hero .search-field input {
  font-size: 1.05rem;
  padding: 14px 0;
}
.search-clear {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  cursor: pointer;
  border-radius: 50%;
}
.search-clear:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
  max-height: min(70vh, 520px);
  overflow: auto;
}
.search-hero .search-panel {
  max-width: 100%;
}
.search-section + .search-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.search-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.search-text-btn {
  appearance: none;
  background: none;
  border: 0;
  color: var(--gold-2);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  padding: 0;
}
.search-chips,
.popular-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.popular-searches {
  margin-top: 12px;
}
.search-chip {
  appearance: none;
  background: var(--surface-2);
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}
.search-chip:hover,
.search-chip:focus {
  color: #fff;
  border-color: var(--gold);
  background: rgba(124, 77, 255, 0.18);
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-result {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
}
.search-result:hover,
.search-result.is-active {
  background: rgba(124, 77, 255, 0.12);
}
.search-result img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #0a0910;
  border-radius: 8px;
}
.search-result-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.search-result-name {
  font-weight: 600;
  color: var(--text);
}
.search-result-name mark {
  background: rgba(124, 77, 255, 0.35);
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}
.search-result-meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.search-result-price {
  font-weight: 700;
  color: var(--gold-2);
  white-space: nowrap;
}
.search-view-all {
  appearance: none;
  width: 100%;
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold-2);
  border-radius: 10px;
  padding: 8px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
}
.search-empty {
  margin: 8px 0;
  color: var(--muted);
}
@media (max-width: 700px) {
  .header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
  }
  .search-widget.is-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(11, 13, 18, 0.97);
    padding: 16px;
    max-width: none;
  }
  .search-widget.is-overlay .search-panel {
    position: relative;
    top: 12px;
    max-height: calc(100vh - 96px);
  }
  body.search-overlay-on {
    overflow: hidden;
  }
}

.server-any {
  color: var(--gold-2);
  background: rgba(124, 77, 255, 0.12);
  border-color: rgba(155, 116, 255, 0.4);
}

@media (max-width: 700px) {
  .catalog-tools {
    flex-direction: column;
    align-items: stretch;
  }
}


/* Home art strip above the catalog */
.home-art-strip {
  padding: 18px 0 0;
}
.home-art-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
  padding: 4px 0 12px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.home-art-track a {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0910;
  border: 1px solid var(--line);
  color: inherit;
}
.home-art-track a:hover {
  border-color: var(--line-strong);
}
.home-art-track img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  display: block;
}

/* Landing / hub pages */
.landing {
  padding: 36px 0 72px;
}
.landing h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 12px;
}
.landing-lead {
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 1.05rem;
}
.landing-ban {
  margin: 8px 0 24px;
  max-width: 62ch;
}
.landing-grid {
  margin-top: 8px;
}


/* Featured mystery box hero */
.mystery-hero {
  padding: 20px 0 8px;
}
.mystery-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.9fr);
  gap: 0;
  align-items: stretch;
  background: #0a0910;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mystery-hero-art {
  min-width: 0;
  background: #07060c;
}
.mystery-hero-art a {
  display: block;
  height: 100%;
  color: inherit;
}
.mystery-hero-art img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: left center;
  image-rendering: auto;
  display: block;
}
.mystery-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px 32px 32px;
}
.mystery-hero-copy h1 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.15;
  margin: 0;
  max-width: 16ch;
}
.mystery-hero-copy .kicker {
  margin-bottom: 0;
}
.mystery-hero-ban .ban-line {
  margin: 0;
}
.mystery-hero-cta {
  align-self: flex-start;
  padding: 13px 22px;
  font-size: 1rem;
}
@media (max-width: 800px) {
  .mystery-hero-inner {
    grid-template-columns: 1fr;
  }
  .mystery-hero-art img {
    max-height: 220px;
    object-position: center;
  }
  .mystery-hero-copy {
    padding: 18px 20px 22px;
  }
  .mystery-hero-copy h1 {
    max-width: none;
  }
}
