:root {
  color-scheme: light;
  --ink: #36344b;
  --ink-soft: #625b6f;
  --paper: #fff7df;
  --paper-deep: #f1dfb8;
  --sky: #8fd3ee;
  --blue: #247fb7;
  --yellow: #ffd64d;
  --red: #e95968;
  --green: #65aa70;
  --berry: #8d3155;
  --focus: #1e68aa;
  --radius-large: 2.25rem;
  --shadow-paper: 0 1.1rem 2.5rem rgb(70 53 38 / 14%);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: ui-rounded, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgb(255 255 255 / 72%) 0 0.3rem, transparent 0.34rem),
    linear-gradient(180deg, #b8e5f3 0 31rem, var(--paper) 31rem 100%);
  background-size: 2.2rem 2.2rem, auto;
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border: 0.18rem solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  transform: translateY(-180%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-sky {
  position: absolute;
  inset: 0 0 auto;
  height: 31rem;
  overflow: hidden;
  pointer-events: none;
}

.doodle {
  position: absolute;
  display: block;
}

.doodle--sun {
  top: 5.8rem;
  right: 7vw;
  width: 5.2rem;
  aspect-ratio: 1;
  border: 0.22rem solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0.8rem rgb(255 214 77 / 22%);
}

.doodle--cloud-one,
.doodle--cloud-two {
  width: 8rem;
  height: 2.4rem;
  border: 0.2rem solid var(--ink);
  border-radius: 999px;
  background: #f9fff3;
}

.doodle--cloud-one::before,
.doodle--cloud-two::before {
  position: absolute;
  bottom: 0.6rem;
  left: 1.2rem;
  width: 2.7rem;
  aspect-ratio: 1;
  border: inherit;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  background: inherit;
  content: "";
}

.doodle--cloud-one {
  top: 12rem;
  left: -2rem;
  transform: rotate(-4deg);
}

.doodle--cloud-two {
  top: 22rem;
  right: -2.4rem;
  transform: rotate(5deg) scale(0.78);
}

.doodle--spark {
  top: 9rem;
  left: 46%;
  color: #fff1a6;
  font-size: 2.4rem;
  -webkit-text-stroke: 0.08rem var(--ink);
}

.site-header,
main,
.site-footer {
  position: relative;
  width: min(100% - 2rem, 74rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 6.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand__stamp {
  display: grid;
  width: 3.1rem;
  aspect-ratio: 1;
  place-items: center;
  border: 0.18rem solid var(--ink);
  border-radius: 42% 58% 46% 54%;
  background: var(--yellow);
  box-shadow: 0.18rem 0.18rem 0 var(--ink);
  font-weight: 900;
  transform: rotate(-4deg);
}

.brand small,
.brand strong {
  display: block;
}

.brand small,
.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.brand strong {
  font-size: 1.12rem;
  line-height: 1.15;
}

.header-note {
  margin: 0;
  color: #355468;
  font-size: 0.88rem;
  font-weight: 750;
}

.header-note span {
  color: var(--green);
}

.hero {
  display: grid;
  min-height: 24.5rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 2rem 0 4rem;
}

.hero__copy {
  max-width: 42rem;
}

.hero h1 {
  margin: 0.65rem 0 1.15rem;
  font-size: clamp(2.8rem, 6.2vw, 5.65rem);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 span {
  display: inline-block;
  color: #b83d55;
  transform: rotate(-1deg);
}

.hero__lead {
  max-width: 35rem;
  margin: 0 0 1.6rem;
  color: #495269;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 650;
}

.hero__action {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.15rem;
  border: 0.18rem solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0.22rem 0.22rem 0 var(--ink);
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.hero__action:hover {
  box-shadow: 0.1rem 0.1rem 0 var(--ink);
  transform: translate(0.12rem, 0.12rem);
}

.hero__action:focus-visible,
.game-tile:focus-visible,
.brand:focus-visible {
  outline: 0.24rem solid var(--focus);
  outline-offset: 0.28rem;
}

.toy-workbench {
  position: relative;
  align-self: center;
  padding: 2.4rem 1.4rem 1.3rem;
  border: 0.2rem solid var(--ink);
  border-radius: 2.2rem 1.2rem 2.6rem 1.5rem;
  background: #f4c87d;
  box-shadow: 0.55rem 0.75rem 0 rgb(54 52 75 / 18%);
  transform: rotate(1.6deg);
}

.toy-workbench > p {
  margin: 1rem 0 0;
  text-align: center;
  font-weight: 900;
}

.toy-workbench__peg {
  position: absolute;
  top: 0.85rem;
  width: 0.8rem;
  aspect-ratio: 1;
  border: 0.16rem solid var(--ink);
  border-radius: 50%;
  background: #cb795d;
}

.toy-workbench__peg--one { left: 1.2rem; }
.toy-workbench__peg--two { right: 1.2rem; }

.toy-box {
  position: relative;
  min-height: 12rem;
  border: 0.2rem solid var(--ink);
  border-radius: 1rem 1rem 1.7rem 1.7rem;
  background: #e88369;
  box-shadow: inset 0 -1rem 0 rgb(137 61 61 / 12%);
}

.toy-box__lid {
  position: absolute;
  z-index: 2;
  top: -1rem;
  left: -0.4rem;
  width: calc(100% + 0.8rem);
  height: 2.3rem;
  border: 0.2rem solid var(--ink);
  border-radius: 0.8rem;
  background: var(--yellow);
  transform: rotate(-3deg);
}

.toy-piece {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0.17rem solid var(--ink);
  font-weight: 950;
}

.toy-piece--number {
  top: 3.1rem;
  left: 11%;
  width: 4.2rem;
  aspect-ratio: 1;
  border-radius: 0.8rem;
  background: #72bde1;
  font-size: 2.4rem;
  transform: rotate(-8deg);
}

.toy-piece--berry {
  top: 3.8rem;
  left: 42%;
  width: 4rem;
  aspect-ratio: 1;
  border-radius: 50% 50% 46% 46%;
  color: #ffe9b5;
  background: var(--red);
  font-size: 0.8rem;
  transform: rotate(5deg);
}

.toy-piece--plane {
  right: 9%;
  bottom: 2rem;
  width: 4.8rem;
  height: 3.4rem;
  border-radius: 65% 35% 55% 45%;
  color: var(--paper);
  background: var(--blue);
  font-size: 2rem;
  transform: rotate(-10deg);
}

.toy-piece--crown {
  bottom: 1.2rem;
  left: 26%;
  width: 4.2rem;
  height: 4.8rem;
  border-radius: 50% 50% 1rem 1rem;
  color: #7f3154;
  background: #f3b0c1;
  font-size: 2.2rem;
  transform: rotate(4deg);
}

.collection {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.collection__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.collection h2,
.maker-note h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.collection__heading > p {
  max-width: 25rem;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 650;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.game-tile {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 21rem;
  border: 0.19rem solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-paper);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.game-tile:hover {
  box-shadow: 0 1.35rem 2.7rem rgb(70 53 38 / 19%);
  transform: translateY(-0.35rem) rotate(-0.25deg);
}

.game-tile--guess {
  grid-template-columns: minmax(13rem, 0.85fr) minmax(16rem, 1.15fr);
  grid-column: span 7;
  border-radius: 1.3rem 3rem 1.6rem 2.3rem;
  background: #f8d96d;
}

.game-tile--tic {
  grid-template-rows: 1fr auto;
  grid-column: span 5;
  border-radius: 2.6rem 1.2rem 2.2rem 1.4rem;
  background: #f7b8c2;
}

.game-tile--box {
  grid-template-rows: minmax(12rem, 1fr) auto;
  grid-column: span 5;
  border-radius: 1.2rem 2.7rem 1.3rem 2rem;
  background: #78cae8;
}

.game-tile--princess {
  grid-template-columns: minmax(13rem, 0.8fr) minmax(16rem, 1.2fr);
  grid-column: span 7;
  border-radius: 2.8rem 1.3rem 2.1rem 1.5rem;
  color: #4b273f;
  background: #efbfd0;
}

.game-tile__art {
  position: relative;
  min-height: 13rem;
}

.game-tile__copy {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: clamp(1.35rem, 3vw, 2.2rem);
}

.game-tile__copy h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.game-tile__copy > p:not(.game-meta) {
  max-width: 31rem;
  margin: 0;
  font-weight: 650;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.game-meta span {
  padding: 0.22rem 0.6rem;
  border: 0.1rem solid currentColor;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.play-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
  font-weight: 950;
}

.play-link i {
  font-size: 1.35rem;
  font-style: normal;
  transition: transform 180ms var(--ease-out);
}

.game-tile:hover .play-link i {
  transform: translateX(0.3rem);
}

.game-tile__tape {
  position: absolute;
  z-index: 3;
  top: -0.2rem;
  left: 42%;
  width: 5rem;
  height: 1.5rem;
  background: rgb(255 250 218 / 74%);
  transform: rotate(3deg);
}

.number-art__box {
  position: absolute;
  top: 24%;
  left: 15%;
  display: grid;
  width: 8rem;
  height: 7rem;
  place-items: center;
  border: 0.25rem solid var(--ink);
  border-radius: 1.2rem 1.2rem 1.7rem 1.7rem;
  background: #4ba2d5;
  box-shadow: inset 0 -1.1rem 0 rgb(25 78 131 / 18%);
  transform: rotate(-4deg);
}

.number-art__box::before {
  position: absolute;
  top: -1rem;
  width: 115%;
  height: 2.2rem;
  border: 0.25rem solid var(--ink);
  border-radius: 0.8rem;
  background: #fff1b4;
  content: "";
}

.number-art__box b {
  color: var(--paper);
  font-size: 3.6rem;
}

.number-art__ruler {
  position: absolute;
  right: 5%;
  bottom: 16%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 900;
  transform: rotate(3deg);
}

.number-art__ruler i {
  width: 4.5rem;
  height: 0.55rem;
  border: 0.12rem solid var(--ink);
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--red) 0 0.45rem, #fff2bd 0.45rem 0.9rem);
}

.number-art__guess {
  position: absolute;
  display: grid;
  width: 3.1rem;
  aspect-ratio: 1;
  place-items: center;
  border: 0.16rem solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-weight: 900;
}

.number-art__guess--one { top: 16%; right: 8%; transform: rotate(10deg); }
.number-art__guess--two { right: 16%; bottom: 28%; transform: rotate(-8deg); }

.tic-art {
  min-height: 14rem;
  background:
    linear-gradient(90deg, transparent 32%, rgb(54 52 75 / 50%) 32% 34%, transparent 34% 65%, rgb(54 52 75 / 50%) 65% 67%, transparent 67%),
    linear-gradient(transparent 32%, rgb(54 52 75 / 50%) 32% 34%, transparent 34% 65%, rgb(54 52 75 / 50%) 65% 67%, transparent 67%);
  background-size: 10rem 10rem;
  background-position: center;
  background-repeat: no-repeat;
}

.tic-art__berry,
.tic-art__star {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0.2rem solid var(--ink);
}

.tic-art__berry {
  top: 22%;
  left: 22%;
  width: 4.3rem;
  aspect-ratio: 1;
  border-radius: 50% 50% 45% 45%;
  color: #ffe4a5;
  background: var(--red);
  transform: rotate(-7deg);
}

.tic-art__star {
  right: 20%;
  bottom: 19%;
  width: 4.6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-size: 3.3rem;
  transform: rotate(8deg);
}

.plane-art {
  overflow: hidden;
  border-bottom: 0.14rem dashed rgb(54 52 75 / 38%);
}

.plane-art__cloud {
  position: absolute;
  width: 6.5rem;
  height: 2rem;
  border: 0.16rem solid var(--ink);
  border-radius: 999px;
  background: #f4fff7;
}

.plane-art__cloud--one { top: 18%; right: -1rem; }
.plane-art__cloud--two { bottom: 12%; left: -1.5rem; transform: scale(0.72); }

.plane-art__plane {
  position: absolute;
  top: 41%;
  left: 12%;
  color: #fff6db;
  font-size: 5rem;
  text-shadow: -0.15rem 0 var(--ink), 0 0.15rem var(--ink), 0.15rem 0 var(--ink), 0 -0.15rem var(--ink);
  transform: rotate(-12deg);
}

.plane-art__shot {
  position: absolute;
  top: 41%;
  left: 46%;
  color: #fff5c0;
  font-size: 2.8rem;
  letter-spacing: 0.2rem;
}

.plane-art__box {
  position: absolute;
  top: 26%;
  right: 10%;
  display: grid;
  width: 5.2rem;
  aspect-ratio: 1;
  place-items: center;
  border: 0.2rem solid var(--ink);
  border-radius: 0.75rem;
  background: var(--yellow);
  box-shadow: inset 0 1rem 0 rgb(255 255 255 / 28%);
  font-weight: 950;
  transform: rotate(7deg);
}

.princess-art__head {
  position: absolute;
  top: 19%;
  left: 50%;
  width: 5.5rem;
  height: 6.4rem;
  border: 0.2rem solid #572d49;
  border-radius: 48% 48% 46% 46%;
  background: #b86d48;
  transform: translateX(-50%);
}

.princess-art__crown {
  position: absolute;
  z-index: 2;
  top: 3%;
  left: 50%;
  color: #f8d06b;
  font-size: 4.4rem;
  -webkit-text-stroke: 0.1rem #572d49;
  transform: translateX(-50%) rotate(-3deg);
}

.princess-art__dress {
  position: absolute;
  bottom: 2%;
  left: 50%;
  width: 12rem;
  height: 11rem;
  border: 0.22rem solid #572d49;
  border-radius: 48% 48% 18% 18%;
  background:
    radial-gradient(circle at 28% 50%, #fff4c2 0 0.22rem, transparent 0.25rem),
    radial-gradient(circle at 65% 68%, #fff4c2 0 0.22rem, transparent 0.25rem),
    #9c3e68;
  transform: translateX(-50%);
}

.princess-art__gem {
  position: absolute;
  z-index: 2;
  top: 52%;
  left: 50%;
  color: #aeeaf3;
  font-size: 2rem;
  -webkit-text-stroke: 0.07rem #572d49;
  transform: translateX(-50%);
}

.game-tile__spark {
  position: absolute;
  z-index: 2;
  color: #fff4bb;
  font-size: 2.2rem;
}

.game-tile__spark--one { top: 12%; left: 8%; }
.game-tile__spark--two { top: 25%; right: 5%; }

.maker-note {
  display: grid;
  grid-template-columns: auto minmax(14rem, 0.8fr) minmax(18rem, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: 1rem 0 6rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border-block: 0.18rem dashed var(--ink);
  background: rgb(255 255 255 / 38%);
}

.maker-note__badge {
  display: grid;
  width: 4.5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 0.18rem solid var(--ink);
  border-radius: 50% 42% 52% 45%;
  background: #bfe1a3;
  font-size: 2.2rem;
  transform: rotate(-7deg);
}

.maker-note > p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 650;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0 2.2rem;
  border-top: 0.12rem solid rgb(54 52 75 / 34%);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 56rem) {
  body {
    background: linear-gradient(180deg, #b8e5f3 0 42rem, var(--paper) 42rem 100%);
  }

  .page-sky { height: 42rem; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 4.5rem;
  }

  .toy-workbench {
    width: min(100%, 27rem);
    justify-self: center;
  }

  .game-tile--guess,
  .game-tile--tic,
  .game-tile--box,
  .game-tile--princess {
    grid-column: span 12;
  }

  .maker-note {
    grid-template-columns: auto 1fr;
  }

  .maker-note > p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 40rem) {
  .site-header {
    min-height: 5.6rem;
  }

  .header-note {
    display: none;
  }

  .hero {
    padding-top: 1.2rem;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.2rem);
  }

  .hero__lead {
    max-width: 29rem;
  }

  .collection__heading {
    display: block;
  }

  .collection__heading > p {
    margin-top: 0.8rem;
  }

  .game-tile--guess,
  .game-tile--princess {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(13rem, 0.8fr) auto;
  }

  .game-tile {
    min-height: 25rem;
  }

  .game-tile__copy h3 {
    font-size: 2rem;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .game-tile:hover,
  .hero__action:hover {
    transform: none;
  }
}

.not-found-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
}

.not-found {
  width: min(100%, 38rem);
  padding: clamp(2rem, 6vw, 4rem);
  border: 0.2rem solid var(--ink);
  border-radius: var(--radius-large);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  text-align: center;
}

.not-found__number {
  margin: 0;
  color: var(--red);
  font-size: clamp(4rem, 16vw, 8rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.not-found h1 {
  margin: 1rem 0 0.5rem;
  font-size: clamp(1.8rem, 6vw, 3rem);
}

.not-found p {
  margin: 0 auto 1.5rem;
  color: var(--ink-soft);
}
