@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&display=swap");

:root {
  --c1: #ff5f6d; /* red */
  --c2: #3fa9f5; /* blue */
  --c3: #ffca28; /* yellow */
  --c4: #66bb6a; /* green */
  --purple: #8e6bff;
  --ink: #2b2140;
  --paper: #fffaf0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Baloo 2", "Comic Sans MS", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #a1c4fd 0%, #c2e9fb 45%, #fbc2eb 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

header {
  background: var(--purple);
  padding: 1rem 1rem 0.75rem;
  text-align: center;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}

header .brand {
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

nav a {
  color: var(--purple);
  background: white;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 3px solid transparent;
  transition: transform 0.15s ease;
}

nav a .emo {
  font-size: 1.3rem;
}

nav a:hover {
  transform: scale(1.06);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
}

.mascot {
  font-size: 4.5rem;
  display: inline-block;
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0.4rem 0 0.2rem;
}

.hero p {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 2rem;
}

.menu-card {
  text-decoration: none;
  color: white;
  background: var(--card-color, var(--purple));
  border-radius: 28px;
  padding: 1.6rem 1rem;
  text-align: center;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-weight: 800;
}

.menu-card:hover {
  transform: translateY(-4px) scale(1.03);
}

.menu-card:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
}

.menu-card .icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.4rem;
}

.menu-card .label {
  font-size: 1.3rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}

.game-card {
  text-decoration: none;
  color: white;
  border-radius: 32px;
  padding: 2.4rem 1.2rem;
  text-align: center;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-weight: 800;
}

.game-card:hover {
  transform: translateY(-4px) scale(1.03);
}

.game-card:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
}

.game-card .icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 0.5rem;
}

.game-card .label {
  font-size: 1.6rem;
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 2.1rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.9rem;
}

.read-btn {
  display: block;
  margin: 0 auto 2rem;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.read-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.tip-card {
  background: var(--paper);
  border: 5px solid var(--card-color, var(--c2));
  border-radius: 26px;
  padding: 1.3rem 1.2rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.08);
}

.tip-icon {
  font-size: 2.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.tip-text {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  line-height: 1.35;
}

.speak-btn {
  flex-shrink: 0;
  border: none;
  background: var(--card-color, var(--c2));
  color: white;
  font-size: 1.4rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

.speak-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-nav a {
  background: var(--purple);
  color: white;
  text-decoration: none;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.15);
}

.page-nav a:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

@media (max-width: 480px) {
  .menu-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
}
