:root { color-scheme: light; --ink: #354d45; --muted: #5b776a; --pink: #ec7692; --cream: #fffdf4; --mint: #b8e4c8; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #e5f5eb; background-image: radial-gradient(circle at 2% 12%, #fff1c4, transparent 38%), radial-gradient(circle at 100% 85%, #d1eee5, transparent 38%); font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, a:focus-visible { outline: 4px solid #7c50ae; outline-offset: 4px; }
[hidden] { display: none !important; }
svg { display: block; width: 100%; height: 100%; overflow: visible; }
.game-shell { max-width: 1440px; padding: 24px 30px 14px; margin: auto; }
.topbar { margin-bottom: 23px; }
.eyebrow { color: var(--muted); margin: 0 0 6px; font-size: 10px; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(24px, 2.7vw, 38px); letter-spacing: -1.1px; line-height: 1.05; }
.steps { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fffdf4a6; border-radius: 30px; font-size: 12px; font-weight: 800; }
.steps span:not(.active) { color: #6e8476; }
.steps .active { background: #d2ebd7; border-radius: 20px; padding: 8px 12px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 20px; align-items: start; }
.play-card, .carrier-card { background: var(--cream); border: 2px solid #fff; border-radius: 27px; box-shadow: 0 7px 0 #3d765a13, 0 14px 32px #3d765a08; }
.play-card { overflow: hidden; }
.scene-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 23px; }
.scene-heading h2 { margin: 0; font-size: clamp(18px, 2vw, 25px); letter-spacing: -.7px; }
.place-count { flex: none; border-radius: 20px; padding: 9px 13px; background: #fff0c8; font-size: 12px; font-weight: 800; }
.stage { position: relative; aspect-ratio: 960 / 570; min-height: 450px; overflow: hidden; isolation: isolate; background: #c5e9d4; }
.backdrop, .hunt, .spots, .sparkles { position: absolute; inset: 0; }
.backdrop { pointer-events: none; }
.spot { position: absolute; width: 17%; height: 29%; padding: 0; background: none; border: 0; transform: translate(-50%, -50%); transition: filter .15s, opacity .3s; }
.spot > svg { filter: drop-shadow(0 5px 0 #405b3715); transition: transform .2s; }
.spot:hover:not(:disabled) > svg { transform: translateY(-5px) rotate(-3deg); }
.spot:focus-visible { border-radius: 40px; }
.spot.hinted { border-radius: 50%; background: #fff8ad88; outline: 4px dashed #e49f2b; outline-offset: 2px; }
.spot.collected { opacity: .6; }
.spot.collected .peek-pet { opacity: 0; transform: translateY(-20px); }
.peek-pet { transition: transform .35s, opacity .25s; }
.found-mark { fill: #fffdf1; stroke: #3f916b; }
.places { display: flex; gap: 8px; padding: 14px 18px 10px; }
.place-button { display: flex; align-items: center; justify-content: center; gap: 9px; flex: 1; min-height: 46px; border: 2px solid #e2e9db; border-radius: 14px; color: var(--ink); background: #f3f5ec; font-size: 13px; font-weight: 800; }
.place-button.active { background: #dbf0df; border-color: #79b99a; box-shadow: 0 3px 0 #79b99a33; }
.place-button .place-icon { font-size: 22px; color: #64917b; }
.place-button small { border-radius: 10px; background: #fffaf0; padding: 4px 6px; font-size: 10px; white-space: nowrap; }
.status-bar { display: flex; align-items: center; gap: 10px; padding: 10px 22px 16px; min-height: 50px; }
.status-bar > span { color: #d6a33d; font-size: 24px; }
.status-bar p { font-size: 13px; font-weight: 700; line-height: 1.5; margin: 0; }
.carrier-card { padding: 23px 20px 18px; }
.carrier-heading { display: flex; align-items: center; justify-content: space-between; }
.carrier-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.7px; }
.carrier-heading > span { font-size: 40px; color: #e8859a; transform: rotate(10deg); }
.count-row { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 8px; }
.count-row strong { font-size: 36px; letter-spacing: -1px; }
.count-row small { color: #788678; font-size: 18px; }
.count-row > span { font-size: 12px; font-weight: 800; color: var(--muted); }
.progress-track { height: 10px; border-radius: 10px; background: #e4ecdf; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #77cbaa, #e8cf74); transition: width .35s; }
.carrier { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 19px 0 12px; }
.pet-slot { display: grid; place-items: center; padding: 3px; height: 48px; min-width: 0; border: 2px solid transparent; border-radius: 12px; background: #eef2e6; }
.pet-slot.empty { color: #c4cfc0; font-size: 23px; }
.pet-slot.found { background: #fff0cf; }
.pet-slot.selected { border-color: #b86486; background: #ffe0e8; }
.pet-slot.sent { opacity: .35; background: #dcf0df; }
.carrier-note { color: var(--muted); min-height: 38px; font-size: 12px; font-weight: 700; line-height: 1.6; margin: 0 0 14px; }
.primary-button, .secondary-button { min-height: 50px; border-radius: 15px; width: 100%; padding: 10px 14px; font-size: 14px; font-weight: 900; }
.primary-button { color: #fff; background: #ce5777; border: 2px solid #ce5777; box-shadow: 0 4px 0 #a84263; }
.primary-button span { margin-left: 5px; }
.secondary-button { margin-bottom: 13px; color: #436c56; background: #e1f0df; border: 2px solid #cbdcc8; }
.secondary-button > span { font-size: 20px; margin-right: 6px; }
.primary-button:active:enabled, .secondary-button:active:enabled { transform: translateY(2px); }
.how-to { display: flex; gap: 10px; margin: 24px 0 12px; padding-top: 17px; border-top: 1px dashed #cedac7; }
.how-to > span { color: #e5ad54; font-size: 32px; }
.how-to p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.how-to strong { color: var(--ink); }
.text-button { display: block; width: 100%; padding: 9px 0; background: none; border: 0; color: #5d7567; font-size: 12px; font-weight: 800; }
.footnote { text-align: center; font-size: 11px; font-weight: 700; color: #607d6f; margin: 18px 0 0; }
.overlay { position: absolute; inset: 0; z-index: 5; background: #608e7840; display: grid; place-items: center; padding: 18px; backdrop-filter: blur(3px); }
.welcome-card { width: min(380px, 100%); background: #fffdf2; border: 4px solid #fff; border-radius: 26px; padding: 14px 27px 22px; text-align: center; box-shadow: 0 10px 0 #3c665e24, 0 18px 35px #3c665e26; transform: rotate(-1deg); }
.welcome-art { display: flex; align-items: flex-end; justify-content: center; height: 84px; margin: 0 0 11px; }
.welcome-art svg { width: 72px; height: 84px; }
.welcome-art svg:nth-child(2) { transform: translateY(-8px); }
.welcome-card .eyebrow { color: #b55773; }
.welcome-card h2 { margin: 9px 0 12px; font-size: 34px; line-height: 1.02; letter-spacing: -1px; }
.welcome-card > p:not(.eyebrow) { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.gentle-note { display: block; margin: 15px 0 0; font-size: 10px; color: var(--muted); line-height: 1.5; }
.sparkles { pointer-events: none; z-index: 6; overflow: hidden; }
.spark { position: absolute; left: var(--x); top: var(--y); color: var(--color); font-size: 24px; animation: sparkle .85s ease-out both; }
@keyframes sparkle { from { transform: translate(0, 0) scale(.5); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(120deg) scale(1.2); opacity: 0; } }
.delivery { position: absolute; inset: 0; padding: 18px 22px 22px; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.chosen-pet { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 6px 24px; background: #fffdf0e8; border: 3px solid #fff; border-radius: 24px; box-shadow: 0 4px 0 #4c766c16; min-height: 98px; }
#chosen-art { width: 76px; height: 85px; }
.chosen-pet h3 { margin: 0; font-size: 24px; letter-spacing: -.7px; }
.chosen-pet p:last-child { color: var(--muted); margin: 4px 0 0; font-size: 12px; }
.girls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; align-items: stretch; width: 100%; flex: 1; min-height: 0; }
.girl-card { display: flex; flex-direction: column; align-items: center; background: #fffdf0db; border: 3px solid #fff; border-radius: 22px; padding: 10px 12px 12px; min-height: 0; }
.girl-portrait { width: 100%; height: 42%; flex: 1; min-height: 60px; max-height: 160px; }
.girl-card h3 { font-size: 20px; margin: 5px 0 2px; }
.girl-card p { font-size: 11px; margin: 0 0 7px; color: var(--muted); font-weight: 700; }
.girl-pets { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 2px; min-height: 37px; width: 100%; padding: 3px; background: #fff4d8; border: 1px dashed #dec795; border-radius: 12px; margin-bottom: 8px; }
.girl-pets svg { width: 25px; height: 31px; }
.girl-pets span { align-self: center; font-size: 11px; color: #897552; }
.girl-card button { min-height: 42px; padding: 8px; font-size: 13px; border-radius: 12px; box-shadow: 0 3px 0 #a84263; margin-top: auto; }
.girl-card.receiving { animation: receive .5s ease; }
@keyframes receive { 40% { transform: translateY(-8px) rotate(-2deg); background: #ffeab6; } }
@media (min-width: 1500px) { .game-shell { padding-top: 32px; } }
@media (max-width: 1100px) { .layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 14px; } .game-shell { padding: 18px; } .carrier-card { padding: 18px 14px; } .steps { font-size: 10px; gap: 6px; padding: 8px; } .delivery { gap: 10px; padding: 10px 14px 14px; } .chosen-pet { min-height: 70px; padding: 5px 15px; } #chosen-art { width: 55px; height: 60px; } .girls { gap: 8px; } .girl-card { padding: 5px 7px 9px; } .girl-card h3 { font-size: 16px; } .girl-pets { min-height: 30px; } .girl-pets svg { width: 20px; height: 24px; } }
@media (max-width: 850px) { .layout { grid-template-columns: 1fr; } .carrier-card { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; } .carrier-heading, .carrier, .carrier-note, .how-to { grid-column: 1 / -1; } .count-row { margin: 0; } .progress-track { align-self: center; } .carrier { grid-template-columns: repeat(9, 1fr); margin: 0; } .carrier-note { min-height: 0; margin-bottom: 6px; } .how-to { display: none; } .text-button { grid-column: 1 / -1; } .secondary-button { margin: 0; } .steps { font-size: 12px; } }
@media (max-width: 560px) { .game-shell { padding: 12px; } .topbar { margin-bottom: 16px; } .steps { justify-content: center; } .scene-heading { padding: 15px 12px; gap: 5px; } .place-count { font-size: 10px; padding: 8px; } .stage { aspect-ratio: 1; } .backdrop > svg { object-fit: cover; } .spot { width: 24%; height: 26%; } .places { padding: 10px 8px 6px; gap: 5px; } .place-button { flex-wrap: wrap; gap: 3px 5px; font-size: 11px; padding: 5px; } .place-button .place-icon { display: none; } .place-button small { font-size: 9px; } .status-bar { padding: 8px 12px 12px; } .status-bar p { font-size: 12px; } .welcome-card { padding: 12px 19px 17px; } .welcome-art { height: 65px; margin-bottom: 6px; } .welcome-art svg { width: 55px; height: 65px; } .welcome-card h2 { font-size: 28px; } .welcome-card > p:not(.eyebrow) { font-size: 12px; margin-bottom: 12px; } .gentle-note { font-size: 9px; margin-top: 12px; } .carrier-card { padding: 16px 12px; gap: 7px 10px; } .pet-slot { height: 42px; padding: 1px; } .primary-button, .secondary-button { font-size: 12px; padding: 8px; } .delivery { padding: 10px 7px; gap: 10px; } .chosen-pet .eyebrow { font-size: 8px; } .chosen-pet h3 { font-size: 20px; } .girls { gap: 5px; } .girl-card { border-width: 2px; padding: 7px 4px 9px; border-radius: 15px; } .girl-card p { font-size: 9px; } .girl-card button { font-size: 11px; padding: 6px 2px; } .girl-pets svg { width: 17px; height: 22px; } }
@media (max-width: 560px) { .stage { min-height: 360px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

#carrier-actions, #pet-actions { display: contents; }
#stage-actions:empty { display: none; }
@media (max-width: 850px) {
  #stage-actions:has(button:not([hidden]):enabled) {
    display: flex;
    gap: 8px;
    padding: 10px 12px 4px;
  }
  #stage-actions:not(:has(button:not([hidden]):enabled)) { display: none; }
  #stage-actions button { flex: 1; width: auto; margin: 0; }
}

body { background: #f4edda; }
.game-shell { max-width: 1380px; }
h1,.scene-heading h2,.carrier-heading h2,.welcome-card h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; }
.play-card { border: 2px solid #496348; box-shadow: 0 5px 0 #c4b997; border-radius: 19px; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.welcome-art img { max-width: 32%; }
.pet-art { display: block; width: 100%; height: 100%; object-fit: contain; }
.girl-pets .pet-art { width: 25px; height: 31px; }
.spot { width: 18%; height: 25%; max-width: 146px; min-height: 49px; }
.spot .cover-prop { position: absolute; bottom: 0; left: 0; width: 100%; height: 71%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 3px 2px #4438164d); pointer-events: none; }
.spot .peek-pet { position: absolute; width: 57%; height: 68%; bottom: 24%; left: 19%; transform: rotate(calc(var(--lean) * 7deg)); transition: transform .3s, opacity .35s; pointer-events: none; }
.spot.peeking .peek-pet { transform: translateY(-24%) rotate(calc(var(--lean) * 12deg)); }
.spot.peeking .cover-prop { transform: rotate(-3deg); }
.spot.collected { opacity: .75; }
.spot.collected .peek-pet { opacity: 0; }
.found-mark { position: absolute; right: 10%; bottom: 0; background: #fff7d8; color: #386340; border: 2px solid #63815d; border-radius: 50%; width: 22px; height: 22px; font-weight: bold; }
.clue-card,.peek-note { position: absolute; z-index: 2; pointer-events: none; }
.clue-card { display: flex; align-items: center; gap: 10px; left: 13px; top: 12px; padding: 5px 13px 6px 7px; max-width: calc(100% - 26px); border: 2px solid #514c39; border-radius: 7px 15px 8px 12px; background: #fff8df; box-shadow: 2px 4px 0 #48381142; transform: rotate(-1deg); }
#clue-art { width: 49px; height: 52px; flex: none; }
#clue-art.silhouette { filter: brightness(0) saturate(0) opacity(.78); }
.clue-card strong { display: block; font: bold 20px/1.15 Georgia, serif; color: #343b2a; }
.clue-card small { display: block; margin-top: 3px; font-size: 12px; color: #575439; }
.peek-note { bottom: 6px; left: 50%; transform: translateX(-50%); padding: 6px 12px; background: #fff4d6; color: #3e4c30; border-radius: 14px; font-size: 13px; font-weight: bold; white-space: nowrap; }
@media(max-width:560px) {
  .stage { min-height: 350px; }
  .spot { width: 23%; height: 23%; }
  .clue-card { top: 8px; left: 8px; }
  #clue-art { width: 37px; height: 39px; }
  .clue-card strong { font-size: 17px; }
  .clue-card small { font-size: 11px; }
}

.departing { position: absolute; width: clamp(45px,9vw,100px); height: 20%; transform: translate(-50%,-50%); animation: hop-to-carrier .85s ease-in-out forwards; }
@keyframes hop-to-carrier { 0% { opacity: 1; } 36% { transform: translate(-58%,-105%) rotate(-7deg); } 100% { transform: translate(50%,-210%) rotate(8deg) scale(.55); opacity: 0; } }

.delivery { justify-content: space-between; }
.chosen-pet { width: max-content; max-width: 100%; min-height: 74px; padding: 6px 13px; gap: 9px; background: #fff8e4f2; border: 2px solid #67573d; border-radius: 8px 17px 10px 15px; }
#chosen-art { flex: none; }
#activity-clue { width: 32px; height: 32px; flex: none; }
.chosen-pet .eyebrow { font-size: 9px; }
#picnic-wish { color: #413e2a; }
.girls { align-items: end; }
.girl-card { background: transparent; border: 0; padding: 0; gap: 5px; }
.girl-card button.visit-friend { display: grid; justify-items: center; background: transparent; border: 0; border-radius: 20px; box-shadow: none; padding: 0; width: 100%; margin: 0; color: #473929; }
.visit-friend:disabled { opacity: .75; }
.visit-friend:disabled .friend-name { background: #d3ccae; }
.girl-portrait { display: block; width: 100%; height: clamp(100px,20vw,240px); max-height: none; }
.girl-art { width: 100%; height: 100%; object-fit: contain; }
.visit-friend:hover:enabled .girl-portrait { transform: translateY(-3px); }
.friend-name { display: inline-flex; align-items: center; gap: 4px; border: 2px solid #5d493b; border-radius: 36px; background: #fff5d9; padding: 2px 8px 3px 12px; min-height: 34px; box-shadow: 0 2px 0 #71503365; font: bold 18px Georgia, serif; }
.friend-name small { display: block; width: 24px; height: 24px; }
.girl-pets { background: transparent; border: 0; padding: 0; margin: 0; min-height: 39px; }
.girl-pets b { align-self: center; color: #3c392d; background: #fff4d4; border-radius: 9px; padding: 2px 4px; font-size: 11px; }
.girl-pets .pet-art { width: 28px; height: 38px; }
.girl-card.receiving { animation: picnic-hello .5s ease; }
@keyframes picnic-hello { 45% { transform: translateY(-5px) rotate(-2deg); } }
.welcome-art .girl-art { width: 32%; }
.picnic-moment { position: absolute; top: 58%; width: 44px; height: 44px; padding: 5px; display: grid; place-items: center; border-radius: 50%; background: #fff3d2; color: #b84c61; animation: picnic-heart .7s ease-out forwards; }
@keyframes picnic-heart { from { transform: translate(-50%,0) scale(.8); } to { transform: translate(-50%,-110%) scale(1.1); opacity: 0; } }
@media (max-width:560px) {
  .chosen-pet h3 { font-size: 16px; }
  .chosen-pet { width: 100%; padding: 4px 8px; }
  .chosen-pet .eyebrow { display: none; }
  .girl-portrait { height: clamp(88px,26vw,147px); }
  .friend-name { font-size: 15px; min-height: 32px; }
  .girl-pets .pet-art { width: 21px; height: 29px; }
}

#hear-clue { display: grid; place-items: center; height: 44px; width: 44px; padding: 9px; pointer-events: auto; border: 0; border-radius: 50%; background: #f0e4c9; color: #526745; }
#hear-clue svg { width: 20px; height: 20px; }

.stage { width: 100%; }

#picnic-play { min-height: 44px; background: #fff5d8; color:#71472f; border:2px solid #d1a978; border-radius:12px; padding:5px 12px; margin:7px 0 1px; font-weight:800; }
.blanket { position:absolute; inset:0; z-index:2; }
.blanket[hidden],#picnic-play[hidden] { display:none; }
#put-ball { position:absolute; inset:0; width:100%; height:100%; background:transparent; border:0; padding:0; touch-action:manipulation; }
#ball-player,#ball-toy { position:absolute; left:var(--x); top:var(--y); transform:translate(-50%,-100%); pointer-events:none; }
#ball-player { width:16%; height:27%; transition: left .58s ease,top .58s ease; }
#ball-player .pet-art { object-position:center bottom; }
#ball-player.bounding img { animation: pet-bounds .29s ease-in-out infinite alternate; }
@keyframes pet-bounds { to { transform:translateY(-14%) rotate(-5deg); } }
#ball-toy { width:clamp(21px,4.5%,39px); aspect-ratio:1; box-shadow:0 2px 3px #46281770; border-radius:50%; border:2px solid #9e483c; background:radial-gradient(ellipse at 29% 22%,#ffdc97 0 8%,transparent 9%),repeating-linear-gradient(40deg,#e1734e 0 32%,#ffd07a 34% 45%,#c75e47 47% 78%); transition:left .47s ease-out,top .47s ease-out; }
.play-caption,.blanket-tools { position:absolute; z-index:2; }
.play-caption { top:3%; left:3%; display:grid; gap:2px; max-width:65%; padding:7px 12px; background:#fff6dc; border:2px solid #6c5a3e; border-radius:9px; pointer-events:none; color:#4b4e35; }
.play-caption span { font-size:10px; font-weight:bold; color:#8d633e; text-transform:uppercase; letter-spacing:1px; }
.play-caption strong { font:bold clamp(13px,1.7vw,20px) Georgia,serif; }
.blanket-tools { bottom:3%; right:3%; display:flex; gap:6px; }
.blanket-tools button { min-height:44px; border:1px solid #637353; color:#394f32; background:#fff5d7; border-radius:11px; padding:5px 10px; font-weight:750; }
@media(max-width:560px) { .welcome-card:has(#picnic-play:not([hidden])) .welcome-art { height:45px; } .welcome-card:has(#picnic-play:not([hidden])) .gentle-note { margin-top:4px; } }
@media (max-width:560px) {
  .stage:has(#picnic-play:not([hidden])) { min-height: 430px; }
  .overlay:has(#picnic-play:not([hidden])) { padding: 8px; }
  .welcome-card:has(#picnic-play:not([hidden])) { padding: 10px 14px 14px; }
}

#scout-start { display:block; background:transparent; border:1px dashed #998553; color:#5a553c; border-radius:8px; font-size:12px; font-weight:750; min-height:44px; margin:0 auto 8px; padding:5px 12px; }
#scout-start[hidden],#scout-map[hidden],#clue-art[hidden] { display:none; }
#scout-map { display:block; width:116px; height:57px; flex:none; }
#scout-map svg { width:100%; height:100%; }
.scouting .spot .peek-pet { display:none; }
.scouting .spot.collected { opacity:1; }
.scouting .found-mark { width:16px; height:16px; font-size:11px; }
@media(max-width:560px) {
  #scout-map { width:clamp(94px,30vw,129px); height:56px; }
  .clue-card:has(#scout-map:not([hidden])) { padding:3px; gap:5px; }
  .stage:has(#scout-start:not([hidden])) {min-height:395px;}
}

#adventure-sound { flex:none; display:grid; place-items:center; margin-left:auto; width:44px; height:44px; padding:0; border:0; border-radius:50%; color:inherit; background:transparent; cursor:pointer; }
#adventure-sound svg { width:22px; height:22px; }
#adventure-sound:hover, #adventure-sound:focus-visible { background:#a3a58424; }
#adventure-sound[aria-pressed=false] { color:#765e58; }

#walk-picker { width:min(340px,calc(100vw - 32px)); position:fixed; padding:20px; color:#354d45; border:2px solid #9eab8c; border-radius:20px; background:#fff9e8; box-shadow:0 8px 30px #26342245; }
#walk-picker::backdrop { background:#293d365c; }
#walk-picker h2 { margin:4px 0 16px; font:700 24px Georgia,serif; }
#walk-picker .picker-close { position:absolute; right:5px; top:5px; width:44px; height:44px; border:0; border-radius:50%; background:transparent; color:inherit; font-size:24px; }
.walk-options { display:grid;grid-template-columns:1fr 1fr; gap:10px; }
.walk-options button { display:grid;justify-items:center;align-items:center;gap:6px;min-height:98px;border:1px solid #b8b496;border-radius:12px;background:#f6efd6;color:inherit;font-weight:750;font-size:15px; }
.walk-options img,.walk-options svg { width:72px;height:56px;object-fit:contain; }

#park-friends {display:none;}
.trailhead .layout {display:block;}
.trailhead .play-card {max-width:1070px;margin:0 auto;}
.trailhead .scene-heading,.trailhead .carrier-card,.trailhead #places,.trailhead #stage-actions,.trailhead .status-bar,.trailhead .steps,.trailhead #welcome-art,.trailhead #overlay-badge,.trailhead #overlay-note {display:none;}
.trailhead .stage {aspect-ratio:2.35;min-height:355px;max-height:535px;border-radius:20px;}
.trailhead .overlay {background:linear-gradient(90deg,#313c3d15,transparent 65%);backdrop-filter:none;place-items:end start;padding:clamp(15px,3.3vw,43px);}
.trailhead .welcome-card {width:min(330px,100%);display:grid;grid-template-columns:auto auto;gap:10px;text-align:left;transform:none;padding:17px 20px 18px;border:1px solid #9e9b79;border-radius:15px;background:#fff8e6f7;box-shadow:0 3px #6c735645,0 10px 18px #574d3324;}
.trailhead .welcome-card h2,.trailhead .welcome-card>p:not(.eyebrow) {grid-column:1 / -1;margin:0;}
.trailhead .welcome-card #start {grid-column:1;grid-row:3;align-self:center;margin:0;}
.trailhead #scout-start {grid-column:2;grid-row:3;margin:0;}
.trailhead #park-friends {display:block;position:absolute;inset:0;pointer-events:none;}
#park-friends img {position:absolute;object-fit:contain;bottom:10%;height:27%;right:19%;filter:drop-shadow(0 3px 2px #514e4f55);}
#park-friends img:first-child {height:19%;bottom:12%;right:36%;}
@media (max-width:600px){.trailhead .stage {aspect-ratio:1.05;min-height:350px;}.trailhead .overlay{padding:10px;}.trailhead .welcome-card {width:100%;max-width:360px;padding:11px 15px;gap:8px;}.trailhead .welcome-card h2 {font-size:26px;}#park-friends img {right:12%;bottom:39%;height:28%;}#park-friends img:first-child{right:38%;bottom:42%;height:20%;}}
.trailhead .play-card {position:relative;}
.trailhead .scene-heading {display:block;position:absolute;top:10px;right:10px;padding:0;z-index:8;}
.trailhead .scene-heading>div,.trailhead #place-count {display:none;}
.trailhead #adventure-sound {background:#fff8e5e8;box-shadow:0 1px 4px #574d3340;}
.trailhead #park-friends {z-index:1;}

#scout-map { position:relative; padding:0; border:0; background:none; cursor:zoom-in; }
#scout-map::after {content:"⌕";position:absolute;bottom:1px;right:3px;font:700 15px/1 Georgia,serif;color:#604f36;}
#pocket-map { width:min(520px,calc(100vw - 28px));margin:auto;padding:12px;border:1px solid #8a795b;background:#f9eed1;border-radius:13px;color:#504831;box-shadow:0 8px 40px #33382c55;}
#pocket-map::backdrop {background:#31423665;}
#pocket-map form button {position:absolute;top:4px;right:4px;width:44px;height:44px;border:0;background:transparent;font-size:26px;color:#57523e;}
#pocket-map h2 {font:700 21px Georgia,serif;margin:4px 0 12px 6px;}
#unfolded-route {cursor:zoom-out;}
#unfolded-route svg {display:block;width:100%;height:auto;}
#scout-map {pointer-events:auto;}

#chosen-art {touch-action:none;cursor:grab;}
#chosen-art img {pointer-events:none;}
#pet-in-hand {position:fixed;z-index:15;pointer-events:none;transform:translate(-50%,-88%) rotate(-5deg);width:70px;height:72px;filter:drop-shadow(0 5px 3px #473a4170);}
#pet-in-hand img {width:100%;height:100%;object-fit:contain;}
.visit-friend.welcoming .friend-name {background:#fff0a6;outline:3px solid #986d3b;}

.trailhead .welcome-card:has(#continue-outing:not([hidden])) #continue-outing {grid-column:1/-1;grid-row:3;min-height:44px;border:0;border-radius:10px;background:#416c52;color:white;font-weight:800;}
.trailhead .welcome-card:has(#continue-outing:not([hidden])) #start,.trailhead .welcome-card:has(#continue-outing:not([hidden])) #scout-start {grid-row:4;}

/* A small portrait on the return arrow identifies who will come back. */
.recall { display:inline-flex; align-items:center; justify-content:center; gap:1px; padding:3px 6px; min-height:44px; min-width:52px; border:1px solid #b8b797; border-radius:12px; background:#fff7df; color:#4e664e; cursor:pointer; flex:none }
.recall span {font:700 25px/1 Georgia,serif}
.recall .pet-art {width:26px;height:29px;object-fit:contain}
.recall[hidden] {display:none}

#pocket-map .map-return {display:flex;justify-content:center;margin-top:6px}
#pocket-map .map-return button {position:static;display:flex;align-items:center;justify-content:center;gap:6px;width:auto;height:44px;min-width:160px;border:1px solid #b3a884;border-radius:10px;background:#fff9e5;color:#465c45;font-size:14px;font-weight:750}
.map-return button span {font-size:20px}
.map-pin {filter:drop-shadow(0 1px 1px #463d35aa)}

.spot .map-pin {position:absolute;z-index:2;left:63%;top:20%;display:grid;place-items:center;border-radius:50% 50% 50% 6px;width:25px;height:25px;background:#fff6ce;color:#a64736;border:1px solid #957a4d;font:700 18px/1 Georgia,serif;pointer-events:none}

#unfolded-route {position:relative}
#unfolded-route .paper-pin {position:absolute;transform:translate(-50%,-50%);width:15%;height:30%;min-width:34px;min-height:34px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}
#unfolded-route .paper-pin:focus-visible {outline:3px dashed #875132;outline-offset:-2px;background:#fff1b530}

#picnic-toys {position:absolute;inset:0;pointer-events:none}
#picnic-toys button {position:absolute;transform:translate(-50%,-50%);width:48px;height:48px;box-sizing:border-box;border:1px solid #94754b;background:#fff3cf;border-radius:50%;padding:4px;pointer-events:auto;cursor:pointer;box-shadow:0 2px 3px #41372344}
#picnic-toys button:disabled {opacity:0;pointer-events:none}
#picnic-toys img{width:100%;height:100%;object-fit:contain;pointer-events:none}
#picnic-toys .snack {width:58px;height:47px;border:0;border-radius:8px;padding:0;background:transparent;box-shadow:none;filter:drop-shadow(0 2px 1px #79543577)}
#picnic-toys .quilt-toy {width:64px;height:50px;border:0;box-shadow:none;background:transparent;padding:0;filter:drop-shadow(0 2px 2px #68532f)}
.blanket:not([data-style="ball"]) #ball-toy{display:none}
#ball-player[data-kind="turtle"] {transition-duration:.84s}
#ball-player[data-kind="bird"].bounding img {animation:bird-flit .35s ease-in-out infinite alternate}
#ball-player[data-kind="turtle"].bounding img {animation:shell-rock .35s ease-in-out infinite alternate}
@keyframes bird-flit {to{transform:translateY(-32%) rotate(-7deg)}}
@keyframes shell-rock {to{transform:rotate(4deg)}}

#ball-player {width:clamp(78px,22%,152px);height:34%}
#picnic-toys .quilt-toy b {position:absolute;right:10px;top:10px;font-size:15px;color:#784b40;text-shadow:0 1px #fff0b8}
#next-friend {display:inline-flex;align-items:center;gap:4px}
#next-friend .pet-art {width:28px;height:31px}
@media(max-width:420px){#next-friend span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}}

/* The short landscape park leaves a thumb-sized action row below its six landmarks. */
@media (orientation:landscape) and (min-width:550px) and (max-width:850px) and (max-height:500px) {
  .stage:has(#hunt:not([hidden]):not([inert])) {
    aspect-ratio:auto; height:calc(100dvh - 70px); min-height:206px;
  }
  .stage:has(#hunt:not([hidden]):not([inert])) .spot {min-width:48px;min-height:48px}
  .stage:has(#hunt:not([hidden]):not([inert])) .clue-card {top:5px;left:7px;padding:2px 8px;gap:6px}
  .stage:has(#hunt:not([hidden]):not([inert])) #scout-map {height:44px;width:90px}
  .stage:has(#hunt:not([hidden]):not([inert])) #clue-art {width:45px;height:41px}
  #stage-actions:has(button:not([hidden]):enabled) {padding:4px 7px}
  #stage-actions #pet-actions button {min-height:44px}
}

#picnic-basket {position:absolute;right:2%;top:2%;z-index:5;display:grid;justify-items:center;min-width:52px;min-height:48px;padding:0 7px 3px;border:1px solid #b29a68;border-radius:15px;color:#805333;background:#fff5dceb;box-shadow:0 2px 4px #433b2c30}
#picnic-basket img {width:44px;height:32px;object-fit:contain}
#picnic-basket span {font:bold 13px/1 system-ui;letter-spacing:2px}
#picnic-basket:enabled {background:#ffeaa9;box-shadow:0 0 0 2px #b48a42}
#picnic-basket[hidden] {display:none}
.stage:not(.scouting) .spot {touch-action:none}
.departing.card-match::after {content:'✦';position:absolute;right:-8%;top:5%;color:#fff7b5;font-size:1.8rem;text-shadow:0 1px 3px #9a6d23}
@media (prefers-reduced-motion:no-preference) {
  .stage:not(.scouting) .spot:not(.collected):first-of-type .cover-prop:not([style]) {animation:rustle-cover 3.4s ease-in-out infinite;transform-origin:50% 90%}
  @keyframes rustle-cover {0%,55%,100% {transform:rotate(0)} 68% {transform:translateX(6%) rotate(5deg)} 82% {transform:rotate(-3deg)}}
}

.trailhead .overlay {pointer-events:none}
.trailhead .welcome-card {pointer-events:auto}
#park-friends button {position:absolute;right:19%;bottom:10%;height:27%;aspect-ratio:1;min-height:48px;min-width:48px;padding:0;border:none;background:transparent;pointer-events:auto}
#park-friends button:first-child {height:19%;bottom:12%;right:36%}
#park-friends button img:first-child {position:static;width:100%;height:100%;object-fit:contain}
@media(max-width:600px) {
  #park-friends button {right:12%;bottom:39%;height:28%}
  #park-friends button:first-child {right:35%;bottom:40%;height:19%}
}

#choose-walk {display:flex;align-items:center;gap:5px;margin:3px 12px 0 auto;padding:0 8px;min-height:44px;background:transparent;border:0;color:#506951;font-weight:700}
#choose-walk img {width:24px;height:28px;object-fit:contain}
#choose-walk[hidden] {display:none}
