:root {
  --bg-0: #040404;
  --bg-1: #090909;
  --bg-2: #111111;
  --text-main: #ededed;
  --text-dim: #a5a5a5;
  --accent: #fc0553;
  --edge: #1b1b1b;
  --diag-angle: 135deg;
  --bg-scroll: 0;
  --bg-drift: 0;
  --bg-pulse: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  position: relative;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: var(--bg-0);
  color: var(--text-main);
  overflow: hidden;
}

#bg-accent {
  display: none;
}

#loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 120;
  overflow: hidden;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.loader-legacy,
.loader-glitch {
  position: absolute;
  inset: 0;
}

.loader-legacy {
  display: grid;
  place-items: center;
}

[data-loader-variant] {
  display: none;
}

body[data-loader-mode="legacy"] .loader-legacy,
body[data-loader-mode="glitch404"] .loader-glitch {
  display: grid;
}

.loader-line {
  width: min(260px, 48vw);
  height: 2px;
  background: #1f1f1f;
  overflow: hidden;
  position: relative;
}

.loader-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  animation: loadline 800ms ease forwards;
}

@keyframes loadline {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.loader-glitch {
  place-items: center;
  background:
    radial-gradient(circle at 22% 24%, rgba(252, 5, 83, 0.18), transparent 40%),
    linear-gradient(160deg, #030303, #000);
}

.loader-noise,
.loader-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loader-noise {
  opacity: 0.16;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  animation: noise-jitter 180ms steps(2) infinite;
}

.loader-scan {
  opacity: 0.2;
  background: linear-gradient(to bottom, transparent, rgba(252, 5, 83, 0.35), transparent);
  transform: translateY(-100%);
  animation: scan-sweep 1500ms linear infinite;
}

.matrix-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 0.52;
  mix-blend-mode: screen;
}

.glitch-core {
  position: relative;
  text-align: center;
  width: min(700px, 90vw);
  padding: 20px;
}

.fake-error-label,
.fake-error-sub {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fake-error-label {
  color: #a6a6a6;
  font-size: 0.75rem;
}

.fake-error-sub {
  color: #8a8a8a;
  font-size: 0.72rem;
  margin-top: 8px;
}

.glitch-404 {
  margin: 6px 0 0;
  position: relative;
  display: inline-block;
  isolation: isolate;
  font-family: "Antonio", sans-serif;
  font-size: clamp(8rem, 24vw, 14rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
}

.glitch-base,
.glitch-layer {
  display: block;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.glitch-base {
  position: relative;
  z-index: 4;
  color: #f2f2f2;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.14);
  animation: text-glitch 480ms steps(2) infinite;
}

.glitch-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: rgb-layer-shift 520ms steps(2) infinite;
}

.glitch-layer-r {
  color: rgba(252, 5, 83, 0.55);
  animation-delay: -45ms;
}

.glitch-layer-g {
  color: rgba(0, 255, 120, 0.5);
  animation-delay: -90ms;
}

.glitch-layer-b {
  color: rgba(0, 214, 255, 0.5);
  animation-delay: -135ms;
}

#loader.is-burst {
  animation: loader-burst 520ms steps(2) forwards;
}

@keyframes scan-sweep {
  to {
    transform: translateY(110%);
  }
}

@keyframes noise-jitter {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(1px, -1px);
  }
  50% {
    transform: translate(-1px, 1px);
  }
  75% {
    transform: translate(1px, 1px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes text-glitch {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-3px, 2px);
  }
  40% {
    transform: translate(4px, -2px);
  }
  60% {
    transform: translate(-3px, 1px);
  }
  80% {
    transform: translate(3px, 2px);
  }
}

@keyframes rgb-layer-shift {
  0%,
  100% {
    transform: translate(-12px, -3px);
  }
  25% {
    transform: translate(10px, 4px);
  }
  50% {
    transform: translate(-8px, 2px);
  }
  75% {
    transform: translate(14px, -5px);
  }
}

@keyframes loader-burst {
  0% {
    opacity: 1;
    filter: none;
    transform: scale(1);
  }
  45% {
    opacity: 1;
    filter: contrast(170%) saturate(170%) blur(0.6px);
    transform: scale(1.01);
  }
  100% {
    opacity: 0;
    filter: contrast(210%) saturate(190%) blur(2px);
    transform: scale(1.035);
  }
}

body.is-ready #loader {
  opacity: 0;
  visibility: hidden;
}

body.is-glitch-reveal .top-ui,
body.is-glitch-reveal .scroll-progress,
body.is-glitch-reveal .panel-content {
  animation: site-glitch-shake 50ms steps(2) 3;
}

body.is-glitch-reveal .hero-title {
  animation: none;
}

.hero-title.is-rgb-flash {
  animation: hero-rgb-distort 30ms steps(2) 3;
}

.hero-title.is-rgb-flash .hero-base {
  animation: text-glitch 40ms steps(2) 2;
}

.hero-title.is-rgb-flash .hero-layer {
  opacity: 1;
  animation: hero-layer-shift 30ms steps(2) 3;
}

.hero-title.is-rgb-flash .hero-layer-r {
  animation-delay: -40ms;
}

.hero-title.is-rgb-flash .hero-layer-g {
  animation-delay: -80ms;
}

.hero-title.is-rgb-flash .hero-layer-b {
  animation-delay: -120ms;
}

@keyframes site-glitch-shake {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(4px, -3px);
  }
  50% {
    transform: translate(-4px, 3px);
  }
  75% {
    transform: translate(5px, 4px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes hero-rgb-distort {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes hero-layer-shift {
  0%,
  100% {
    transform: translate(-10px, -2px);
  }
  25% {
    transform: translate(9px, 3px);
  }
  50% {
    transform: translate(-7px, 2px);
  }
  75% {
    transform: translate(11px, -4px);
  }
}

.top-ui {
  position: fixed;
  z-index: 80;
  inset: 22px 24px auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.top-fade-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(88px, 14vh, 132px);
  z-index: 79;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.98) 0%,
    rgba(0, 0, 0, 0.78) 38%,
    rgba(0, 0, 0, 0.46) 68%,
    rgba(0, 0, 0, 0) 100%
  );
}

.brand {
  margin: 0;
  font-family: "Antonio", sans-serif;
  letter-spacing: 0.12em;
  font-size: clamp(1rem, 2.2vw, 1.32rem);
}

.status {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.scroll-progress {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  width: 5px;
  height: min(40vh, 280px);
}

.scroll-progress__track {
  position: absolute;
  inset: 0;
  background: #171717;
}

.scroll-progress__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
  transition: height 140ms linear;
}

#scroller {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.panel {
  min-height: 100vh;
  scroll-snap-align: start;
  padding: clamp(84px, 12vh, 130px) clamp(20px, 6vw, 88px) clamp(40px, 8vh, 64px);
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.panel::before {
  width: min(68vw, 980px);
  height: min(42vh, 430px);
  min-width: 420px;
  left: 34%;
  top: clamp(28px, 10vh, 120px);
  background: linear-gradient(108deg, rgba(252, 5, 83, 0.24), rgba(252, 5, 83, 0) 68%);
  -webkit-mask-image: linear-gradient(var(--diag-angle), transparent 17.5%, #000 18.1%);
  mask-image: linear-gradient(var(--diag-angle), transparent 17.5%, #000 18.1%);
  transform: translate3d(calc(var(--bg-drift) * -26px), calc(var(--bg-pulse) * 14px), 0);
  opacity: calc(0.8 + var(--bg-pulse) * 0.14);
  transition: transform 260ms ease-out, opacity 260ms ease-out;
  z-index: 0;
}

.panel::after {
  inset: 0;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.02), transparent 48%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.038) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 66px),
    radial-gradient(circle at 78% 16%, rgba(252, 5, 83, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
  background-position:
    center,
    calc(var(--bg-scroll) * 52px) calc(var(--bg-scroll) * 28px),
    calc(var(--bg-scroll) * -34px) calc(var(--bg-scroll) * 16px),
    calc(100% - var(--bg-scroll) * 36px) calc(var(--bg-scroll) * 12px),
    center;
  background-size:
    auto,
    auto,
    auto,
    auto,
    auto;
  z-index: 0;
}

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

.panel-content {
  max-width: 1150px;
  width: 100%;
  margin-inline: auto;
}

.panel-hero {
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.72) 0%, rgba(4, 4, 4, 0.76) 48%, rgba(7, 7, 7, 0.8) 100%);
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 6vw, 72px);
  overflow: visible;
}

