/* craft.wild.as hero keyvisual — scoped section port (hero palette) */

.wild-starry {
  --ws-paper: #050a0a;
  --ws-ink: #ffffff;
  --ws-muted: rgba(163, 247, 191, 0.65);
  --ws-line: rgba(163, 247, 191, 0.16);
  --ws-line-2: rgba(163, 247, 191, 0.08);
  --ws-cell: 14px;
  --ws-gutter: clamp(1.5rem, 4vw, 3.5rem);
  --ws-max: 1176px;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  position: relative;
  isolation: isolate;
  min-height: 42vh;
  background-color: var(--ws-paper);
  color: var(--ws-ink);
  overflow: hidden;
  border-bottom: 1px solid rgba(163, 247, 191, 0.14);
}

/* Live canvas fills the section (not the whole page) */
#wild-starry #hero-kv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.wild-starry .hero {
  position: relative;
  z-index: 1;
  min-height: 18vh;
  background: transparent;
  pointer-events: none;
}

.wild-starry .intro {
  position: relative;
  z-index: 2;
  padding: calc(var(--ws-cell) * 2.25) var(--ws-gutter) calc(var(--ws-cell) * 2.75);
}

.wild-starry .intro .wrap {
  max-width: var(--ws-max);
  margin: 0 auto;
}

.wild-starry .intro .lead {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 28ch;
  opacity: 0;
  text-shadow: 0 1px 24px rgba(5, 10, 10, 0.45);
}

.wild-starry .intro .lead.ready {
  opacity: 1;
}

.wild-starry .intro .lead .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.wild-starry .intro .lead .ln > span {
  display: block;
  transform: translateY(115%);
  transition: transform 0.85s steps(6);
}

.wild-starry .intro .lead.in .ln > span {
  transform: translateY(0);
}

/* Pixel controls */
.wild-starry .pxctl {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  background: rgba(13, 45, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(163, 247, 191, 0.22);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: auto;
}

.wild-starry .pxctl .lbl {
  color: var(--ws-muted);
  margin: 0 3px;
}

.wild-starry .pxctl .lbl:first-child {
  margin-left: 0;
}

.wild-starry .pxctl button {
  font: inherit;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(163, 247, 191, 0.28);
  background: #0d2d2a;
  color: var(--ws-ink);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}

.wild-starry .pxctl button.on {
  background: #a3f7bf;
  color: #050a0a;
  border-color: #a3f7bf;
}

@media (max-width: 680px) {
  .wild-starry {
    --ws-gutter: 1.75rem;
  }
  .wild-starry .pxctl {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wild-starry .intro .lead {
    opacity: 1;
  }
  .wild-starry .intro .lead .ln > span {
    transform: none;
    transition: none;
  }
}

/* CELL/BRUSH toolbar removed */
.wild-starry .pxctl { display: none !important; }
