@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/press-start-2p-latin-400-normal.woff2") format("woff2");
}

:root {
  --bg: #120f1f;
  --panel: rgba(24, 22, 42, 0.82);
  --ink: #f8f7ff;
  --muted: #c9c4da;
  --yellow: #ffd84d;
  --cyan: #42e8ff;
  --pink: #ff4fa3;
  --green: #78ff9a;
  --shadow: #080714;
  --line: rgba(255, 255, 255, 0.16);
  --page-max: 1300px;
  --page-gutter: clamp(20px, 4vw, 40px);
  --header-height: 82px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  text-align: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 79, 163, 0.16), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(66, 232, 255, 0.14), transparent 30%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, #120f1f 0%, #1c1830 52%, #0f1728 100%);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
}

body.nav-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: soft-light;
  opacity: 0.55;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

a,
button,
input,
select,
textarea {
  touch-action: manipulation;
}

header,
main,
footer,
site-header,
site-footer {
  position: relative;
  z-index: 1;
}

site-header,
site-footer {
  display: block;
}

site-header {
  z-index: 2000;
}

site-footer {
  margin-top: auto;
}

.container {
  width: 100%;
  min-width: 0;
}

.hero {
  width: 100%;
  max-width: var(--page-max);
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  padding: 92px var(--page-gutter) 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 56px);
}

.hero-content {
  flex: 1;
  min-width: 0;
  max-width: 720px;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(66, 232, 255, 0.55);
  border-radius: 999px;
  background: rgba(66, 232, 255, 0.08);
  color: var(--cyan);
  font-family: "Press Start 2P", cursive;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(66, 232, 255, 0.14);
}

.hero h1 {
  margin-bottom: 22px;
  color: var(--ink);
  font-family: "Press Start 2P", cursive;
  font-size: clamp(30px, 5.7vw, 64px);
  line-height: 1.15;
  text-wrap: balance;
  text-shadow: 4px 4px 0 var(--pink), 8px 8px 0 var(--shadow);
}

.hero h1 span {
  display: block;
  color: var(--yellow);
}

.hero h2 {
  margin: 28px 0 12px;
  color: var(--cyan);
  font-size: clamp(18px, 2.5vw, 24px);
  text-shadow: 2px 2px 0 var(--shadow);
}

.hero p {
  max-width: 68ch;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  text-align: left;
}

.hero-image,
.memory-image {
  flex: 0 1 430px;
  width: min(100%, 430px);
  min-width: 0;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: min(82vw, 440px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 216, 77, 0.45);
  transform: rotate(8deg);
  box-shadow: 0 0 40px rgba(255, 216, 77, 0.16), inset 0 0 35px rgba(255, 79, 163, 0.12);
}

.hero-image::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(74vw, 380px);
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(255, 79, 163, 0.22), rgba(66, 232, 255, 0.14));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  filter: blur(0.5px);
}

.hero-image img {
  position: relative;
  width: min(100%, 420px);
  max-width: 420px;
  animation: arcadeFloat 3.6s infinite ease-in-out;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 18px rgba(66, 232, 255, 0.38));
}

@keyframes arcadeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 18px;
  margin-top: 20px;
  border: 2px solid var(--yellow);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--pink), #ff7a4f);
  box-shadow: 6px 6px 0 var(--shadow), 0 0 24px rgba(255, 79, 163, 0.32);
  color: var(--ink);
  font-family: "Press Start 2P", cursive;
  font-size: clamp(0.72rem, 1.5vw, 0.9rem);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
  transform: translate(-3px, -3px);
  filter: saturate(1.15) brightness(1.08);
  box-shadow: 9px 9px 0 var(--shadow), 0 0 34px rgba(255, 79, 163, 0.46);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.btn:disabled:hover {
  transform: none;
  box-shadow: 6px 6px 0 var(--shadow), 0 0 24px rgba(255, 79, 163, 0.32);
}

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

.btn-muted {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, rgba(66, 232, 255, 0.28), rgba(255, 255, 255, 0.08));
  color: var(--muted);
  cursor: default;
}

.btn-muted:hover {
  transform: none;
  filter: none;
  box-shadow: 6px 6px 0 var(--shadow), 0 0 18px rgba(66, 232, 255, 0.12);
}

.btn::after {
  content: " >>";
  margin-left: 10px;
  font-size: 1.2rem;
}

.btn-muted::after {
  content: "";
  margin-left: 0;
}

.games {
  max-width: var(--page-max);
  margin: auto;
  padding: 70px var(--page-gutter) 96px;
}

.games h2 {
  margin-bottom: 20px;
  color: var(--yellow);
  font-family: "Press Start 2P", cursive;
  font-size: clamp(22px, 3vw, 34px);
  text-shadow: 3px 3px 0 var(--shadow);
}

