:root {
  color-scheme: dark;
  --bg: #303446;
  --surface: #292c3c;
  --surface-2: #303446;
  --surface-3: #414559;
  --line: rgba(198, 208, 245, 0.14);
  --line-strong: rgba(202, 158, 230, 0.32);
  --text: #c6d0f5;
  --muted: #b5bfe2;
  --soft: #838ba7;
  --purple: #ca9ee6;
  --purple-2: #babbf1;
  --magenta: #f4b8e4;
  --cyan: #85c1dc;
  --green: #a6d189;
  --gold: #e5c890;
  --red: #e78284;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.46);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #303446;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

.world-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 38%, rgba(202, 158, 230, 0.13), transparent 32%),
    radial-gradient(circle at 84% 36%, rgba(133, 193, 220, 0.1), transparent 30%),
    radial-gradient(circle at 72% 86%, rgba(244, 184, 228, 0.11), transparent 34%),
    linear-gradient(180deg, #303446 0%, #292c3c 58%, #232634 100%),
    #303446;
}

.world-bg::before {
  content: none;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(216, 180, 254, 0.9) 0 1px, transparent 1.5px);
  background-position: 12px 24px, 72px 86px;
  background-size: 150px 110px, 210px 170px;
  opacity: 0.12;
  mask-image: linear-gradient(180deg, transparent 0 56px, #000 160px);
}

.panorama {
  display: none;
}

.terrain {
  display: none;
}

.dust-trail-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  mix-blend-mode: screen;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1320px, calc(100% - 32px));
  min-height: 74px;
  margin: 16px auto 0;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 254, 0.2);
  background:
    linear-gradient(180deg, rgba(48, 52, 70, 0.96), rgba(35, 38, 52, 0.97)),
    rgba(41, 44, 60, 0.94);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.topbar::before {
  content: none;
}

.brand,
.top-actions,
.nav,
.account-button,
.cart-button,
.primary,
.secondary,
.ghost,
.icon-button {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  image-rendering: pixelated;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.42));
}

.brand-logo {
  width: 48px;
  height: 48px;
  image-rendering: auto;
  border-radius: 10px;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 44%, rgba(139, 92, 246, 0.22), transparent 68%),
    rgba(8, 6, 16, 0.86);
  box-shadow: inset 0 0 0 1px rgba(234, 226, 255, 0.08), 0 0 18px rgba(139, 92, 246, 0.24);
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav {
  justify-content: center;
  gap: 6px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 13px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.24), rgba(16, 14, 26, 0.86)),
    rgba(139, 92, 246, 0.14);
  box-shadow: inset 0 0 0 1px rgba(216, 180, 254, 0.12);
}

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

.top-actions {
  justify-content: end;
  gap: 10px;
}

.account-button,
.cart-button,
.primary,
.secondary,
.ghost,
.icon-button {
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border-radius: 7px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.account-button,
.cart-button,
.secondary,
.ghost,
.icon-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.account-button {
  min-width: 142px;
  padding: 0 12px;
}

.account-button img,
.cart-button img,
.primary img,
.secondary img,
.ghost img,
.product-icon,
.item-icon,
.skin-face {
  image-rendering: pixelated;
}

.account-button img,
.cart-button img,
.primary img,
.secondary img,
.ghost img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.hero-logo {
  display: block;
  width: min(212px, 58vw);
  aspect-ratio: 1 / 1;
  margin: 12px 0 18px;
  border: 1px solid rgba(234, 226, 255, 0.08);
  border-radius: 20px;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 45%, rgba(139, 92, 246, 0.22), transparent 68%),
    rgba(8, 6, 16, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 36px rgba(139, 92, 246, 0.24);
}

.account-button .skin-face {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.account-button small {
  display: block;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.1;
  text-align: left;
}

.account-button strong {
  display: block;
  max-width: 94px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  text-align: left;
}

.cart-button {
  padding: 0 12px;
  font-weight: 800;
}

.cart-button b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: #0a0812;
  background: var(--magenta);
  border-radius: 999px;
  font-size: 12px;
}

.account-button:hover,
.cart-button:hover,
.primary:hover,
.secondary:hover,
.ghost:hover,
.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.app {
  width: min(1320px, calc(100% - 32px));
  margin: 28px auto 0;
}

.landing-page,
.shop-page,
.commands-page {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.store-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}

.sidebar,
.right-rail,
.panel,
.product-card,
.category-card,
.terms-card,
.profile-card {
  border: 1px solid var(--line);
  background: rgba(18, 17, 29, 0.86);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  border-radius: 8px;
}

.sidebar,
.right-rail {
  position: sticky;
  top: 104px;
  padding: 14px;
}

.sidebar h3,
.right-rail h3,
.panel h3 {
  margin: 0 0 12px;
}

.category-list {
  display: grid;
  gap: 9px;
}

.category-button {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
}

.category-button.active {
  border-color: rgba(168, 85, 247, 0.56);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.26), rgba(232, 121, 249, 0.1));
}

