/* =========================================================
   mane-solis: dusk-to-sunset theme
   One loud thing: the sunset sky (big on home, a thin band on
   every other page). Everything else stays calm.
   ========================================================= */

:root {
  /* sunset palette (Lumi's pick) */
  --plum: #57385c;
  --rose: #a75265;
  --coral: #ec7263;
  --apricot: #febe7e;
  /* complementary palette */
  --aqua: #a6e4e7;
  --snow: #f9f9f9;
  --sand: #ebcbae;
  --taupe: #8f8787;
  /* derived: the palette has no dark, so the page sits on a deepened plum */
  --dusk: #1f1421;
  --mauve: #7e4560;       /* halfway between plum and rose, for the sky */
  --rose-light: #d98a99;  /* rose lifted so it reads as text on dark */

  /* older names kept so the rest of the file reads naturally */
  --violet: var(--plum);
  --gold: var(--apricot);

  --bg: var(--dusk);
  --surface: rgba(87, 56, 92, 0.42);
  --surface-strong: rgba(87, 56, 92, 0.9);
  --border: rgba(235, 203, 174, 0.2);
  --text: var(--snow);
  --text-dim: var(--sand);
  --text-muted: var(--taupe);
  --accent: var(--apricot);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --font-display: "Shrikhand", "Georgia", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* the retro sunset text shadow used on display headings */
  --sunset-shadow: 2px 2px 0 var(--coral), 4px 4px 0 var(--rose), 6px 6px 0 var(--plum);
  --sunset-shadow-sm: 1px 1px 0 var(--coral), 2px 2px 0 var(--rose), 3px 3px 0 var(--plum);

  /* theme roles: dark is the default, light overrides these below */
  --cool: var(--aqua);
  --title: var(--apricot);
  --block-title: var(--coral);
  --block-shadow: 2px 2px 0 var(--plum);
  --nav-bg: rgba(31, 20, 33, 0.6);
  --dot: rgba(254, 190, 126, 0.07);
  --crown: var(--apricot);
  --stars: 1;
  --sky-hero: linear-gradient(180deg, var(--dusk) 0%, var(--plum) 22%, var(--mauve) 42%, var(--rose) 62%, var(--coral) 78%, var(--apricot) 100%);
  --sky-band: linear-gradient(180deg, var(--dusk) 0%, var(--plum) 30%, var(--mauve) 58%, var(--rose) 76%, var(--coral) 90%, var(--apricot) 100%);
  --sun: linear-gradient(180deg, var(--apricot) 0%, var(--apricot) 38%, var(--coral) 100%);
  --silhouette: var(--bg);
  --can: var(--aqua);
  --bloom-petal: var(--apricot);
  --bloom-centre: var(--rose);
  --bloom-glow: rgba(254, 190, 126, 0.9); /* cat + flowers melt into the hills */
}

/* light mode: white names/titles get a thin plum outline so they read on the pale page */
:root[data-theme="light"] .hero-name,
:root[data-theme="light"] .page-title,
:root[data-theme="light"] .kamioshi-name,
:root[data-theme="light"] .nav-brand {
  -webkit-text-stroke: 1.5px var(--plum);
  paint-order: stroke fill;
}
:root[data-theme="light"] .nav-brand {
  -webkit-text-stroke-width: 1px;
}

