:root {
  color-scheme: dark;
  --ink: #f7f4ea;
  --muted: rgba(247, 244, 234, 0.7);
  --green: #b6d39d;
  --line: rgba(255, 255, 255, 0.18);
  --glass: rgba(13, 27, 20, 0.62);
  --wind-duration: 9s;
  --wind-shift: 2px;
  --scene-brightness: 1;
  --scene-saturation: 1;
  --scene-temperature: 0deg;
  --night-opacity: 0;
  --cloud-opacity: 0.12;
  --page-duration: 8s;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0b1710;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
label,
a {
  -webkit-tap-highlight-color: transparent;
}

.forest-home {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.forest-image,
.forest-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.forest-image {
  z-index: -8;
  object-fit: cover;
  object-position: center;
  filter:
    brightness(var(--scene-brightness))
    saturate(var(--scene-saturation))
    hue-rotate(var(--scene-temperature));
  transition: filter 1.2s ease;
}

.forest-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 12, 7, 0.54) 0%, transparent 22%, transparent 64%, rgba(4, 12, 7, 0.62) 100%),
    linear-gradient(90deg, rgba(4, 12, 7, 0.52) 0%, transparent 36%, transparent 74%, rgba(4, 12, 7, 0.24) 100%),
    linear-gradient(rgba(4, 13, 21, var(--night-opacity)), rgba(7, 18, 30, var(--night-opacity)));
  transition: background 1.2s ease;
}

.canopy-motion,
.celestial-light,
.cloud-layer,
.weather-canvas,
.ocean-shimmer,
.page-flutter,
.wildlife-layer {
  position: absolute;
  pointer-events: none;
}

.canopy-motion {
  z-index: -7;
  inset: -8px;
  background-image: url("assets/eshipread-forest-hero-v2.png");
  background-position: center;
  background-size: cover;
  opacity: 0.32;
  filter:
    brightness(var(--scene-brightness))
    saturate(var(--scene-saturation))
    hue-rotate(var(--scene-temperature));
  transform-origin: 50% 70%;
  animation: canopySway var(--wind-duration) ease-in-out infinite alternate;
}

.canopy-main {
  clip-path: polygon(0 0, 100% 0, 100% 43%, 82% 41%, 68% 35%, 55% 31%, 43% 34%, 30% 39%, 14% 42%, 0 48%);
}

.canopy-guardian {
  clip-path: polygon(12% 36%, 37% 36%, 37% 68%, 12% 68%);
  animation-delay: -2.4s;
  animation-duration: calc(var(--wind-duration) * 0.82);
}

.celestial-light {
  z-index: -6;
  top: 10%;
  right: 15%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 213, 0.96) 0 28%, rgba(255, 248, 213, 0.32) 30% 46%, transparent 70%);
  box-shadow: 0 0 90px rgba(255, 245, 204, 0.3);
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.forest-home.is-night .celestial-light {
  opacity: 0.88;
}

.forest-home.is-day .celestial-light {
  top: 8%;
  right: 17%;
  background: radial-gradient(circle, rgba(255, 232, 151, 0.92) 0 24%, rgba(255, 223, 126, 0.26) 28% 50%, transparent 72%);
  box-shadow: 0 0 110px rgba(255, 221, 133, 0.32);
  opacity: 0.72;
}

.cloud-layer {
  z-index: -5;
  top: 0;
  left: -35%;
  width: 170%;
  height: 45%;
  opacity: var(--cloud-opacity);
  background:
    radial-gradient(ellipse at 18% 32%, rgba(230, 238, 237, 0.7) 0 8%, transparent 22%),
    radial-gradient(ellipse at 42% 20%, rgba(230, 238, 237, 0.55) 0 10%, transparent 24%),
    radial-gradient(ellipse at 70% 30%, rgba(230, 238, 237, 0.62) 0 9%, transparent 23%);
  animation: cloudDrift 70s linear infinite;
}

.cloud-layer-front {
  top: 8%;
  opacity: calc(var(--cloud-opacity) * 0.6);
  transform: scale(1.2);
  animation-duration: 48s;
  animation-direction: reverse;
}

.weather-canvas {
  z-index: -4;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ocean-shimmer {
  z-index: -3;
  top: 38%;
  right: 0;
  width: 32%;
  height: 28%;
  background:
    repeating-linear-gradient(175deg, transparent 0 12px, rgba(255, 255, 255, 0.2) 13px 14px, transparent 15px 27px);
  mix-blend-mode: screen;
  opacity: 0.22;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 82%);
  animation: waterLight 8s ease-in-out infinite alternate;
}

