@charset "UTF-8";
:root {
  color-scheme: light;
  --paper: #fbf5e8;
  --paper-2: #efe5cf;
  --card: #fffdf8;
  --card-soft: #f7f0e0;
  --ink: #142a21;
  --ink-deep: #0e1e17;
  --btn-ink-bg: #142a21;
  --btn-ink-fg: #fffdf4;
  --muted: #4b5e54;
  --line: #d4cbb9;
  --orange: #f47a3f;
  --orange-bright: #ff955b;
  --rust: #b54520;
  --teal: #247b6d;
  --amber: #e9ab3e;
  --rose: #d95d7b;
  --studio-bg: linear-gradient(180deg, #eae6d2 0%, #dee4d0 100%);
  --studio-line: #c2c9b4;
  --support-bg: linear-gradient(135deg, #f3c48d 0%, #eca972 100%);
  --font-display: "Rubik", "Segoe UI", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", "Segoe UI", Arial, sans-serif;
  --font-note: "Shantell Sans", "Nunito", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --shadow-soft: 0 16px 38px rgba(20, 42, 33, 0.09);
  --shadow-card: 0 4px 0 rgba(20, 42, 33, 0.14);
  --shadow-hard: 0 5px 0 #142a21;
  --mx: 50vw;
  --my: 35vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
}

html[data-mood="golden"] {
  --paper: #fbf0db;
  --paper-2: #f1dbba;
  --card: #fffaf0;
  --card-soft: #f7e6c9;
  --ink: #221f18;
  --ink-deep: #15120d;
  --btn-ink-bg: #221f18;
  --btn-ink-fg: #fff8eb;
  --muted: #5c5040;
  --line: #d8c2a1;
  --rust: #bd3f16;
  --studio-bg: linear-gradient(180deg, #f0dfbf 0%, #e7cfb0 100%);
  --studio-line: #ceb28c;
  --shadow-hard: 0 5px 0 #2b2114;
}

html[data-mood="night"] {
  color-scheme: dark;
  --paper: #0e2019;
  --paper-2: #152b22;
  --card: #162e25;
  --card-soft: #1b362c;
  --ink: #f6efe0;
  --ink-deep: #0b1813;
  --btn-ink-bg: #f6efe0;
  --btn-ink-fg: #10241c;
  --muted: #b4c7bc;
  --line: rgba(246, 239, 224, 0.18);
  --rust: #ff9a62;
  --teal: #65cdb8;
  --studio-bg: linear-gradient(180deg, #11241d 0%, #0b1914 100%);
  --studio-line: rgba(246, 239, 224, 0.16);
  --support-bg: linear-gradient(135deg, #274a3d 0%, #1c382e 100%);
  --shadow-soft: 0 18px 42px rgba(4, 12, 9, 0.45);
  --shadow-card: 0 4px 0 rgba(4, 12, 9, 0.45);
  --shadow-hard: 0 5px 0 #06100c;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.8rem; }
section[id] { scroll-margin-top: 4.6rem; }
body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 68rem 54rem at 12% 8rem, rgba(255, 228, 174, 0.42), transparent),
    radial-gradient(ellipse 55rem 42rem at 90% 40rem, rgba(167, 206, 176, 0.22), transparent);
  transition: background-color 0.45s ease, color 0.35s ease;
}
html[data-mood="night"] body {
  background-image:
    radial-gradient(circle 42rem at var(--mx) var(--my), rgba(255, 202, 118, 0.14), transparent 70%),
    radial-gradient(ellipse 70rem 50rem at 85% 10rem, rgba(46, 120, 96, 0.22), transparent),
    radial-gradient(ellipse 60rem 44rem at 15% 45rem, rgba(244, 122, 63, 0.08), transparent);
}
/* Subtle tactile kraft paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
html[data-mood="night"] body::before { opacity: 0.045; mix-blend-mode: soft-light; }

button, input, select, summary { font: inherit; color: inherit; }
button, select, summary, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, summary, select { cursor: pointer; }
button { background: none; border: 1px solid var(--line); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #28a3d4; outline-offset: 3px; }
[hidden] { display: none !important; }
svg { width: 1.2rem; height: 1.2rem; flex: none; display: inline-block; }
p, h1, h2, h3, h4, figure { margin: 0; }
.wrap { width: min(92%, 78rem); margin-inline: auto; position: relative; z-index: 3; }

/* Fixed Living Ambient & Foliage & Floating Pet Layers */
.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.edge-foliage {
  position: fixed;
  top: 0;
  width: clamp(14px, 5vw, 92px);
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.92;
}
.edge-left { left: 0; }
.edge-right { right: 0; transform: scaleX(-1); }

.peek-companion {
  position: fixed;
  right: 0;
  bottom: 24%;
  z-index: 54;
  border: 0;
  padding: 0;
  width: 78px;
  height: 78px;
  background: transparent;
  transform: translateX(105%) rotate(-12deg);
  transition: transform 0.6s cubic-bezier(.22, 1.35, .36, 1);
  filter: drop-shadow(-4px 6px 10px rgba(14, 30, 23, 0.25));
}
.peek-companion img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.peek-companion.is-peeking { transform: translateX(22%) rotate(-8deg); }
.peek-companion.is-happy { transform: translateX(8%) rotate(4deg) scale(1.1); }

.site-roam-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 55;
}
.site-roam-layer.off { display: none; }
#siteRoamCanvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.site-roam-hit {
  position: fixed;
  bottom: 2px;
  left: 9%;
  width: 48px;
  height: 44px;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  pointer-events: auto;
  border-radius: 50%;
  cursor: grab;
}
.site-roam-hit:active { cursor: grabbing; }

/* Header Mast */
.mast {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(21, 49, 39, 0.93);
  backdrop-filter: blur(12px);
  color: #fff8e9;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.25s ease;
}
.mast.scrolled { box-shadow: 0 10px 30px rgba(10, 24, 18, 0.22); }
.mast-inner {
  display: flex;
  align-items: center;
  gap: clamp(0.45rem, 1.1vw, 1rem);
  min-height: 3.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand i {
  width: 2.05rem;
  height: 2.05rem;
  display: grid;
  place-items: center;
  background: #ffc895;
  border-radius: 46% 52% 45% 42%;
  transform: rotate(-8deg);
  color: #213f31;
  transition: transform 0.35s cubic-bezier(.22, 1.4, .36, 1);
}
.site-footer .brand i { background: var(--btn-ink-bg); color: var(--orange-bright); }
.brand:hover i { transform: rotate(8deg) scale(1.08); }
.brand svg { width: 1.3rem; height: 1.3rem; }

.lang-menu {
  position: relative;
  border-left: 1px solid #ffffff38;
  padding-left: 0.45rem;
  z-index: 65;
}
.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.35rem;
  padding: 0 0.42rem;
  border-radius: 0.55rem;
  font-weight: 700;
  font-size: 0.9rem;
  list-style: none;
  transition: background 0.18s;
}
.lang-menu summary:hover { background: #ffffff18; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu span { min-width: 1.4em; text-align: center; }
.lang-menu summary svg:first-child { width: 1rem; }
.lang-menu summary svg:last-child { width: 0.8rem; transition: transform 0.2s; }
.lang-menu[open] summary svg:last-child { transform: rotate(180deg); }
.lang-menu:not([open]) > div { display: none; }
.lang-menu > div {
  color: var(--ink);
  position: absolute;
  display: flex;
  gap: 0.28rem;
  left: 0.4rem;
  top: calc(100% + 0.35rem);
  background: var(--card);
  border: 1.5px solid var(--ink);
  box-shadow: 0 6px 0 rgba(14, 30, 23, 0.22);
  padding: 0.35rem;
  border-radius: 0.7rem;
  animation: popDown 0.18s ease-out;
}
.lang-menu a {
  min-width: 2.6rem;
  min-height: 2.25rem;
  display: grid;
  place-content: center;
  border-radius: 0.42rem;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.15s, color 0.15s;
}
.lang-menu a[aria-current], .lang-menu a:hover { background: var(--btn-ink-bg); color: var(--btn-ink-fg); }
.lang-menu a:empty { border: 1.5px dashed var(--line); }

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.15vw, 1.2rem);
}
.main-nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.35rem 0;
  white-space: nowrap;
  transition: color 0.18s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--orange-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(.22, 1, .36, 1);
}
.main-nav a:hover { color: #ffca96; }
.main-nav a:hover::after { transform: scaleX(1); }

.mast-right {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin-left: auto;
}
.mood-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.18rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.mood-switch button, .icon-pill {
  border: 0;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #e9e4d3;
  transition: background 0.18s, color 0.18s, transform 0.16s;
}
.mood-switch button svg, .icon-pill svg { width: 0.96rem; height: 0.96rem; }
.mood-switch button:hover, .icon-pill:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.mood-switch button[aria-pressed="true"] { background: #ffd3a3; color: #162e24; }
.icon-pill {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}
.icon-pill[aria-pressed="true"] {
  background: #8ee3a1;
  color: #132a20;
  border-color: #8ee3a1;
}

.mobile-toggle {
  display: none;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.65rem;
  border: 1.5px solid #ffffff42;
  background: #ffffff0d;
  place-items: center;
}
.mobile-drawer {
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
  color: var(--ink);
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 1rem 4% 1.25rem;
  display: grid;
  gap: 0.75rem;
  animation: popDown 0.22s ease-out;
}
.mobile-nav { display: grid; gap: 0.4rem; }
.mobile-nav a {
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--line);
}
.mobile-moods {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.65rem;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 700;
}
.mobile-moods .mood-switch { background: var(--paper-2); border-color: var(--line); }
.mobile-moods .mood-switch button { color: var(--ink); }
.mobile-sound { color: var(--ink); background: var(--paper-2); border-color: var(--line); }
.mobile-sound[aria-pressed="true"] { background: #27a468; color: #fff; border-color: #27a468; }

/* Shared Buttons & Typography */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  min-height: 2.95rem;
  border-radius: 0.78rem;
  padding: 0.68rem 1.2rem;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.18s cubic-bezier(.22, 1.3, .36, 1), box-shadow 0.18s, background 0.18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.ink { background: var(--btn-ink-bg); color: var(--btn-ink-fg); }
.orange { background: linear-gradient(135deg, var(--orange-bright), var(--orange)); color: #13211a; }
.outline { background: var(--card); color: var(--ink); }
.mast-get { background: #ffd3a3; color: #162e24; min-height: 2.38rem; padding: 0.42rem 0.85rem; font-size: 0.88rem; border-color: #162e24; box-shadow: 0 2px 0 #0d1d16; }
.mast-get svg { width: 0.96rem; height: 0.96rem; }

.kicker, .meta, .folio-label, .card-cat, .rack-label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kicker { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--rust); }
.kicker span { display: inline-block; width: 1.8rem; height: 2px; background: var(--rust); }
.kicker .pulse-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: #27a468;
  box-shadow: 0 0 0 4px rgba(39, 164, 104, 0.22);
  animation: pulseDot 2s infinite;
}
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; }
h1 {
  font-size: clamp(2.55rem, 4.3vw, 3.95rem);
  letter-spacing: -0.04em;
  line-height: 1.03;
  font-weight: 800;
  margin: 0.75rem 0 0.95rem;
}
h1 em {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--rust);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.intro, .section-head p, .section-lead, .dl-panel p, .support p, .feature-card p {
  color: var(--muted);
  line-height: 1.58;
  font-size: 1.01rem;
}

/* Hero Section — Balanced above the fold! */
.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.6rem, 3.6vw, 3.2rem);
  align-items: center;
  padding-block: clamp(1.6rem, 2.8vw, 2.8rem);
}
.hero-copy, .hero-stage-stack { min-width: 0; }
.intro { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.25rem; }
.hero-plats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}
.plat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.36rem 0.72rem;
  border-radius: 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.plat-pill svg { width: 0.92rem; height: 0.92rem; color: var(--teal); }
