/* cave.fyi /2/: the forest outside, the burrows, the bunnies and the fox.
   Added next to style.v1.css, which is as it was in edition 1. */
.strip.forest { height: 250px; background: linear-gradient(180deg, #17100c 0%, #171a2e 16%, #1b2c3d 46%, #1d3a36 70%, #16261c 88%, #17100c 100%); }
.strip.forest::before { opacity: .35; }
.strip.forest::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: linear-gradient(180deg, rgba(20, 34, 24, 0) 0%, #121c14 55%, #17100c 100%); pointer-events: none; }
.strip.forest .p.floor { top: calc(100% - 16px) !important; }
.strip.forest .far { opacity: .5; filter: brightness(.6) saturate(.8); }
.strip.forest .fly { width: 4px; height: 4px; background: #d8ff8a; box-shadow: 0 0 8px 2px rgba(200, 255, 120, .6); animation: fly 5s ease-in-out infinite; }
@keyframes fly { 0%, 100% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 60% { opacity: .2; transform: translate(14px, -18px); } 80% { opacity: 1; transform: translate(26px, -8px); } }
.burrow { cursor: pointer; -webkit-tap-highlight-color: transparent; background: none; border: 0; padding: 0; z-index: 2; }
.burrow:active img { transform: scale(.97); }
.hopper { z-index: 3; transition: left 1.1s cubic-bezier(.3, .6, .4, 1); pointer-events: none; }
.hopper.hop img { animation: hop .37s ease-in-out 3; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.walker { z-index: 4; animation: walk 54s linear infinite; }
.walker img { animation: bob .5s steps(2) infinite; }
.walker.slow { animation-duration: 70s; animation-delay: -20s; }
@keyframes walk { 0% { left: -12%; } 100% { left: 112%; } }
@keyframes bob { 0% { transform: translateY(0); } 100% { transform: translateY(-2px); } }

.inside { padding: 0; }
.inside .art { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: cover; object-position: 50% 45%; image-rendering: pixelated; }

.dict { background: #efe2c2; color: #2a1c12; border-radius: var(--r); padding: 20px 22px; margin: 24px 0; }
.dict .w { font-family: var(--fat); font-size: 30px; line-height: 1.1; }
.dict .d { margin: 6px 0 0; font-size: 18px; line-height: 1.45; }
.dict .s { margin: 10px 0 0; font-size: 13.5px; color: #6b5540; }
.dict .s a { color: inherit; }

.dens { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 8px; padding: 0; list-style: none; }
.dens a { display: flex; gap: 14px; align-items: center; height: 100%; background: var(--slab); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: inherit; }
.dens a:hover { background: #3a281d; }
.dens img { width: 72px; height: auto; flex: none; image-rendering: pixelated; }
.dens b { display: block; font-family: var(--fat); font-weight: 400; font-size: 21px; line-height: 1.15; color: var(--ink); }
.dens span { display: block; font-size: 14.5px; line-height: 1.4; color: var(--dim); margin-top: 3px; }
@media (max-width: 640px) { .dens { grid-template-columns: 1fr; } .strip.forest { height: 210px; } }

.home { padding: 0; }
.home .art { display: block; width: 100%; height: auto; max-height: 84vh; object-fit: cover; image-rendering: pixelated; }
.home .line { text-align: center; font-family: var(--fat); font-size: clamp(22px, 5.4vw, 34px); line-height: 1.2; color: var(--ink); padding: 34px 20px 10px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .walker, .walker img, .strip.forest .fly, .hopper.hop img { animation: none; } .walker { left: 30%; } }
