.playful-activity{width:100%;max-width:560px;box-sizing:border-box;padding:20px 22px 18px;border-radius:18px;background:#fffdf2;color:#304b37}
.playful-scene-wrap{position:relative;height:132px;margin:-4px -8px 8px;border-radius:14px;background:linear-gradient(#e9efd5,#fff7d9);overflow:hidden}.playful-scene{display:block;width:100%;height:100%}
.playful-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.playful-eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:700;color:#576949}.playful-read{width:48px;min-width:48px;min-height:48px;border:1px solid #cbd8ba;border-radius:50%;background:#eef2de;color:#537549}.playful-read svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.playful-read:focus-visible,.playful-step:focus-visible,.playful-replay:focus-visible{outline:3px solid #d39036;outline-offset:3px}
.playful-instruction{margin:10px 0 5px;color:#4e664c;font-size:15px;line-height:1.45}.playful-progress{margin:0 0 12px;color:#576949;font-size:12px;font-weight:700;letter-spacing:.4px}.playful-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.playful-step{position:relative;display:flex;min-height:124px;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:8px 6px;border:2px solid #d5dfc5;border-radius:12px;background:#fffef7;color:#38583b;transition:transform .16s,background .16s,border-color .16s}.playful-step:hover{transform:translateY(-2px);border-color:#96ad7c}.playful-step--done{border-color:#668c55;background:#f4f4cf;box-shadow:0 0 0 3px #e4eacb}.playful-art{display:flex;width:100%;height:76px;align-items:center;justify-content:center}.playful-art svg{display:block;width:92px;height:76px}.playful-step--done .playful-art{animation:playful-pop .34s ease-out}.playful-step-label{font-size:13px;font-weight:700}.playful-check{position:absolute;right:6px;top:6px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#668c55;color:#fffbe3;font-size:14px}.playful-step:not(.playful-step--done) .playful-check{display:none}.playful-status{min-height:24px;margin:14px 0 6px;text-align:center;color:#526748;font-size:14px}.playful-stamp{width:max-content;margin:2px auto 7px;border-radius:8px;padding:10px 16px;color:#8a6934;background:#f7e7ac;transform:rotate(-2deg);font-size:14px;font-weight:700}.playful-replay{display:block;min-height:48px;margin:0 auto;border:0;border-radius:8px;padding:10px 16px;background:#ead08a;color:#4d5a38;font-weight:700}.playful-read:hover,.playful-replay:hover{filter:brightness(1.03)}
.playful-serving{position:absolute;right:32px;bottom:8px;width:180px;height:66px;border-radius:50%;background:#c89d5c;border:6px solid #9b703e;box-shadow:inset 0 -8px #7e5b3928}.playful-serving--plate{background:#f5e9bd;border-color:#c89b61}.playful-serving-slots{display:flex;height:100%;align-items:center;justify-content:center;gap:0}.playful-serving-slot{display:grid;place-items:center;width:54px;height:58px}.playful-serving-slot svg{width:56px;height:50px}.playful-ghost-art{opacity:.24;filter:grayscale(1)}.playful-serving-slot--filled{animation:playful-pop .34s ease-out}
/* Authored world palettes keep the interaction familiar while making the
   place visible at a glance. The legacy card keeps its original colors. */
.playful-activity--beach{--play-bg:#fffaf0;--play-ink:#315563;--play-soft:#d7edf0;--play-border:#acd5d4;background:var(--play-bg);color:var(--play-ink)}
.playful-activity--winter{--play-bg:#f7fbfa;--play-ink:#35546a;--play-soft:#e5f0f0;--play-border:#b8d4dc;background:var(--play-bg);color:var(--play-ink)}
.playful-activity--farm{--play-bg:#fff9e9;--play-ink:#5d513b;--play-soft:#f2e1b8;--play-border:#d5b66e;background:var(--play-bg);color:var(--play-ink)}
.playful-activity--garden{--play-bg:#fbfff1;--play-ink:#3e5c42;--play-soft:#e3efd0;--play-border:#b5cf91;background:var(--play-bg);color:var(--play-ink)}
.playful-activity--town{--play-bg:#fff8f0;--play-ink:#5a4b43;--play-soft:#f1dfd0;--play-border:#d7a28c;background:var(--play-bg);color:var(--play-ink)}
.playful-activity--woodland{--play-bg:#f8fbea;--play-ink:#38583b;--play-soft:#e0ebd1;--play-border:#b4ca91;background:var(--play-bg);color:var(--play-ink)}
.playful-activity--beach .playful-scene-wrap,.playful-activity--winter .playful-scene-wrap,.playful-activity--farm .playful-scene-wrap,.playful-activity--garden .playful-scene-wrap,.playful-activity--town .playful-scene-wrap,.playful-activity--woodland .playful-scene-wrap{background:var(--play-soft)}
.playful-activity--beach .playful-step,.playful-activity--winter .playful-step,.playful-activity--farm .playful-step,.playful-activity--garden .playful-step,.playful-activity--town .playful-step,.playful-activity--woodland .playful-step{border-color:var(--play-border);background:#fffef7}
.playful-activity--beach .playful-instruction,.playful-activity--winter .playful-instruction,.playful-activity--farm .playful-instruction,.playful-activity--garden .playful-instruction,.playful-activity--town .playful-instruction,.playful-activity--woodland .playful-instruction,.playful-activity--beach .playful-status,.playful-activity--winter .playful-status,.playful-activity--farm .playful-status,.playful-activity--garden .playful-status,.playful-activity--town .playful-status,.playful-activity--woodland .playful-status{color:var(--play-ink)}
.playful-scene--beach,.playful-scene--winter,.playful-scene--farm,.playful-scene--garden,.playful-scene--town,.playful-scene--woodland{border-radius:12px}
@keyframes playful-pop{0%{transform:scale(.88);opacity:.6}70%{transform:scale(1.06)}100%{transform:scale(1);opacity:1}}
@media(max-width:420px){.playful-activity{padding:15px 14px 14px}.playful-scene-wrap{height:108px}.playful-instruction{font-size:14px}.playful-steps{gap:6px}.playful-step{min-height:112px;padding-inline:3px}.playful-art{height:65px}.playful-art svg{width:76px;height:65px}.playful-step-label{font-size:12px}.playful-serving{right:14px;transform:scale(.82);transform-origin:right bottom}}
@media(max-height:600px) and (orientation:landscape){.playful-activity{padding:10px 16px}.playful-scene-wrap{height:82px;margin-bottom:4px}.playful-instruction{margin:5px 0 2px}.playful-progress{margin-bottom:5px}.playful-step{min-height:92px}.playful-art{height:48px}.playful-art svg{height:48px}.playful-status{margin:6px 0}.playful-replay{min-height:44px}}
@media(prefers-reduced-motion:reduce){.playful-step{transition:none}.playful-step:hover{transform:none}.playful-step--done .playful-art,.playful-serving-slot--filled{animation:none}}
body.reduced-motion .playful-step,body.reduced-motion .playful-step--done .playful-art,body.reduced-motion .playful-serving-slot--filled,body.calm-motion .playful-step,body.calm-motion .playful-step--done .playful-art,body.calm-motion .playful-serving-slot--filled{transition:none;animation:none}body.reduced-motion .playful-step:hover,body.calm-motion .playful-step:hover{transform:none}

.playful-keepsake{text-align:center;color:#526748;font-size:14px;font-weight:700}.playful-dialog #dialog-content{padding-bottom:4px}.playful-dialog .playful-activity{margin-inline:auto}
/* The close button and return button stay in view even on a small phone. */
.dialog-card.playful-dialog{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:auto auto minmax(0,1fr) auto;gap:8px;max-height:100%;overflow:hidden}
.playful-dialog>#dialog-eyebrow{grid-column:1;grid-row:1;align-self:center}
.playful-dialog>#dialog-close{position:static;grid-column:2;grid-row:1;justify-self:end;margin:0}
.playful-dialog>#dialog-title{grid-column:1;grid-row:2;margin:0 0 6px}
.playful-dialog>#dialog-hear{grid-column:2;grid-row:2;float:none;align-self:center;margin:0}
.playful-dialog>#dialog-content{grid-column:1/-1;grid-row:3;overflow:auto;min-height:0;overscroll-behavior:contain}
.playful-dialog>#dialog-action{grid-column:1/-1;grid-row:4;margin-top:0;min-height:48px}
.playful-dialog>.speech-stop{grid-column:1;grid-row:2;max-width:100%;margin:0;align-self:center}
.playful-dialog:has(>.speech-stop:not([hidden]))>#dialog-title{visibility:hidden}
@media(max-width:600px){.dialog-card.playful-dialog{padding:12px;gap:5px}.playful-dialog>#dialog-title{font-size:25px}.playful-activity{padding:4px 5px 10px}.playful-dialog .playful-scene-wrap{height:90px;margin:0 0 4px}.playful-dialog .playful-heading{min-height:44px}.playful-dialog .playful-instruction{font-size:15px;margin:4px 0}.playful-dialog .playful-status{font-size:14px}}
@media(max-height:400px) and (orientation:landscape){.dialog-card.playful-dialog{grid-template-columns:minmax(0,1fr) 44px 44px;grid-template-rows:auto minmax(0,1fr) auto;padding:8px 12px}.playful-dialog>#dialog-eyebrow{display:none}.playful-dialog>#dialog-title,.playful-dialog>.speech-stop{grid-column:1;grid-row:1;font-size:23px;align-self:center}.playful-dialog>#dialog-hear{grid-column:2;grid-row:1}.playful-dialog>#dialog-close{grid-column:3;grid-row:1}.playful-dialog>#dialog-content{grid-row:2}.playful-dialog>#dialog-action{grid-row:3}}
@media(max-width:600px){body.driving .quest.compact .compact-why,body.driving .quest.compact .compact-meter,body.driving .quest.compact #compact-progress,body.driving .quest.compact .mission-actions{display:none}body.driving .quest.compact{padding-bottom:12px}}
@media(max-width:600px) and (max-height:400px) and (orientation:landscape){
 body.driving .quest.compact{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:4px;padding:8px;width:274px}
 body.driving .quest.compact>.eyebrow,body.driving .quest.compact #compact-icon{display:none}
 body.driving .quest.compact .compact-mission{grid-column:1;grid-row:1;display:block;margin:0;align-self:center}
 body.driving .quest.compact #compact-step{font-size:12px;line-height:1.25}
 body.driving .quest.compact #mission-hear{position:static;grid-column:2;grid-row:1}
 body.driving .quest.compact #quest-toggle{position:static;grid-column:3;grid-row:1}
 body.driving .car-controls{bottom:8px;left:50%;width:auto;gap:5px;padding:4px 8px;transform:translateX(-50%)}
 body.driving .car-controls>span{display:none}
 body.driving .camera-toolbar,body.driving .camera-toolbar.playing-only{left:14px;bottom:78px;transform:none;width:auto}
 body.driving .camera-toolbar #inventory-button,body.driving .camera-toolbar #journal-button,body.driving #touch-interact{display:none}
 body.driving .bottom-hud{right:14px;bottom:78px}
}
@media(max-width:600px) and (min-height:401px) and (max-height:700px){
 .dialog-card.playful-dialog{grid-template-columns:minmax(0,1fr) 44px 44px;grid-template-rows:auto minmax(0,1fr) auto}
 .playful-dialog>#dialog-eyebrow{display:none}
 .playful-dialog>#dialog-title,.playful-dialog>.speech-stop{grid-column:1;grid-row:1;font-size:23px;align-self:center}
 .playful-dialog>#dialog-hear{grid-column:2;grid-row:1}.playful-dialog>#dialog-close{grid-column:3;grid-row:1}
 .playful-dialog>#dialog-content{grid-row:2}.playful-dialog>#dialog-action{grid-row:3}
 .playful-dialog .playful-scene-wrap{height:76px}
 .playful-dialog .playful-heading{float:right;margin-left:6px;min-height:44px}
 .playful-dialog .playful-eyebrow{display:none}.playful-dialog .playful-instruction{min-height:44px}
 .playful-dialog .playful-progress{clear:right;margin-bottom:8px}
 .playful-dialog .playful-step{min-height:100px}.playful-dialog .playful-art,.playful-dialog .playful-art svg{height:58px}
}

.playful-progress-row{display:flex;align-items:center;gap:8px;clear:both;margin:0 0 8px;min-height:44px}.playful-progress-row .playful-progress{margin:0}.playful-progress-row .playful-stamp{margin:0;padding:2px 8px;font-size:25px}.playful-progress-row .playful-replay{margin:0 0 0 auto;min-height:44px;padding:8px 12px;font-size:13px}.playful-dialog .playful-progress-row .playful-progress{margin:0}
/* On the narrowest short phone, parking sits beside the view control. */
@media(max-width:360px) and (max-height:650px){body.driving .car-controls{left:14px;transform:none;width:auto;max-width:calc(100% - 96px)}body.driving .car-controls>span{display:none}}
.playful-replay{scroll-margin-block:8px}

/* Keep the three food buttons and their labels in the first view of a play
   card. The dialog owns scrolling on shorter screens, while its close and
   return controls stay in the fixed dialog grid. */
.playful-dialog .playful-scene-wrap{height:100px;margin:-2px -4px 5px}
.playful-dialog .playful-step{min-height:102px;padding:5px 4px}
.playful-dialog .playful-art{height:58px}
.playful-dialog .playful-art svg{width:78px;height:58px}
.playful-dialog .playful-status{margin:8px 0 4px;min-height:20px}
@media(max-width:600px){
 .playful-dialog .playful-scene-wrap{height:76px;margin:0 0 3px}
 .playful-dialog .playful-step{min-height:90px;padding:4px 3px}
 .playful-dialog .playful-art{height:50px}
 .playful-dialog .playful-art svg{width:68px;height:50px}
 .playful-dialog .playful-step-label{font-size:11px}
 .playful-dialog .playful-status{margin:6px 0 2px;min-height:20px}
}
@media(max-height:400px) and (orientation:landscape){
    .playful-dialog .playful-scene-wrap{height:64px}
    .playful-dialog .playful-step{min-height:86px}
    .playful-dialog .playful-art,.playful-dialog .playful-art svg{height:46px}
   }

/* Touch pointers can keep :hover latched after a tap. Removing that lift keeps
   the next picture button's hit box stable while focus moves to it. */
@media (hover:none), (pointer:coarse){
 .playful-step:hover{transform:none}
}
