:root {
  --bg-deep: #12151a;
  --bg-mid: #1a1f27;
  --ink: #e8e4df;
  --ink-muted: #9a948c;
  --accent: #d4a28a;
  --accent-soft: rgba(212, 162, 138, 0.14);
  --line: rgba(232, 228, 223, 0.1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", sans-serif;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg-deep);
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 15% -10%, rgba(212, 162, 138, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 20%, rgba(120, 140, 160, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(26, 31, 39, 0.9), transparent 60%),
    linear-gradient(165deg, #151820 0%, var(--bg-deep) 45%, #101318 100%);
  animation: ambience 14s ease-in-out infinite alternate;
}

@keyframes ambience {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.06);
  }
}

.hero {
  padding: clamp(4rem, 14vh, 7.5rem) clamp(1.25rem, 4vw, 3rem) 3rem;
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 7vw, 3.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  animation: rise 0.9s ease-out 0.1s both;
}

.lede {
  margin: 0 auto 2.75rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--ink-muted);
  animation: rise 0.9s ease-out 0.2s both;
}

.games {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  max-width: 36rem;
  margin-inline: auto;
  text-align: left;
}

.game {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--accent-soft);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.game:nth-child(1) {
  animation: slam-in-left 0.7s cubic-bezier(0.22, 1.2, 0.36, 1) 0.35s both;
}

.game:nth-child(2) {
  animation: slam-in-right 0.7s cubic-bezier(0.22, 1.2, 0.36, 1) 0.5s both;
}

@media (max-width: 560px) {
  .games {
    grid-template-columns: 1fr;
  }

  .game:nth-child(1),
  .game:nth-child(2) {
    animation-name: slam-in-left;
  }
}

.game:hover,
.game:focus-visible {
  border-color: rgba(212, 162, 138, 0.45);
  background: rgba(212, 162, 138, 0.2);
  transform: translateY(-2px);
  outline: none;
}

.game[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
  opacity: 0.85;
}

.game-status {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.game-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.game-desc {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.site-footer {
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

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

@keyframes slam-in-left {
  from {
    opacity: 0;
    transform: translateX(-120%);
  }
  70% {
    opacity: 1;
    transform: translateX(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slam-in-right {
  from {
    opacity: 0;
    transform: translateX(120%);
  }
  70% {
    opacity: 1;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .hero h1,
  .lede,
  .game:nth-child(1),
  .game:nth-child(2) {
    animation: none;
  }

  .game {
    transition: none;
  }
}