.category-button img {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
  object-fit: contain;
}

.category-button strong {
  display: block;
  font-size: 14px;
}

.category-button span {
  display: block;
  color: var(--soft);
  font-size: 12px;
}

.hero-store {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: center;
  min-height: 360px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(234, 226, 255, 0.12);
  background:
    radial-gradient(circle at 18% 18%, rgba(202, 158, 230, 0.2), transparent 36%),
    radial-gradient(circle at 84% 20%, rgba(133, 193, 220, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(48, 52, 70, 0.98), rgba(41, 44, 60, 0.96) 52%, rgba(35, 38, 52, 0.98));
  border-radius: 10px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

.hero-store::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 9, 20, 0.58) 0%, rgba(24, 22, 34, 0.18) 48%, rgba(8, 7, 14, 0.36) 100%),
    url("/assets/minecraft-real-panorama.jpg") center / cover no-repeat;
  opacity: 0.92;
  filter: saturate(1.08) brightness(0.88);
  pointer-events: none;
}

.hero-store::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 26%, rgba(202, 158, 230, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(35, 38, 52, 0.04), rgba(35, 38, 52, 0.45));
  pointer-events: none;
}

.hero-store h1 {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0;
  font-size: 56px;
  line-height: 1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.5);
}

.hero-store p {
  position: relative;
  z-index: 1;
  max-width: 670px;
  margin: 16px 0 0;
  color: #ded7ef;
  line-height: 1.65;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-panel {
  position: relative;
  z-index: 1;
  padding: 14px;
  border: 1px solid rgba(234, 226, 255, 0.14);
  background: rgba(13, 12, 20, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.panel-title,
.receipt-lines i,
.shop-receipt span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-title b {
  color: var(--green);
}

.panel-title b.offline {
  color: #f87171;
}

.slot-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.slot-showcase span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(234, 226, 255, 0.16);
  background: #1b1827;
  border-radius: 5px;
  box-shadow: inset 2px 2px rgba(255, 255, 255, 0.08), inset -2px -2px rgba(0, 0, 0, 0.4);
}

.slot-showcase img {
  width: 44px;
  height: 44px;
  image-rendering: pixelated;
  object-fit: contain;
}

.receipt-lines {
  display: grid;
  gap: 8px;
}

.receipt-lines i {
  min-height: 34px;
  padding: 0 10px;
  color: var(--soft);
  background: #171522;
  border-radius: 6px;
  font-style: normal;
}

.receipt-lines b {
  color: var(--text);
}

.hero-actions,
.quick-stats,
.product-grid,
.page-grid,
.support-grid,
.terms-grid {
  display: grid;
  gap: 14px;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  margin-top: 24px;
}

.primary,
.secondary,
.ghost {
  min-height: 46px;
  padding: 0 15px;
  font-weight: 900;
}

.primary {
  color: #07110c;
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  box-shadow: 0 14px 30px rgba(52, 211, 153, 0.22);
}

.secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.07);
}

