* {
  box-sizing: border-box;
}

:root {
  --cream: #fffdf1;
  --yellow: #ffe7a0;
  --blue: #2fb0ef;
  --orange: #ffad08;
  --red: #f04438;
  --dark: #47352c;
  --white: #ffffff;
}

html {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100vh;
  margin: 0;
  color: var(--dark);
  font-family: "Trebuchet MS", "Comic Sans MS", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 231, 160, 0.28) 0, rgba(255, 253, 241, 0) 360px),
    var(--cream);
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

main {
  flex: 1 0 auto;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  height: 190px;
  background: linear-gradient(180deg, #ffe9a8 0%, #ffe39b 100%);
  overflow: hidden;
}

.header-inner {
  /* position: relative;
  z-index: 5; */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 28px;
}

.header-birds {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.cloud-layer {
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -42px;
  z-index: 2;
  height: 105px;
  pointer-events: none;
}

.cloud-layer-back {
  bottom: -28px;
  opacity: 0.75;
  background:
    radial-gradient(circle at 5% 65%, var(--cream) 0 55px, transparent 56px),
    radial-gradient(circle at 14% 50%, var(--cream) 0 45px, transparent 46px),
    radial-gradient(circle at 25% 64%, var(--cream) 0 62px, transparent 63px),
    radial-gradient(circle at 39% 52%, var(--cream) 0 48px, transparent 49px),
    radial-gradient(circle at 53% 65%, var(--cream) 0 60px, transparent 61px),
    radial-gradient(circle at 68% 50%, var(--cream) 0 50px, transparent 51px),
    radial-gradient(circle at 82% 64%, var(--cream) 0 58px, transparent 59px),
    radial-gradient(circle at 95% 52%, var(--cream) 0 48px, transparent 49px);
}

.cloud-layer-front {
  z-index: 3;
  background:
    radial-gradient(circle at 0% 62%, var(--cream) 0 72px, transparent 73px),
    radial-gradient(circle at 9% 68%, var(--cream) 0 58px, transparent 59px),
    radial-gradient(circle at 17% 57%, var(--cream) 0 64px, transparent 65px),
    radial-gradient(circle at 31% 72%, var(--cream) 0 78px, transparent 79px),
    radial-gradient(circle at 43% 62%, var(--cream) 0 60px, transparent 61px),
    radial-gradient(circle at 51% 58%, var(--cream) 0 48px, transparent 49px),
    radial-gradient(circle at 66% 74%, var(--cream) 0 82px, transparent 83px),
    radial-gradient(circle at 78% 58%, var(--cream) 0 64px, transparent 65px),
    radial-gradient(circle at 88% 68%, var(--cream) 0 56px, transparent 57px),
    radial-gradient(circle at 100% 60%, var(--cream) 0 72px, transparent 73px);
}

.cloud-layer-front::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 22px;
  content: "";
  background: var(--cream);
}

.bird {
  position: absolute;
  width: 34px;
  height: 18px;
  background: var(--orange);
  border-radius: 65% 45% 50% 65%;
  animation: float-header-birds 7s ease-in-out infinite;
}

.bird::before,
.bird::after {
  position: absolute;
  content: "";
  background: var(--orange);
}

.bird::before {
  top: -10px;
  left: 8px;
  width: 21px;
  height: 18px;
  border-radius: 80% 20% 70% 20%;
  transform: rotate(-24deg);
  transform-origin: 30% 95%;
}

.bird::after {
  top: 4px;
  left: -9px;
  width: 14px;
  height: 10px;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.bird-left {
  top: 80px;
  left: 12%;
  transform: scale(0.78) rotate(-10deg);
}

.bird-mid {
  top: 95px;
  left: 56%;
  transform: scale(0.58) rotate(8deg);
  animation-delay: -1.5s;
}

.bird-right {
  top: 75px;
  right: 18%;
  transform: scale(0.68) rotate(14deg);
  animation-delay: -2.5s;
}

.site-logo {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.site-logo img {
  display: block;
  width: clamp(170px, 18vw, 270px);
  height: auto;
}

@keyframes float-header-birds {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 8px;
  }
}

.hero {
  position: relative;
  padding: 48px 0 20px;
  text-align: center;
}

.toy-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3.8vw, 48px);
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  font-size: clamp(1.9rem, 3.7vw, 3.4rem);
  line-height: 1;
}

