:root {
  --bg: #070713;
  --bg-soft: #0d0a1b;
  --panel: rgba(14, 10, 28, 0.9);
  --panel-2: rgba(17, 11, 33, 0.94);
  --panel-3: rgba(24, 15, 42, 0.95);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 146, 62, 0.22);
  --text: #f6f2ff;
  --muted: #b9b0ca;
  --muted-2: #8f85a8;
  --purple: #a955ff;
  --purple-2: #7736ff;
  --blue: #44c7ff;
  --orange: #ff8a2a;
  --orange-2: #ff5d1f;
  --green: #56e39a;
  --hero-max: 1360px;
  --section-max: 1280px;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-card: 0 22px 60px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.24);
  --font-display: "Oxanium", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 128, 39, 0.12), transparent 28%),
    radial-gradient(circle at 50% 10%, rgba(167, 71, 255, 0.18), transparent 34%),
    radial-gradient(circle at 82% 14%, rgba(255, 124, 44, 0.12), transparent 26%),
    linear-gradient(180deg, #080613 0%, #090716 100%);
  font-family: var(--font-display);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  opacity: 0.36;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 55%, rgba(255, 112, 27, 0.1), transparent 20%),
    radial-gradient(circle at 88% 58%, rgba(255, 112, 27, 0.1), transparent 20%),
    radial-gradient(circle at 50% 20%, rgba(168, 82, 255, 0.12), transparent 26%);
  z-index: -1;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input {
  font: inherit;
}
button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
main { position: relative; z-index: 1; }
.noise,
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.noise {
  opacity: 0.02;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.45) 1px, transparent 0);
  background-size: 18px 18px;
}
.ambient-one {
  background: radial-gradient(circle at 50% 10%, rgba(167, 71, 255, 0.12), transparent 40%);
}
.ambient-two {
  background: radial-gradient(circle at 50% 65%, rgba(59, 164, 255, 0.07), transparent 28%);
}

.site-header,
.hero,
.top-category-strip,
.shop-section,
.community-section,
.support-section,
.terms-section,
.package-page-shell,
.site-footer {
  width: min(calc(100% - 32px), var(--section-max));
  margin-inline: auto;
}
.site-header {
  width: min(calc(100% - 18px), var(--hero-max));
  position: sticky;
  top: 14px;
  z-index: 50;
  min-height: 68px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  background: linear-gradient(180deg, rgba(12, 8, 22, 0.88), rgba(13, 9, 25, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(35, 141, 255, 0.3));
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-copy strong {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand-copy span {
  margin-top: 4px;
  font-size: 0.73rem;
  letter-spacing: 0.24em;
  color: #ffb567;
}
.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
}
.nav-link {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #d9d1e9;
  font-weight: 700;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 129, 43, 0.18), rgba(168, 77, 255, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 141, 52, 0.18), 0 0 0 1px rgba(255,255,255,0.03);
}
.header-actions { display: inline-flex; align-items: center; gap: 12px; }
.server-pill,
.cart-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  color: #f6f0ff;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.server-pill:hover,
.cart-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 145, 54, 0.26);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(86, 227, 154, 0.9);
}
.cart-button svg,
.search-box svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  box-shadow: 0 0 18px rgba(197, 101, 255, 0.4);
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 52px 42px 54px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(14, 10, 27, 0.4), rgba(10, 8, 22, 0.62));
  box-shadow: var(--shadow-card);
}
.hero-grid { display: none; }
.hero-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 6, 16, 0.28) 0%, rgba(7, 6, 16, 0.12) 36%, rgba(7, 6, 16, 0.38) 100%);
}
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 34%, rgba(197, 101, 255, 0.24), transparent 28%);
}
.hero-scene-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.98;
}
.hero-spider {
  position: absolute;
  top: 0;
  right: 19%;
  width: 56px;
  opacity: 0.92;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}
