/* A few toys laid directly on the painted lawn. The pet and the collectible stay in view together. */
#game .lawn-play[hidden] { display:none!important }
#game .lawn-play { position:absolute;inset:0;z-index:4;pointer-events:none;isolation:isolate;--lawn-ink:#25483a;--lawn-gold:#ba7d29;--lawn-paper:#fbf3df }
#game[data-garden-play] .garden-dock,#game[data-garden-play] .courtyard-heading,#game[data-garden-play] .scene-hotspots { display:none!important }
#game[data-garden-play] .hud { z-index:5;pointer-events:none }
#game[data-garden-play] .hud .top { pointer-events:none }
#game[data-garden-play] .hud-icon[data-menu=pause] { pointer-events:auto }
#game[data-garden-play=result] .lawn-play {pointer-events:auto}
#game[data-garden-play=result] .hud-icon[data-menu=pause] {visibility:hidden;pointer-events:none}
#game .lawn-play-field { position:absolute;inset:0;overflow:hidden;pointer-events:auto;touch-action:pan-y }
#game button.lawn-lure { position:absolute!important;inset:0 auto auto 0;display:grid;place-items:center;box-sizing:border-box;width:64px;height:64px;min-width:60px;min-height:60px;
  margin:0;padding:0;border:0!important;border-radius:50%;background:transparent!important;box-shadow:none!important;color:#875822;opacity:1;
  pointer-events:auto;touch-action:manipulation;-webkit-tap-highlight-color:transparent }
