:root {
  color-scheme: light;
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --ink: #24332d;
  --green: #72c6a1;
  --green-dark: #2f7f68;
  --paper: #fffaf0;
  --yellow: #ffd66b;
  --orange: #f59a4a;
  --blue: #5f8fc9;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 214, 107, 0.42), transparent 24%),
    linear-gradient(180deg, #e0f7ef 0%, #f9f0d6 62%, #dfb679 100%);
}

.app {
  width: min(960px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 22px;
}

.hero {
  text-align: center;
}

.eyebrow,
.lead {
  margin: 0;
  font-weight: 800;
}

.eyebrow {
  color: var(--green-dark);
  font-size: 1rem;
}

h1 {
  margin: 4px 0;
  font-size: clamp(2.4rem, 9vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  font-size: clamp(1rem, 3vw, 1.35rem);
}

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

.game-card {
  position: relative;
  min-height: 190px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  border: 3px solid rgba(47, 127, 104, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 8px 0 rgba(47, 127, 104, 0.16);
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
}

.game-card:focus-visible {
  outline: 4px solid var(--orange);
  outline-offset: 4px;
}

.icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
}

.card-mogura .icon {
  background: var(--orange);
}

.card-eawase .icon {
  background: var(--green-dark);
}

.card-moji .icon {
  background: var(--blue);
}

.title {
  font-size: 1.45rem;
  font-weight: 900;
}

.text {
  font-size: 1rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .app {
    padding: 14px;
    align-content: start;
  }

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

  .game-card {
    min-height: 118px;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .text {
    grid-column: 2;
  }
}
