:root {
  --paper: #fff9ed;
  --paper-deep: #f4ead6;
  --ink: #233047;
  --muted: #6a6f79;
  --leaf: #5f8a68;
  --leaf-deep: #2f604f;
  --teal: #2b8c86;
  --indigo: #394375;
  --pink: #c21872;
  --pink-soft: #f3a8ca;
  --gold: #e7ad48;
  --line: rgba(35, 48, 71, 0.16);
  --shadow: 0 20px 50px rgba(57, 67, 117, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 10%, rgba(194, 24, 114, 0.08), transparent 26rem),
    radial-gradient(circle at 80% 0%, rgba(43, 140, 134, 0.12), transparent 28rem),
    linear-gradient(180deg, var(--paper), #fffdf7 36rem, var(--paper));
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
}

a {
  color: inherit;
}

button,
a.button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--indigo);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--indigo);
  border-radius: 50% 42% 54% 46%;
  background: var(--paper);
  color: var(--pink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover {
  border-color: var(--line);
  color: var(--indigo);
  background: rgba(255, 255, 255, 0.56);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 46px;
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: 36px 0 80px;
}

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

.kicker {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0;
  line-height: 1;
}

h1 {
  max-width: 720px;
  color: var(--indigo);
  font-size: clamp(3rem, 8vw, 6.9rem);
}

h2 {
  color: var(--indigo);
  font-size: clamp(2.1rem, 4vw, 4.25rem);
}

h3 {
  color: var(--ink);
  font-size: 1.5rem;
}

p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-copy p:not(.kicker) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.17rem;
}

.hero-actions,
.guess-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.icon-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--indigo);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(57, 67, 117, 0.16);
}

.primary {
  background: var(--pink);
  border-color: var(--pink);
  color: #fffdf8;
}

.secondary,
.icon-button {
  background: rgba(255, 255, 255, 0.72);
  color: var(--indigo);
}

.full {
  width: 100%;
}

