:root {
  color-scheme: light dark;
  --bg: #f7f4ee;
  --fg: #1b1815;
  --muted: #625f58;
  --border: #cfc8ba;
  --accent: #a73515;
  --accent-fg: #ffffff;
  --accent-2: #186a68;
  --code-bg: #242523;
  --code-fg: #f4f1e9;
  --focus: #1f6fd4;
  --panel: rgba(255, 252, 246, 0.78);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121514;
    --fg: #f1eee7;
    --muted: #bbb5aa;
    --border: #39423e;
    --accent: #f07b4d;
    --accent-fg: #151210;
    --accent-2: #63c7bc;
    --code-bg: #090b0a;
    --code-fg: #f1eee7;
    --focus: #6fa8ff;
    --panel: rgba(18, 21, 20, 0.78);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(196, 181, 253, 0.14), transparent 30rem),
    radial-gradient(circle at 82% 18%, rgba(125, 211, 252, 0.12), transparent 34rem),
    linear-gradient(180deg, #050806 0%, #0b140d 46%, var(--bg) 100%);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  max-width: none;
  margin: 0 auto;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#neural-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

header,
main,
body > footer {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  background: var(--panel);
  backdrop-filter: blur(14px);
}

.meadow-app {
  --world-accent: #bef264;
  --world-accent-2: #7dd3fc;
  --world-panel: rgba(7, 10, 6, 0.42);
  --world-border: rgba(255, 255, 255, 0.16);
  position: relative;
  max-width: 1560px;
  height: calc(100vh - 1rem);
  min-height: calc(100vh - 1rem);
  margin: 0.5rem auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 330px;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(0,0,0,.52), transparent 18%, transparent 78%, rgba(0,0,0,.5)),
    radial-gradient(circle at 48% 22%, rgba(255, 246, 210, 0.18), transparent 22rem),
    url("assets/nature/meadow-photo.jpg") center / cover no-repeat,
    rgba(0, 0, 0, 0.28);
  border: 1px solid var(--world-border);
  border-radius: 2rem;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 80px rgba(125, 211, 252, 0.08);
}

.meadow-app::before,
.meadow-app::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.meadow-app::before {
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.09), transparent 22%, transparent 72%, rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at 50% -10%, rgba(236, 252, 203, 0.16), transparent 22rem);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.meadow-app::after {
  inset: 1px;
  border-radius: inherit;
  box-shadow: inset 0 0 72px rgba(0, 0, 0, 0.42);
}

.meadow-left,
.meadow-controls,
.creature-strip {
  min-width: 0;
  position: relative;
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent),
    var(--world-panel);
  backdrop-filter: blur(28px) saturate(1.1);
}

.meadow-left {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.5rem;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 22px 0 58px rgba(0, 0, 0, 0.25);
}

.meadow-topline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #bef264;
  font-size: 0.9rem;
}

.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--world-accent);
  box-shadow: 0 0 18px rgba(190, 242, 100, 0.72), 0 0 42px rgba(125, 211, 252, 0.28);
}

.meadow-left h1 {
  margin: 1.2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 0.95;
  font-weight: 500;
  text-shadow: 0 0 28px rgba(236, 252, 203, 0.16), 0 14px 40px rgba(0, 0, 0, 0.32);
}

.meadow-subtitle {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.25rem;
}

.meadow-copy {
  max-width: 12.5rem;
  margin: 2.5rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.75;
}

.meadow-mic-block {
  display: grid;
  place-items: center;
  gap: 0.85rem;
  text-align: center;
}

.world-record {
  position: relative;
  width: 7rem;
  height: 7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(224, 205, 255, 0.62);
  color: #ffffff;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.28), transparent 1.6rem),
    radial-gradient(circle, rgba(204, 180, 255, 0.28), rgba(190, 242, 100, 0.1) 48%, rgba(0, 0, 0, 0.42) 72%);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.03),
    0 0 42px rgba(205, 184, 255, 0.42),
    0 18px 48px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.world-record:hover {
  transform: translateY(-2px);
  border-color: rgba(236, 252, 203, 0.68);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.04),
    0 0 82px rgba(190, 242, 100, 0.32),
    0 22px 54px rgba(0, 0, 0, 0.38);
}

