:root {
  --bg: #fffdf5;
  --ink: #000000;
  --accent: #ff6b6b;
  --secondary: #ffd93d;
  --muted: #c4b5fd;
  --white: #ffffff;
  --font: "Space Grotesk", system-ui, sans-serif;
  --shadow-sm: 4px 4px 0 0 #000;
  --shadow-md: 8px 8px 0 0 #000;
  --shadow-lg: 12px 12px 0 0 #000;
  --shadow-xl: 16px 16px 0 0 #000;
  --hu-black: #121212;
  --hu-canvas: #f0f0f0;
  --hu-red: #d02020;
  --hu-blue: #1040c0;
  --hu-yellow: #f0c020;
  --hu-white: #ffffff;
  --hu-soft: #3a3a3a;
  --hu-font: Outfit, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.45;
  overflow-x: clip;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--ink);
  font-weight: 700;
}

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--secondary);
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  border: 4px solid #000;
  box-shadow: var(--shadow-sm);
}

.skip:focus {
  top: 12px;
}

.container {
  width: min(100% - 32px, 72rem);
  margin-inline: auto;
}

/* --- Header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 4px solid #000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--secondary);
  border: 4px solid #000;
  box-shadow: var(--shadow-sm);
  padding: 6px 12px;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.1s linear, box-shadow 0.1s linear;
}

.logo:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 #000;
}

.logo:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.logo-mark {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: 3px solid #000;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border: 4px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background 0.1s linear, border-color 0.1s linear, box-shadow 0.1s linear;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--accent);
  border-color: #000;
  box-shadow: var(--shadow-sm);
}

/* --- Type --- */

h1,
h2,
h3 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.88;
  margin: 0;
}

h1 {
  font-size: clamp(3.4rem, 12vw, 7.5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.75rem);
}

.lede {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  max-width: 22em;
  margin: 20px 0 0;
}

.lede--flush {
  margin-top: 0;
}

.outline-word {
  color: transparent;
  -webkit-text-stroke: 2px #000;
}

.sticker {
  display: inline-block;
  background: var(--muted);
  border: 4px solid #000;
  box-shadow: var(--shadow-sm);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.sticker:hover {
  transform: rotate(6deg);
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 12px 22px;
  border: 4px solid #000;
  background: var(--accent);
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 6px 6px 0 0 #000;
  transition: transform 0.1s linear, box-shadow 0.1s linear, background 0.1s linear;
}

.btn:hover {
  background: #ff5252;
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn--yellow {
  background: var(--secondary);
}

.btn--yellow:hover {
  background: #ffcc00;
}

.btn--white {
  background: var(--white);
}

.btn--white:hover {
  background: var(--secondary);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* --- Hero --- */

.hero {
  position: relative;
  padding: 72px 0 56px;
}

.hero-copy {
  position: relative;
}

.hero h1 span {
  display: block;
}

/* --- Marquee --- */

.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  border-block: 4px solid #000;
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 14px 0;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: marquee 18s linear infinite;
}

.marquee span {
  white-space: nowrap;
}

.marquee-star {
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--secondary);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  margin-top: 4px;
}

/* --- Sections --- */

.section {
  padding: 80px 0;
}

.section--black {
  background: var(--ink);
  color: var(--white);
  border-block: 4px solid #000;
}

.section--violet {
  background: var(--muted);
  border-block: 4px solid #000;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 420px));
  gap: 40px;
  align-items: start;
}

/* How Unique card — game visual language, not the studio system */
.hu-card {
  position: relative;
  background: var(--hu-canvas);
  color: var(--hu-black);
  border: 4px solid var(--hu-black);
  box-shadow: 12px 12px 0 0 var(--hu-black);
  padding: 28px 24px 24px;
  font-family: var(--hu-font);
  font-weight: 500;
  transform: rotate(-1.25deg);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.hu-card:hover {
  transform: rotate(-1.25deg) translateY(-8px);
  box-shadow: 16px 16px 0 0 var(--hu-black);
}

.hu-card--flat {
  transform: none;
  max-width: 40rem;
}

.hu-card--flat:hover {
  transform: translateY(-8px);
}

.hu-page-title {
  font-family: var(--hu-font);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--hu-black);
  margin: 0 0 12px;
}

.container--narrow {
  max-width: 46rem;
}

.section--flush {
  padding-top: 8px;
}

.hu-soon {
  position: absolute;
  top: -14px;
  right: 18px;
  background: var(--hu-yellow);
  color: var(--hu-black);
  border: 3px solid var(--hu-black);
  box-shadow: 4px 4px 0 0 var(--hu-black);
  font-family: var(--hu-font);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 10px;
  transform: rotate(8deg);
  white-space: nowrap;
  z-index: 1;
}

.hu-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hu-logo .c {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hu-red);
  border: 2px solid var(--hu-black);
}

