@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Crimson+Text:ital@0;1&display=swap');

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  background: linear-gradient(to bottom, #0a1a0a 0%, #1a2e0a 40%, #2d4a1a 70%, #1a2a0a 100%);
  font-family: 'Crimson Text', serif;
  overflow: hidden;
  min-height: 100vh;
  position: relative;
}

.mist {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 200px 100px at 20% 60%, rgba(100,140,60,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 300px 150px at 70% 40%, rgba(80,120,40,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 250px 120px at 50% 80%, rgba(60,100,30,0.07) 0%, transparent 70%);
  animation: mist 8s ease-in-out infinite alternate;
}

@keyframes mist {
  from { opacity: 0.5; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.03); }
}

.vine {
  position: fixed;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #2d5a1a, #1a3a0a);
  animation: grow ease-in-out infinite alternate;
  transform-origin: top center;
  border-radius: 2px;
  z-index: 1;
}

@keyframes grow {
  from { transform: scaleY(0.6) rotate(var(--tilt)); opacity: 0.4; }
  to   { transform: scaleY(1) rotate(var(--tilt)); opacity: 0.9; }
}

.leaf {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 0 80% 0 80%;
  animation: fall linear infinite;
  opacity: 0;
  z-index: 2;
  top: -20px;
}

@keyframes fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(110vh) rotate(var(--spin)); opacity: 0; }
}

.spore {
  position: fixed;
  border-radius: 50%;
  background: rgba(180,220,100,0.6);
  animation: float-spore ease-in-out infinite;
  opacity: 0;
  z-index: 2;
}

@keyframes float-spore {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  20%  { opacity: 0.7; }
  80%  { opacity: 0.4; }
  100% { transform: translateY(-40vh) translateX(var(--sx)); opacity: 0; }
}

.grass {
  position: fixed;
  bottom: 0;
  width: 3px;
  border-radius: 3px 3px 0 0;
  transform-origin: bottom center;
  animation: sway ease-in-out infinite alternate;
  z-index: 2;
}

@keyframes sway {
  from { transform: rotate(var(--lean)); }
  to   { transform: rotate(calc(var(--lean) * -1)); }
}

.site-title {
  position: fixed;
  top: 8%;
  width: 100%;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: rgba(180,220,120,0.9);
  text-shadow: 0 0 20px rgba(100,180,50,0.5);
  z-index: 10;
}

.subtitle {
  position: fixed;
  top: 16%;
  width: 100%;
  text-align: center;
  font-family: 'Crimson Text', serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: rgba(140,180,80,0.6);
  z-index: 10;
}

.planet {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  z-index: 10;
  animation: float 5s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.zoomable:hover { transform: scale(1.15) !important; }

.zoomable {
  z-index: 20;
}

.planet img { display: block; }

.planet-label {
  color: rgba(180,220,120,0.8);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  margin-top: 8px;
  opacity: 0.7;
  text-align: center;
  font-family: 'Cinzel', serif;
}

.planet:hover .planet-label {
  opacity: 1;
  color: #aaddaa;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-15px); }
}

.mirrored img { transform: scaleX(-1); }

.page-transition {
  position: fixed;
  inset: 0;
  background: #0a1a0a;
  z-index: 999;
  animation: fadein 0.6s ease 0.1s forwards;
  pointer-events: none;
  opacity: 1;
}

@keyframes fadein {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes fadeout {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float-center 5s ease-in-out infinite;
}

@keyframes float-center {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50%       { transform: translate(-50%, -50%) translateY(-15px); }
}