.world-record.is-active .mic-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(217, 249, 157, 0.7);
  border-radius: inherit;
  animation: meadow-pulse 1.5s ease-out infinite;
}

.mic-icon {
  font-size: 2.4rem;
  filter: drop-shadow(0 0 16px rgba(236, 252, 203, 0.38));
}

#world-record-label {
  margin: 0;
  font-size: 1.15rem;
}

.world-waveform {
  height: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.18rem;
}

.world-waveform span {
  width: 0.18rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(190, 242, 100, 0.8);
  opacity: 0.36;
}

.world-waveform.is-active span {
  animation: wave-breathe 0.85s ease-in-out infinite;
  animation-delay: calc(var(--i) * 22ms);
}

.world-activity-card,
.sound-sensitivity,
.biome-panel,
.world-slider,
.creature-strip div {
  border: 1px solid var(--world-border);
  border-radius: 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px);
}

.world-activity-card {
  padding: 1rem;
}

.world-activity-card div:first-child,
.world-slider span,
.sound-sensitivity div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.activity-meter,
.stage-meter {
  height: 0.42rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.activity-meter {
  margin: 0.8rem 0 0.4rem;
}

.activity-meter span,
.stage-meter span {
  display: block;
  height: 100%;
  width: 72%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--world-accent), #e0f2fe, var(--world-accent-2));
  box-shadow: 0 0 22px rgba(190, 242, 100, 0.35);
  transition: width 180ms ease;
}

.world-activity-card small {
  color: #bef264;
}

.world-icon-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.world-icon-row button {
  width: 3rem;
  height: 3rem;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.meadow-stage {
  min-width: 0;
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.meadow-stage::before,
.meadow-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.meadow-stage::before {
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.13), transparent 17rem),
    radial-gradient(circle at 72% 18%, rgba(125, 211, 252, 0.16), transparent 19rem),
    linear-gradient(110deg, rgba(255, 255, 255, 0.13), transparent 18%, transparent 72%, rgba(255, 255, 255, 0.08));
  mix-blend-mode: screen;
  opacity: 0.78;
}

.meadow-stage::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 26%),
    radial-gradient(ellipse at 50% 100%, rgba(255,255,255,0.12), transparent 28rem);
  mix-blend-mode: soft-light;
}

#meadow-world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 58%, transparent 0%, rgba(0, 0, 0, 0.02) 42%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.26), transparent 24%, transparent 74%, rgba(0, 0, 0, 0.26)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18));
  pointer-events: none;
  z-index: 2;
}

.world-message {
  position: absolute;
  z-index: 3;
  top: 1.25rem;
  left: 50%;
  width: min(430px, calc(100% - 2rem));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.95rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.46);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34), 0 0 32px rgba(190, 242, 100, 0.08);
  backdrop-filter: blur(24px);
}

.world-message h2 {
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: none;
}

.world-message p {
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.world-message .stage-meter {
  grid-column: 1 / -1;
}

.world-tip {
  position: absolute;
  z-index: 3;
  bottom: 1.25rem;
  left: 50%;
  width: min(720px, calc(100% - 1.75rem));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.46);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(24px);
}

.world-tip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.world-tip strong {
  flex: 0 0 auto;
  color: #bef264;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.meadow-controls {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.25rem;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -22px 0 58px rgba(0, 0, 0, 0.25);
}

.controls-title {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.world-slider {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.world-slider input,
.meadow-range {
  width: 100%;
  height: 3px;
  accent-color: #bef264;
}

.world-slider input {
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--world-accent), rgba(125, 211, 252, 0.9), rgba(255, 255, 255, 0.16));
  outline: none;
}

.world-slider input::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: #ecfccb;
  box-shadow: 0 0 18px rgba(190, 242, 100, 0.75);
}

.world-slider input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: #ecfccb;
  box-shadow: 0 0 18px rgba(190, 242, 100, 0.75);
}

