:root {
  --ink: #17324d;
  --purple: #6c4bd3;
  --purple-dark: #42258e;
  --yellow: #ffd84d;
  --green: #62cd6d;
  --paper: #fffdf4;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Trebuchet MS", system-ui, sans-serif;
  background: linear-gradient(180deg, #8cddff 0%, #d8f5ff 58%, #78d472 58%, #43aa59 100%);
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.sky::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -110px;
  height: 270px;
  border-radius: 50% 50% 0 0;
  background: #2f9548;
}

.cloud {
  position: absolute;
  width: 150px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  filter: drop-shadow(0 5px 0 rgba(70, 142, 170, .13));
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 12px;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  left: 25px;
  width: 65px;
  height: 65px;
}

.cloud::after {
  right: 20px;
  width: 78px;
  height: 78px;
}

.cloud-one {
  top: 14%;
  left: 5%;
  transform: scale(.8);
}

.cloud-two {
  top: 9%;
  right: 6%;
  transform: scale(1.1);
}

.star {
  position: absolute;
  color: #fff7a1;
  font-size: 2rem;
  text-shadow: 0 3px 0 rgba(54, 108, 150, .18);
  animation: twinkle 2.6s ease-in-out infinite;
}

.star-one { top: 25%; left: 14%; }
.star-two { top: 20%; right: 15%; animation-delay: .8s; }
.star-three { top: 45%; right: 6%; animation-delay: 1.5s; }

.home {
  width: min(1040px, calc(100% - 32px));
  margin: auto;
  padding: 48px 0 36px;
}

.hero {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: #2d6086;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 2px 0 8px;
  padding: .05em .08em .12em;
  color: var(--purple);
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.04em;
  text-shadow: 0 5px 0 var(--purple-dark), 0 11px 18px rgba(35, 71, 105, .22);
}

.intro {
  max-width: 620px;
  margin: 20px auto 0;
  color: #244b68;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.45;
}

.game-tile {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) 1.2fr;
  align-items: center;
  gap: clamp(24px, 6vw, 68px);
  padding: clamp(26px, 5vw, 52px);
  border: 5px solid #17324d;
  border-radius: 36px;
  background: var(--paper);
  box-shadow: 0 13px 0 #244b68, 0 24px 45px rgba(28, 61, 91, .3);
}

.monster {
  position: relative;
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 18px auto 0;
  border: 6px solid #17324d;
  border-radius: 45% 45% 40% 40%;
  background: var(--green);
  box-shadow: inset -18px -20px 0 rgba(33, 134, 70, .18), 0 10px 0 #b5e766;
  transform: rotate(-3deg);
}

.monster::before,
.monster::after {
  content: "";
  position: absolute;
  bottom: -18px;
  width: 37%;
  height: 58px;
  border: 6px solid #17324d;
  border-top: 0;
  border-radius: 0 0 45% 45%;
  background: var(--green);
}

.monster::before { left: 8%; }
.monster::after { right: 8%; }

.horn {
  position: absolute;
  z-index: -1;
  top: -35px;
  width: 62px;
  height: 80px;
  border: 6px solid #17324d;
  border-radius: 70% 10%;
  background: var(--yellow);
}

.horn-left { left: 16px; transform: rotate(-30deg); }
.horn-right { right: 16px; transform: scaleX(-1) rotate(-30deg); }

.eye {
  position: absolute;
  top: 27%;
  width: 31%;
  aspect-ratio: 1;
  border: 5px solid #17324d;
  border-radius: 50%;
  background: white;
}

.eye::after {
  content: "";
  position: absolute;
  top: 37%;
  left: 38%;
  width: 27%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #17324d;
}

.eye-left { left: 15%; }
.eye-right { right: 15%; }

.mouth {
  position: absolute;
  left: 28%;
  bottom: 19%;
  width: 44%;
  height: 20%;
  overflow: hidden;
  border: 5px solid #17324d;
  border-radius: 8px 8px 50% 50%;
  background: #7a3051;
}

.mouth i {
  display: inline-block;
  width: 19%;
  height: 40%;
  margin: -2px 4% 0;
  background: white;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.badge {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  color: #3a2779;
  background: #e6ddff;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.game-copy h2 {
  margin: 11px 0 10px;
  color: var(--purple-dark);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.game-copy p {
  margin: 0 0 25px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.5;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 62px;
  padding: 13px 28px;
  border: 4px solid #17324d;
  border-radius: 18px;
  color: #17324d;
  background: var(--yellow);
  box-shadow: 0 7px 0 #c08025;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 900;
  text-decoration: none;
  transition: transform .1s ease, box-shadow .1s ease, filter .15s ease;
}

.play-button:hover {
  filter: brightness(1.06);
  transform: translateY(-2px) rotate(-1deg);
}

.play-button:active {
  box-shadow: 0 2px 0 #c08025;
  transform: translateY(5px);
}

.play-button:focus-visible {
  outline: 5px solid white;
  outline-offset: 4px;
}

footer {
  padding: 20px;
  color: white;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 0 #276d3a;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: .45; transform: scale(.85) rotate(-8deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(8deg); }
}

@media (max-width: 680px) {
  .home { padding-top: 30px; }

  .game-tile {
    grid-template-columns: 1fr;
    text-align: center;
    border-radius: 26px;
  }

  .monster { width: 190px; }

  .cloud-two { right: -45px; }
  .cloud-one { left: -50px; }
}

@media (prefers-reduced-motion: reduce) {
  .star { animation: none; }
  .play-button { transition: none; }
}
