:root {
  color-scheme: dark;
  --bg: #070807;
  --panel: #111612;
  --panel-strong: #182017;
  --text: #f4f1e8;
  --muted: #aaa99a;
  --line: #303c31;
  --acid: #b6f44f;
  --hot: #ff6f3d;
  --steel: #78a7ba;
  --shadow: rgba(0, 0, 0, 0.38);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 7, 0.2), var(--bg) 76%),
    linear-gradient(115deg, rgba(255, 111, 61, 0.1), transparent 36%),
    linear-gradient(245deg, rgba(120, 167, 186, 0.12), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 78px),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(244, 241, 232, 0.035), transparent 22%),
    repeating-linear-gradient(0deg, rgba(182, 244, 79, 0.03) 0 1px, transparent 1px 104px);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(244, 241, 232, 0.08);
  border-radius: var(--radius);
  background: rgba(7, 8, 7, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(182, 244, 79, 0.3);
  border-radius: var(--radius);
  background: #070807;
  box-shadow: 0 0 24px rgba(182, 244, 79, 0.12);
}

.hero-mark {
  width: 78px;
  height: 78px;
  margin-bottom: 24px;
  border: 1px solid rgba(182, 244, 79, 0.34);
  border-radius: var(--radius);
  background: #070807;
  box-shadow:
    0 20px 72px rgba(182, 244, 79, 0.2),
    0 0 0 8px rgba(7, 8, 7, 0.48);
}

.nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
}

.nav a:hover {
  background: rgba(244, 241, 232, 0.06);
  color: var(--text);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100vh - 80px);
  padding: 72px max(16px, calc((100vw - 1120px) / 2)) 68px;
}

.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 8, 7, 0.94) 0%, rgba(7, 8, 7, 0.72) 48%, rgba(7, 8, 7, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 8, 7, 0.1), var(--bg) 92%),
    url("/covers/slop-studios.webp") center / cover no-repeat;
}

.hero-art::before {
  position: absolute;
  inset: 9% 0 auto;
  height: 420px;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(120, 167, 186, 0.16), transparent),
    repeating-linear-gradient(0deg, transparent 0 36px, rgba(182, 244, 79, 0.13) 37px 39px);
  transform: skewY(-8deg);
  opacity: 0.72;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 0 55%, var(--bg) 96%),
    repeating-linear-gradient(90deg, rgba(244, 241, 232, 0.055) 0 1px, transparent 1px 22px);
  mix-blend-mode: screen;
  opacity: 0.24;
}

.track {
  position: absolute;
  right: -60px;
  left: -60px;
  display: flex;
  gap: 34px;
  height: 74px;
  padding: 12px 0;
  border-block: 1px solid rgba(120, 167, 186, 0.24);
  background: rgba(14, 19, 16, 0.66);
  box-shadow: 0 20px 60px var(--shadow);
  transform: rotate(-8deg);
}

.track-a {
  top: 21%;
}

.track-b {
  top: 44%;
  transform: rotate(6deg);
}

.track span {
  flex: 0 0 104px;
  height: 48px;
  border: 1px solid rgba(244, 241, 232, 0.13);
  background:
    linear-gradient(135deg, rgba(182, 244, 79, 0.18), transparent 44%),
    #202820;
}

.core {
  position: absolute;
  width: clamp(120px, 18vw, 230px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 111, 61, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 111, 61, 0.45), transparent 38%),
    linear-gradient(45deg, transparent 42%, rgba(244, 241, 232, 0.16) 43% 57%, transparent 58%),
    #171a16;
  box-shadow: 0 24px 90px rgba(255, 111, 61, 0.14);
  transform: rotate(45deg);
  opacity: 0.72;
}

.core-left {
  left: max(22px, calc((100vw - 1120px) / 2));
  top: 24%;
}

.core-right {
  right: max(22px, calc((100vw - 1120px) / 2));
  top: 35%;
}

.signal-grid {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 38%;
  background:
    linear-gradient(180deg, transparent, var(--bg)),
    repeating-linear-gradient(90deg, rgba(182, 244, 79, 0.1) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(182, 244, 79, 0.08) 0 1px, transparent 1px 58px);
  mask-image: linear-gradient(transparent, black 34%);
  opacity: 0.82;
}

.hero-copy {
  position: relative;
  max-width: 760px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.42);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--acid);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(72px, 13vw, 168px);
  line-height: 0.86;
  text-wrap: balance;
}