.sound-sensitivity,
.biome-panel {
  padding: 1rem;
}

.sound-sensitivity > span,
.biome-panel p {
  display: block;
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.sound-sensitivity div {
  padding: 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
}

.sound-sensitivity strong {
  color: #bef264;
}

.biome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.biome-grid button {
  min-height: auto;
  padding: 0.7rem;
  color: #ffffff;
  text-align: center;
  font-size: 0.76rem;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.biome-grid button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.biome-grid button[aria-pressed="true"] {
  color: #d9f99d;
  background: transparent;
}

.biome-grid span {
  display: block;
  width: 3.3rem;
  height: 3.3rem;
  margin-inline: auto;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background:
    radial-gradient(circle at 72% 20%, rgba(255,255,255,.72), transparent 0.45rem),
    linear-gradient(180deg, #a8cdd6 0 46%, rgba(95, 137, 87, .86) 47% 100%),
    url("assets/nature/grass-texture.png");
  background-size: auto, auto, 7rem 7rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.28);
}

.biome-grid button[aria-pressed="true"] span {
  border-color: rgba(190,242,100,.85);
  box-shadow: 0 0 0 2px rgba(190,242,100,.22), 0 0 20px rgba(190,242,100,.2);
}

.biome-grid button[data-biome="Forest"] span { background: linear-gradient(180deg, #315441 0 44%, #0f3524 45% 100%); }
.biome-grid button[data-biome="Spring"] span { background: radial-gradient(circle at 28% 70%, #d7a9bd, transparent .7rem), linear-gradient(180deg, #d7e5de 0 48%, #77a866 49% 100%); }
.biome-grid button[data-biome="Autumn"] span { background: radial-gradient(circle at 68% 28%, #e4c16c, transparent .8rem), linear-gradient(180deg, #cda172 0 48%, #806f39 49% 100%); }
.biome-grid button[data-biome="Dusk"] span { background: radial-gradient(circle at 74% 28%, #d7c4b2, transparent .7rem), linear-gradient(135deg, #4d4665, #b58f78 54%, #1b2630); }
.biome-grid button[data-biome="Winter"] span { background: linear-gradient(180deg, #d9e8ed 0 50%, #9fb7b1 51% 100%); }

.creature-strip {
  grid-column: 2;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,.34);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.creature-strip div {
  min-width: 11rem;
  min-height: 9.5rem;
  display: grid;
  gap: 0.25rem;
  align-content: end;
  padding: 0.8rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 28%, rgba(0,0,0,.72)),
    url("assets/nature/meadow-photo.jpg") center / cover;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.creature-strip div.is-active {
  transform: translateY(-3px);
  border-color: rgba(236, 252, 203, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 16px 42px rgba(0, 0, 0, 0.24),
    0 0 34px rgba(190, 242, 100, 0.12);
}

.creature-strip span {
  display: none;
}

.creature-strip div:nth-child(2) span {
  display: none;
}

.creature-strip div:nth-child(3) span {
  display: none;
}

.creature-strip div:nth-child(4) span {
  display: none;
}

.creature-strip div:nth-child(5) span {
  display: none;
}

.creature-strip div:nth-child(2) { background-position: 22% 76%; }
.creature-strip div:nth-child(3) { background-position: 74% 62%; }
.creature-strip div:nth-child(4) { background-position: 84% 78%; }
.creature-strip div:nth-child(5) { background-position: 58% 64%; }

.creature-strip small {
  color: rgba(255, 255, 255, 0.55);
}

.phone-preview {
  display: grid;
  place-items: center;
  margin-top: 0.25rem;
}

.phone-shell {
  width: min(100%, 14.5rem);
  padding: 0.45rem;
  border-radius: 2rem;
  background: #050505;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 18px 42px rgba(0,0,0,.42);
}

.phone-screen {
  overflow: hidden;
  min-height: 24rem;
  border-radius: 1.55rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.78)),
    url("assets/nature/meadow-photo.jpg") center / cover;
  border: 1px solid rgba(255,255,255,.09);
}

.phone-bar {
  height: 4.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(18px);
}

.phone-bar strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.phone-scene {
  height: 8.6rem;
}

.phone-listening {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0.85rem;
  padding: 0.85rem;
  border-radius: 1.2rem;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(16px);
}

.phone-mic {
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(224,205,255,.72);
  background: rgba(0,0,0,.4);
  box-shadow: 0 0 22px rgba(205,184,255,.38);
}

.phone-listening small {
  display: block;
  margin-top: 0.2rem;
  color: #bef264;
  font-size: 0.72rem;
}

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  margin: 0.8rem;
  color: rgba(255,255,255,.78);
  font-size: 0.62rem;
  text-align: center;
}

.classic-header {
  margin-top: 2rem;
}

@keyframes meadow-pulse {
  0% { transform: scale(0.84); opacity: 0.8; }
  100% { transform: scale(1.42); opacity: 0; }
}

@keyframes wave-breathe {
  0%, 100% { height: 0.35rem; opacity: 0.35; }
  50% { height: calc(0.6rem + var(--h, 1rem)); opacity: 1; }
}

@media (max-width: 1080px) {
  .meadow-app {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
    grid-template-rows: minmax(30rem, 62dvh) auto auto;
  }

  .meadow-left {
    grid-column: 1;
    grid-row: 1;
  }

  .meadow-stage {
    grid-column: 2;
    grid-row: 1;
  }

  .meadow-controls {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .creature-strip {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .meadow-app {
    height: auto;
    min-height: auto;
    margin: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(27rem, 60vh) auto auto;
  }

  .meadow-left {
    grid-column: 1;
    grid-row: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .meadow-stage {
    grid-column: 1;
    grid-row: auto;
  }

  .meadow-copy {
    max-width: none;
    margin-top: 1rem;
  }

  .meadow-mic-block {
    margin-top: 1rem;
  }

  .meadow-controls {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .creature-strip {
    grid-column: 1;
  }

  .world-tip {
    align-items: flex-start;
    flex-direction: column;
  }
}

header {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0 1.25rem;
}

.quick-nav {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0 0 0.85rem;
  -webkit-overflow-scrolling: touch;
}

.quick-nav a {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  color: var(--fg);
  text-decoration: none;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-weight: 650;
}

.quick-nav a:focus-visible,
.quick-nav a:hover {
  outline: none;
  border-color: var(--accent-2);
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 750;
  text-transform: uppercase;
}

header h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin: 0 0 0.25rem;
  letter-spacing: 0;
}
header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.tagline {
  color: var(--fg);
  font-size: 1.25rem;
  font-weight: 750;
}

.lede {
  max-width: 42rem;
  margin-top: 0.55rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.primary-link,
.secondary-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--accent);
  font-weight: 750;
  text-decoration: none;
}

.primary-link {
  background: var(--accent);
  color: var(--accent-fg);
}

.secondary-link {
  color: var(--fg);
  background: var(--bg);
  border-color: var(--border);
}

.primary-link:focus-visible,
.secondary-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--muted);
  margin: 2rem 0 0.75rem;
  font-weight: 600;
}

.picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.picker button {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 80ms ease, background 80ms ease;
}

.picker button:hover,
.picker button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.picker button[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.description {
  font-size: 1.05rem;
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--muted);
}

.helper-text {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
}

pre {
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 1rem 1.1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  margin: 0 0 1rem;
  -webkit-overflow-scrolling: touch;
}

.controls {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.controls button {
  min-height: 56px;
  padding: 0.85rem 1.2rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 60ms ease, opacity 80ms ease;
}

.controls button:active { transform: scale(0.98); }

.play-btn {
  flex: 1 1 auto;
  background: var(--accent);
  color: var(--accent-fg);
}

.record-btn {
  flex: 1 1 auto;
  background: var(--accent-2);
  color: #ffffff;
}

.stop-btn {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.controls button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
}

.control-row label {
  font-weight: 600;
}

select {
  min-height: 44px;
  flex: 1 1 auto;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
}

select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.tap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.85rem 0 0;
}

.tap-grid button {
  min-height: 64px;
  padding: 0.75rem 0.5rem;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.tap-grid button:hover,
.tap-grid button:focus-visible {
  border-color: var(--accent-2);
  outline: none;
}

.status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 1.5rem;
}

#recording-player {
  display: none;
  width: 100%;
  margin-top: 0.85rem;
}

#recording-player[src] {
  display: block;
}

.recorder-actions {
  display: none;
}

.recorder-actions.is-ready {
  display: flex;
}

#digest-preview {
  display: none;
}

#digest-preview.is-ready {
  display: block;
}

.record-receipt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.record-receipt div {
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(96, 239, 255, 0.22);
  border-radius: 0.75rem;
  background:
    radial-gradient(circle at top left, rgba(96, 239, 255, 0.13), transparent 58%),
    rgba(15, 23, 42, 0.82);
}

.record-receipt span {
  display: block;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.record-receipt strong {
  display: block;
  margin-top: 0.3rem;
  color: #f8fafc;
  font-size: 1rem;
}

#seed-preview {
  border-color: rgba(250, 204, 21, 0.32);
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.08), rgba(96, 239, 255, 0.08)),
    rgba(2, 6, 23, 0.95);
}

.record-btn.is-recording {
  background: #c32626;
}

.record-visual-shell {
  position: relative;
  min-height: 16rem;
  margin: 1rem 0 0;
  overflow: hidden;
  border: 2px solid rgba(126, 169, 94, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 52% 42%, rgba(190, 242, 100, 0.18), transparent 36%),
    radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.22), transparent 34%),
    #0a1208;
}

#record-visualizer {
  display: block;
  width: 100%;
  height: 16rem;
}

.record-visual-copy {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  color: #f1eee7;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.record-visual-copy span {
  color: #bef264;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.record-visual-copy strong {
  font-size: 1.05rem;
}

.record-visual-copy small {
  color: rgba(241, 238, 231, 0.74);
  font-size: 0.85rem;
}

section.about p {
  margin: 0 0 0.75rem;
}

.digest-panel p,
.why-panel p,
.song-build p,
.collab-panel p,
.alphabet-panel p,
.healing-panel p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
}

