/* Nebula storefront: Catppuccin Frappe, clear products and compact commerce flow. */
:root {
  --bg: #303446;
  --surface: #292c3c;
  --surface-raised: #353849;
  --surface-soft: #414559;
  --text: #f4f5ff;
  --muted: #c6d0f5;
  --soft: #a5adce;
  --line: rgba(198, 208, 245, 0.16);
  --line-strong: rgba(198, 208, 245, 0.3);
  --purple: #ca9ee6;
  --lavender: #babbf1;
  --cyan: #85c1dc;
  --green: #a6d189;
  --mint: #99d9cd;
  --gold: #e5c890;
  --red: #e78284;
  --shadow-soft: 0 14px 36px rgba(17, 19, 28, 0.2);
  --shadow-deep: 0 24px 70px rgba(17, 19, 28, 0.42);
}

* { letter-spacing: 0; }
html, body, .world-bg { background: var(--bg); }
body { overflow-x: hidden; }
.world-bg .panorama, .world-bg .stars, .world-bg .terrain { display: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: block;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(41, 44, 60, 0.91);
  box-shadow: 0 8px 28px rgba(17, 19, 28, 0.18);
  backdrop-filter: blur(20px) saturate(130%);
}

.topbar::before { display: none; }
.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1240px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
}

.brand { gap: 11px; min-width: 172px; }
.brand-icon, .brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #171823;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 7px 18px rgba(17,19,28,.28);
  filter: none;
  image-rendering: auto;
}
.brand strong { color: var(--text); font-size: 17px; font-weight: 760; line-height: 1; }
.brand small { margin-top: 5px; color: var(--soft); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.nav { justify-content: center; gap: 2px; }
.nav a {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 620;
}
.nav a:hover, .nav a.active { color: var(--text); background: rgba(198,208,245,.09); box-shadow: none; transform: none; }
.top-actions { gap: 8px; }

.account-button, .cart-button, .primary, .secondary, .ghost, .discord-button {
  min-height: 44px;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.25;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.account-button, .cart-button, .secondary, .ghost {
  color: var(--text);
  border: 1px solid rgba(228,234,255,.22);
  background: linear-gradient(155deg, rgba(255,255,255,.13), rgba(255,255,255,.035));
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 8px 18px rgba(17,19,28,.12);
  backdrop-filter: blur(14px);
}
.primary {
  color: #162d28;
  border: 1px solid #b5eadf;
  background: var(--mint);
  box-shadow: inset 0 1px rgba(255,255,255,.65), 0 12px 28px rgba(88,157,143,.2);
}
.ghost { min-height: 40px; padding: 9px 14px; color: var(--muted); background: transparent; box-shadow: none; }
.account-button:hover, .cart-button:hover, .secondary:hover, .ghost:hover, .discord-button:hover, .primary:hover { transform: translateY(-2px); }
.account-button:hover, .cart-button:hover, .secondary:hover, .ghost:hover {
  border-color: rgba(228,234,255,.42);
  background: linear-gradient(155deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 12px 24px rgba(17,19,28,.17);
}
.primary:hover { background: #afe4d9; box-shadow: inset 0 1px rgba(255,255,255,.7), 0 16px 32px rgba(88,157,143,.25); }
.top-actions img, .primary img, .secondary img, .ghost img, .discord-button img { width: 19px; height: 19px; flex: 0 0 auto; object-fit: contain; }
.account-button { min-width: 132px; }
.account-button small { display: none; }
.cart-button b { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #292c3c; background: var(--lavender); font-size: 10px; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: rgba(255,255,255,.055);
  cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.app { width: min(1240px, calc(100% - 48px)); margin: 46px auto 0; }
body[data-page="home"] .app { width: 100%; margin: 0; }
.landing-page, .shop-page, .commands-page { width: 100%; }

.nebula-hero {
  --dissolve: 0;
  position: relative;
  display: grid;
  min-height: 610px;
  height: calc(100svh - 76px);
  max-height: 760px;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #181b28;
}
.hero-landscape {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  opacity: calc(1 - var(--dissolve) * .25);
  transform: translateY(calc(var(--dissolve) * 28px)) scale(1.025);
  transition: opacity .1s linear;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(18,20,31,.24) 0%, rgba(18,20,31,.38) 54%, rgba(30,33,47,.88) 100%), linear-gradient(90deg, rgba(18,20,31,.48), rgba(18,20,31,.12) 40%, rgba(18,20,31,.48));
}
.hero-content { display: flex; width: min(820px, calc(100% - 40px)); padding: 42px 0 84px; flex-direction: column; align-items: center; text-align: center; }
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  color: #f1f5ff;
  background: rgba(24,27,40,.46);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.hero-status i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(166,209,137,.15); }
.hero-status.offline i { background: var(--red); box-shadow: 0 0 0 4px rgba(231,130,132,.15); }
.hero-status.checking i { background: var(--gold); box-shadow: 0 0 0 4px rgba(229,200,144,.15); }
.hero-mark {
  width: 92px;
  height: 92px;
  margin: 24px 0 18px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 20px 44px rgba(16,13,27,.38);
  transform: translateY(calc(var(--dissolve) * -10px)) scale(calc(1 - var(--dissolve) * .08));
  opacity: calc(1 - var(--dissolve) * .7);
}
.eyebrow { color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.hero-content .eyebrow { color: #f0f3ff; text-shadow: 0 2px 12px rgba(17,19,28,.72); }
.hero-content h1 {
  margin: 10px 0 14px;
  color: #f6f4ff;
  background: linear-gradient(180deg, #f7f1ff 10%, #d7b5f0 48%, #a57bea 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 24px rgba(36,22,62,.34));
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
}
.hero-content p { max-width: 620px; margin: 0 0 26px; color: #f2f4ff; font-size: 17px; line-height: 1.55; text-shadow: 0 2px 16px rgba(17,19,28,.75); }
.hero-actions { justify-content: center; gap: 10px; margin: 0; flex-wrap: wrap; }
.hero-ip-button { color: #fff; background: linear-gradient(155deg, rgba(39,43,59,.72), rgba(39,43,59,.48)); }
.discord-button { display: inline-flex; color: #fff; border: 1px solid rgba(165,173,255,.48); background: #5865f2; box-shadow: inset 0 1px rgba(255,255,255,.22), 0 12px 28px rgba(37,45,142,.28); }
.discord-button img { filter: brightness(0) invert(1); }
.hero-caption {
  position: absolute;
  right: 32px;
  bottom: 22px;
  left: 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: rgba(238,241,255,.72);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}
.hero-caption span:last-child { text-align: right; }
.hero-caption a { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; background: rgba(24,27,40,.28); font-size: 20px; backdrop-filter: blur(8px); }

.proof-band { width: 100%; border-bottom: 1px solid var(--line); background: var(--surface); }
.proof-band-inner { display: grid; grid-template-columns: repeat(3, 1fr); width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.proof-band-inner > div { display: flex; min-height: 94px; align-items: center; justify-content: center; gap: 13px; padding: 18px 28px; border-right: 1px solid var(--line); }
.proof-band-inner > div:first-child { border-left: 1px solid var(--line); }
.proof-band-inner img { width: 34px; height: 34px; flex: 0 0 auto; object-fit: contain; image-rendering: pixelated; }
.proof-band-inner span, .proof-band-inner strong, .proof-band-inner small { display: block; }
.proof-band-inner strong { color: var(--text); font-size: 13px; }
.proof-band-inner small { margin-top: 4px; color: var(--soft); font-size: 11px; }

.catalog-section { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 76px 0; scroll-margin-top: 130px; }
.shop-page .catalog-section { width: 100%; padding: 54px 0; }
.section-head { margin: 0 0 30px; align-items: end; gap: 24px; }
.section-head h2, .souls-band h2 { max-width: 720px; margin: 8px 0 0; color: var(--text); font-size: 34px; font-weight: 720; line-height: 1.16; }
.section-head p, .souls-band p { max-width: 650px; margin: 11px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.product-grid, .home-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.product-card, .product-card.highlight {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.product-card.highlight { border-color: rgba(153,217,205,.52); box-shadow: 0 14px 36px rgba(58,109,99,.12); }
.product-card::before, .product-card::after, .product-media::before, .product-media::after { display: none; }
.product-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 20px 46px rgba(17,19,28,.28); }
.product-media { position: relative; display: grid; aspect-ratio: 16 / 10; min-height: 0; margin: 0; overflow: hidden; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #171822; box-shadow: none; }
.product-art { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; object-position: center; background: #171822; filter: none !important; opacity: 1 !important; transition: transform .35s ease; }
.product-card:hover .product-art { transform: scale(1.018); }
.product-card .badge { position: absolute; top: 12px; right: 12px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; color: #f7f8ff; background: rgba(23,24,34,.88); box-shadow: none; backdrop-filter: blur(8px); font-size: 9px; font-weight: 780; text-transform: uppercase; }
.product-content { display: flex; min-height: 0; padding: 22px; flex: 1 0 auto; flex-direction: column; }
.product-type { color: var(--soft); font-size: 9px; font-weight: 780; text-transform: uppercase; }
.product-card h3 { margin: 7px 0 8px; color: var(--text); font-size: 23px; font-weight: 740; line-height: 1.16; }
.product-card .product-content > p { min-height: 42px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.product-card .price-line { display: flex; min-height: 63px; margin: 18px 0; align-items: flex-start; justify-content: flex-start; gap: 5px; flex-direction: column; }
.price { color: var(--text); font-size: 27px; font-weight: 730; line-height: 1; }
.price-note { margin: 0; color: var(--soft); font-size: 10px; line-height: 1.45; }
.product-card .benefits { display: grid; margin: 0 0 22px; padding: 16px 0 0; gap: 8px; border-top: 1px solid var(--line); list-style: none; }
.product-card .benefits li { position: relative; display: block; grid-template-columns: none; padding-left: 17px; color: var(--muted); font-size: 11px; line-height: 1.52; }
.product-card .benefits li::before { content: "+"; position: absolute; left: 0; color: var(--mint); background: transparent; font-weight: 800; }
.product-card .product-content > button { width: 100%; min-height: 43px; margin: auto 0 0; font-size: 12px; }
.product-card .product-content > button:disabled { opacity: .68; color: var(--muted); border-color: var(--line); background: var(--surface-soft); filter: none; }
.compact-product .product-media { aspect-ratio: 16 / 9; }
.compact-product .product-content { padding: 20px; }
.compact-product .benefits { margin-bottom: 18px; }
.kit-note { margin: 19px 0 0; color: var(--soft); font-size: 10px; line-height: 1.65; }

.souls-section { width: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.souls-band { display: grid; grid-template-columns: minmax(240px, .68fr) minmax(0, 1.32fr); width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0; align-items: center; gap: 46px; border: 0; }
.souls-copy .secondary { display: inline-flex; margin-top: 22px; }
.souls-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.souls-gallery button { min-width: 0; padding: 0 0 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: #232532; text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease; }
.souls-gallery button:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.souls-gallery img { width: 100%; aspect-ratio: 1; border-radius: 0; object-fit: cover; transition: transform .28s ease; }
.souls-gallery button:hover img { transform: scale(1.025); }
.souls-gallery strong, .souls-gallery span { display: block; padding: 0 11px; }
.souls-gallery strong { margin-top: 12px; overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.souls-gallery span { margin-top: 4px; color: var(--soft); font-size: 10px; }
.essential-section { padding-bottom: 84px; }

.command-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.command-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.command-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); min-width: 0; min-height: 108px; padding: 20px 4px; align-items: center; gap: 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text); background: transparent; box-shadow: none; text-align: left; cursor: pointer; }
.command-card:hover { padding-right: 10px; padding-left: 10px; background: rgba(198,208,245,.055); box-shadow: none; transform: none; }
.command-card img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.command-card span, .command-card strong, .command-card b, .command-card small { display: block; min-width: 0; }
.command-card strong { color: var(--mint); font-size: 13px; }
.command-card b { margin-top: 3px; color: var(--text); font-size: 12px; }
.command-card small { margin-top: 5px; color: var(--soft); font-size: 10px; line-height: 1.45; }

.catalog-heading { display: flex; min-height: 180px; padding: 26px 0 42px; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.catalog-heading h1, .commands-hero h1 { margin: 9px 0 12px; color: var(--text); font-size: 46px; font-weight: 740; line-height: 1.08; }
.catalog-heading p, .commands-hero p { max-width: 650px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.catalog-tabs { position: sticky; top: 76px; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); background: rgba(48,52,70,.94); backdrop-filter: blur(16px); }
.catalog-tabs .store-category { display: inline-flex; width: auto; min-height: 42px; padding: 9px 13px; gap: 9px; border: 1px solid transparent; border-radius: 6px; color: var(--muted); background: transparent; font-size: 12px; }
.catalog-tabs .store-category.active, .catalog-tabs .store-category:hover { color: var(--text); border-color: var(--line); background: rgba(198,208,245,.08); box-shadow: none; }
.catalog-tabs img { width: 22px; height: 22px; object-fit: contain; }
.catalog-tabs small { color: var(--soft); font-size: 9px; }
.catalog-tabs > span { margin-left: auto; color: var(--soft); font-size: 10px; }
.souls-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.commands-page { padding-bottom: 72px; }
.commands-hero { display: grid; min-height: 260px; padding: 42px 0; align-content: center; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.command-search { display: flex; width: min(620px, 100%); min-height: 52px; margin-top: 24px; padding: 0 16px; align-items: center; gap: 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow-soft); }
.command-search:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(153,217,205,.12); }
.command-search img { width: 25px; height: 25px; object-fit: contain; image-rendering: pixelated; }
.command-search input { width: 100%; min-width: 0; height: 50px; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
.command-search input::placeholder { color: var(--soft); }
.commands-page > .command-grid { margin-top: 24px; }
.command-empty { margin: 42px 0; color: var(--soft); text-align: center; }

.page-grid, .support-grid, .terms-grid { gap: 24px; }
.panel, .terms-card, .profile-card { padding: 25px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.subscription-panel { display: flex; margin-top: 12px; padding: 25px 0; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.subscription-panel h3 { margin: 8px 0 6px; color: var(--text); font-size: 21px; }
.subscription-panel p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.subscription-cancel { flex: 0 0 auto; color: #f2b8be; border-color: rgba(231,130,132,.28); }
.subscription-cancel:disabled { opacity: .58; }

.footer { width: 100%; margin: 0; padding: 0; border: 0; border-top: 1px solid var(--line); background: #292c3c; }
.footer-inner { display: flex; width: min(1240px, calc(100% - 48px)); min-height: 150px; margin: 0 auto; padding: 34px 0; align-items: center; justify-content: space-between; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 45px; height: 45px; border-radius: 6px; }
.footer strong { color: var(--text); font-size: 15px; }
.footer p { max-width: 570px; margin: 6px 0 0; color: var(--soft); font-size: 10px; line-height: 1.65; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { color: var(--muted); font-size: 11px; }
.footer-links a:hover { color: var(--text); }

.cart-drawer, .modal-backdrop { display: flex; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.cart-drawer.open, .modal-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }
.cart-panel, .login-card { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-deep); }
.cart-panel { width: min(430px, 100%); transform: translateX(28px); transition: transform .22s ease; }
.cart-drawer.open .cart-panel { transform: translateX(0); }
.login-card { width: min(440px, calc(100% - 32px)); min-height: 0; border-radius: 8px; transform: translateY(16px) scale(.985); transition: transform .22s ease; }
.modal-backdrop.open .login-card { transform: translateY(0) scale(1); }
.panel-head h2 { font-size: 24px; }
.icon-button { width: 38px; height: 38px; border-radius: 6px; color: var(--text); background: var(--surface-soft); font-size: 23px; }
.cart-notice, .cart-item, .field input, .toast { border-radius: 6px; }
.field input { color: var(--text); border: 1px solid var(--line); background: #232634; }
.toast { color: var(--text); border: 1px solid var(--line); background: #232634; font-size: 12px; }
body.modal-open { overflow: hidden; }

[data-reveal] { opacity: 1; transform: none; animation: reveal-up .5s cubic-bezier(.22,1,.36,1) var(--reveal-delay, 0ms) both; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1080px) {
  .topbar-inner { gap: 14px; }
  .nav a { padding-right: 9px; padding-left: 9px; font-size: 12px; }
  .account-button { min-width: 0; padding-right: 12px; padding-left: 12px; }
  .account-button > span, .cart-button > span { display: none; }
  .souls-band { grid-template-columns: 1fr; gap: 30px; }
  .souls-copy { max-width: 620px; }
  .souls-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .topbar, .topbar-inner { min-height: 68px; }
  .topbar-inner { position: relative; grid-template-columns: minmax(0, 1fr) auto; width: calc(100% - 28px); }
  .brand { min-width: 0; }
  .brand-icon, .brand-logo { width: 37px; height: 37px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 8px; }
  .top-actions { grid-column: 2; grid-row: 1; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: -14px;
    left: -14px;
    display: grid;
    max-height: 0;
    padding: 0 14px;
    overflow: hidden;
    gap: 2px;
    border-bottom: 1px solid transparent;
    background: rgba(41,44,60,.98);
    box-shadow: 0 18px 32px rgba(17,19,28,.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px);
    transition: max-height .25s ease, padding .25s ease, opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  body.nav-open .nav { max-height: 390px; padding-top: 10px; padding-bottom: 12px; border-bottom-color: var(--line); opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { width: 100%; min-height: 43px; justify-content: flex-start; padding: 10px 12px; font-size: 13px; }
  .app { width: calc(100% - 32px); margin-top: 30px; }
  .nebula-hero { min-height: 590px; height: calc(100svh - 68px); max-height: 690px; }
  .hero-content { padding-bottom: 76px; }
  .hero-mark { width: 80px; height: 80px; margin-top: 22px; }
  .hero-content h1 { font-size: 52px; }
  .hero-content p { max-width: 520px; font-size: 15px; }
  .proof-band-inner { grid-template-columns: 1fr; width: calc(100% - 32px); }
  .proof-band-inner > div { min-height: 76px; justify-content: flex-start; padding: 14px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-band-inner > div:first-child { border-left: 0; }
  .proof-band-inner > div:last-child { border-bottom: 0; }
  .catalog-section, .souls-band, .footer-inner { width: calc(100% - 32px); }
  .catalog-section { padding: 58px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-head h2, .souls-band h2 { font-size: 29px; }
  .product-grid, .home-products { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); }
  .product-media, .compact-product .product-media { height: 100%; aspect-ratio: auto; border-right: 1px solid var(--line); border-bottom: 0; }
  .product-art { min-height: 100%; }
  .souls-band { padding: 52px 0; }
  .souls-gallery { grid-template-columns: repeat(5, minmax(128px, 1fr)); padding-bottom: 8px; overflow-x: auto; scrollbar-width: thin; }
  .command-grid, .command-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-tabs { top: 68px; }
  .catalog-heading { min-height: 160px; }
  .catalog-heading h1, .commands-hero h1 { font-size: 38px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 24px; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 590px) {
  .account-button { display: none; }
  .cart-button { position: relative; min-width: 42px; min-height: 42px; padding: 8px; }
  .cart-button b { position: absolute; top: -4px; right: -4px; border: 2px solid var(--surface); }
  .nebula-hero { min-height: 620px; height: calc(100svh - 68px); max-height: 720px; }
  .hero-landscape { object-position: 54% center; }
  .hero-content { width: calc(100% - 30px); padding-top: 28px; padding-bottom: 82px; }
  .hero-mark { width: 72px; height: 72px; margin: 18px 0 15px; }
  .hero-content h1 { margin-top: 9px; font-size: 43px; }
  .hero-content p { max-width: 350px; margin-bottom: 22px; font-size: 14px; }
  .hero-actions { width: 100%; }
  .hero-actions .primary, .hero-actions .secondary, .hero-actions .discord-button { flex: 1 1 calc(50% - 5px); padding-right: 11px; padding-left: 11px; font-size: 11px; }
  .hero-actions .discord-button { flex-basis: 100%; }
  .hero-caption { right: 15px; bottom: 18px; left: 15px; font-size: 8px; }
  .proof-band-inner img { width: 31px; height: 31px; }
  .section-head h2, .souls-band h2 { font-size: 27px; }
  .product-card { display: flex; }
  .product-media, .compact-product .product-media { height: auto; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--line); }
  .product-content { padding: 19px; }
  .product-card h3 { font-size: 21px; }
  .product-card .product-content > p { min-height: 0; }
  .command-grid, .command-grid.compact { grid-template-columns: 1fr; }
  .command-card { min-height: 94px; }
  .catalog-heading { min-height: 170px; padding: 18px 0 30px; align-items: flex-start; flex-direction: column; justify-content: center; }
  .catalog-heading h1, .commands-hero h1 { font-size: 34px; }
  .catalog-tabs > span { display: none; }
  .catalog-tabs .store-category { flex: 1; }
  .souls-products { grid-template-columns: 1fr; }
  .commands-hero { min-height: 250px; padding: 30px 0; }
  .subscription-panel { align-items: flex-start; flex-direction: column; }
  .subscription-cancel { width: 100%; }
  .footer-brand { align-items: flex-start; }
  .footer-links { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-mark, .hero-landscape { opacity: 1; transform: none; }
}
