.pre-intro {
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  padding: clamp(12px, 3dvh, 32px) clamp(12px, 4vw, 32px);
  font-family: "Grenze Gotisch", "Comic Sans MS", cursive;
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2dvh, 24px);
  background: transparent;
  color: white;
  cursor: pointer;
  overflow: auto;
  scrollbar-width: none;
}

.pre-intro::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: calc(100dvw - 16%);
  height: calc(100dvh - 20px);
  border-radius: 50%;
  box-sizing: border-box;
  border: 3px solid #9b7a45;
  background: radial-gradient(
    ellipse at center,
    #000 0%,
    #000 38%,
    #063b13 63%,
    #018d21 86%,
    #01f92e 100%
  );
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.pre-intro > * {
  position: relative;
  z-index: 1;
}

.pre-intro::-webkit-scrollbar {
  display: none;
}

.pre-intro img {
  width: min(80vw, 641px);
  max-width: 100%;
  height: auto;
  max-height: min(55dvh, calc(100dvh - 15rem));
  object-fit: contain;
}

.pre-intro span {
  font-size: 1.5rem;
}

.pre-intro-link {
  color: white;
  font-size: 1.5rem;
}

.pre-intro h1 {
  font-family: "Grenze Gotisch", "Comic Sans MS", cursive;
  margin: 0;
  font-size: clamp(2.25rem, 10vw, 4.5rem);
  line-height: 0.95;
  text-align: center;
  color: #53341b;

  -webkit-text-stroke: 1px #9b7a45;

  text-shadow:
    -1px -1px 0 #9b7a45,
    1px -1px 0 #9b7a45,
    -1px 1px 0 #9b7a45,
    1px 1px 0 #9b7a45;
}

.pre-intro[hidden] {
  display: none;
}

.pre-intro > h1[hidden],
.pre-intro > img[hidden],
.pre-intro-actions[hidden],
.how-to-play[hidden] {
  display: none;
}

.pre-intro-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 3%;
  margin-top: 8px;
  width: min(100%, 540px);
}

.forest-button {
  box-sizing: border-box;
  min-width: 0;
  flex: 1 1 0;
  padding: 10px clamp(6px, 2vw, 22px);

  font-family: "Grenze Gotisch", "Comic Sans MS", cursive;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;

  color: #f3e5b5;
  text-decoration: none;

  border-radius: 0;

  background: linear-gradient(rgba(83, 52, 27, 0.95), rgba(52, 31, 16, 0.95));

  border: 2px solid #9b7a45;
  border-radius: 8px;

  box-shadow:
    inset 0 0 0 2px rgba(35, 20, 10, 0.7),
    0 4px 8px rgba(0, 0, 0, 0.45);

  cursor: pointer;

  transition:
    transform 120ms ease,
    filter 120ms ease;

  animation: forest-wobble 3s ease-in-out infinite;
}

.forest-button:first-child {
  border-bottom-left-radius: 12px;
}

.forest-button:last-child {
  border-bottom-right-radius: 12px;
}

.forest-button + .forest-button {
  border-left: 0;
}

.forest-button:nth-child(2) {
  animation-delay: 1.5s;
}

@keyframes forest-wobble {
  0%,
  68%,
  100% {
    rotate: 0deg;
  }

  72% {
    rotate: -2deg;
  }

  76% {
    rotate: 2deg;
  }

  80% {
    rotate: -1.5deg;
  }

  84% {
    rotate: 1deg;
  }

  88% {
    rotate: 0deg;
  }
}

.forest-button:hover,
.forest-button:focus-visible {
  filter: brightness(1.18);
  transform: translateY(-2px);
}

.forest-button:active {
  transform: translateY(1px);
}

.how-to-play {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
}

.how-to-play-content {
  width: min(68vw, 680px);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  max-height: calc(80dvh - 120px);
  padding: 28px 36px;
  box-sizing: border-box;
  overflow-y: auto;
  color: #f3e5b5;
  text-align: center;
  font-family: "Grenze Gotisch", "Comic Sans MS", cursive;
  scrollbar-width: thin;
  scrollbar-color: #9b7a45 rgba(0, 0, 0, 0.35);
}

.how-to-play-content::-webkit-scrollbar {
  width: 10px;
}

.how-to-play-content::-webkit-scrollbar-track {
  margin-block: 32px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.how-to-play-content::-webkit-scrollbar-thumb {
  min-height: 50%;
  border: 2px solid rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  background: #9b7a45;
}

.how-to-play-content::-webkit-scrollbar-thumb:hover {
  background: #01f92e;
}

.how-to-play-content .forest-button {
  display: block;
  min-width: 150px;
  margin: 24px auto 0;
}

.inline-control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  vertical-align: middle;
  margin: 0 4px;
}

.inline-control-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.control-or {
  margin: 0 6px;
  opacity: 0.8;
}