.access-grid div {
  min-height: 5.5rem;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.access-grid span {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 750;
}

.access-grid p {
  margin: 0;
  font-size: 0.94rem;
}

.plain-list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.15rem;
}

.plain-list li {
  margin: 0.35rem 0;
}

.flow-list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.35rem;
}

.flow-list li {
  margin: 0.45rem 0;
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
}

.collab-grid div {
  min-height: 6.25rem;
  padding: 0.7rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.collab-grid span {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.collab-grid p {
  margin: 0;
  font-size: 0.94rem;
}

.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
}

.alphabet-grid div {
  min-height: 4.25rem;
  padding: 0.7rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.alphabet-grid span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.alphabet-grid code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

@media (max-width: 430px) {
  .alphabet-grid,
  .collab-grid,
  .access-grid {
    grid-template-columns: 1fr;
  }
}

section.about a {
  color: var(--accent-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

section.feedback {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.feedback-intro {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

fieldset.rating {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}

fieldset.rating legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.rating-buttons {
  display: flex;
  gap: 0.5rem;
}

.rating-buttons button {
  flex: 1 1 0;
  min-height: 48px;
  padding: 0.65rem 0.5rem;
  font: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 80ms ease, background 80ms ease;
}

.rating-buttons button:hover,
.rating-buttons button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.rating-buttons button[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.comment-label {
  display: block;
  margin: 1rem 0 0.4rem;
  font-weight: 600;
}

textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--border);
  border-radius: 9px;
  resize: vertical;
  min-height: 4rem;
}

#composer-source {
  min-height: 18rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  line-height: 1.55;
}

.composer-toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.85rem 0 0.9rem;
}

.composer-toolbar button {
  min-height: 44px;
  padding: 0.45rem 0.35rem;
  font: inherit;
  font-weight: 750;
  color: var(--fg);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.composer-toolbar button:hover,
.composer-toolbar button:focus-visible {
  border-color: var(--accent-2);
  outline: none;
}

.style-picker,
.space-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  border: 0;
  padding: 0;
  margin: 1rem 0;
}

.space-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.style-picker legend,
.space-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 0.2rem;
  font-weight: 750;
}

.style-picker button,
.space-picker button {
  min-height: 52px;
  padding: 0.7rem 0.6rem;
  font: inherit;
  font-weight: 800;
  color: var(--fg);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.style-picker button[aria-pressed="true"],
.space-picker button[aria-pressed="true"] {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

.style-picker button:focus-visible,
.space-picker button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

#composer-loop[aria-pressed="true"] {
  background: #174d5c;
  border-color: #174d5c;
}

.composer-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.playback-receipt {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.composer-summary div {
  min-height: 4.5rem;
  padding: 0.65rem 0.5rem;
  text-align: center;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
}

.composer-summary span {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
}

.composer-summary small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 560px) {
  .composer-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .style-picker,
  .space-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .composer-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .playback-receipt {
    grid-template-columns: 1fr;
  }
}

textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--accent);
}

details.report-preview {
  margin: 1rem 0;
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
}

details.report-preview summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.25rem 0;
}

