:root {
  color-scheme: dark;
  --bg: #06091d;
  --panel: #0d1538;
  --text: #ffffff;
  --muted: #d9d2e8;
  --line: rgba(255, 255, 255, 0.16);
  --purple: #6d8cff;
  --purple-deep: #3042b5;
  --purple-soft: rgba(109, 140, 255, 0.22);
  --moon: #fff1a8;
  --moon-soft: rgba(255, 241, 168, 0.18);
  --edge: clamp(48px, 7vw, 96px);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Josefin Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 80% 10%, rgba(109, 140, 255, 0.36), transparent 320px),
    linear-gradient(180deg, #090d2c, var(--bg));
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.particle-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 241, 168, 0.18), rgba(125, 153, 255, 0.15) 38%, transparent 72%);
  filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 180ms ease;
  mix-blend-mode: screen;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px var(--edge);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 25, 0.88);
  backdrop-filter: blur(16px);
}

main {
  position: relative;
  z-index: 1;
}

.brand,
.nav-links,
.hero-actions,
.buy-row,
.footer,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  justify-self: start;
}

.brand-logo {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(95, 124, 255, 0.55));
}

.nav-links {
  flex-wrap: wrap;
  gap: 6px;
  justify-self: center;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links .active {
  background: linear-gradient(135deg, rgba(255, 241, 168, 0.12), rgba(109, 140, 255, 0.12));
  color: white;
}

.ip-pill,
.button,
.buy-button,
.filter-button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.ip-pill {
  padding: 10px 12px;
  justify-self: end;
  background: transparent;
  color: white;
}

.ip-pill:hover,
.button:hover,
.buy-button:hover,
.filter-button:hover {
  border-color: rgba(255, 241, 168, 0.55);
  box-shadow:
    0 12px 32px rgba(109, 140, 255, 0.18),
    0 0 20px rgba(255, 241, 168, 0.12);
  transform: translateY(-3px) scale(1.02);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 620px;
  padding: 96px var(--edge) 72px;
  overflow: hidden;
  place-items: center;
  text-align: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 86%, rgba(109, 140, 255, 0.12), transparent 220px);
  content: "";
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 241, 168, 0.08), rgba(5, 8, 25, 0.9)),
    linear-gradient(180deg, rgba(109, 140, 255, 0.18), rgba(48, 66, 181, 0.36)),
    url("assets/dusk-background.png");
  background-position: center;
  background-size: cover;
  filter: saturate(1.08) contrast(1.05);
  opacity: 0.62;
}

.pixel-sparks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.pixel-sparks span {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 241, 168, 0.36);
  box-shadow: 0 0 18px rgba(255, 241, 168, 0.48), 0 0 28px rgba(109, 140, 255, 0.45);
  animation: pixelDrift 7s ease-in-out infinite;
}

.pixel-sparks span:nth-child(1) {
  top: 18%;
  left: 12%;
}

.pixel-sparks span:nth-child(2) {
  top: 36%;
  left: 78%;
  animation-delay: -1.2s;
}

.pixel-sparks span:nth-child(3) {
  top: 72%;
  left: 18%;
  animation-delay: -2.4s;
}

.pixel-sparks span:nth-child(4) {
  top: 16%;
  left: 62%;
  animation-delay: -3.1s;
}

.pixel-sparks span:nth-child(5) {
  top: 82%;
  left: 82%;
  animation-delay: -4.2s;
}

.pixel-sparks span:nth-child(6) {
  top: 52%;
  left: 8%;
  animation-delay: -5.3s;
}