.toy-row span {
  display: inline-block;
  color: var(--blue);
  filter: saturate(0.82) contrast(0.92) drop-shadow(0 3px 0 rgba(71, 53, 44, 0.08));
  transform-origin: center;
}

.toy-row span:nth-child(3n + 1) {
  color: #4f5cff;
}

.toy-row span:nth-child(3n + 2) {
  color: #ff8aa6;
}

.toy-row span:nth-child(3n) {
  color: #30bfa2;
}

.toy-row span:nth-child(2n) {
  transform: rotate(-8deg);
}

.toy-row span:nth-child(3n) {
  transform: rotate(9deg);
}

.hero h1,
.game-hero h1 {
  margin: 0;
  color: var(--orange);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 3px 5px 0 rgba(255, 173, 8, 0.2);
}

.hero h1 {
  font-size: clamp(2.85rem, 5vw, 4.35rem);
}

.games-section {
  padding: 10px 0 90px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 30px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.game-card {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-decoration: none;
  background: var(--white);
  border: 5px solid var(--white);
  border-radius: 13px;
  box-shadow: 0 13px 28px rgba(71, 53, 44, 0.17);
  transform: translateY(0) scale(1) rotate(0);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game-card:hover,
.game-card:focus-visible {
  border-color: #ffd34a;
  box-shadow: 0 22px 40px rgba(71, 53, 44, 0.23);
  transform: translateY(-8px) scale(1.045) rotate(-1deg);
}

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

.game-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 320ms ease;
}

.game-card:hover img,
.game-card:focus-visible img {
  transform: scale(1.045);
}

.home-game-card {
  aspect-ratio: 16 / 9;
  padding: 8px;
  background:
    linear-gradient(135deg, #ffffff 0%, #fff6d3 55%, #dff7ff 100%);
  border-color: #ffffff;
  border-radius: 22px;
  box-shadow:
    0 10px 0 rgba(255, 173, 8, 0.24),
    0 20px 34px rgba(71, 53, 44, 0.16);
}

.home-game-card:hover,
.home-game-card:focus-visible {
  border-color: #8ee2ff;
  box-shadow:
    0 12px 0 rgba(47, 176, 239, 0.22),
    0 24px 42px rgba(71, 53, 44, 0.2);
}

.home-game-card img {
  border-radius: 15px;
  height: 100%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.82);
}

.games-message {
  max-width: 620px;
  margin: 22px auto 0;
  padding: 16px 20px;
  color: var(--white);
  text-align: center;
  background: var(--red);
  border-radius: 18px;
}

.message-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-left: 14px;
  padding: 0 18px;
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
  background: var(--white);
  border-radius: 999px;
}

.message-back-link:hover,
.message-back-link:focus-visible {
  text-decoration: underline;
}

.kids-bottom {
  display: flex;
  justify-content: center;
  gap: 44px;
  min-height: 124px;
  margin-top: -86px;
  padding-bottom: 8px;
}

.kid {
  position: relative;
  display: grid;
  width: 122px;
  height: 146px;
  place-items: center;
}

.kid::before {
  position: absolute;
  bottom: 0;
  width: 58px;
  height: 74px;
  content: "";
  background: var(--white);
  border: 6px solid #ffc477;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
}

.kid-face {
  position: relative;
  z-index: 2;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  font-size: 3.5rem;
  background: #ffb36f;
  border-radius: 50%;
  box-shadow: inset -8px -8px 0 rgba(119, 53, 35, 0.14);
}

.kid-hair {
  position: absolute;
  top: 0;
  z-index: 3;
  width: 82px;
  height: 45px;
  border-radius: 60% 60% 42% 44%;
}

.kid-hair-blonde {
  left: 12px;
  background: #ffd47d;
  transform: rotate(-12deg);
}

.kid-hair-brown {
  right: 10px;
  background: #563429;
  transform: rotate(12deg);
}

.kid-gamepad {
  position: absolute;
  bottom: 28px;
  z-index: 4;
  font-size: 2rem;
}