.hero-command-button {
  border-color: rgba(245, 194, 122, 0.72);
  color: #1d1608;
  background: linear-gradient(180deg, #f9e2af, #f5c27a);
  box-shadow: 0 14px 30px rgba(245, 194, 122, 0.2);
}

.hero-ip-button {
  border-color: rgba(202, 158, 230, 0.68);
  color: #f8f4ff;
  background: linear-gradient(180deg, rgba(155, 121, 219, 0.98), rgba(116, 82, 174, 0.98));
  box-shadow: 0 14px 30px rgba(202, 158, 230, 0.18);
}

.discord-button {
  border-color: rgba(88, 101, 242, 0.76);
  color: #fff;
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.98), rgba(73, 86, 214, 0.96));
  box-shadow: 0 14px 30px rgba(88, 101, 242, 0.24);
}

.discord-logo {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
}

.discord-logo svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ghost {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.wide {
  width: 100%;
}

.quick-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.stat-box {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(17, 16, 26, 0.92);
  border-radius: 8px;
}

.stat-box span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-box strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.feature-band,
.rank-compare,
.shop-intro,
.delivery-flow {
  display: grid;
  gap: 14px;
}

.feature-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.feature-band article,
.delivery-flow article,
.rank-compare,
.shop-intro {
  border: 1px solid var(--line);
  background: rgba(17, 16, 26, 0.94);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.feature-band article,
.delivery-flow article {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  column-gap: 12px;
  min-height: 92px;
  padding: 14px;
}

.feature-band img,
.delivery-flow img,
.shop-receipt img,
.compare-lanes img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  object-fit: contain;
}

.feature-band article > img,
.delivery-flow article > img {
  grid-row: 1 / span 2;
}

.feature-band strong,
.delivery-flow b {
  display: block;
  grid-column: 2;
  font-size: 15px;
}

.feature-band span,
.delivery-flow span {
  display: block;
  grid-column: 2;
  margin-top: 4px;
  color: var(--soft);
  line-height: 1.35;
}

.rank-compare,
.shop-intro {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  margin-top: 18px;
  padding: 22px;
  background: rgba(17, 16, 26, 0.94);
}

.rank-compare h2,
.shop-intro h2 {
  margin: 4px 0 8px;
  font-size: 30px;
}

.rank-compare p,
.shop-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.compare-lanes,
.shop-receipt {
  display: grid;
  gap: 9px;
}

.compare-lanes span {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid rgba(234, 226, 255, 0.16);
  background: rgba(255, 255, 255, 0.052);
  border-radius: 7px;
}

.compare-lanes b,
.compare-lanes small {
  display: block;
}

.compare-lanes small {
  color: var(--soft);
  margin-top: 2px;
}

.shop-intro {
  margin: 0 0 16px;
}

.shop-receipt span {
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(234, 226, 255, 0.16);
  color: var(--text);
  background: #171522;
  border-radius: 7px;
  font-weight: 850;
}

.delivery-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.webstore-page {
  width: min(1320px, 100%);
}

.webstore-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  min-height: 176px;
  padding: 26px;
  overflow: hidden;
  border: 2px solid rgba(8, 6, 14, 0.9);
  background:
    radial-gradient(circle at 22% 12%, rgba(202, 158, 230, 0.26), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(133, 193, 220, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(48, 52, 70, 0.98), rgba(41, 44, 60, 0.96) 58%, rgba(35, 38, 52, 0.98));
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(216, 180, 254, 0.2), 0 26px 70px rgba(0, 0, 0, 0.5);
}

.webstore-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 26%),
    linear-gradient(90deg, transparent, rgba(217, 70, 239, 0.12), transparent);
  pointer-events: none;
}

.webstore-banner > * {
  position: relative;
  z-index: 1;
}

.webstore-banner h2 {
  margin: 5px 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  text-shadow: 0 3px 18px rgba(139, 92, 246, 0.34);
}

.webstore-banner p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.store-status {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 8px;
}