.page-flutter {
  z-index: 1;
  width: 15px;
  height: 21px;
  border-radius: 1px 5px 5px 1px;
  background: rgba(248, 242, 218, 0.88);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transform-origin: left center;
  animation: pageTurn var(--page-duration) ease-in-out infinite;
}

.page-flutter-one {
  bottom: 11%;
  left: 34%;
}

.page-flutter-two {
  bottom: 14%;
  left: 18%;
  animation-delay: -2.8s;
  animation-duration: calc(var(--page-duration) * 1.14);
}

.page-flutter-three {
  right: 14%;
  bottom: 15%;
  animation-delay: -5.2s;
  animation-duration: calc(var(--page-duration) * 0.92);
}

.wildlife-layer {
  z-index: 0;
  inset: 0;
  overflow: hidden;
}

.creature {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--size, 20px);
  height: var(--size, 20px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  transition:
    left var(--travel, 8s) ease-in-out,
    top var(--travel, 8s) ease-in-out,
    transform var(--travel, 8s) ease-in-out,
    opacity 900ms ease;
  will-change: left, top, transform, opacity;
}

.creature.is-visible {
  opacity: var(--creature-opacity, 0.72);
}

.bird {
  --size: 15px;
  --creature-opacity: 0.68;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
}

.bird::before {
  position: absolute;
  left: 22%;
  bottom: 22%;
  width: 48%;
  height: 38%;
  border-radius: 56% 48% 48% 50%;
  background: rgba(41, 37, 27, 0.82);
  content: "";
}

.bird::after {
  position: absolute;
  left: 9%;
  bottom: 29%;
  width: 22%;
  height: 12%;
  border-radius: 999px;
  background: rgba(41, 37, 27, 0.72);
  content: "";
  transform: rotate(-20deg);
}

.bird span {
  position: absolute;
  right: 18%;
  bottom: 42%;
  width: 20%;
  height: 18%;
  border-radius: 50%;
  background: rgba(49, 43, 31, 0.82);
}

.bird span::after {
  position: absolute;
  top: 34%;
  right: 16%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(242, 237, 214, 0.7);
  content: "";
}

.bird.is-paused {
  animation: birdPerch 2.6s ease-in-out infinite;
}

.gull {
  --size: 22px;
  --creature-opacity: 0.68;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.22));
}

.gull::before,
.gull::after {
  position: absolute;
  top: 42%;
  width: 13px;
  height: 8px;
  border-top: 2px solid rgba(239, 242, 231, 0.82);
  content: "";
}

.gull::before {
  right: 50%;
  border-radius: 100% 0 0 0;
  transform: rotate(18deg);
  transform-origin: right center;
  animation: wingBeat 2.2s ease-in-out infinite;
}

.gull::after {
  left: 50%;
  border-radius: 0 100% 0 0;
  transform: rotate(-18deg);
  transform-origin: left center;
  animation: wingBeatMirror 2.2s ease-in-out infinite;
}

.large-bird {
  --size: 52px;
  --creature-opacity: 0.34;
  filter: blur(0.2px) drop-shadow(0 5px 8px rgba(0, 0, 0, 0.26));
}

.large-bird::before,
.large-bird::after {
  position: absolute;
  top: 45%;
  width: 54%;
  height: 18%;
  border-top: 4px solid rgba(38, 35, 29, 0.72);
  content: "";
}

.large-bird::before {
  right: 47%;
  border-radius: 100% 0 0 0;
  transform-origin: right center;
  animation: largeWingLeft 4.8s ease-in-out infinite;
}

.large-bird::after {
  left: 47%;
  border-radius: 0 100% 0 0;
  transform-origin: left center;
  animation: largeWingRight 4.8s ease-in-out infinite;
}

.large-bird span {
  position: absolute;
  top: 44%;
  left: 46%;
  width: 9%;
  height: 8%;
  border-radius: 50%;
  background: rgba(38, 35, 29, 0.72);
}

.squirrel {
  --size: 44px;
  --creature-opacity: 0.78;
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.34));
}

.squirrel::before {
  position: absolute;
  right: 20%;
  bottom: 21%;
  width: 44%;
  height: 25%;
  border-radius: 58% 46% 42% 50%;
  background:
    radial-gradient(ellipse at 35% 64%, rgba(170, 126, 78, 0.9) 0 20%, transparent 21%),
    linear-gradient(180deg, rgba(126, 86, 50, 0.94), rgba(83, 58, 37, 0.94));
  box-shadow:
    5px 9px 0 -7px rgba(62, 43, 30, 0.88),
    14px 10px 0 -7px rgba(62, 43, 30, 0.88);
  content: "";
}

