:root {
  --moss: #1a2e1c;
  --bark: #0d160e;
  --fog: #c5d2c0;
  --blood: #8b1a1a;
  --ember: #c43c2a;
  --bone: #e8e0d0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  color: var(--bone);
  font-family: "Special Elite", ui-monospace, monospace;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, #2d4a32 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 80% 100%, #1c1010 0%, transparent 50%),
    linear-gradient(180deg, #243828 0%, var(--bark) 48%, #050806 100%);
  overflow-x: hidden;
}

/* ambient forest grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  z-index: 1;
}

.fog {
  position: fixed;
  inset: auto 0 0;
  height: 45vh;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(180, 200, 175, 0.08),
    rgba(10, 14, 10, 0.55)
  );
  animation: drift 14s ease-in-out infinite alternate;
}

.fog-b {
  height: 30vh;
  opacity: 0.7;
  animation-duration: 19s;
  animation-direction: alternate-reverse;
}

.vines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(circle at 8% 0%, rgba(20, 40, 22, 0.85) 0 4%, transparent 28%),
    radial-gradient(circle at 92% 5%, rgba(20, 40, 22, 0.8) 0 5%, transparent 30%),
    linear-gradient(90deg, rgba(5, 10, 6, 0.55), transparent 18%, transparent 82%, rgba(5, 10, 6, 0.55));
}

.inapp-warn {
  position: relative;
  z-index: 20;
  margin: 0.75rem 0.85rem 0;
  padding: 0.95rem 1rem 1.05rem;
  border: 2px solid rgba(196, 60, 42, 0.85);
  background: rgba(20, 8, 8, 0.92);
  color: var(--bone);
  text-align: left;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.inapp-warn strong {
  display: block;
  font-family: "Creepster", cursive;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #f0c8c0;
  margin-bottom: 0.35rem;
}

.inapp-warn p,
.inapp-warn ol {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(232, 224, 208, 0.85);
}

.inapp-warn ol {
  padding-left: 1.2rem;
}

.open-browser,
.copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.25rem 0.35rem 0 0;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(196, 60, 42, 0.7);
  background: linear-gradient(180deg, #6e1c1c 0%, #3a0c0c 100%);
  color: var(--bone);
  font-family: "Special Elite", ui-monospace, monospace;
  font-size: 0.85rem;
  cursor: pointer;
}

.copy-link {
  background: rgba(8, 18, 12, 0.85);
  border-color: rgba(197, 210, 192, 0.4);
}

.copy-ok {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.78rem;
  color: #9dcea0;
}

body.is-inapp .stage {
  padding-top: 1rem;
}

.stage {
  position: relative;
  z-index: 5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  gap: 0.85rem;
}

.brand-icon {
  width: clamp(88px, 22vw, 128px);
  height: auto;
  border-radius: 22%;
  box-shadow:
    0 0 0 3px rgba(196, 60, 42, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.55);
  animation: pulse-glow 3.6s ease-in-out infinite;
  background: #fff;
}

.title {
  margin: 0.6rem 0 0;
  line-height: 0.92;
}

.line {
  display: block;
}

.spook {
  font-family: "Creepster", "Nosifer", cursive;
  font-weight: 400;
  font-size: clamp(3.2rem, 14vw, 6.5rem);
  letter-spacing: 0.04em;
  color: var(--bone);
  text-shadow:
    0 2px 0 #1a0505,
    3px 4px 0 rgba(139, 26, 26, 0.55),
    0 0 28px rgba(196, 60, 42, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.7);
  animation: shake 5.5s ease-in-out infinite;
}

.bleed {
  color: #f0d8d0;
  text-shadow:
    0 2px 0 #2a0606,
    4px 5px 0 rgba(139, 26, 26, 0.7),
    0 0 36px rgba(196, 60, 42, 0.45),
    0 14px 44px rgba(0, 0, 0, 0.75);
  animation-delay: 0.35s;
}

.tag {
  margin: 0.4rem 0 1.1rem;
  max-width: 22rem;
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  line-height: 1.45;
  color: rgba(232, 224, 208, 0.72);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(280px, 86vw);
  padding: 0.95rem 1.6rem;
  border: 2px solid rgba(196, 60, 42, 0.75);
  background: linear-gradient(180deg, #6e1c1c 0%, #3a0c0c 100%);
  color: var(--bone);
  font-family: "Creepster", cursive;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-shadow: 0 2px 0 #1a0505;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 220, 200, 0.15);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.download:hover,
.download:focus-visible {
  transform: translateY(-2px) rotate(-0.4deg);
  filter: brightness(1.08);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(196, 60, 42, 0.35);
  outline: none;
}

.download:active {
  transform: translateY(1px);
}

.download-alt {
  margin-top: 0.55rem;
  min-width: min(260px, 80vw);
  padding: 0.7rem 1.3rem;
  border-color: rgba(197, 210, 192, 0.35);
  background: linear-gradient(180deg, #243828 0%, #10180f 100%);
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  color: rgba(232, 224, 208, 0.92);
}

.download-alt:hover,
.download-alt:focus-visible {
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(180, 200, 175, 0.2);
}

.tg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1.35rem;
  max-width: 26rem;
}

.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.2rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(42, 171, 238, 0.45);
  background: rgba(8, 18, 12, 0.72);
  color: rgba(232, 224, 208, 0.9);
  font-family: "Special Elite", ui-monospace, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: lowercase;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.tg-btn:hover,
.tg-btn:focus-visible {
  background: rgba(42, 171, 238, 0.18);
  border-color: rgba(42, 171, 238, 0.85);
  outline: none;
  transform: translateY(-1px);
}

.tg-community {
  border-color: rgba(196, 60, 42, 0.45);
}

.tg-community:hover,
.tg-community:focus-visible {
  background: rgba(196, 60, 42, 0.2);
  border-color: rgba(196, 60, 42, 0.85);
}

@keyframes shake {
  0%,
  92%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  93% {
    transform: translate(-2px, 1px) rotate(-0.6deg);
  }
  95% {
    transform: translate(2px, -1px) rotate(0.5deg);
  }
  97% {
    transform: translate(-1px, 0) rotate(-0.3deg);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(196, 60, 42, 0.35));
  }
}

@keyframes drift {
  from {
    transform: translateY(0);
    opacity: 0.75;
  }
  to {
    transform: translateY(-12px);
    opacity: 1;
  }
}

@media (max-width: 420px) {
  .stage {
    padding-top: 2rem;
  }
}