.storybook-scene {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 2px solid rgba(57, 67, 117, 0.12);
  border-radius: 38% 46% 38% 48% / 7% 8% 6% 7%;
  background: linear-gradient(#bde5e5 0 44%, #e9d7a4 44% 57%, #97bf77 57%);
  box-shadow: var(--shadow);
}

.hero-photo {
  position: relative;
  overflow: hidden;
  border: 6px solid #fffdf8;
  border-radius: 38% 46% 38% 48% / 7% 8% 6% 7%;
  box-shadow: var(--shadow);
  outline: 2px solid rgba(57, 67, 117, 0.12);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  max-height: 620px;
  object-fit: cover;
}

.sun {
  position: absolute;
  top: 54px;
  right: 76px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffe08a;
  box-shadow: 0 0 0 18px rgba(255, 224, 138, 0.25);
}

.hill {
  position: absolute;
  bottom: 110px;
  border-radius: 50% 50% 0 0;
}

.hill.back {
  left: -80px;
  width: 430px;
  height: 190px;
  background: #7fac78;
}

.hill.front {
  right: -130px;
  bottom: 76px;
  width: 580px;
  height: 240px;
  background: #6e9c68;
}

.house {
  position: absolute;
  left: 120px;
  bottom: 162px;
  width: 154px;
  height: 150px;
}

.roof {
  width: 0;
  height: 0;
  margin-left: 7px;
  border-right: 72px solid transparent;
  border-bottom: 58px solid var(--indigo);
  border-left: 72px solid transparent;
}

.wall {
  position: relative;
  width: 132px;
  height: 92px;
  margin: 0 auto;
  border: 3px solid var(--ink);
  background: #ffe9c6;
}

.wall span {
  position: absolute;
  right: 20px;
  bottom: 0;
  width: 34px;
  height: 52px;
  border: 3px solid var(--ink);
  border-bottom: 0;
  background: #cf7c5b;
}

.bougainvillea,
.flower,
.bird,
.cat-shape {
  position: absolute;
}

.bougainvillea {
  right: 160px;
  bottom: 134px;
  width: 128px;
  height: 128px;
  border-radius: 43% 57% 46% 54%;
  background:
    radial-gradient(circle at 22% 30%, var(--pink), transparent 16px),
    radial-gradient(circle at 54% 24%, var(--pink-soft), transparent 18px),
    radial-gradient(circle at 72% 55%, var(--pink), transparent 16px),
    radial-gradient(circle at 36% 70%, #df4a99, transparent 17px),
    #5f8a68;
}

.flower {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #6d4530 0 7px, transparent 8px),
    conic-gradient(var(--pink), #f7bb4d, var(--pink), #f59bc6, var(--pink));
}

.flower.one {
  left: 52px;
  bottom: 84px;
}

.flower.two {
  left: 360px;
  bottom: 58px;
  transform: scale(0.78);
}

.flower.three {
  right: 62px;
  bottom: 86px;
  transform: scale(1.12);
}

.bird {
  width: 50px;
  height: 32px;
  border-radius: 60% 50% 50% 60%;
}

.bluebird {
  top: 198px;
  right: 264px;
  background: #3b74b7;
}

.towhee {
  top: 148px;
  left: 82px;
  background: #2c2a2b;
}

.bird::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 9px;
  border-left: 14px solid #d79b39;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.cat-shape {
  right: 88px;
  bottom: 132px;
  width: 72px;
  height: 52px;
  border-radius: 52% 48% 44% 56%;
  background: #171819;
}

.cat-shape::before,
.cat-shape::after {
  content: "";
  position: absolute;
  top: -14px;
  border-bottom: 22px solid #171819;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
}

.cat-shape::before {
  left: 9px;
}

.cat-shape::after {
  right: 9px;
}

.section-intro,
.note-section {
  width: min(820px, 100%);
  margin: 0 auto 76px;
  padding: 24px 30px;
  border-left: 4px solid var(--pink);
  background: rgba(255, 255, 255, 0.62);
}

.game-section,
.activities-section,
.guess-section,
.note-section {
  scroll-margin-top: 92px;
  margin-bottom: 100px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.hidden-layout,
.quote-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.hidden-board-wrap,
.checklist-panel,
.activity-card,
.quote-card,
.score-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hidden-board-wrap {
  padding: 12px;
}

/* ------------------------------------------------------------------ *
 * Photo-based finder board
 * ------------------------------------------------------------------ */
.finder-board {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(35, 48, 71, 0.15);
}

.finder-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.find-item {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
  transition: transform 140ms ease;
}

.find-item img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}

.find-item:hover,
.find-item:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
  outline: none;
}

.find-item::after {
  content: "";
  position: absolute;
  inset: -8%;
  border: 3px solid transparent;
  border-radius: 999px;
  transition: border-color 160ms ease, background 160ms ease;
}

.find-item.found {
  pointer-events: none;
}

.find-item.found::after {
  border-color: var(--pink);
  background: rgba(255, 255, 255, 0.16);
}

.hidden-board {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 440px;
  overflow: hidden;
  background: linear-gradient(#d8f3f2 0 42%, #b6d89e 42%);
  border-radius: 8px;
}

.photo-board {
  aspect-ratio: 4 / 3;
  background: #eaf0ea;
}

.photo-board .scene-layer,
.photo-board .scene-path,
.photo-board .scene-tree,
.photo-board .scene-blanket,
.photo-board .scene-basket {
  display: none;
}

.photo-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 249, 237, 0.08), rgba(255, 249, 237, 0.1)),
    url("assets/hidden-object-background-illustration.jpg") center / contain no-repeat;
  filter: saturate(1.02) brightness(1.02) contrast(0.98);
}

.photo-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 249, 237, 0.07) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.14), transparent 22rem);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.scene-layer,
.scene-path,
.scene-tree,
.scene-blanket,
.scene-basket {
  position: absolute;
}

.sky {
  inset: 0 0 47%;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.78) 0 7%, transparent 8%),
    radial-gradient(circle at 68% 22%, rgba(255, 255, 255, 0.62) 0 9%, transparent 10%);
}

.meadow {
  inset: 42% 0 0;
  background:
    linear-gradient(158deg, transparent 0 54%, rgba(47, 96, 79, 0.12) 54% 56%, transparent 56%),
    #93bf76;
}

.scene-path {
  left: 27%;
  bottom: -18%;
  width: 34%;
  height: 62%;
  border-radius: 50% 50% 0 0;
  background: #e9d19b;
  transform: rotate(4deg);
}

.scene-tree {
  width: 120px;
  height: 210px;
  bottom: 20%;
}

.scene-tree::before {
  content: "";
  position: absolute;
  left: 50px;
  bottom: 0;
  width: 24px;
  height: 130px;
  background: #8b6042;
}

.scene-tree::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 124px;
  height: 112px;
  border-radius: 50% 45% 58% 42%;
  background: #4d815b;
}

.tree-left {
  left: 3%;
}

.tree-right {
  right: 7%;
  bottom: 27%;
  transform: scale(0.78);
}