/* light mode: same palette, golden-hour sky (aqua into apricot) */
:root[data-theme="light"] {
  --bg: #fbf4ec;          /* derived: snow warmed with sand */
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --border: rgba(87, 56, 92, 0.18);
  --text: var(--plum);
  --text-dim: #735f73;    /* derived: plum softened toward taupe */
  --text-muted: var(--taupe);
  --cool: #3f8e93;        /* derived: aqua deepened so it reads on light */
  --title: var(--rose);
  --block-title: var(--rose);
  --block-shadow: 2px 2px 0 var(--apricot);
  --nav-bg: rgba(255, 255, 255, 0.65);
  --dot: rgba(87, 56, 92, 0.08);
  --crown: var(--coral);
  --stars: 0;
  --sky-hero: linear-gradient(180deg, var(--aqua) 0%, #d6efef 18%, var(--sand) 40%, var(--apricot) 62%, var(--coral) 82%, var(--rose) 100%);
  --sky-band: linear-gradient(180deg, var(--aqua) 0%, var(--sand) 55%, var(--apricot) 100%);
  --sun: linear-gradient(180deg, var(--snow) 0%, #ffe7c9 45%, var(--apricot) 100%);
  --silhouette: var(--plum);
  --can: #3f8e93;
  /* the light sky is apricot/coral at the horizon, so blooms go pale to stand out */
  --bloom-petal: var(--snow);
  --bloom-centre: var(--coral);
  --bloom-glow: rgba(249, 249, 249, 0.95);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}
:root[data-theme="light"] {
  color-scheme: light;
}
html {
  overflow-x: clip; /* falling cats must not cause sideways scrolling */
}

/* smooth crossfade between pages (Chrome/Edge/Safari; others just navigate normally) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* faint dot grid: the "techy" layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 18px 18px;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--cool);
  outline-offset: 3px;
  border-radius: 4px;
}

.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 20px 48px;
}

/* ---------- sky (every page) ---------- */
.sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 210px;
  z-index: 0;
  pointer-events: none;
  background: var(--sky-band);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  opacity: 0.55;
}

/* ---------- nav ---------- */
#site-nav {
  position: relative;
  z-index: 2;
}
.nav-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--snow); /* same look as the big name on Home */
  text-shadow: var(--sunset-shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.nav-links {
  margin-left: auto; /* stays right on Home, where there's no brand */
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  backdrop-filter: blur(8px);
}
.nav-link {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(254, 190, 126, 0.12);
}
.nav-link.active {
  background: linear-gradient(135deg, var(--apricot), var(--coral));
  color: var(--dusk);
  font-weight: 700;
}
.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 2px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--title);
  background: rgba(254, 190, 126, 0.15);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .icon-moon,
:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* ---------- display headings ---------- */
.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  line-height: 1.1;
  color: var(--snow);
  text-shadow: var(--sunset-shadow);
  margin: 40px 0 6px;
}
.page-lede {
  color: var(--text-dim);
  margin: 0 0 24px;
  max-width: 60ch;
}
.block-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--block-title);
  text-shadow: var(--block-shadow);
  margin: 0 0 12px;
}

/* small "work in progress" tag next to a heading */
.wip-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: none;
  color: var(--dusk);
  background: linear-gradient(135deg, var(--apricot), var(--coral));
}

/* Oshikatsu Diaries photo grid on the kamioshi pages */
.diary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.diary-grid:empty {
  display: none;
}
.diary-grid figure {
  margin: 0;
}
.diary-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.diary-grid figcaption {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ---------- shared surface ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(6px);
}

/* =========================================================
   HOME
   ========================================================= */

/* the big sunset: full-bleed hero */
.hero {
  position: relative;
  z-index: 1;
  height: clamp(300px, 46vw, 420px);
  margin-top: -64px; /* run up behind the nav */
  overflow: hidden;
  background: var(--sky-hero);
}
.hero-stars {
  position: absolute;
  inset: 0 0 50% 0;
  opacity: var(--stars);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(166, 228, 231, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 38%, rgba(166, 228, 231, 0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 47% 18%, rgba(166, 228, 231, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 30%, rgba(166, 228, 231, 0.4) 50%, transparent 51%),
    radial-gradient(2px 2px at 82% 16%, rgba(166, 228, 231, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 40%, rgba(166, 228, 231, 0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 44%, rgba(166, 228, 231, 0.35) 50%, transparent 51%);
}
/* retro striped sun, half set */
.hero-sun {
  position: absolute;
  width: clamp(200px, 30vw, 300px);
  aspect-ratio: 1;
  right: 14%;
  bottom: -2%;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 60px 10px rgba(254, 190, 126, 0.45);
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0 40%,
    transparent 40% 43%, #000 43% 52%,
    transparent 52% 56%, #000 56% 64%,
    transparent 64% 69%, #000 69% 76%,
    transparent 76% 82%, #000 82%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0 40%,
    transparent 40% 43%, #000 43% 52%,
    transparent 52% 56%, #000 56% 64%,
    transparent 64% 69%, #000 69% 76%,
    transparent 76% 82%, #000 82%
  );
}
.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 46%;
  color: var(--bg);
}
.hero-horizon.front {
  z-index: 3; /* in front of the flowers (z 2), behind the can and cat */
}
.hero-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, 100%);
  padding: 0 20px;
  top: 26%;
}
.hero-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 0.9;
  margin: 0;
  color: var(--snow);
  text-shadow: 2px 2px 0 var(--coral), 4px 4px 0 var(--rose), 6px 6px 0 var(--violet), 8px 8px 0 var(--plum);
}