.hu-logo .s {
  width: 22px;
  height: 22px;
  background: var(--hu-blue);
  border: 2px solid var(--hu-black);
}

.hu-logo .t {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 22px solid var(--hu-yellow);
}

.hu-kicker {
  margin: 0 0 8px;
  color: var(--hu-blue);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hu-card h2 {
  font-family: var(--hu-font);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--hu-black);
  margin: 0 0 10px;
}

.hu-lede {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--hu-soft);
}

.hu-desc {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--hu-black);
}

.hu-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hu-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  border: 2px solid var(--hu-black);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hu-chip--blue {
  background: var(--hu-blue);
  color: var(--hu-white);
}

.hu-chip--yellow {
  background: var(--hu-yellow);
  color: var(--hu-black);
}

.hu-chip--red {
  background: var(--hu-red);
  color: var(--hu-white);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 14px;
  background: var(--hu-white);
  color: var(--hu-black);
  border: 3px solid var(--hu-black);
  box-shadow: 4px 4px 0 0 var(--hu-black);
  text-decoration: none;
  font-family: var(--hu-font);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.1s linear, box-shadow 0.1s linear;
}

.store-btn:hover {
  color: var(--hu-black);
}

.store-btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.store-btn small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.store-btn strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

/* --- Page content --- */

.panel {
  background: var(--white);
  border: 4px solid #000;
  box-shadow: var(--shadow-md);
  padding: 28px;
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.panel h2,
.panel h3 {
  margin-bottom: 12px;
}

.panel p {
  margin: 0 0 16px;
}

.panel p:last-child {
  margin-bottom: 0;
}

.mode-grid {
  display: grid;
  gap: 16px;
}

.mode-card {
  border: 4px solid var(--hu-black);
  box-shadow: 8px 8px 0 0 var(--hu-black);
  padding: 20px;
  font-family: var(--hu-font);
}

.mode-card h2 {
  font-family: var(--hu-font);
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.mode-card p {
  margin: 0;
  font-weight: 500;
}

.mode-card--blue {
  background: var(--hu-blue);
  color: var(--hu-white);
}

.mode-card--yellow {
  background: var(--hu-yellow);
  color: var(--hu-black);
}

.mode-card--red {
  background: var(--hu-red);
  color: var(--hu-white);
}

.prose {
  background: var(--white);
  border: 4px solid #000;
  box-shadow: var(--shadow-md);
  padding: 32px 28px;
}

.prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 28px 0 12px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 16px;
}

.contact-band {
  margin-top: 24px;
  background: var(--secondary);
  border: 4px solid #000;
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.page-hero {
  padding: 56px 0 24px;
}

.page-404 {
  padding: 80px 0 120px;
  text-align: center;
}

.page-404 h1 {
  font-size: clamp(6rem, 20vw, 10rem);
  -webkit-text-stroke: 3px #000;
  color: var(--accent);
}

.page-404 .lede {
  margin-inline: auto;
  margin-bottom: 28px;
}

/* --- Footer --- */

.site-footer {
  margin-top: auto;
  background: var(--secondary);
  border-top: 4px solid #000;
  padding: 28px 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer a {
  text-decoration: none;
  border-bottom: 3px solid #000;
}

.site-footer a:hover {
  background: var(--accent);
}

/* --- Motion --- */

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 40px 0 32px;
  }

  .section {
    padding: 56px 0;
  }

  .hu-card {
    transform: none;
  }

  .hu-card:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 640px) {
  body {
    background-size: 28px 28px;
  }

  .btn,
  .store-btn {
    width: 100%;
    justify-content: center;
  }

  .prose {
    padding: 22px 16px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4rem);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