.hero-content {
  max-width: 700px;
}

.hero-title,
.section-title {
  font-family: "Antonio", sans-serif;
  margin: 0;
  line-height: 0.96;
  letter-spacing: 0.01em;
}

.hero-title {
  font-size: clamp(2.9rem, 11vw, 7.1rem);
  text-wrap: balance;
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.hero-base,
.hero-layer {
  display: block;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.hero-base {
  position: relative;
  z-index: 4;
}

.hero-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-layer-r {
  color: rgba(252, 5, 83, 0.58);
}

.hero-layer-g {
  color: rgba(0, 255, 120, 0.5);
}

.hero-layer-b {
  color: rgba(0, 214, 255, 0.52);
}

.section-title {
  font-size: clamp(2rem, 7vw, 4.5rem);
  margin-top: 10px;
}

.hero-copy {
  max-width: 58ch;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 20px 0 0;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

.scroll-cue {
  margin-top: 30px;
  border: 1px solid #333;
  background: #0f0f0f;
  color: var(--text-main);
  border-radius: 0;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

.scroll-cue:hover {
  border-color: var(--accent);
  background: #121212;
  transform: translateY(-2px);
}

.hero-visual {
  align-self: stretch;
  display: grid;
  place-items: center;
}

.hero-geometry {
  --grid-size: 9;
  --plane-base-x: -8px;
  --plane-base-y: 30px;
  --plane-base-z: -40px;
  --cube-elev-z: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shift-x: 0px;
  --shift-y: 0px;
  --cube-flow-x: 0px;
  --cube-flow-y: 0px;
  width: min(82vw, 560px);
  aspect-ratio: 1.1;
  border: 1px solid #242424;
  position: relative;
  background: linear-gradient(140deg, #0b0b0b, #060606);
  overflow: hidden;
  will-change: transform;
}

.scene-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-line {
  fill: none;
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
  stroke-linecap: round;
}

.scene-line--grid {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.1;
}

.scene-line--cube {
  stroke: rgba(228, 228, 228, 0.78);
  stroke-width: 1.5;
}

.scene-line--accent {
  stroke: rgba(252, 5, 83, 0.95);
  stroke-width: 1.7;
}

.scene-cell-highlight {
  fill: rgb(255, 255, 255);
  pointer-events: none;
}

.hero-geometry::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid #1d1d1d;
  clip-path: polygon(0 8%, 8% 0, 92% 0, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0 92%);
}

.hero-geometry::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(252, 5, 83, 0.18), transparent 36%),
    linear-gradient(330deg, rgba(252, 5, 83, 0.08), transparent 44%);
}

.mesh-plane {
  position: absolute;
  left: 12%;
  top: 12%;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size:
    calc(100% / var(--grid-size)) 100%,
    100% calc(100% / var(--grid-size));
  transform: perspective(920px) rotateX(calc(60deg + var(--tilt-y))) rotateZ(calc(-36deg + var(--tilt-x))) translate3d(calc(var(--plane-base-x) + var(--shift-x)), calc(var(--plane-base-y) + var(--shift-y)), var(--plane-base-z));
  transform-style: preserve-3d;
  opacity: 0.45;
  animation: mesh-plane-shift 9.4s ease-in-out infinite;
}

.block-mesh {
  position: absolute;
  left: 12%;
  top: 12%;
  width: 76%;
  aspect-ratio: 1;
  transform: perspective(920px) rotateX(calc(60deg + var(--tilt-y))) rotateZ(calc(-36deg + var(--tilt-x))) translate3d(calc(var(--plane-base-x) + var(--shift-x) + var(--cube-flow-x)), calc(var(--plane-base-y) + var(--shift-y) + var(--cube-flow-y)), calc(var(--plane-base-z) + var(--cube-elev-z)));
  transform-style: preserve-3d;
  animation: mesh-wobble 9.4s ease-in-out infinite;
}

.cube {
  --size: 40px;
  --height: var(--size);
  --edge-color: #2d2d2d;
  --float-duration: 8s;
  --float-delay: 0s;
  --float-x: 2px;
  --float-y: -2px;
  position: absolute;
  width: var(--size);
  height: var(--size);
  transform-style: preserve-3d;
  animation: cube-float var(--float-duration) ease-in-out infinite;
  animation-delay: var(--float-delay);
}

.cube-top {
  position: absolute;
  inset: 0;
  border: 1px solid var(--edge-color);
  transform: translateZ(var(--height));
  backface-visibility: hidden;
  box-sizing: border-box;
}

.cube-edge {
  position: absolute;
  width: var(--height);
  height: 2px;
  background: var(--edge-color);
  transform-origin: left center;
  transform: rotateY(90deg) translateZ(0.6px);
  opacity: 0.95;
}

.cube-edge--tl {
  left: 0;
  top: 0;
}

.cube-edge--tr {
  left: 100%;
  top: 0;
}

.cube-edge--bl {
  left: 0;
  top: 100%;
}

.cube-edge--br {
  left: 100%;
  top: 100%;
}

@keyframes mesh-plane-shift {
  0%,
  100% {
    transform: perspective(920px) rotateX(calc(60deg + var(--tilt-y))) rotateZ(calc(-36deg + var(--tilt-x))) translate3d(calc(var(--plane-base-x) + var(--shift-x)), calc(var(--plane-base-y) + var(--shift-y)), var(--plane-base-z));
    opacity: 0.45;
  }
  50% {
    transform: perspective(920px) rotateX(calc(62deg + var(--tilt-y))) rotateZ(calc(-34deg + var(--tilt-x))) translate3d(calc(var(--plane-base-x) + 12px + var(--shift-x)), calc(var(--plane-base-y) - 8px + var(--shift-y)), calc(var(--plane-base-z) + 10px));
    opacity: 0.62;
  }
}

@keyframes mesh-wobble {
  0%,
  100% {
    transform: perspective(920px) rotateX(calc(60deg + var(--tilt-y))) rotateZ(calc(-36deg + var(--tilt-x))) translate3d(calc(var(--plane-base-x) + var(--shift-x) + var(--cube-flow-x)), calc(var(--plane-base-y) + var(--shift-y) + var(--cube-flow-y)), calc(var(--plane-base-z) + var(--cube-elev-z)));
  }
  50% {
    transform: perspective(920px) rotateX(calc(62deg + var(--tilt-y))) rotateZ(calc(-34deg + var(--tilt-x))) translate3d(calc(var(--plane-base-x) + 12px + var(--shift-x) + var(--cube-flow-x)), calc(var(--plane-base-y) - 8px + var(--shift-y) + var(--cube-flow-y)), calc(var(--plane-base-z) + 10px + var(--cube-elev-z)));
  }
}

@keyframes cube-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(var(--float-x), var(--float-y));
  }
}