.plat-pill:hover { transform: translateY(-2px); border-color: var(--ink); background: var(--card-soft); }

.hero-quick-pick {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: var(--card);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.6rem;
}
.pick-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.quick-label {
  font-family: var(--font-note);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
}
.roam-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.34rem 0.2rem 0.24rem;
  border-radius: 2rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
}
.roam-pill img {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: #f0e4cd;
  object-fit: cover;
}
.roam-pill button {
  border: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.18s;
}
.roam-pill button:hover { background: rgba(244, 122, 63, 0.2); transform: scale(1.1); }
.roam-pill button[aria-pressed="false"] { opacity: 0.42; }
.roam-pill svg { width: 0.92rem; height: 0.92rem; }

.hero-face-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.hero-face-chip {
  width: 2.65rem;
  height: 2.65rem;
  padding: 0.16rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  transition: transform 0.2s cubic-bezier(.22, 1.4, .36, 1), border-color 0.18s, box-shadow 0.18s;
}
.hero-face-chip img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hero-face-chip:hover { transform: translateY(-3px) scale(1.08); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.hero-face-chip.active { border-color: var(--rust); background: rgba(244, 122, 63, 0.18); box-shadow: 0 3px 0 var(--rust); }
.hero-face-more {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--rust);
  padding: 0.34rem 0.65rem;
  border-radius: 2rem;
  background: rgba(244, 122, 63, 0.14);
  border: 1px solid rgba(181, 69, 32, 0.25);
  transition: transform 0.16s, background 0.16s;
}
.hero-face-more:hover { transform: translateY(-2px); background: rgba(244, 122, 63, 0.24); }

