/* ============================================================
   The Valley — a record of everything he has ever done.
   Built from emoji and CSS only. Nothing here animates on a
   loop, flashes, or asks to be looked at: it is a place he
   passes, not a thing competing with the quests above it.
   ============================================================ */

.wv-head { padding: 10px 4px 6px; }
.wv-title { font-size: 27px; color: var(--gold); }
.wv-sub { font-size: 18px; color: var(--ink-dim); margin-top: 3px; }

.wv-scene {
  position: relative; overflow: hidden;
  border: 3px solid #2b2118; border-radius: 4px;
  margin: 4px 0 10px; min-height: 250px;
  display: flex; flex-direction: column; justify-content: flex-end;
}

/* ── the sky, from the real clock ──────────────────────────── */
.wv-day   { background: linear-gradient(#7ec0ee 0%, #b6dcf5 62%, #d7ecfa 100%); }
.wv-dawn  { background: linear-gradient(#48619b 0%, #d98f6b 55%, #f2c48a 100%); }
.wv-dusk  { background: linear-gradient(#2f3b6b 0%, #a45f7a 52%, #e0955c 100%); }
.wv-night { background: linear-gradient(#0d1330 0%, #1b2551 60%, #2c3566 100%); }

.wv-sky { position: absolute; inset: 0; pointer-events: none; }
.wv-sun, .wv-moon { position: absolute; top: 14px; right: 18px; font-size: 30px; }

/* Everything between the sky and the ground stands ON the ground, so the
   layout anchors it rather than pixel offsets that drift as it resizes. */
.wv-mid {
  position: relative; z-index: 1; flex: 1;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 14px 0 12px;
}
/* a scatter of stars, painted rather than drawn */
.wv-night .wv-sky {
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 34% 9%,  #fff, transparent),
    radial-gradient(1.5px 1.5px at 58% 22%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 76% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 90% 27%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 22% 31%, #fff, transparent);
  opacity: .85;
}

/* ── the tree: the thing that grew slowly ──────────────────── */
.wv-tree { font-size: 46px; line-height: .95; transform-origin: bottom center; }

/* ── lanterns: one per three quiet, unticked good things ───── */
.wv-lamps { display: flex; align-items: flex-end; gap: 3px; font-size: 20px; line-height: .95; }
.wv-night .wv-lamp, .wv-dusk .wv-lamp { filter: drop-shadow(0 0 6px #ffcf6a); }

/* ── the ground he has earned ──────────────────────────────── */
.wv-ground { display: flex; align-items: flex-end; gap: 0; position: relative; z-index: 1; }
.wv-tile {
  flex: 1 1 0; min-width: 0; height: 46px; position: relative;
  background: linear-gradient(#6b9c3f 0 9px, #7a5a34 9px 100%);
  border-right: 1px solid rgba(0,0,0,.22);
}
.wv-night .wv-tile { filter: brightness(.62); }
.wv-dusk .wv-tile, .wv-dawn .wv-tile { filter: brightness(.82); }
.wv-tile:last-child { border-right: 0; }

/* ground still to come — a promise, not a gap */
.wv-tile.locked {
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.10) 0 5px, transparent 5px 10px),
    linear-gradient(#4b6330 0 9px, #55402a 9px 100%);
  filter: saturate(.5) brightness(.72);
  border-right-color: rgba(0,0,0,.14);
}
.wv-night .wv-tile.locked { filter: saturate(.5) brightness(.45); }

.wv-bit { position: absolute; bottom: 8px; font-size: 14px; transform: translateX(-50%); }
.wv-things {
  position: absolute; bottom: 6px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 2px;
}
.wv-thing { font-size: 26px; line-height: 1; cursor: pointer; }

/* where a picked-up thing can go */
.wv-tile.wv-target {
  cursor: pointer;
  box-shadow: inset 0 0 0 3px var(--gold);
}

/* ── the strip on the Quests screen ────────────────────────── */
.wv-small { min-height: 104px; cursor: pointer; border-width: 2px; }
.wv-small .wv-mid { padding: 0 10px 0 8px; }
.wv-small .wv-tree { font-size: 28px; }
.wv-small .wv-tile { height: 30px; }
.wv-small .wv-thing { font-size: 17px; }
.wv-small .wv-bit { font-size: 10px; bottom: 5px; }
.wv-small .wv-lamps { font-size: 14px; gap: 2px; }
.wv-small .wv-sun, .wv-small .wv-moon { font-size: 20px; top: 8px; right: 10px; }

/* ── what comes next, and what earns it ────────────────────── */
.wv-soon {
  font-size: 18px; color: var(--ink-dim); line-height: 1.55;
  background: rgba(0,0,0,.18); border-left: 4px solid var(--grass);
  padding: 10px 12px; border-radius: 3px; margin-bottom: 6px;
}
.wv-soon b { color: var(--gold); }

/* ── things he has found, waiting to be put somewhere ──────── */
.wv-hint { font-size: 18px; color: var(--ink-dim); margin: 2px 0 8px; }
.wv-hint.picking { color: var(--gold); }
.wv-hint span { text-decoration: underline; cursor: pointer; margin-left: 6px; }
.wv-shelf { display: flex; flex-wrap: wrap; gap: 8px; }
.wv-shelfitem {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  border: 2px solid var(--stone); border-radius: 3px;
  background: rgba(0,0,0,.18); padding: 8px 11px;
}
.wv-shelfitem.picked { border-color: var(--gold); background: rgba(0,0,0,.35); }
.wv-si-ico { font-size: 24px; }
.wv-si-name { font-size: 18px; color: var(--ink-dim); }
.wv-shelfitem.picked .wv-si-name { color: var(--gold); }
.wv-none { font-size: 18px; color: var(--ink-dim); padding: 4px 2px; }

.wv-note { font-size: 16px; color: var(--stone); margin: 12px 2px 4px; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  .wv-scene * { transition: none !important; animation: none !important; }
}
