.garden-chest{position:absolute;z-index:8;left:calc(50% + min(28vw,33dvh));top:64%;width:112px;padding:0;border:0;background:none;display:flex;flex-direction:column;align-items:center;color:#654631;touch-action:manipulation;cursor:pointer}
.garden-chest .rabbit-rig{width:112px;height:112px;animation:chest-breathe 5.5s ease-in-out infinite;transform-origin:50% 90%}
.rabbit-rig{display:block;position:relative;flex:none;width:140px;height:140px;pointer-events:none}
.rabbit-rig img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.rabbit-ear-left{clip-path:polygon(30% 0,56% 0,56% 33%,42% 35%,29% 30%);transform-origin:47% 32%;animation:ear-left 4.4s ease-in-out infinite}
.rabbit-ear-right{clip-path:polygon(56% 8%,89% 7%,88% 35%,65% 42%,57% 32%);transform-origin:63% 36%;animation:ear-right 5.2s ease-in-out -1.2s infinite}
.garden-chest strong{font-size:11px;background:#fff8e7e8;border-radius:12px;padding:4px 9px;white-space:nowrap;margin-top:-4px}
.garden-chest small{font-size:10px;background:#fff8e7d9;border-radius:8px;padding:2px 6px;margin-top:3px}
.garden-chest.has-chests .rabbit-rig{animation:chest-ready 4.8s ease-in-out infinite}
.garden-chest.is-locked{filter:saturate(.65);opacity:.8}
.sowing .garden-chest,.shoveling .garden-chest,.panel-open .garden-chest{visibility:hidden}
.chest-intro{display:flex;gap:20px;align-items:center}.chest-intro h3{margin:0 0 10px}.chest-intro p{font-size:13px;line-height:1.75;margin:5px 0}
.chest-open-actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.chest-open-actions button{min-height:46px;flex:1;white-space:nowrap}
.chest-odds{font-size:12px;line-height:1.8}.chest-odds summary{cursor:pointer;font-weight:700}.chest-results{background:#dff2e666;padding:16px;border-radius:16px;font-size:14px;line-height:1.7}
.mystery-seed-symbol{display:grid;place-items:center;font-size:38px;font-weight:800;color:#735599;width:65px;flex:none}.seed-row.mystery-row{border-color:#bca2cb}
@keyframes ear-left{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(5deg)}}
@keyframes ear-right{0%,100%{transform:rotate(3.5deg)}50%{transform:rotate(-5deg)}}
@keyframes chest-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.025)}}
@keyframes chest-ready{0%,65%,100%{transform:scale(1) rotate(0)}72%{transform:scale(1.035) rotate(-2deg)}80%{transform:scale(1.035) rotate(2deg)}88%{transform:scale(1.01) rotate(-1deg)}}
@media(max-height:560px),(max-width:760px){.garden-chest{width:80px;left:calc(50% + 24vw);top:55%}.garden-chest .rabbit-rig{width:80px;height:80px}.garden-chest strong{font-size:9px}.garden-chest small{font-size:8px}.chest-intro .rabbit-rig{width:96px;height:96px}}
@media(prefers-reduced-motion:reduce){.garden-chest .rabbit-rig,.rabbit-ear{animation:none!important}}
body.paused .rabbit-rig,body.paused .rabbit-ear{animation-play-state:paused}

/* Anchor the rabbit to the island coordinates, beside the right lamp and fence. */
.chest-anchor{overflow:visible;pointer-events:none}.chest-anchor>div{width:175px;pointer-events:none}
.chest-anchor .garden-chest{position:relative;inset:auto;width:175px;pointer-events:auto;isolation:isolate}
.chest-anchor .garden-chest .rabbit-rig{width:175px;height:175px;z-index:1}
.chest-anchor .garden-chest::before{content:"";position:absolute;left:34px;top:143px;width:116px;height:23px;border-radius:50%;background:radial-gradient(ellipse,rgba(63,53,36,.35),rgba(63,53,36,.18) 42%,rgba(63,53,36,0) 74%);transform:rotate(-5deg);filter:blur(2px);pointer-events:none;z-index:0}
.chest-anchor .garden-chest strong{position:relative;z-index:2;font-size:14px;margin-top:-8px;padding:4px 10px}
.chest-anchor .garden-chest small{position:relative;z-index:2;font-size:12px}
