@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Press+Start+2P&display=swap');

:root {
  --bg: #070914;
  --bg-soft: #0d1020;
  --panel: rgba(17, 21, 42, 0.72);
  --panel-strong: rgba(20, 25, 51, 0.92);
  --text: #f7f8ff;
  --muted: #a7acc4;
  --line: rgba(255, 255, 255, 0.1);
  --purple: #9f7aea;
  --blue: #55c2ff;
  --green: #72f1a4;
  --yellow: #ffd166;
  --radius-large: 30px;
  --radius-medium: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(63, 46, 128, 0.32), transparent 38rem),
    var(--bg);
  font-family: "Inter", sans-serif;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.background-effects {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.orb {
  position: absolute;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
}

.orb-one {
  top: -14rem;
  left: -10rem;
  background: var(--purple);
}

.orb-two {
  top: 35%;
  right: -18rem;
  background: var(--blue);
}

.orb-three {
  bottom: -18rem;
  left: 30%;
  background: var(--green);
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  animation: twinkle var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.4);
  }
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 110px 0 80px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 500;
}

.hero h1 strong {
  display: block;
  font-size: clamp(4rem, 12vw, 9.5rem);
  font-weight: 800;
  text-shadow: 0 0 80px rgba(159, 122, 234, 0.28);
}

.hero-copy {
  max-width: 630px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.start-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.start-button:hover {
  transform: translateY(-3px);
  border-color: rgba(114, 241, 164, 0.45);
  background: rgba(114, 241, 164, 0.09);
}

.start-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
}

.sound-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 9, 20, 0.72);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.sound-toggle:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.sound-toggle.is-on .sound-icon {
  color: var(--green);
}

.games-section {
  padding: 60px 0 120px;
  scroll-margin-top: 20px;
}

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

.section-heading h2,
.coming-copy h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  letter-spacing: -0.055em;
}

.game-count {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.game-count span {
  color: var(--text);
  font-family: "Press Start 2P", monospace;
  font-size: 0.66rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.game-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 590px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
  text-decoration: none;
  backdrop-filter: blur(24px);
  transition:
    transform 240ms cubic-bezier(.2,.8,.2,1),
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48);
}

.card-glow {
  position: absolute;
  inset: auto -20% -40% -20%;
  z-index: -1;
  height: 70%;
  border-radius: 50%;
  opacity: 0.16;
  filter: blur(75px);
  transition: opacity 240ms ease;
}

.game-card:hover .card-glow {
  opacity: 0.3;
}

.chess-card .card-glow {
  background: var(--purple);
}

.croc-card .card-glow {
  background: var(--green);
}

.card-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(114, 241, 164, 0.75);
}

.game-art {
  position: relative;
  flex: 1;
  min-height: 270px;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 22px;
}

.chess-art {
  background:
    linear-gradient(135deg, rgba(159, 122, 234, 0.34), rgba(85, 194, 255, 0.08)),
    repeating-conic-gradient(from 45deg, rgba(255,255,255,0.06) 0 25%, transparent 0 50%) 50% / 70px 70px;
}

.croc-art {
  background:
    linear-gradient(145deg, rgba(114, 241, 164, 0.23), rgba(255, 209, 102, 0.07)),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;
}

.chess-piece {
  position: absolute;
  line-height: 1;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.32));
}

.chess-king {
  left: 13%;
  bottom: -10%;
  color: #f4f0ff;
  font-size: clamp(10rem, 24vw, 17rem);
  transform: rotate(-8deg);
}

.chess-knight {
  top: 8%;
  right: 8%;
  color: rgba(7, 9, 20, 0.6);
  font-size: clamp(7rem, 17vw, 12rem);
  transform: rotate(8deg);
}

.croc-face {
  position: absolute;
  left: 50%;
  top: 48%;
  font-size: clamp(8rem, 19vw, 13rem);
  filter: drop-shadow(0 25px 34px rgba(0, 0, 0, 0.32));
  transform: translate(-50%, -50%) rotate(-5deg);
}

.pixel-block {
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--yellow);
  box-shadow: 0 0 22px rgba(255, 209, 102, 0.4);
}

.block-one {
  top: 20%;
  left: 16%;
}

.block-two {
  top: 13%;
  right: 18%;
  width: 18px;
  height: 18px;
}

.block-three {
  bottom: 18%;
  right: 12%;
  width: 38px;
  height: 38px;
}

.art-number {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.32);
  font-family: "Press Start 2P", monospace;
  font-size: 0.62rem;
}

.card-content {
  padding: 4px 4px 2px;
}

.game-type {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-content h3 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.05em;
}

.card-content > p:not(.game-type) {
  min-height: 58px;
  margin: 13px 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.play-label {
  font-weight: 800;
}

.play-arrow {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  font-size: 1.2rem;
  transition: transform 180ms ease, background 180ms ease;
}

.game-card:hover .play-arrow {
  transform: translateX(4px);
  background: var(--text);
  color: var(--bg);
}

.coming-soon {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 120px;
  padding: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.035);
}

.coming-copy p:last-child {
  max-width: 470px;
  color: var(--muted);
  line-height: 1.7;
}

.cabinet-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-cabinet {
  aspect-ratio: 0.75;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.13);
}

.mini-cabinet span {
  color: var(--muted);
  font-family: "Press Start 2P", monospace;
  font-size: 0.55rem;
}

.mini-cabinet strong {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

footer {
  width: min(1180px, calc(100% - 40px));
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(114, 241, 164, 0.7);
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding-top: 140px;
  }

  .game-grid,
  .coming-soon {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 540px;
  }

  .coming-soon {
    padding: 32px;
  }
}

@media (max-width: 560px) {
  .page-shell,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .sound-label {
    display: none;
  }

  .sound-toggle {
    padding: 11px 14px;
  }

  .hero {
    padding-bottom: 60px;
  }

  .hero h1 strong {
    font-size: clamp(3.7rem, 20vw, 6rem);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-card {
    min-height: 505px;
    padding: 16px;
    border-radius: 24px;
  }

  .game-art {
    min-height: 235px;
  }

  .cabinet-row {
    grid-template-columns: 1fr;
  }

  .mini-cabinet {
    aspect-ratio: auto;
    min-height: 130px;
  }

  footer {
    flex-direction: column;
    gap: 4px;
  }
}

@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;
  }
}