.store-status span {
  min-width: 92px;
  padding: 10px 12px;
  border: 1px solid rgba(234, 226, 255, 0.12);
  color: var(--soft);
  background: rgba(13, 12, 20, 0.78);
  border-radius: 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.store-status b {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.store-status span.online b {
  color: var(--green);
}

.panel-title b.checking,
.store-status span.checking b {
  color: #facc15;
}

.store-status span.offline {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(52, 12, 20, 0.78);
}

.store-status span.offline b {
  color: #f87171;
}

.webstore-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.store-panel,
.packages-area {
  border: 1px solid rgba(216, 180, 254, 0.16);
  background:
    radial-gradient(circle at 18% 0, rgba(139, 92, 246, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(22, 19, 34, 0.98), rgba(10, 8, 17, 0.99)),
    rgba(17, 16, 26, 0.96);
  border-radius: 12px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.4);
}

.store-panel {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 10px;
  padding: 15px;
}

.store-panel h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.store-category {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid rgba(234, 226, 255, 0.1);
  color: var(--text);
  font: inherit;
  text-align: left;
  background: #161421;
  border-radius: 7px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.store-category:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 180, 254, 0.24);
  background: #1a1728;
}

.store-category.active {
  border-color: rgba(167, 139, 250, 0.52);
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.22), rgba(24, 32, 25, 0.82)),
    #182019;
  box-shadow: inset 3px 0 0 rgba(217, 70, 239, 0.82), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.store-category.disabled-link {
  opacity: 0.74;
}

.store-category img {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
  object-fit: contain;
}

.store-category strong,
.store-category small {
  display: block;
}

.store-category small {
  margin-top: 2px;
  color: var(--soft);
}

.store-category b {
  min-width: 24px;
  padding: 4px 6px;
  color: #06120d;
  background: var(--green);
  border-radius: 6px;
  text-align: center;
  font-size: 12px;
}

.packages-area {
  position: relative;
  padding: 16px;
  overflow: hidden;
}

.packages-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 6%, rgba(217, 70, 239, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18%);
  pointer-events: none;
}

.packages-area > * {
  position: relative;
  z-index: 1;
}

.packages-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: -2px -2px 16px;
  padding: 4px 2px 16px;
  border-bottom: 1px solid rgba(234, 226, 255, 0.1);
}

.packages-head.compact-head {
  margin-top: 28px;
}

.packages-head .secondary {
  white-space: nowrap;
}

.packages-head h2 {
  margin: 4px 0 5px;
  font-size: 28px;
}

.packages-head p {
  margin: 0;
  color: var(--muted);
}

.webstore-products {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.basket-preview {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid rgba(234, 226, 255, 0.1);
  background: #161421;
  border-radius: 7px;
}

.basket-preview img {
  width: 38px;
  height: 38px;
  image-rendering: pixelated;
  object-fit: contain;
}

.basket-preview strong,
.basket-preview small,
.store-help span {
  display: block;
}

.basket-preview small {
  margin-top: 3px;
  color: var(--gold);
  font-weight: 900;
}

.store-help {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.store-help span {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
}

.store-help img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 30px;
}

.section-head p {
  max-width: 650px;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.eyebrow {
  display: inline-block;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.product-grid.webstore-products {
  grid-template-columns: repeat(3, minmax(225px, 1fr));
}

.product-grid.webstore-products.souls-products {
  grid-template-columns: repeat(3, minmax(225px, 1fr));
}

.home-products {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}

.coming-soon-head {
  margin-top: 24px;
}

.keys-empty {
  min-height: 118px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 438px;
  padding: 16px;
  overflow: hidden;
  border: 2px solid rgba(5, 4, 10, 0.92);
  background:
    linear-gradient(180deg, rgba(26, 23, 38, 0.98), rgba(11, 9, 18, 0.98)),
    rgba(17, 16, 26, 0.96);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(216, 180, 254, 0.14), 0 18px 44px rgba(0, 0, 0, 0.38);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.webstore-products .product-card {
  min-height: 412px;
}

.product-card.highlight {
  border-color: rgba(52, 211, 153, 0.36);
}

.product-card.souls-card {
  border-color: rgba(192, 132, 252, 0.2);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 180, 254, 0.3);
  box-shadow: 0 0 0 1px rgba(216, 180, 254, 0.18), 0 24px 62px rgba(0, 0, 0, 0.46);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent) 0 0 / 220px 100%,
    linear-gradient(180deg, rgba(139, 92, 246, 0.14), transparent 22%);
  pointer-events: none;
}

.product-card.highlight::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent) 0 0 / 220px 100%,
    linear-gradient(180deg, rgba(52, 211, 153, 0.16), transparent 22%);
}