/* horizon cat: it's clickable, which is the point */
.horizon-cat {
  position: absolute;
  bottom: 12%;
  left: 73%; /* silhouetted against the sun */
  width: clamp(38px, 5vw, 52px);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--silhouette);
  font: inherit;
  z-index: 4; /* sits on top of the front hill */
}
.horizon-cat svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.horizon-cat .tail {
  transform-origin: 31px 40px;
  animation: tail-swish 3.2s ease-in-out infinite;
}
.horizon-cat.hopping svg {
  animation: hop 0.4s ease-out;
}
@keyframes hop {
  40% { transform: translateY(-14px) scaleY(1.05); }
  70% { transform: translateY(0) scaleY(0.92); }
}
.horizon-cat.spinning svg {
  animation: oiia 0.35s linear 8;
}
@keyframes tail-swish {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(14deg); }
}
@keyframes oiia {
  to { transform: rotateY(360deg); }
}

/* ---------- profile ---------- */
.profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin-top: -20px;
}
.profile-photo {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(254, 190, 126, 0.12), 0 10px 30px rgba(167, 82, 101, 0.35);
}
.profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile-pills li {
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(254, 190, 126, 0.08);
}
/* ---------- about / long intro ---------- */
.about {
  margin-top: 36px;
}
.about p {
  max-width: 68ch;
  line-height: 1.75;
  margin: 0 0 1em;
}
.about p:last-child {
  margin-bottom: 0;
}
/* collapsible: the short line shows when closed, the full intro when open */
.about summary {
  list-style: none;
  cursor: pointer;
}
.about summary::-webkit-details-marker {
  display: none;
}
.about-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.about-toggle {
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.about summary:hover .about-toggle {
  color: var(--cool);
}
.about .when-open,
.about details[open] .when-closed,
.about details[open] .about-short {
  display: none;
}
.about details[open] .when-open {
  display: inline;
}
.about p.about-short {
  margin: 0;
}
.about a {
  color: var(--cool);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.about a:hover {
  text-decoration-thickness: 2px;
}
.about p:last-child {
  margin-bottom: 0;
}
/* collapsible: the short line shows when closed, the full intro when open */
.about summary {
  list-style: none;
  cursor: pointer;
}
.about summary::-webkit-details-marker {
  display: none;
}
.about-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.about-toggle {
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.about summary:hover .about-toggle {
  color: var(--cool);
}
.about .when-open,
.about details[open] .when-closed,
.about details[open] .about-short {
  display: none;
}
.about details[open] .when-open {
  display: inline;
}
.about p.about-short {
  margin: 0;
}
.placeholder-text {
  color: var(--text-dim);
  font-style: italic;
}

/* ---------- likes / dni ---------- */
.facts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  --c: var(--apricot);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.chips li:nth-child(5n + 2) { --c: var(--coral); }
.chips li:nth-child(5n + 3) { --c: var(--aqua); }
.chips li:nth-child(5n + 4) { --c: var(--sand); }
.chips li:nth-child(5n + 5) { --c: var(--rose-light); }
/* on light backgrounds the pale palette colours need deepening to read as text */
:root[data-theme="light"] .chips li {
  color: color-mix(in srgb, var(--c) 35%, var(--plum));
  border-color: color-mix(in srgb, var(--c) 70%, transparent);
  background: color-mix(in srgb, var(--c) 28%, transparent);
}
.dni {
  border-color: rgba(236, 114, 99, 0.5);
}
.dni p {
  margin: 0;
}

/* ---------- socials ---------- */
.socials-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.home-socials {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.home-socials a.more {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
}
.home-socials a.more:hover {
  color: var(--cool);
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(167, 82, 101, 0.25), rgba(254, 190, 126, 0.18));
  color: var(--text);
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(254, 190, 126, 0.25);
}
:root[data-theme="light"] .social-btn {
  /* the icons are white, so give them a solid sunset backing */
  background: linear-gradient(135deg, var(--plum), var(--rose));
  color: var(--snow);
  border-color: transparent;
}
.social-btn.compact {
  padding: 10px 12px;
}
.social-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

/* =========================================================
   VTUBERS / FAVES
   ========================================================= */
.portrait-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.portrait-card {
  margin: 0;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
}
.portrait-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
/* box art / posters / manga covers keep a taller shape */
.portrait-card.cover img {
  aspect-ratio: 3 / 4;
}
.portrait-card figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text);
}
.portrait-card .tag {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.portrait-card.is-link {
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.portrait-card.is-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(254, 190, 126, 0.22);
}
.portrait-card.is-link:hover figcaption {
  color: var(--title);
}
.portrait-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--title);
  background: radial-gradient(circle at 30% 30%, rgba(254, 190, 126, 0.14), rgba(31, 20, 33, 0.5));
}
.crown {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--crown);
  font-size: 1.4rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(254, 190, 126, 0.7);
}