.panel-mods {
  background: linear-gradient(165deg, rgba(9, 9, 9, 0.78), rgba(5, 5, 5, 0.82));
}

.mods-grid {
  margin-top: 30px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mods-grid-shell {
  position: relative;
}

.mods-grid-loading {
  position: absolute;
  inset: 30px 0 0;
  z-index: 12;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #1f1f1f;
  background: linear-gradient(160deg, rgba(10, 10, 10, 0.94), rgba(6, 6, 6, 0.9));
  color: #d8d8d8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.73rem;
}

.mods-grid-loading__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: mods-grid-spin 0.75s linear infinite;
}

.panel-mods.is-metrics-loading .mods-grid-loading {
  display: inline-flex;
}

.panel-mods.is-metrics-loading .mods-grid {
  opacity: 0;
  pointer-events: none;
}

@keyframes mods-grid-spin {
  to {
    transform: rotate(360deg);
  }
}

.mod-card {
  --glow-start-x: -26%;
  --glow-start-y: 20%;
  --glow-mid-x: 18%;
  --glow-mid-y: -12%;
  --glow-end-x: -26%;
  --glow-end-y: 20%;
  --glow-start-scale: 0.84;
  --glow-mid-scale: 1.03;
  --glow-end-scale: 0.84;
  --glow-duration: 2600ms;
  --glow-opacity: 0.2;
  background: linear-gradient(160deg, #0f0f0f, #0a0a0a);
  border: 1px solid #1f1f1f;
  border-radius: 0;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  overflow: hidden;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.mod-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 22%, rgba(252, 5, 83, 0.3), rgba(252, 5, 83, 0) 46%),
    radial-gradient(circle at 82% 78%, rgba(252, 5, 83, 0.22), rgba(252, 5, 83, 0) 52%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 58%);
  opacity: 0;
  transform: translateY(14px) scale(1.03);
  transition: opacity 260ms ease, transform 320ms ease;
  pointer-events: none;
}

