:root {
  --sky: #edf7ff;
  --cloud: rgba(255, 255, 255, 0.72);
  --meadow: #f7ffe8;
  --mint: #d8f5d6;
  --butter: #fff2bf;
  --peach: #ffd7b0;
  --berry: #d95d7d;
  --sunset: #ff8a5b;
  --forest: #295544;
  --ink: #1f2942;
  --muted: #5f6a80;
  --card: rgba(255, 252, 246, 0.82);
  --card-strong: rgba(255, 255, 255, 0.94);
  --ring: rgba(217, 93, 125, 0.22);
  --shadow: 0 22px 50px rgba(50, 61, 91, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 228, 196, 0.6), transparent 24%),
    linear-gradient(180deg, #dff4ff 0%, #ecfff4 42%, #fff9e9 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -4rem;
  left: -2rem;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  filter: blur(20px);
}

body::after {
  right: -5rem;
  bottom: -5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(217, 93, 125, 0.12);
  filter: blur(30px);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

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

textarea {
  resize: vertical;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 1.25rem));
  margin: 0 auto;
  padding: 0.9rem 0 1.75rem;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.1rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: calc(var(--radius-xl) + 4px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 246, 231, 0.78)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -4.4rem -4.4rem;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: rgba(255, 242, 191, 0.38);
  filter: blur(8px);
}

.hero__image {
  position: relative;
  min-height: 280px;
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.hero__image--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image--mission {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 245, 178, 0.92), transparent 16%),
    linear-gradient(180deg, #dff4ff 0%, #eefcff 42%, #f9ffe9 100%);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image--photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(25, 46, 40, 0.6));
}

.hero__scene {
  position: absolute;
  inset: 0;
}

.hero__sun {
  position: absolute;
  top: 2rem;
  right: 2.2rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fffde9 0%, #ffe57d 58%, #ffc94f 100%);
  box-shadow: 0 0 40px rgba(255, 214, 96, 0.45);
}

.hero__cloud {
  position: absolute;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  filter: blur(0.2px);
}

.hero__cloud::before,
.hero__cloud::after {
  content: "";
  position: absolute;
  bottom: 0.25rem;
  border-radius: 999px;
  background: inherit;
}

.hero__cloud::before {
  left: 0.4rem;
  width: 1.5rem;
  height: 1.5rem;
}

.hero__cloud::after {
  right: 0.45rem;
  width: 1.8rem;
  height: 1.8rem;
}

.hero__cloud--one {
  top: 2.8rem;
  left: 1.6rem;
  width: 4.5rem;
}

.hero__cloud--two {
  top: 5.2rem;
  left: 5rem;
  width: 5.2rem;
}

.hero__hill {
  position: absolute;
  left: -5%;
  width: 110%;
  border-radius: 50% 50% 0 0;
}

