:root { color-scheme: light; font-family: 'Courier New', monospace; color: #263f43; background: #c8dad8; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
#trail { position: relative; width: 100%; height: 100%; height: 100svh; overflow: hidden; isolation: isolate; }
#landscape { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; touch-action: none; cursor: crosshair; }
.tree-target { position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer; transform: translate(-50%, -100%); touch-action: manipulation; }
.tree-target:focus-visible { outline: 2px dashed #263f43; outline-offset: 5px; }
button:focus-visible { outline: 2px dashed #263f43; outline-offset: 5px; }
#tree-dialog { position: fixed; top: max(24px, env(safe-area-inset-top)); bottom: auto; width: min(340px, calc(100% - 40px)); margin: 0 auto; padding: 25px 48px 27px 25px; border: 3px solid #263f43; border-radius: 0; color: #263f43; background: #f3f2df; box-shadow: 5px 5px 0 #263f4340; }
#tree-dialog::backdrop { background: #263f4314; }
#tree-dialog h1 { margin: 0 0 14px; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
#tree-dialog p { margin: 0; font-size: 16px; line-height: 1.6; }
#close-dialog { position: absolute; top: 5px; right: 5px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
#close-dialog svg { width: 16px; height: 16px; fill: #263f43; shape-rendering: crispEdges; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.no-script { position: absolute; top: 40%; left: 10%; width: 80%; text-align: center; }
@media (max-height: 450px) { #tree-dialog { top: 18px; } }
@media (prefers-reduced-motion: no-preference) { #tree-dialog[open] { animation: appear 140ms steps(3, end); } @keyframes appear { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } } }

#dialog-copy { overflow-wrap: anywhere; }
#dialog-copy a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
#dialog-copy a:focus-visible { outline: 2px dashed currentColor; outline-offset: 3px; }
:root[data-weather="night"] { background: #142839; }
:root[data-weather="night"] .tree-target:focus-visible { outline-color: #f3f1dd; }