.squirrel::after {
  position: absolute;
  left: 2%;
  bottom: 24%;
  width: 46%;
  height: 60%;
  border-radius: 72% 28% 20% 78%;
  background:
    radial-gradient(ellipse at 44% 46%, rgba(157, 112, 68, 0.96) 0 42%, transparent 43%),
    radial-gradient(ellipse at 58% 52%, rgba(84, 58, 36, 0.96) 0 60%, transparent 61%);
  content: "";
  transform: rotate(17deg);
  transform-origin: 70% 80%;
}

.squirrel span {
  position: absolute;
  right: 5%;
  bottom: 40%;
  width: 22%;
  height: 19%;
  border-radius: 58% 48% 48% 45%;
  background: rgba(112, 78, 48, 0.96);
}

.squirrel span::before {
  position: absolute;
  top: -24%;
  left: 20%;
  width: 30%;
  height: 36%;
  border-radius: 70% 30% 45% 45%;
  background: rgba(82, 57, 38, 0.95);
  content: "";
  transform: rotate(-12deg);
}

.squirrel span::after {
  position: absolute;
  top: 32%;
  right: 18%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(20, 17, 13, 0.78);
  content: "";
}

.creature.squirrel.is-paused {
  animation: squirrelLook 1.8s ease-in-out infinite;
}

.creature.squirrel.is-dashing {
  animation: squirrelDash var(--travel, 5s) steps(8, end) both;
}

.butterfly {
  --size: 17px;
  --creature-opacity: 0.68;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.18));
}

.butterfly::before,
.butterfly::after {
  position: absolute;
  top: 12%;
  width: 47%;
  height: 66%;
  border-radius: 68% 32% 70% 30%;
  background:
    radial-gradient(ellipse at 52% 28%, rgba(255, 244, 204, 0.9) 0 20%, transparent 21%),
    radial-gradient(ellipse at 42% 70%, rgba(243, 176, 83, 0.78) 0 32%, transparent 33%),
    linear-gradient(135deg, rgba(238, 146, 58, 0.7), rgba(255, 231, 177, 0.62));
  box-shadow: inset 0 0 0 1px rgba(87, 58, 32, 0.16);
  content: "";
  transform-origin: center bottom;
  animation: butterflyWing 780ms ease-in-out infinite;
}

.butterfly::before {
  left: 3%;
  border-top-left-radius: 82%;
  border-bottom-left-radius: 42%;
}

.butterfly::after {
  right: 3%;
  border-top-right-radius: 82%;
  border-bottom-right-radius: 42%;
  animation-name: butterflyWingMirror;
}

.butterfly span {
  position: absolute;
  top: 24%;
  left: 47.5%;
  width: 5%;
  height: 52%;
  border-radius: 999px;
  background: rgba(50, 38, 24, 0.82);
}

.butterfly span::before,
.butterfly span::after {
  position: absolute;
  top: -16%;
  width: 1px;
  height: 42%;
  background: rgba(50, 38, 24, 0.46);
  content: "";
  transform-origin: bottom center;
}

.butterfly span::before {
  left: -120%;
  transform: rotate(-25deg);
}

.butterfly span::after {
  right: -120%;
  transform: rotate(25deg);
}

.firefly {
  --size: 8px;
  --creature-opacity: 0;
  border-radius: 50%;
  background: rgba(235, 255, 166, 0.88);
  box-shadow:
    0 0 8px rgba(235, 255, 166, 0.82),
    0 0 18px rgba(183, 224, 113, 0.5);
  animation: fireflyPulse 2.4s ease-in-out infinite;
}

.forest-home.is-night .firefly {
  --creature-opacity: 0.8;
}

.forest-home.is-day .firefly {
  display: none;
}

.deer-shadow {
  --size: 78px;
  --creature-opacity: 0.24;
  filter: blur(0.2px) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.28));
}

.deer-shadow::before {
  position: absolute;
  left: 18%;
  bottom: 28%;
  width: 56%;
  height: 26%;
  border-radius: 52% 45% 42% 46%;
  background: rgba(36, 31, 22, 0.82);
  content: "";
}