.cloud-footer {
  position: relative;
  flex-shrink: 0;
  min-height: 96px;
  margin-top: -82px;
  padding: 58px 28px 14px;
  color: var(--white);
  background: var(--blue);
  overflow: visible;
}

.cloud-footer::before {
  position: absolute;
  right: 0;
  top: -62px;
  left: 0;
  height: 86px;
  content: "";
  background:
    radial-gradient(circle at 4% 78%, var(--blue) 0 42px, transparent 43px),
    radial-gradient(circle at 11% 68%, var(--blue) 0 34px, transparent 35px),
    radial-gradient(circle at 18% 88%, var(--blue) 0 48px, transparent 49px),
    radial-gradient(circle at 26% 68%, var(--blue) 0 44px, transparent 45px),
    radial-gradient(circle at 34% 92%, var(--blue) 0 54px, transparent 55px),
    radial-gradient(circle at 44% 72%, var(--blue) 0 38px, transparent 39px),
    radial-gradient(circle at 54% 88%, var(--blue) 0 48px, transparent 49px),
    radial-gradient(circle at 65% 64%, var(--blue) 0 48px, transparent 49px),
    radial-gradient(circle at 76% 88%, var(--blue) 0 54px, transparent 55px),
    radial-gradient(circle at 87% 70%, var(--blue) 0 42px, transparent 43px),
    radial-gradient(circle at 96% 84%, var(--blue) 0 46px, transparent 47px);
}

.cloud-footer nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: center;
  width: min(1120px, 100%);
  margin: 0 auto;
  font-size: 0.95rem;
  text-align: center;
}

.cloud-footer a {
  color: var(--white);
  text-decoration: none;
}

.cloud-footer a:hover,
.cloud-footer a:focus-visible {
  text-decoration: underline;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  background: var(--red);
  border: 5px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 8px 0 rgba(130, 30, 26, 0.23);
  transform: translateY(0) scale(1);
  transition:
    box-shadow 180ms ease,
    filter 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.back-button:hover,
.back-button:focus-visible {
  filter: saturate(1.08);
  box-shadow: 0 11px 0 rgba(130, 30, 26, 0.23);
  transform: translateY(-3px) scale(1.04);
}

.back-button:active {
  box-shadow: 0 4px 0 rgba(130, 30, 26, 0.23);
  transform: translateY(4px) scale(0.98);
}

.back-button:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
}

.top-back-button {
  position: absolute;
  top: 30px;
  left: max(22px, calc((100vw - 1120px) / 2));
  z-index: 2;
  width: 78px;
  height: 58px;
  font-size: 2.2rem;
}

.game-page {
  padding-bottom: 140px;
}

.game-hero {
  padding: 12px 0 22px;
}

.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;
}

.game-stage {
  width: min(1200px, 96vw);
  margin: 0 auto;
}

.player-shell {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 8px;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.95) 0 24px, transparent 25px),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.78) 0 28px, transparent 29px),
    linear-gradient(145deg, #ffe17f 0%, #ffcb5f 36%, #ffb244 100%);
  border: 6px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow:
    0 22px 50px rgba(71, 53, 44, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.72) 0 28px, transparent 29px),
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.54) 0 22px, transparent 23px),
    radial-gradient(circle at 78% 82%, rgba(255, 255, 255, 0.5) 0 34px, transparent 35px),
    linear-gradient(135deg, #fff2b8 0%, #8ee2ff 52%, #2fb0ef 100%);
  border-radius: 20px;
}

.player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000000;
}

.player-gate {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  background:
    radial-gradient(circle at 12% 78%, rgba(255, 173, 8, 0.3) 0 46px, transparent 47px),
    radial-gradient(circle at 88% 28%, rgba(240, 68, 56, 0.18) 0 38px, transparent 39px),
    linear-gradient(135deg, rgba(255, 253, 241, 0.32), rgba(47, 176, 239, 0.2));
}

.player-gate[hidden],
.player-frame.is-playing .player-gate {
  display: none;
  pointer-events: none;
}

.player-gate-card {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: center;
  width: min(340px, 100%);
  padding: clamp(18px, 3.4vw, 26px);
  background: rgba(255, 255, 255, 0.96);
  border: 4px solid rgba(255, 226, 122, 0.9);
  border-radius: 24px;
  box-shadow: 0 14px 24px rgba(71, 53, 44, 0.14);
}

