/* Illustrated Enrichment Box and its small, tactile puzzle board. */
#newActivityPanel:has(.enrich-workbench),#newActivityPanel:has(.enrich-explore-panel){background:linear-gradient(155deg,#fff1d8,#e6c99f);border-color:#9d744e}
.enrich-instruction{font-size:12px;line-height:1.45;margin:8px 1px 4px;color:#5d4831}
.enrich-workbench,.enrich-explore-panel{min-width:0}
.enrich-box-drop,.enrich-explore-art{position:relative;display:grid;place-items:center;min-height:165px;padding:5px 8px;border:1px solid #b4936a;border-radius:15px;background:radial-gradient(ellipse at 51% 66%,#f8e5bd 0%,#e4c69d 58%,#cba577 100%);box-shadow:inset 0 2px 10px #fff1d3,inset 0 -6px 12px #75503022;overflow:hidden}
.enrich-box-drop:before,.enrich-explore-art:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(125deg,transparent 0 9px,#73583908 10px 11px,transparent 12px 24px);pointer-events:none}
.enrich-box-drop{touch-action:none}
.enrich-box-art{position:relative;width:min(100%,340px);aspect-ratio:1.95;filter:drop-shadow(0 5px 5px #62422555)}
.enrich-box-painted{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.enrich-in-box{position:absolute;top:24%;left:38%;width:16%;height:27%;display:grid;place-items:center;filter:drop-shadow(0 2px 1px #25180d99);animation:enrichItemDrop .45s cubic-bezier(.2,.9,.3,1.2) both;animation-delay:calc(var(--item-index)*.08s)}
.enrich-in-box.item-toy{left:49%;top:23%;width:16%}.enrich-in-box.item-treat{left:59%;top:26%;width:13%}.enrich-in-box img{width:100%;height:100%;object-fit:contain}
.enrich-paper-art{display:block;width:34px;height:30px;max-width:100%;max-height:100%;background:linear-gradient(135deg,#fff7df 0 24%,#bba780 25% 29%,#f5ead2 30% 58%,#967d59 59% 63%,#e1ceaa 64%);filter:drop-shadow(0 2px 2px #6b553c88);clip-path:polygon(13% 4%,40% 17%,65% 0,86% 26%,100% 58%,83% 79%,66% 100%,40% 85%,15% 94%,0 59%);border-radius:42%;box-shadow:inset 2px 2px #fff8ed}
.enrich-supply-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:9px 0}
.enrich-supply{min-width:0;min-height:80px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:6px 3px;border:1px solid #b58f65;border-radius:11px;background:linear-gradient(#fff4df,#f1ddba);color:#294b37;box-shadow:0 2px 0 #ba996f;font:650 11px 'DM Sans',sans-serif;touch-action:none;cursor:grab}
.enrich-supply:active{cursor:grabbing}.enrich-supply.chosen{border:2px solid #315b43;background:#e3ead8;box-shadow:inset 0 0 0 2px #f8e8c9}
.enrich-supply img{width:48px;height:44px;object-fit:contain;filter:drop-shadow(0 2px 1px #61402a55)}.enrich-supply .enrich-paper-art{width:43px;height:39px;filter:drop-shadow(0 2px 1px #61402a55)}
.enrich-subhead{font:700 17px Fraunces,Georgia,serif;color:#31533c;margin:13px 1px 2px}.enrich-supply-row.obstacles{margin-top:5px}
.enrich-obstacle-art{position:relative;display:block;width:49px;height:39px;filter:drop-shadow(1px 2px 2px #4b342a65)}
.enrich-obstacle-art.rolls:before,.enrich-obstacle-art.rolls:after{content:'';position:absolute;width:17px;height:30px;top:4px;border-radius:6px;background:repeating-linear-gradient(90deg,#b68655 0 4px,#d9aa72 5px 9px,#a87347 10px 12px);border:2px solid #7a573c;transform:rotate(-24deg)}.enrich-obstacle-art.rolls:before{left:6px}.enrich-obstacle-art.rolls:after{left:27px;transform:rotate(22deg)}
.enrich-obstacle-art.tunnel:before{content:'';position:absolute;inset:7px 3px 2px;border:6px solid #8b6749;border-bottom:0;border-radius:28px 28px 2px 2px;background:radial-gradient(ellipse at 50% 95%,#372e27 12%,#66503d 85%);box-shadow:inset 0 3px #c49b65,0 2px #5d4939}.enrich-obstacle-art.tunnel:after{content:'';position:absolute;left:8px;right:8px;top:8px;height:4px;border-radius:50%;background:#e2bc82}
.enrich-obstacle-art.cushion:before{content:'';position:absolute;inset:7px 3px 4px;border-radius:42% 45% 35% 36%;border:2px solid #47614a;background:repeating-linear-gradient(45deg,#58765b 0 7px,#769474 8px 12px,#d9b47d 13px 15px);box-shadow:inset 0 3px 3px #e1d7ad9e,0 4px #344d3e}
.enrich-trail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;position:relative;margin-top:10px}
.enrich-trail:before{content:'';position:absolute;top:47%;left:8%;right:8%;border-top:2px dashed #aa865b;pointer-events:none}
.enrich-slot{position:relative;display:grid;place-items:center;gap:2px;min-width:0;min-height:76px;padding:6px 3px;border:2px dashed #b59066;border-radius:12px;background:#f9edda;color:#5a503e;font:600 10px 'DM Sans',sans-serif}.enrich-slot.filled{border-style:solid;border-color:#657b58;background:#e7e7d2}.enrich-slot-number{position:absolute;top:4px;left:5px;font-size:9px;color:#785c40}.enrich-slot .enrich-obstacle-art{width:38px;height:30px;transform:scale(.8);transform-origin:center}.enrich-slot-label{position:relative;z-index:1}.enrich-empty{font-size:20px;color:#b79b74;line-height:1}
.enrich-feedback{min-height:18px;font-size:11px;line-height:1.35;color:#5b4832;margin:10px 2px 4px}.enrich-start{width:100%;margin:4px 0 0!important;background:#31533d!important;color:#fff1da!important;font-size:14px!important}
.enrich-drag-ghost{position:fixed;z-index:9999;display:grid;place-items:center;width:66px;height:66px;transform:translate(-50%,-50%) rotate(-8deg);border-radius:12px;background:#fff2d5df;box-shadow:0 6px 20px #2c1d1380;pointer-events:none}.enrich-drag-ghost img{width:55px;height:55px;object-fit:contain}.enrich-drag-ghost span:last-child:not(.enrich-paper-art):not(.enrich-obstacle-art){display:none}
.enrich-progress{display:flex;gap:4px;flex-wrap:wrap;margin:4px 0 8px}.enrich-progress span{border-radius:12px;border:1px dashed #b4956e;padding:4px 7px;background:#ead9bc;color:#7a664d;font-size:10px}.enrich-progress span.found{border-style:solid;border-color:#6f8d66;background:#e4ebd7;color:#244532}
.enrich-explore-art .enrich-box-art{animation:enrichBoxRustle 3s ease-in-out infinite}.enrich-scene-hint{position:absolute;bottom:4px;left:4px;right:4px;text-align:center;font-size:10px;color:#5c432e}
#enrichmentScene{position:absolute;z-index:7;left:47%;bottom:10%;width:20%;min-width:84px;max-width:150px;aspect-ratio:1.85;padding:0;border:0;background:none;filter:drop-shadow(1px 4px 3px #34271c88);cursor:pointer;touch-action:manipulation;animation:enrichBoxRustle 3s ease-in-out infinite}
#enrichmentScene img{width:100%;height:100%;object-fit:contain}.enrich-scene-surprise{position:absolute;left:35%;top:5%;width:30%;height:50%;display:grid;place-items:center;pointer-events:none}.enrich-scene-surprise img{object-fit:contain}.enrich-scene-count{position:absolute;right:-2px;bottom:0;border-radius:10px;background:#294a37;color:#fff0d4;padding:2px 5px;font-size:10px;line-height:1}
#enrichmentScene.discovered .enrich-scene-surprise{animation:enrichFind 1.2s ease-out both}
#world.enrich-investigating .petwrap{animation:enrichMapleSniff 3.4s ease-in-out infinite}
#world.enrich-discovering .petwrap{animation:enrichMapleFind 1.25s ease-out}
@keyframes enrichItemDrop{from{opacity:0;transform:translateY(-28px) rotate(-12deg) scale(.7)}to{opacity:1;transform:translateY(0) rotate(0) scale(1)}}
@keyframes enrichBoxRustle{0%,50%,100%{transform:rotate(0)}54%,62%{transform:rotate(-2deg)}58%,66%{transform:rotate(2deg)}}
@keyframes enrichFind{0%{transform:translateY(8px) scale(.3);opacity:0}40%{opacity:1}100%{transform:translateY(-26px) scale(1.1);opacity:0}}
@keyframes enrichMapleSniff{0%,100%{transform:translateX(0)}45%,70%{transform:translateX(3%) translateY(1%)}55%{transform:translateX(4%) translateY(2%)}}
@keyframes enrichMapleFind{35%{transform:translateX(8%) scale(1.025)}70%{transform:translateX(6%) rotate(1deg)}100%{transform:translateX(0)}}
@media(max-width:390px){.enrich-box-drop{min-height:135px}.enrich-supply{font-size:10px;min-height:72px}.enrich-supply img{width:40px;height:38px}#enrichmentScene{left:47%;bottom:12%;width:22%}}
html.motion-off .enrich-box-art,html.motion-off #enrichmentScene,html.motion-off #world.enrich-investigating .petwrap,html.motion-off #world.enrich-discovering .petwrap{animation:none!important}