.deer-shadow::after {
  position: absolute;
  right: 14%;
  bottom: 45%;
  width: 18%;
  height: 18%;
  border-radius: 50% 45% 45% 50%;
  background: rgba(36, 31, 22, 0.82);
  content: "";
}

.deer-shadow span,
.deer-shadow span::before,
.deer-shadow span::after {
  position: absolute;
  bottom: 6%;
  width: 4%;
  height: 30%;
  border-radius: 999px;
  background: rgba(36, 31, 22, 0.78);
  content: "";
}

.deer-shadow span {
  left: 32%;
}

.deer-shadow span::before {
  left: 360%;
}

.deer-shadow span::after {
  left: 760%;
}

.forest-home.is-night .bird,
.forest-home.is-night .gull,
.forest-home.is-night .large-bird {
  --creature-opacity: 0.42;
}

.forest-home.weather-rain .creature,
.forest-home.weather-snow .creature,
.forest-home.weather-fog .creature {
  --creature-opacity: 0.36;
}

.forest-home.weather-rain .butterfly,
.forest-home.weather-snow .butterfly,
.forest-home.weather-fog .butterfly {
  display: none;
}

@keyframes wingBeat {
  0%,
  100% {
    transform: rotate(16deg);
  }
  50% {
    transform: rotate(33deg) translateY(1px);
  }
}

@keyframes wingBeatMirror {
  0%,
  100% {
    transform: rotate(-16deg);
  }
  50% {
    transform: rotate(-33deg) translateY(1px);
  }
}

@keyframes birdPerch {
  0%,
  100% {
    margin-top: 0;
    transform: translate(-50%, -50%) scale(var(--scale, 1));
  }
  42% {
    margin-top: -1px;
  }
  58% {
    transform: translate(-50%, -50%) scale(var(--scale, 1)) rotate(-3deg);
  }
}

@keyframes largeWingLeft {
  0%,
  100% {
    transform: rotate(8deg);
  }
  50% {
    transform: rotate(20deg) translateY(1px);
  }
}

@keyframes largeWingRight {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(-20deg) translateY(1px);
  }
}

@keyframes butterflyWing {
  0%,
  100% {
    transform: rotateY(0deg) rotate(-18deg);
  }
  50% {
    transform: rotateY(58deg) rotate(-10deg);
  }
}

@keyframes butterflyWingMirror {
  0%,
  100% {
    transform: rotateY(0deg) rotate(18deg);
  }
  50% {
    transform: rotateY(-58deg) rotate(10deg);
  }
}

@keyframes fireflyPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.78);
  }
  45% {
    opacity: 1;
    transform: scale(1.18);
  }
  65% {
    opacity: 0.5;
  }
}

@keyframes squirrelLook {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -2px;
  }
}

@keyframes squirrelDash {
  0%,
  100% {
    margin-top: 0;
  }
  12% {
    margin-top: -5px;
  }
  24% {
    margin-top: 0;
  }
  38% {
    margin-top: -7px;
  }
  50% {
    margin-top: -1px;
  }
  64% {
    margin-top: -5px;
  }
  78% {
    margin-top: 0;
  }
  88% {
    margin-top: -3px;
  }
}

.forest-home.season-spring {
  --scene-saturation: 1.06;
  --scene-temperature: -2deg;
}

.forest-home.season-summer {
  --scene-saturation: 1.08;
}

.forest-home.season-autumn {
  --scene-saturation: 0.92;
  --scene-temperature: 12deg;
}

.forest-home.season-winter {
  --scene-saturation: 0.58;
  --scene-temperature: -9deg;
}

.forest-home.weather-fog {
  --scene-brightness: 0.9;
  --scene-saturation: 0.72;
}

.forest-home.weather-rain {
  --scene-brightness: 0.76;
  --scene-saturation: 0.76;
}

.forest-home.weather-snow {
  --scene-brightness: 1.05;
  --scene-saturation: 0.48;
}

.forest-home.is-night {
  --scene-brightness: 0.62;
  --scene-saturation: 0.72;
  --scene-temperature: -9deg;
  --night-opacity: 0.3;
}

.forest-home.is-night .ocean-shimmer {
  opacity: 0.38;
}

@keyframes canopySway {
  from {
    transform: translate3d(calc(var(--wind-shift) * -1), 0, 0) scale(1.004) rotate(-0.035deg);
  }
  to {
    transform: translate3d(var(--wind-shift), -1px, 0) scale(1.006) rotate(0.035deg);
  }
}