details.report-preview pre {
  margin: 0.5rem 0 0;
  padding: 0;
  background: transparent;
  font-size: 0.85rem;
  max-height: 24rem;
  overflow: auto;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

#composer-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.composer-actions {
  flex-wrap: wrap;
}

.composer-actions button {
  flex: 1 1 11rem;
}

.feedback-actions button {
  flex: 1 1 12rem;
  min-height: 56px;
  padding: 0.85rem 1.2rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 11px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 60ms ease, opacity 80ms ease;
}

.feedback-actions button:active { transform: scale(0.98); }

.feedback-actions button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Neural Bloom opening scene. */
.wire-app {
  --world-accent: #f59e0b;
  --world-accent-2: #0ea5e9;
  --world-panel: rgba(37, 30, 22, 0.44);
  grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr) minmax(14rem, 18rem);
  background:
    radial-gradient(circle at 72% 18%, rgba(14, 165, 233, 0.14), transparent 24rem),
    linear-gradient(135deg, #f8efe0, #cfe8ef 48%, #8f6b3f);
}

.wire-app::before {
  opacity: 0.36;
}

.wire-app .meadow-left h1 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.25rem, 3.4vw, 3.4rem);
  font-weight: 850;
  letter-spacing: 0;
}

.wire-app .meadow-subtitle {
  color: #fef3c7;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
}

