:root {
  --forest: #394b3c;
  --leaf: #718b61;
  --olive: #93a866;
  --lime: #afbd70;
  --petal: #e8ebe7;
  --bloom: #c7cde0;
  --blush: #c9e97f;
  --mint: #edf1ea;
  --mist: #f8f7f2;
  --ink: #334139;
  --pollen: #c9e97f;
  --line: #d8ded6;
  --muted: #768078;
  --paper: #fffefa;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  display: flow-root;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: #becabe;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--pollen);
  outline-offset: 3px;
}

.site-shell {
  width: min(1880px, calc(100% - 40px));
  height: calc(100vh - 40px);
  min-height: 640px;
  margin: 20px auto;
  display: grid;
  grid-template-columns: minmax(240px, 22%) 1fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 34px;
  background: var(--forest);
  box-shadow: 0 24px 70px rgba(57,75,60,.18);
}

.sidebar {
  min-height: 0;
  padding: 38px 30px 28px;
  display: flex;
  flex-direction: column;
  color: #fbfced;
  background: var(--forest);
}
.side-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; }
.side-brand { display: grid; gap: 10px; min-width: 0; }
.brand { display: inline-flex; align-items: baseline; gap: 9px; text-decoration: none; }
.brand span { color: var(--petal); font-size: 13px; font-weight: 800; letter-spacing: .22em; }
.brand b { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 20px; letter-spacing: .08em; }
.menu-toggle { display: none; }
.mobile-brand-logo { display: none; }