.tagline {
  margin-bottom: 22px;
  color: var(--hot);
  font-size: clamp(24px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
  text-wrap: balance;
}

.intro {
  max-width: 650px;
  margin-bottom: 28px;
  color: #d6d2c4;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 1px;
  width: min(620px, 100%);
  margin-top: 28px;
  border: 1px solid rgba(48, 60, 49, 0.92);
  border-radius: var(--radius);
  background: rgba(48, 60, 49, 0.92);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.hero-status div {
  min-height: 86px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(182, 244, 79, 0.08), transparent 58%),
    rgba(17, 22, 18, 0.94);
}

.hero-status strong,
.hero-status span {
  display: block;
}

.hero-status strong {
  color: var(--text);
  font-size: 32px;
  line-height: 1;
}

.hero-status span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.button,
.game-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button.primary,
.game-content a {
  border-color: rgba(182, 244, 79, 0.54);
  background: var(--acid);
  color: #11160d;
  box-shadow: 0 12px 30px rgba(182, 244, 79, 0.13);
}

.button.secondary {
  border-color: rgba(244, 241, 232, 0.16);
  background: rgba(17, 22, 18, 0.76);
}

.button:hover,
.game-content a:hover {
  box-shadow: 0 16px 36px rgba(182, 244, 79, 0.2);
  transform: translateY(-1px);
}

.games-section,
.studio-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

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

.section-heading::after {
  flex: 1;
  height: 1px;
  min-width: 80px;
  content: "";
  background: linear-gradient(90deg, rgba(182, 244, 79, 0.52), transparent);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(190px, auto) 1fr;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 17, 19, 0.94);
  overflow: hidden;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.game-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(244, 241, 232, 0.08), transparent 38%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.game-card:hover {
  border-color: rgba(182, 244, 79, 0.56);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(182, 244, 79, 0.08);
  transform: translateY(-2px);
}

.game-card:hover::before {
  opacity: 1;
}

.featured-game {
  border-color: rgba(182, 244, 79, 0.64);
  box-shadow: 0 0 0 1px rgba(182, 244, 79, 0.12), 0 22px 60px rgba(0, 0, 0, 0.22);
}

.featured-game .game-status {
  color: var(--acid);
}

.game-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(120, 167, 186, 0.22), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 34px),
    #1c241b;
  overflow: hidden;
}

.game-thumb::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(7, 8, 7, 0.74));
  opacity: 0.9;
  z-index: 1;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
}

.game-card:hover .game-thumb img {
  filter: saturate(1.16) contrast(1.08);
  transform: scale(1.045);
}

.fallback-thumb span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(182, 244, 79, 0.54);
  color: var(--acid);
  font-size: 32px;
  font-weight: 900;
}

.game-card[data-game="sloppy-birds"] .game-thumb {
  background:
    linear-gradient(135deg, rgba(255, 111, 61, 0.2), transparent 42%),
    repeating-linear-gradient(0deg, rgba(182, 244, 79, 0.08) 0 1px, transparent 1px 34px),
    #1c241b;
}

.game-card[data-game="slop-flap"] .game-thumb {
  background:
    linear-gradient(135deg, rgba(255, 112, 66, 0.18), transparent 42%),
    repeating-linear-gradient(90deg, rgba(182, 244, 79, 0.1) 0 1px, transparent 1px 28px),
    #172017;
}

.game-card[data-game="slop-run"] .game-thumb {
  background:
    linear-gradient(135deg, rgba(182, 244, 79, 0.2), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 112, 66, 0.09) 0 1px, transparent 1px 30px),
    #172017;
}

.game-card[data-game="slop-stones"] .game-thumb {
  background:
    radial-gradient(circle at 28% 48%, rgba(255, 209, 92, 0.38) 0 9%, transparent 10%),
    radial-gradient(circle at 50% 48%, rgba(126, 199, 216, 0.34) 0 9%, transparent 10%),
    radial-gradient(circle at 72% 48%, rgba(255, 112, 66, 0.34) 0 9%, transparent 10%),
    linear-gradient(135deg, rgba(182, 244, 79, 0.2), transparent 42%),
    #172017;
}

.game-card[data-game="context-collapse"] .game-thumb {
  background:
    linear-gradient(135deg, rgba(120, 167, 186, 0.24), transparent 46%),
    repeating-linear-gradient(90deg, rgba(182, 244, 79, 0.08) 0 1px, transparent 1px 30px),
    #151d1d;
}

.game-card[data-game="slop-swap"] .game-thumb,
.game-card[data-game="slopdoku"] .game-thumb {
  background:
    linear-gradient(135deg, rgba(182, 244, 79, 0.18), transparent 44%),
    repeating-linear-gradient(45deg, rgba(244, 241, 232, 0.06) 0 1px, transparent 1px 28px),
    #1b2118;
}

