:root {
  color-scheme: dark;
  --bg: #120f0f;
  --bg-raised: #1b1716;
  --ink: #f2ede6;
  --muted: #b9afa6;
  --line: rgba(242, 237, 230, 0.16);
  --red: #b52522;
  --red-bright: #e03a32;
  --amber: #c4a15f;
  --green: #798b72;
  --shadow: rgba(0, 0, 0, 0.46);
  --compact-font: Compacta, "Compacta Bold", "Arial Narrow", Impact, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(242, 237, 230, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 15, 15, 0.9), rgba(18, 15, 15, 0.66)),
    rgba(18, 15, 15, 0.72);
  backdrop-filter: blur(10px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-logo {
  display: grid;
  gap: 0;
  font-family: var(--compact-font);
  font-stretch: condensed;
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
}

.brand-logo span:first-child {
  color: var(--red-bright);
  font-size: 1.15rem;
  -webkit-text-stroke: 0.4px rgba(255, 248, 235, 0.7);
  text-shadow: 1px 1px 0 #120f0f, 2px 2px 0 rgba(0, 0, 0, 0.8);
}

.brand-logo span:last-child {
  color: #c7c3bd;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 0.7rem;
  text-align: center;
  text-shadow: 1px 1px 0 #050404;
}

.brand-mark {
  width: 12px;
  height: 28px;
  background: var(--red-bright);
  box-shadow: 7px 7px 0 var(--amber);
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(18px, 3.35vw, 52px) 76px;
  isolation: isolate;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #040303;
}

.hero-background::before,
.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-background::before {
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.44) 100%),
    linear-gradient(90deg, rgba(18, 15, 15, 0.96) 0%, rgba(18, 15, 15, 0.7) 40%, rgba(18, 15, 15, 0.18) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(18, 15, 15, 0) 34%);
}

.hero-background::after {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      rgba(0, 0, 0, 0.055) 2px,
      rgba(0, 0, 0, 0.055) 4px
    ),
    linear-gradient(115deg, rgba(181, 37, 34, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
  opacity: 0.42;
  animation: crtFlicker 5.6s steps(2, end) infinite;
}

.hero-background.is-switching::after {
  opacity: 0.72;
  animation: signalPulse 520ms steps(2, end);
}

.crt-noise {
  position: absolute;
  inset: -18%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.4px),
    radial-gradient(circle at 42% 74%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.3px),
    radial-gradient(circle at 88% 66%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.2px);
  background-size: 41px 47px, 67px 61px, 83px 71px, 109px 97px;
  mix-blend-mode: screen;
  animation: noiseDrift 1.45s steps(3, end) infinite;
}

.perspective-label {
  position: absolute;
  z-index: 4;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(18px, 3vw, 40px);
  padding: 6px 9px;
  border: 1px solid rgba(196, 161, 95, 0.3);
  background: rgba(7, 6, 6, 0.5);
  color: rgba(242, 237, 230, 0.78);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #050404;
  transition: opacity 240ms ease, transform 240ms ease;
}

.hero-background.is-switching .perspective-label {
  opacity: 0.32;
  transform: translateY(2px);
}

.banner-layer {
  --banner-scale-start: 2.26;
  --banner-scale-end: 2.34;
  --banner-drift-duration: 6200ms;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.78) contrast(1.12) brightness(0.9);
  transform: scale(var(--banner-scale-start));
  transition:
    opacity 1100ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 360ms ease;
  will-change: opacity, transform;
}

.hero-background.is-switching .banner-layer {
  filter: saturate(0.6) contrast(1.35) brightness(0.64) blur(1px);
}

@keyframes crtFlicker {
  0%,
  100% {
    opacity: 0.38;
  }

  42% {
    opacity: 0.46;
  }

  44% {
    opacity: 0.34;
  }

  72% {
    opacity: 0.44;
  }
}

@keyframes noiseDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  33% {
    transform: translate3d(-2%, 1%, 0);
  }

  66% {
    transform: translate3d(1%, -2%, 0);
  }

  100% {
    transform: translate3d(2%, 1%, 0);
  }
}

.banner-layer.is-visible {
  opacity: 1;
  animation: cameraDrift var(--banner-drift-duration) ease-in-out forwards;
}

.banner-layer.is-top {
  transform-origin: center top;
}

.banner-layer.is-bottom {
  transform-origin: center bottom;
}

.banner-layer.is-full {
  transform-origin: center center;
}

@keyframes cameraDrift {
  from {
    transform: scale(var(--banner-scale-start));
  }

  to {
    transform: scale(var(--banner-scale-end));
  }
}