#game button.lawn-lure[hidden] {display:none}
#game .lawn-lure:focus-visible { outline:3px solid #184c40;outline-offset:1px }
.lawn-lure .lawn-shadow {position:absolute;bottom:12px;width:38px;height:8px;border-radius:50%;background:#24412f68;filter:blur(2px)}
.lawn-prop {position:relative;display:block;width:32px;height:35px;transform-origin:50% 21%;filter:drop-shadow(1px 2px 1px #59452979)}
.lawn-lure .lawn-glint {position:absolute;left:7px;top:6px;font:700 16px/1 Georgia,serif;color:#fff8cd;text-shadow:0 1px 3px #81591e}
.lawn-lure.chime-seed .lawn-prop {background:linear-gradient(105deg,#fff0af 8%,#ecc363 44%,#a46e27 92%);border-radius:50% 46% 38% 33%;height:25px;width:24px;border:1px solid #8b672e}
.lawn-lure.chime-seed .lawn-prop::before {content:"";position:absolute;top:-11px;left:14px;width:17px;height:10px;border-radius:100% 0 100% 0;background:linear-gradient(150deg,#98b76c,#387955);border:1px solid #4c7457;transform:rotate(-13deg)}
.lawn-lure.chime-seed .lawn-prop i {position:absolute;left:9px;bottom:-6px;width:6px;height:6px;background:#8d591f;border-radius:50%}
.lawn-lure.chime-seed .lawn-prop b {position:absolute;bottom:1px;left:-2px;right:-2px;height:5px;border-radius:45%;background:#e7b65c;border:1px solid #956b34}
.lawn-feather-art {width:48px;height:48px;pointer-events:none}
@media (prefers-reduced-motion:no-preference) {
  #game:not([data-reduce-motion=true]) .lawn-play[data-phase=find] .lawn-feather-art {
    transform-origin:50% 79%; animation:feather-settle .48s ease-out both;
  }
  @keyframes feather-settle {
    from {transform:translateY(-3px) rotate(-8deg)}
    55% {transform:translateY(1px) rotate(3deg)}
    to {transform:translateY(0) rotate(0)}
  }
}
#game .lawn-play[data-feather-flight=true] .cloud-plume {visibility:hidden}
.lawn-lure.moon-amber .lawn-prop {width:38px;height:33px;background:radial-gradient(ellipse at center,#fffac6 5%,#ffcd58a8 32%,#ecd77b00 73%)}
.lawn-lure.moon-amber .lawn-prop::before,.lawn-lure.moon-amber .lawn-prop::after {content:"";position:absolute;width:11px;height:22px;bottom:0;border-radius:90% 2%;background:linear-gradient(30deg,#356147,#83ad6c);border:1px solid #567342;transform:rotate(-33deg)}
.lawn-lure.moon-amber .lawn-prop::before {left:6px}.lawn-lure.moon-amber .lawn-prop::after {right:5px;transform:rotate(24deg)}
.lawn-lure.moon-amber .lawn-prop b {position:absolute;inset:10px auto auto 17px;width:7px;height:7px;border-radius:50%;background:#fff6a3;box-shadow:0 0 6px 3px #efcc66}
.lawn-play[data-phase=found] .lawn-lure .lawn-glint {color:#fff7c9;font-size:22px}
#game .lawn-play-bar {position:absolute;inset:auto max(9px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left));
 margin:0 auto;width:min(100% - 18px,420px);box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:59px;
 color:var(--lawn-ink);background:#fcf6e8f5;border:1px solid #ad9568;border-radius:8px 17px 8px 17px;padding:4px 5px 4px 12px;pointer-events:auto;box-shadow:0 3px 8px #253b3142}
.lawn-play-heading {display:flex;align-items:center;gap:6px}.lawn-play-heading strong {font:750 16px/1.3 var(--guide-serif,serif)}
.lawn-play-heading small {font:600 11px/1 system-ui;color:#536451}
.lawn-dots {display:flex;gap:3px;margin-inline-start:2px}.lawn-dots i {width:6px;height:6px;border:1px solid #838a6c;transform:rotate(45deg);background:transparent}
.lawn-dots i.found {border-color:#956225;background:#c89341}
.lawn-play-bar p {margin:1px 0 0;font:550 12px/1.4 system-ui}
#game .lawn-play-bar button,#game .lawn-receipt-actions button,#game .lawn-close {min-height:44px;min-width:44px;touch-action:manipulation;line-height:1.35}
#game .lawn-play-bar button {flex:0 0 auto;border:1px solid #c4b68e;border-radius:8px;background:#f5ecd6!important;padding:0 9px;color:#375346;font-size:13px}
#game .lawn-receipt {position:absolute;inset:auto max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
 box-sizing:border-box;display:grid;grid-template-columns:clamp(65px,17vw,100px) minmax(0,1fr);align-items:center;gap:9px;max-width:425px;max-height:58%;overflow:auto;overscroll-behavior:contain;margin:0 auto;padding:13px 12px 9px;
 color:var(--lawn-ink);background:#fbf3de;border:1px solid #9e8456;border-radius:10px 22px 9px 19px;box-shadow:0 3px 12px #39432d4a;pointer-events:auto}
.lawn-receipt img {width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:4px}
#game .lawn-receipt-copy {padding-right:23px}
#game .lawn-receipt h2 {font:750 20px/1.22 var(--guide-serif,serif);color:#24473a;margin:1px 0 3px}
#game .lawn-receipt small {font:650 11px/1.3 system-ui;color:#75613d}
#game .lawn-receipt-copy p {margin:0;font:500 13px/1.43 system-ui;color:#4d5246}
#game .lawn-prize {display:inline-block;color:#804b2a;font:700 12px/1.4 system-ui;margin-top:3px}
#game .lawn-close {position:absolute;top:0;right:0;border:0!important;border-radius:50%;background:transparent!important;box-shadow:none;color:#415542;font:400 23px/1 system-ui}
.lawn-receipt-actions {grid-column:1/-1;display:flex;flex-wrap:wrap;gap:5px}
#game .lawn-receipt-actions .keepsake-art-action {display:flex;align-items:center;justify-content:center;gap:6px}
#game .keepsake-art-action img {width:27px;height:27px;object-fit:contain;flex:none}
#game .lawn-receipt-actions button {flex:1;min-width:max-content;padding:3px 7px;border:1px solid #aa9872!important;border-radius:6px 10px;background:#f3e8cd!important;color:#355144;font:650 12px/1.3 system-ui}
#game .lawn-receipt-actions button:first-child {color:#fff5d6;background:#2a5143!important}
@media (max-height:480px) and (orientation:landscape) {
 #game .lawn-play-bar {margin-inline-start:auto;margin-inline-end:0;width:min(48vw,390px);min-height:49px;bottom:max(5px,env(safe-area-inset-bottom))}
 #game .lawn-receipt {margin-inline-start:auto;margin-inline-end:0;width:min(50vw,420px);max-height:82%}
}
@media(prefers-reduced-motion:no-preference){
 #game:not([data-reduce-motion=true]) .lawn-play[data-phase=find] .chime-seed .lawn-prop {animation:lawn-chime 1.9s ease-in-out infinite}
 #game:not([data-reduce-motion=true]) .lawn-play[data-phase=find] .moon-amber .lawn-prop b {animation:lawn-glow 1.75s ease-in-out infinite alternate}
 @keyframes lawn-chime {0%,60%,100%{transform:rotate(-5deg)}20%{transform:rotate(14deg)}36%{transform:rotate(-10deg)}}
 @keyframes lawn-glow {from{box-shadow:0 0 4px 2px #ecd177}to{box-shadow:0 0 10px 5px #f8d772}}
}

/* The footprint ring marks the actual tap target against both grass and stone. */
#game .lawn-lure::before {content:"";position:absolute;left:12px;bottom:7px;width:38px;height:12px;border:1px solid #fff1bc;border-radius:50%;background:#45633d32;box-shadow:0 1px 0 #4b573c97}
#game .lawn-play[data-phase=found] .lawn-lure::before {background:#ffde7738;border-color:#ffe4a0}
.lawn-lure.chime-seed .lawn-prop::after {content:"";position:absolute;inset:4px auto 4px 4px;width:3px;border-radius:50%;background:#ffeab3}

#game .lawn-play[data-phase=found] .lawn-prop {opacity:0}
@media(prefers-reduced-motion:no-preference){
 #game:not([data-reduce-motion=true]) .lawn-play[data-phase=found] .lawn-prop {animation:lawn-pickup .46s ease-in both}
 @keyframes lawn-pickup {0%,18%{transform:translateY(0) scale(1);opacity:1}55%{opacity:1}100%{transform:translateY(-31px) scale(.47);opacity:0}}
}

/* An illustrated trail guide opens over the courtyard, with the playfield still in sight. */
#game .lawn-play[data-phase=choose] {pointer-events:auto}
#game[data-garden-play=choosing] .hud-icon[data-menu=pause] {visibility:hidden;pointer-events:none}
#game .lawn-trails {position:absolute;inset:auto max(9px,env(safe-area-inset-right)) max(9px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left));box-sizing:border-box;max-width:448px;max-height:96%;overflow:auto;margin:auto;padding:8px 12px 12px;color:#243c32;background:linear-gradient(145deg,#fff8e8,#eee3c9);border-radius:20px 8px 17px 7px;box-shadow:0 3px 14px #263c3440}
#game .lawn-trails header {display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:44px}
#game .lawn-trails h2 {font:750 clamp(18px,4vw,24px)/1.2 var(--guide-serif,serif);margin:0;color:#244639}
#game .lawn-trails [data-lawn-leave] {min-height:44px;background:transparent!important;border:0!important;box-shadow:none!important;color:#3b5647;font:650 14px/1.3 system-ui;padding:0 6px}
#game .lawn-trail-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#game button.lawn-trail-pick {display:grid;justify-items:center;align-content:start;gap:3px;min-width:0;min-height:44px;padding:2px 1px 7px;touch-action:manipulation;border:0!important;border-radius:10px;background:transparent!important;box-shadow:none!important;color:#233e33}
#game .lawn-trail-pick img {width:min(100%,95px);height:auto;aspect-ratio:1;object-fit:contain;border-radius:14px 5px 13px 6px}
#game .lawn-trail-pick strong {font:750 16px/1.25 var(--guide-serif,serif);color:#233e33}
#game .lawn-trail-pick small {font:600 12px/1.3 system-ui;color:#53604a}
#game .lawn-trails button:focus-visible {outline:3px solid #17604e;outline-offset:-1px}
#game .lawn-trail-pick:active {transform:translateY(2px)}
#game .lawn-play:not([data-phase=find]) .lawn-play-bar [data-lawn-switch] {visibility:hidden;pointer-events:none}
#game .lawn-play-bar [data-lawn-switch] {background:transparent!important;border:0!important;box-shadow:none!important;padding-inline:4px}
@media (max-height:480px) and (orientation:landscape) {
 #game .lawn-trails {margin-inline:auto 0;width:min(68vw,420px);padding-bottom:5px}
 #game .lawn-trail-pick img {width:min(100%,64px)}
}

/* Painted field specimens move from the guide into the live search and the collection. */
#game .lawn-trails {
 isolation:isolate;padding:13px 14px 16px;background:none;border-radius:0;box-shadow:none;
}
#game .lawn-trails::before,#game .lawn-play-bar::before {
 content:"";position:absolute;inset:0;z-index:-1;border:12px solid transparent;
 background:#fbf3df;background-clip:padding-box;border-radius:13px;border-image:url("assets/postbook/field-page.webp") 55 fill / 17px;pointer-events:none;
}
#game .lawn-trail-pick .trail-specimen {position:relative;display:grid;place-items:center;width:100%;height:clamp(69px,19vw,95px)}
#game .lawn-trail-pick .trail-specimen::before {
 content:"";position:absolute;inset:8% 10%;border-radius:50%;
 background:radial-gradient(ellipse,#c4a26038,transparent 67%);transform:rotate(-16deg);
}
#game .lawn-trail-pick .trail-specimen img {position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;max-height:100%;border-radius:0;object-fit:contain;filter:drop-shadow(0 3px 2px #76522540)}
#game .lawn-trail-pick:is(:focus-visible,:active) .trail-specimen img {transform:translateY(-2px) rotate(-3deg)}
#game .lawn-trail-pick strong {font-size:clamp(16px,4vw,19px)}
#game .lawn-trail-pick small {color:#5c503d}
#game .lawn-play-bar {
 isolation:isolate;display:grid;grid-template-columns:37px minmax(0,1fr) auto auto;align-items:center;gap:4px;
 padding:9px 12px;border:0;border-radius:0;background:none;box-shadow:none;color:#284235;
}
#game .lawn-trail-instruction {min-width:0}
#game .lawn-play-heading {display:flex;align-items:center;flex-wrap:wrap;gap:3px 5px}
#game .lawn-trail-instruction p {color:#3f4b3e}
#game .lawn-play-bar .lawn-specimen {width:37px;height:44px;object-fit:contain;filter:drop-shadow(0 1px 1px #68572f50)}
#game .lawn-play-bar [data-lawn-leave],#game .lawn-play-bar [data-lawn-switch] {
 min-width:44px;min-height:44px;padding:0 3px;background:none!important;border:0!important;color:#315441;
 text-decoration:underline;text-underline-offset:3px;text-decoration-color:#ac9877;
}
#game .lawn-dots {display:inline-flex;gap:2px}
#game .lawn-dots i {display:grid;place-items:center;box-sizing:border-box;width:14px;height:14px;transform:none;border:1px dashed #8a8268;border-radius:50%;background:none}
#game .lawn-dots i.found {border:0;background:none}
#game .lawn-dots img {display:block;width:16px;height:16px;object-fit:contain}
#game .lawn-lure .lawn-object {width:51px;height:51px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 2px 2px #66532e88);transform-origin:50% 12%}
#game .lawn-play[data-phase=found] .lawn-object {opacity:0}
@media (orientation:landscape) and (max-height:479px) {
 #game .lawn-trails {padding:5px 14px 8px}
 #game .lawn-trail-pick .trail-specimen {height:57px}
 #game .lawn-play-bar {width:min(68vw,425px);padding-block:5px}
}
@media(prefers-reduced-motion:no-preference) {
 #game:not([data-reduce-motion=true]) .lawn-trail-pick .trail-specimen img {transition:transform .18s ease-out}
 #game:not([data-reduce-motion=true]) .lawn-play[data-phase=find] .chime-seed .lawn-object {animation:lawn-chime 2s ease-in-out infinite}
 #game:not([data-reduce-motion=true]) .lawn-play[data-phase=found] .lawn-object {animation:lawn-pickup .46s ease-in both}
 #game:not([data-reduce-motion=true]) .lawn-play[data-phase=found] .lawn-dots .fresh img {animation:lawn-stamp .32s ease-out both}
 @keyframes lawn-stamp {from{transform:scale(1.6) rotate(-15deg);opacity:.45}65%{transform:scale(.88) rotate(3deg)}to{transform:scale(1);opacity:1}}
}
