* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f7efe4;
  color: #2b2118;
  line-height: 1.6;
}

.hero {
  min-height: 100vh;
  padding: 30px;
  background: linear-gradient(135deg, #f8ead7, #fff8ee);
  position: relative;
  overflow: hidden;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 5;
}

nav h1 {
  font-size: 26px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #2b2118;
  font-weight: bold;
}

.hero-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 700px;
  margin-top: 90px;
  position: relative;
  z-index: 3;
}

.badge {
  display: inline-block;
  background: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero-content h2 {
  font-size: 58px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60%;
  height: 110vh;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

button {
  background: #2b2118;
  color: #fff8ee;
  border: none;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s ease;
}

button:hover {
  transform: translateY(-3px);
  background: #5b3f2a;
}

.section {
  padding: 80px 30px;
  text-align: center;
}

.section h2 {
  font-size: 38px;
  margin-bottom: 35px;
}

.cream {
  background: #fff8ee;
}

.cards,
.episode-list {
  display: grid;
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.cards {
  grid-template-columns: repeat(4, 1fr);
}

.episode-list {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.episode {
  background: #fffaf3;
  padding: 30px;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(73, 48, 28, 0.08);
  transition: 0.25s ease;
}

.card {
  cursor: pointer;
}

.card:hover,
.episode:hover {
  transform: translateY(-8px);
}

.pet {
  font-size: 56px;
  margin-bottom: 12px;
}

.card h3,
.episode h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.message {
  margin: 30px auto 0;
  max-width: 500px;
  background: #fff;
  padding: 18px 24px;
  border-radius: 20px;
  font-weight: bold;
}

/* Arcade Menu */
.arcade-section {
  background: #f7efe4;
}

.arcade-intro {
  margin-top: -20px;
  margin-bottom: 35px;
  font-size: 18px;
}

.games-menu {
  max-width: 900px;
  margin: 35px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.games-menu button {
  background: #fffaf3;
  color: #2b2118;
  padding: 35px 20px;
  border-radius: 28px;
  font-size: 18px;
  box-shadow: 0 14px 35px rgba(73, 48, 28, 0.08);
}

.games-menu button:hover {
  background: #fff;
}

/* Game Modal */
.game-modal {
  position: fixed;
  inset: 0;
  background: rgba(43, 33, 24, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.game-modal.active {
  display: flex;
}

.game-window {
  position: relative;
  width: min(92%, 560px);
  background: #fffaf3;
  padding: 38px;
  border-radius: 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(43, 33, 24, 0.25);
}

.close-game {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 24px;
}

.game-result {
  margin-top: 18px;
  background: #fff;
  padding: 16px;
  border-radius: 18px;
  font-weight: bold;
  min-height: 52px;
}

.game-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.big-pet {
  font-size: 55px;
  margin: 10px 0 15px;
}

select {
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  border: 2px solid #ead8c1;
  background: #fff;
  margin-bottom: 12px;
  font-weight: bold;
}
.read-btn {
  display: inline-block;
  background: #2b2118;
  color: #fff8ee;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
}

footer {
  text-align: center;
  padding: 28px;
  background: #2b2118;
  color: #fff8ee;
}

/* Mobile */
@media (max-width: 900px) {
  .games-menu,
  .episode-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-image {
    width: 55%;
    opacity: 0.35;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 18px;
  }

  nav a {
    margin: 0 8px;
    font-size: 14px;
  }

  .hero-container {
    text-align: center;
    justify-content: center;
  }

  .hero-content {
    margin-top: 70px;
  }

  .hero-content h2 {
    font-size: 40px;
  }

  .hero-image {
    position: relative;
    width: 100%;
    height: auto;
    opacity: 1;
    margin-top: 30px;
  }

  .hero-image img {
    max-width: 400px;
    margin: 0 auto;
    display: block;
  }

  .cards,
  .episode-list,
  .games-menu {
    grid-template-columns: 1fr;
  }

  .game-window {
    padding: 34px 22px;
  }
}