.player-gate-card::before,
.player-gate-card::after {
  position: absolute;
  width: 38px;
  height: 38px;
  content: "";
  border-radius: 14px;
  transform: rotate(12deg);
}

.player-gate-card::before {
  top: -16px;
  left: 22px;
  background: #ffad08;
  box-shadow: inset -5px -5px 0 rgba(255, 255, 255, 0.28);
}

.player-gate-card::after {
  right: 24px;
  bottom: -16px;
  background: #2fb0ef;
  box-shadow: inset -5px -5px 0 rgba(255, 255, 255, 0.24);
  transform: rotate(-10deg);
}

.player-gate-note {
  max-width: 320px;
  margin: 0;
  color: var(--dark);
  font-size: clamp(0.92rem, 1.8vw, 1.08rem);
  font-weight: 700;
  line-height: 1.42;
}

.play-button {
  min-width: min(220px, 100%);
  min-height: 56px;
  padding: 0 26px;
  color: var(--white);
  font: inherit;
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(180deg, #ffb327 0%, #ff8a00 100%);
  border: 4px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 9px 0 #c56c00, 0 15px 24px rgba(71, 53, 44, 0.16);
  transition:
    box-shadow 180ms ease,
    filter 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.play-button:hover,
.play-button:focus-visible {
  filter: saturate(1.08);
  box-shadow: 0 12px 0 #c56c00, 0 18px 28px rgba(71, 53, 44, 0.18);
  transform: translateY(-2px) scale(1.03);
}

.play-button:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 4px;
}

.play-button:disabled {
  cursor: default;
  opacity: 0.7;
  box-shadow: none;
  transform: none;
}

.fullscreen-button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 18px;
  color: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(180deg, #68d2ff 0%, #2fb0ef 100%);
  border: 4px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 6px 0 #1686ca, 0 12px 18px rgba(47, 176, 239, 0.22);
}

.fullscreen-button:disabled {
  cursor: default;
  opacity: 0.65;
  box-shadow: none;
}

.fullscreen-button[hidden] {
  display: none;
}

.fullscreen-button:hover,
.fullscreen-button:focus-visible {
  transform: translateY(-1px);
}

.fullscreen-button:focus-visible {
  outline: 4px solid var(--white);
  outline-offset: 2px;
}

.player-fullscreen {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
}

.about-game,
.related-games-section {
  width: min(1100px, 94vw);
  margin: 26px auto 0;
}

.about-game {
  position: relative;
  padding: 30px 32px;
  background: var(--white);
  border: 5px solid #ffe09a;
  border-radius: 28px;
  box-shadow: 0 16px 34px rgba(71, 53, 44, 0.12);
}

.about-game::before {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 72px;
  height: 72px;
  content: "";
  background: radial-gradient(circle, rgba(255, 231, 160, 0.55) 0 34%, transparent 35%);
  opacity: 0.9;
  pointer-events: none;
}

.section-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.section-heading span {
  font-size: 2rem;
}

.about-game h2,
.related-games-section h2 {
  margin: 0;
  color: var(--orange);
  font-size: 2rem;
  line-height: 1.15;
}

.about-game p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.72;
}

.game-copy-block {
  margin-top: 24px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #fffdfa 0%, #fff6d7 100%);
  border: 2px solid rgba(255, 224, 154, 0.9);
  border-radius: 20px;
}

.game-copy-block h3 {
  margin: 0 0 8px;
  color: #6b4b00;
  font-size: 1.2rem;
  line-height: 1.2;
}

.game-copy-block ul {
  margin: 0;
  padding-left: 20px;
}

.game-copy-block li {
  margin-top: 8px;
  font-size: 1.02rem;
  line-height: 1.6;
}

.game-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 0;
}

.game-meta div {
  padding: 18px;
  background: linear-gradient(180deg, #eefaff 0%, #dbf5ff 100%);
  border: 2px solid rgba(47, 176, 239, 0.14);
  border-radius: 18px;
}

.game-meta dt {
  margin-bottom: 5px;
  color: var(--red);
  font-weight: 900;
}

.game-meta dd {
  margin: 0;
}

.related-games-section h2 {
  margin-bottom: 12px;
  text-align: center;
}

.related-games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.related-games-copy {
  max-width: 640px;
  margin: 0 0 22px;
  color: #5d4638;
  font-size: 0.98rem;
  line-height: 1.65;
  text-align: center;
}

.related-games-copy a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.related-games-copy a:hover,
.related-games-copy a:focus-visible {
  text-decoration: underline;
}

.related-games-grid .game-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 0 0 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 236, 185, 0.92);
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(71, 53, 44, 0.08);
}

