:root {
  color-scheme: light;
  --paper: #f7f0df;
  --paper-light: #fffbf1;
  --paper-deep: #eee3cc;
  --ink: #282d2c;
  --muted: #59615c;
  --red: #bf4537;
  --red-dark: #89392f;
  --blue: #2e6988;
  --yellow: #e4bd49;
  --green: #53775d;
  --line: #d7cdb7;
  --shadow: 0 9px 0 rgba(78, 64, 39, .11), 0 18px 35px rgba(76, 61, 34, .08);
  font-family: ui-rounded, "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button { color: inherit; }
a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 4px solid #235f7c; outline-offset: 4px; }
.skip-link { position: absolute; z-index: 20; top: 10px; left: 12px; padding: 12px 18px; transform: translateY(-150%); border-radius: 12px; background: var(--paper-light); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }
.topbar { min-height: 94px; display: grid; grid-template-columns: minmax(190px,1fr) auto minmax(210px,1fr); align-items: center; gap: 20px; padding: 12px clamp(16px,4vw,58px); background: #fdf8ec; border-bottom: 2px solid var(--line); }
.brand { min-width: 0; min-height: 64px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 16px 16px 16px 5px; background: var(--yellow); color: var(--red-dark); font-size: 28px; box-shadow: 3px 3px 0 var(--ink); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 20px; line-height: 1.05; letter-spacing: -.03em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 750; }
.progress-wrap { display: flex; align-items: center; gap: 12px; }
.progress-wrap[hidden] { display: none; }
.progress-label { max-width: 68px; font-size: 12px; line-height: 1.1; font-weight: 800; color: var(--muted); }
.stamps { display: flex; gap: 8px; }
.stamp { width: 42px; height: 42px; display: grid; place-items: center; border: 2px dashed #9b8f76; border-radius: 50%; background: transparent; color: #706a5e; }
.stamp span { font-size: 18px; font-weight: 900; }
.stamp.is-done { border-style: solid; border-color: var(--red-dark); background: #e9bfb0; color: var(--red-dark); }
.global-controls { justify-self: end; display: flex; gap: 6px; }
.icon-button { min-width: 64px; min-height: 64px; padding: 5px 8px; display: grid; align-content: center; justify-items: center; gap: 1px; border: 2px solid transparent; border-radius: 14px; background: transparent; font-size: 22px; cursor: pointer; }
.icon-button span { font-size: 11px; font-weight: 800; }
.icon-button:hover { background: var(--paper); border-color: var(--line); }
#main { width: min(1120px, 100%); min-height: calc(100vh - 160px); margin: 0 auto; padding: clamp(22px,4vw,52px) clamp(14px,4vw,42px) 36px; }
.site-foot { min-height: 52px; padding: 12px clamp(16px,4vw,58px); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; }
.home-shell { min-height: 375px; padding: clamp(20px,4vw,46px); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(18px,5vw,64px); border: 2px solid #e2d7c0; border-radius: 32px; background: var(--paper-light); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 10px; color: var(--red-dark); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
h1,h2,h3,p { margin-top: 0; }
h1 { max-width: 590px; margin-bottom: 14px; font-size: clamp(32px,5vw,54px); line-height: 1.03; letter-spacing: -.045em; }
.home-lede { max-width: 470px; margin: 0; color: #424a46; font-size: clamp(16px,2vw,19px); line-height: 1.55; }
.home-actions { margin-top: 25px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.time-note { color: var(--muted); font-size: 13px; font-weight: 700; }
.button { min-height: 64px; padding: 13px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 3px solid var(--ink); border-radius: 18px; font-size: 16px; font-weight: 900; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.button:active { transform: translateY(1px); box-shadow: none; }
.button.primary { background: var(--red); color: #fffaf0; }
.button.secondary { background: var(--yellow); color: var(--ink); }
.button.quiet { border-color: #867f70; background: transparent; color: #3e4641; }
.button.big-action { min-width: min(100%,320px); min-height: 70px; justify-self: center; font-size: 18px; }
.grownup-panel { max-width: 530px; margin-top: 24px; color: var(--muted); }
.grownup-panel summary { width: fit-content; min-height: 64px; display: flex; align-items: center; cursor: pointer; color: var(--blue); font-size: 14px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.grownup-panel p { margin: 8px 0; font-size: 13px; line-height: 1.5; }
.choice-setting { min-height: 64px; display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 14px; font-weight: 800; cursor: pointer; }
.choice-setting input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fake-check { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 8px; background: #fffdf6; }
.choice-setting input:checked + .fake-check { background: var(--blue); color: #fff; }
.choice-setting input:checked + .fake-check::after { content: '✓'; font-size: 19px; }
.choice-setting input:focus-visible + .fake-check { outline: 4px solid #235f7c; outline-offset: 4px; }
.adult-links { padding-top: 8px; border-top: 1px solid var(--line); }
.adult-links span { margin: 0 8px; }
.post-office-art { position: relative; min-height: 300px; display: grid; place-items: center; overflow: hidden; border: 2px solid #e5d9c0; border-radius: 30px; background: linear-gradient(#dcebf0 0 57%, #dce7c8 57% 100%); }
.post-office-art::before { content: ''; position: absolute; width: 130px; height: 130px; right: 12%; top: 25px; border-radius: 50%; background: #f4d36b; }
.bird-art { position: relative; z-index: 1; width: min(86%,300px); margin-top: 5px; }
.postmark { position: absolute; z-index: 2; left: 8%; bottom: 22px; width: 76px; height: 76px; display: grid; place-items: center; border: 4px solid var(--red); border-radius: 50%; color: var(--red); font-size: 33px; font-weight: 900; transform: rotate(-14deg); }
.postmark small { margin-top: -27px; font-size: 9px; letter-spacing: .15em; }
.art-caption { position: absolute; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255,251,241,.88); font-size: 12px; font-weight: 800; }
.activity-picks { margin-top: 26px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.activity-pick { min-height: 105px; padding: 14px; display: grid; grid-template-columns: 30px 62px 1fr 24px; align-items: center; gap: 8px; border: 2px solid #dbd0b9; border-radius: 21px; background: #fffaf0; text-align: left; cursor: pointer; }
.activity-pick:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 5px 0 rgba(78,64,39,.12); }
.pick-number { align-self: start; padding-top: 4px; color: #8c8068; font-size: 12px; font-weight: 900; }
.pick-illustration { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 17px; background: #f3e5bf; font-size: 27px; }
.pick-illustration.sorting { background: #dcebf0; }
.pick-illustration.counting { color: var(--red); letter-spacing: -4px; }
.stripe-swatch,.dot-swatch { width: 24px; height: 28px; border: 2px solid var(--ink); border-radius: 7px; background: repeating-linear-gradient(135deg,#c94332 0 5px,#fff1df 5px 8px); }
.dot-swatch { background: radial-gradient(circle at 4px 4px,#fff 0 2px,transparent 2.5px),#286493; background-size: 9px 9px; }
.pick-copy strong,.pick-copy small { display: block; }
.pick-copy strong { font-size: 15px; line-height: 1.2; }
.pick-copy small { margin-top: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.pick-arrow { justify-self: end; color: var(--red-dark); font-size: 20px; font-weight: 900; }
.privacy-note { margin: 21px 0 0; color: var(--muted); text-align: center; font-size: 12px; font-weight: 700; }
.privacy-note span { margin-right: 5px; color: var(--red); }
.finish-card { margin-top: 20px; padding: 18px 22px; display: flex; align-items: center; gap: 18px; border: 2px solid #b9cbaa; border-radius: 20px; background: #eef3e6; }
.finish-card h2 { margin-bottom: 6px; font-size: 20px; }
.finish-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.finish-card .eyebrow { margin-bottom: 5px; }
.finish-stamp { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; border: 3px dashed var(--green); border-radius: 50%; color: var(--green); font-size: 30px; }
.finish-card .button { margin-left: auto; }

.game-panel { padding: clamp(15px,3vw,30px); border: 2px solid #e0d5be; border-radius: 29px; background: var(--paper-light); box-shadow: var(--shadow); }
.activity-nav { margin: -7px 0 25px; display: flex; align-items: stretch; gap: 8px; }
.nav-game,.nav-exit { min-height: 68px; padding: 9px 14px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 2px solid #d8cdb6; border-radius: 14px; background: #fbf5e7; color: #49514b; font-size: 13px; font-weight: 850; cursor: pointer; }
.nav-game span { font-size: 19px; }
.nav-game.selected { border-color: var(--red-dark); background: #f5ded0; color: var(--red-dark); }
.nav-exit { margin-left: auto; border-color: transparent; background: transparent; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.game-heading { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.game-heading h1 { margin-bottom: 8px; font-size: clamp(30px,4vw,43px); }
.round-doodle { width: 86px; height: 86px; flex: 0 0 86px; display: grid; place-items: center; border: 2px dashed #b99d57; border-radius: 50%; background: #f6edcf; color: var(--red-dark); font-size: 35px; font-weight: 900; }
.shape-art { width: 84px; height: 84px; display: block; }
.prompt-card { min-height: 65px; margin: 14px 0 22px; padding: 10px 18px; display: flex; align-items: center; gap: 12px; border-left: 6px solid var(--blue); border-radius: 8px 16px 16px 8px; background: #e5eef0; }
.prompt-card p { margin: 0; color: #2f3e43; font-size: 15px; font-weight: 800; line-height: 1.45; }
.prompt-bird { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 13px 13px 13px 4px; background: var(--yellow); color: var(--red-dark); font-size: 21px; font-weight: 900; }
.match-demo-board,.target-row,.sort-demo-board { min-height: 210px; margin: 8px auto 20px; display: flex; justify-content: center; align-items: center; gap: clamp(14px,5vw,54px); }
.target-card { min-width: 145px; min-height: 155px; padding: 10px 20px; display: grid; align-content: center; justify-items: center; gap: 8px; border: 2px solid #ddd1b8; border-radius: 22px; background: #fffaf0; }
.target-card .shape-art { width: 95px; height: 95px; }
.mini-label { color: var(--muted); font-size: 12px; font-weight: 800; }
.demo-match { border-style: dashed; border-color: var(--blue); background: #f0f6f7; }
.demo-arrow,.target-arrow { color: var(--red-dark); font-size: 38px; font-weight: 900; }
.target-row { justify-content: space-around; }
.choices-grid { display: flex; justify-content: center; gap: 12px; }
.shape-choice { width: clamp(90px,14vw,132px); height: clamp(90px,14vw,132px); display: grid; place-items: center; border: 3px solid #b8ab90; border-radius: 24px; background: #f7efdc; cursor: pointer; }
.shape-choice:hover { border-color: var(--blue); background: #e8f2f4; transform: translateY(-3px); }
.shape-choice .shape-art { width: 83%; height: 83%; }
.choice-hint { display: none; }
.below-hint,.visual-tip { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: 14px; font-weight: 700; }
.big-action { margin: 10px auto 0; display: flex; }
.round-complete { min-height: 250px; display: grid; justify-items: center; align-content: center; text-align: center; }
.round-complete p { max-width: 460px; margin: 10px auto 14px; color: #48514b; font-size: 16px; line-height: 1.5; }
.delivered-seal { width: 77px; height: 77px; display: grid; place-items: center; border: 5px double var(--green); border-radius: 50%; color: var(--green); font-size: 40px; font-weight: 900; transform: rotate(-9deg); }
.game-bottom { min-height: 62px; margin-top: 25px; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); }
.game-bottom .button { min-height: 64px; padding: 8px 14px; font-size: 13px; }
.try-note { color: var(--muted); font-size: 12px; font-weight: 700; text-align: right; }

.sort-demo-board { min-height: 185px; }
.parcel-example,.mailbox-example { min-width: 155px; min-height: 145px; padding: 10px; display: grid; justify-items: center; align-content: center; gap: 5px; border: 2px solid #d9cfbb; border-radius: 21px; background: #fffaf0; font-size: 13px; font-weight: 850; }
.parcel-example .parcel-svg { width: 82px; height: 82px; }
.mailbox-example .bin-svg { width: 105px; height: 88px; }
.sorting-board { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 12px; }
.parcel-side,.bin-side { min-width: 0; padding: 14px; border: 2px solid #ded3bc; border-radius: 22px; background: #fbf6e9; }
.parcel-side h2,.bin-side h2 { margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; }
.parcel-side h2 span { color: var(--muted); font-size: 11px; }
.parcel-row,.bins-row { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 9px; }
.parcel-choice,.bin-choice { min-width: 86px; min-height: 112px; padding: 7px; display: grid; justify-items: center; align-content: center; gap: 4px; border: 3px solid #d5c9b1; border-radius: 18px; background: #fffaf0; cursor: pointer; }
.parcel-choice:hover,.parcel-choice.parcel-selected { border-color: var(--blue); background: #e5eef0; }
.parcel-choice.parcel-done { border-color: #96ae8e; background: #e8efe2; opacity: .8; }
.parcel-svg { width: 74px; height: 74px; display: block; }
.parcel-status { color: var(--muted); font-size: 10px; font-weight: 850; }
.bin-choice { min-width: 98px; min-height: 132px; border-color: #d9cfbd; }
.bin-choice .bin-svg { width: 85px; height: 78px; display: block; }
.bin-choice span { max-width: 110px; color: #49504b; font-size: 11px; font-weight: 850; line-height: 1.2; }
.bin-choice:disabled { opacity: .55; cursor: default; }
.bin-choice.ready-bin { border-color: #b08136; background: #fff2cb; }
.bin-choice.ready-bin:hover { border-color: var(--red-dark); transform: translateY(-2px); }
.postage-divider { color: #a8956e; text-align: center; font-size: 18px; }
.micro-copy { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 11px; font-weight: 750; }

.count-demo { min-height: 250px; display: grid; justify-items: center; align-content: center; text-align: center; }
.demo-one-parcel { width: 135px; height: 145px; display: grid; justify-items: center; align-content: center; border: 2px dashed #c4b48f; border-radius: 22px; background: #f8f0dd; }
.demo-one-parcel .parcel-svg { width: 83px; height: 83px; }
.demo-one-parcel span { font-size: 15px; font-weight: 900; }
.demo-one-parcel.count-highlight { outline: 4px solid #c18c17; outline-offset: 4px; border-style: solid; }
.count-demo p { margin: 13px 0 0; color: var(--muted); font-weight: 750; }
.count-guided,.count-choose { min-height: 265px; display: grid; justify-items: center; align-content: center; gap: 13px; }
.count-target,.count-reference { width: min(100%,540px); min-height: 150px; display: grid; justify-items: center; align-content: center; gap: 7px; border: 2px solid #ddd2bd; border-radius: 22px; background: #fcf7ea; }
.count-target p,.count-reference p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.count-parcel-row { position: relative; width: 240px; height: 98px; }
.count-parcel-row.spread-row { width: 280px; height: 115px; }
.count-object { position: absolute; width: 58px; height: 58px; display: grid; place-items: center; transform: translate(-50%,-50%); transition: transform .15s ease; }
.count-object.is-visible { opacity: 1; }
.count-object.not-yet { opacity: .35; }
.count-object.count-highlight { transform: translate(-50%,-50%) scale(1.15); z-index: 2; }
.count-highlight .parcel-svg { filter: drop-shadow(0 0 0.35rem #e6bd45); }
.count-object .parcel-svg.small-parcel { width: 58px; height: 58px; }
.parcel-outline { width: 42px; height: 42px; display: grid; place-items: center; color: #736d60; }
.parcel-outline svg { width: 100%; height: 100%; overflow: visible; }
.parcel-outline rect,.parcel-outline path { fill: none; stroke: currentColor; stroke-width: 3; stroke-dasharray: 5 4; stroke-linecap: round; }
.count-tap-cue { display: inline-flex; align-items: center; gap: 5px; }
.count-tap-cue .parcel-svg { width: 44px; height: 44px; }
.count-tap-hand { width: 31px; height: 31px; flex: 0 0 31px; }
.count-next:disabled { opacity: .74; cursor: wait; }
.count-next { min-width: min(100%,320px); }
.collection-options { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.collection-choice { width: 135px; min-height: 128px; padding: 8px; display: grid; justify-items: center; align-content: center; gap: 5px; border: 3px solid #cbbfa8; border-radius: 21px; background: #fffaf0; cursor: pointer; }
.collection-choice:hover { border-color: var(--blue); background: #eaf2f3; transform: translateY(-2px); }
.collection-picture { position: relative; width: 105px; height: 83px; }
.collection-parcel { position: absolute; width: 32px; height: 32px; transform: translate(-50%,-50%); }
.collection-parcel .parcel-svg { width: 100%; height: 100%; }
.collection-name { color: var(--muted); font-size: 12px; font-weight: 850; text-transform: capitalize; }

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; gap: 8px; padding: 10px 14px; }
  .progress-wrap { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .global-controls { grid-column: 2; grid-row: 1; }
  .icon-button { min-width: 64px; min-height: 64px; }
  #main { min-height: calc(100vh - 180px); padding: 18px 13px 28px; }
  .home-shell { grid-template-columns: 1fr; gap: 20px; padding: 21px; }
  .post-office-art { min-height: 250px; }
  .bird-art { width: min(76%,250px); }
  .activity-picks { grid-template-columns: 1fr; gap: 10px; }
  .activity-pick { min-height: 84px; grid-template-columns: 28px 55px 1fr 22px; }
  .pick-illustration { width: 52px; height: 52px; }
  .finish-card { flex-wrap: wrap; }
  .finish-card .button { margin-left: 76px; }
  .game-panel { padding: 15px; border-radius: 22px; }
  .activity-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .nav-game,.nav-exit { min-height: 68px; padding: 8px; font-size: 12px; }
  .nav-exit { justify-self: stretch; margin-left: 0; }
  .game-heading { min-height: 83px; }
  .round-doodle { width: 65px; height: 65px; flex-basis: 65px; }
  .round-doodle .shape-art { width: 50px; height: 50px; }
  .target-row { flex-direction: column; gap: 11px; }
  .target-card { min-height: 120px; }
  .target-card .shape-art { width: 74px; height: 74px; }
  .target-arrow { transform: rotate(90deg); font-size: 26px; }
  .choices-grid { width: 100%; }
  .shape-choice { width: min(29vw,112px); height: min(29vw,112px); }
  .match-demo-board,.sort-demo-board { gap: 10px; }
  .match-demo-board .target-card { min-width: 112px; min-height: 125px; padding: 8px; }
  .match-demo-board .target-card .shape-art { width: 72px; height: 72px; }
  .sorting-board { grid-template-columns: 1fr; gap: 10px; }
  .postage-divider { display: none; }
  .parcel-side,.bin-side { padding: 10px; }
  .parcel-choice { min-width: 76px; min-height: 103px; }
  .bin-choice { min-width: 87px; min-height: 117px; }
  .bin-choice .bin-svg { width: 73px; height: 66px; }
  .game-bottom { align-items: flex-start; flex-direction: column; }
  .try-note { text-align: left; }
  .count-parcel-row { width: min(80vw,240px); }
  .count-parcel-row.spread-row { width: min(86vw,280px); }
}
@media (max-width: 390px) {
  .brand strong { font-size: 17px; }
  .brand-mark { width: 44px; height: 44px; }
  .icon-button { min-width: 64px; min-height: 64px; padding-inline: 4px; }
  .home-shell { padding: 17px; }
  .home-shell h1 { font-size: 33px; }
  .round-doodle { width: 55px; height: 55px; flex-basis: 55px; font-size: 26px; }
  .target-card { min-width: 130px; }
  .match-demo-board .target-card { min-width: 100px; }
  .demo-arrow { font-size: 26px; }
  .parcel-choice { min-width: 69px; padding: 4px; }
  .parcel-svg { width: 64px; height: 64px; }
  .bin-choice { min-width: 78px; }
  .bin-choice span { font-size: 10px; }
  .site-foot { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .count-object.count-highlight { transform: translate(-50%,-50%); outline: 4px solid #d19b20; outline-offset: 3px; }
}