.product-card.souls-card::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent) 0 0 / 220px 100%,
    linear-gradient(180deg, rgba(217, 70, 239, 0.16), transparent 22%);
}

.product-media {
  position: relative;
  z-index: 1;
  display: grid;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  border: 3px solid rgba(5, 4, 10, 0.96);
  background:
    radial-gradient(circle at 50% 18%, rgba(192, 132, 252, 0.18), transparent 42%),
    #151221;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 32px rgba(0, 0, 0, 0.42);
}

.product-art {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  image-rendering: auto;
}

.product-media .badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

.product-top,
.price-line,
.cart-item,
.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  padding: 10px;
  border: 1px solid rgba(234, 226, 255, 0.16);
  background: #1b1827;
  border-radius: 7px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
  box-shadow: inset 2px 2px rgba(255, 255, 255, 0.08), inset -2px -2px rgba(0, 0, 0, 0.42);
}

.product-card h3 {
  position: relative;
  z-index: 1;
  margin: 14px 0 8px;
  font-size: 24px;
  line-height: 1.15;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.price-line {
  display: block;
  margin: 18px 0;
}

.price {
  color: #facc15;
  font-size: 32px;
  font-weight: 950;
}

.price-note {
  display: block;
  max-width: none;
  margin-top: 5px;
  color: var(--soft);
  font-size: 12px;
  text-align: left;
}

.benefits {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.benefits li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  color: #d8d1ec;
  font-size: 14px;
  line-height: 1.4;
}

.benefits li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 3px;
  background: var(--green);
  box-shadow: none;
}

.product-card .primary,
.product-card .secondary {
  margin-top: auto;
  padding: 0 10px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #080711;
  background: linear-gradient(135deg, #fde68a, var(--gold));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.badge.cool {
  background: linear-gradient(135deg, #86efac, #34d399);
}

.badge.hot {
  color: #fff;
  background: linear-gradient(135deg, #a78bfa, #d946ef);
}

.badge.soul {
  color: #fff7ff;
  background: rgba(139, 92, 246, 0.76);
  border: 1px solid rgba(240, 171, 252, 0.38);
}

.badge.soul.hot {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.badge.locked {
  color: #ffe4e6;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.32), rgba(127, 29, 29, 0.36));
  border: 1px solid rgba(251, 113, 133, 0.34);
}

.right-rail {
  display: grid;
  gap: 12px;
}

.mini-profile {
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 8px;
}

.mini-profile .skin-face {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

.mini-profile strong {
  display: block;
}

.mini-profile span {
  color: var(--soft);
}

.panel,
.profile-card,
.terms-card {
  padding: 22px;
}

.panel p,
.profile-card p,
.terms-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.page-grid {
  grid-template-columns: 1fr 1fr;
}

.support-grid,
.terms-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.commands-hero {
  min-height: 170px;
  padding: 24px;
  border: 1px solid rgba(216, 180, 254, 0.18);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(18, 17, 29, 0.9) 58%, rgba(56, 189, 248, 0.12)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.035) 50% 75%, transparent 75%) 0 0 / 38px 38px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.commands-hero h2 {
  margin: 6px 0 10px;
  font-size: 34px;
}

.commands-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.command-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.command-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.052);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.command-card:hover {
  transform: translateY(-1px);
  border-color: rgba(168, 85, 247, 0.52);
  background: rgba(168, 85, 247, 0.13);
}

.command-card img {
  width: 38px;
  height: 38px;
  image-rendering: pixelated;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.38));
}

.command-card strong,
.command-card b,
.command-card small {
  display: block;
}

.command-card strong {
  color: var(--magenta);
  font-size: 12px;
}

.command-card b {
  margin-top: 2px;
  font-size: 15px;
}

.command-card small {
  margin-top: 4px;
  color: var(--soft);
  line-height: 1.35;
}

.profile-card.hero-profile {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: center;
}

.hero-profile .skin-face {
  width: 96px;
  height: 96px;
  border-radius: 10px;
}

.profile-card h2,
.profile-card h3,
.terms-card h3,
.panel h2 {
  margin: 0 0 10px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: #ded7ef;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 999px;
  font-weight: 800;
}

.chip img {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
}

.cart-drawer,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  justify-content: end;
  background: rgba(2, 0, 8, 0.62);
  backdrop-filter: blur(6px);
}

