:root {
  --ink: #304b46;
  --muted: #6d827b;
  --cream: #fffaf0;
  --paper: #fff4d8;
  --paper-dark: #eadbb8;
  --mint: #dff3dd;
  --mint-strong: #6fa982;
  --blue: #86c8df;
  --coral: #f47d61;
  --orange: #f5a044;
  --sun: #ffd163;
  --plum: #795778;
  --shadow: 0 18px 44px rgba(77, 86, 67, 0.14);
  --soft-shadow: 0 9px 22px rgba(75, 77, 62, 0.12);
  color: var(--ink);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 9% 9%, rgba(255, 255, 255, 0.84) 0 4px, transparent 5px),
    radial-gradient(circle at 89% 22%, rgba(255, 255, 255, 0.7) 0 3px, transparent 4px),
    linear-gradient(145deg, #fff5dd 0%, #fffbef 50%, #eaf6e7 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(92deg, rgba(137, 105, 59, 0.018) 0 1px, transparent 1px 6px);
  content: "";
  pointer-events: none;
}

button {
  color: inherit;
  font: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

button:focus-visible {
  outline: 4px solid rgba(65, 130, 181, 0.42);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(38px, 6.3vw, 68px);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.035em;
}

.app {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 48px;
}

.loading-card {
  width: min(420px, 100%);
  margin: 25vh auto 0;
  padding: 44px 28px;
  border: 2px solid var(--paper-dark);
  border-radius: 34px 29px 37px 27px;
  background: var(--cream);
  box-shadow: var(--shadow);
  text-align: center;
}

.loading-card p {
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 800;
}

.loading-spark {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 50px;
  animation: bob 1.4s ease-in-out infinite;
}

.topbar,
.topbar-actions,
.brand,
.collection-heading,
.game-heading,
.result-actions,
.result-stats {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.brand-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid #e6c98f;
  border-radius: 19px 15px 21px 16px;
  background: var(--sun);
  box-shadow: 0 6px 0 rgba(162, 109, 42, 0.12);
  font-size: 30px;
  transform: rotate(-3deg);
}

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

.brand strong {
  font-size: clamp(21px, 3vw, 29px);
  letter-spacing: -0.03em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar-actions {
  gap: 10px;
}

.brand-stitch {
  color: var(--orange);
  font-size: 30px;
}

.sound-button,
.round-button,
.primary-button,
.secondary-button,
.hint-button {
  border: 0;
  font-weight: 900;
}

.sound-button,
.round-button {
  min-height: 50px;
  border: 2px solid #d7e6d6;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 5px 0 rgba(86, 120, 86, 0.1);
}

.sound-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 17px 13px 18px 14px;
}

.round-button {
  width: 50px;
  padding: 0;
  border-radius: 50%;
  font-size: 24px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 450px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  padding: clamp(30px, 5vw, 64px);
  border: 2px solid #ded1b0;
  border-radius: 42px 32px 48px 35px;
  background:
    linear-gradient(110deg, rgba(255, 250, 237, 0.98) 0 58%, rgba(215, 239, 218, 0.96) 58%),
    var(--cream);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  position: absolute;
  border: 2px dashed rgba(91, 137, 108, 0.25);
  border-radius: 50%;
  content: "";
}

.hero::before {
  right: 5%;
  bottom: -90px;
  width: 360px;
  height: 360px;
}

.hero::after {
  top: -36px;
  right: 30%;
  width: 100px;
  height: 100px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.5;
}

.eyebrow {
  margin-bottom: 9px;
  color: #5c8a72;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.hint-button {
  min-height: 56px;
  padding: 14px 22px;
  border-radius: 19px 15px 21px 16px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 7px 0 #ca604a, 0 12px 20px rgba(198, 89, 68, 0.2);
}

.secondary-button,
.hint-button {
  border: 2px solid #e7d6b7;
  background: #fff9ea;
  box-shadow: 0 6px 0 rgba(145, 111, 59, 0.12);
}

.hero-button {
  min-width: 245px;
}

.primary-button:hover,
.secondary-button:hover,
.hint-button:hover {
  transform: translateY(-2px);
}

.primary-button:active,
.secondary-button:active,
.hint-button:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(113, 79, 54, 0.28);
}

.hero-toy {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 330px;
  place-items: center;
}

.hero-toy img {
  position: relative;
  z-index: 2;
  width: min(370px, 105%);
  filter: drop-shadow(0 18px 16px rgba(62, 87, 75, 0.17));
  animation: gentle-float 3.5s ease-in-out infinite;
}

.toy-halo {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 249, 222, 0.72);
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.2);
}

.spark {
  position: absolute;
  z-index: 3;
  color: var(--orange);
  font-size: 34px;
  animation: twinkle 1.8s ease-in-out infinite;
}