/* filter dropdown above the VTubers / Faves lists */
.page-title + .filter {
  margin-top: 12px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.filter select {
  appearance: none;
  font: inherit;
  color: var(--text);
  background-color: var(--surface);
  /* a little chevron, drawn in the current text colour */
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 16px center, right 11px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 34px 6px 14px;
  cursor: pointer;
}
.filter select:hover {
  border-color: color-mix(in srgb, var(--apricot) 60%, transparent);
}
.filter select option {
  background: var(--bg);
  color: var(--text);
}
.portrait-card[hidden],
.oshi-section[hidden] {
  display: none;
}

/* collapsible agency sections; each one takes a sunset stop */
.oshi-section {
  --c: var(--gold);
  margin-top: 18px;
}
.oshi-section:nth-of-type(6n + 2) { --c: var(--coral); }
.oshi-section:nth-of-type(6n + 3) { --c: var(--rose-light); }
.oshi-section:nth-of-type(6n + 4) { --c: var(--aqua); }
.oshi-section:nth-of-type(6n + 5) { --c: var(--sand); }
.oshi-section:nth-of-type(6n + 6) { --c: var(--snow); }
.oshi-section > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), var(--surface) 70%);
  user-select: none;
}
.oshi-section > summary::-webkit-details-marker {
  display: none;
}
.oshi-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--c);
  text-shadow: 1px 1px 0 var(--dusk);
}
:root[data-theme="light"] .oshi-section-title,
:root[data-theme="light"] .oshi-section-chevron {
  color: color-mix(in srgb, var(--c) 35%, var(--plum));
  text-shadow: none;
}
:root[data-theme="light"] .oshi-section > summary {
  border-color: color-mix(in srgb, var(--c) 75%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 40%, transparent), var(--surface) 70%);
}
.oshi-section-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
}
.oshi-section-chevron {
  margin-left: auto;
  color: var(--c);
  transition: transform 0.2s ease;
}
.oshi-section:not([open]) .oshi-section-chevron {
  transform: rotate(-90deg);
}
.oshi-section > .portrait-grid {
  margin-top: 22px;
  padding: 0 4px;
}
.oshi-section .portrait-card {
  border-color: color-mix(in srgb, var(--c) 30%, transparent);
}
.section-note {
  margin: 28px 0 0;
  color: var(--title);
  font-weight: 700;
}

