* {
  box-sizing: border-box;
}

:root {
  --hue: 255;
  --accent: hsl(var(--hue) 90% 70%);
  --accent-soft: hsl(var(--hue) 90% 70% / 0.18);
  --text: #f7f7ff;
  --muted: rgba(247, 247, 255, 0.65);
  --glass: rgba(10, 10, 18, 0.35);
  --border: rgba(255, 255, 255, 0.12);
}

html,
body {
  margin: 0;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top, hsl(var(--hue) 70% 12%), #05050a 60%, #020204 100%);
  color: var(--text);
  overflow: hidden;
}

#background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.card {
  width: min(560px, 100%);
  padding: 3rem 2.5rem;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow:
    0 20px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  text-align: center;
  animation: floatIn 900ms ease-out both;
}

.domain {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #ffffff 20%, var(--accent) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hello {
  margin: 1.25rem 0 2rem;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  color: var(--muted);
}

.button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), var(--accent-soft));
  color: var(--text);
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

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

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 600px) {
  .card {
    padding: 2.25rem 1.5rem;
  }
}
.button-link {
  display: inline-block;
  text-decoration: none;
  margin-left: 0.6rem;
}

/* Snake page */
.snake-card {
  width: min(620px, 100%);
}

.snake-title {
  font-size: clamp(2.2rem, 8vw, 3.5rem);
}

#game {
  display: block;
  margin: 0 auto 1rem;
  width: min(400px, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(5, 5, 12, 0.6);
}

.score-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button-row .button-link {
  margin-left: 0;
}

.hint {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}