@keyframes signalPulse {
  0% {
    opacity: 0.38;
  }

  22% {
    opacity: 0.82;
  }

  42% {
    opacity: 0.36;
  }

  66% {
    opacity: 0.74;
  }

  100% {
    opacity: 0.42;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
}

.hero-content {
  width: min(500px, 100%);
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.title-logo,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.title-logo {
  display: inline-grid;
  justify-items: start;
  gap: clamp(6px, 0.8vw, 12px);
  margin: 0;
  font-family: var(--compact-font);
  font-stretch: condensed;
  font-weight: 900;
  line-height: 0.78;
  text-transform: uppercase;
  width: min(380px, 100%);
  max-width: 100%;
}

.title-main,
.title-sub {
  display: block;
  letter-spacing: 0.01em;
  transform: scaleX(0.62);
  transform-origin: left center;
  white-space: nowrap;
}

.title-main {
  color: #e20908;
  font-size: clamp(2.8rem, 5.18vw, 5.2rem);
  -webkit-text-stroke: clamp(0.45px, 0.06vw, 0.9px) rgba(52, 5, 5, 0.95);
  text-shadow:
    0 1px 0 #4b0908,
    2px 4px 0 rgba(0, 0, 0, 0.92),
    6px 8px 14px rgba(0, 0, 0, 0.66);
}

.title-sub {
  color: #f1f1ec;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.1rem, 2.08vw, 2.08rem);
  letter-spacing: 0.14em;
  -webkit-text-stroke: clamp(0.55px, 0.08vw, 1.2px) rgba(8, 7, 7, 0.96);
  text-shadow:
    0 2px 0 #030303,
    3px 5px 0 rgba(0, 0, 0, 0.9),
    6px 8px 12px rgba(0, 0, 0, 0.76);
  margin-left: clamp(48px, 7.3vw, 94px);
  transform: scaleX(1.08);
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.06rem;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions,
.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}

.button.primary {
  border-color: var(--red-bright);
  background: var(--red);
  color: #fff6ef;
}

.button.secondary {
  background: rgba(242, 237, 230, 0.07);
  color: var(--ink);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px var(--shadow);
}

.notice-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.notice-band p {
  margin: 0;
  padding: 18px clamp(18px, 3vw, 40px);
  background: #171312;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 72px);
  scroll-margin-top: 86px;
}

.why {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(181, 37, 34, 0.12), transparent 38%),
    #120f0f;
}

.why-statement h2 {
  max-width: 760px;
}

.why-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.24rem);
}

.why-copy p {
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.status-grid {
  display: grid;
  gap: 14px;
}

.changes {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(196, 161, 95, 0.1), transparent 36%),
    #151211;
}

.change-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: change;
}

.change-list li {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px 16px 54px;
  background: rgba(27, 23, 22, 0.84);
  color: var(--muted);
}

.change-list li::before {
  counter-increment: change;
  content: counter(change, decimal-leading-zero);
  position: absolute;
  left: 18px;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(27, 23, 22, 0.96), rgba(30, 25, 22, 0.8));
}

.panel p,
.install p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 18px;
  align-items: stretch;
}

.gallery-frame {
  min-height: clamp(420px, 56vw, 620px);
  border: 1px solid var(--line);
  background: #070606;
  box-shadow: 0 24px 54px var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.gallery-frame.is-gameplay img {
  object-fit: contain;
}

.gallery-frame.is-interface {
  background:
    linear-gradient(135deg, rgba(181, 37, 34, 0.12), transparent 42%),
    #090707;
}

.gallery-frame.is-interface img {
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: contain;
  border-radius: 6px;
}

.gallery-controls {
  display: grid;
  gap: 12px;
}

.thumb {
  min-height: 112px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--bg-raised);
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.thumb img {
  width: 92px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.thumb.is-active {
  border-color: var(--amber);
  color: var(--ink);
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(121, 139, 114, 0.16), transparent 40%),
    #151211;
}

.install p {
  max-width: 720px;
  margin-top: 18px;
}

.community {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, #151211, #120f0f),
    #120f0f;
}

.community-heading {
  align-items: center;
}

.community-heading .button {
  margin-bottom: 8px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.community-note {
  max-width: 920px;
  margin: 22px 0 0;
  color: var(--muted);
}

.support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(181, 37, 34, 0.12), transparent 32%),
    linear-gradient(180deg, #120f0f, #171312);
}

.support-copy p {
  max-width: 820px;
  margin: 20px 0 0;
  color: var(--muted);
}

.support-panel {
  border: 1px solid rgba(196, 161, 95, 0.34);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(196, 161, 95, 0.1), rgba(181, 37, 34, 0.08)),
    rgba(27, 23, 22, 0.92);
  box-shadow: 0 24px 54px var(--shadow);
}