.related-games-grid .game-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}

.related-games-grid .game-card-title {
  display: block;
  padding: 0 10px;
  color: #4e352a;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.25;
}

.game-card-action {
  justify-self: start;
  margin-left: 10px;
  padding: 6px 9px;
  color: #7a4500;
  font-size: 0.72rem;
  font-weight: 900;
  background: linear-gradient(180deg, #fff2b5 0%, #ffd970 100%);
  border-radius: 999px;
}

.bottom-actions {
  display: flex;
  justify-content: center;
  margin: 28px 0 0;
}

.bottom-back-button {
  min-height: 60px;
  padding: 0 28px;
  font-size: 1.08rem;
}

.game-header .back-button,
.game-page .back-button {
  color: #6f3d00;
  background: linear-gradient(180deg, #ffe17f 0%, #ffbc52 100%);
  box-shadow: 0 8px 0 rgba(212, 129, 18, 0.46), 0 16px 26px rgba(71, 53, 44, 0.14);
}

.game-header .back-button:hover,
.game-header .back-button:focus-visible,
.game-page .back-button:hover,
.game-page .back-button:focus-visible {
  box-shadow: 0 11px 0 rgba(212, 129, 18, 0.46), 0 19px 28px rgba(71, 53, 44, 0.16);
}

.game-header .back-button:active,
.game-page .back-button:active {
  box-shadow: 0 4px 0 rgba(212, 129, 18, 0.34);
}

.content-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 78px 0 150px;
}

.content-card {
  width: min(900px, 100%);
  padding: 34px;
  background: var(--white);
  border: 5px solid #ffe09a;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(71, 53, 44, 0.14);
}

.content-card h1,
.page-title {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  text-align: center;
}

.content-back-button,
.home-button {
  min-height: 50px;
  margin-bottom: 22px;
  padding: 0 22px;
}

.content-note {
  padding: 16px 18px;
  color: #6b4b00;
  background: #fff3c7;
  border-radius: 14px;
}

.page-section {
  margin-top: 28px;
}

.content-card h2,
.page-section h2 {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 1.45rem;
  line-height: 1.2;
}

.content-card p,
.page-section p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  main {
    width: min(100% - 28px, 1120px);
  }

  .games-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 24px;
  }

  .related-games-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    gap: 18px;
  }

  .cloud-footer nav {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  main {
    width: min(100% - 20px, 1120px);
  }

  .site-header {
    height: 135px;
  }

  .header-inner {
    padding-top: 22px;
  }

  .cloud-layer {
    left: -4%;
    right: -4%;
    bottom: -24px;
    height: 68px;
  }

  .cloud-layer-back {
    bottom: -14px;
    opacity: 0.75;
    background:
      radial-gradient(circle at 5% 65%, var(--cream) 0 32px, transparent 33px),
      radial-gradient(circle at 16% 50%, var(--cream) 0 27px, transparent 28px),
      radial-gradient(circle at 28% 66%, var(--cream) 0 36px, transparent 37px),
      radial-gradient(circle at 43% 52%, var(--cream) 0 29px, transparent 30px),
      radial-gradient(circle at 58% 66%, var(--cream) 0 35px, transparent 36px),
      radial-gradient(circle at 74% 50%, var(--cream) 0 30px, transparent 31px),
      radial-gradient(circle at 91% 64%, var(--cream) 0 34px, transparent 35px);
  }

  .cloud-layer-front {
    background:
      radial-gradient(circle at 0% 62%, var(--cream) 0 42px, transparent 43px),
      radial-gradient(circle at 10% 68%, var(--cream) 0 34px, transparent 35px),
      radial-gradient(circle at 21% 57%, var(--cream) 0 37px, transparent 38px),
      radial-gradient(circle at 36% 72%, var(--cream) 0 44px, transparent 45px),
      radial-gradient(circle at 50% 62%, var(--cream) 0 35px, transparent 36px),
      radial-gradient(circle at 62% 58%, var(--cream) 0 29px, transparent 30px),
      radial-gradient(circle at 76% 74%, var(--cream) 0 46px, transparent 47px),
      radial-gradient(circle at 89% 58%, var(--cream) 0 37px, transparent 38px),
      radial-gradient(circle at 100% 60%, var(--cream) 0 42px, transparent 43px);
  }

  .cloud-layer-front::after {
    height: 16px;
  }

  .bird {
    width: 26px;
    height: 14px;
  }

  .bird::before {
    top: -8px;
    left: 6px;
    width: 16px;
    height: 14px;
  }

  .bird::after {
    top: 3px;
    left: -7px;
    width: 11px;
    height: 8px;
  }

  .bird-left {
    top: 62px;
    left: 8%;
    transform: scale(0.68) rotate(-10deg);
  }

  .bird-mid {
    top: 68px;
    left: 56%;
    transform: scale(0.55) rotate(8deg);
  }

  .bird-right {
    top: 58px;
    right: 9%;
    transform: scale(0.58) rotate(14deg);
  }

  .site-logo {
    width: auto;
  }

  .site-logo img {
    width: 180px;
  }

  .hero {
    padding-top: 36px;
    padding-bottom: 12px;
  }

  .toy-row {
    gap: 12px 20px;
    font-size: clamp(1.75rem, 8vw, 2.6rem);
  }

  .games-section {
    padding-top: 4px;
    padding-bottom: 110px;
  }

  .games-grid,
  .related-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .game-card {
    border-width: 4px;
    border-radius: 10px;
  }

  .home-game-card {
    padding: 5px;
    border-radius: 16px;
  }

  .home-game-card img {
    border-radius: 10px;
  }

  .kids-bottom {
    gap: 10px;
    min-height: 138px;
    margin-top: -66px;
  }

  .kid {
    transform: scale(0.84);
  }

  .cloud-footer {
    padding: 78px 16px 18px;
  }

  .cloud-footer nav {
    justify-content: center;
    text-align: center;
  }

  .top-back-button {
    top: 22px;
    left: 10px;
    width: 58px;
    height: 48px;
    min-height: 48px;
    border-width: 4px;
    font-size: 1.7rem;
  }

  .game-page {
    padding-bottom: 124px;
  }

  .game-hero {
    padding-top: 12px;
  }

  .player-shell {
    width: 100%;
    padding: 8px;
    border-width: 4px;
    border-radius: 24px;
  }

  .player-gate {
    padding: 14px;
  }

  .player-gate-card {
    gap: 14px;
    padding: 22px 18px;
    border-width: 4px;
    border-radius: 22px;
  }

  .player-gate-card::before,
  .player-gate-card::after {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .player-gate-note {
    font-size: 1rem;
    line-height: 1.35;
  }

  .play-button {
    min-width: min(220px, 100%);
    min-height: 56px;
    padding: 0 24px;
    font-size: 1.12rem;
  }

  .fullscreen-button {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.9rem;
  }

  .player-fullscreen {
    top: 14px;
    right: 14px;
  }

  .about-game,
  .related-games-section {
    padding: 20px;
    border-width: 4px;
  }

  .about-game h2,
  .related-games-section h2 {
    font-size: 1.65rem;
  }

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

  .game-copy-block {
    padding: 16px;
    border-radius: 16px;
  }

  .message-back-link {
    justify-content: center;
    width: 100%;
    margin: 12px 0 0;
  }

  .content-page {
    padding: 58px 0 124px;
  }

  .content-card {
    padding: 22px;
    border-width: 4px;
  }

  .content-card h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 360px) {
  .header-birds {
    display: none;
  }

  .toy-row {
    gap: 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bird {
    animation: none;
  }

  .game-card,
  .game-card img,
  .back-button {
    transition: none;
  }
}

.home-body {
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.85) 0 54px, transparent 56px),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.74) 0 64px, transparent 66px),
    radial-gradient(circle at 74% 48%, rgba(142, 226, 255, 0.28) 0 110px, transparent 112px),
    linear-gradient(180deg, #fff1b9 0%, #fff8dc 34%, #fffdf1 100%);
}

