:root {
  --bg: #050505;
  --bg-elev: #0e0e0e;
  --ink: #e6e7e8;
  --ink-soft: #a7a9ac;
  --muted: #6e7073;
  --orange: #f37021;
  --orange-deep: #d4550f;
  --yellow: #ffc20e;
  --juice: linear-gradient(180deg, #f37021 0%, #ffc20e 100%);
  --line: rgba(230, 231, 232, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Chakra Petch", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --max: 1120px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(243, 112, 33, 0.18), transparent 55%),
    radial-gradient(700px 420px at 10% 20%, rgba(255, 194, 14, 0.1), transparent 50%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 50%, #050505 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

code {
  font-size: 0.92em;
  background: rgba(230, 231, 232, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: var(--yellow);
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo--nav img {
  height: 56px;
  width: auto;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}

.logo--nav:hover img,
.logo--nav:focus-visible img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a,
.nav-panel a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav a:hover,
.nav a:focus-visible,
.nav-panel a:hover,
.nav-panel a:focus-visible {
  color: var(--ink);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--juice);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 6px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-panel {
  position: sticky;
  top: var(--header-h);
  z-index: 39;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1rem;
  background: rgba(8, 8, 8, 0.96);
  border-bottom: 1px solid var(--line);
}

.nav-panel[hidden] {
  display: none;
}

.nav-panel a {
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 112, 33, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 112, 33, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
  animation: grid-drift 18s linear infinite;
}

@keyframes grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}

.hero-crt {
  position: absolute;
  top: 50%;
  right: 5%;
  z-index: 1;
  width: min(52vw, 560px);
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(243, 112, 33, 0.35);
  transform: translateY(-50%) rotate(2deg);
  animation: crt-glow 4.5s ease-in-out infinite;
}

.hero-crt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  image-rendering: pixelated;
}

.hero-crt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.4;
}

.hero-press-start {
  position: absolute;
  left: 50%;
  bottom: 10%;
  z-index: 2;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  color: var(--yellow);
  text-shadow:
    0 0 12px rgba(255, 194, 14, 0.55),
    2px 2px 0 rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  animation: blink 1.2s steps(2, end) infinite;
}

@keyframes crt-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-brand {
  position: relative;
  display: inline-block;
  margin: 0 0 1.35rem;
  padding: 1.1rem 1.35rem 1rem;
  background:
    linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
  box-shadow:
    0 0 0 2px #1a1a1a,
    0 0 0 4px var(--orange),
    0 0 0 6px #1a1a1a,
    0 0 0 8px var(--yellow),
    0 18px 40px rgba(243, 112, 33, 0.22);
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero-brand::before,
.hero-brand::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--juice);
  box-shadow: 0 0 10px rgba(243, 112, 33, 0.55);
  z-index: 1;
}

.hero-brand::before {
  top: -3px;
  left: -3px;
  clip-path: polygon(0 0, 100% 0, 100% 28%, 28% 28%, 28% 100%, 0 100%);
}

.hero-brand::after {
  right: -3px;
  bottom: -3px;
  clip-path: polygon(0 72%, 72% 72%, 72% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-logo {
  position: relative;
  z-index: 0;
  width: min(82vw, 360px);
  height: auto;
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 18ch;
  color: var(--ink);
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s var(--ease) 0.25s forwards;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 42ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--juice);
  color: #111;
  box-shadow: 0 10px 28px rgba(243, 112, 33, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(230, 231, 232, 0.45);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(230, 231, 232, 0.05);
  box-shadow: inset 0 0 0 1.5px var(--orange);
  color: var(--orange);
}

/* Sections */

.section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 4vw, 2.5rem);
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.section-head p {
  margin: 0;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Catalog */

.game-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  gap: 1.5rem;
}

.game {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: 0.35rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
  transition: transform 0.4s var(--ease);
}

.game:hover,
.game:focus-visible {
  transform: translateX(6px);
}

.game-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(243, 112, 33, 0.15);
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.game:hover .game-art img,
.game:focus-visible .game-art img {
  transform: scale(1.04);
}

.game-art--jack {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 194, 14, 0.28), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(243, 112, 33, 0.35), transparent 42%),
    linear-gradient(160deg, #1a0f08, #0a0a0a 55%, #050505);
}

.game-art-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: 0.04em;
  background: var(--juice);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.game-meta h3 {
  margin: 0.35rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.game-meta p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 40ch;
}

.game-status {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

.game-status--live {
  color: var(--orange);
}

.game-platform {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Videos */

.videos {
  background:
    linear-gradient(180deg, rgba(243, 112, 33, 0.04), transparent 25%),
    linear-gradient(180deg, transparent, rgba(255, 194, 14, 0.04));
}

.video-stage {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
  gap: 1.5rem;
  align-items: start;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  overflow: hidden;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(243, 112, 33, 0.2);
}

.video-poster,
.video-embed,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.3s var(--ease);
}

.video-play span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--juice);
  color: #111;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease);
}

.video-play:hover span,
.video-play:focus-visible span {
  transform: scale(1.06);
}

.video-caption {
  margin-top: 1rem;
}

.video-caption h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.video-caption p {
  margin: 0;
  color: var(--ink-soft);
}

.video-playlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.video-item {
  width: 100%;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.85rem;
  align-items: center;
  text-align: left;
  padding: 0.45rem;
  transition: background 0.3s var(--ease);
}

.video-item:hover,
.video-item:focus-visible,
.video-item.is-active {
  background: rgba(243, 112, 33, 0.08);
}

.video-item-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange);
  box-shadow: inset 0 0 0 1px rgba(243, 112, 33, 0.15);
}

.video-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-item-text {
  display: grid;
  gap: 0.2rem;
}

.video-item-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.video-item-text em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.video-hint {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* News */

.news {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.news .section-head {
  margin-bottom: 1.25rem;
}

.news .section-head h2 {
  margin-bottom: 0;
}

.news-feature {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

.news-feature p {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.45;
  color: var(--ink);
  max-width: 36ch;
}

.news-feature p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Instagram */

.instagram {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.instagram-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.instagram-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.instagram-panel p {
  margin: 0;
  max-width: 36ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.instagram-panel .btn {
  margin-top: 0.35rem;
}

/* Footer */

.site-footer {
  padding: 3rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--line);
  background: #050505;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.85rem;
}

.footer-brand img {
  height: 88px;
  width: auto;
}

.site-footer p {
  margin: 0 0 0.4rem;
  color: var(--ink-soft);
}

.footer-copy {
  margin-top: 1.25rem !important;
  font-size: 0.85rem;
  color: var(--muted) !important;
}

/* Responsive */

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    align-items: start;
    gap: 1.75rem;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .hero-content {
    max-width: none;
  }

  .hero-crt {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    transform: none;
    opacity: 1;
  }

  .video-stage {
    grid-template-columns: 1fr;
  }

  .game {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .logo--nav img {
    height: 48px;
  }

  .hero-logo {
    width: min(88vw, 300px);
  }

  .hero-brand {
    padding: 0.85rem 1rem 0.75rem;
  }

  .hero-press-start {
    letter-spacing: 0.14em;
  }

  .footer-brand img {
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-brand,
  .hero-title,
  .hero-lead,
  .hero-actions,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