.spark-one {
  top: 8%;
  right: 8%;
}

.spark-two {
  bottom: 12%;
  left: 8%;
  color: var(--blue);
  font-size: 25px;
  animation-delay: 0.5s;
}

.collection-heading {
  justify-content: space-between;
  gap: 20px;
  margin: 42px 0 19px;
}

.collection-heading .eyebrow,
.game-heading .eyebrow {
  margin-bottom: 5px;
}

.collection-progress,
.round-progress {
  min-width: 112px;
  padding: 11px 17px;
  border: 2px solid #d3e7d7;
  border-radius: 20px 15px 22px 16px;
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.collection-progress strong,
.collection-progress span,
.round-progress strong,
.round-progress span {
  display: block;
}

.collection-progress strong,
.round-progress strong {
  font-size: 24px;
}

.collection-progress span,
.round-progress span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.toy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.toy-card {
  position: relative;
  display: grid;
  height: 380px;
  min-height: 380px;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding: 18px;
  overflow: hidden;
  border: 2px solid #e5d6b8;
  border-radius: 31px 25px 34px 24px;
  background: rgba(255, 252, 244, 0.96);
  box-shadow: var(--soft-shadow);
  text-align: left;
  transform: rotate(-0.24deg);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.toy-card:nth-child(3n + 2) {
  transform: rotate(0.24deg);
}

.toy-card:nth-child(3n) {
  transform: rotate(-0.08deg);
}

.toy-card::after {
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(134, 200, 223, 0.11);
  content: "";
}

.toy-card:hover {
  z-index: 2;
  border-color: #b8d8bc;
  box-shadow: 0 20px 38px rgba(71, 85, 65, 0.17);
  transform: translateY(-6px) rotate(0);
}

.toy-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  min-height: 36px;
}

.level-pill {
  align-self: flex-start;
  padding: 8px 11px;
  border-radius: 14px 11px 15px 10px;
  color: #557667;
  background: var(--mint);
  font-size: 12px;
  font-weight: 900;
}

.complete-badge {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #86631e;
  background: var(--sun);
  box-shadow: 0 4px 0 #d8aa40;
  font-size: 22px;
}

.toy-picture-wrap {
  display: grid;
  min-height: 0;
  place-items: center;
  margin: 2px 0 0;
  padding-bottom: 18px;
  overflow: hidden;
}

.toy-picture-wrap img {
  width: 90%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 11px 10px rgba(62, 76, 64, 0.14));
  transition: transform 200ms ease;
}

.toy-card:hover img {
  transform: scale(1.045) rotate(-1deg);
}

.toy-card-name {
  position: relative;
  z-index: 3;
  margin-bottom: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(85, 118, 103, 0.16);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.08;
}

.difficulty {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
}

.difficulty-dot {
  width: 14px;
  height: 10px;
  border-radius: 9px 6px 8px 5px;
  background: hsl(calc(18 + var(--dot) * 33) 72% 66%);
}

.tip-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 17px 21px;
  border: 2px dashed #d7c89e;
  border-radius: 22px 17px 24px 18px;
  background: rgba(255, 249, 227, 0.7);
}

.tip-card > span {
  font-size: 27px;
}

.tip-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.42;
}

.tip-card strong {
  display: block;
  color: var(--ink);
}

.game-heading {
  justify-content: space-between;
  gap: 22px;
  margin: 32px 0 22px;
}

.game-heading h1 {
  margin-bottom: 9px;
  font-size: clamp(39px, 5.5vw, 61px);
}

.game-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.round-progress {
  flex: 0 0 auto;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(420px, 1.18fr) minmax(300px, 0.82fr);
  gap: 22px;
  align-items: stretch;
}

.board-column,
.tray-column {
  padding: clamp(17px, 3vw, 28px);
  border: 2px solid #dfd2b4;
  box-shadow: var(--shadow);
}

.board-column {
  border-radius: 35px 27px 39px 29px;
  background: rgba(255, 252, 242, 0.94);
}

.tray-column {
  display: flex;
  border-radius: 28px 36px 29px 39px;
  flex-direction: column;
  background: linear-gradient(155deg, #dff1dd, #edf7e9);
}

.board-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: #668072;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.puzzle-board {
  display: grid;
  width: min(100%, 590px);
  aspect-ratio: 1;
  grid-template-columns: repeat(var(--columns), 1fr);
  grid-template-rows: repeat(var(--rows), 1fr);
  gap: 7px;
  margin: 0 auto;
  padding: 11px;
  border: 3px solid #dfc894;
  border-radius: 32px 24px 35px 26px;
  background:
    repeating-linear-gradient(0deg, rgba(137, 104, 58, 0.025) 0 1px, transparent 1px 5px),
    #f5e9c9;
  box-shadow: inset 0 6px 14px rgba(108, 84, 45, 0.12), 0 8px 0 rgba(173, 132, 70, 0.12);
}