.home-body .site-header {
  height: clamp(150px, 18vw, 210px);
  background:
    radial-gradient(circle at 16% 30%, rgba(255, 255, 255, 0.75) 0 44px, transparent 45px),
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.58) 0 52px, transparent 53px),
    linear-gradient(180deg, #ffe48e 0%, #fff0ad 72%, #fffdf1 100%);
}

.home-body .header-inner {
  position: relative;
  z-index: 5;
  padding-top: clamp(18px, 2.8vw, 30px);
}

.home-body .site-logo {
  padding: clamp(8px, 1.6vw, 14px) clamp(16px, 2.4vw, 26px);
  background: rgba(255, 255, 255, 0.72);
  border: 4px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  box-shadow:
    0 14px 0 rgba(255, 173, 8, 0.15),
    0 24px 48px rgba(71, 53, 44, 0.12);
  animation: home-logo-rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-body .site-logo img {
  width: clamp(205px, 24vw, 330px);
}

.home-sky-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.sky-shape {
  position: absolute;
  display: block;
  opacity: 0.85;
  animation: home-soft-float 6s ease-in-out infinite;
}

.sky-shape-star {
  width: 26px;
  height: 26px;
  background: #ffcf3f;
  clip-path: polygon(50% 0, 62% 34%, 98% 35%, 69% 57%, 79% 92%, 50% 72%, 21% 92%, 31% 57%, 2% 35%, 38% 34%);
}

.sky-shape-dot {
  width: 18px;
  height: 18px;
  background: #ff7f93;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 127, 147, 0.15);
}

.sky-shape-one {
  top: 40px;
  left: 19%;
}

.sky-shape-two {
  top: 72px;
  left: 73%;
  animation-delay: -1.8s;
}

.sky-shape-three {
  top: 104px;
  right: 16%;
  transform: scale(0.78) rotate(18deg);
  animation-delay: -3s;
}

.home-body .hero {
  isolation: isolate;
  padding: clamp(18px, 3vw, 34px) 0 clamp(10px, 2vw, 18px);
}

.hero-bubble {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.hero-bubble-one {
  top: 18%;
  left: min(2vw, 28px);
  width: clamp(70px, 12vw, 140px);
  height: clamp(70px, 12vw, 140px);
  background: rgba(142, 226, 255, 0.26);
}

.hero-bubble-two {
  right: 0;
  bottom: 10px;
  width: clamp(56px, 9vw, 110px);
  height: clamp(56px, 9vw, 110px);
  background: rgba(255, 173, 8, 0.16);
}

.home-body .toy-row {
  gap: clamp(16px, 3.2vw, 42px);
  margin-bottom: clamp(6px, 1vw, 10px);
}

.home-body .toy-row span {
  animation: home-toy-bob 4.8s ease-in-out infinite;
}

.home-body .toy-row span:nth-child(2n) {
  animation-delay: -1.1s;
}

.home-body .toy-row span:nth-child(3n) {
  animation-delay: -2.2s;
}

.home-body .hero h1 {
  margin-bottom: 0;
  color: #ff9700;
  letter-spacing: 0;
  transform-origin: center;
  text-shadow:
    0 6px 0 rgba(255, 213, 80, 0.62),
    0 16px 30px rgba(71, 53, 44, 0.12);
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    text-shadow 260ms ease,
    filter 260ms ease;
}

.home-body .hero:hover h1,
.home-body .hero:focus-within h1 {
  transform: translateY(-3px) scale(1.03) rotate(-1deg);
  filter: saturate(1.08);
  text-shadow:
    0 8px 0 rgba(255, 213, 80, 0.72),
    0 18px 32px rgba(71, 53, 44, 0.15);
}

.home-body .games-section {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 0 clamp(96px, 11vw, 132px);
}

.home-body .games-section::before {
  position: absolute;
  inset: clamp(18px, 3vw, 32px) -18px 64px;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 8% 0, rgba(255, 255, 255, 0.88) 0 56px, transparent 57px),
    radial-gradient(circle at 92% 15%, rgba(255, 255, 255, 0.78) 0 68px, transparent 69px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 246, 211, 0.36));
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 44px;
  box-shadow: 0 30px 70px rgba(71, 53, 44, 0.08);
}

