:root {
  --acid: #c8ff00;
  --acid-2: #d8ff4a;
  --ink: #0b0b0b;
  --ink-2: #141414;
  --ink-3: #1c1c1c;
  --paper: #f4f4ee;
  --mute: #9c9c94;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --radius: 18px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Outfit, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--acid);
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.06);
}

.nav {
  display: flex;
  gap: 22px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.nav-toggle {
  display: none;
}

/* Hero */
.hero {
  background: var(--acid);
  color: var(--ink);
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "BRAZY";
  position: absolute;
  right: -4vw;
  bottom: -18px;
  font-size: clamp(80px, 22vw, 280px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.8;
  opacity: 0.18;
  pointer-events: none;
  transform: rotate(-8deg);
  animation: stamp-drift 16s ease-in-out infinite;
}

.hero .wrap > * {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero .kicker { animation-delay: 0.04s; }
.hero h1 { animation-delay: 0.1s; }
.hero p { animation-delay: 0.18s; }
.hero-actions { animation-delay: 0.26s; }

.kicker {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-weight: 800;
  max-width: 11ch;
}

.hero p {
  margin: 0;
  max-width: 38ch;
  font-size: 1.15rem;
  font-weight: 500;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  font: inherit;
  font-weight: 700;
  background: var(--ink);
  color: var(--acid);
  cursor: pointer;
  transition:
    background 0.28s ease,
    color 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
}

.btn:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--ink);
  color: var(--acid);
}

.btn.lime {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
}

.btn.lime:hover {
  background: transparent;
  color: var(--acid);
}

.btn.outline {
  background: transparent;
  color: var(--acid);
  border-color: var(--acid);
}

.btn.outline:hover {
  background: var(--acid);
  color: var(--ink);
}

/* Stats */
.stats {
  background: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 28px 0;
}

.stat {
  padding: 8px 8px 8px 0;
}

.stat b {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--acid);
}

.stat span {
  color: var(--mute);
  font-size: 0.9rem;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-label {
  color: var(--acid);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 12px;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 52ch;
  color: #cfcfc6;
  margin: 0;
  font-size: 1.05rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 28px;
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.about-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.about-card p {
  margin: 0;
  color: var(--mute);
}

.about-card a {
  color: var(--acid);
}

.about-card a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-list {
  display: grid;
  gap: 14px;
}

/* Featured */
.featured {
  background: linear-gradient(180deg, var(--ink) 0%, #10140a 100%);
}

.featured-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  padding: 28px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.featured-card:hover {
  border-color: rgba(200, 255, 0, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.featured-card img {
  width: 160px;
  height: 160px;
  border-radius: 28px;
  animation: icon-bob 4.2s ease-in-out infinite;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.featured-card:hover img {
  transform: scale(1.05) rotate(-3deg);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}

.featured-card h3 {
  margin: 8px 0 8px;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.featured-card p {
  margin: 0 0 18px;
  color: #cfcfc6;
  max-width: 58ch;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  color: var(--acid);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.game {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 16px;
  min-height: 100%;
  transition:
    border-color 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    box-shadow 0.4s ease;
}

.game:hover {
  border-color: var(--acid);
  transform: translateY(-6px);
  background: #181810;
  box-shadow: 0 14px 28px rgba(200, 255, 0, 0.08);
}

.game img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  animation: icon-bob 3.8s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.game:nth-child(2) img { animation-delay: -0.45s; }
.game:nth-child(3) img { animation-delay: -0.9s; }
.game:nth-child(4) img { animation-delay: -1.35s; }
.game:nth-child(5) img { animation-delay: -1.8s; }
.game:nth-child(6) img { animation-delay: -2.25s; }
.game:nth-child(7) img { animation-delay: -2.7s; }
.game:nth-child(8) img { animation-delay: -3.15s; }

.game:hover img {
  transform: scale(1.1) rotate(-5deg);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.4));
}

.game h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.game p {
  margin: 0;
  color: var(--mute);
  font-size: 0.92rem;
}

.game span {
  margin-top: auto;
  color: var(--acid);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Contact */
.contact {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.mail {
  display: inline-block;
  margin-top: 18px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--acid);
  letter-spacing: -0.03em;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.mail:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  transform: translateX(3px);
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d6d6ce;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  padding: 12px 14px;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--acid);
  outline-offset: 1px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--mute);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a:hover {
  color: var(--acid);
}

/* Legal pages */
.legal {
  padding: 72px 0 96px;
}

.legal h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
}

.legal .meta-line {
  color: var(--mute);
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
  scroll-margin-top: 88px;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
}

.legal p,
.legal li {
  color: #d0d0c8;
  max-width: 72ch;
}

.legal a {
  color: var(--acid);
}

.legal a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal ul,
.legal ol {
  padding-left: 18px;
}

.legal .toc {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
  margin: 0 0 36px;
}

.legal .toc a {
  color: var(--paper);
  font-weight: 600;
}

.legal .toc a:hover {
  color: var(--acid);
}

.game-policies {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.game-policies a {
  color: var(--acid);
}

.game-policies a:hover {
  text-decoration: underline;
}

.back {
  color: var(--acid);
  font-weight: 700;
}

/* 404 */
.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
}

.not-found h1 {
  font-size: clamp(4rem, 14vw, 8rem);
  margin: 0;
  color: var(--acid);
  letter-spacing: -0.06em;
}

@media (max-width: 900px) {
  .stats .wrap,
  .about-grid,
  .contact-grid,
  .games-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
    appearance: none;
    width: 42px;
    height: 42px;
    border: 2px solid var(--ink);
    background:
      linear-gradient(var(--ink), var(--ink)) center 13px / 18px 2px no-repeat,
      linear-gradient(var(--ink), var(--ink)) center / 18px 2px no-repeat,
      linear-gradient(var(--ink), var(--ink)) center 27px / 18px 2px no-repeat;
    cursor: pointer;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--acid);
    border-bottom: 2px solid var(--ink);
    padding: 8px 20px 18px;
    flex-direction: column;
    gap: 12px;
  }

  .nav-toggle:checked ~ .nav,
  .nav-toggle:checked + .nav {
    display: flex;
  }

  .site-header .wrap {
    position: relative;
  }

  .stats .wrap,
  .games-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 64px;
  }

  section {
    padding: 56px 0;
  }

  .featured-card img {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }
}

@keyframes icon-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@keyframes stamp-drift {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-5.5deg) translateY(-14px); }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

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

  .hero .wrap > * {
    opacity: 1;
    transform: none;
  }
}