.hero::after {
  position: absolute;
  inset: auto var(--edge) 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.hero-content,
.page,
.quick-grid,
.footer {
  position: relative;
}

.hero-content {
  max-width: 860px;
  align-self: center;
  justify-self: center;
  transform: translateY(18px);
}

.hero-label {
  margin: 0 auto 12px;
  font-size: clamp(58px, 9vw, 116px);
  line-height: 1;
}

.hero-title {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.22;
}

.eyebrow {
  margin: 0 0 12px;
  color: #cdd8ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-right: auto;
  margin-left: auto;
  max-width: 920px;
  margin-bottom: 20px;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.92;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.hero-copy,
.page-heading p,
.product-card p,
.info-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  margin-right: auto;
  margin-left: auto;
  max-width: 650px;
  font-size: 19px;
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.vibe-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1120px;
  margin: -34px auto 0;
  padding: 0 var(--edge);
}

.vibe-strip div {
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 241, 168, 0.06), rgba(12, 18, 48, 0.72));
  backdrop-filter: blur(12px);
  text-align: center;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.vibe-strip div:hover {
  background: linear-gradient(180deg, rgba(255, 241, 168, 0.12), rgba(24, 35, 86, 0.8));
  transform: translateY(-4px);
}

.vibe-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--moon);
  font-size: 12px;
  font-weight: 900;
}

.vibe-strip strong {
  font-size: 18px;
}

.adventure-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 44px auto 0;
  padding: 0 var(--edge);
}

.adventure-board article {
  position: relative;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 241, 168, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 241, 168, 0.07), rgba(12, 18, 48, 0.58));
  backdrop-filter: blur(12px);
  text-align: center;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.adventure-board article:hover {
  border-color: rgba(255, 241, 168, 0.36);
  box-shadow: 0 18px 48px rgba(109, 140, 255, 0.16), 0 0 26px rgba(255, 241, 168, 0.1);
  transform: translateY(-5px);
}

.adventure-board span {
  color: var(--moon);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.adventure-board h2 {
  margin: 16px auto 12px;
  max-width: 300px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.adventure-board p {
  margin: 0 auto;
  max-width: 310px;
  color: var(--muted);
  line-height: 1.6;
}

.button,
.buy-button {
  padding: 12px 16px;
}

.primary,
.buy-button {
  background: linear-gradient(135deg, #ffffff, #fff5bd);
  color: #1b0b2f;
}

.primary:hover,
.buy-button:hover {
  background: #fff7cc;
}

.discord-button {
  box-shadow: 0 0 28px rgba(109, 140, 255, 0.18);
}

.secondary {
  background: var(--purple-soft);
  color: white;
}

.secondary:hover,
.ip-pill:hover,
.filter-button:hover,
.filter-button.active {
  background: rgba(154, 176, 255, 0.24);
}

.quick-grid,
.page {
  padding: 72px var(--edge);
}

.community-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 82px var(--edge);
  text-align: center;
}

.community-section h2 {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.community-section p {
  max-width: 690px;
  margin-right: auto;
  margin-bottom: 28px;
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.category-tile,
.product-card,
.info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 48, 0.58);
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
}

.category-tile::before,
.product-card::before,
.info-panel::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  content: "";
  opacity: 0;
  transform: translateX(-80%);
  transition:
    opacity 180ms ease,
    transform 480ms ease;
}

.category-tile:hover::before,
.product-card:hover::before,
.info-panel:hover::before {
  opacity: 1;
  transform: translateX(80%);
}

.category-tile {
  min-height: 170px;
  padding: 22px;
  text-align: center;
}

.category-tile span,
.product-type {
  color: var(--moon);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-tile strong {
  display: block;
  max-width: 260px;
  margin: 44px auto 0;
  font-size: 24px;
  line-height: 1.15;
}

.page {
  min-height: calc(100vh - 180px);
}

.store-page {
  position: relative;
  overflow: hidden;
}

.store-page::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(6, 9, 29, 0.5), rgba(48, 66, 181, 0.32)),
    linear-gradient(180deg, rgba(6, 9, 29, 0.44), rgba(6, 9, 29, 0.74)),
    url("assets/store-background.png");
  background-position: center;
  background-size: cover;
  content: "";
  filter: saturate(1.08) contrast(1.02);
  opacity: 0.66;
}

.page.narrow {
  margin-right: auto;
  margin-left: auto;
  max-width: 1040px;
}