.mod-card::after {
  content: "";
  position: absolute;
  inset: -35% -22%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(252, 5, 83, var(--glow-opacity)), rgba(252, 5, 83, 0) 64%);
  transform: translate3d(var(--glow-start-x), var(--glow-start-y), 0) scale(var(--glow-start-scale));
  transition: opacity 260ms ease;
}

.mod-card > :not(.mod-actions-layer):not(.mod-download-badge) {
  position: relative;
  z-index: 2;
  transition: opacity 220ms ease, transform 260ms ease;
}

.mod-card img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid #252525;
}

.mod-card h3 {
  margin: 16px 0 8px;
  font-size: 1.03rem;
}

.mod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.mod-tag {
  padding: 3px 8px;
  border: 1px solid #2a2a2a;
  background: rgba(255, 255, 255, 0.03);
  color: #d6d6d6;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.mod-card p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.45;
  font-size: 0.92rem;
}

.mod-download-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  padding: 5px 9px;
  border: 1px solid #2b2b2b;
  background: rgba(0, 0, 0, 0.7);
  color: #d8d8d8;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.mod-download-badge.is-loading {
  color: #9a9a9a;
}

.mod-download-icon {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.mod-download-icon svg {
  width: 12px;
  height: 12px;
  display: block;
  fill: currentColor;
}

.mod-download-value {
  font-variant-numeric: tabular-nums;
}

.mod-actions-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px;
  isolation: isolate;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 0s linear 240ms;
}