.pack-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--line);
}
.pack-roster { display: flex; flex-wrap: wrap; gap: 0.38rem; }
.pack-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.18rem 0.5rem 0.18rem 0.22rem;
  border-radius: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
}
.pack-chip.is-leader { border-color: var(--rust); }
.pack-chip img { width: 1.35rem; height: 1.35rem; border-radius: 50%; object-fit: cover; }
.pack-rm {
  border: 0;
  padding: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--muted);
}
.pack-rm:hover { background: rgba(217, 93, 123, 0.2); color: var(--rose); }
.pack-add-btn {
  padding: 0.28rem 0.66rem;
  border-radius: 2rem;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 0.15s, background 0.15s;
}
.pack-add-btn:hover { transform: translateY(-1px); background: var(--orange-bright); color: #142a21; }
.pack-hint { font-size: 0.78rem; color: var(--muted); }

/* Hero OS Diorama */
.hero-diorama {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 1.15rem;
  box-shadow: var(--shadow-hard), var(--shadow-soft);
  overflow: hidden;
}
.diorama-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.58rem 0.85rem;
  background: var(--card-soft);
  border-bottom: 1.5px solid var(--line);
  flex-wrap: wrap;
}
.traffic { display: inline-flex; gap: 0.3rem; }
.traffic i { width: 0.58rem; height: 0.58rem; border-radius: 50%; background: #df694d; }
.traffic i:nth-child(2) { background: #e8b447; }
.traffic i:nth-child(3) { background: #5da678; }
.os-tabs { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.os-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.62rem;
  border-radius: 2rem;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.os-tab svg { width: 0.86rem; height: 0.86rem; }
.os-tab:hover { border-color: var(--ink); }
.os-tab[aria-pressed="true"] { background: var(--btn-ink-bg); color: var(--btn-ink-fg); border-color: var(--btn-ink-bg); }
.diorama-screen {
  position: relative;
  height: clamp(14.5rem, 22vw, 19.5rem);
  background: #e6efe2;
}
.diorama-screen canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.diorama-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem 0.82rem;
  background: var(--card-soft);
  border-top: 1px solid var(--line);
}
.diorama-cap { font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.diorama-btns { display: flex; flex-wrap: wrap; gap: 0.38rem; }
.diorama-btns button {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.34rem 0.68rem;
  border-radius: 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 0.16s, background 0.16s, border-color 0.16s;
}
.diorama-btns button:hover { transform: translateY(-1px); border-color: var(--ink); background: rgba(244, 122, 63, 0.16); }
.diorama-btns button[aria-pressed="true"] { background: var(--btn-ink-bg); color: var(--btn-ink-fg); border-color: var(--btn-ink-bg); }
.diorama-btns svg { width: 0.86rem; height: 0.86rem; }

/* Editorial Botanical Field Folio Band */
.folio-band {
  padding-block: 0.4rem 1.8rem;
}
.folio {
  position: relative;
  padding: 0.6rem;
  background: #142c22;
  color: #fbf6e6;
  border-radius: 1.15rem;
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.2s ease-out;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.folio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 28rem at var(--gx, 50%) var(--gy, 50%), rgba(255, 232, 178, 0.1), transparent 70%);
}
.folio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.15rem 0.45rem 0.55rem;
}
.folio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #e9d9b3;
  font-size: 0.74rem;
}
.folio-label svg { width: 0.9rem; height: 0.9rem; }
.print-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.print-dots button {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.3rem 0.68rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 248, 228, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #dfe5d4;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.18s, border-color 0.18s;
}
.print-dots span { display: block; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #93a186; }
.print-dots [aria-pressed="true"] { background: rgba(255, 149, 91, 0.2); border-color: var(--orange-bright); color: #fff; }
.print-dots [aria-pressed="true"] span { background: var(--orange-bright); }
.plate img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: 0.72rem;
}
.plate figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.65rem 0.55rem 0.25rem;
}
.plate figcaption strong { font-size: 0.98rem; }
.plate figcaption i { color: #cbd4be; font: italic 0.9rem var(--font-serif); }
.plate.reveal img { animation: expose 0.45s cubic-bezier(.22, 1, .36, 1) both; }
.call-pet {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  color: #13281f;
  background: #ffd3a3;
  border: 1px solid #ffd3a3;
  font-weight: 800;
  font-size: 0.82rem;
  transition: transform 0.16s, background 0.16s;
}
.call-pet:hover { background: var(--orange-bright); transform: scale(1.04); }
.call-pet svg { width: 0.9rem; height: 0.9rem; }
#folioPet {
  position: absolute;
  bottom: 2.85rem;
  left: 0.6rem;
  width: calc(100% - 1.2rem);
  height: 5.5rem;
  pointer-events: none;
}

/* Sections */
.section { padding-block: clamp(2.8rem, 4.8vw, 4.4rem); }
.section .kicker + h2, .section-head .kicker + h2 { margin-top: 0.6rem; }
h2 { letter-spacing: -0.035em; line-height: 1.07; font-size: clamp(2.05rem, 3.6vw, 3.4rem); font-weight: 800; }
h2 sup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 0.85rem var(--font-mono);
  vertical-align: top;
  margin: 0.35rem 0 0 0.45rem;
  border: 1.5px solid #142a21;
  background: var(--orange-bright);
  color: #142a21;
  padding: 0.18rem 0.5rem;
  border-radius: 2rem;
}
.section-head p, .section-lead { margin-top: 0.65rem; max-width: 48rem; }
.reveal-item { opacity: 1; transform: none; }