/* ---------- kamioshi pages ---------- */
.back-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.back-link:hover {
  color: var(--cool);
}
.kamioshi-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}
.kamioshi-photo {
  width: 180px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(254, 190, 126, 0.12), 0 10px 30px rgba(167, 82, 101, 0.35);
}
.kamioshi-kicker {
  font-size: 0.85rem;
  color: var(--cool);
}
.kamioshi-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.1;
  color: var(--snow);
  text-shadow: var(--sunset-shadow);
  margin: 4px 0 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.kamioshi-name .crown {
  position: static;
  transform: none;
  font-size: 1.6rem;
  text-shadow: 0 0 10px rgba(254, 190, 126, 0.7);
}
.kamioshi-meta {
  color: var(--text-dim);
  margin: 0;
}
.kamioshi-section {
  margin-top: 18px;
}
.kamioshi-section p {
  line-height: 1.75;
  max-width: 68ch;
  margin: 0 0 1em;
}
.kamioshi-section p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   CAT EASTER EGGS (see assets/js/cats.js)
   ========================================================= */
.peek-cat {
  position: fixed;
  left: 24px;
  bottom: 0;
  width: 92px;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.6, 1);
  pointer-events: none;
}

.cat-rain {
  position: fixed;
  top: -40px;
  z-index: 60;
  font-size: 1.6rem;
  pointer-events: none;
  animation: cat-fall linear forwards;
}
@keyframes cat-fall {
  to { transform: translateY(110vh) rotate(var(--spin, 360deg)); }
}

.cat-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 70;
  background: var(--surface-strong);
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   WATER THE FLOWERS (see assets/js/garden.js)
   ========================================================= */
.flowers {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.flower {
  position: absolute;
  bottom: 2%; /* the stem bottoms hide behind the front hill */
  width: var(--w, 34px);
  height: var(--h, 120px);
  color: var(--silhouette);
  transform-origin: bottom center;
  transition: scale 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.flower svg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
  width: 100%;
  overflow: visible;
}
/* stem + leaf, drawn in CSS so each flower can have its own height */
.flower::before {
  content: "";
  position: absolute;
  left: calc(50% - 1.5px);
  width: 3px;
  top: calc(var(--w) * 0.5);
  bottom: 0;
  background: currentColor;
}
.flower::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--w) * 1.25); /* a fixed distance under the head, so it stays above the hill */
  width: calc(var(--w) * 0.45);
  height: calc(var(--w) * 0.22);
  border-radius: 0 100% 0 100%;
  background: currentColor;
}
.flower .petals {
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
  stroke-dasharray: 4 3.2;
}
.flower .centre {
  fill: currentColor;
}
.flower .petals,
.flower .centre,
.flower svg {
  transition: stroke 0.5s ease, fill 0.5s ease, filter 0.5s ease;
}
.flower.watered {
  scale: 1.35;
}
.flower.watered .petals {
  stroke: var(--bloom-petal);
}
.flower.watered .centre {
  fill: var(--bloom-centre);
}
.flower.watered svg {
  filter: drop-shadow(0 0 6px var(--bloom-glow));
}