@keyframes cloudDrift {
  from {
    transform: translateX(-8%);
  }
  to {
    transform: translateX(12%);
  }
}

@keyframes waterLight {
  from {
    transform: translateX(-4px) translateY(1px);
  }
  to {
    transform: translateX(7px) translateY(-2px);
  }
}

@keyframes pageTurn {
  0%,
  72%,
  100% {
    transform: perspective(80px) rotateY(0deg) rotateZ(-2deg);
  }
  82% {
    transform: perspective(80px) rotateY(-76deg) rotateZ(3deg);
  }
  90% {
    transform: perspective(80px) rotateY(-8deg) rotateZ(-1deg);
  }
}

.site-header {
  display: grid;
  grid-template-columns: 220px minmax(240px, 420px) 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
  background: rgba(7, 18, 11, 0.36);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 72%, #9b6d48 0 14%, transparent 15%),
    radial-gradient(circle at 48% 43%, #6f9e68 0 31%, #b5c98c 32% 50%, transparent 51%);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-box input::placeholder {
  color: rgba(247, 244, 234, 0.58);
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}

.site-nav button,
.archive-button {
  border: 0;
  border-radius: 7px;
  padding: 9px 11px;
  background: transparent;
  color: rgba(247, 244, 234, 0.78);
  cursor: pointer;
}

.site-nav button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.archive-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

.owner-only {
  display: none !important;
}

.forest-home.is-owner .owner-only,
.is-owner .owner-only {
  display: inline-flex !important;
}

#bookInput {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  top: 17%;
  left: 5.5%;
  max-width: 470px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-copy p {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(38px, 5vw, 76px);
  font-weight: 500;
  line-height: 1.06;
}

.hero-copy > span {
  display: inline-block;
  margin-top: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.46);
  padding-left: 12px;
  color: rgba(247, 244, 234, 0.72);
  font-size: 12px;
}

.place-marker {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.marker-dot {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(182, 211, 157, 0.8);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.15), 0 0 18px rgba(196, 225, 173, 0.5);
}

.marker-dot::after {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.54);
  content: "";
}

.marker-label {
  display: block;
  min-width: 132px;
  margin-left: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(7, 18, 11, 0.54);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, background 160ms ease;
}

.place-marker:hover .marker-label {
  transform: translateY(-2px);
  background: rgba(7, 18, 11, 0.74);
}

.marker-label strong,
.marker-label small {
  display: block;
}

.marker-label strong {
  font-size: 13px;
}

.marker-label small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.mother-tree-marker {
  top: 29%;
  left: 52%;
}

.guardian-marker {
  top: 47%;
  left: 28%;
}

.reading-marker {
  top: 64%;
  left: 48%;
}

.market-marker {
  top: 75%;
  left: 19%;
}

.eship-marker {
  top: 52%;
  right: 7%;
}

.forest-footer {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  background: rgba(7, 18, 11, 0.48);
  backdrop-filter: blur(14px);
}

.forest-footer div {
  min-width: 64px;
}

