@font-face {
  font-family: Manrope;
  src: url("manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #090910;
  --surface: #181629c2;
  --line: #30304a;
  --text: #edf3ff;
  --muted: #a9b2c8;
  --accent: #b9adff;
  --accent-light: #ede7ff;
  --accent-ice: #dbeafe;
  --surface-highlight: #ded4ff18;
  --glass-shadow: 0 1.2rem 3rem #03020d52, inset 0 1px #e6ddff12;
  --shell: 80rem;
  --gutter: clamp(1rem, 4.7vw, 4.5rem);
  --header-height: 4.5rem;
  font-family: Manrope, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 0;
  background:
    radial-gradient(ellipse 52rem 44rem at 92% 19rem, #34225362, transparent 78%),
    radial-gradient(ellipse 44rem 47rem at 6% 62rem, #2119536b, transparent 76%),
    radial-gradient(ellipse 54rem 52rem at 89% 104rem, #29205f55, transparent 76%),
    radial-gradient(ellipse 49rem 48rem at 7% 100%, #242a544a, transparent 80%),
    var(--background);
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
::selection { color: #18102f; background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.solar-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

.shell {
  width: min(var(--shell), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.icon {
  --solar-secondary-color: #5834d4;
  --solar-secondary-opacity: 0.6;
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
  color: var(--accent-ice);
  vertical-align: middle;
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  inset: 0.875rem auto auto 1rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  border-radius: 0.45rem;
  color: #18102f;
  background: var(--accent);
  font-weight: 800;
}

.site-header {
  position: sticky;
  z-index: 4;
  top: 0;
  border-bottom: 1px solid #26233a;
  background: #10101abb;
  backdrop-filter: blur(18px) saturate(145%);
  transition: background 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  background: #0d0c17ec;
  box-shadow: 0 0.5rem 1.5rem #0003;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: calc(var(--header-height) - 1px);
}

.brand {
  display: block;
  width: clamp(5.6rem, 8vw, 7.1rem);
  justify-self: start;
  border-radius: 0.45rem;
}

.brand img {
  width: 100%;
  height: auto;
  border-radius: inherit;
  transition: transform 220ms ease;
}

.brand:hover img { transform: translateY(-2px); }

.site-nav {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.7rem, 2.2vw, 2rem);
}

.nav-links a, .footer-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
  transition: color 160ms ease;
}

.nav-links a { padding-block: 0.75rem; }
.site-header:not(.is-scrolled) .nav-links a[href="#top"] { color: var(--text); }
.nav-links a:hover, .footer-nav a:hover { color: var(--accent); }
.nav-links .nav-about {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #c3b5ff30;
  border-radius: 2rem;
  padding: 0.53rem 0.78rem;
  color: var(--accent-ice);
  background: #d2c5ff0f;
}
.nav-links .nav-about:hover { background: #6c4fa742; }

.nav-product, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  gap: 0.48rem;
  border: 1px solid #5e4d83;
  border-radius: 0.72rem;
  padding: 0.5rem 0.8rem;
  color: var(--accent);
  background: #211a3c9c;
  font-size: 0.875rem;
  font-weight: 790;
  transition: background 180ms ease, border-color 180ms ease;
}

.nav-product:hover, .menu-toggle:hover { border-color: #9f85d7; background: #342655; }
.menu-toggle { display: none; width: 2.75rem; padding: 0; font-size: 1.12rem; }
.menu-toggle .menu-close-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close-icon { display: block; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(31rem, 39.6vw, 36rem);
  margin-top: clamp(1rem, 2vw, 1.7rem);
  border: 1px solid #a49acb56;
  border-radius: clamp(1.15rem, 2vw, 1.75rem);
  background: #131021;
  box-shadow: 0 2rem 5rem #03020b9e, 0 0 4rem #6b4ebd27;
}

.hero-picture, .hero::after { position: absolute; inset: 0; z-index: -1; }

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
  filter: brightness(1.18) saturate(0.95);
  animation: hero-image-in 1.35s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero::after {
  content: "";
  background:
    linear-gradient(90deg, #0a081af5 0%, #0b091bd6 23%, #110d2577 41%, transparent 67%),
    linear-gradient(0deg, #0b081ab0, transparent 23%),
    linear-gradient(130deg, #583d9130, transparent 43%);
  box-shadow: inset 0 1px #e6ddff29;
  pointer-events: none;
}

.hero-inner { padding: clamp(3.75rem, 4.8vw, 4.65rem) clamp(1.25rem, 4.5vw, 4.5rem); }
.hero-content { max-width: 43rem; }

.hero-caption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #d1d9ff4a;
  border-radius: 1.5rem;
  padding: 0.52rem 0.72rem;
  color: var(--accent-ice);
  background: #171325c4;
  backdrop-filter: blur(12px);
  font-size: 0.81rem;
  font-weight: 720;
}

.hero-caption span { color: #b4b9d0; }

.hero-label, .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-label {
  display: inline-flex;
  border: 1px solid #b5a0ff65;
  border-radius: 1.4rem;
  padding: 0.43rem 0.65rem;
  background: #211b3dc4;
  backdrop-filter: blur(13px);
  letter-spacing: 0.09em;
}

.hero h1 {
  margin-top: 1.35rem;
  font-size: clamp(3.8rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.084em;
}

.hero h1 span { color: var(--accent); }

@supports (background-clip: text) {
  .hero h1 span {
    color: transparent;
    background: linear-gradient(110deg, #dcecff 3%, #bfadff 60%, #a88bf4 100%);
    background-clip: text;
  }
}

.hero-description {
  max-width: 29rem;
  margin-top: 1.65rem;
  color: #d2dbec;
  font-size: clamp(1rem, 1.38vw, 1.18rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero-content > * { animation: hero-content-in 640ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.hero-content h1 { animation-delay: 70ms; }
.hero-content .hero-description { animation-delay: 145ms; }
.hero-content .hero-actions { animation-delay: 215ms; }

@keyframes hero-image-in {
  from { transform: scale(1.055); }
  to { transform: scale(1); }
}

@keyframes hero-content-in {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.56rem;
  min-height: 3.2rem;
  border: 1px solid transparent;
  border-radius: 0.76rem;
  padding: 0.72rem 1.15rem;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button .icon { font-size: 1rem; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button-primary {
  color: #f5f1ff;
  border-color: #ab92ff8c;
  background: linear-gradient(135deg, #6d48c5, #503394 76%);
  box-shadow: 0 0.35rem 1.4rem #43228e60, inset 0 1px #ecdeff33;
}
.button-primary .icon { --solar-secondary-color: #d0c1ff; --solar-secondary-opacity: 0.68; }
.button-primary:hover { background: linear-gradient(135deg, #7857cf, #5b3eaa 76%); box-shadow: 0 0.35rem 1.5rem #8765ff65; }
.button-secondary { color: var(--text); border-color: #b9b3ed5c; background: #29233e87; backdrop-filter: blur(12px); }
.button-secondary:hover { background: #3b3054d9; border-color: #c2b6f9a6; }

.catalog { padding-block: clamp(3.25rem, 4.4vw, 4.4rem) clamp(4.5rem, 7vw, 7.25rem); }

.catalog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.35rem;
  margin-bottom: 1.95rem;
}

.catalog h2 {
  margin-top: 0.48rem;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.071em;
}

.section-intro { margin-top: 0.72rem; color: var(--muted); line-height: 1.65; }

.filters {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  align-self: flex-end;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.24rem;
  background: #181629c2;
  box-shadow: inset 0 1px var(--surface-highlight);
  backdrop-filter: blur(12px);
}

.filters button {
  min-height: 2.4rem;
  border: 1px solid transparent;
  border-radius: 0.57rem;
  padding: 0.35rem 0.83rem;
  color: var(--muted);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 780;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { border-color: #6f59aa; background: #38266ccf; color: var(--accent); }

.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
}

.mod-gallery { margin-top: clamp(2rem, 4.8vw, 3.75rem); }
.mod-gallery > h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.045em;
}

.mod-card {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: linear-gradient(170deg, #5f4c882b, transparent 70%), var(--surface);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(15px) saturate(130%);
  transition: box-shadow 230ms ease, border-color 230ms ease, transform 230ms ease;
}

.mod-card:focus-within { border-color: #ab94df; }

@media (hover: hover) {
  .mod-card:hover { border-color: #7b63b0; box-shadow: 0 0.75rem 2rem #05031280; transform: translateY(-4px); }
  .mod-card:hover .mod-image img { transform: scale(1.055); }
}

.mod-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.76;
  border-bottom: 1px solid #35304e;
  background: #201a31;
}

.mod-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  transition: transform 440ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.game-tag {
  position: absolute;
  inset: 0.85rem auto auto 0.85rem;
  border: 1px solid #ae98eb80;
  border-radius: 0.35rem;
  padding: 0.31rem 0.52rem;
  color: #e5dfff;
  background: #1d1535dc;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
}

.mod-body { display: flex; flex-direction: column; flex: 1; padding: 1.22rem 1.3rem 1.16rem; }

.mod-type {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.mod-body :is(h3, h4) {
  margin: 0.43rem 0 0;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mod-description {
  flex: 1;
  margin-block: 0.62rem 1rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.62;
}

.mod-details {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  min-height: 2.7rem;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 0.8rem 0 0;
  color: var(--accent);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 790;
  text-align: left;
  transition: color 170ms ease;
}

.mod-details:hover { color: var(--accent-light); text-decoration: underline; text-underline-offset: 0.25em; }

.catalog-empty {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  background: linear-gradient(140deg, #7251b525, transparent), var(--surface);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(15px);
}
.catalog-empty p { margin-top: 0.3rem; color: var(--muted); line-height: 1.5; }
.empty-icon {
  display: grid;
  width: 2.8rem;
  aspect-ratio: 1;
  flex: none;
  place-items: center;
  border: 1px solid #b9a5ff59;
  border-radius: 0.8rem;
  background: #281e4d;
  font-size: 1.17rem;
}

.product-section { margin-bottom: clamp(4rem, 7vw, 7rem); }

.site-footer { border-top: 1px solid var(--line); background: #100e19a8; backdrop-filter: blur(16px); }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 6.5rem;
  padding-block: 1.35rem;
}

.footer-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.45rem 1.65rem; }
.footer-nav a[aria-current="page"] { color: var(--accent-ice); }

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 0.55rem 1.5rem;
  border-top: 1px solid var(--line);
  padding-block: 1rem 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-credit { color: var(--accent-ice); font-weight: 750; white-space: nowrap; }

.legal-home { justify-self: end; }
.legal-main { max-width: 54rem; padding-block: clamp(2rem, 6vw, 5rem); }

.legal-panel {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 5vw, 3.25rem);
  background: linear-gradient(155deg, #6c52a82b, transparent 65%), var(--surface);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px);
  animation: hero-content-in 480ms ease-out both;
}

.legal-panel h1 {
  font-size: clamp(2.3rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.065em;
}

.legal-panel section { margin-top: 1.35rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.legal-panel h2 { font-size: clamp(1.15rem, 2.8vw, 1.4rem); letter-spacing: -0.026em; }
.legal-panel p { max-width: 70ch; margin-top: 0.45rem; color: var(--muted); line-height: 1.65; }
.legal-panel a { color: var(--accent-ice); text-decoration: underline; text-underline-offset: 0.2em; }
.legal-panel a:hover { color: var(--accent); }

.back-to-top, .dialog-close {
  display: inline-grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid #564971;
  border-radius: 0.5rem;
  color: var(--accent);
  background: #211936aa;
  transition: background 170ms ease, border-color 170ms ease;
}

.back-to-top { justify-self: end; }
.back-to-top:hover, .dialog-close:hover { border-color: #9b84ce; background: #332550; }

.details-dialog {
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  border: 1px solid #675587;
  border-radius: 1rem;
  padding: 0;
  color: var(--text);
  background: #1b182fe6;
  box-shadow: 0 1.5rem 6rem #0009;
  backdrop-filter: blur(18px);
}

.details-dialog.is-media { width: min(54rem, calc(100% - 2rem)); }

.details-dialog[open] { animation: hero-content-in 230ms ease-out both; }
.details-dialog::backdrop { background: #05040bce; backdrop-filter: blur(5px); }
.dialog-content { position: relative; padding: clamp(1.35rem, 6vw, 2.5rem); }
.dialog-close { position: absolute; top: 0.9rem; right: 0.9rem; }
.dialog-content .eyebrow { padding-right: 2.4rem; }
.dialog-content h2 { margin-block: 0.55rem 0.8rem; font-size: clamp(1.9rem, 6vw, 2.7rem); font-weight: 800; letter-spacing: -0.06em; }
.dialog-content [data-dialog-body] { color: var(--muted); line-height: 1.65; }
.detail-note { border-top: 1px solid #4e4268; margin-top: 1.1rem; padding-top: 1.1rem; }
.detail-media { margin: 0; }
.detail-media img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 0.75rem; }
.detail-media figcaption { margin-top: 0.65rem; }

.reveal-ready { opacity: 0; translate: 0 1rem; transition: opacity 550ms ease, translate 550ms cubic-bezier(0.2, 0.75, 0.25, 1); }
.reveal-ready.is-visible, .reveal-ready:focus-within { opacity: 1; translate: 0 0; }

@media (max-width: 930px) {
  .hero-image { object-position: 57% 53%; }
  .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --header-height: 4.1rem; }
  .header-inner { display: flex; justify-content: space-between; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    padding: 0.65rem var(--gutter) 1rem;
    border-bottom: 1px solid var(--line);
    background: #151325f5;
    box-shadow: 0 1rem 2rem #0005;
  }
  .site-nav.is-open { display: grid; grid-template-columns: 1fr; animation: hero-content-in 180ms ease-out both; }
  .nav-links { align-items: stretch; flex-direction: column; gap: 0; }
  .nav-links a { border-bottom: 1px solid var(--line); }
  .nav-links .nav-about { align-self: start; margin-top: 0.55rem; }
  .nav-product { justify-self: start; }
  .catalog-heading { align-items: flex-start; flex-direction: column; }
  .filters { align-self: flex-start; }
}

@media (max-width: 600px) {
  .hero { min-height: 37rem; align-items: start; }
  .hero-inner { padding-block: 2.2rem 4rem; }
  .hero-picture { inset: 9.4rem 0 0; }
  .hero-image { object-position: 72% 50%; }
  .hero::after {
    background:
      linear-gradient(180deg, #131021 0%, #121023 24%, #100c22a8 43%, transparent 73%),
      linear-gradient(90deg, #0b081a70, #0b081a16 90%),
      linear-gradient(0deg, #0b0816aa, transparent 23%);
  }
  .hero h1 { font-size: clamp(2.85rem, 11vw, 4.7rem); letter-spacing: -0.078em; }
  .hero-description { max-width: 23rem; margin-top: 1.2rem; }
  .hero-actions { margin-top: 1.35rem; }
  .hero-actions .button { padding-inline: 0.82rem; }
  .hero-caption { right: 0.82rem; bottom: 0.8rem; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-nav { justify-content: flex-start; grid-column: 1 / -1; grid-row: 2; }
  .footer-legal { flex-direction: column; }
}

@media (max-width: 530px) {
  .mod-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 390px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: clamp(2.4rem, 13vw, 3.25rem); }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal-ready { opacity: 1; translate: none; }
}