.watering-can {
  position: absolute;
  right: 3%;
  bottom: 9%;
  width: clamp(40px, 4.5vw, 54px);
  padding: 0;
  border: 0;
  background: none;
  color: var(--can);
  cursor: grab;
  z-index: 4;
  transition: transform 0.2s ease;
}
.watering-can:hover {
  transform: rotate(-8deg);
}
.watering-can svg {
  display: block;
  width: 100%;
  overflow: visible;
}
/* held: fixed to the pointer and tipped forward, spout over the cursor */
.watering-can.held {
  position: fixed;
  right: auto;
  bottom: auto;
  z-index: 80;
  pointer-events: none;
  transform: translate(-57px, -52px) rotate(35deg);
  transition: none;
}
body.holding-can,
body.holding-can * {
  cursor: none !important;
}
body.holding-can .hero {
  touch-action: none; /* let a finger drag the can instead of scrolling */
}
.drop {
  position: fixed;
  z-index: 79;
  width: 4px;
  height: 7px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--can);
  pointer-events: none;
  animation: drop-fall 0.45s ease-in forwards;
}
@keyframes drop-fall {
  to { transform: translate(var(--dx, 0), var(--dy, 40px)); opacity: 0; }
}
.sparkle {
  position: absolute;
  z-index: 4;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  animation: sparkle 0.9s ease-out forwards;
}
@keyframes sparkle {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(1.1) rotate(90deg); opacity: 0; }
}
.cat-says {
  position: absolute;
  z-index: 5;
  padding: 5px 11px;
  border-radius: 12px;
  background: var(--snow);
  color: var(--dusk);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--rose);
  pointer-events: none;
  transform: translate(-50%, -100%);
  animation: says-pop 0.18s ease-out;
}
@keyframes says-pop {
  from { transform: translate(-50%, -100%) scale(0.6); opacity: 0; }
}
.water-count {
  position: absolute;
  right: 20px;
  bottom: 4px;
  margin: 0;
  z-index: 3;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.water-count[hidden] {
  display: none;
}

/* =========================================================
   ASK (anonymous Q&A) + INBOX
   ========================================================= */
.ask-box {
  margin-top: 8px;
}
.ask-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--block-title);
  text-shadow: var(--block-shadow);
  margin-bottom: 10px;
}
.ask-box textarea,
.ask-box input,
.qa-item textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  resize: vertical;
}
.ask-box textarea:focus,
.ask-box input:focus,
.qa-item textarea:focus {
  outline: 2px solid var(--cool);
  outline-offset: 1px;
}
.ask-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.ask-row .ask-note {
  margin-right: auto;
}
.ask-note {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.ask-send {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 7px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--apricot), var(--coral));
  color: var(--dusk);
  cursor: pointer;
}
.ask-send:disabled {
  opacity: 0.6;
  cursor: wait;
}
.ask-send.post-x {
  background: linear-gradient(135deg, var(--plum), var(--rose));
  color: var(--snow);
}
.ask-turnstile {
  margin-top: 10px;
}
.ask-turnstile:empty {
  display: none;
}
.ask-status {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--cool);
}
.ask-status:empty {
  display: none;
}
.qa-heading {
  margin-top: 36px;
}
.qa-list {
  display: grid;
  gap: 14px;
}
.qa-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.qa-question {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: color-mix(in srgb, var(--coral) 10%, transparent);
}
#inbox-list .qa-question {
  white-space: pre-line; /* raw text in the inbox, so keep its line breaks */
}
.qa-question p,
.qa-answer p {
  margin: 0 0 0.8em;
  line-height: 1.7;
  max-width: 68ch;
}
.qa-question p:last-child,
.qa-answer p:last-child {
  margin-bottom: 0;
}
.qa-date {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.qa-date a:hover {
  color: var(--cool);
}
.qa-single {
  margin-top: 16px;
}
.qa-item.unanswered {
  border-color: color-mix(in srgb, var(--apricot) 60%, transparent);
}
.qa-item textarea {
  margin-top: 4px;
}
.inbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 14px;
}
.inbox-link {
  font: inherit;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: none;
  border: 0;
  padding: 4px 6px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inbox-link:hover {
  color: var(--cool);
}
.inbox-link.danger:hover {
  color: var(--coral);
}

/* ---------- 404 ---------- */
.lost {
  text-align: center;
  padding-top: 40px;
}
.lost svg {
  width: 160px;
  color: var(--apricot);
}
.lost .page-title {
  margin-top: 12px;
}
.lost a {
  color: var(--cool);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- responsive / motion ---------- */
@media (max-width: 640px) {
  .profile {
    grid-template-columns: 1fr;
    justify-items: start;
    margin-top: -36px;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .nav-inner {
    justify-content: center;
  }
  .nav-links {
    margin-left: 0;
  }
  .nav-links {
    flex-wrap: nowrap;
  }
  .nav-link {
    padding: 6px 11px;
    font-size: 0.82rem;
  }
  .hero {
    height: 400px;
    margin-top: -100px; /* brand and links stack on two rows here */
  }
  .hero-text {
    top: 26%;
  }
  body[data-page="home"] .hero {
    margin-top: -64px; /* no brand row on Home, so the nav is one row */
  }
  .hero-sun {
    width: 210px;
    right: -40px;
    bottom: -14%;
  }
  .horizon-cat {
    left: auto;
    right: 20%;
    bottom: 13.5%;
  }
  .flower {
    bottom: 2%;
    width: calc(var(--w) * 0.72);
    height: calc(var(--h) * 0.72);
  }
  .flower::before {
    top: calc(var(--w) * 0.36);
  }
  .watering-can {
    right: 2%;
    bottom: 5%;
  }
  .kamioshi-name {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