.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}
.hero-copy-minimal {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #ffd0a2;
  text-transform: uppercase;
}
.eyebrow span {
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), #ffca74);
  box-shadow: 0 0 12px rgba(255, 140, 35, 0.45);
}
.season-pill {
  margin-top: 12px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffd5ab;
  border: 1px solid rgba(255, 145, 55, 0.28);
  background: linear-gradient(90deg, rgba(255, 130, 41, 0.14), rgba(167, 71, 255, 0.14));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
.hero-visual-inline {
  width: 100%;
  margin-top: 28px;
  display: flex;
  justify-content: center;
}
.hero-glow {
  position: absolute;
  width: min(520px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(175, 81, 255, 0.34) 0%, rgba(77, 195, 255, 0.14) 48%, transparent 72%);
  filter: blur(48px);
}
.hero-logo-card {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: min(480px, 92vw);
  padding: 0;
  background: transparent;
  transition: transform .18s ease;
}
.hero-logo-card-minimal {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.hero-logo-card::before,
.hero-logo-card::after { content: none; }
.hero-full-logo {
  width: min(470px, 100%);
  object-fit: contain;
  filter: drop-shadow(0 22px 60px rgba(8, 6, 17, 0.65));
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}
.hero-actions-centered,
.hero-meta-centered {
  justify-content: center;
}
.primary-btn,
.secondary-btn,
.buy-btn,
.checkout-btn,
.coupon-row button {
  min-height: 56px;
  padding: 0 24px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--orange-2), var(--purple));
  box-shadow: 0 16px 36px rgba(119, 54, 255, 0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
.primary-btn:hover,
.buy-btn:hover,
.checkout-btn:hover,
.coupon-row button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.26);
}
.secondary-btn {
  min-width: 280px;
  padding-inline: 22px;
  color: #efe9ff;
  background: rgba(20, 14, 34, 0.68);
  border: 1px solid rgba(255,255,255,0.09);
}
.secondary-btn small {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #9f95b8;
}
.secondary-btn strong { font-size: 1rem; }
.secondary-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 145, 54, 0.22);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}
.secondary-btn.ghost {
  min-width: 0;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}
.hero-meta span {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(14, 10, 28, 0.62);
  border: 1px solid rgba(255,255,255,0.08);
  color: #beb4cf;
  font-size: 0.92rem;
}
.hero-meta b { color: #fff; margin-right: 6px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}
.section-heading.compact { margin-bottom: 18px; }
.section-heading h2,
.support-card h2,
.package-detail-copy h1,
.package-error h1 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.section-heading h2 em,
.support-card h2 em { font-style: normal; color: #ff9656; }
.section-heading p,
.support-card p,
.terms-inline-card p,
.package-detail-copy p,
.package-error p {
  color: var(--muted);
  line-height: 1.65;
}
.top-category-strip {
  margin-top: 26px;
}
.top-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.category-pill {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 11, 30, 0.9);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f2edff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.category-pill small {
  color: #ffa866;
  font-size: 0.83rem;
}
.category-pill:hover,
.category-pill.active {
  transform: translateY(-1px);
  border-color: rgba(255, 145, 54, 0.25);
  background: linear-gradient(90deg, rgba(255, 132, 46, 0.16), rgba(168, 82, 255, 0.16));
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}

.shop-section,
.community-section,
.support-section,
.terms-section,
.package-page-shell {
  margin-top: 22px;
}
.demo-banner,
.catalog-frame,
.community-card,
.support-card,
.terms-inline-card,
.package-detail-page,
.package-error,
.purchase-panel,
.package-description-card,
.package-visual-card,
.login-modal,
.cart-drawer {
  background: linear-gradient(180deg, rgba(16, 11, 29, 0.94), rgba(11, 8, 22, 0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-card);
}
.demo-banner {
  padding: 16px 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.demo-banner strong { display: block; margin-bottom: 4px; }
.demo-banner code {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: #ffd39f;
}
.catalog-frame {
  border-radius: 30px;
  overflow: hidden;
}
.catalog-topbar,
.catalog-transition {
  padding: 24px;
}
.catalog-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.catalog-kicker,
.package-section-label,
.player-box small,
.purchase-player small,
.login-modal label span,
.footer-cap {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ab9bc4;
}
.catalog-title-row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.catalog-title-row h3,
.drawer-header h3,
.community-card-head h3 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}
.back-link {
  padding: 0;
  color: #ffb068;
  font-weight: 700;
}
.search-box {
  width: min(360px, 100%);
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: #9f95b8;
}
.search-box input,
.coupon-row input,
.username-entry input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
}
.search-box input::placeholder,
.coupon-row input::placeholder,
.username-entry input::placeholder { color: #8f85a8; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(34, 20, 50, 0.88) 0%, rgba(15, 10, 27, 0.96) 58%, rgba(11, 8, 22, 0.98) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 132, 46, 0.12), transparent 24%),
    radial-gradient(circle at 80% 16%, rgba(168, 82, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 35%);
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,145,54,0.22);
  box-shadow: 0 22px 38px rgba(0,0,0,0.28);
}
.product-image {
  position: relative;
  min-height: 254px;
  padding: 22px 22px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img {
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.34));
  transition: transform .16s ease;
}
.product-card:hover .product-image img { transform: scale(1.03); }
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffd9b3;
  background: rgba(34, 20, 50, 0.76);
  border: 1px solid rgba(255,145,54,0.2);
}
.product-info {
  padding: 8px 18px 18px;
}
.product-category {
  color: #a990d6;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}
.product-name {
  margin: 10px 0 0;
  font-size: 1.95rem;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.product-bottom {
  margin-top: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.product-price small {
  display: block;
  color: #a89fb9;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
}
.product-price strong {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
  line-height: 1;
}
.buy-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 122, 32, 0.88), rgba(169, 82, 255, 0.92));
}
.product-placeholder,
.player-avatar,
.login-head,
.purchase-avatar,
.cart-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(34, 20, 50, 0.94), rgba(19, 12, 33, 0.96));
  border: 1px solid rgba(255,255,255,0.08);
}
.product-placeholder { width: 180px; height: 180px; border-radius: 26px; font-size: 3rem; color: #ffbe82; }
.product-placeholder.large { width: min(280px, 90%); height: min(280px, 90vw); }
.empty-state,
.community-empty,
.community-loading,
.cart-empty {
  padding: 42px 18px;
  text-align: center;
  color: var(--muted);
}
.empty-state div {
  font-size: 2.4rem;
  color: #ffb566;
}

.community-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}
.community-card {
  padding: 20px;
  border-radius: 24px;
}
.community-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.live-pill {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #d8fff0;
  font-size: 0.78rem;
  font-weight: 800;
}
.live-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(86, 227, 154, 0.8);
}
.recent-buyers {
  display: grid;
  gap: 12px;
}
.buyer-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.buyer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.buyer-avatar img,
.player-avatar img,
.login-head img,
.purchase-avatar img,
.cart-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.buyer-copy strong { display: block; }
.buyer-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: .92rem; }
.buyer-row b { color: #ffbc7f; }
.goal-percent {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffb46d;
}
.goal-amounts { display: flex; align-items: end; gap: 8px; }
.goal-amounts strong { font-size: 2rem; }
.goal-amounts span { color: var(--muted); }
.goal-track {
  margin-top: 14px;
  height: 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.goal-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--purple));
}