.games-description {
  max-width: 900px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 26px;
}

.game-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 350px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)), var(--panel);
  box-shadow: 10px 10px 0 var(--shadow), 0 0 0 1px rgba(66, 232, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--cyan), var(--green));
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(66, 232, 255, 0.72);
  box-shadow: 10px 16px 0 var(--shadow), 0 0 34px rgba(66, 232, 255, 0.18), 0 28px 60px rgba(0, 0, 0, 0.32);
}

.game-icon {
  margin-bottom: 15px;
  font-size: 50px;
  animation: floatIcon 3s infinite ease-in-out;
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.game-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: "Press Start 2P", cursive;
  font-size: 18px;
  line-height: 1.4;
  text-wrap: balance;
}

.game-card p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 14px;
}

.game-card .btn {
  margin-top: auto;
}

.game-guide {
  max-width: 1040px;
  margin: 0 auto 96px;
  padding: 0 var(--page-gutter);
  text-align: left;
}

.game-guide h2 {
  margin-bottom: 20px;
  color: var(--yellow);
  font-family: "Press Start 2P", cursive;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.35;
  text-shadow: 3px 3px 0 var(--shadow);
}

.game-guide-intro {
  max-width: 78ch;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

.game-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 22px;
}

.game-guide-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 7, 20, 0.36);
  box-shadow: 8px 8px 0 var(--shadow), 0 18px 48px rgba(0, 0, 0, 0.2);
}

.game-guide-card h3 {
  margin-bottom: 12px;
  color: var(--cyan);
  font-family: "Press Start 2P", cursive;
  font-size: 14px;
  line-height: 1.45;
}

.game-guide-card p,
.game-guide-card li,
.noscript-note {
  color: var(--muted);
  font-size: 15px;
}

.game-guide-card ul {
  padding-left: 18px;
}

.game-guide-card li + li {
  margin-top: 8px;
}

.noscript-note {
  max-width: 68ch;
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 216, 77, 0.34);
  border-radius: 8px;
  background: rgba(255, 216, 77, 0.08);
  text-align: center;
}

.about-page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 82px var(--page-gutter) 96px;
}

.about-hero {
  max-width: 900px;
  text-align: left;
}

.about-hero h1 {
  margin-bottom: 22px;
  color: var(--ink);
  font-family: "Press Start 2P", cursive;
  font-size: clamp(30px, 5.2vw, 58px);
  line-height: 1.16;
  text-wrap: balance;
  text-shadow: 4px 4px 0 var(--pink), 8px 8px 0 var(--shadow);
}

.about-hero h1 span {
  color: var(--yellow);
}

.about-hero p {
  max-width: 70ch;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  text-align: left;
}

.about-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.about-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)), var(--panel);
  box-shadow: 10px 10px 0 var(--shadow), 0 24px 60px rgba(0, 0, 0, 0.24);
  text-align: left;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--cyan), var(--green));
}

.about-icon {
  margin-bottom: 18px;
  font-size: 42px;
}

.about-card h2,
.about-mission h2 {
  margin-bottom: 12px;
  color: var(--cyan);
  font-family: "Press Start 2P", cursive;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.45;
  text-wrap: balance;
}

.about-card p,
.about-mission p {
  color: var(--muted);
  font-size: 15px;
  text-align: left;
}

.about-card a,
.about-mission a:not(.btn) {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
}

.about-card a:hover,
.about-mission a:not(.btn):hover {
  color: var(--yellow);
}

.about-mission {
  margin-top: 34px;
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(255, 216, 77, 0.32);
  border-radius: 8px;
  background: rgba(8, 7, 20, 0.36);
  box-shadow: 10px 10px 0 var(--shadow), 0 0 34px rgba(255, 216, 77, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.about-mission p {
  max-width: 72ch;
}

.contact-page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 82px var(--page-gutter) 96px;
}

.contact-hero {
  max-width: 900px;
  text-align: left;
}

.contact-hero h1 {
  margin-bottom: 22px;
  color: var(--ink);
  font-family: "Press Start 2P", cursive;
  font-size: clamp(30px, 5.2vw, 58px);
  line-height: 1.16;
  text-wrap: balance;
  text-shadow: 4px 4px 0 var(--pink), 8px 8px 0 var(--shadow);
}

.contact-hero h1 span {
  color: var(--yellow);
}

.contact-hero p {
  max-width: 70ch;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  text-align: left;
}

.contact-layout {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.contact-form,
.contact-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)), var(--panel);
  box-shadow: 10px 10px 0 var(--shadow), 0 24px 60px rgba(0, 0, 0, 0.24);
}

.contact-form {
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  text-align: left;
}