.support-panel p {
  margin: 14px 0 22px;
  color: var(--muted);
}

.support-kicker {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.support-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 800;
  text-decoration-color: rgba(196, 161, 95, 0.52);
  text-underline-offset: 4px;
}

.support-link:hover {
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  max-width: 920px;
}

.site-footer a {
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .section-heading,
  .install {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: absolute;
    gap: 16px;
    padding: 16px 18px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero {
    min-height: auto;
    align-items: start;
    padding: 0;
    padding-top: 124px;
    overflow: visible;
    background: #120f0f;
  }

  .hero-background {
    position: relative;
    z-index: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    border-bottom: 1px solid var(--line);
  }

  .hero-background::before {
    background:
      radial-gradient(ellipse at center, transparent 46%, rgba(0, 0, 0, 0.46) 100%),
      linear-gradient(0deg, rgba(18, 15, 15, 0.78), transparent 42%),
      linear-gradient(90deg, rgba(18, 15, 15, 0.36), transparent 36%, rgba(18, 15, 15, 0.44) 100%);
  }

  .hero-background::after {
    opacity: 0.46;
  }

  .banner-layer {
    filter: saturate(0.78) contrast(1.14) brightness(0.88);
    --banner-scale-start: 2.34;
    --banner-scale-end: 2.42;
    --banner-drift-duration: 5200ms;
  }

  .banner-layer.is-full {
    object-fit: contain;
    --banner-scale-start: 1;
    --banner-scale-end: 1;
  }

  .perspective-label {
    right: 16px;
    bottom: 14px;
    font-size: 0.64rem;
  }

  .banner-layer.is-top {
    transform-origin: center top;
  }

  .banner-layer.is-bottom {
    transform-origin: center bottom;
  }

  .crt-noise {
    opacity: 0.08;
  }

  .hero::after {
    display: none;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    padding: 28px 18px 44px;
    background:
      linear-gradient(180deg, rgba(18, 15, 15, 0.96), #120f0f),
      #120f0f;
  }

  .hero-content,
  .hero-copy,
  .title-logo {
    width: 100%;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .notice-band,
  .why,
  .split,
  .change-list,
  .gallery,
  .install,
  .support,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .gallery-controls {
    grid-template-columns: 1fr;
  }

  .gallery-frame {
    min-height: 330px;
  }

  .thumb {
    min-height: 92px;
  }

  .support-panel {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    gap: 12px;
  }

  .brand-logo span:first-child {
    font-size: 1rem;
  }

  .brand-logo span:last-child {
    font-size: 0.62rem;
  }

  .brand-mark {
    width: 10px;
    height: 26px;
    box-shadow: 6px 7px 0 var(--amber);
  }

  .nav-links a {
    font-size: 0.88rem;
  }

  .hero {
    padding: 0;
    padding-top: 118px;
  }

  .hero-background {
    height: auto;
  }

  .hero-content {
    padding: 26px 16px 42px;
  }

  .title-logo {
    gap: 5px;
  }

  .title-main {
    font-size: clamp(2.2rem, 11.6vw, 3rem);
  }

  .title-sub {
    font-size: clamp(0.92rem, 4.95vw, 1.28rem);
    margin-left: clamp(44px, 18vw, 76px);
    letter-spacing: 0.12em;
  }

  .hero-copy {
    margin-top: 20px;
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
  }

  .hero-actions,
  .install-actions,
  .button {
    width: 100%;
  }

  .notice-band p {
    padding: 15px 16px;
  }

  .section {
    padding: 54px 16px;
    scroll-margin-top: 118px;
  }

  h2 {
    font-size: clamp(2.05rem, 10vw, 3rem);
    line-height: 1.04;
  }

  .why-copy,
  .community-note,
  .support-copy p,
  .support-panel p {
    font-size: 0.98rem;
  }

  .panel,
  .support-panel {
    padding: 18px;
  }

  .gallery-frame {
    min-height: 260px;
  }

  .gallery-frame.is-interface img {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
  }

  .thumb {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 82px;
  }

  .thumb img {
    width: 78px;
    height: 54px;
  }

  .community-heading .button,
  .support-panel .button {
    width: 100%;
  }

  .support-link {
    width: 100%;
    text-align: center;
  }

  .site-footer {
    gap: 16px;
  }

  .site-footer a {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    font-size: 0.84rem;
  }

  .title-main {
    font-size: 2.16rem;
  }

  .title-sub {
    font-size: 0.92rem;
    margin-left: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .banner-layer,
  .button,
  .hero-background::after,
  .crt-noise,
  .perspective-label {
    transition: none;
    animation: none;
  }
}