.hero__hill--back {
  bottom: 3.8rem;
  height: 8rem;
  background: linear-gradient(180deg, #a9df98, #79bc69);
}

.hero__hill--front {
  bottom: -1.4rem;
  height: 9rem;
  background: linear-gradient(180deg, #86cf77, #58a457);
}

.hero__eggs {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  display: flex;
  gap: 0.8rem;
}

.hero__egg {
  width: 2rem;
  height: 2.7rem;
  border-radius: 55% 55% 50% 50%;
  box-shadow: inset 0 -8px 10px rgba(0, 0, 0, 0.08);
}

.hero__egg--pink {
  background:
    linear-gradient(180deg, #ffcee0 0 33%, #ff7ca6 33% 66%, #fff1a6 66% 100%);
}

.hero__egg--gold {
  background:
    linear-gradient(180deg, #fff2bf 0 33%, #ffc75f 33% 66%, #f97f61 66% 100%);
}

.hero__egg--mint {
  background:
    linear-gradient(180deg, #d4ffe7 0 33%, #8be0b1 33% 66%, #6aa9ff 66% 100%);
}

.hero__bunny {
  position: absolute;
  right: 3.3rem;
  bottom: 2.2rem;
  width: 5.5rem;
  height: 6.1rem;
}

.hero__bunny-ear {
  position: absolute;
  top: 0;
  width: 1.5rem;
  height: 3.7rem;
  border-radius: 999px;
  background: #fff7ef;
}

.hero__bunny-ear::after {
  content: "";
  position: absolute;
  inset: 0.42rem;
  border-radius: 999px;
  background: #ffbfd1;
}

.hero__bunny-ear--left {
  left: 1rem;
  transform: rotate(-10deg);
}

.hero__bunny-ear--right {
  right: 1rem;
  transform: rotate(12deg);
}

.hero__bunny-face {
  position: absolute;
  inset: 2.2rem 0 0;
  border-radius: 48% 48% 42% 42%;
  background: linear-gradient(180deg, #fffaf2, #f4eadf);
  box-shadow: inset 0 -10px 10px rgba(0, 0, 0, 0.05);
}

.hero__bunny-face::before,
.hero__bunny-face::after {
  content: "";
  position: absolute;
  top: 2rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #493a38;
}

.hero__bunny-face::before {
  left: 1.5rem;
}

.hero__bunny-face::after {
  right: 1.5rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.3rem 0.2rem 0.4rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--berry);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: clamp(2.4rem, 7vw, 4.1rem);
  line-height: 0.95;
  color: #2e3b22;
}

.hero__lede {
  margin: 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--cloud);
  font-size: 0.88rem;
  color: #3d4d3d;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.toggle-group {
  display: inline-flex;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(59, 72, 92, 0.08);
}

.toggle {
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.toggle.is-active {
  background: linear-gradient(135deg, var(--berry), #ed7b64);
  color: #fffaf8;
  box-shadow: 0 10px 24px rgba(217, 93, 125, 0.25);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.82rem 1.1rem;
  border-radius: 16px;
  color: #fffdfb;
  background: linear-gradient(135deg, #2f7e61, #4c987a);
  box-shadow: 0 14px 24px rgba(47, 126, 97, 0.2);
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(47, 126, 97, 0.25);
}

.button:focus-visible,
.field:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.button--warm {
  background: linear-gradient(135deg, var(--berry), var(--sunset));
  box-shadow: 0 14px 24px rgba(217, 93, 125, 0.24);
}

.button--soft {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(59, 72, 92, 0.08);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px rgba(59, 72, 92, 0.08);
}

.button--small {
  min-height: 40px;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  font-size: 0.9rem;
}

.workspace {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--berry), #ffb15f, #73b97c, #5da1cf);
}

.panel__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.panel__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--berry);
  font-weight: 700;
}

.panel__title {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.1;
}

.panel__description {
  margin: 0.4rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.panel__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.progress-wrap {
  margin: 1rem 0 0;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.progress-bar {
  position: relative;
  overflow: hidden;
  height: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 4px rgba(42, 54, 84, 0.1);
}

.progress-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8ba5, #ffc75e, #76c88a, #67a7da);
}

.mission-card,
.well,
.stage-card,
.toast,
.celebration,
.rescue-card {
  border-radius: var(--radius-lg);
  background: var(--card-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.mission-card {
  padding: 1rem;
}

.mission-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
  align-items: start;
}

.mission-type {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mission-type--story {
  color: #7b4b32;
  background: #ffe2cc;
}

.mission-type--clue {
  color: #25644e;
  background: #daf5e0;
}

.mission-type--puzzle {
  color: #4959a6;
  background: #dfe7ff;
}

.mission-type--finale {
  color: #8a4f28;
  background: #fff0c4;
}

.mission-card h3 {
  margin: 0.7rem 0 0.2rem;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.mission-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.story-note {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 252, 234, 0.9), rgba(255, 245, 228, 0.95));
}

.field-group {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.field-row {
  display: grid;
  gap: 0.75rem;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #46516a;
}

.field,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(75, 88, 114, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(37, 50, 74, 0.04);
}

.textarea {
  min-height: 110px;
}

.mission-actions,
.parent-actions,
.stage-actions,
.test-row,
.rescue-actions,
.celebration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hint {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 251, 228, 0.96), rgba(241, 255, 233, 0.96));
  color: #4a5b2c;
  line-height: 1.5;
}

.feedback {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.feedback--error {
  background: rgba(255, 226, 230, 0.95);
  color: #9b314d;
}

.feedback--success {
  background: rgba(226, 255, 234, 0.96);
  color: #23634b;
}

.well {
  margin-top: 1rem;
  padding: 1rem;
}

.well__title {
  margin: 0;
  font-size: 1rem;
}

.well__text {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.summary-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.summary-card {
  padding: 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
}

.summary-card h4 {
  margin: 0 0 0.25rem;
  font-size: 0.94rem;
}

.summary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.helper {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.stage-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.stage-card {
  padding: 1rem;
}

.stage-card__top {
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.8rem;
}

.stage-card__index {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--berry);
  font-weight: 700;
}

.stage-card__title {
  margin: 0.18rem 0 0;
  font-size: 1.08rem;
}

.stage-card__badge {
  padding: 0.46rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.stage-card__grid {
  display: grid;
  gap: 0.75rem;
}

.test-pill {
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.test-pill.is-pass {
  background: #daf5e0;
  color: #25644e;
}

.test-pill.is-fail {
  background: #ffe2e6;
  color: #9b314d;
}

.rescue-card {
  padding: 1rem;
  margin-top: 1rem;
}

.rescue-card h4,
.celebration h3 {
  margin: 0;
}

.rescue-card p,
.celebration p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.celebration {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.92), transparent 36%),
    linear-gradient(135deg, rgba(255, 250, 236, 0.95), rgba(240, 255, 239, 0.95));
}

.celebration::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: rgba(255, 215, 112, 0.18);
}

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

.confetti span {
  position: absolute;
  top: -1rem;
  width: 12px;
  height: 18px;
  border-radius: 999px;
  animation: drop linear forwards;
}

.toast {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  color: #294a3a;
  background: rgba(228, 255, 237, 0.94);
}

.hidden-mobile {
  display: none;
}

@keyframes drop {
  from {
    transform: translateY(-20px) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  to {
    transform: translateY(470px) rotate(360deg);
    opacity: 0.95;
  }
}

@media (min-width: 720px) {
  .shell {
    width: min(960px, calc(100% - 2rem));
    padding-top: 1rem;
  }

  .hero__content {
    padding: 0.35rem 0.1rem 0.25rem;
  }

  .hero__image {
    min-height: 320px;
  }

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

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

@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.08fr);
    gap: 1.2rem;
    padding: 1.15rem;
  }

  .hero__content {
    justify-content: center;
    padding: 0.5rem 0.2rem 0.5rem 0;
  }
}

@media (max-width: 520px) {
  .hero__bunny {
    right: 1.6rem;
    bottom: 1.6rem;
    transform: scale(0.88);
    transform-origin: bottom right;
  }

  .hero__eggs {
    left: 1.2rem;
    bottom: 1.5rem;
    gap: 0.55rem;
  }

  .hero__sun {
    right: 1.2rem;
    width: 3.8rem;
    height: 3.8rem;
  }
}

@media (min-width: 1180px) {
  .workspace {
    grid-template-columns: minmax(0, 1.07fr) minmax(340px, 0.93fr);
    align-items: start;
  }

  .panel--play,
  .panel--parent {
    display: block !important;
  }

  .hidden-mobile {
    display: block;
  }
}

@media (max-width: 979px) {
  .panel.is-hidden {
    display: none;
  }
}