.forest-footer .weather-status {
  min-width: 108px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.forest-footer strong,
.forest-footer span {
  display: block;
}

.forest-footer strong {
  font-size: 18px;
}

.forest-footer span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.forest-footer p {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.place-panel {
  position: fixed;
  z-index: 20;
  top: 96px;
  right: 28px;
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  background: rgba(9, 24, 15, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.place-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.panel-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.place-panel h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 30px;
  font-weight: 500;
}

.place-panel > p:not(.panel-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.panel-content {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.panel-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.panel-summary span,
.panel-summary small {
  color: var(--muted);
  font-size: 11px;
}

.panel-summary strong {
  font-size: 15px;
}

.panel-summary small {
  grid-column: 1 / -1;
}

.panel-book {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
}

.panel-book strong,
.panel-book span {
  display: block;
}

.panel-book strong {
  font-size: 13px;
}

.panel-book span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.panel-book p,
.wish-card p,
.feature-card p,
.route-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.book-card-topline,
.feature-card-head,
.book-actions,
.feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.book-card-topline {
  margin-bottom: 7px;
}

.book-card-topline span,
.book-card-topline small,
.feature-card-head span,
.feature-card-head small {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.panel-book a {
  display: inline-flex;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 9px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.book-actions {
  justify-content: flex-start;
  margin-top: 9px;
}

.book-actions .panel-book a {
  margin-top: 0;
}

.text-action {
  border: 0;
  padding: 6px 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.text-action:hover {
  color: var(--green);
}

.panel-empty,
.panel-note {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.panel-empty strong,
.panel-empty span {
  display: block;
}

.panel-empty strong {
  color: var(--ink);
  font-size: 12px;
}

.panel-empty span {
  margin-top: 4px;
}

.feature-card,
.wish-card,
.route-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.feature-card {
  background: rgba(182, 211, 157, 0.07);
}

.feature-card h3,
.panel-section h3 {
  margin: 9px 0 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 20px;
  font-weight: 500;
}

.feature-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 12px;
}

.feature-meta span,
.tag-list span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  padding: 4px 6px;
  color: var(--muted);
  font-size: 10px;
}

.panel-section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.panel-section h3 {
  margin-top: 0;
  font-size: 16px;
}

.quiet-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.quiet-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.quiet-list strong {
  color: var(--green);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.panel-primary {
  margin-top: 13px;
  border: 1px solid var(--green);
  border-radius: 7px;
  padding: 8px 11px;
  background: var(--green);
  color: #122019;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.wish-card strong,
.wish-card span,
.route-card strong,
.route-card span,
.route-card small {
  display: block;
}

.wish-card strong,
.route-card strong {
  font-size: 13px;
}

.wish-card > span,
.route-card > span,
.route-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.route-card > span {
  margin-top: 0;
  color: var(--green);
  font-weight: 700;
}

.route-card strong {
  margin-top: 6px;
}

.owner-contact {
  margin-top: 9px;
  color: var(--green);
  font-size: 10px;
}

.upload-modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 10, 6, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.upload-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.upload-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  background: rgba(9, 24, 15, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

.upload-header,
.upload-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.upload-header {
  position: relative;
  margin-bottom: 20px;
}

.upload-header p,
.upload-header h2,
.upload-footer p {
  margin: 0;
}

.upload-header p {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.upload-header h2 {
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 30px;
  font-weight: 500;
}

.upload-header .panel-close {
  position: static;
}

.resource-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.resource-form label {
  display: grid;
  gap: 6px;
}

.resource-form label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.resource-form input,
.resource-form select,
.resource-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  resize: vertical;
}

.resource-form select option {
  color: #18231c;
}

.resource-form input:focus,
.resource-form select:focus,
.resource-form textarea:focus {
  border-color: rgba(182, 211, 157, 0.7);
  box-shadow: 0 0 0 3px rgba(182, 211, 157, 0.1);
}

.resource-form .full-width {
  grid-column: 1 / -1;
}

.rights-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 9px !important;
  border: 1px solid rgba(182, 211, 157, 0.2);
  border-radius: 7px;
  padding: 11px;
  background: rgba(182, 211, 157, 0.06);
}

.rights-check input {
  width: auto;
  margin-top: 2px;
}

.rights-check span {
  line-height: 1.6;
}

.upload-footer {
  align-items: center;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.upload-footer p {
  max-width: 420px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.upload-footer div {
  display: flex;
  gap: 8px;
}

.secondary-action,
.primary-action {
  min-height: 38px;
  border-radius: 7px;
  padding: 8px 13px;
  cursor: pointer;
  font-weight: 700;
}

.secondary-action {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.primary-action {
  border: 1px solid var(--green);
  background: var(--green);
  color: #122019;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .search-box {
    grid-column: 1 / -1;
  }

  .site-nav {
    display: none;
  }

  .hero-copy {
    top: 20%;
  }

  .forest-footer p {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 14px;
  }

  .hero-copy {
    top: 22%;
    left: 20px;
    max-width: 320px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .marker-label {
    min-width: 112px;
    padding: 7px 8px;
  }

  .mother-tree-marker {
    top: 36%;
    left: 48%;
  }

  .guardian-marker {
    top: 49%;
    left: 12%;
  }

  .reading-marker {
    top: 65%;
    left: 38%;
  }

  .market-marker {
    top: 76%;
    left: 8%;
  }

  .eship-marker {
    top: 53%;
    right: 2%;
  }

  .forest-footer {
    right: 14px;
    bottom: 14px;
    left: 14px;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 10px 12px;
  }

  .forest-footer .weather-status {
    min-width: 96px;
    padding-left: 12px;
  }

  .resource-form {
    grid-template-columns: 1fr;
  }

  .resource-form .full-width {
    grid-column: auto;
  }

  .upload-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .canopy-motion,
  .cloud-layer,
  .ocean-shimmer,
  .page-flutter,
  .creature,
  .firefly {
    animation: none;
    transition: none;
  }
}