.wire-app .meadow-copy {
  color: rgba(255, 255, 255, 0.82);
  max-width: 24rem;
}

.wire-steps {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.wire-steps li {
  padding-left: 0.15rem;
}

.wire-steps a,
.wire-note a {
  color: #fef3c7;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.wire-app .mic-icon {
  width: auto;
  height: auto;
  color: #3b260e;
  font-size: 0.9rem;
  font-weight: 900;
}

.wire-app .world-record {
  background:
    radial-gradient(circle at 50% 42%, #fef3c7, #f59e0b 72%);
  box-shadow:
    0 0 0 8px rgba(245, 158, 11, 0.13),
    0 18px 50px rgba(120, 53, 15, 0.34);
}

.wire-app .world-record.is-active {
  box-shadow:
    0 0 0 12px rgba(245, 158, 11, 0.18),
    0 0 42px rgba(14, 165, 233, 0.28);
}

.wire-app .stage-shade {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 42%),
    linear-gradient(0deg, rgba(48, 35, 20, 0.28), transparent 34%);
}

.wire-app .world-message,
.wire-app .world-tip {
  background: rgba(54, 41, 27, 0.68);
  border-color: rgba(255, 255, 255, 0.18);
}

.wire-controls {
  align-content: start;
}

.wire-mode-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.wire-mode-picker legend {
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.wire-mode-picker button {
  min-height: 3.6rem;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.9rem;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.wire-mode-picker button[aria-pressed="true"] {
  color: #2d1d08;
  background: #fef3c7;
  border-color: #fbbf24;
}

.wire-mode-picker button:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-controls {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wire-note {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--world-border);
  border-radius: 0.8rem;
  background: rgba(0, 0, 0, 0.22);
}

.wire-note p {
  margin: 0;
}

.wire-strip {
  background: rgba(47, 35, 23, 0.54);
}

.wire-strip div {
  min-width: 10rem;
  min-height: 7rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(0,0,0,0.44)),
    repeating-linear-gradient(0deg, transparent 0 1.42rem, rgba(255,255,255,0.16) 1.42rem 1.52rem),
    linear-gradient(135deg, rgba(96, 165, 250, 0.34), rgba(146, 64, 14, 0.44));
}

.creature-strip.wire-strip div:nth-child(n) span {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
  color: #3b260e;
  background: #fef3c7;
  border-radius: 999px;
  text-align: center;
  line-height: 1.7rem;
  font-weight: 900;
}

.wire-strip strong {
  color: #fff7ed;
}

.wire-strip small {
  color: rgba(255, 255, 255, 0.72);
}

.wire-app .phone-preview,
.wire-app .biome-panel,
.wire-app .world-icon-row {
  display: none;
}

.record-visual-copy span {
  color: #fbbf24;
}

@media (max-width: 1080px) {
  .wire-app {
    grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
    grid-template-rows: minmax(30rem, 62dvh) auto auto;
  }

  .wire-app .meadow-left {
    grid-column: 1;
    grid-row: 1;
  }

  .wire-app .meadow-stage {
    grid-column: 2;
    grid-row: 1;
  }

  .wire-app .meadow-controls,
  .wire-app .wire-strip {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .wire-app {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(27rem, 60vh) auto auto;
  }

  .wire-app .meadow-left,
  .wire-app .meadow-stage,
  .wire-app .meadow-controls,
  .wire-app .wire-strip {
    grid-column: 1;
  }

  .wire-app .meadow-left {
    grid-row: auto;
  }

  .wire-app .meadow-stage {
    grid-row: auto;
    min-height: 27rem;
  }

  .wire-app .meadow-controls,
  .wire-app .wire-strip {
    grid-row: auto;
  }

  .record-receipt {
    grid-template-columns: 1fr;
  }
}

/* Neural Bloom pass: tech, space, electricity. */
.neural-bloom-app {
  background:
    radial-gradient(circle at 52% 42%, rgba(96, 239, 255, 0.22), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(250, 204, 21, 0.12), transparent 24%),
    linear-gradient(135deg, #050816 0%, #0b1026 50%, #111827 100%);
  color: #eef6ff;
}

.neural-bloom-app::before {
  background:
    linear-gradient(rgba(96, 239, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 239, 255, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.42;
}

.neural-bloom-app .meadow-left,
.neural-bloom-app .meadow-controls,
.neural-bloom-app .wire-strip div {
  background: rgba(5, 8, 22, 0.72);
  border-color: rgba(96, 239, 255, 0.28);
  box-shadow: 0 0 32px rgba(96, 239, 255, 0.12);
}

.neural-bloom-app .meadow-subtitle {
  color: #60efff;
  text-shadow: 0 0 24px rgba(96, 239, 255, 0.55);
}

.neural-bloom-app .meadow-copy,
.neural-bloom-app .wire-steps,
.neural-bloom-app .wire-note p,
.neural-bloom-app .world-tip p {
  color: rgba(238, 246, 255, 0.82);
}

.neural-bloom-app .world-record {
  background:
    radial-gradient(circle, rgba(250, 204, 21, 0.95), rgba(251, 113, 133, 0.82) 48%, rgba(96, 239, 255, 0.12) 72%),
    #0b1026;
  border-color: rgba(250, 204, 21, 0.72);
  box-shadow:
    0 0 0 10px rgba(96, 239, 255, 0.1),
    0 0 46px rgba(250, 204, 21, 0.38);
}

.neural-bloom-app .world-record.is-active {
  box-shadow:
    0 0 0 14px rgba(96, 239, 255, 0.16),
    0 0 70px rgba(96, 239, 255, 0.44),
    0 0 90px rgba(250, 204, 21, 0.28);
}

.neural-bloom-app .meadow-stage {
  background:
    radial-gradient(circle at 52% 48%, rgba(96, 239, 255, 0.18), transparent 38%),
    #050816;
  border-color: rgba(96, 239, 255, 0.34);
}

.neural-bloom-app .stage-shade {
  background:
    linear-gradient(180deg, rgba(5, 8, 22, 0.04), rgba(5, 8, 22, 0.32)),
    radial-gradient(circle at center, transparent 34%, rgba(5, 8, 22, 0.34));
}

.neural-bloom-app .world-message,
.neural-bloom-app .world-tip {
  background: rgba(5, 8, 22, 0.72);
  border-color: rgba(96, 239, 255, 0.26);
  color: #eef6ff;
}

.neural-bloom-app .world-message span,
.neural-bloom-app .controls-title span:last-child,
.neural-bloom-app .wire-strip div span {
  color: #facc15;
  text-shadow: 0 0 18px rgba(250, 204, 21, 0.55);
}

.neural-bloom-app .wire-mode-picker button {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(96, 239, 255, 0.22);
  color: #dbeafe;
}

.neural-bloom-app .wire-mode-picker button[aria-pressed="true"] {
  background: linear-gradient(135deg, #60efff, #8b5cf6);
  color: #050816;
  box-shadow: 0 0 26px rgba(96, 239, 255, 0.34);
}

.neural-bloom-app .wire-strip div.is-awake {
  border-color: rgba(250, 204, 21, 0.44);
  box-shadow: 0 0 28px rgba(250, 204, 21, 0.18);
}

@media (min-width: 1081px) and (max-height: 820px) {
  .meadow-app {
    height: 100vh;
    min-height: 100vh;
    margin: 0 auto;
    border-radius: 1.2rem;
  }

  .wire-app {
    grid-template-columns: minmax(16rem, 22rem) minmax(28rem, 1fr) minmax(13rem, 18rem);
    grid-template-rows: minmax(0, 1fr);
  }

  .wire-app .meadow-left {
    grid-column: 1;
    grid-row: 1;
    gap: 0.7rem;
    padding: 1rem 1.35rem;
    overflow: hidden;
  }

  .wire-app .meadow-left h1 {
    margin-top: 0.65rem;
    font-size: clamp(2.6rem, 4.2vw, 4.1rem);
  }

  .wire-app .meadow-subtitle {
    margin-top: 0.3rem;
  }

  .wire-app .meadow-copy {
    max-width: 19rem;
    margin-top: 1.15rem;
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .wire-steps {
    gap: 0.25rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .wire-app .meadow-mic-block {
    gap: 0.5rem;
  }

  .wire-app .world-record {
    width: 7.1rem;
    height: 7.1rem;
  }

  #world-record-label {
    margin: 0;
    font-size: 1rem;
  }

  .world-waveform {
    height: 1.1rem;
  }

  .world-activity-card {
    display: none;
  }

  .wire-app .meadow-stage {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
  }

  .wire-app .world-message {
    top: 1.25rem;
    max-width: min(31rem, 62%);
    padding: 0.8rem 1rem;
  }

  .wire-app .world-message h2 {
    font-size: 1rem;
  }

  .wire-app .world-message p {
    font-size: 0.86rem;
  }

  .wire-app .world-tip {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 0.75rem 1rem;
  }

  .wire-app .meadow-controls {
    grid-column: 3;
    grid-row: 1;
    gap: 0.85rem;
    padding: 1rem 1.35rem;
    overflow: hidden;
  }

  .wire-mode-picker {
    gap: 0.45rem;
  }

  .wire-mode-picker button {
    min-height: 3.15rem;
    padding: 0.65rem 0.85rem;
  }

  .sound-sensitivity,
  .wire-note {
    padding: 0.8rem;
  }

  .wire-note {
    gap: 0.25rem;
  }

  .creature-strip.wire-strip {
    display: none;
  }
}