.puzzle-slot {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 2px dashed rgba(112, 109, 82, 0.25);
  border-radius: 23px 17px 24px 18px;
  background: rgba(255, 250, 232, 0.76);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.piece-face {
  background-image: var(--image);
  background-repeat: no-repeat;
  background-position: var(--x) var(--y);
  background-size: calc(var(--columns) * 100%) calc(var(--rows) * 100%);
}

.slot-guide,
.placed-piece {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.slot-guide {
  opacity: 0.12;
  filter: grayscale(1);
}

.slot-number,
.piece-number {
  position: absolute;
  z-index: 3;
  display: grid;
  width: clamp(28px, 4vw, 39px);
  height: clamp(28px, 4vw, 39px);
  place-items: center;
  border: 2px solid rgba(75, 103, 93, 0.19);
  border-radius: 50%;
  color: #55736a;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 3px 0 rgba(66, 95, 84, 0.12);
  font-size: clamp(13px, 2vw, 17px);
  font-weight: 900;
  pointer-events: none;
}

.slot-number {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.piece-number {
  right: 7px;
  bottom: 7px;
}

.puzzle-slot.filled {
  border-color: rgba(94, 156, 111, 0.35);
  background: #fff;
  box-shadow: 0 4px 12px rgba(70, 105, 80, 0.13);
  animation: snap-in 320ms cubic-bezier(0.18, 0.8, 0.22, 1.3);
}

.puzzle-slot.wrong {
  border-color: var(--coral);
  background: #fff1e9;
  animation: shake 370ms ease;
}

.puzzle-slot.hint {
  z-index: 2;
  border-color: #eda73f;
  background: #fff5cb;
  animation: hint-pulse 950ms ease-in-out 2;
}

.piece-tray {
  display: grid;
  min-height: 390px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: center;
  flex: 1;
  padding: 12px;
  border: 2px dashed rgba(83, 126, 90, 0.24);
  border-radius: 25px 19px 28px 21px;
  background: rgba(255, 255, 255, 0.39);
}

.piece-tray[data-count="3"],
.piece-tray[data-count="5"] {
  grid-template-columns: 1fr;
}

.piece-tray[data-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tray-piece {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: var(--piece-ratio);
  justify-self: center;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px 17px 26px 19px;
  background-color: rgba(255, 255, 255, 0.83);
  box-shadow: 0 8px 0 rgba(72, 115, 81, 0.14), 0 12px 18px rgba(66, 93, 70, 0.12);
  touch-action: none;
  transition: box-shadow 170ms ease, opacity 170ms ease, transform 170ms ease;
}

.tray-piece:nth-child(odd) {
  transform: rotate(-2deg);
}

.tray-piece:nth-child(even) {
  transform: rotate(2deg);
}

.tray-piece:hover,
.tray-piece.selected {
  z-index: 2;
  box-shadow: 0 0 0 5px var(--sun), 0 11px 0 rgba(72, 115, 81, 0.13), 0 18px 24px rgba(66, 93, 70, 0.16);
  transform: translateY(-4px) rotate(0) scale(1.03);
}

.tray-piece.dragging {
  opacity: 0.3;
}

.tray-piece.placed-away {
  opacity: 0;
  transform: scale(0.75);
}

.drag-ghost {
  position: fixed;
  z-index: 1000;
  width: 140px;
  max-height: 170px;
  margin: 0;
  pointer-events: none;
  opacity: 0.93;
  transform: translate(-50%, -50%) rotate(2deg) scale(1.06) !important;
}

.feedback {
  min-height: 48px;
  margin: 18px 4px 10px;
  color: #577267;
  font-weight: 800;
  line-height: 1.42;
  text-align: center;
}

.feedback[data-state="success"] {
  color: #3e8057;
}

.feedback[data-state="try-again"] {
  color: #ad644e;
}

.hint-button {
  width: 100%;
}

.result-card {
  position: relative;
  display: grid;
  min-height: 570px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 20px;
  padding: clamp(34px, 6vw, 72px);
  border: 2px solid #e2d1a7;
  border-radius: 44px 33px 49px 36px;
  background: linear-gradient(125deg, #fff9e9 0 55%, #dff2df 55%);
  box-shadow: var(--shadow);
}

.result-copy {
  position: relative;
  z-index: 3;
}

.result-copy > p:not(.eyebrow) {
  max-width: 510px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.result-stats {
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0 29px;
}

.result-stats span {
  min-width: 100px;
  padding: 11px 14px;
  border: 2px solid #e8d9ba;
  border-radius: 18px 13px 19px 14px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.result-stats strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
}

.result-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.result-toy {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 390px;
  place-items: center;
}

.result-toy::before {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 251, 225, 0.76);
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.25);
  content: "";
}

.result-toy img {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 20px 16px rgba(57, 78, 63, 0.18));
  animation: result-pop 650ms cubic-bezier(0.16, 0.8, 0.22, 1.2) both;
}

.result-star {
  position: absolute;
  top: 6%;
  right: 3%;
  z-index: 4;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  color: #8b6516;
  background: var(--sun);
  box-shadow: 0 8px 0 #d4a33c;
  font-size: 43px;
  transform: rotate(8deg);
}

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

.confetti i {
  position: absolute;
  top: -25px;
  left: var(--left);
  width: 11px;
  height: 22px;
  border-radius: 5px 2px 5px 2px;
  background: hsl(var(--hue) 72% 61%);
  animation: confetti-fall var(--duration) ease-in var(--delay) both;
}

@keyframes bob {
  50% { transform: translateY(-10px) rotate(8deg); }
}

@keyframes gentle-float {
  50% { transform: translateY(-9px) rotate(1deg); }
}

@keyframes twinkle {
  50% { opacity: 0.35; transform: scale(0.72) rotate(25deg); }
}

@keyframes snap-in {
  0% { opacity: 0; transform: scale(0.72); }
  70% { transform: scale(1.05); }
}

@keyframes shake {
  25% { transform: translateX(-7px) rotate(-1deg); }
  50% { transform: translateX(7px) rotate(1deg); }
  75% { transform: translateX(-4px); }
}

@keyframes hint-pulse {
  50% { box-shadow: 0 0 0 9px rgba(255, 205, 84, 0.5); transform: scale(1.025); }
}

@keyframes result-pop {
  0% { opacity: 0; transform: scale(0.55) rotate(-5deg); }
  70% { transform: scale(1.06) rotate(1deg); }
}

@keyframes confetti-fall {
  0% { opacity: 0; transform: translateY(-20px) rotate(0); }
  10% { opacity: 1; }
  100% { opacity: 0.85; transform: translateY(650px) rotate(var(--rotation)); }
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-toy {
    position: absolute;
    right: -45px;
    bottom: -70px;
    width: 320px;
    min-height: 320px;
    opacity: 0.22;
  }

  .hero-copy {
    max-width: 650px;
  }

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

  .workbench {
    grid-template-columns: 1fr;
  }

  .puzzle-board {
    width: min(100%, 600px);
  }

  .piece-tray {
    min-height: 230px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .result-toy {
    min-height: 310px;
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  .app {
    width: min(100% - 18px, 1120px);
    padding-top: 11px;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand-icon {
    width: 49px;
    height: 49px;
    font-size: 25px;
  }

  .brand small,
  .sound-label,
  .brand-stitch {
    display: none;
  }

  .sound-button {
    min-width: 50px;
    justify-content: center;
    padding-inline: 10px;
  }

  .hero {
    padding: 30px 23px 34px;
    border-radius: 31px 24px 34px 26px;
  }

  .hero-button {
    width: 100%;
    min-width: 0;
  }

  .collection-heading,
  .game-heading {
    align-items: flex-end;
  }

  .collection-heading {
    margin-top: 31px;
  }

  .collection-progress,
  .round-progress {
    min-width: 86px;
    padding-inline: 11px;
  }

  .toy-grid {
    grid-template-columns: 1fr;
  }

  .toy-card {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 105px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 14px;
  }

  .toy-card-top {
    position: absolute;
    top: 13px;
    right: 13px;
  }

  .toy-card-top .level-pill {
    display: none;
  }

  .toy-picture-wrap {
    height: 105px;
    grid-row: 1 / 3;
    margin: 0;
    padding-bottom: 0;
  }

  .toy-card-name {
    align-self: end;
    margin-bottom: 5px;
    padding-top: 0;
    border-top: 0;
  }

  .difficulty {
    align-self: start;
  }

  .complete-badge {
    width: 34px;
    height: 34px;
  }

  .game-heading h1 {
    font-size: 38px;
  }

  .game-heading p:not(.eyebrow) {
    display: none;
  }

  .board-column,
  .tray-column {
    padding: 14px;
  }

  .puzzle-board {
    gap: 4px;
    padding: 7px;
    border-radius: 25px 19px 27px 20px;
  }

  .puzzle-slot {
    border-radius: 15px 11px 16px 12px;
  }

  .piece-tray {
    min-height: 190px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 9px;
  }

  .tray-piece {
    border-radius: 18px 13px 20px 14px;
  }

  .result-card {
    min-height: 0;
    padding: 31px 22px 35px;
  }

  .result-toy {
    min-height: 240px;
  }

  .result-toy::before {
    width: 220px;
    height: 220px;
  }

  .result-toy img {
    max-height: 270px;
  }

  .result-star {
    width: 60px;
    height: 60px;
    font-size: 33px;
  }

  .result-actions > * {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