.mod-actions-layer::before,
.mod-actions-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mod-actions-layer::before {
  z-index: 0;
  background: linear-gradient(160deg, rgba(3, 3, 3, 0.96), rgba(7, 7, 7, 0.92));
}

.mod-actions-layer::after {
  inset: -35% -22%;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(252, 5, 83, var(--glow-opacity)), rgba(252, 5, 83, 0) 64%);
  transform: translate3d(var(--glow-start-x), var(--glow-start-y), 0) scale(var(--glow-start-scale));
  transition: opacity 260ms ease;
}

.mod-actions-layer > * {
  position: relative;
  z-index: 2;
}

.mod-actions-divider {
  width: 1px;
  height: min(58%, 122px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(252, 5, 83, 0.9), rgba(255, 255, 255, 0.08));
  box-shadow: 0 0 10px rgba(252, 5, 83, 0.28);
}

.mod-action {
  min-height: 106px;
  border: 1px solid rgba(252, 5, 83, 0.26);
  background: rgba(5, 5, 5, 0.58);
  color: #eaeaea;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 8px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.mod-action:hover {
  border-color: var(--accent);
  background: rgba(8, 8, 8, 0.82);
  transform: translateY(-2px);
}

.mod-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.mod-action-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mod-action-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  display: block;
}

