/* V23: low-resolution pixel scenes rendered natively; all motion finite. */
#modal .gg23-pixel{width:min(100%,390px);margin:8px auto 14px;border:1px solid #c7a28f;border-radius:12px;overflow:hidden;box-shadow:0 6px 16px #50304716}
.gg23-pixel svg{display:block;width:100%;height:auto;image-rendering:pixelated}
#modal[data-gg-opening=true].show .gg23-pixel{animation:gg23In .4s ease-out both}
#modal[data-gg-opening=true].show .gg23-twinkle{animation:gg23Twinkle 1.5s var(--d,0s) steps(3,end) 2}
#modal[data-gg-opening=true].show .gg23-cloud{animation:gg23Cloud 2.8s steps(14,end) both}
#modal[data-gg-opening=true].show .gg23-walk-a{animation:gg23WalkA 2s steps(16,end) both}
#modal[data-gg-opening=true].show .gg23-walk-b{animation:gg23WalkB 2s steps(16,end) both}
#modal[data-gg-opening=true].show .gg23-feet{animation:gg23Feet .25s steps(2,end) 6}
#modal[data-gg-opening=true].show .gg23-love{animation:gg23Love .9s .9s steps(5,end) both}
#modal[data-gg-opening=true].show .gg23-bus{animation:gg23Bus 2.6s steps(26,end) both}
#modal[data-gg-opening=true].show .gg23-wheel{animation:gg23Wheel .28s steps(2,end) 8}
#modal[data-gg-opening=true].show .gg23-flower{animation:gg23Flower 1.2s var(--d,0s) steps(5,end) 2;transform-origin:center;transform-box:fill-box}
#modal[data-gg-opening=true].show .gg23-paper{animation:gg23Paper 1.1s steps(9,end) both}
#modal[data-gg-opening=true].show .gg23-flap{animation:gg23Flap .5s steps(4,end) both}
#modal[data-gg-opening=true].show .gg23-firework{animation:gg23Twinkle .8s steps(3,end) 3}
.gg23-walk-a{transform:translateX(34px)}.gg23-walk-b{transform:translateX(-34px)}.gg23-bus{transform:translateX(67px)}.gg23-paper{transform:translateY(-10px)}.gg23-flap{opacity:0}
@keyframes gg23In{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes gg23Twinkle{0%,100%{opacity:1}50%{opacity:.3}}
@keyframes gg23Cloud{from{transform:translateX(-7px)}to{transform:translateX(6px)}}
@keyframes gg23WalkA{from{transform:translateX(0)}to{transform:translateX(34px)}}
@keyframes gg23WalkB{from{transform:translateX(0)}to{transform:translateX(-34px)}}
@keyframes gg23Feet{50%{transform:translateY(1px)}}
@keyframes gg23Love{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes gg23Bus{from{transform:translateX(0)}to{transform:translateX(67px)}}
@keyframes gg23Wheel{50%{opacity:.65}}
@keyframes gg23Flower{50%{transform:rotate(8deg)}}
@keyframes gg23Paper{from{transform:translateY(12px)}to{transform:translateY(-10px)}}
@keyframes gg23Flap{from{opacity:1}to{opacity:0}}
.gg23-note{margin:20px 0;padding:14px 16px;background:#fff8ef;border:1px solid #e5cabb;border-radius:13px;text-align:left}
.gg23-note summary{cursor:pointer;font:600 14px system-ui;color:#8d506b;padding:5px 0}
.gg23-note h3{font:normal 22px Georgia;color:#86536b;margin:14px 0 6px}
.gg23-note p{color:#76545b;font-size:14px;line-height:1.5}
.gg23-note textarea{width:100%;min-height:90px;padding:10px;border-radius:8px;border:1px solid #dcc0b1;font:15px/1.5 Georgia;resize:vertical}
body.sleeping #modal .gg23-pixel *{animation-play-state:paused!important}
body[data-gg-motion=soft] #modal .gg23-pixel *{animation-duration:.3s!important;animation-iteration-count:1!important;animation-delay:0s!important}
@media(prefers-reduced-motion:reduce){#modal .gg23-pixel *{animation:none!important;transition:none!important}}

/* V24: subject-specific short, stepped animation; static resting poses remain readable. */
#modal[data-gg-opening=true].show .gg24-beat{animation:gg24Beat .65s steps(5,end) 2;transform-box:fill-box;transform-origin:center}
#modal[data-gg-opening=true].show .gg24-wave,#modal[data-gg-opening=true].show .gg24-bob{animation:gg24Bob .7s steps(4,end) 2}
#modal[data-gg-opening=true].show .gg24-lift{animation:gg24Lift .9s steps(8,end) both}
#modal[data-gg-opening=true].show .gg24-rise{animation:gg24Rise 1.9s steps(16,end) both}
#modal[data-gg-opening=true].show .gg24-steam{animation:gg24Steam 1s steps(6,end) 3}
#modal[data-gg-opening=true].show .gg24-constellation{animation:gg24Constellation 1.6s steps(18,end) both;stroke-dasharray:170}
#modal[data-gg-opening=true].show .gg24-record{animation:gg24Record 2s steps(16,end) 1;transform-origin:center;transform-box:fill-box}
#modal[data-gg-opening=true].show .gg24-lid{animation:gg24Lid 1.1s steps(9,end) both}
#modal[data-gg-opening=true].show .gg24-card{animation:gg24Card .85s steps(7,end) both;transform-box:fill-box;transform-origin:center}
#modal[data-gg-opening=true].show .gg24-window{animation:gg24Window 1s steps(4,end) 2}
#modal[data-gg-opening=true].show .gg24-comet{animation:gg24Comet 1.45s steps(18,end) both}
#modal[data-gg-opening=true].show .gg24-route{animation:gg24Route 1.4s steps(14,end) both}
#modal[data-gg-opening=true].show .gg24-flame{animation:gg24Flame .45s steps(3,end) 5;transform-box:fill-box;transform-origin:center bottom}
#modal[data-gg-opening=true].show .gg24-delay-1{animation-delay:.18s}
#modal[data-gg-opening=true].show .gg24-delay-2{animation-delay:.36s}
@keyframes gg24Beat{50%{transform:scale(1.15)}}
@keyframes gg24Bob{50%{transform:translateY(-2px)}}
@keyframes gg24Lift{from{transform:translateY(8px);opacity:.3}to{transform:none;opacity:1}}
@keyframes gg24Rise{from{transform:translateY(0)}to{transform:translateY(-15px)}}
@keyframes gg24Steam{from{opacity:0;transform:translateY(3px)}50%{opacity:.8}to{opacity:0;transform:translateY(-6px)}}
@keyframes gg24Constellation{from{stroke-dashoffset:170}to{stroke-dashoffset:0}}
@keyframes gg24Record{to{transform:rotate(360deg)}}
@keyframes gg24Lid{from{transform:none}to{transform:translateY(-7px) rotate(-5deg)}}
@keyframes gg24Card{from{transform:scaleX(.08)}to{transform:scaleX(1)}}
@keyframes gg24Window{50%{opacity:.45}}
@keyframes gg24Comet{from{transform:translate(-25px,-10px);opacity:.25}to{transform:translate(47px,19px);opacity:1}}
@keyframes gg24Route{from{stroke-dashoffset:32}to{stroke-dashoffset:0}}
@keyframes gg24Flame{50%{transform:scale(.8,1.16)}}
#modal #gg24-replay-scene{display:block;border:0;background:transparent;color:#895268;font:12px system-ui;margin:-5px auto 10px;padding:8px 12px;cursor:pointer}
#modal #gg24-replay-scene[hidden]{display:none}
@media(prefers-reduced-motion:reduce){#modal #gg24-replay-scene{display:none}}
body[data-gg-motion=off] #modal #gg24-replay-scene{display:none}
body[data-gg-motion=soft] #modal .gg23-pixel *{animation-delay:0s!important;animation-duration:.3s!important;animation-iteration-count:1!important}

/* V26: the art rests after opening, with a little life while the letter is visible. */
#modal.show[data-gg-opening=true] .gg23-pixel .gg24-steam{animation-iteration-count:6}
#modal.show[data-gg-opening=true] .gg23-pixel .gg23-twinkle{animation-iteration-count:4}
#modal.show[data-gg-opening=true] .gg23-pixel .gg24-flame{animation-iteration-count:8}
body[data-gg-motion=off] #modal .gg23-pixel *{animation:none!important}

/* V27 — subtle finite character detail; original subject animation remains intact. */
#modal.show[data-gg-opening=true] .gg27-blink{animation:gg27Blink 2.8s steps(1,end) 2;transform-box:fill-box;transform-origin:center}
@keyframes gg27Blink{0%,93%,100%{opacity:1}95%,98%{opacity:.15}}
#modal.show[data-gg-opening=true] .gg23-pixel .gg23-cloud{animation:gg23Cloud 5s steps(24,end) 1 both}
#modal.show[data-gg-opening=true] .gg23-pixel .gg23-flower{animation-iteration-count:4}
#modal .gg23-pixel{width:min(100%,420px);border:2px solid #c7a28f}
