:root {
  --ink: #324d49;
  --muted: #70837e;
  --cream: #fffaf1;
  --paper: #fff2d5;
  --paper-line: #ead8b4;
  --violet: #8269b2;
  --violet-dark: #644d91;
  --lavender: #eee7ff;
  --mint: #dff3df;
  --mint-strong: #69a988;
  --coral: #f47d68;
  --sun: #ffd467;
  --blue: #82c6e2;
  --shadow: 0 20px 48px rgba(73, 69, 91, 0.14);
  --soft-shadow: 0 10px 24px rgba(73, 69, 91, 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 12% 10%, rgba(255, 255, 255, 0.9) 0 5px, transparent 6px),
    radial-gradient(circle at 88% 25%, rgba(255, 255, 255, 0.75) 0 4px, transparent 5px),
    linear-gradient(145deg, #fff5dc 0%, #fffafd 48%, #edf8ec 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(91deg, rgba(119, 94, 69, 0.018) 0 1px, transparent 1px 7px);
  content: "";
  pointer-events: none;
}

button {
  color: inherit;
  font: inherit;
}

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

button:focus-visible {
  outline: 4px solid rgba(96, 139, 199, 0.42);
  outline-offset: 4px;
}

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

h1 {
  margin-bottom: 17px;
  font-size: clamp(42px, 6.2vw, 70px);
  letter-spacing: -0.05em;
  line-height: 0.97;
}

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 52px;
}

.loading-card {
  width: min(430px, 100%);
  margin: 25vh auto 0;
  padding: 42px 28px;
  border: 2px solid var(--paper-line);
  border-radius: 36px 28px 40px 30px;
  background: var(--cream);
  box-shadow: var(--shadow);
  text-align: center;
}

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

.loading-icon {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 54px;
  animation: bob 1.3s ease-in-out infinite;
}

.topbar,
.topbar-actions,
.brand,
.weather-heading,
.game-heading,
.wardrobe-heading,
.result-actions {
  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: 60px;
  height: 60px;
  place-items: center;
  border: 2px solid #d9c8ef;
  border-radius: 19px 15px 22px 17px;
  background: var(--lavender);
  box-shadow: 0 6px 0 rgba(103, 80, 138, 0.11);
  font-size: 31px;
  transform: rotate(-3deg);
}

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

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

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

.topbar-actions {
  gap: 10px;
}

.header-spark {
  color: var(--coral);
  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 #d9e6da;
  background: rgba(255, 255, 255, 0.78);
  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 19px 14px;
}

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

.primary-button,
.secondary-button,
.hint-button {
  min-height: 54px;
  padding: 13px 20px;
  border-radius: 17px 13px 19px 14px;
  font-size: 16px;
}

.primary-button {
  color: white;
  background: var(--coral);
  box-shadow: 0 7px 0 #c9574d, 0 14px 24px rgba(199, 84, 73, 0.18);
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.primary-button:active:not(:disabled) {
  box-shadow: 0 3px 0 #c9574d;
  transform: translateY(4px);
}

.primary-button:disabled {
  opacity: 0.48;
  box-shadow: 0 4px 0 #b7a9a3;
  cursor: not-allowed;
}

.secondary-button,
.hint-button {
  border: 2px solid #d7c9ec;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 5px 0 rgba(103, 81, 139, 0.12);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--mint-strong);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: 460px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
  align-items: center;
  padding: clamp(32px, 5vw, 66px);
  border: 2px solid #ded1b5;
  border-radius: 43px 32px 49px 35px;
  background:
    linear-gradient(112deg, rgba(255, 250, 239, 0.98) 0 57%, rgba(232, 222, 255, 0.93) 57%),
    var(--cream);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  position: absolute;
  border: 2px dashed rgba(110, 87, 151, 0.2);
  border-radius: 50%;
  content: "";
}

.hero::before {
  right: 4%;
  bottom: -120px;
  width: 390px;
  height: 390px;
}

.hero::after {
  top: -42px;
  right: 30%;
  width: 110px;
  height: 110px;
}

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

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

.hero-doll {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  height: 410px;
  justify-self: center;
}

.hero-doll::before {
  position: absolute;
  inset: 35px 6px 18px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  content: "";
}

.hero-weather {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--soft-shadow);
  font-size: 32px;
  animation: float 3s ease-in-out infinite;
}