.mod-action-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mod-card:is(:hover, .is-action-open)::before {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mod-card:is(:hover, .is-action-open)::after {
  opacity: 1;
  animation: mod-card-sweep var(--glow-duration) ease-in-out infinite;
}

.mod-card:is(:hover, .is-action-open) > :not(.mod-actions-layer):not(.mod-download-badge) {
  opacity: 0;
  transform: scale(0.995);
}

.mod-card:is(:hover, .is-action-open) .mod-actions-layer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.mod-card:is(:hover, .is-action-open) .mod-actions-layer::after {
  opacity: 1;
  animation: mod-card-sweep var(--glow-duration) ease-in-out infinite;
}

@keyframes mod-card-sweep {
  0% {
    transform: translate3d(var(--glow-start-x), var(--glow-start-y), 0) scale(var(--glow-start-scale));
  }
  50% {
    transform: translate3d(var(--glow-mid-x), var(--glow-mid-y), 0) scale(var(--glow-mid-scale));
  }
  100% {
    transform: translate3d(var(--glow-end-x), var(--glow-end-y), 0) scale(var(--glow-end-scale));
  }
}

.mod-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: linear-gradient(160deg, #121212, #090909);
}

.panel-blueprint {
  background: linear-gradient(135deg, rgba(7, 7, 7, 0.78), rgba(17, 17, 17, 0.82));
}

.support-intro {
  margin: 14px 0 0;
  max-width: 62ch;
  color: var(--text-dim);
  line-height: 1.6;
}

.support-grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-card {
  border: 1px solid #242424;
  background:
    linear-gradient(160deg, rgba(16, 16, 16, 0.95), rgba(8, 8, 8, 0.95));
  border-radius: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.support-card__index {
  font-family: "Antonio", sans-serif;
  font-size: 1.3rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.support-card h3 {
  margin: 14px 0 8px;
  font-size: 1.06rem;
}

.support-card p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.58;
}

.support-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #2d2d2d;
  background: rgba(10, 10, 10, 0.84);
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.68rem;
  transition: border-color 170ms ease, transform 170ms ease, background 170ms ease;
}

.support-link:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.support-link--primary {
  border-color: rgba(252, 5, 83, 0.56);
  background: linear-gradient(150deg, rgba(252, 5, 83, 0.24), rgba(252, 5, 83, 0.08));
}

.support-curiosity {
  margin-top: 14px;
  padding: 12px 80px 12px 12px;
  border: 1px dashed rgba(252, 5, 83, 0.5);
  background:
    radial-gradient(circle at 10% 15%, rgba(252, 5, 83, 0.15), transparent 45%),
    linear-gradient(135deg, rgba(14, 14, 14, 0.92), rgba(8, 8, 8, 0.92));
  position: relative;
  overflow: hidden;
}

.support-curiosity::before {
  content: "\1F914";
  position: absolute;
  right: -26px;
  bottom: -22px;
  z-index: 2;
  font-size: clamp(3.6rem, 8.2vw, 5.8rem);
  line-height: 1;
  opacity: 0.76;
  filter: drop-shadow(0 0 10px rgba(252, 5, 83, 0.25));
  transform-origin: 48% 72%;
  pointer-events: none;
  animation: curiosity-think 2.9s ease-in-out infinite;
}

.support-curiosity::after {
  content: "? ? ?";
  position: absolute;
  right: 24px;
  top: 8px;
  z-index: 3;
  font-family: "Antonio", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.34);
  transform: rotate(-8deg);
  pointer-events: none;
  animation: curiosity-drift 2.8s ease-in-out infinite;
}

.support-curiosity__lead {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #d8d8d8;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.support-curiosity__cta {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(252, 5, 83, 0.7);
  background: rgba(252, 5, 83, 0.1);
  color: #fff;
  text-decoration: none;
  font-family: "Antonio", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
  animation: curiosity-bob 1.8s ease-in-out infinite;
}

.support-curiosity__cta:hover,
.support-curiosity__cta:focus-visible {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(252, 5, 83, 0.95);
  background: rgba(252, 5, 83, 0.17);
  box-shadow: 0 0 0 2px rgba(252, 5, 83, 0.16);
}

