/* Original animated pines planted in a dedicated, illustrated ward clearing. */
#gameRoot .grove-stage {position:relative;width:min(100%,420px);height:390px;min-height:0;aspect-ratio:auto;margin:12px auto;border:1px solid #4c7464;border-radius:10px;background:#071a17 url('assets/grove-v2.png') center/cover no-repeat;box-shadow:0 10px 24px #0006;isolation:isolate;}
#gameRoot .grove-stage::before,#gameRoot .grove-stage::after {display:none;}
#gameRoot .tree-grid,#gameRoot .tree-grid[data-size="4"] {position:absolute;z-index:2;inset:48px 44px 42px;width:auto;max-width:none;height:auto;aspect-ratio:auto;margin:0;transform:none;gap:7px;}
#gameRoot .tree-button {position:relative;display:grid;place-items:center;width:100%;height:100%;min-height:0;min-width:0;padding:2px;border:1px solid transparent;border-radius:7px;background:radial-gradient(ellipse at 50% 88%,#1c4c3444,transparent 68%);box-shadow:none;overflow:visible;transition:background .15s,border-color .15s;}
#gameRoot .tree-button::before {display:block;content:"";position:absolute;left:9%;right:9%;bottom:3%;top:auto;height:15%;border:1px solid #83b08099;border-radius:50%;background:#07171155;box-shadow:0 0 9px #84c06b22;}
#gameRoot .tree-button::after {content:"";background:none;box-shadow:none;border:0;}
#gameRoot .tree-button[data-state="cursed"] {background:radial-gradient(ellipse at 50% 88%,#54283155,transparent 68%);border-color:transparent;}
#gameRoot .tree-button[data-state="cursed"]::before {border-color:#cd8a8399;box-shadow:0 0 9px #aa485033;}
#gameRoot .tree-button[data-state="cursed"]::after {content:"×";position:absolute;right:3px;top:2px;width:13px;height:13px;color:#edb1a4;font:16px/13px Georgia,serif;background:none;border:0;box-shadow:none;}
#gameRoot .tree-button:hover,#gameRoot .tree-button.is-affected {border-color:#b9d6a8;background:radial-gradient(ellipse at 50% 88%,#aac88b33,transparent 85%);}
#gameRoot .tree-button:focus-visible {outline:2px solid #d4ffcb;outline-offset:2px;}
#gameRoot .tree-sprite {display:block;min-width:0;min-height:0;width:auto;max-width:100%;height:95%;aspect-ratio:1;background:url('assets/pine-tree-cool.png') 0 0/800% 100% no-repeat;image-rendering:pixelated;animation:hex-pine-sway 1.8s steps(8) infinite;filter:brightness(1.5) drop-shadow(0 3px 2px #0008);pointer-events:none;}
#gameRoot .tree-button[data-state="cursed"] .tree-sprite {filter:grayscale(.8) sepia(.3) brightness(.8) drop-shadow(0 3px 2px #0008);}
#gameRoot .grove-stage.is-cleared .tree-button {border-color:#c9e8a4;box-shadow:0 0 15px #a1db7433;}
#gameRoot .puzzle-toolbar {margin:8px 0;padding:0;font-size:12px;}
#gameRoot .puzzle-toolbar p {margin:4px 0;}
#gameRoot .game-status {margin:8px 0;}
#gameRoot .hud {grid-template-columns:repeat(6,minmax(0,1fr));}
@keyframes hex-pine-sway {from{background-position:0 0;}to{background-position:114.285714% 0;}}
@media(max-width:600px) {
 #gameRoot .grove-stage {height:310px;margin:10px auto;}
 #gameRoot .tree-grid,#gameRoot .tree-grid[data-size="4"] {inset:38px 30px 34px;gap:4px;}
 #gameRoot .hud {grid-template-columns:repeat(3,minmax(0,1fr));}
 #gameRoot .puzzle-toolbar {font-size:11px;}
}
@media(prefers-reduced-motion:reduce){#gameRoot .tree-sprite{animation:none;}#gameRoot .tree-button{transition:none;}}

#gameRoot .tree-button::before {width:auto;transform:none;}
#gameRoot .tree-button[data-state="cursed"] .tree-sprite {filter:grayscale(.85) sepia(.25) brightness(1.1) drop-shadow(0 3px 2px #0008);}
#gameRoot .tree-button::after {left:auto;}
#gameRoot .tree-button[data-state="cursed"] .tree-sprite {filter:grayscale(.9) sepia(.3) brightness(1.6) drop-shadow(0 3px 2px #0008);}
