/* Automatically playing object-to-atoms adventure. */
.workspace:has(#closer-stage:not([hidden])){background:radial-gradient(ellipse at 50% 42%,#fffbea,#deeffb 70%);gap:12px}
#closer-stage{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:9px;min-height:0;flex:1;width:100%;padding:0}
#closer-stage .zoom-trail{position:static;justify-content:center;gap:10px;font-size:13px}
#closer-stage .zoom-trail span{background:#ffffff85;border:2px solid transparent;color:#628498;padding:7px 13px}
#closer-stage .zoom-trail span.active{background:#fff0b9;border-color:#efbf58;color:#254d70;box-shadow:0 3px 0 #e8c96d}
#closer-stage .zoom-trail span.active:before{content:'★ ';color:#ca8b12}
#closer-stage #object-art{width:100%;height:100%;min-height:0;max-width:none;display:flex;align-items:center;justify-content:center}
#closer-stage #object-art svg{display:block;width:100%;height:100%;max-height:none;overflow:visible}
#closer-stage .scene-badge{position:static;justify-self:center;font-size:13px;line-height:1.4;text-align:center;padding:5px 16px;color:#396781;background:#ffffffd9}
.journey-controls{display:flex;align-items:center;justify-content:center;gap:8px;min-height:34px;flex-wrap:wrap}
.journey-controls>span{font-size:12px;color:#567b94;margin-right:auto}
.journey-controls button{font-size:12px;min-height:32px;padding:5px 12px;border-radius:20px;border:1px solid #a7c8df;background:#fff;color:#315f83}
.journey-controls button:hover{background:#e5f6ff}
#closer-controls .object-options button{border-radius:15px;background:#fff;border:2px solid #d2e2ec}
#closer-controls .object-options button[aria-pressed=true]{border-color:#49a2d0;background:#e9f7ff;box-shadow:0 3px 0 #b2dced}
#closer-controls .small-note{padding:10px 12px;border-radius:12px;background:#fff7da;line-height:1.5;color:#7a6b46}
.tiny-world-art .stage-reveal{transform-box:fill-box;transform-origin:center;animation:tiny-reveal .7s ease-out both}
.tiny-world-art .object-bob{animation:tiny-float 3.5s ease-in-out infinite}
.tiny-world-art .atom-float{animation:tiny-float 3s ease-in-out infinite}
.tiny-world-art .lens-pulse{animation:lens-glow 2.5s ease-in-out infinite}
.journey-paused #object-art .object-bob,.journey-paused #object-art .atom-float,.journey-paused #object-art .lens-pulse{animation-play-state:paused!important}
@keyframes tiny-reveal{from{opacity:0;transform:scale(.88)}to{opacity:1;transform:scale(1)}}
@keyframes tiny-float{50%{translate:0 -7px}}
@keyframes lens-glow{50%{opacity:.3}}
@media(min-width:801px){.workspace:has(#closer-stage:not([hidden])){height:100dvh;min-height:0;overflow:hidden;padding:18px 24px}.workspace:has(#closer-stage:not([hidden])) .stage-header{flex:none}.workspace:has(#closer-stage:not([hidden])) .stage-header h2{font-size:26px}.workspace:has(#closer-stage:not([hidden])) .stage-header p:last-child{font-size:14px}.workspace:has(#closer-stage:not([hidden])) .discovery-card{flex:none;min-height:0;padding:12px 16px}.workspace:has(#closer-stage:not([hidden])) .discovery-card h3{font-size:19px;margin:3px 0}.workspace:has(#closer-stage:not([hidden])) .discovery-card p:not(.eyebrow){font-size:14px;line-height:1.4}}
@media(max-width:800px){#closer-stage{height:430px;min-height:430px;flex:none;gap:7px}#closer-stage .zoom-trail{gap:4px;font-size:11px}#closer-stage .zoom-trail span{padding:5px 7px}.journey-controls>span{flex-basis:100%;text-align:center;margin:0}.workspace:has(#closer-stage:not([hidden])){gap:14px}#closer-stage .scene-badge{font-size:12px}}
@media(prefers-reduced-motion:reduce){.tiny-world-art *{animation:none!important}}

/* Reuse the scene artwork so the toy selector shows the same two-stud block. */
.object-options .object-icon{display:block;width:46px;height:37px;flex-shrink:0}.object-icon svg{display:block;width:100%;height:100%}
@media(max-width:800px){.object-options .object-icon{width:37px;height:29px}}

/* A quiet storybook sky, with decoration kept around the learning area. */
#lab .workspace{background:#eaf5ff url('assets/kids-sky.svg') center top / cover no-repeat}
#lab .stage-header h2{color:#245779}
#lab .stage-header .eyebrow{color:#527695}
#lab .discovery-card{border:2px solid #fff;border-radius:22px;box-shadow:0 7px 0 #cadfeb66,0 12px 25px #4674940c}
#lab .sidebar{border-right:4px solid #c4e4f5;background-color:#fcfeff;background-image:linear-gradient(90deg,transparent 26px,#f1c0ce 27px,#f1c0ce 28px,transparent 29px),repeating-linear-gradient(transparent 0,transparent 43px,#dceaf6 44px,transparent 45px)}
#lab .side-tip{background:#edf5ff;border-color:#a4c7e6;border-radius:0 12px 12px 0;color:#527594}
#closer-stage #object-art>svg{filter:drop-shadow(0 7px 0 #b9d8ef40)}
@media(max-width:800px){#lab .sidebar{border-right:0;border-bottom:4px solid #c4e4f5}}

/* The parts and builder desks share the same playful science setting. */
#atom-stage{margin:18px 0 16px;padding:18px 14px 8px;border:3px solid #fff;border-radius:30px;background:radial-gradient(circle at 51% 48%,#fffdf2 0%,#edf8ff 43%,#cdeafa 100%);box-shadow:0 7px 0 #c1dceb66;isolation:isolate}
#atom-stage:before{content:"";position:absolute;inset:0;border-radius:27px;z-index:-1;pointer-events:none;opacity:.7;background:radial-gradient(circle at 92% 62%,#ffcd7c 0 5px,transparent 6px),radial-gradient(circle at 8% 77%,#a4cfed 0 5px,transparent 6px),radial-gradient(circle at 82% 84%,#c2b3e6 0 4px,transparent 5px),radial-gradient(ellipse 50px 18px at 87% 11%,#fff 96%,transparent 100%),radial-gradient(ellipse 26px 26px at 86% 7%,#fff 96%,transparent 100%)}
#atom-stage .atom-card{left:14px;top:16px;border:2px solid #fff;background:#ffffffed;border-radius:20px;box-shadow:0 5px 0 #bad9eb55;padding:12px;max-width:165px}
#atom-stage .atom-card small{color:#617c94;background:#fff1c8;padding:4px 7px;border-radius:20px;letter-spacing:.7px}
#atom-stage .atom-card>b{color:#3277a3}
#atom-stage .atom-card strong{color:#326a91}
#atom-stage .motion-button{right:12px;top:16px;background:#fff;border-color:#adcde1;color:#3b6988;border-radius:15px}
#atom-stage .count-strip span{border:1px solid #fff;box-shadow:0 3px 0 #bfd4e844}
#atom-stage .count-strip span:nth-child(1){background:#fff0e9;color:#975342}
#atom-stage .count-strip span:nth-child(2){background:#e6f2ff;color:#35668f}
#atom-stage .count-strip span:nth-child(3){background:#fff5cd;color:#796021}
#atom-stage .model-note{color:#58768b}
#lab .atom-examples{background:#f2effbcc;border:2px solid #fff;border-radius:22px}
#lab .examples-heading h3{color:#58648a}
#lab .example-card{border:1px solid #e4eaf4;border-radius:16px}
#lab .example-card svg{background:#eaf6ff}
#lab .example-card:nth-child(2) svg{background:#fff5db}
@media(max-width:1100px){#atom-stage .atom-card{padding:8px;left:10px;max-width:140px}#atom-stage .atom-card small{font-size:7px;padding:4px}#atom-stage .atom-card>b{font-size:33px}#atom-stage .atom-card strong{font-size:13px}}
@media(max-width:500px){#atom-stage{padding:12px 6px 8px;border-radius:23px}#atom-stage .atom-card{left:7px;top:10px;max-width:112px}#atom-stage .atom-card small{font-size:6px}#atom-stage .motion-button{top:10px;right:7px}#atom-stage .count-strip{flex-wrap:wrap;justify-content:center}}
#atom-stage{min-height:385px}#atom-stage .count-strip{flex-shrink:0;margin-top:0}#atom-stage .model-note{flex-shrink:0;margin:7px 0 3px}#atom-stage .atom-picture{min-height:0}
