/* MYTHVECTOR worlds layer. Loaded after style.css and only adds rules; it overrides nothing in
   style.css. Every colour comes from the brand tokens (--bg, --cyan, --pink, --accent) or the
   world surface tokens below. */

:root {
  /* Surface colours for generated worlds. One of each list is picked per seed. */
  --world-lands:  #4f7a6a, #6f5a86, #5d6f9a;
  --world-waters: #1f4f8f, #2c3f86, #1d5c78;
  --world-atmos:  #74f5ef, #b494f3, #ff86c4;
  --world-dust:   #c98a7a;
  --world-star:   #fff4c5;
  --world-lava:   #ff956b;
}

/* Fixed canvas behind the page. It sits above the page background and below all content. The
   hero keeps its own art and scanlines on top, so the first screen is unchanged. */
.world-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.world-on .world-canvas { opacity: 1; }

/* The same CRT scanlines as .hero:after, applied over the whole world layer. */
.world-scan {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: none;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 3px, #02051936 3px, #02051936 4px);
  opacity: .36;
}
.world-on .world-scan { display: block; }

/* Honesty label, styled like .label and .nav-status. */
.world-hud {
  position: fixed;
  right: 24px;
  bottom: 20px;
  z-index: 15;
  max-width: min(330px, calc(100vw - 40px));
  border: 1px solid var(--pink);
  background: #251129;
  box-shadow: 3px 3px 0 #47204f;
  padding: 5px 10px;
  font-family: var(--body);
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffa8de;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility 0s linear .8s;
}
.world-on .world-hud { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.world-hud b { font-weight: 700; color: var(--cyan); }
/* While the hero fills the screen, the world layer and badge stay hidden: the header and hero
   look exactly like the live site, and the hero already carries its own concept-art label. */
.world-on.world-in-hero .world-canvas,
.world-on.world-in-hero .world-hud { opacity: 0; visibility: hidden; }
.world-on.world-in-hero .world-scan { display: none; }

/* "Plant a new seed" uses the existing .text-link look; this only resets the button chrome. */
.world-plant {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid var(--cyan);
  font-family: var(--body);
  cursor: pointer;
  padding: 0 0 5px;
  margin-top: 0;
}
.world-pause[hidden], .world-plant[hidden] { display: none; }   /* .text-link sets display, which would beat the hidden attribute */
.world-plant:focus-visible { outline: 3px solid var(--cyan); outline-offset: 6px; }

@media (max-width: 720px) {
  .world-hud { left: 20px; right: 20px; bottom: 14px; max-width: none; font-size: 9px; letter-spacing: .5px; }
  .world-on .footer { padding-bottom: 72px; }
}

/* Cost model is now the final standalone content section. */
.cost-section .cost-tracker { margin-top: 0; }
.cost-heading h2 { font-family: var(--display); font-size: 22px; line-height: 1.4; }
@media (max-width: 720px) { .cost-heading h2 { font-size: 20px; } }