.support-card {
  padding: 28px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
}
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}
.terms-inline-card {
  padding: 18px 22px;
  border-radius: 24px;
}
.terms-inline-card p {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terms-inline-card p:last-child { border-bottom: 0; }
.terms-inline-card strong { color: #fff2e6; }

.site-footer {
  margin-top: 22px;
  margin-bottom: 24px;
  padding: 26px 20px 36px;
  border-radius: 26px;
  text-align: center;
  background: rgba(12, 8, 22, 0.86);
  border: 1px solid rgba(255,255,255,0.07);
}
.footer-brand {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-mark {
  width: 36px;
  height: 36px;
}
.footer-brand strong { display: block; font-size: 1.1rem; }
.footer-brand span, .site-footer p, .site-footer > span:last-child { color: var(--muted); }
.site-footer p { max-width: 62ch; margin: 12px auto 10px; }

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  background: rgba(4, 3, 10, 0.58);
  backdrop-filter: blur(8px);
  z-index: 90;
}
.drawer-backdrop.open,
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(390px, calc(100% - 36px));
  padding: 18px;
  border-radius: 26px;
  transform: translateX(calc(100% + 24px));
  transition: transform .22s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.icon-btn,
.modal-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1.5rem;
}
.player-box,
.purchase-player {
  margin-top: 16px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}
.player-avatar,
.login-head,
.purchase-avatar,
.cart-thumb {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  color: #ffb775;
}
.text-btn {
  color: #ffae67;
  font-weight: 800;
}
.cart-items {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  overflow: auto;
  padding-right: 2px;
}
.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.cart-thumb { width: 54px; height: 54px; }
.cart-item-copy strong { display: block; font-size: 1rem; }
.cart-item-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.9rem; }
.remove-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e7ddef;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 1.2rem;
}
.coupon-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.coupon-row input {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.coupon-row button {
  min-height: 52px;
  min-width: 110px;
  padding-inline: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.cart-summary {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.cart-summary > div,
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.total-row strong { font-size: 1.8rem; }
.checkout-btn {
  margin-top: 16px;
  width: 100%;
  color: #fff;
  background: linear-gradient(90deg, var(--orange-2), var(--purple));
}
.checkout-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}
.checkout-note {
  margin: 10px 4px 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}
.modal-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.login-modal {
  position: relative;
  width: min(460px, 100%);
  padding: 26px;
  border-radius: 28px;
  text-align: center;
}
.login-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.login-modal h3 {
  margin: 12px 0 8px;
  font-size: 2.1rem;
  letter-spacing: -0.04em;
}
.login-modal p {
  margin: 0 auto 18px;
  max-width: 34ch;
  color: var(--muted);
}
.login-modal label {
  display: block;
  text-align: left;
}
.username-entry {
  margin-top: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.username-entry input {
  min-height: 44px;
  font-size: 1.08rem;
}
.primary-btn.full { width: 100%; margin-top: 18px; }
.modal-footnote {
  display: block;
  margin-top: 14px;
  color: var(--muted-2);
  line-height: 1.5;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 20px);
  min-width: 240px;
  max-width: calc(100% - 32px);
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(13, 9, 25, 0.94);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 120;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.package-page-shell {
  padding-top: 10px;
}
.package-breadcrumb {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.package-breadcrumb a {
  color: #ffad64;
  font-weight: 700;
}
.package-detail-page {
  padding: 22px;
  border-radius: 30px;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
}
.package-visual-card {
  min-height: 460px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 132, 46, 0.10), transparent 22%),
    radial-gradient(circle at 80% 16%, rgba(168, 82, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(34, 20, 50, 0.88), rgba(15, 10, 27, 0.96));
}
.package-visual-card img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.34));
}
.package-image-skeleton {
  width: 72%;
  aspect-ratio: 1;
  border-radius: 26px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.07), rgba(255,255,255,0.03));
}
.package-meta-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.package-meta-row strong { font-size: 2.2rem; }
.product-badge.static { position: static; }
.package-description-card,
.purchase-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
}
.package-description-content > :first-child { margin-top: 0; }
.package-description-content > :last-child { margin-bottom: 0; }
.package-description-content ul,
.package-description-content ol { padding-left: 20px; color: var(--muted); }
.package-description-content a { color: #ffb26e; text-decoration: underline; }
.purchase-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.package-buy-button { min-width: 250px; }
.package-error {
  padding: 30px;
  border-radius: 30px;
  text-align: center;
}

@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-grid,
  .support-card,
  .package-detail-page { grid-template-columns: 1fr; }
  .support-actions { justify-content: flex-start; }
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }
  .header-actions { width: 100%; justify-content: center; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .catalog-topbar { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; }
  .hero {
    min-height: 700px;
    padding: 42px 20px 42px;
  }
  .hero-full-logo { width: min(390px, 88vw); }
  .hero-meta span { font-size: 0.84rem; }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .top-category-strip,
  .shop-section,
  .community-section,
  .support-section,
  .terms-section,
  .package-page-shell,
  .site-footer {
    width: min(calc(100% - 16px), var(--section-max));
  }
  .site-header { top: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 18px; }
  .brand-copy strong { font-size: 1.2rem; }
  .brand-copy span { font-size: 0.64rem; }
  .main-nav { width: 100%; justify-content: center; overflow: auto; }
  .nav-link { min-height: 38px; padding: 0 14px; font-size: 0.92rem; }
  .header-actions { flex-wrap: wrap; }
  .server-pill, .cart-button { width: 100%; justify-content: center; }
  .hero {
    min-height: 620px;
    padding: 34px 14px 34px;
    border-radius: 28px;
  }
  .hero-scene-art { object-position: 54% center; }
  .hero-spider { right: 12%; width: 48px; }
  .season-pill { font-size: 0.86rem; letter-spacing: 0.08em; }
  .hero-full-logo { width: min(310px, 84vw); }
  .hero-actions { gap: 12px; }
  .primary-btn,
  .secondary-btn,
  .buy-btn,
  .checkout-btn,
  .coupon-row button { min-height: 50px; width: 100%; }
  .secondary-btn { min-width: 0; }
  .hero-meta { gap: 10px; }
  .hero-meta span { width: 100%; justify-content: center; min-height: 42px; padding-inline: 14px; }
  .catalog-topbar, .catalog-transition, .community-card, .support-card, .terms-inline-card, .package-detail-page, .package-error, .purchase-panel, .package-description-card, .package-visual-card, .login-modal, .cart-drawer { padding: 16px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-name { font-size: 1.65rem; }
  .product-price strong { font-size: 1.75rem; }
  .product-bottom { flex-direction: column; align-items: stretch; }
  .top-category-list { gap: 10px; }
  .category-pill { min-height: 46px; font-size: 0.9rem; }
  .coupon-row { grid-template-columns: 1fr; }
  .cart-drawer { top: 8px; right: 8px; bottom: 8px; width: calc(100% - 16px); border-radius: 22px; }
  .player-box, .purchase-player { grid-template-columns: auto 1fr; }
  .text-btn { grid-column: 1 / -1; justify-self: start; }
  .package-visual-card { min-height: 320px; }
  .package-buy-button { min-width: 0; width: 100%; }
  .package-detail-copy h1,
  .package-error h1,
  .section-heading h2,
  .support-card h2 { font-size: 1.8rem; }
}