.page-heading {
  margin-right: auto;
  margin-left: auto;
  max-width: 760px;
  margin-bottom: 28px;
  text-align: center;
}

.compact-heading {
  margin-bottom: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  max-width: 1420px;
  margin: 0 auto;
  align-items: start;
}

.store-filter {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 48, 0.94);
  text-align: center;
}

.filter-button {
  width: 100%;
  padding: 13px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.store-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  padding: 22px;
  text-align: center;
}

.store-item {
  min-height: 280px;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.store-item:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(18, 28, 70, 0.68);
  box-shadow: 0 18px 42px rgba(109, 140, 255, 0.16);
  transform: translateY(-4px) scale(1.01);
}

.store-item.is-hidden {
  display: none;
}

.product-card.featured {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(12, 18, 48, 0.58);
}

.product-type {
  width: fit-content;
  margin-right: auto;
  margin-bottom: 18px;
  margin-left: auto;
}

.product-card ul {
  display: grid;
  gap: 9px;
  margin: 6px 0 24px;
  padding-left: 0;
  color: white;
  list-style-position: inside;
}

.buy-row {
  justify-content: center;
  gap: 12px;
  margin-top: auto;
}

.buy-row strong {
  font-size: 24px;
}

.info-stack {
  display: grid;
  gap: 14px;
  text-align: center;
}

.info-panel {
  padding: 24px;
}

.contact-form-panel {
  margin-top: 46px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 48, 0.58);
  backdrop-filter: blur(10px);
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: white;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font: inherit;
  text-transform: none;
}

.contact-form textarea {
  min-height: 220px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(154, 176, 255, 0.46);
  outline-offset: 2px;
}

.cart-panel {
  position: sticky;
  top: 98px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 48, 0.94);
  text-align: center;
}

.cart-items {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: left;
}

.cart-controls {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 34px 1fr 34px 72px;
  gap: 8px;
  align-items: center;
}

.cart-controls button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.cart-controls button:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(154, 176, 255, 0.24);
  transform: translateY(-2px);
}

.cart-controls span {
  color: white;
  text-align: center;
}

.cart-line span,
.empty-cart,
.checkout-note {
  color: var(--muted);
}

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

.checkout-field {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: white;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.checkout-field input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font: inherit;
  text-transform: none;
}

.checkout-field input:focus {
  outline: 2px solid rgba(154, 176, 255, 0.46);
  outline-offset: 2px;
}

.checkout-button {
  width: 100%;
  margin-top: 18px;
}

.checkout-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  padding: 24px;
  background: rgba(2, 4, 16, 0.72);
  backdrop-filter: blur(12px);
  place-items: center;
}

.product-modal.is-open {
  display: grid;
}

.product-modal-card {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(12, 18, 48, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  text-align: center;
}

.modal-close {
  display: block;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.modal-price {
  color: white;
  font-size: 26px;
  font-weight: 900;
}

.modal-details {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 0;
  color: var(--muted);
  line-height: 1.5;
  list-style: none;
}

.footer {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 36px var(--edge);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

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

.footer-links a {
  color: white;
  opacity: 0.82;
}

.footer-links a:hover {
  color: white;
  opacity: 1;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .brand,
  .nav-links,
  .ip-pill {
    justify-self: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 700px;
  }

  .vibe-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .adventure-board {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .quick-grid,
  .store-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .store-filter {
    position: relative;
    top: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cart-panel {
    position: relative;
    top: auto;
    grid-column: 1 / -1;
  }
}

@keyframes pixelDrift {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0) scale(1);
  }

  50% {
    opacity: 0.85;
    transform: translateY(-18px) scale(1.25);
  }
}

@media (max-width: 640px) {
  .nav-links {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: 660px;
    padding-top: 58px;
  }

  .product-grid,
  .quick-grid,
  .store-layout,
  .store-products,
  .store-filter {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: center;
    flex-direction: column;
  }
}