.scene-blanket {
  left: 38%;
  bottom: 13%;
  width: 190px;
  height: 82px;
  border: 3px solid var(--indigo);
  background:
    linear-gradient(90deg, rgba(194, 24, 114, 0.18) 0 25%, transparent 25% 50%, rgba(43, 140, 134, 0.18) 50% 75%, transparent 75%),
    #fff1cf;
  transform: rotate(-5deg);
}

.scene-basket {
  left: 31%;
  bottom: 26%;
  width: 88px;
  height: 58px;
  border: 3px solid #6d4530;
  border-radius: 8px 8px 20px 20px;
  background: #c28c52;
}

.hidden-item {
  position: absolute;
  display: block;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition:
    transform 140ms ease,
    filter 140ms ease;
}

.hidden-item::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid transparent;
  border-radius: 999px;
}

.hidden-item:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 7px rgba(35, 48, 71, 0.2));
}

.photo-board .hidden-item {
  opacity: 0.9;
  mix-blend-mode: multiply;
  filter: saturate(0.86) contrast(0.95);
}

.photo-board .hidden-item.easy {
  opacity: 0.96;
}

.photo-board .hidden-item.medium {
  opacity: 0.86;
}

.photo-board .hidden-item.hard {
  opacity: 0.78;
}

.hidden-item.found::after {
  border-color: var(--pink);
  background: rgba(255, 255, 255, 0.22);
}

.hidden-item.found {
  pointer-events: none;
}

