@charset "UTF-8";
:root {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #284e40;
  background: #123e35;
  font-synthesis: none;
  --cream: #fff8e4;
  --ink: #284e40;
  --green: #347e67;
  --gold: #f4c459;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #467d67, #12392f 80%);
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
a {
  color: inherit;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #278b76;
}
button:active:not(:disabled) {
  filter: brightness(0.94);
}
[hidden] {
  display: none !important;
}
.forest-stage {
  position: relative;
  width: min(100vw, 177.77778svh);
  width: min(100vw, 177.77778dvh);
  aspect-ratio: 16/9;
  container-type: inline-size;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 70px #08271f;
}
.scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  z-index: -3;
}
.scene-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(
    #1b513145,
    transparent 18%,
    transparent 85%,
    #28462466
  );
}
.forest-topbar {
  position: absolute;
  top: 2.2%;
  left: 2.5%;
  right: 2.5%;
  height: 7.3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  pointer-events: none;
}
.forest-topbar > * {
  pointer-events: auto;
}
.forest-topbar h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #fff7df;
  font-size: 2.35cqw;
  font-weight: 900;
  letter-spacing: 0.13cqw;
  text-shadow:
    0 0.18cqw 0.1cqw #375337,
    0 0.3cqw 0.8cqw #304728;
  white-space: nowrap;
  pointer-events: none;
}
.forest-brand {
  display: flex;
  align-items: center;
  gap: 0.65cqw;
  color: #fff8df;
  font-weight: 700;
  font-size: 1.15cqw;
  text-shadow: 0 0.1cqw 0.4cqw #254934;
}
.brand-leaf {
  font-size: 2.3cqw;
  color: #ffdf87;
}
.forest-common-controls {
  display: flex;
  gap: 0.65cqw;
  align-items: center;
}
.forest-icon-button {
  color: #284e40;
  width: 3.6cqw;
  height: 3.6cqw;
  border: 0.14cqw solid #fff8db;
  background: #fff8e4ed;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0.25cqw 0.4cqw #244b3152;
  flex: none;
}
.forest-icon-button svg {
  width: 60%;
  height: 60%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.forest-icon-button.is-muted {
  opacity: 0.6;
}
.scene-content {
  position: absolute;
  inset: 12% 2.5% 9%;
  z-index: 2;
}
.forest-footer {
  position: absolute;
  left: 18%;
  right: 2%;
  bottom: 1.5%;
  height: 5.5%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 15;
  pointer-events: none;
}
.forest-footer p {
  margin: 0;
  max-width: 100%;
  font-size: 1.2cqw;
  font-weight: 700;
  line-height: 1.4;
  color: #fff8dd;
  text-align: center;
  text-shadow:
    0 0.12cqw 0.15cqw #264c2c,
    0 0 0.5cqw #31563b;
}
.forest-sprite {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0.13cqw 0.2cqw 0.1cqw #48372224);
}
.initial-loading,
.forest-load-error {
  position: absolute;
  inset: 20% 20%;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff5d8;
}
.forest-load-error a {
  padding: 15px;
  background: #fbd777;
  color: #284e40;
  border-radius: 12px;
}
.forest-rotate {
  display: none;
}
.forest-settings {
  width: min(560px, 76vw);
  max-height: 88dvh;
  padding: clamp(18px, 3vw, 32px);
  border: 3px solid #fffbeb;
  border-radius: 24px;
  color: #294e40;
  background: linear-gradient(145deg, #fffdee, #fff0d2);
  box-shadow: 0 15px 70px #153b3366;
}
.forest-settings::backdrop {
  background: #123a32b0;
  backdrop-filter: blur(5px);
}
.settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.settings-head h2 {
  margin: 4px 0 18px;
  font-size: 27px;
}
.settings-head span {
  font-size: 13px;
  color: #8c714b;
}
.settings-head button {
  border: 0;
  border-radius: 50%;
  background: #e8ebd3;
  width: 36px;
  height: 36px;
  font-size: 25px;
}
.master-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e6eddb;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 17px;
  font-weight: 700;
}
.master-setting input {
  width: 22px;
  height: 22px;
  accent-color: #347e67;
}
.sound-sliders {
  display: grid;
  gap: 17px;
  margin: 22px 0;
}
.sound-sliders label {
  display: grid;
  grid-template-columns: 84px 1fr 43px;
  align-items: center;
  gap: 14px;
  font-size: 15px;
}
.sound-sliders input {
  width: 100%;
  accent-color: #347e67;
}
.sound-sliders output {
  text-align: right;
  font-size: 13px;
  color: #6f775e;
}
.settings-note {
  color: #77745c;
  font-size: 13px;
  line-height: 1.6;
}
.settings-done {
  width: 100%;
  padding: 12px;
  border: 2px solid #fff2b8;
  background: linear-gradient(#ffe49a, #f6c65d);
  border-radius: 12px;
  font-weight: 800;
  font-size: 17px;
}
.forest-stage svg {
  flex-shrink: 0;
}
@media (max-width: 700px) and (orientation: landscape) {
  .forest-icon-button {
    width: 5.5cqw;
    height: 5.5cqw;
  }
  .forest-common-controls {
    gap: 0.7cqw;
  }
  .forest-topbar h1 {
    font-size: 2.6cqw;
  }
  .forest-brand {
    font-size: 1.25cqw;
  }
  .brand-leaf {
    font-size: 3cqw;
  }
  .forest-footer p {
    font-size: max(10px, 1.45cqw);
  }
  .forest-settings {
    max-height: 94dvh;
    width: 76vw;
    border-radius: 16px;
    padding: 14px 20px;
  }
  .settings-head h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .sound-sliders {
    gap: 10px;
    margin: 12px 0;
  }
  .sound-sliders label {
    font-size: 13px;
  }
  .settings-note {
    margin: 7px 0;
    font-size: 11px;
  }
  .settings-done {
    padding: 8px;
    font-size: 14px;
  }
  .master-setting {
    padding: 8px 13px;
    font-size: 14px;
  }
}
@media (orientation: portrait) {
  .forest-rotate:not(.dismissed) {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    background: #153f38f5;
    color: #fff4dc;
    z-index: 100;
  }
  .forest-rotate span {
    font-size: 76px;
    color: #ffdd85;
  }
  .forest-rotate h2 {
    font-size: 24px;
    margin: 14px 0;
  }
  .forest-rotate p {
    color: #dce7cc;
  }
  .forest-rotate button {
    margin-top: 16px;
    border: 2px solid #ffeeb1;
    background: #f9d880;
    border-radius: 14px;
    padding: 12px 25px;
    font-size: 17px;
    font-weight: 800;
  }
  .forest-stage {
    width: 100vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.forest-map-stage .forest-footer {
  display: none;
}
.forest-save-warning {
  position: absolute;
  right: 2%;
  top: 10%;
  z-index: 22;
  max-width: 35%;
  background: #fff0c8ed;
  color: #825530;
  padding: 0.35cqw 0.7cqw;
  border-radius: 0.6cqw;
  font-size: max(10px, 0.9cqw);
}