.home-body .games-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  width: min(1160px, 100%);
}

.home-body .home-game-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  aspect-ratio: auto;
  min-height: 0;
  padding: 8px;
  overflow: visible;
  background: #ffffff;
  border: 0;
  border-radius: 24px;
  box-shadow:
    0 8px 0 rgba(255, 173, 8, 0.18),
    0 18px 34px rgba(71, 53, 44, 0.15);
  animation: home-card-pop 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-body .home-game-card:nth-child(2n) {
  animation-delay: 60ms;
}

.home-body .home-game-card:nth-child(3n) {
  animation-delay: 120ms;
}

.home-body .home-game-card::before {
  position: absolute;
  inset: -3px;
  z-index: -1;
  content: "";
  background: linear-gradient(135deg, #fff6d3, #dff7ff 48%, #ffe3eb);
  border-radius: 28px;
}

.home-body .home-game-card:hover,
.home-body .home-game-card:focus-visible {
  border-color: transparent;
  box-shadow:
    0 10px 0 rgba(47, 176, 239, 0.2),
    0 25px 46px rgba(71, 53, 44, 0.19);
  transform: translateY(-6px) scale(1.025) rotate(-0.6deg);
}

.home-body .home-game-card img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
  border-radius: 17px;
  box-shadow: none;
}