.dahlia {
  right: 15.7%;
  bottom: 13.4%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #6d4530 0 7px, transparent 8px),
    conic-gradient(#bc2c78, #f4a1c8, #d84692, #f2b141, #bc2c78);
}

.cappuccino {
  right: 10.3%;
  bottom: 30.8%;
  width: 22px;
  height: 29px;
  border: 3px solid #7a4c3a;
  border-radius: 7px 7px 12px 12px;
  background: linear-gradient(#e8caa4 0 30%, #f7f0e3 30%);
}

.cappuccino::before {
  content: "";
  position: absolute;
  right: -9px;
  top: 7px;
  width: 11px;
  height: 13px;
  border: 3px solid #7a4c3a;
  border-left: 0;
  border-radius: 0 12px 12px 0;
}

.flower-pot {
  right: 7.3%;
  bottom: 18.4%;
  width: 28px;
  height: 32px;
  background: linear-gradient(var(--leaf) 0 22px, #b15c43 22px);
  clip-path: polygon(18% 0, 82% 0, 100% 42%, 82% 100%, 18% 100%, 0 42%);
}

.cinnabons {
  right: 22.4%;
  bottom: 43.2%;
  width: 36px;
  height: 23px;
  border-radius: 48%;
  background:
    radial-gradient(circle at 30% 50%, transparent 0 8px, #8d5435 9px 12px, transparent 13px),
    radial-gradient(circle at 68% 50%, transparent 0 8px, #8d5435 9px 12px, transparent 13px),
    #d9a05c;
}

.shadow {
  left: 7.2%;
  top: 18.4%;
  width: 28px;
  height: 20px;
  border-radius: 54% 46% 45% 55%;
  background: #111;
}

.shadow::before,
.shadow::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8dd66f;
}

.shadow::before {
  left: 14px;
}

.shadow::after {
  left: 25px;
}

.notebook {
  right: 8.5%;
  bottom: 46.6%;
  width: 36px;
  height: 24px;
  border: 3px solid var(--indigo);
  background:
    repeating-linear-gradient(#fff 0 6px, #d8e2ea 7px 8px),
    #fff;
  transform: rotate(9deg);
}

.pen {
  right: 12.7%;
  bottom: 50.4%;
  width: 40px;
  height: 5px;
  border-radius: 99px;
  background: var(--indigo);
  transform: rotate(-21deg);
}

.yoga-mat {
  right: 1.8%;
  bottom: 58.2%;
  width: 74px;
  height: 20px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 10px 50%, #246c68 0 13px, transparent 14px),
    var(--teal);
}

.towhee {
  left: 17.4%;
  top: 35.2%;
  width: 26px;
  height: 17px;
  border-radius: 60% 50% 50% 60%;
  background: linear-gradient(90deg, #191919 0 55%, #f2f2ea 55% 72%, #c9743d 72%);
}

.towhee::after,
.bluebird::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 7px;
  border-left: 10px solid #d49538;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.bluebird {
  left: 26.2%;
  top: 19.2%;
  width: 33px;
  height: 20px;
  border-radius: 58% 50% 50% 58%;
  background: linear-gradient(#3571ad 0 60%, #d27944 60%);
}

.checklist-panel,
.activity-card,
.quote-card,
.score-panel {
  border-radius: 8px;
  padding: 22px;
}

.object-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding-left: 0;
  list-style: none;
}

.object-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.object-list li.found {
  color: var(--leaf-deep);
  text-decoration: line-through;
}

.object-list li.pending-object {
  color: rgba(106, 111, 121, 0.58);
  font-style: italic;
}

.difficulty {
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(43, 140, 134, 0.12);
  color: var(--teal);
  font-size: 0.76rem;
  text-decoration: none;
}

.pending-note {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 8px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.panel-subnote {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
}

.activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 22px;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.word-search {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 4px;
  padding: 12px;
  border: 2px solid var(--indigo);
  background: #fffdf8;
}

.word-search span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 4px;
  background: rgba(244, 234, 214, 0.78);
  font-weight: 900;
  color: var(--indigo);
}

.word-bank {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.coloring-sheet {
  width: 100%;
  height: auto;
  color: var(--ink);
  background: #fffdf8;
  border: 2px solid var(--indigo);
}

.coloring-image {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--indigo);
  background: #fffdf8;
}

.download-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.pdf-preview {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 28px;
  border: 2px solid var(--indigo);
  background:
    linear-gradient(135deg, transparent 0 82%, rgba(194, 24, 114, 0.12) 82%),
    #fffdf8;
  color: var(--indigo);
}

.pdf-preview span {
  width: max-content;
  border: 2px solid var(--pink);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--pink);
  font-weight: 900;
}

.pdf-preview div {
  height: 18px;
  border-radius: 999px;
  background: rgba(57, 67, 117, 0.16);
}

.pdf-preview div:nth-child(2) {
  width: 92%;
}

.pdf-preview div:nth-child(3) {
  width: 76%;
}

.pdf-preview div:nth-child(4) {
  width: 84%;
}

.quote-game {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.quote-text {
  margin: 0;
  color: var(--indigo);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 3.1rem);
  line-height: 1.18;
}

.guess-buttons button {
  min-width: 120px;
}

.guess-feedback {
  min-height: 28px;
  margin: 20px 0 0;
  color: var(--leaf-deep);
  font-weight: 900;
}

/* ------------------------------------------------------------------ *
 * Birthday countdown gate
 * ------------------------------------------------------------------ */
.birthday-gate {
  display: none;
}

.gate-open {
  overflow: hidden;
}

.gate-open .page-shell,
.gate-open .confetti-layer {
  display: none;
}

.gate-open .birthday-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(194, 24, 114, 0.12), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(43, 140, 134, 0.16), transparent 30rem),
    linear-gradient(180deg, var(--paper), #fffdf7 40%, var(--paper-deep));
}

.gate-card {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  padding: 40px 34px 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(6px);
}

.gate-card .kicker {
  margin-top: 8px;
}

.gate-card h1 {
  margin: 0 auto 14px;
  max-width: 12ch;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.gate-sub {
  margin: 0 auto 26px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.gate-foot {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.count-unit {
  display: grid;
  gap: 4px;
  min-width: 78px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.count-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
}

.count-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.gate-balloons {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.balloon {
  position: absolute;
  bottom: -160px;
  width: 62px;
  height: 78px;
  border-radius: 50% 50% 48% 48%;
  opacity: 0.85;
  animation: float-up 9s ease-in infinite;
}

.balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -46px;
  width: 1px;
  height: 46px;
  background: rgba(35, 48, 71, 0.3);
}

.balloon.b1 { left: 12%; background: var(--pink); animation-delay: 0s; }
.balloon.b2 { left: 34%; background: var(--teal); animation-delay: 2.4s; }
.balloon.b3 { left: 68%; background: var(--gold); animation-delay: 1.2s; }
.balloon.b4 { left: 86%; background: var(--indigo); animation-delay: 3.6s; }

@keyframes float-up {
  0% { transform: translateY(0) rotate(-4deg); opacity: 0; }
  12% { opacity: 0.85; }
  100% { transform: translateY(-118vh) rotate(4deg); opacity: 0.85; }
}

/* ------------------------------------------------------------------ *
 * Birthday cake + candles
 * ------------------------------------------------------------------ */
.cake {
  position: relative;
  display: inline-block;
}

.cake-sm {
  width: 132px;
  height: 118px;
  margin-bottom: 6px;
}

.cake-lg {
  width: 240px;
  height: 210px;
}

.cake-candles {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 55%;
  display: flex;
  justify-content: center;
  gap: 14%;
  z-index: 3;
}

.cake-lg .cake-candles {
  gap: 10%;
}

.candle {
  position: relative;
  width: 8px;
  height: 34px;
  border-radius: 3px;
  background: repeating-linear-gradient(45deg, var(--pink) 0 6px, #fff 6px 12px);
}

.cake-sm .candle {
  height: 26px;
}

.flame {
  position: absolute;
  left: 50%;
  top: -16px;
  width: 12px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #fff2a8 0 25%, var(--gold) 45%, #e2632a 90%);
  box-shadow: 0 0 12px rgba(231, 173, 72, 0.8);
  transform-origin: bottom center;
  opacity: 0;
  transition: opacity 200ms ease;
}

.flame.lit {
  opacity: 1;
  animation: flicker 1.2s ease-in-out infinite alternate;
}

.flame.out {
  opacity: 0;
}

.flame.out::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 6px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(rgba(120, 120, 120, 0.5), transparent);
  animation: smoke 1.1s ease-out forwards;
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(-3deg); }
  100% { transform: translateX(-50%) scale(1.12) rotate(3deg); }
}

@keyframes smoke {
  0% { opacity: 0.7; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-26px) scale(1.6); }
}

.cake-top,
.cake-base,
.cake-plate {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.cake-top {
  bottom: 34%;
  width: 74%;
  height: 30%;
  border-radius: 12px 12px 8px 8px;
  background:
    radial-gradient(circle at 20% 0, var(--pink) 0 5px, transparent 6px),
    radial-gradient(circle at 50% 0, var(--teal) 0 5px, transparent 6px),
    radial-gradient(circle at 80% 0, var(--gold) 0 5px, transparent 6px),
    linear-gradient(#fbe7d6 0 40%, #f6d7bf 40%);
  border: 2px solid #e3b48f;
}

.cake-base {
  bottom: 12%;
  width: 92%;
  height: 30%;
  border-radius: 8px 8px 10px 10px;
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(194, 24, 114, 0.12) 14px 16px),
    linear-gradient(var(--teal), #22726d);
  border: 2px solid #1c625d;
}

.cake-plate {
  bottom: 6%;
  width: 100%;
  height: 10%;
  border-radius: 999px;
  background: linear-gradient(#f2ead9, #d9ccb2);
  border: 1px solid var(--line);
}

/* ------------------------------------------------------------------ *
 * Make a wish section
 * ------------------------------------------------------------------ */
.wish-section {
  scroll-margin-top: 92px;
  margin-bottom: 100px;
}

.wish-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.wish-stage .cake {
  justify-self: center;
}

.wish-controls {
  display: grid;
  gap: 14px;
}

.wish-message {
  margin: 0;
  min-height: 28px;
  color: var(--leaf-deep);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
}

/* Balloons in the hero storybook scene */
.scene-balloon {
  position: absolute;
  width: 34px;
  height: 44px;
  border-radius: 50% 50% 48% 48%;
  opacity: 0.9;
}

.scene-balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 1px;
  height: 26px;
  background: rgba(35, 48, 71, 0.3);
}

.sb1 { top: 96px; left: 60px; background: var(--pink); }
.sb2 { top: 74px; left: 108px; background: var(--gold); }
.sb3 { top: 108px; left: 156px; background: var(--teal); }

.confetti-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
}

.confetti {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 18px;
  border-radius: 2px;
  animation: fall 2.5s ease-in forwards;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(680deg);
    opacity: 0.1;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-section,
  .hidden-layout,
  .activity-grid,
  .quote-game,
  .wish-stage {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 24px;
  }

  .storybook-scene {
    min-height: 430px;
  }

  .hidden-board {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .nav-links a {
    padding: 7px 9px;
    font-size: 0.86rem;
  }

  .hero-actions,
  .guess-buttons,
  .card-heading,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .icon-button {
    width: 100%;
  }

  .storybook-scene {
    min-height: 360px;
  }

  .hidden-board {
    min-height: 300px;
  }

  .word-search {
    gap: 2px;
    padding: 6px;
  }

  .word-search span {
    font-size: 0.74rem;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .hero-section,
  .section-intro,
  .game-section,
  .guess-section,
  .note-section,
  .icon-button {
    display: none;
  }

  .page-shell {
    width: 100%;
  }

  .activities-section {
    margin: 0;
  }

  .activity-grid {
    display: block;
  }

  .activity-card {
    break-after: page;
    border: 0;
    box-shadow: none;
  }
}