/* Atlas Toolbar & 37-Animal Grid */
.atlas-toolbar {
  margin-top: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.search-box {
  position: relative;
  flex: 1 1 16rem;
  min-width: 0;
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 2rem;
  padding: 0 0.75rem;
  transition: border-color 0.18s;
}
.search-box:focus-within { border-color: var(--ink); }
.search-box svg { width: 1rem; height: 1rem; color: var(--muted); }
.search-box input {
  border: 0;
  background: transparent;
  padding: 0.55rem 0.55rem;
  font-size: 0.92rem;
  outline: none;
}
.search-box button {
  border: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.search-box button:hover { background: var(--paper-2); color: var(--ink); }
.vibe-filters { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.vibe-chip {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.42rem 0.82rem;
  border-radius: 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.vibe-chip[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.roulette-btn { min-height: 2.5rem; padding: 0.45rem 0.95rem; font-size: 0.86rem; border-radius: 2rem; }

.filters, .reactions, .dl-tabs, #cliActions, .scene-switch, .prop-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.filters { margin-block: 0.9rem 1.35rem; }
.filter, .reaction, .dl-tab, #cliActions button, .sum button, .scene-chip, .prop-chip {
  font-weight: 700;
  border-radius: 2rem;
  min-height: 2.35rem;
  padding: 0.36rem 0.9rem;
  font-size: 0.88rem;
  background: var(--card);
  border: 1.5px solid var(--line);
  transition: transform 0.15s, background 0.18s, color 0.18s, border-color 0.18s;
}
.filter small { color: var(--muted); font: 600 0.76rem var(--font-mono); margin-left: 0.25rem; }
.filter[aria-pressed="true"], .reaction[aria-pressed="true"], .dl-tab[aria-pressed="true"], .scene-chip[aria-pressed="true"] {
  background: var(--btn-ink-bg);
  color: var(--btn-ink-fg);
  border-color: var(--btn-ink-bg);
}
.filter[aria-pressed="true"] small { opacity: 0.8; color: inherit; }
.filter:hover, .reaction:hover, .dl-tab:hover, .scene-chip:hover, .prop-chip:hover { border-color: var(--ink); transform: translateY(-1px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem 1.05rem;
}
.zoo-card {
  position: relative;
  border: 1.5px solid var(--line);
  padding: 0.55rem;
  background: var(--card);
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: 1.05rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s cubic-bezier(.22, 1.3, .36, 1), box-shadow 0.22s, border-color 0.2s;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.zoo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle 14rem at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.25), transparent 65%);
  transition: opacity 0.22s;
}
.zoo-card:hover::after { opacity: 1; }
.zoo-card:hover, .zoo-card:focus-within {
  transform: perspective(900px) translateY(-5px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  border-color: var(--ink);
  box-shadow: 0 8px 0 var(--ink);
}
.zoo-card.is-selected {
  border-color: var(--rust);
  box-shadow: 0 7px 0 var(--rust);
}
.card-select-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: transparent;
  border-radius: inherit;
}
.card-art {
  position: relative;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  aspect-ratio: 1.38;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--card-tint);
  border: 1px solid rgba(20, 42, 33, 0.14);
  border-radius: 0.72rem;
}
.tone-0 { --card-tint: #f3c699; }
.tone-1 { --card-tint: #c6d4b3; }
.tone-2 { --card-tint: #d7cbe2; }
.tone-3 { --card-tint: #ebd79b; }
.tone-4 { --card-tint: #b0cfcd; }
.tone-5 { --card-tint: #e8c3b3; }
.card-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(20, 42, 33, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.14), 0 0 0 26px rgba(255, 255, 255, 0.08);
  bottom: -24%;
  right: -8%;
  transition: transform 0.4s ease;
}
.zoo-card:hover .card-art::before { transform: scale(1.14); }
.card-art img {
  position: absolute;
  width: 78%;
  height: 90%;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.32s cubic-bezier(.22, 1.3, .36, 1);
}
.card-art .pose-wave { opacity: 0; transform: scale(0.95); }
.zoo-card:hover .pose-rest, .zoo-card:focus-within .pose-rest { opacity: 0; transform: scale(0.94); }
.zoo-card:hover .pose-wave, .zoo-card:focus-within .pose-wave { opacity: 1; transform: scale(1.04) translateY(-4%); }
.card-live {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.card-art.is-live .card-live { opacity: 1; }
.card-art.is-live img { opacity: 0 !important; transform: scale(0.96) !important; }

.card-cat {
  position: absolute;
  top: 0.5rem;
  left: 0.52rem;
  font-size: 0.66rem;
  padding: 0.14rem 0.44rem;
  border-radius: 2rem;
  color: #142a21;
  background: rgba(255, 253, 248, 0.86);
  z-index: 2;
}
.card-sound {
  position: absolute;
  bottom: 0.48rem;
  left: 0.52rem;
  z-index: 2;
  font-family: var(--font-note);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.14rem 0.56rem;
  border-radius: 2rem 2rem 2rem 0.25rem;
  color: #142a21;
  background: #fffcf2;
  border: 1.5px solid #142a21;
  opacity: 0;
  transform: translateY(6px) scale(0.86);
  transition: opacity 0.22s, transform 0.28s cubic-bezier(.22, 1.4, .36, 1);
}
.zoo-card:hover .card-sound, .zoo-card:focus-within .card-sound { opacity: 1; transform: translateY(0) scale(1); }
.card-action, .card-pack-add {
  position: absolute;
  top: 0.46rem;
  pointer-events: auto;
  background: rgba(255, 253, 248, 0.92);
  color: #142a21;
  border: 1px solid rgba(20, 42, 33, 0.3);
  border-radius: 50%;
  width: 1.72rem;
  height: 1.72rem;
  display: grid;
  place-items: center;
  z-index: 4;
  transition: transform 0.22s, background 0.2s, color 0.2s;
}
.card-action { right: 0.46rem; }
.card-pack-add { right: 2.35rem; opacity: 0.88; }
.card-action:hover { background: #142a21; color: #fffdf4; transform: rotate(90deg) scale(1.08); }
.card-pack-add:hover { background: var(--orange-bright); color: #142a21; transform: scale(1.1); opacity: 1; }
.card-action svg, .card-pack-add svg { width: 0.85rem; height: 0.85rem; }

.card-body { position: relative; z-index: 2; pointer-events: none; display: grid; min-width: 0; overflow-wrap: anywhere; gap: 0.34rem; padding: 0.62rem 0.3rem 0.3rem; }
.card-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem; }
.card-title-row strong { font-family: var(--font-display); font-size: 1.13rem; font-weight: 700; letter-spacing: -0.02em; }
.coat-swatches { display: inline-flex; gap: 0.22rem; }
.coat-swatches i { width: 0.62rem; height: 0.62rem; border-radius: 50%; border: 1px solid rgba(20, 42, 33, 0.4); }
.card-attr {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
}
.card-attr svg { width: 0.92rem; height: 0.92rem; }
.card-description { color: var(--muted); font-size: 0.88rem; line-height: 1.44; }

.zoo-bonus-card {
  grid-column: span 2;
  border: 1.5px dashed var(--ink);
  border-radius: 1.05rem;
  padding: 1.35rem;
  background: var(--card-soft);
  display: flex;
  align-items: center;
  gap: 1.3rem;
  box-shadow: var(--shadow-card);
}
.bonus-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.85rem;
  border-radius: 0.85rem;
  background: var(--card);
  border: 1.5px solid var(--line);
  color: var(--rust);
  flex: none;
}
.bonus-art svg { width: 1.9rem; height: 1.9rem; }
.bonus-art svg:nth-child(2) { color: var(--teal); }
.bonus-art svg:nth-child(3) { color: #9c6230; }
.bonus-art svg:nth-child(4) { color: var(--rose); }
.bonus-copy { display: grid; gap: 0.5rem; justify-items: start; }
.bonus-copy h3 { font-size: 1.3rem; }
.bonus-copy p { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.atlas-empty {
  margin-top: 1.6rem;
  padding: 1.4rem;
  text-align: center;
  border-radius: 1rem;
  border: 1.5px dashed var(--line);
  background: var(--card);
  color: var(--muted);
  font-weight: 700;
}

/* Interactive Living Habitat & Props Studio */
.studio-band {
  position: relative;
  z-index: 3;
  background: var(--studio-bg);
  border-block: 1.5px solid var(--studio-line);
}
.workbench {
  margin-top: 1.65rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.3rem, 2.6vw, 2.2rem);
  align-items: start;
}
.sim {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 1.05rem;
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}
.sim-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  border-bottom: 1.5px solid var(--line);
  padding: 0.6rem 0.95rem;
  background: var(--card-soft);
}
.sim-bar strong { font-family: var(--font-display); font-size: 1rem; }
.scene-switch { gap: 0.28rem; }
.scene-chip { min-height: 1.95rem; padding: 0.22rem 0.64rem; font-size: 0.78rem; }
#pauseMotion {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-weight: 800;
  background: var(--card);
  border: 1.5px solid var(--line);
}
.scene {
  position: relative;
  height: clamp(15.5rem, 24vw, 21.5rem);
  overflow: hidden;
  background: #e6efe2;
}
.scene canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
#greeting {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-note);
  color: #142a21;
  background: #fff9df;
  border: 1.5px solid #142a21;
  border-radius: 1.2rem;
  padding: 0.28rem 0.85rem;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 3px 0 rgba(20, 42, 33, 0.15);
  pointer-events: none;
  animation: popDown 0.2s ease-out;
}
#greeting:empty { display: none; }

.prop-rack {
  padding: 0.8rem 1rem;
  background: var(--card-soft);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
}
.rack-label { color: var(--muted); font-size: 0.72rem; }
.prop-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  min-height: 2.1rem;
  padding: 0.26rem 0.68rem;
  font-size: 0.81rem;
}
.prop-chip svg { width: 0.98rem; height: 0.98rem; }
.prop-chip[aria-pressed="true"] {
  background: #fff0d9;
  border-color: #142a21;
  color: #142a21;
  box-shadow: 0 2px 0 #142a21;
}
.prop-chip[aria-pressed="true"] svg { color: #b54520; }

.guest-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.guest-row label { flex: 1; }

.controls {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 1.05rem;
  padding: 1.15rem;
  box-shadow: var(--shadow-soft);
}
label { font-size: 0.88rem; display: grid; gap: 0.34rem; font-weight: 700; }
select, input {
  padding: 0.58rem 0.72rem;
  background-color: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 0.55rem;
  font-size: 0.93rem;
  min-width: 0;
  width: 100%;
}
select {
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='m2 2 6 6 6-6' fill='none' stroke='%2388968e' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 0.74rem;
}
.controls h3 { margin: 1.05rem 0 0.55rem; font-size: 1rem; }
.controls details, .sum { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
summary { font-weight: 700; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-top: 0.75rem; }
#addProfile, #bongoInput, #cliActions { margin-top: 0.75rem; }
#addProfile > div { display: flex; gap: 0.5rem; margin-top: 0.35rem; }

/* Contrast Dark Forest Interactive Features Section */
.features-band {
  position: relative;
  z-index: 3;
  background:
    radial-gradient(ellipse 52rem 36rem at 82% 15%, rgba(244, 122, 63, 0.14), transparent),
    radial-gradient(ellipse 46rem 34rem at 14% 85%, rgba(62, 178, 152, 0.14), transparent),
    linear-gradient(165deg, #10241c 0%, #173328 55%, #0d1d17 100%);
  color: #faf3e3;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
}
.features-band .kicker { color: #ffab76; }
.features-band .kicker span { background: #ffab76; }
.features-band .section-lead { color: #bfd0c6; }

.feature-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.feature-card {
  background: rgba(255, 252, 244, 0.055);
  border: 1.5px solid rgba(255, 244, 224, 0.16);
  border-radius: 1.1rem;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(4, 12, 9, 0.24);
  transition: transform 0.24s cubic-bezier(.22, 1.3, .36, 1), border-color 0.2s, background 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 198, 138, 0.5);
  background: rgba(255, 252, 244, 0.08);
}
.feature-card p { color: #c7d6cd; font-size: 0.92rem; }
.feat-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.feat-icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.72rem;
  background: rgba(255, 200, 149, 0.16);
  border: 1px solid rgba(255, 200, 149, 0.35);
  display: grid;
  place-items: center;
  color: #ffc58f;
}
.feat-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
  background: rgba(101, 205, 184, 0.15);
  color: #8ce5d2;
}
.feature-card h3 { font-size: 1.16rem; margin-top: 0.15rem; color: #fff8ea; }

.feat-widget {
  margin-top: auto;
  padding-top: 0.55rem;
  display: grid;
  gap: 0.5rem;
}
.feat-stage {
  position: relative;
  height: 4.9rem;
  border-radius: 0.75rem;
  background: rgba(9, 20, 16, 0.55);
  border: 1px solid rgba(255, 248, 228, 0.14);
  overflow: hidden;
}
.feat-stage canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.feat-stage-overlay { display: grid; place-items: center; }
.feat-pass-btn {
  position: relative;
  z-index: 1;
  padding: 0.36rem 0.85rem;
  border-radius: 2rem;
  background: rgba(255, 211, 163, 0.18);
  border: 1px solid #ffd3a3;
  color: #ffebd0;
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 0.12s, background 0.16s;
}
.feat-pass-btn:hover { background: #ffd3a3; color: #13281f; }
.feat-pass-btn:active { transform: scale(0.95); }
.feat-stage-overlay canvas { position: absolute; inset: 0; z-index: 2; }
.feat-pet-hit {
  position: absolute;
  bottom: 0;
  left: 18%;
  width: 38px;
  height: 42px;
  transform: translateX(-50%);
  z-index: 3;
  border: 0;
  background: transparent;
}
.feat-meta-row, .feat-bongo-row, .feat-care-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #cad9cf;
}
.feat-count {
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.1);
}
.mini-keys { display: flex; gap: 0.34rem; }
.mini-keys button {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.42rem;
  border: 1.5px solid rgba(255, 240, 214, 0.45);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
  background: #1b382d;
  color: #fff8ea;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  transition: transform 0.1s, background 0.1s;
}
.mini-keys button.is-hit, .mini-keys button:active {
  transform: translateY(2px);
  box-shadow: none;
  background: var(--orange-bright);
  color: #142a21;
  border-color: var(--orange-bright);
}
.feat-hint { font-family: var(--font-mono); font-size: 0.72rem; color: #a3b9ad; }

.feat-vitals-ui { display: grid; gap: 0.45rem; }
.feat-slider-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.feat-slider-row span { white-space: nowrap; }
.feat-slider-row input[type="range"] {
  flex: 1;
  padding: 0;
  border: 0;
  accent-color: var(--orange-bright);
  background: transparent;
}
.feat-toggles { display: flex; align-items: center; gap: 0.38rem; flex-wrap: wrap; }
.feat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.28rem 0.65rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 244, 224, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #f6efe0;
  font-size: 0.77rem;
  font-weight: 700;
}
.feat-chip svg { width: 0.86rem; height: 0.86rem; }
.feat-chip:hover { border-color: #ffd3a3; }
.feat-chip[aria-pressed="true"] { background: #ffd3a3; color: #142a21; border-color: #ffd3a3; }

.mini-meters { margin-left: auto; display: flex; align-items: end; gap: 0.28rem; height: 1.25rem; }
.mini-meters i {
  width: 0.34rem;
  height: 45%;
  border-radius: 0.15rem;
  background: #65cdb8;
  transition: height 0.2s, background 0.2s;
}
.mini-meters.is-music i { animation: eqBar 0.65s ease-in-out infinite alternate; }
.mini-meters.is-music i:nth-child(2) { animation-delay: 0.15s; }
.mini-meters.is-music i:nth-child(3) { animation-delay: 0.3s; }
.mini-meters.is-music i:nth-child(4) { animation-delay: 0.45s; }
.mini-meters.is-hot i { height: 100%; background: #ff6e54; }

.mini-cli {
  padding: 0.42rem 0.5rem;
  border-radius: 0.6rem;
  background: #0a1712;
  border: 1px solid rgba(142, 227, 161, 0.24);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.mini-cli button {
  border: 1px solid rgba(142, 227, 161, 0.32);
  background: rgba(142, 227, 161, 0.09);
  color: #93ebaa;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.22rem 0.48rem;
  border-radius: 0.4rem;
}
.mini-cli button:hover { background: #8ee3a1; color: #0c1d16; }

/* Installation & Downloads */
.downloads {
  margin-top: 1.55rem;
  border: 1.5px solid var(--ink);
  border-radius: 1.05rem;
  background: var(--card);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}
.dl-tabs {
  padding: 0.75rem 0.9rem;
  background: var(--card-soft);
  border-bottom: 1.5px solid var(--line);
}
.dl-tab { display: inline-flex; align-items: center; gap: 0.45rem; }
.dl-tab svg { width: 1rem; height: 1rem; }
.dl-panel {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.4rem, 3vw, 2.8rem);
  padding: clamp(1.25rem, 3vw, 2.4rem);
  animation: popDown 0.24s ease-out;
}
.dl-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.os-rec-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.58rem;
  border-radius: 2rem;
  background: #d9f3e4;
  color: #165e3b;
  border: 1px solid #82caa4;
}
.dl-panel h3 { margin: 0.55rem 0 0.3rem; font-size: clamp(1.5rem, 2.5vw, 2.15rem); letter-spacing: -0.03em; }
.dl-subbadge { font-family: var(--font-mono); font-size: 0.8rem; color: var(--teal); font-weight: 600; margin-bottom: 0.6rem; }
.dl-reqs { margin-top: 0.65rem; font-size: 0.88rem !important; font-weight: 700; color: var(--ink) !important; }
.dl-actions { margin-top: 1.15rem; }
.step-list { padding-left: 1.35rem; margin: 0.75rem 0 1.15rem; line-height: 1.58; }
.step-list li + li { margin-top: 0.55rem; }
.browser-split { display: grid; gap: 0.95rem; margin-bottom: 1rem; }
.install-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
}
.install-box h4 { display: flex; align-items: center; gap: 0.42rem; font-size: 1rem; margin-bottom: 0.5rem; }
.install-box ol { padding-left: 1.25rem; margin: 0; line-height: 1.52; font-size: 0.93rem; }
.install-box li + li { margin-top: 0.4rem; }

.cmd-wrap {
  border-radius: 0.72rem;
  overflow: hidden;
  border: 1px solid #2b493c;
  background: #142820;
  margin-top: 0.7rem;
}
.cmd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.42rem 0.8rem;
  background: #0e1e17;
  color: #b7c9b6;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f4f2e2;
  font-size: 0.75rem;
  font-weight: 700;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.12); }
.copy-btn svg { width: 0.82rem; height: 0.82rem; }
pre {
  margin: 0;
  color: #eff2df;
  padding: 0.85rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.55;
}
.signal { margin-top: 0.95rem; }
.signal summary { display: inline-flex; align-items: center; gap: 0.4rem; }
.signal p { margin-top: 0.5rem; font-size: 0.92rem; }
.install-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: var(--card-soft);
  border: 1px solid var(--line);
}
.install-note strong { display: block; margin-bottom: 0.25rem; font-size: 0.92rem; color: var(--ink); }
.install-note p { font-size: 0.9rem; line-height: 1.52; }
.sum code { display: block; overflow-wrap: anywhere; margin: 0.65rem 0; font-family: var(--font-mono); font-size: 0.8rem; }

/* FAQ Accordion */
.faq-list { margin-top: 1.45rem; display: grid; gap: 0.75rem; }
.faq-item {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] { border-color: var(--ink); box-shadow: 0 4px 0 rgba(20, 42, 33, 0.14); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-family: var(--font-display);
  font-size: 1.03rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { transition: transform 0.25s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-body { padding: 0 1.15rem 1.05rem; color: var(--muted); line-height: 1.6; }

/* Support Banner & Footer */
.support {
  position: relative;
  z-index: 3;
  background: var(--support-bg);
  border-block: 1.5px solid var(--ink);
}
.support-inner { padding-block: 2.5rem; display: flex; gap: 1.5rem; align-items: center; }
.support-inner h2 { font-size: clamp(1.85rem, 3.2vw, 2.85rem); }
.support p { max-width: 46rem; margin-top: 0.5rem; }
html:not([data-mood="night"]) .support p { color: #2b3a2e; }
.support-paw { transform: rotate(-14deg); width: 4.3rem; flex: none; animation: floatSlow 4s ease-in-out infinite; }
.support-paw svg { width: 100%; height: auto; color: #7a3e20; }
html[data-mood="night"] .support-paw svg { color: #ffd3a3; }
.support-actions { display: grid; gap: 0.55rem; margin-left: auto; flex-shrink: 0; max-width: 100%; }
.feed-links {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  background: #284b3e;
  color: #fff8e9;
  border: 1px solid #718878;
  border-radius: 0.75rem;
  padding: 2px;
}
.feed-caption { display: none; }
.mast .feed-links { margin-top: 0.2rem; }
.mast .feed-links:has(a:only-of-type) { min-width: 3.8rem; justify-content: center; }
.mast .feed-caption {
  display: block;
  position: absolute;
  top: -0.49rem;
  left: 0.55rem;
  padding-inline: 0.28rem;
  background: #153127;
  color: #f3dec0;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
}
.feed-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.4rem 0.5rem;
  min-height: 1.95rem;
  border-radius: 0.52rem;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.feed-links a + a { border-inline-start: 1px solid #ffffff36; }
.feed-links a:hover, .feed-links a:focus-visible { background: #426451; }
.feed-links svg { width: 1.12rem; height: 1.12rem; }
.support-actions .feed-links { width: 100%; }
.support-actions .feed-links a { flex: 1; min-height: 2.6rem; }
#shareStatus { overflow-wrap: anywhere; font-size: 0.88rem; font-weight: 700; }
#shareStatus:empty { display: none; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding-block: 2.2rem 3.5rem;
}
.foot-left { display: grid; gap: 0.4rem; }
.foot-note { font-size: 0.86rem; color: var(--muted); }
.foot-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.foot-langs { display: flex; gap: 0.35rem; }
.foot-langs a {
  min-width: 2.4rem;
  min-height: 2rem;
  display: grid;
  place-content: center;
  border-radius: 0.45rem;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
}
.foot-langs a[aria-current] { background: var(--btn-ink-bg); color: var(--btn-ink-fg); border-color: var(--btn-ink-bg); }
.foot-langs a:empty { border: 1.5px dashed var(--line); }
.back-top { font-weight: 700; text-decoration: underline; text-underline-offset: 0.28em; }

/* Species Passport Modal */
body.modal-open { overflow: hidden; }
.passport-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 24, 19, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1rem;
  animation: expose 0.2s ease-out;
}
.passport-card {
  position: relative;
  width: min(100%, 56rem);
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(8, 18, 14, 0.45);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  padding: 1.35rem;
}
.passport-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  z-index: 2;
}
.passport-close:hover { background: var(--ink); color: var(--paper); }
.passport-stage-col { display: grid; gap: 0.8rem; align-content: start; }
#passportCanvas {
  width: 100%;
  height: 15.5rem;
  border-radius: 0.95rem;
  border: 1.5px solid var(--line);
  background: #e6efe2;
  cursor: pointer;
}
.passport-poses { display: grid; gap: 0.45rem; }
.passport-pose-list { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.passport-pose {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.68rem;
  border-radius: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.passport-pose[aria-pressed="true"] { background: var(--btn-ink-bg); color: var(--btn-ink-fg); border-color: var(--btn-ink-bg); }
.passport-info-col { display: grid; gap: 0.85rem; align-content: start; padding-top: 0.4rem; }
.passport-info-col .kicker em { font-style: normal; color: var(--teal); }
.passport-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem; }
.passport-title-row h3 { font-size: 1.85rem; letter-spacing: -0.03em; }
.passport-greet {
  font-family: var(--font-note);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.16rem 0.65rem;
  border-radius: 2rem;
  background: #fff5d6;
  color: #142a21;
  border: 1.5px solid #142a21;
}
.passport-desc { color: var(--muted); line-height: 1.55; }
.passport-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.75rem;
  border-radius: 0.85rem;
  background: var(--card-soft);
  border: 1px solid var(--line);
}
.passport-specs > div { display: grid; gap: 0.22rem; font-size: 0.82rem; }
.passport-specs span { color: var(--muted); font-size: 0.72rem; font-family: var(--font-mono); text-transform: uppercase; }
.speed-dots { display: flex; gap: 0.25rem; align-items: center; padding-top: 0.2rem; }
.speed-dots i { width: 0.72rem; height: 0.38rem; border-radius: 0.2rem; background: var(--line); }
.speed-dots i.on { background: var(--orange); }
.passport-custom { display: grid; gap: 0.65rem; }
#passportCoatRow { display: grid; gap: 0.35rem; font-size: 0.88rem; font-weight: 700; }
.passport-coats { display: flex; gap: 0.45rem; }
.passport-coat {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--swatch);
  border: 2px solid var(--line);
}
.passport-coat[aria-pressed="true"] { border-color: var(--rust); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--rust); }
.passport-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }

/* Animations */
@keyframes expose { from { opacity: 0.4; transform: scale(1.02); } to { opacity: 1; transform: scale(1); } }
@keyframes popDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 3px rgba(39, 164, 104, 0.25); } 50% { box-shadow: 0 0 0 8px rgba(39, 164, 104, 0); } }
@keyframes eqBar { from { height: 28%; } to { height: 100%; } }
@keyframes floatSlow { 0%, 100% { transform: rotate(-14deg) translateY(0); } 50% { transform: rotate(-8deg) translateY(-6px); } }

/* Responsive Breakpoints */
@media (max-width: 1259px) {
  .edge-foliage, .peek-companion { display: none; }
}
@media (min-width: 1180px) and (max-width: 1320px) {
  .mast-get span { display: none; }
  .main-nav { gap: 0.68rem; }
  .main-nav a { font-size: 0.85rem; }
}
@media (max-width: 1179px) {
  .main-nav { display: none; }
  .mobile-toggle { display: grid; }
}
@media (max-width: 960px) {
  .mast-get, .mast-right .mood-switch { display: none; }
}
@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zoo-bonus-card { grid-column: span 3; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench, .dl-panel, .passport-card { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .mast-inner { width: 94%; min-height: 3.6rem; gap: 0.45rem; }
  .brand { font-size: 1.18rem; }
  .brand i { width: 1.72rem; height: 1.72rem; }
  .mast-right { gap: 0.35rem; }
  .mast-get, .mast-right .mood-switch, .mast-right .icon-pill { display: none; }
  .mobile-toggle { width: 2.3rem; height: 2.3rem; }
  .lang-menu { padding-left: 0.35rem; }
  .lang-menu > div { left: -2.2rem; }
  .lang-menu summary { min-width: 1.8rem; justify-content: center; }
  .lang-menu summary span, .lang-menu summary svg:last-child { display: none; }
  .hero h1 { font-size: clamp(2.3rem, 8.4vw, 3.4rem); }
  .hero-actions { gap: 0.55rem; }
  .hero-actions .btn { flex: 1 1 12rem; padding-inline: 0.8rem; }
  .hero-plats { gap: 0.35rem; }
  .plat-pill { border: 0; background: transparent; padding: 0.2rem 0.25rem; font-size: 0.76rem; }
  .plate figcaption { flex-wrap: wrap; gap: 0.2rem 0.5rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 0.7rem; }
  .zoo-bonus-card { grid-column: span 2; flex-direction: column; align-items: flex-start; }
  .feature-grid { grid-template-columns: 1fr; }
  .support-inner, .guest-row { flex-wrap: wrap; }
  .support-actions { width: 100%; margin-left: 0; }
  .fields, .passport-specs { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .mast-inner, .mast-right { gap: 0.26rem; }
  .brand { font-size: 1.05rem; gap: 0.32rem; }
  .brand i { width: 1.5rem; height: 1.5rem; }
  .lang-menu { padding-left: 0.12rem; }
  .lang-menu summary { padding: 0 0.22rem; }
  .icon-pill { width: 1.75rem; height: 1.75rem; }
  .mast-right .feed-links a { gap: 0.16rem; padding-inline: 0.28rem; font-size: 0.72rem; }
  .mast-right .feed-links svg { width: 0.92rem; }
  .mobile-toggle { width: 2rem; height: 2.15rem; }
}
@media (max-width: 359px) {
  .mast-right .feed-links svg { display: none; }
  .mast-right .feed-links a { padding-inline: 0.28rem; }
  .folio-label, .call-pet { font-size: 0.68rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-item { opacity: 1; transform: none; }
}
