:root {
  --sky-top: #7ec8e3;
  --sky-mid: #b8e4c9;
  --sky-bottom: #f0d58a;
  --ink: #1f2a24;
  --ink-soft: #3d4f44;
  --panel: rgba(255, 252, 245, 0.94);
  --primary: #e8a317;
  --shadow: 0 12px 32px rgba(31, 42, 36, 0.16);
  --font: "Fredoka", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  min-height: 100dvh;
  overscroll-behavior: none;
}

.sky {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.45), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.35), transparent 22%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-bottom) 100%);
  z-index: -1;
}

.home {
  width: min(560px, 100%);
  margin: 0 auto;
  padding:
    max(2rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(2.5rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
}

.hero {
  text-align: center;
}

.hero-mascot {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  animation: pop-in 0.45s cubic-bezier(0.22, 1.4, 0.36, 1);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  line-height: 1.05;
}

.hero p {
  margin: 0.5rem 0 0;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border-radius: 28px;
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
  min-height: 6.5rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.game-card:active {
  transform: translateY(3px);
  box-shadow: 0 6px 16px rgba(31, 42, 36, 0.14);
}

.game-card img {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.game-card-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
}

.game-card-title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}

.game-card-blurb {
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 700px) {
  .home {
    width: min(720px, 100%);
  }

  .game-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }

  .game-card {
    flex-direction: column;
    text-align: center;
    padding: 1.35rem 1.2rem 1.5rem;
    min-height: 14rem;
  }

  .game-card-text {
    align-items: center;
    text-align: center;
  }

  .game-card img {
    width: 110px;
    height: 110px;
  }
}
