.tree-upwards .tree-world{width:4900px}
.tree-upwards .tree-node.ordinary{width:146px;height:128px;background-color:#f8e9c7;border-color:#836444;font-size:18px}
.tree-upwards .tree-node.ordinary.available{border-color:#368a7f}.tree-upwards .tree-node.ordinary.owned{border-color:#387f74;background-color:#d8e5c5;background-image:linear-gradient(#86bc8855,#86bc8855),url('./panel-paper-v4.webp')}
.ordinary-modal{width:min(880px,94%);max-height:calc(100% - 12px);display:flex;flex-direction:column;gap:8px;overflow:auto;box-sizing:border-box}
.ordinary-machine-body{display:flex;align-items:center;justify-content:center;gap:clamp(15px,4vw,50px);min-height:0;padding:8px}
.ordinary-machine-art{position:relative;flex:0 0 220px;height:235px;background:#ce8b44;border:5px solid #483427;border-radius:11% 7% 5% 8%;box-shadow:7px 7px 0 #543b2b55;rotate:-3deg}
.ordinary-machine-art:before,.ordinary-machine-art:after{content:'';position:absolute;width:65px;height:18px;top:-10px;background:#edc965b3;rotate:15deg;left:15px}.ordinary-machine-art:after{left:auto;right:6px;rotate:-22deg}
.machine-window{position:absolute;inset:15px 14px 72px;display:flex;justify-content:center;align-items:center;background:#d2e4d1;border:4px solid #483427;border-radius:16% 10% 20% 14%;overflow:hidden}.machine-window img{height:90px;width:90px;object-fit:contain}.machine-window span{position:absolute;font:70px PandaHand;color:#fff6cf;text-shadow:3px 3px #4b382d;right:2px;bottom:-5px}
.machine-slot{position:absolute;width:85px;height:32px;bottom:16px;left:18px;background:#614b36;border:4px solid #382e25;border-radius:35% 30% 5% 10%}.machine-knob{position:absolute;right:23px;bottom:15px;width:45px;height:45px;display:grid;place-items:center;border-radius:50%;background:#dfbd55;border:4px solid #483427;color:#fff0c6;font-size:25px}
.ordinary-pool{text-align:center;min-width:0}.ordinary-pool h2{margin:0 0 8px}.ordinary-pool-list{display:flex;justify-content:center;gap:15px}.ordinary-pool figure{margin:0 0 14px;display:flex;flex-direction:column;align-items:center;width:135px}.ordinary-pool img{width:90px;height:110px;object-fit:contain}.ordinary-pool figcaption{font:19px PandaHand}.ordinary-pool figcaption b{display:block;color:#347b76}
.capsule-stage{position:relative;display:grid;place-items:center;height:255px;flex:1 1 240px;min-height:160px;--capsule:#529ec5}.rare .capsule-stage{--capsule:#a16ad2}
.gacha-capsule{position:absolute;width:120px;height:120px;filter:drop-shadow(0 0 18px var(--capsule));animation:capsule-shiver 1.15s ease-in-out both!important}
.gacha-capsule i,.gacha-capsule b{display:block;position:absolute;inset:0 0 50%;border:4px solid #49382c;border-radius:70px 70px 0 0;background:var(--capsule);animation:capsule-top 1.4s ease-in-out both!important}
.gacha-capsule b{inset:50% 0 0;border-radius:0 0 70px 70px;background:#fff0cb;animation-name:capsule-bottom!important}
.gacha-prize{display:flex;flex-direction:column;align-items:center;opacity:0;animation:prize-emerge .5s cubic-bezier(.2,.8,.2,1) 1s forwards!important;font:26px PandaHand;color:#49382c;text-align:center}.gacha-prize img{width:175px;height:160px;object-fit:contain;filter:drop-shadow(0 0 15px var(--capsule))}.gacha-prize span{font-size:18px;color:var(--capsule);letter-spacing:3px}.gacha-prize strong{font-weight:normal}
.ordinary-claim{text-align:center;animation:prize-claim .01s 1.35s both!important}.ordinary-claim button{max-width:95%;white-space:normal}
.gacha-prize>div{display:flex;flex-direction:column;gap:3px}
.capsule-stage{overflow:hidden}
.rare .gacha-capsule i{animation:capsule-top 1.4s ease-in-out both,rarity-ink 1s ease-in-out both!important}
@keyframes rarity-ink{0%,45%{background:#529ec5}80%,100%{background:#a16ad2}}
@keyframes capsule-shiver{0%,20%{transform:rotate(0) scale(.6)}35%{transform:rotate(-12deg) scale(1)}50%{transform:rotate(12deg)}65%{transform:rotate(-8deg)}80%{transform:rotate(7deg)}100%{transform:rotate(0)}}
@keyframes capsule-top{0%,70%{transform:translateY(0);opacity:1}100%{transform:translateY(-90px) rotate(-15deg);opacity:0}}
@keyframes capsule-bottom{0%,70%{transform:translateY(0);opacity:1}100%{transform:translateY(90px) rotate(12deg);opacity:0}}
@keyframes prize-emerge{from{opacity:0;transform:scale(.4) translateY(20px)}to{opacity:1;transform:scale(1) translateY(0)}}
@keyframes prize-claim{from{opacity:0;visibility:hidden;pointer-events:none}to{opacity:1;visibility:visible;pointer-events:auto}}
@media(max-height:550px){.ordinary-machine-art{flex-basis:150px;height:160px;border-width:3px}.machine-window{inset:9px 8px 50px}.machine-window img{width:60px;height:70px}.machine-window span{font-size:45px}.machine-slot{width:55px;height:22px;left:9px;bottom:8px}.machine-knob{width:30px;height:30px;right:12px;bottom:8px;font-size:18px}.ordinary-pool h2{font-size:20px}.ordinary-pool img{width:65px;height:70px}.ordinary-pool figure{width:110px;margin-bottom:5px}.ordinary-pool figcaption{font-size:16px}.ordinary-machine-body{padding:0}.capsule-stage{height:150px;min-height:105px;flex-basis:130px}.gacha-prize img{width:105px;height:95px}.gacha-prize{font-size:21px}.gacha-prize span{font-size:14px}.gacha-capsule{width:80px;height:80px}.ordinary-modal{gap:3px}.ordinary-pool button,.ordinary-claim button{font-size:18px;min-height:38px;padding:7px 15px}}
@media(max-height:550px){.ordinary-modal>.ribbon-title{flex:none;margin:0}.capsule-stage{height:110px;min-height:100px;flex:0 0 110px}.gacha-prize{flex-direction:row;gap:12px}.gacha-prize strong{max-width:175px}.ordinary-claim{flex:none}}
@media(max-height:300px){.ordinary-machine-art{height:135px;flex-basis:130px}.ordinary-pool h2{display:none}.ordinary-pool img{height:55px;width:60px}.ordinary-pool figure{width:95px}.ordinary-pool figcaption{font-size:14px}.ordinary-machine-body{gap:15px}.capsule-stage{height:95px;min-height:90px;flex-basis:95px}.gacha-prize img{height:85px;width:90px}}
@media(prefers-reduced-motion:reduce){.gacha-capsule{animation:none!important;opacity:0}.gacha-prize,.ordinary-claim{animation:none!important;opacity:1;visibility:visible;transform:none;pointer-events:auto}}
#app.reduced-motion .gacha-capsule{animation:none!important;opacity:0}#app.reduced-motion .gacha-prize,#app.reduced-motion .ordinary-claim{animation:none!important;opacity:1;visibility:visible;transform:none;pointer-events:auto}
.visitor-modal{max-width:1040px;max-height:100%;overflow:auto}
.visitor-intro,.visitor-note{text-align:center;margin:8px auto;max-width:850px;line-height:1.3}
.visitor-note{font-size:.85em}
.visitor-offers{display:flex;gap:14px;justify-content:center;align-items:stretch;min-width:0}
.visitor-card{flex:1;min-width:0;max-width:420px;padding:12px;background:#fff4d8;border:3px solid #60432d;border-radius:10px 15px 12px 7px;box-shadow:3px 4px #60432d40;text-align:center}
.visitor-card:nth-child(even){transform:rotate(.35deg)}
.visitor-card h2{margin:0 0 6px;font-size:1.2em}
.visitor-portrait{height:90px}.visitor-portrait img{height:100%;max-width:100%;object-fit:contain}
.training-send{display:flex;gap:8px;align-items:center;justify-content:center;width:100%;margin-top:8px;font-size:.95em;padding:7px!important}
.training-send img{width:40px;height:40px;object-fit:contain}.training-send small{display:block;font-size:.8em}
.visitor-relic-pair{display:flex;align-items:center;justify-content:center;gap:8px}
.visitor-relic-pair figure{margin:0;flex:1;min-width:0;font-size:.9em}
.visitor-relic-pair button{width:90px;height:90px;max-width:100%;padding:8px!important}
.visitor-relic-pair img{width:100%;height:100%;object-fit:contain}
.visitor-card.accepted{border-color:#3d8e7d}.visitor-card>p{font-size:.9em}
.visitor-relic-label{display:block;color:#6b4227;font-size:.95em;margin-bottom:5px}
.visitor-relic-pair figcaption{display:block!important;white-space:normal;overflow-wrap:anywhere;line-height:1.2;margin-top:4px}
.training-count{white-space:nowrap;color:#28796f}
@media(max-height:450px){.visitor-modal{padding:10px!important}.visitor-intro{font-size:.85em;margin:5px auto}.visitor-note{font-size:.72em;margin:5px auto}.visitor-card{padding:7px}.visitor-portrait{height:52px}.visitor-relic-pair button{height:58px;width:58px}.visitor-card h2{font-size:1em}.training-send{margin-top:4px;font-size:.78em}.training-send img{width:25px;height:25px}.visitor-modal .modal-actions{margin-top:7px}.visitor-modal .ribbon-title{font-size:1.3em}}
.restock-line{flex-wrap:nowrap;justify-content:flex-start;gap:8px;flex-shrink:0}
.restock-line>b{white-space:nowrap;flex:none}
.restock-line .shop-dice-reroll{flex:none;display:grid;place-items:center;margin:0 0 0 auto;width:42px;height:38px;min-width:0;padding:4px}
.shop-dice-reroll img{width:26px;height:26px;object-fit:contain}
.shop-dice-reroll:disabled img{filter:grayscale(1);opacity:.45}
@media(max-height:450px){.restock-line{gap:5px}.restock-line .shop-dice-reroll{width:31px;height:28px;padding:2px}.shop-dice-reroll img{width:20px;height:20px}}

.food-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;white-space:normal!important;height:auto!important;min-height:150px}
.food-card.selected{outline:3px dashed #358f83;outline-offset:-7px}
.food-card .meal-icon{width:84px;height:76px;flex:none}.food-card small{font-size:.8em;line-height:1.25}
.food-targets{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:14px 0}
.food-target{display:flex;align-items:center;gap:5px;padding:6px 10px!important;font-size:.85em!important}
.food-target img{width:42px;height:42px;object-fit:contain}
@media(max-height:450px){.food-card{min-height:105px;padding:7px!important;font-size:.8em!important}.food-card .meal-icon{width:48px;height:42px}.food-targets{margin:7px 0;gap:5px}.food-target{font-size:.72em!important}.food-target img{width:28px;height:28px}}

.food-card small{font-family:PandaHand,sans-serif!important;text-transform:none!important;font-size:clamp(12px,1.2vw,18px)!important;font-weight:normal}

/* A reduced-motion draw still visibly reveals its saved result, without movement. */
@keyframes prize-reveal-soft{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.gacha-capsule i,.gacha-capsule b{animation:none!important}.gacha-prize{animation:prize-reveal-soft .18s ease-out both!important}}
#app.reduced-motion .gacha-capsule i,#app.reduced-motion .gacha-capsule b{animation:none!important}
#app.reduced-motion .gacha-prize{animation:prize-reveal-soft .18s ease-out both!important}
