:root {
  color-scheme: dark;
  --ink: #090612;
  --panel: rgba(14, 11, 29, 0.84);
  --paper: #fff6dd;
  --text: #fff8e6;
  --muted: #bfb3c9;
  --hot: #ff176f;
  --cyan: #18d7ff;
  --flame: #ff7a18;
  --acid: #ffe95c;
  --line: rgba(255, 255, 255, 0.18);
  --shadow-hot: 0 0 26px rgba(255, 23, 111, 0.56);
  --shadow-cyan: 0 0 30px rgba(24, 215, 255, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 14% 18%, rgba(255, 23, 111, 0.24), transparent 28rem),
    radial-gradient(circle at 88% 28%, rgba(24, 215, 255, 0.22), transparent 26rem),
    var(--ink);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
  color: var(--text);
  font-family: "Lucida Console", "Courier New", monospace;
  overflow-x: hidden;
}

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

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

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
  opacity: 0.42;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3.5rem);
  background:
    linear-gradient(180deg, rgba(9, 6, 18, 0.9), rgba(9, 6, 18, 0.64) 62%, rgba(9, 6, 18, 0));
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 44px rgba(9, 6, 18, 0.36);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand__icon {
  width: 42px;
  height: 42px;
  object-fit: cover;
  background: var(--paper);
  border: 2px solid var(--hot);
  box-shadow: var(--shadow-hot);
}

.main-nav {
  display: flex;
  gap: clamp(0.65rem, 2vw, 1.4rem);
  color: var(--muted);
  font-size: clamp(0.72rem, 1.6vw, 0.92rem);
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 0.35rem 0;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--hot), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: auto;
  padding: 5.2rem 0 0;
  overflow: hidden;
}

.hero__video {
  position: relative;
  width: 100%;
  height: clamp(420px, 72svh, 760px);
  object-fit: cover;
  filter: saturate(1.2) contrast(1.05) brightness(0.9);
}

.hero__shade {
  position: absolute;
  top: 5.2rem;
  left: 0;
  right: 0;
  height: clamp(420px, 72svh, 760px);
  pointer-events: none;
  background:
    linear-gradient(0deg, var(--ink) 0%, rgba(9, 6, 18, 0.82) 12%, rgba(9, 6, 18, 0.34) 34%, transparent 62%),
    linear-gradient(90deg, rgba(9, 6, 18, 0.5), transparent 26%, transparent 72%, rgba(9, 6, 18, 0.24));
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 4.5rem) clamp(2.6rem, 6vw, 4.4rem);
  background:
    linear-gradient(90deg, rgba(255, 23, 111, 0.12), transparent 42%),
    linear-gradient(0deg, rgba(9, 6, 18, 0.98), rgba(9, 6, 18, 0.92));
  border-top: 1px solid rgba(24, 215, 255, 0.16);
  box-shadow: 0 -42px 58px rgba(9, 6, 18, 0.92);
}

.eyebrow,
.section__kicker,
.status {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: var(--shadow-cyan);
}

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

h2 {
  font-size: clamp(2rem, 5vw, 4.9rem);
  line-height: 0.98;
}

h3 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  color: var(--paper);
}

p {
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
}

.hero__copy {
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.56);
}

.hero__actions,
.team__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 2px solid currentColor;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button--primary {
  background: var(--hot);
  color: var(--paper);
  box-shadow: 7px 7px 0 var(--cyan), var(--shadow-hot);
}

.button--ghost {
  background: rgba(9, 6, 18, 0.52);
  color: var(--cyan);
  box-shadow: 7px 7px 0 rgba(255, 23, 111, 0.82);
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, var(--hot), var(--flame), var(--cyan));
  color: var(--ink);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 22s linear infinite;
}

.ticker span {
  padding: 0.85rem 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.section {
  padding: clamp(4.5rem, 11vw, 8rem) clamp(1rem, 5vw, 4.5rem);
}

.section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: start;
}

.studio {
  border-bottom: 1px solid var(--line);
}

.game-panel,
.contact {
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 23, 111, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(24, 215, 255, 0.16), transparent 30%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  padding: clamp(1rem, 4vw, 3rem);
}

.game-panel__media {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 3px solid var(--cyan);
  box-shadow: -9px 9px 0 var(--hot), var(--shadow-cyan);
}

.game-panel__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 280ms ease, filter 280ms ease;
}

.game-panel:hover .game-panel__media img {
  transform: scale(1.07) rotate(1.5deg);
  filter: saturate(1.22) contrast(1.06);
}

.team h2 {
  max-width: 820px;
}

.team-card {
  flex: 1 1 280px;
  min-height: 260px;
  padding: 1.4rem;
  background: rgba(14, 11, 29, 0.78);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 2px rgba(255, 23, 111, 0.12);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--cyan);
  box-shadow: 8px 8px 0 rgba(255, 23, 111, 0.62), var(--shadow-cyan);
}

.team-card__tag {
  display: inline-block;
  margin-bottom: 4rem;
  color: var(--flame);
  font-weight: 900;
}

.contact {
  margin: 0 clamp(1rem, 5vw, 4.5rem) clamp(4rem, 8vw, 6rem);
  padding-inline: clamp(1rem, 4vw, 3.5rem);
}

.contact__logo {
  width: min(420px, 100%);
  background: var(--paper);
  border: 3px solid var(--hot);
  box-shadow: 10px 10px 0 var(--cyan);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem clamp(1rem, 5vw, 4.5rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-transform: uppercase;
  font-size: 0.82rem;
}

.error-page {
  min-height: 100svh;
}

.error-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 7.4rem clamp(1rem, 5vw, 4.5rem) 3rem;
}

.error-panel {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(240px, 0.54fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(255, 23, 111, 0.2), transparent 36%),
    linear-gradient(315deg, rgba(24, 215, 255, 0.18), transparent 34%),
    rgba(14, 11, 29, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), inset 0 0 0 2px rgba(255, 23, 111, 0.09);
}

.error-panel__media {
  overflow: hidden;
  background: var(--paper);
  border: 3px solid var(--hot);
  box-shadow: -10px 10px 0 var(--cyan), var(--shadow-hot);
}

.error-panel__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  animation: errorPulse 2.8s ease-in-out infinite;
}

.error-panel h1 {
  margin: 0 0 0.5rem;
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(5rem, 16vw, 12rem);
  line-height: 0.82;
  text-shadow: 5px 0 0 var(--hot), -5px 0 0 var(--cyan), 0 0 34px rgba(255, 23, 111, 0.5);
}

.error-panel h2 {
  margin-bottom: 1rem;
}

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

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

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes errorPulse {
  0%,
  100% {
    transform: scale(1);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.035);
    filter: saturate(1.25) contrast(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand__icon {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding-top: 9rem;
  }

  .hero__video,
  .hero__shade {
    height: clamp(340px, 58svh, 620px);
  }

  .hero__shade {
    top: 9rem;
    background:
      linear-gradient(0deg, var(--ink) 0%, rgba(9, 6, 18, 0.78) 16%, rgba(9, 6, 18, 0.28) 42%, transparent 66%),
      linear-gradient(90deg, rgba(9, 6, 18, 0.42), transparent 34%);
  }

  .hero__content {
    padding-top: clamp(2.2rem, 8vw, 3.4rem);
    box-shadow: 0 -34px 48px rgba(9, 6, 18, 0.94);
  }

  .section__grid,
  .game-panel,
  .contact,
  .error-panel {
    grid-template-columns: 1fr;
  }

  .team-card {
    min-height: 220px;
  }

  .contact {
    margin-inline: 1rem;
  }
}