.sun-bubble {
  top: 42px;
  right: 33%;
}

.rain-bubble {
  right: 4%;
  bottom: 62px;
  animation-delay: -1s;
}

.snow-bubble {
  top: 68px;
  right: 5%;
  animation-delay: -2s;
}

.doll-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 14px 12px rgba(61, 67, 72, 0.13));
}

.weather-heading,
.doll-picker-heading,
.game-heading {
  justify-content: space-between;
  gap: 18px;
  margin: 36px 0 18px;
}

.doll-picker-heading {
  display: flex;
  align-items: flex-end;
}

.doll-picker-status {
  max-width: 330px;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}

.doll-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.doll-card {
  position: relative;
  display: grid;
  min-height: 280px;
  grid-template-rows: 1fr auto;
  gap: 3px;
  padding: 13px 13px 15px;
  overflow: hidden;
  border: 3px solid #e3d9c5;
  border-radius: 30px 24px 33px 25px;
  background: rgba(255, 251, 242, 0.92);
  box-shadow: var(--soft-shadow);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.doll-card:hover {
  border-color: #cbbce5;
  box-shadow: 0 17px 34px rgba(64, 72, 77, 0.16);
  transform: translateY(-5px);
}

.doll-card.selected {
  border-color: var(--violet);
  background: var(--lavender);
  box-shadow: 0 0 0 5px rgba(130, 105, 178, 0.13), var(--soft-shadow);
}

.doll-card-picture {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 22px 18px 24px 19px;
  background: linear-gradient(145deg, #fffdf7, #eef7ed);
}

.doll-card:nth-child(2) .doll-card-picture,
.doll-card:nth-child(4) .doll-card-picture {
  background: linear-gradient(145deg, #fffdf7, #f1edff);
}

.doll-card-picture img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 9px 7px rgba(53, 68, 65, 0.12));
}

.doll-card-name {
  padding-top: 8px;
  font-size: 21px;
  font-weight: 900;
  text-align: center;
}

.doll-card-check {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  background: var(--mint-strong);
  box-shadow: 0 5px 10px rgba(61, 110, 86, 0.22);
  font-size: 20px;
  opacity: 0;
  transform: scale(.7);
  transition: opacity 150ms ease, transform 150ms ease;
}

.doll-card.selected .doll-card-check {
  opacity: 1;
  transform: scale(1);
}

.collection-progress,
.round-progress {
  display: grid;
  min-width: 108px;
  padding: 12px 17px;
  border: 2px solid #d7e7d8;
  border-radius: 18px 14px 20px 15px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

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

.collection-progress span,
.round-progress span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.weather-card {
  position: relative;
  display: grid;
  min-height: 178px;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  gap: 14px;
  padding: 19px;
  overflow: hidden;
  border: 2px solid rgba(93, 107, 104, 0.15);
  border-radius: 29px 23px 32px 24px;
  box-shadow: var(--soft-shadow);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.weather-card::after {
  position: absolute;
  right: -28px;
  bottom: -35px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  content: "";
}

.weather-card:hover {
  z-index: 2;
  box-shadow: 0 18px 36px rgba(64, 72, 77, 0.16);
  transform: translateY(-6px) rotate(-0.3deg);
}

.weather-card:disabled {
  opacity: .48;
  box-shadow: none;
  cursor: not-allowed;
  filter: grayscale(.28);
}

.weather-card:disabled:hover {
  transform: none;
}

.weather-card.sunny {
  background: linear-gradient(145deg, #fff7c9, #ffeaa3);
}

.weather-card.rainy {
  background: linear-gradient(145deg, #e9f7ff, #cdeafb);
}

.weather-card.snowy {
  background: linear-gradient(145deg, #fbfdff, #e8efff);
}

.weather-card.windy {
  background: linear-gradient(145deg, #eef9e4, #d9f0df);
}

.weather-card-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 22px 17px 24px 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 6px 0 rgba(77, 76, 65, 0.08);
  font-size: 35px;
}

.weather-card-copy strong,
.weather-card-copy small {
  display: block;
}

.weather-card-copy strong {
  margin-bottom: 4px;
  font-size: 24px;
}

.weather-card-copy small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.weather-card-status {
  position: absolute;
  right: 15px;
  bottom: 13px;
  z-index: 2;
  color: var(--violet-dark);
  font-size: 22px;
  font-weight: 900;
}

.weather-card-status.done {
  color: #d28a27;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.grownup-tip {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 19px;
  padding: 16px 19px;
  border: 2px dashed #e8d8ad;
  border-radius: 19px 15px 21px 16px;
  background: rgba(255, 251, 237, 0.78);
}

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

.grownup-tip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.game-heading h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.5vw, 53px);
}

.play-layout {
  display: grid;
  grid-template-columns: minmax(430px, 0.95fr) minmax(460px, 1.05fr);
  align-items: start;
  gap: 20px;
}

.weather-scene,
.wardrobe {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(75, 88, 83, 0.16);
  box-shadow: var(--shadow);
}

.weather-scene {
  min-height: 720px;
  padding: 20px;
  border-radius: 38px 29px 43px 31px;
}

.weather-scene.sunny {
  background: linear-gradient(165deg, #fff6bb 0 47%, #dff2bd 47% 100%);
}

.weather-scene.rainy {
  background: linear-gradient(165deg, #d9effb 0 47%, #b9d9e7 47% 100%);
}

.weather-scene.snowy {
  background: linear-gradient(165deg, #eff5ff 0 47%, #d9e4f4 47% 100%);
}

.weather-scene.windy {
  background: linear-gradient(165deg, #e5f5df 0 47%, #cce8d0 47% 100%);
}

.weather-prompt {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 21px 16px 23px 17px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
}

.weather-prompt > span {
  font-size: 38px;
}

.weather-prompt strong {
  display: block;
  margin-bottom: 2px;
  font-size: 19px;
}

.weather-prompt p {
  margin-bottom: 0;
  color: #647972;
  font-size: 13px;
  line-height: 1.35;
}

.doll-stage {
  position: relative;
  z-index: 3;
  width: min(100%, 430px);
  height: 590px;
  margin: 4px auto 0;
  padding: 18px 34px 48px;
  border: 3px dashed transparent;
  border-radius: 44%;
  transition: border-color 150ms ease, background 150ms ease;
}

.doll-stage.drag-over {
  border-color: rgba(102, 75, 145, 0.52);
  background: rgba(255, 255, 255, 0.3);
}

.drop-hint {
  position: absolute;
  right: 20px;
  bottom: 8px;
  left: 20px;
  padding: 8px 12px;
  border-radius: 14px;
  color: rgba(47, 76, 72, 0.72);
  background: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.sun-rays,
.rain-drops,
.snow-flakes,
.wind-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.sun-rays span {
  position: absolute;
  top: 105px;
  right: 22px;
  font-size: 80px;
  animation: pulse 2.4s ease-in-out infinite;
}

.sun-rays i {
  position: absolute;
  width: 140px;
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 202, 67, 0.32);
  transform: rotate(-20deg);
}

.sun-rays i:nth-child(2) { top: 220px; left: -30px; }
.sun-rays i:nth-child(3) { top: 350px; right: -20px; transform: rotate(25deg); }
.sun-rays i:nth-child(4) { bottom: 120px; left: 0; transform: rotate(12deg); }

.rain-drops i {
  --left: calc((var(--i) * 8.5%));
  position: absolute;
  top: -70px;
  left: var(--left);
  width: 5px;
  height: 48px;
  border-radius: 5px;
  background: rgba(68, 137, 175, 0.34);
  animation: rain 1.45s linear infinite;
  animation-delay: calc(var(--i) * -0.13s);
  transform: rotate(15deg);
}

.snow-flakes i {
  position: absolute;
  top: -40px;
  left: calc(var(--i) * 8.4%);
  color: rgba(255, 255, 255, 0.92);
  font-size: calc(17px + (var(--i) % 4) * 5px);
  font-style: normal;
  animation: snow 4.8s linear infinite;
  animation-delay: calc(var(--i) * -0.36s);
}

.wind-lines i {
  position: absolute;
  right: -35px;
  width: 220px;
  height: 54px;
  border: 6px solid rgba(87, 154, 137, 0.28);
  border-left: 0;
  border-radius: 0 50% 50% 0;
  animation: wind 2.9s ease-in-out infinite;
}

.wind-lines i:nth-child(1) { top: 170px; }
.wind-lines i:nth-child(2) { top: 340px; right: auto; left: -70px; transform: scaleX(-1); animation-delay: -1s; }
.wind-lines i:nth-child(3) { bottom: 90px; animation-delay: -2s; }

.wind-lines span {
  position: absolute;
  top: 240px;
  right: 20px;
  font-size: 38px;
  animation: leaf 3.2s ease-in-out infinite;
}

.wardrobe {
  padding: 24px;
  border-radius: 35px 27px 39px 29px;
  background: rgba(255, 251, 244, 0.97);
}

.wardrobe::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--violet) 0 23px, var(--sun) 23px 46px, var(--coral) 46px 69px, var(--mint-strong) 69px 92px);
  content: "";
}

.wardrobe-heading {
  justify-content: space-between;
  margin: 5px 0 17px;
}

.wardrobe-heading > span {
  font-size: 42px;
}

.wardrobe-heading h2 {
  font-size: 33px;
}

.clothing-groups {
  display: grid;
  gap: 11px;
}

.clothing-group {
  min-width: 0;
  margin: 0;
  padding: 11px 12px 12px;
  border: 2px solid #eadfca;
  border-radius: 21px 17px 23px 18px;
  background: #fffdfa;
}

.clothing-group.has-error {
  border-color: #ec8d82;
  background: #fff5f2;
  animation: shake 380ms ease;
}

.clothing-group legend {
  padding: 0 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.clothing-choice {
  position: relative;
  display: grid;
  min-height: 72px;
  grid-template-columns: 48px 1fr 25px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 2px solid #e6ddcc;
  border-radius: 18px 14px 20px 15px;
  background: #fffaf1;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.clothing-choice:hover {
  border-color: #cbbce5;
  transform: translateY(-2px);
}

.clothing-choice.selected {
  border-color: var(--violet);
  background: var(--lavender);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.clothing-choice.wrong {
  border-color: #df675d;
  background: #fff0ed;
}

.clothing-choice b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #c8bcaa;
}

.clothing-choice.selected b {
  background: var(--mint-strong);
}

.choice-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px 12px 17px 13px;
  background: white;
  box-shadow: 0 4px 0 rgba(97, 80, 65, 0.08);
  font-size: 27px;
}

.feedback {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 10px 13px;
  border-radius: 17px 13px 19px 14px;
  background: #f5f0e9;
}

.feedback > span {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #a894c7;
  font-weight: 900;
}

.feedback p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.feedback.good {
  background: #eaf6e7;
}

.feedback.good > span {
  background: var(--mint-strong);
}

.feedback.try {
  background: #fff0eb;
}

.feedback.try > span {
  background: var(--coral);
}

.game-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 13px;
}

.check-button {
  width: 100%;
}

.result-card {
  position: relative;
  display: grid;
  min-height: 650px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
  align-items: center;
  gap: 24px;
  padding: clamp(30px, 6vw, 72px);
  border: 2px solid #ddcfb2;
  border-radius: 44px 33px 49px 36px;
  box-shadow: var(--shadow);
}

.result-card.sunny { background: linear-gradient(120deg, #fffaf0 0 57%, #ffec9c 57%); }
.result-card.rainy { background: linear-gradient(120deg, #fffaf0 0 57%, #cceafb 57%); }
.result-card.snowy { background: linear-gradient(120deg, #fffaf0 0 57%, #e3ecfb 57%); }
.result-card.windy { background: linear-gradient(120deg, #fffaf0 0 57%, #d9efdc 57%); }

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

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

.result-stars {
  margin: 15px 0 24px;
  color: #edae30;
  font-size: 43px;
  letter-spacing: 0.08em;
  filter: drop-shadow(0 4px 0 rgba(161, 112, 24, 0.12));
}

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

.result-doll {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  height: 520px;
  justify-self: center;
}

.result-doll::before {
  position: absolute;
  inset: 35px 0 10px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  content: "";
}

.result-weather {
  position: absolute;
  top: 20px;
  right: -15px;
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border-radius: 50%;
  background: white;
  box-shadow: var(--soft-shadow);
  font-size: 42px;
  animation: bob 2s ease-in-out infinite;
}

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

.celebration i {
  position: absolute;
  top: -25px;
  left: calc(3% + var(--i) * 6.1%);
  width: 11px;
  height: 18px;
  border-radius: 8px 3px 7px 4px;
  background: hsl(calc(var(--i) * 47deg) 78% 65%);
  animation: confetti calc(2.5s + (var(--i) % 4) * .25s) ease-in infinite;
  animation-delay: calc((var(--i) % 6) * -.32s);
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.08) rotate(5deg); }
}

@keyframes rain {
  from { transform: translateY(-80px) rotate(15deg); }
  to { transform: translateY(850px) rotate(15deg); }
}

@keyframes snow {
  from { transform: translate(0, -40px) rotate(0); }
  50% { transform: translate(28px, 380px) rotate(180deg); }
  to { transform: translate(-12px, 820px) rotate(360deg); }
}

@keyframes wind {
  0%, 100% { transform: translateX(0); opacity: .4; }
  50% { transform: translateX(-70px); opacity: .75; }
}

@keyframes leaf {
  0%, 100% { transform: translate(0, 0) rotate(-15deg); }
  50% { transform: translate(-150px, 120px) rotate(220deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

@keyframes confetti {
  from { transform: translateY(-30px) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  to { transform: translateY(720px) rotate(620deg); opacity: .85; }
}

@media (max-width: 980px) {
  .doll-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .play-layout {
    grid-template-columns: 1fr;
  }

  .weather-scene {
    min-height: 680px;
  }

  .doll-stage {
    height: 560px;
  }

  .wardrobe {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
  }

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

  .result-doll {
    grid-row: 1;
  }
}

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

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

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

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

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

  .hero {
    min-height: 600px;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 30px 23px;
  }

  .hero-copy {
    z-index: 4;
  }

  .hero-doll {
    position: absolute;
    right: -25px;
    bottom: -28px;
    width: 300px;
    height: 360px;
    opacity: .76;
  }

  .hero-copy > p:not(.eyebrow) {
    max-width: 400px;
  }

  .hero-weather {
    width: 54px;
    height: 54px;
    font-size: 27px;
  }

  .sun-bubble { top: auto; right: auto; bottom: 190px; left: 25px; }
  .rain-bubble { right: 20px; bottom: 40px; }
  .snow-bubble { top: auto; right: auto; bottom: 55px; left: 40px; }

  .weather-heading,
  .doll-picker-heading,
  .game-heading {
    align-items: flex-end;
  }

  .doll-picker-heading {
    display: block;
  }

  .doll-picker-status {
    max-width: none;
    margin-top: 8px;
    text-align: left;
  }

  .doll-grid {
    gap: 10px;
  }

  .doll-card {
    min-height: 222px;
    padding: 9px 9px 12px;
  }

  .doll-card-picture img {
    height: 168px;
  }

  .doll-card-name {
    font-size: 18px;
  }

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

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

  .weather-card {
    min-height: 112px;
    grid-template-columns: 60px 1fr;
  }

  .weather-card-icon {
    width: 56px;
    height: 56px;
    font-size: 30px;
  }

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

  .game-heading .eyebrow {
    margin-bottom: 4px;
  }

  .weather-scene {
    min-height: 610px;
    padding: 12px;
  }

  .weather-prompt p {
    display: none;
  }

  .doll-stage {
    height: 520px;
    padding-inline: 12px;
  }

  .wardrobe {
    padding: 19px 13px;
  }

  .wardrobe-heading h2 {
    font-size: 29px;
  }

  .choice-row {
    grid-template-columns: 1fr;
  }

  .clothing-choice {
    min-height: 64px;
  }

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

  .hint-button {
    order: 2;
  }

  .result-card {
    padding: 26px 20px 34px;
  }

  .result-doll {
    height: 410px;
  }

  .result-actions {
    display: grid;
  }

  .result-actions button {
    width: 100%;
  }
}

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