.site-nav { flex: 1; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.site-nav > a, .nav-parent {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  color: #fbfced;
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.site-nav > a:hover, .nav-parent:hover, .site-nav > a.active, .nav-parent.active { background: rgba(255,255,255,.1); }
.site-nav > a.active { color: var(--pollen); }
.site-nav i { color: var(--pollen); font-style: normal; text-align: center; }
.site-nav span { font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.nav-parent em { font-style: normal; transition: transform .18s ease; }
.nav-parent[aria-expanded="true"] em { transform: rotate(180deg); }
.nav-children { margin: 2px 0 8px 46px; padding-left: 15px; display: grid; gap: 2px; border-left: 1px solid rgba(221,224,189,.42); }
.nav-children[hidden] { display: none; }
.nav-children a { padding: 7px 8px; color: #d5ddc4; border-radius: 7px; font-size: 13px; text-decoration: none; }
.nav-children a:hover, .nav-children a.active { color: var(--pollen); background: rgba(255,255,255,.06); }
.sidebar-social-links { margin: auto 12px 0; padding-top: 18px; display: flex; align-items: center; gap: 13px; border-top: 1px solid rgba(255,255,255,.14); }
.sidebar-social-link { position: relative; width: 33px; height: 33px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: transparent; cursor: pointer; text-decoration: none; }
.sidebar-social-link:hover, .sidebar-social-link:focus-visible { color: var(--pollen); background: rgba(255,255,255,.1); }
.sidebar-social-link img { width: 23px; height: 23px; object-fit: contain; }
.sidebar-social-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-social-link::after { content: attr(data-tooltip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 5; padding: 6px 8px; border-radius: 6px; color: var(--forest); background: #fffefa; box-shadow: 0 4px 12px rgba(20,39,28,.16); font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .16s ease, transform .16s ease; }
.sidebar-social-link:hover::after, .sidebar-social-link:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.sidebar-logo { width: min(68%, 150px); height: auto; filter: brightness(0) invert(1); opacity: .88; }
.side-footer { margin-top: auto; padding: 24px 12px 0; border-top: 1px solid rgba(255,255,255,.14); color: #bdc9ab; font-size: 11px; }
.side-footer p { margin: 0 0 9px; letter-spacing: .16em; }
.side-footer a { color: #e0e5ce; }

.content-stage {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: auto;
  border-radius: 34px 0 0 34px;
  background-color: var(--mist);
  background-image:
    linear-gradient(rgba(137,160,87,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137,160,87,.055) 1px, transparent 1px);
  background-size: 44px 44px;
}
.content-stage:focus { outline: none; }
body.profile-route,body.profile-route .content-stage{scrollbar-width:none}body.profile-route::-webkit-scrollbar,body.profile-route .content-stage::-webkit-scrollbar{display:none}
.content-stage::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(34%, 360px);
  height: 9px;
  border-radius: 0 33px 0 14px;
  background: var(--blush);
  z-index: 2;
}
.view { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 100%; }
.hero-view, .page-view { animation: view-in .24s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

.botanical { position: absolute; z-index: 0; pointer-events: none; opacity: .22; }
.botanical::before, .botanical::after { content: ""; position: absolute; border: 1px solid var(--leaf); border-radius: 100% 0 100% 0; }
.botanical-a { top: 72px; right: 7%; width: 190px; height: 180px; border-left: 1px solid var(--leaf); transform: rotate(24deg); }
.botanical-a::before { width: 78px; height: 34px; left: -2px; top: 32px; transform: rotate(-20deg); }
.botanical-a::after { width: 60px; height: 28px; left: -58px; top: 92px; transform: rotate(15deg); }
.botanical-b { bottom: 30px; left: 6%; width: 120px; height: 130px; border-right: 1px solid var(--leaf); transform: rotate(-20deg); }
.botanical-b::before { width: 54px; height: 25px; right: -3px; top: 20px; }
.botanical-b::after { width: 68px; height: 30px; right: -64px; top: 70px; }

.loading { min-height: 70vh; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.loading span { width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--leaf); border-radius: 50%; animation: spin .7s linear infinite; }
.loading p { font-size: 13px; letter-spacing: .08em; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-view { position: relative; isolation: isolate; width: 100%; height: 100%; min-height: 100%; padding: clamp(46px, 8vh, 92px) clamp(38px, 7vw, 116px) 0; display: grid; grid-template-columns: minmax(300px, .86fr) minmax(380px, 1.14fr); grid-template-rows: minmax(0, 1fr); align-items: center; overflow: hidden; }
.hero-view::before { content: ""; position: absolute; z-index: 0; left: 42%; right: 6%; bottom: 0; height: 72%; border: 1px solid var(--line); border-bottom: 0; border-radius: 48% 48% 0 0; background: rgba(232,235,231,.58); }
.hero-view::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background-image: radial-gradient(rgba(57,75,60,.35) .65px, transparent .8px); background-size: 4px 4px; opacity: .15; mix-blend-mode: multiply; mask-image: linear-gradient(90deg, transparent 3%, black 29%, black 94%, transparent); }
.hero-ghost { position: absolute; z-index: 1; left: 49%; right: auto; top: auto; bottom: calc(-11% - 100px); width: min(188%, calc(320vh - 124px)); max-width: none; height: auto; object-fit: initial; opacity: .08; filter: grayscale(1) sepia(.2) hue-rotate(78deg) saturate(.74) contrast(.85); mix-blend-mode: multiply; pointer-events: none; transform: translateX(-50%); }
.hero-ghost.portrait-source { width: auto; height: 168%; transform: translateX(-50%); }
.hero-copy { position: relative; z-index: 4; min-height: 0; max-width: 620px; max-height: 100%; padding: clamp(18px, 2.2vw, 30px); align-self: center; overflow-y: auto; scrollbar-width: none; border: 1px solid rgba(216,222,214,.82); border-radius: 20px; background: rgba(255,254,250,.76); box-shadow: 0 16px 38px rgba(57,75,60,.07); backdrop-filter: blur(8px); }
.hero-copy::-webkit-scrollbar { display: none; }
.eyebrow { margin: 0 0 16px; color: var(--leaf); font-size: 12px; font-weight: 800; letter-spacing: .22em; }
.hero-copy h1 { margin: 0; line-height: 1; }
.hero-copy h1:focus, .page-head h1:focus { outline: none; }
.hero-name { font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(28px, 5.5vw, 51px); font-weight: 700; letter-spacing: -.08em; white-space: nowrap; }
.latin-name { margin: 13px 0 0; color: var(--muted); font-size: 14px; font-weight: 800; letter-spacing: .22em; }
.tagline { margin: clamp(34px, 6vh, 66px) 0 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(22px, 2vw, 31px); line-height: 1.55; }
.intro { max-width: 520px; margin: 18px 0 0; color: #65735a; font-size: 15px; line-height: 2; white-space: pre-line; }
.latin-name + .tagline { margin-top: 18px; }
.hero-bilibili-link { width: fit-content; margin-top: 18px; padding: 12px 20px; display: inline-flex; align-items: center; border: 1px solid #c9e97f; border-radius: 999px; color: var(--forest); background: #c9e97f; font-size: 14px; font-weight: 800; line-height: 1; text-decoration: none; transition: transform .18s ease, background-color .18s ease; }
.hero-bilibili-link:hover { transform: translateY(-2px); background: #badb70; }
.hero-art { position: relative; z-index: 3; height: 100%; min-height: 0; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.hero-art::before { content: none; }
.hero-art::after { content: none; }
.hero-portrait-frame { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-art img { position: relative; z-index: 1; width: 112%; max-width: 790px; height: calc(100vh - 84px); min-height: 610px; max-height: 980px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 24px 30px rgba(57,75,60,.14)); }
.hero-art img.hero-portrait { position: absolute; left: 57%; bottom: 0; width: min(310%, calc(205vh - 76px)); max-width: none; height: auto; min-height: 0; max-height: none; object-fit: initial; transform: translateX(-50%); }
.hero-art img.hero-portrait.portrait-source { width: auto; height: calc(100% - 20px); transform: translateX(-50%); }
@keyframes portrait-swap { from { opacity: 0; transform: translateX(9%); } to { opacity: 1; transform: translateX(0); } }
.hero-portrait-frame.portrait-swap { animation: portrait-swap .28s cubic-bezier(.2,.75,.25,1) both; }
.hero-switch { position: absolute; z-index: 3; inset: 0; display: block; border: 0; background: transparent; cursor: pointer; }
.hero-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: -6px; }

.page-view { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 72px 0 90px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-head p { margin: 0 0 8px; color: var(--leaf); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.page-head h1 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(36px, 5vw, 62px); letter-spacing: -.04em; }
.page-head small { max-width: 360px; color: var(--muted); line-height: 1.7; text-align: right; }
.profile-layout { margin-top: 38px; display: grid; grid-template-columns: minmax(240px, .72fr) 1.28fr; gap: 48px; }
.profile-note { padding: 30px; align-self: start; border-radius: 20px; background: var(--forest); color: white; }
.profile-note p { margin: 0; color: var(--pollen); font-size: 11px; letter-spacing: .16em; }
.profile-note h2 { margin: 12px 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 34px; }
.profile-note span { color: #d6ddc6; line-height: 1.8; white-space: pre-line; }
.profile-fields { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.profile-fields div { padding: 19px 2px; border-bottom: 1px solid var(--line); }
.profile-fields dt { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.profile-fields dd { margin: 7px 0 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 20px; }
.empty-copy { padding: 40px; border: 1px dashed #aac7b5; border-radius: 18px; color: var(--muted); text-align: center; background: rgba(255,255,255,.55); }
.story-copy { max-width: 760px; margin: 42px auto 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 18px; line-height: 2.15; }
.story-copy p { margin: 0 0 1.5em; }
.story-timeline { max-width: 820px; margin: 42px auto 0; display: grid; gap: 28px; }
.story-entry { position: relative; padding: 30px 34px 32px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.76); }
.story-entry::before { content: ""; position: absolute; top: 34px; left: -15px; width: 29px; height: 1px; background: var(--olive); }
.story-date { margin: 0 0 20px; color: var(--leaf); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.story-entry-copy { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 18px; line-height: 2.15; }
.story-entry-copy p { margin: 0 0 1.35em; }
.story-entry-copy p:last-child { margin-bottom: 0; }

.gallery-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gallery-submit-action { margin-top: 20px; display: flex; justify-content: flex-end; gap: 10px; }
.fan-image-filters { margin-top: 18px; display: flex; gap: 10px; }
.fan-image-filters button { min-width: 86px; padding: 9px 16px; border: 1px solid #b8cfaa; border-radius: 999px; color: var(--forest); background: rgba(255,255,255,.72); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.fan-image-filters button.active { border-color: var(--leaf); color: white; background: var(--leaf); }
.gallery-rules-link { min-height: 42px; padding: 0 12px; border: 0; color: var(--leaf); background: transparent; font: inherit; font-size: 13px; font-weight: 800; text-decoration: underline; cursor: pointer; }
.gallery-submit-link { min-height: 42px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; appearance: none; border: 1px solid #a9bf84; border-radius: 999px; color: var(--forest); background: rgba(201,233,127,.32); font: inherit; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease; }
.gallery-submit-menu { position: relative; }
.gallery-submit-menu > button { font: inherit; cursor: pointer; }
.gallery-submit-dropdown { position: absolute; right: 0; top: calc(100% + 8px); z-index: 8; min-width: 132px; padding: 7px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 14px; background: rgba(247,251,248,.98); box-shadow: 0 12px 22px rgba(24,61,45,.12); }
.gallery-submit-dropdown[hidden] { display: none; }
.gallery-submit-dropdown a { padding: 9px 11px; border-radius: 9px; color: var(--forest); font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.gallery-submit-dropdown a:hover, .gallery-submit-dropdown a:focus-visible { color: white; background: var(--leaf); outline: none; }
.gallery-submit-link:hover { color: #fff; background: var(--forest); transform: translateY(-2px); }
.gallery-grid.wardrobe-row { display: flex; gap: 22px; padding: 2px 2px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--olive) rgba(113,139,97,.14); scrollbar-width: auto; scrollbar-gutter: stable; cursor: grab; }
.gallery-grid.wardrobe-row.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.gallery-grid.wardrobe-row::-webkit-scrollbar { height: 14px; }
.gallery-grid.wardrobe-row::-webkit-scrollbar-track { border-radius: 999px; background: rgba(113,139,97,.14); }
.gallery-grid.wardrobe-row::-webkit-scrollbar-thumb { min-width: 64px; border: 3px solid transparent; border-radius: 999px; background: var(--olive); background-clip: padding-box; }
.gallery-grid.wardrobe-row::-webkit-scrollbar-thumb:hover { background-color: var(--leaf); }
.wardrobe-row .gallery-image, .wardrobe-row .gallery-image img { cursor: inherit; }
.wardrobe-row .gallery-card { flex: 0 0 clamp(270px, 31vw, 360px); scroll-snap-align: start; }
.gallery-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.9); transition: transform .18s ease, border-color .18s ease; }
.gallery-card:hover { transform: translateY(-3px); border-color: #9fc4ae; }
.gallery-image { width: 100%; aspect-ratio: 4 / 5; padding: 0; display: block; overflow: hidden; border: 0; background: var(--mint); cursor: zoom-in; }
.gallery-card.official .gallery-image, .gallery-card.fan_image .gallery-image { aspect-ratio: 4 / 3; }
.gallery-grid.sticker-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sticker-grid .gallery-card { border-radius: 13px; }
.sticker-grid .gallery-image { aspect-ratio: 1 / 1.12; background: rgba(234,245,238,.56); }
.sticker-grid .gallery-image img { object-fit: contain; }
.sticker-body { padding: 6px 11px 7px; }
.sticker-body .gallery-meta { justify-content: flex-start; font-size: 10px; }
.gallery-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.gallery-card.standing .gallery-image img { object-fit: contain; }
.media-empty { display: grid; place-items: center; color: var(--muted); font-size: 13px; cursor: default; }
.gallery-image:hover img { transform: scale(1.025); }
.gallery-card-body { padding: 17px 18px 19px; }
.gallery-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.gallery-card h2 { margin: 9px 0 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 21px; line-height: 1.35; }
.gallery-card p { margin: 9px 0 0; color: #68755e; font-size: 13px; line-height: 1.75; }
.gallery-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px; }
.gallery-links a { color: var(--leaf); font-size: 12px; font-weight: 800; }
.external-card { display: block; text-decoration: none; cursor: pointer; }
.external-card .gallery-image { cursor: pointer; }

.songs-empty { margin-top: 42px; min-height: 330px; display: grid; place-content: center; justify-items: center; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.74); text-align: center; }
.songs-empty strong { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 28px; }
.songs-empty span { margin-top: 10px; color: var(--muted); }
.error-state { min-height: 70vh; display: grid; place-content: center; text-align: center; }
.error-state button { margin: 18px auto 0; padding: 10px 18px; border: 0; border-radius: 10px; color: white; background: var(--leaf); cursor: pointer; }
.sync-notice { position: absolute; right: 22px; bottom: 18px; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(247,251,248,.94); font-size: 12px; }
.sync-notice button { padding: 6px 9px; border: 0; border-radius: 999px; color: white; background: var(--leaf); cursor: pointer; }

.image-dialog { width: min(92vw, 1100px); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: #101813; color: white; }
.image-dialog::backdrop { background: rgba(10,20,14,.82); backdrop-filter: blur(6px); }
.image-dialog button { position: sticky; top: 12px; float: right; z-index: 2; width: 40px; height: 40px; margin: 12px 12px -52px 0; border: 0; border-radius: 50%; color: white; background: rgba(0,0,0,.6); font-size: 26px; cursor: pointer; }
.image-dialog figure { margin: 0; min-height: 280px; display: grid; justify-items: center; }
.image-dialog img { max-width: 100%; max-height: calc(92vh - 64px); object-fit: contain; }
.image-dialog figcaption { width: 100%; padding: 14px 20px 18px; color: #c8d9cf; font-size: 13px; text-align: center; }
.image-dialog #dialog-download { display: table; margin: -5px auto 18px; padding: 8px 15px; border: 1px solid rgba(201,233,127,.7); border-radius: 999px; color: #eff8e7; font-size: 13px; font-weight: 800; text-decoration: none; }
.image-dialog #dialog-download[hidden] { display: none; }

@media (max-width: 1100px) {
  .site-shell { grid-template-columns: 230px 1fr; }
  .sidebar { padding-inline: 22px; }
  .hero-view { padding-inline: 48px; grid-template-columns: .9fr 1.1fr; }
  .hero-art img { width: 125%; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (min-width: 1200px) {
  .hero-art img.hero-portrait { width: min(225%, calc(160vh - 64px)); transform: translateX(-55%); }
}

@media (max-width: 820px) {
  :root { --mobile-bar-height: calc(68px + env(safe-area-inset-top, 0px)); }
  body { background: var(--mist); }
  .site-shell { width: 100%; height: auto; min-height: 100dvh; margin: 0; display: block; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  body.home-route { overflow: hidden; }
  body.home-route .site-shell { height: 100dvh; min-height: 0; overflow: visible; }
  .sidebar { position: sticky; top: 0; z-index: 20; height: var(--mobile-bar-height); min-height: 0; padding: calc(13px + env(safe-area-inset-top, 0px)) calc(18px + env(safe-area-inset-right, 0px)) 13px calc(18px + env(safe-area-inset-left, 0px)); }
  .brand b { font-size: 17px; }
  .mobile-brand-logo { position: absolute; left: 50%; width: min(29vw, 132px); height: auto; display: block; filter: brightness(0) invert(1); transform: translateX(-50%); }
  .menu-toggle { padding: 8px 12px; display: block; border: 0; color: white; background: transparent; font-size: 19px; font-weight: 800; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 1; max-height: calc(100dvh - var(--mobile-bar-height)); margin: 0; padding: 14px calc(18px + env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) calc(18px + env(safe-area-inset-left, 0px)); overflow: auto; background: var(--forest); box-shadow: 0 16px 28px rgba(24,61,45,.22); }
  .site-nav:not(.open) { display: none; }
  .sidebar-social-links { flex: none; margin: 12px 0 0; padding: 14px 0 0; }
  .side-footer { display: none; }
  .sidebar-logo { display: none; }
  .content-stage { height: auto; min-height: calc(100dvh - var(--mobile-bar-height)); overflow: visible; border-radius: 0; }
  body.home-route .content-stage { height: calc(100dvh - var(--mobile-bar-height)); min-height: 0; overflow: hidden; }
  .content-stage::before { display: none; }
  .hero-view { width: 100%; height: 100%; min-height: 0; padding: clamp(24px, 6vh, 46px) 18px 0; display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: stretch; }
  .hero-copy { min-width: 0; max-height: calc(100% - clamp(46px, 9vh, 82px)); align-self: start; padding: clamp(14px, 3vw, 22px); margin-top: clamp(46px, 9vh, 82px); overflow-y: auto; overscroll-behavior: contain; }
  .eyebrow { margin-bottom: 12px; font-size: 9px; letter-spacing: .12em; }
  .hero-name { font-size: clamp(28px, 8vw, 51px); }
  .latin-name { font-size: 11px; letter-spacing: .16em; }
  .tagline { margin-top: clamp(24px, 5vh, 42px); font-size: clamp(16px, 2.6vw, 21px); }
  .intro { font-size: clamp(11px, 1.8vw, 14px); line-height: 1.75; }
  .hero-art { min-height: 0; height: 100%; margin: 0; align-self: stretch; }
  .hero-view::before { left: 43%; right: 3%; }
  .hero-ghost { left: 56%; right: auto; top: auto; bottom: calc(-10% - 70px); width: min(320%, calc(320vh - 120px)); height: auto; opacity: .07; }
  .hero-ghost.portrait-source { width: auto; height: 170%; }
  .hero-art img { width: 100%; height: 100%; min-height: 0; }
  .hero-art img.hero-portrait { left: 50%; width: min(275%, calc(177.78vh - 103.12px)); height: auto; transform: translateX(-57.45%); }
  .botanical-a { top: 54px; right: 1%; transform: scale(.72) rotate(24deg); transform-origin: top right; }
  .botanical-b { bottom: 20px; left: 2%; transform: scale(.68) rotate(-20deg); transform-origin: bottom left; }
  .page-view { width: min(100% - 36px, 680px); padding: 44px 0 68px; }
  .page-head { display: block; }
  .page-head small { display: block; margin-top: 14px; text-align: left; }
  .profile-layout { grid-template-columns: 1fr; gap: 26px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .wardrobe-row .gallery-card { flex-basis: min(70vw, 330px); }
  .sync-notice { position: fixed; right: 12px; bottom: 12px; }
}

@media (max-width: 520px) {
  .profile-fields { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card.official .gallery-image, .gallery-card.fan_image .gallery-image { aspect-ratio: 4 / 3; }
  .story-entry { padding: 24px 22px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