.cart-drawer.open,
.modal-backdrop.open {
  display: flex;
}

.cart-panel,
.login-card {
  width: min(430px, 100%);
  min-height: 100%;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: #0d0b18;
  box-shadow: var(--shadow);
}

.modal-backdrop {
  place-items: center;
  justify-content: center;
}

.login-card {
  min-height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-head h2 {
  margin: 3px 0 0;
}

.icon-button {
  width: 38px;
  height: 38px;
  color: var(--muted);
}

.cart-items {
  display: grid;
  gap: 10px;
  min-height: 114px;
}

.cart-empty,
.cart-item,
.cart-notice {
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 8px;
}

.cart-empty,
.cart-notice {
  color: var(--muted);
  line-height: 1.5;
}

.cart-notice {
  display: none;
  margin-top: 12px;
}

.cart-notice.show {
  display: block;
}

.cart-item {
  align-items: start;
}

.cart-item img {
  width: 42px;
  height: 42px;
  image-rendering: pixelated;
  object-fit: contain;
}

.cart-item strong {
  display: block;
}

.cart-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.cart-item button {
  color: var(--red);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cart-total span {
  color: var(--muted);
}

.cart-total strong {
  color: var(--gold);
  font-size: 26px;
}

.login-steps {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.login-steps div {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 8px;
  color: var(--muted);
}

.login-steps b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #080711;
  background: var(--magenta);
  border-radius: 6px;
}

.field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.field span {
  color: var(--muted);
  font-size: 13px;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  text-transform: uppercase;
}

.field input:focus {
  border-color: rgba(56, 189, 248, 0.72);
}

.fineprint {
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 120;
  display: none;
  max-width: min(560px, calc(100% - 28px));
  padding: 13px 16px;
  color: #080711;
  background: #f7f4ff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.toast.show {
  display: block;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  width: min(1320px, calc(100% - 32px));
  margin: 72px auto 0;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer strong {
  color: var(--text);
}

.footer p {
  max-width: 640px;
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--text);
}

.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
  border-radius: 8px;
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
  }

  .store-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .webstore-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .checkout-sidebar {
    position: static;
    grid-column: 1 / -1;
  }

  .hero-store,
  .rank-compare,
  .shop-intro,
  .webstore-banner {
    grid-template-columns: 1fr;
  }

  .right-rail {
    position: static;
    grid-column: 1 / -1;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .product-grid.webstore-products,
  .product-grid.webstore-products.souls-products {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 780px) {
  .topbar,
  .app,
  .footer {
    width: min(100% - 20px, 1220px);
  }

  .topbar,
  .store-shell,
  .webstore-layout,
  .page-grid,
  .support-grid,
  .terms-grid,
  .quick-stats,
  .feature-band,
  .delivery-flow {
    grid-template-columns: 1fr;
  }

  .top-actions {
    justify-content: stretch;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 6px;
    overflow-x: visible;
  }

  .nav a {
    justify-content: center;
    padding: 8px 6px;
    font-size: 12px;
    text-align: center;
  }

  .account-button,
  .cart-button {
    flex: 1;
  }

  .sidebar,
  .right-rail,
  .store-panel {
    position: static;
  }

  .hero-store {
    min-height: auto;
    padding: 22px;
  }

  .hero-store h1 {
    font-size: 36px;
  }

  .hero-panel {
    display: none;
  }

  .rank-compare,
  .shop-intro,
  .webstore-banner,
  .packages-area {
    padding: 18px;
  }

  .store-status {
    grid-template-columns: 1fr;
  }

  .packages-head {
    display: grid;
    align-items: start;
  }

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

  .product-grid.webstore-products,
  .product-grid.webstore-products.souls-products {
    grid-template-columns: 1fr;
  }

  .profile-card.hero-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-profile .skin-face {
    margin: 0 auto;
  }

  .footer {
    display: block;
  }

  .footer-links {
    justify-content: start;
    margin-top: 16px;
  }
}
