:root {
  --paper: #fefefe;
}

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

html, body {
  height: 100%;
  background: var(--paper);
  overflow: hidden;
}

#scene {
  position: fixed;
  inset: 0;
  background: var(--paper);
}

/* Static fallback drawing; main.js lays it out exactly like the canvas */
#fallback {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

#trees,
#life {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}

.ready #trees,
.ready #life { opacity: 1; }
.ready #fallback { visibility: hidden; }

/* debug (?t=): no fade-in, so screenshots show the scene at full strength */
.nofade #trees,
.nofade #life { transition: none; }