.field-group,
.field-group-full {
  min-width: 0;
}

.field-group-full,
.contact-form .btn,
.form-status,
.turnstile-field,
.contact-honeypot {
  grid-column: 1 / -1;
}

.field-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-family: "Press Start 2P", cursive;
  font-size: 11px;
  line-height: 1.4;
}

.turnstile-frame {
  max-width: 100%;
  min-height: 65px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.consent-field {
  margin-top: 2px;
}

.field-group .consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.field-group .consent-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  min-height: 0;
  height: 20px;
  margin: 2px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 4px;
  background: #111022;
  box-shadow: none;
  accent-color: var(--green);
}

.consent-check span {
  min-width: 0;
}

.field-group .consent-check a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--cyan);
  text-underline-offset: 3px;
}

.field-group .consent-check a:hover {
  color: var(--cyan);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border: 2px solid rgba(66, 232, 255, 0.55);
  border-radius: 6px;
  background: #111022;
  color: var(--ink);
  font: 600 15px "Poppins", sans-serif;
  box-shadow: 5px 5px 0 var(--shadow), 0 0 18px rgba(66, 232, 255, 0.1);
}

.field-group input,
.field-group select {
  min-height: 50px;
  padding: 0 14px;
}

.field-group textarea {
  resize: vertical;
  min-height: 150px;
  padding: 14px;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.contact-form .btn {
  width: fit-content;
}

.form-status {
  min-height: 24px;
  color: var(--green);
  font-weight: 600;
}

.form-status[data-state="error"] {
  color: var(--pink);
}

.form-status[data-state="pending"] {
  color: var(--yellow);
}

.contact-panel {
  padding: 28px;
  text-align: left;
}

.contact-panel h2 {
  margin-bottom: 16px;
  color: var(--yellow);
  font-family: "Press Start 2P", cursive;
  font-size: 16px;
  line-height: 1.45;
}

.contact-panel ul {
  list-style: none;
  color: var(--muted);
}

.contact-panel li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 24px;
}

.contact-panel li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--green);
  font-family: "Press Start 2P", cursive;
  font-size: 12px;
}

@media (max-width: 1200px) {
  .hero,
  .games,
  .about-page,
  .contact-page {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 830px) {
  .hero {
    min-height: auto;
    flex-direction: column;
    padding-top: 44px;
    padding-bottom: 4px;
    gap: 36px;
  }

  .hero-content,
  .hero h1,
  .hero p {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image img {
    margin-bottom: 0;
  }

  .about-page,
  .contact-page {
    padding-top: 52px;
  }

  .about-hero,
  .about-hero p,
  .contact-hero,
  .contact-hero p,
  .about-card,
  .about-card p,
  .about-mission,
  .about-mission p {
    text-align: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .game-guide {
    text-align: center;
  }

  .game-guide-grid {
    grid-template-columns: 1fr;
  }

  .game-guide-card ul {
    padding-left: 0;
    list-style-position: inside;
  }

  .contact-layout,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form .btn {
    width: 100%;
  }

  .about-mission {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .eyebrow {
    max-width: 100%;
    justify-content: center;
    font-size: 9px;
    line-height: 1.5;
  }

  .hero h1,
  .about-hero h1,
  .contact-hero h1 {
    font-size: clamp(24px, 8.4vw, 34px);
    line-height: 1.18;
    overflow-wrap: anywhere;
    text-shadow: 2px 2px 0 var(--pink), 4px 4px 0 var(--shadow);
  }

  .about-hero h1 span,
  .contact-hero h1 span {
    display: block;
  }

  .hero p,
  .about-hero p,
  .contact-hero p,
  .games-description,
  .game-guide-intro {
    font-size: 15px;
  }

  .games {
    padding-top: 10px;
    padding-bottom: 72px;
  }

  .game-list,
  .about-grid,
  .game-guide-grid {
    gap: 18px;
  }

  .game-card,
  .about-card,
  .about-mission,
  .game-guide-card,
  .contact-panel {
    box-shadow: 6px 6px 0 var(--shadow), 0 18px 42px rgba(0, 0, 0, 0.22);
  }

  .game-card,
  .about-card,
  .about-mission {
    min-height: auto;
    padding: 22px;
  }

  .contact-form .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero,
  .games,
  .about-page,
  .contact-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero h1,
  .about-hero h1,
  .contact-hero h1 {
    font-size: clamp(21px, 6.7vw, 28px);
  }

  .btn {
    padding: 10px 12px;
    font-size: 0.7rem;
  }

  .game-card {
    padding: 22px;
  }

  .contact-form {
    gap: 16px;
  }
}

@media (max-width: 380px) {
  .cf-turnstile {
    width: 300px;
    transform: scale(0.82);
    transform-origin: left center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