.game-card-title {
  display: block;
  min-width: 0;
  padding: 0 6px 4px;
  overflow: hidden;
  color: #5d4638;
  font-size: clamp(0.82rem, 1.2vw, 0.96rem);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-body .kids-bottom {
  position: relative;
  align-items: end;
  justify-content: space-between;
  width: min(980px, calc(100% - 32px));
  margin-top: clamp(-88px, -7vw, -58px);
}

.home-body .kid-image {
  display: block;
  width: clamp(112px, 14vw, 188px);
  height: auto;
  object-fit: contain;
  animation: home-soft-float 5.4s ease-in-out infinite;
}

.home-body .kid-image-left {
  transform-origin: left bottom;
}

.home-body .kid-image-right {
  animation-delay: -2.4s;
  transform-origin: right bottom;
}

.home-body .cloud-footer {
  min-height: 118px;
  padding-top: 72px;
  background: linear-gradient(180deg, #38b8f2 0%, #198dda 100%);
}

.home-body .cloud-footer nav {
  gap: 10px;
}

.home-body .cloud-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.home-body .cloud-footer span {
  display: none;
}

.home-body .cloud-footer a:hover,
.home-body .cloud-footer a:focus-visible {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.26);
}

@keyframes home-logo-rise {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes home-toy-bob {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@keyframes home-soft-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 10px;
  }
}

@keyframes home-card-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1050px) {
  .home-body .games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-body .site-header {
    height: 136px;
  }

  .home-body .site-logo img {
    width: 188px;
  }

  .home-body .hero {
    padding-top: 24px;
    padding-bottom: 8px;
  }

  .home-body .hero:hover h1,
  .home-body .hero:focus-within h1 {
    transform: translateY(-2px) scale(1.02) rotate(-0.75deg);
  }

  .home-body .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-body .games-section::before {
    inset: 18px -8px 72px;
    border-radius: 26px;
  }

  .game-card-title {
    font-size: 0.82rem;
  }

  .home-body .kids-bottom {
    width: min(100% - 12px, 980px);
    margin-top: clamp(-72px, -9vw, -42px);
  }

  .home-body .kid-image {
    width: clamp(92px, 28vw, 134px);
  }
}

@media (max-width: 380px) {
  .home-body .games-grid {
    gap: 12px;
  }

  .home-body .home-game-card {
    padding: 6px;
    border-radius: 18px;
  }

  .home-body .home-game-card img {
    border-radius: 12px;
  }

  .home-body .kid-image {
    width: clamp(84px, 29vw, 112px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-body .site-logo,
  .home-body .toy-row span,
  .home-body .home-game-card,
  .home-body .kid-image,
  .sky-shape {
    animation: none;
  }

  .home-body .hero h1 {
    transition: none;
  }

  .home-body .hero:hover h1,
  .home-body .hero:focus-within h1 {
    transform: none;
    filter: none;
  }
}