.game-card[data-game="slop-sweeper"] .game-thumb {
  background:
    linear-gradient(135deg, rgba(255, 111, 61, 0.14), transparent 44%),
    repeating-linear-gradient(90deg, rgba(120, 167, 186, 0.12) 0 1px, transparent 1px 32px),
    #1b1f18;
}

.game-content {
  position: relative;
  padding: 24px;
}

.game-status {
  margin-bottom: 10px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1;
}

.game-content p:not(.game-status),
.studio-section p {
  color: var(--muted);
  line-height: 1.58;
}

.game-content a {
  margin-top: 8px;
}

.studio-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1fr);
  gap: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(182, 244, 79, 0.06), transparent 36%),
    linear-gradient(270deg, rgba(120, 167, 186, 0.08), transparent 46%);
}

.studio-section h2 {
  max-width: 520px;
}

.studio-section p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@supports (-moz-appearance: none) {
  html {
    scroll-behavior: auto;
  }

  body {
    background:
      linear-gradient(180deg, rgba(7, 8, 7, 0.18), var(--bg) 74%),
      linear-gradient(115deg, rgba(255, 111, 61, 0.08), transparent 36%),
      var(--bg);
  }

  body::before,
  .hero-art::before,
  .hero-art::after,
  .signal-grid {
    display: none;
  }

  .site-header {
    background: rgba(7, 8, 7, 0.9);
    backdrop-filter: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  }

  .hero-art {
    background:
      linear-gradient(90deg, rgba(7, 8, 7, 0.94) 0%, rgba(7, 8, 7, 0.82) 58%, rgba(7, 8, 7, 0.58) 100%),
      linear-gradient(180deg, rgba(7, 8, 7, 0.08), var(--bg) 92%),
      url("/covers/slop-studios.webp") center / cover no-repeat;
  }

  .track {
    background: rgba(14, 19, 16, 0.5);
    box-shadow: none;
  }

  .core,
  .track-b {
    display: none;
  }

  .brand-mark,
  .hero-mark,
  .hero-status,
  .button.primary,
  .game-content a,
  .featured-game,
  .game-card:hover {
    box-shadow: none;
  }

  .button:hover,
  .game-content a:hover,
  .game-card:hover {
    transform: none;
  }

  .game-card::before {
    display: none;
  }

  .game-thumb img,
  .game-card:hover .game-thumb img {
    filter: none;
    transform: none;
  }

  .studio-section {
    background: transparent;
  }
}

@supports (-webkit-touch-callout: none) {
  body::before,
  .hero-art::before,
  .hero-art::after,
  .signal-grid {
    display: none;
  }

  .site-header {
    background: rgba(7, 8, 7, 0.9);
    backdrop-filter: none;
  }

  .hero-art {
    background:
      linear-gradient(180deg, rgba(7, 8, 7, 0.38), rgba(7, 8, 7, 0.94) 88%),
      url("/covers/slop-studios.webp") center top / cover no-repeat;
  }
}

@media (hover: none), (pointer: coarse) {
  body::before {
    display: none;
  }

  .site-header {
    backdrop-filter: none;
  }

  .track-b,
  .core {
    display: none;
  }

  .brand-mark,
  .hero-mark,
  .hero-status,
  .button.primary,
  .game-content a,
  .featured-game,
  .game-card:hover {
    box-shadow: none;
  }

  .button:hover,
  .game-content a:hover,
  .game-card:hover,
  .game-card:hover .game-thumb img {
    transform: none;
  }

  .game-thumb img,
  .game-card:hover .game-thumb img {
    filter: none;
  }
}

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

@media (max-width: 720px) {
  .site-header {
    align-items: center;
  }

  .nav {
    gap: 12px;
  }

  .hero {
    min-height: 760px;
    padding-top: 56px;
  }

  .hero-art {
    background:
      linear-gradient(180deg, rgba(7, 8, 7, 0.56), rgba(7, 8, 7, 0.94) 82%),
      url("/covers/slop-studios.webp") center top / cover no-repeat;
  }

  .hero-mark {
    width: 58px;
    height: 58px;
  }

  h1 {
    font-size: clamp(64px, 22vw, 104px);
  }

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

  .track {
    height: 58px;
  }

  .core-right {
    top: 48%;
  }

  .section-heading,
  .studio-section,
  .site-footer {
    display: block;
  }

  .section-heading::after {
    display: block;
    width: 100%;
    margin-top: 18px;
  }

  .site-footer span {
    display: block;
    margin-top: 8px;
  }
}