.support-curiosity__icon {
  display: inline-block;
  font-size: 0.98rem;
}

.support-curiosity__icon--tail {
  animation: curiosity-wink 1.1s steps(2) infinite;
}

@keyframes curiosity-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes curiosity-think {
  0%,
  100% {
    transform: translateY(0) rotate(-7deg) scale(1);
  }
  45% {
    transform: translateY(-4px) rotate(-1deg) scale(1.04);
  }
  70% {
    transform: translateY(-2px) rotate(4deg) scale(1.01);
  }
}

@keyframes curiosity-drift {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-2px) rotate(-4deg);
    opacity: 0.7;
  }
}

@keyframes curiosity-wink {
  0%,
  80%,
  100% {
    transform: translateY(0) rotate(0);
  }
  40% {
    transform: translateY(-1px) rotate(-9deg);
  }
}

.support-note {
  margin: 16px 0 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.support-note a {
  color: var(--text);
}

.support-note a:hover {
  color: var(--accent);
}

.panel-footer {
  background:
    linear-gradient(140deg, rgba(5, 5, 5, 0.78), rgba(13, 13, 13, 0.82));
}

.footer-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 5vw, 54px);
  align-items: center;
}

.profile {
  width: clamp(130px, 19vw, 220px);
  border-radius: 0;
  border: 1px solid #242424;
}

.footer-text p {
  max-width: 60ch;
  color: var(--text-dim);
  line-height: 1.55;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 540ms ease, transform 540ms ease;
}

.panel.is-visible .reveal {
  opacity: 1;
  transform: translateY(0);
}

.panel.is-visible .reveal:nth-child(2) {
  transition-delay: 70ms;
}

.panel.is-visible .reveal:nth-child(3) {
  transition-delay: 140ms;
}

.panel.is-visible .reveal:nth-child(4) {
  transition-delay: 210ms;
}

@media (max-width: 1120px) {
  .mods-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  #scroller {
    scroll-snap-type: y proximity;
  }

  .panel {
    align-items: flex-start;
    overflow: visible;
  }

  .panel::after {
    box-shadow:
      inset 0 116px 98px -94px rgba(0, 0, 0, 0.96),
      inset 0 -116px 98px -94px rgba(0, 0, 0, 0.96);
  }

  .panel + .panel::after {
    box-shadow:
      inset 0 132px 108px -100px rgba(0, 0, 0, 0.985),
      inset 0 -116px 98px -94px rgba(0, 0, 0, 0.96);
  }

  .panel:first-of-type::after {
    box-shadow: inset 0 -116px 98px -94px rgba(0, 0, 0, 0.96);
  }

  .panel:last-of-type::after {
    box-shadow: inset 0 132px 108px -100px rgba(0, 0, 0, 0.985);
  }

  .panel-hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-top: 8px;
  }

  .hero-geometry {
    width: min(92vw, 520px);
  }

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

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

  .support-curiosity {
    padding-right: 70px;
  }

  .support-curiosity::before {
    right: -22px;
    bottom: -18px;
    font-size: clamp(3.2rem, 13vw, 4.7rem);
  }

  .support-curiosity::after {
    right: 14px;
    top: 6px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .profile {
    width: 140px;
  }
}

@media (max-width: 600px) {
  .status {
    display: none;
  }

  .cube {
    --size: 32px;
    --height: var(--size);
  }

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

  .mod-action {
    min-height: 90px;
    gap: 7px;
    padding: 8px 6px;
  }

  .mod-action-icon,
  .mod-action-icon svg {
    width: 20px;
    height: 20px;
  }

  .mod-action-label {
    font-size: 0.64rem;
  }

  .support-curiosity {
    padding-right: 58px;
  }

  .support-curiosity::before {
    right: -16px;
    bottom: -12px;
    font-size: 3.1rem;
    opacity: 0.68;
  }

  .support-curiosity::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-curiosity::before,
  .support-curiosity::after,
  .support-curiosity__cta,
  .support-curiosity__icon--tail {
    animation: none;
  }
}
