:root {
  --paper: #fae2e9;
  --card: #fff8fbea;
  --surface: #fff2f5b8;
  --solid-surface: #fff3f7;
  --glass: #dceff3b5;
  --lavender: #e9d6e1;
  --tint: #f5d9e3;
  --ink: #352435;
  --muted: #634453;
  --purple: #8d3457;
  --border: #fff7f9c9;
  --field-border: #9c688288;
  --action: #a03d64;
  --action-hover: #792a49;
  --shadow: 0 13px 28px #74475827, inset 0 1px #ffffffdc;
  --ambient: linear-gradient(145deg, #fbd9e2, #fff6f5 45%, #cfe8f1);
  --sakura-image: url('/assets/sakura-background.webp');
  --scenery-wash: linear-gradient(100deg, #fff0f4ef, #fff7f7a0 46%, #d6ecf0d9);
  --scenery-glaze: linear-gradient(180deg, #fff7f522, #fff2f436 52%, #e2eff3a3);
  --title-shadow: #fff5f8eb;
  --liquid-frost: #fffbfbe6;
  --liquid-edge: #fffffff0;
  --liquid-ink: #643850;
  --liquid-shadow: #72435839;
  --sakura-rose: #f5a9c4;
  --sakura-sky: #b6dce9;
  --control-accent: #a4426a;
}
:root[data-theme="dark"] {
  --paper: #221825;
  --card: #352536ed;
  --surface: #3a2839cc;
  --solid-surface: #302432;
  --glass: #314250cd;
  --lavender: #554051;
  --tint: #503848;
  --ink: #fff4f7;
  --muted: #edcfda;
  --purple: #ffb8d2;
  --border: #f7bdd439;
  --field-border: #f5bace7c;
  --action: #a83c6d;
  --action-hover: #803354;
  --shadow: 0 13px 28px #1a101c77, inset 0 1px #ffc7dd35;
  --ambient: linear-gradient(145deg, #372335, #241a29 45%, #263c4b);
  --scenery-wash: linear-gradient(100deg, #351d31ed, #2d1c2ccd 46%, #223745e8);
  --scenery-glaze: linear-gradient(180deg, #2a192572, #29162478 52%, #1c283ac4);
  --title-shadow: #251522ed;
  --liquid-frost: #57384caa;
  --liquid-edge: #ffe3eb72;
  --liquid-ink: #ffd8e8;
  --liquid-shadow: #20101e85;
  --sakura-rose: #c7789c;
  --sakura-sky: #8ac5d8;
  --control-accent: #ffacd0;
}
body { isolation: isolate; background: var(--ambient); }
body::before, body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
}
body::before {
  z-index: -2; inset: -28px;
  background: var(--scenery-wash), var(--sakura-image) center 31% / cover no-repeat;
}
body::after {
  inset: 0;
  background: var(--scenery-glaze), var(--sakura-image) center 14% / cover no-repeat;
}
@media (min-aspect-ratio: 3/4) {
  body::after {
    width: max(58vw, 68vh);
    left: 43%;
    right: auto;
    transform: translateX(-50%);
    background-size: auto, max(105%, 68vh) auto;
    mask-image: linear-gradient(90deg, transparent 1%, #000 26% 74%, transparent 99%);
  }
}
.header-inner, .hero-status, .overview > .panel, .split > .panel {
  background: linear-gradient(145deg, var(--liquid-frost), var(--surface) 56%, var(--glass));
  border-color: var(--liquid-edge);
  box-shadow: inset 0 1px 2px var(--liquid-edge), inset 0 -3px 8px #a6d2e740,
    0 14px 34px var(--liquid-shadow);
}
.site-header a[aria-current="page"], .hero .secondary {
  background: linear-gradient(155deg, var(--card), var(--liquid-frost));
  box-shadow: inset 0 1px 2px var(--liquid-edge), 0 3px 12px var(--liquid-shadow);
}
.liquid-hero {
  position: relative; grid-template-columns: minmax(0, 1fr); gap: 20px;
  padding-block: clamp(38px, 7svh, 84px) clamp(35px, 6svh, 72px);
  min-height: 0;
}
.liquid-hero .hero-copy { position: relative; z-index: 1; }
.liquid-hero h1 { font-size: clamp(3.15rem, 12vw, 5.5rem); line-height: 1.05; }
.liquid-hero .hero-welcome { color: var(--liquid-ink); }
@media (min-width: 760px) {
  .liquid-hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); text-align: left;
    min-height: clamp(460px, 72svh, 700px); gap: clamp(14px, 5vw, 64px);
  }
  .liquid-hero h1 { font-size: clamp(3.55rem, 7.7vw, 7.6rem); }
  .liquid-hero .actions { justify-content: flex-start; }
  .liquid-hero .subtitle { margin-inline: 0; }
}

.brand-photo {
  display: block; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; border: 1px solid var(--liquid-edge); box-shadow: 0 3px 10px var(--liquid-shadow);
}
.brand-photo img, .hero .brand-avatar { width: 100%; height: 100%; object-fit: cover; object-position: 64% 40%; }
.brand-photo img { transform: scale(1.22); }
.hero .brand-avatar { width: 43px; height: 43px; }
.liquid-hero .hero-copy { animation: none; }
.hero-carousel {
  position: relative; min-width: 0; width: 100%; max-width: 530px;
  margin-inline: auto; padding: 8px; border: 1px solid var(--liquid-edge); border-radius: 29px;
  background: linear-gradient(140deg, var(--liquid-frost), var(--glass));
  box-shadow: 0 17px 42px var(--liquid-shadow), inset 0 1px 1px var(--liquid-edge);
}
.carousel-window {
  isolation: isolate; display: flex; overflow-x: auto; overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px;
}
.carousel-window::-webkit-scrollbar { display: none; }
.carousel-slide { position: relative; flex: 0 0 100%; aspect-ratio: 1.57; margin: 0; scroll-snap-align: start; overflow: hidden; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.carousel-slide:first-child img { object-position: 59% 28%; transform: scale(1.13); }
.carousel-slide figcaption {
  bottom: 7px; right: 7px; position: absolute; max-width: calc(100% - 14px);
  padding: 4px 9px; border-radius: 999px; background: #17132aab; color: white; font-size: .66rem;
}
.carousel-controls {
  display: flex; align-items: center; justify-content: center; gap: .75rem; padding-top: 6px;
  color: var(--muted); font-size: .74rem; font-variant-numeric: tabular-nums;
}
.carousel-controls button, .music-toggle {
  display: grid; place-items: center; cursor: pointer; border: 1px solid var(--liquid-edge);
  width: 36px; height: 36px; border-radius: 50%; background: var(--card); color: var(--ink);
}
.carousel-controls button:hover, .music-toggle:hover { background: var(--tint); }
.panel.social-panel {
  position: relative;
  border-radius: clamp(24px, 4vw, 36px);
  background: linear-gradient(140deg, var(--liquid-frost), var(--glass) 72%, var(--surface));
  box-shadow: inset 0 1px 3px var(--liquid-edge), inset 0 -6px 16px #b0cced50,
    0 14px 34px var(--liquid-shadow);
}
.social-panel h2, .social-name {
  font-family: KaiTi, STKaiti, 'Noto Serif CJK SC', var(--sans);
  letter-spacing: .035em;
}
.social-panel h2 {
  margin-bottom: clamp(14px, 2.2vw, 20px);
  font-size: clamp(1.42rem, 3.1vw, 1.95rem);
  font-weight: 720;
}
.social-links { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(9px, 1.2vw, 13px); }
.social-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2.5vw, 18px);
  min-height: 70px;
  padding: clamp(8px, 1vw, 12px) clamp(12px, 2.4vw, 19px) clamp(8px, 1vw, 12px) clamp(8px, 1vw, 12px);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: clamp(18px, 3.6vw, 25px);
  text-decoration: none;
  transition: background-color .14s ease;
}
a.social-card:hover, a.social-card:focus-visible {
  background: var(--liquid-frost);
  box-shadow: 0 5px 15px var(--liquid-shadow);
}
.social-icon {
  display: grid;
  place-items: center;
  inline-size: clamp(44px, 11vw, 56px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 29%;
  background: var(--tint);
  color: var(--purple);
  font-size: 1.35rem;
}
.social-icon img { width: 100%; height: 100%; }
.social-details { min-width: 0; line-height: 1.35; }
.social-name { display: block; font-size: clamp(.95rem, 2.5vw, 1.15rem); font-weight: 650; }
.social-host { display: block; margin-top: 3px; color: var(--muted); font-size: .79rem; }
.social-arrow { color: var(--muted); font-size: 1.2rem; line-height: 1; }
a.social-card:hover .social-arrow, a.social-card:focus-visible .social-arrow { color: var(--purple); }
@media (prefers-reduced-motion: reduce) {
  .social-card { transition: none; }
}
.music-dock {
  position: fixed; z-index: 6; left: 50%; bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%); max-width: 650px; width: calc(100% - 24px); min-width: 0;
  display: grid; grid-template-columns: minmax(0, auto) 36px minmax(36px, 1fr) 2.8rem;
  gap: 8px; align-items: center; padding: 7px 12px 7px 8px;
  border: 1px solid var(--liquid-edge); border-radius: 22px; color: var(--ink);
  background: linear-gradient(120deg, var(--card), var(--liquid-frost));
  box-shadow: 0 8px 33px var(--liquid-shadow), inset 0 1px var(--liquid-edge);

}
.music-track { min-width: 0; display: flex; align-items: center; gap: 7px; }
.music-note { flex: 0 0 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg,#f8cae0,#c3e3ff); color: #305b89; display: grid; place-items: center; font-size: 1.05rem; font-weight: 700; }
.music-track strong, .music-track small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.music-track strong { line-height: 1.35; font-size: .82rem; }
.music-track small, #music-time { color: var(--muted); font-size: .67rem; }
#music-time { text-align: center; font-variant-numeric: tabular-nums; }
.music-seek, .music-dock #music-progress { min-width: 0; width: 100%; }
.music-dock #music-progress { margin: 0; padding: 0; accent-color: var(--control-accent); height: 24px; min-height: 24px; border: 0; background: transparent; cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 759px) {
  .hero-carousel { width: min(100%, 460px); }
  .liquid-hero { padding-top: clamp(25px, 5svh, 54px); }
}

.header-inner { border-radius: 999px; }
.hero-status { padding: 8px 13px; }
.primary { background: linear-gradient(155deg, #a74b78, var(--action)); }
.site-footer { background: var(--surface); }
.site-header .theme-toggle { border: 1px solid var(--liquid-edge); background-color: var(--surface); }
.site-header nav a[aria-current="page"] { color: var(--purple); }

@supports (mask-composite: exclude) {
  .header-inner::after, .hero-carousel::after, .music-dock::after, .orbit-lens::after, .social-panel::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    padding: 1px; z-index: 4;
    background: conic-gradient(from 26deg,
      transparent 0deg 169deg, #ffffff26 207deg, #fff5fbc4 242deg,
      #fff 263deg, #d7f1ff92 290deg, transparent 341deg);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
  }
}

.liquid-hero { gap: clamp(22px, 5vw, 64px); }
.liquid-hero .hero-copy { text-align: center; }
.liquid-hero .actions { margin-top: 13px; justify-content: center; }
.liquid-hero .subtitle { margin-inline: auto; }
.liquid-hero h1 { font-size: clamp(2.6rem, 8vw, 4.8rem); letter-spacing: -.045em; text-shadow: 0 1px 2px var(--title-shadow), 0 0 24px var(--title-shadow); }
.liquid-hero .subtitle, .page-heading { text-shadow: 0 1px 4px var(--title-shadow), 0 0 13px var(--title-shadow); }
.orbit-profile {
  position: relative; isolation: isolate; margin: 0 auto 12px;
  width: min(100%, 330px); aspect-ratio: 1.32; display: grid; place-items: center;
}
.orbit-inner {
  z-index: -1; position: absolute; inset: 7% 16%; overflow: hidden; border-radius: 50%;
  background: radial-gradient(ellipse, var(--liquid-frost), transparent 75%);
  box-shadow: inset 0 0 30px #ffdfed66;
}
.orbit-lens {
  position: relative; isolation: isolate; width: clamp(104px, 39%, 132px); aspect-ratio: 1;
  display: grid; place-items: center; border: 1px solid var(--liquid-edge); border-radius: 50%;
  background: linear-gradient(145deg, var(--liquid-frost), var(--glass)); overflow: hidden; padding: 0;
  box-shadow: 0 0 0 9px #fff9fb77, 0 0 0 18px #e4f5fa5e, 0 11px 42px var(--liquid-shadow);
}
.orbit-lens:disabled { opacity: 1; }
.orbit-lens:enabled { cursor: zoom-in; }
.avatar-ripple {
  position: absolute; z-index: 3; inset: 50% auto auto 50%; width: clamp(104px, 39%, 132px);
  aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
}
.avatar-ripple::before, .avatar-ripple::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid #fff6fb; box-shadow: 0 0 0 1px #d04e86, 0 0 12px #da6096, inset 0 0 9px #ffd5ef;
  animation: avatar-wave 340ms cubic-bezier(.16,.63,.34,1) both;
}
.avatar-ripple::after {
  border-color: #e3faff;
  box-shadow: 0 0 0 1px #6596c9, 0 0 12px #6baacb, inset 0 0 9px #b6edff;
  animation-delay: 55ms;
}
@keyframes avatar-wave {
  0% { transform: scale(.86); opacity: .75; }
  24% { opacity: 1; }
  100% { transform: scale(2.16); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .avatar-ripple { display: none; }
}
.avatar-viewer {
  width: min(calc(100% - 36px), 430px, calc(100svh - 96px)); max-height: calc(100svh - 28px);
  padding: 9px; color: var(--ink); border: 1px solid var(--liquid-edge); border-radius: 30px;
  background: linear-gradient(145deg, var(--liquid-frost), var(--solid-surface));
  box-shadow: 0 22px 80px var(--liquid-shadow), inset 0 1px 2px var(--liquid-edge);
}
.avatar-viewer::backdrop { background: #3b244b59; }
.avatar-viewer img { width: 100%; height: auto; max-height: 64svh; object-fit: contain; border-radius: 22px; }
.avatar-viewer-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 4px 1px 10px; }
.avatar-viewer-caption h2 { font-size: 1.06rem; }
.avatar-viewer-caption .icon-btn { width: 44px; padding: 0; font-size: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .orbit-lens:enabled:active { scale: .95; }

}
.orbit-lens::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; box-shadow: inset 3px 4px 12px #fff5f8d9, inset -5px -6px 17px #84647975;
}
.orbit-lens .brand-avatar { width: 100%; height: 100%; border-radius: 0; transform: scale(1.08); object-position: 68% 39%; }
.orbit-tag {
  min-width: 60px; aspect-ratio: 1; position: absolute; padding: 5px; border-radius: 50%;
  display: grid; place-content: center; font-size: .72rem; line-height: 1.15; color: var(--ink);
  border: 1px solid var(--liquid-edge); text-align: center;
  background: linear-gradient(145deg, var(--card), var(--glass));
  box-shadow: inset 0 1px 3px var(--liquid-edge), 0 6px 18px var(--liquid-shadow);

}
.orbit-tag--vrc { top: 4%; left: 10%; }
.orbit-tag--zh { top: 9%; right: 7%; }
.orbit-tag--ja { bottom: 7%; right: 8%; }
.orbit-tag--photos { bottom: 3%; left: 6%; }
.hero-carousel {
  padding: 8px; border-radius: 26px; background: linear-gradient(150deg,var(--liquid-frost),var(--glass));

}
.carousel-window {
  position: relative; display: block; overflow: hidden; aspect-ratio: 1.57;
  perspective: 880px; touch-action: pan-y pinch-zoom; background: var(--solid-surface);
}
.carousel-slide { position: absolute; inset: 0; height: 100%; overflow: hidden; margin: 0; }
.carousel-slide img { display: block; }
.carousel-window[data-draggable] { cursor: grab; user-select: none; }
.carousel-window[data-dragging] { cursor: grabbing; }
.carousel-window[data-draggable] {
  --stack-inset: clamp(10px, 3.5vw, 19px);
  background: transparent;
}
.carousel-window[data-draggable]::before, .carousel-window[data-draggable]::after {
  content: ""; position: absolute; inset: 6px var(--stack-inset) var(--stack-inset) 6px;
  border: 1px solid var(--liquid-edge); border-radius: inherit; pointer-events: none;
  background: var(--glass); box-shadow: 0 4px 10px var(--liquid-shadow);
}
.carousel-window[data-draggable]::before { z-index: -2; transform: translate(10px, 9px) rotate(1.8deg) scale(.98); }
.carousel-window[data-draggable]::after { z-index: -1; transform: translate(5px, 5px) rotate(.9deg) scale(.99); }
.carousel-window[data-draggable] .carousel-slide {
  inset: 3px var(--stack-inset) var(--stack-inset) 3px; height: auto; border-radius: 17px;
  border: 1px solid var(--liquid-edge); background: var(--solid-surface);
  backface-visibility: hidden; transform-origin: 50% 82%;
  box-shadow: 0 4px 13px var(--liquid-shadow);
}
.carousel-slide figcaption { z-index: 1; }
.carousel-controls button { font-size: 1.06rem; }
@media (min-width: 900px) {
  .liquid-hero { grid-template-columns: minmax(0,.88fr) minmax(0,1.2fr); gap: clamp(28px,5vw,68px); }
}
@media (max-width: 759px) {
  .liquid-hero { padding-top: 24px; }
  .orbit-profile { width: min(100%, 290px); margin-bottom: 8px; }
  .orbit-tag { min-width: 54px; }
}
@media (max-width: 475px) {
  .header-inner { border-radius: 26px; }
}

/* Clear glass: thin tint in the center and a more pronounced bevel at the rim. */
:root {
  --optic-film: linear-gradient(153deg, #ffffff8f, #fff1f642 45%, #e3f3fb54);
  --optic-reading: linear-gradient(145deg, #fff9fbaf, #fff3f88c 58%, #e9f7fcc1);
  --optic-highlight: #ffffffd9;
  --optic-lowlight: #708aaf32;
  --optic-border: #ffffffc2;
  --optic-text-halo: #fffaffad;
}
:root[data-theme="dark"] {
  --optic-film: linear-gradient(153deg, #64506680, #2d233551 45%, #2f4c606e);
  --optic-reading: linear-gradient(145deg, #3f2a42cd, #281b2bb8 58%, #2b4255d1);
  --optic-highlight: #fff8ff82;
  --optic-lowlight: #11162773;
  --optic-border: #f2edff61;
  --optic-text-halo: #362337ad;
}
.optics-definitions { position: absolute; inset: 0 auto auto 0; overflow: hidden; pointer-events: none; }

.header-inner, .hero-carousel, .orbit-tag, .hero-status, .hero .secondary,
.panel, .overview > .panel, .split > .panel, .panel.social-panel, .social-card,
.music-dock, .avatar-viewer, .site-search, .lightbox {
  background: var(--optic-film);
  border-color: var(--optic-border);
  box-shadow:
    inset 0 1px 2px var(--optic-highlight),
    inset 0 3px 8px var(--optic-highlight),
    inset 0 -4px 9px var(--optic-lowlight),
    0 10px 30px var(--liquid-shadow);


}
.panel, .overview > .panel, .split > .panel, .panel.social-panel,
.social-card, .avatar-viewer, .site-search, .lightbox {
  background: var(--optic-reading);
}
.header-inner, .music-dock, .orbit-tag, .hero-status, .hero .secondary {
  text-shadow: 0 1px 2px var(--optic-text-halo);
}
.site-header :is(.nav-control, a[aria-current="page"]),
.carousel-controls button, .music-toggle {
  background: var(--optic-film);
  border-color: var(--optic-border);
  box-shadow: inset 0 1px 2px var(--optic-highlight), inset 0 -2px 5px var(--optic-lowlight);
}
.site-header .nav-control:hover, .carousel-controls button:hover, .music-toggle:hover {
  background: var(--optic-reading);
}
a.social-card:hover, a.social-card:focus-visible {
  background: var(--optic-reading);
  box-shadow: inset 0 1px 4px var(--optic-highlight), 0 5px 15px var(--liquid-shadow);
}
.orbit-lens {
  border-color: var(--optic-border);
  box-shadow:
    0 0 0 5px #f7faff5c,
    0 0 0 11px #edf7ff36,
    0 0 25px var(--liquid-shadow);
}
.orbit-lens .brand-avatar { transform: none; }
.orbit-lens::before {
  background: linear-gradient(145deg, #ffffffe0, #fff0 22% 74%, #e0f2ff65);
  box-shadow: inset 3px 3px 9px var(--optic-highlight), inset -5px -5px 10px #635a8a53;
}
.hero-carousel .carousel-controls { text-shadow: 0 1px 2px var(--optic-text-halo); }
.music-track {
  border: 0; background: transparent; color: inherit; padding: 0; text-align: left;
  border-radius: 12px;
}
.music-track-text { min-width: 0; }
.music-list-icon { flex: none; font-size: 1.05rem; color: var(--purple); }
.music-note { position: relative; overflow: hidden; }
.music-note img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.music-library {
  width: min(calc(100% - 28px), 540px); max-height: min(68svh, 600px);
  margin: auto auto max(71px, calc(env(safe-area-inset-bottom) + 67px));
  padding: 0; border: 1px solid var(--optic-border); border-radius: 25px; color: var(--ink);
  background: var(--optic-reading);
  box-shadow: inset 0 1px 6px var(--optic-highlight), 0 18px 55px var(--liquid-shadow);


  overscroll-behavior: contain;
}
.music-library::backdrop { background: #3d224e46; }
.music-library-inner { display: grid; gap: 10px; padding: clamp(13px, 4vw, 20px); }
.music-library-head, .music-library-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.music-library-head h2 { font-size: clamp(1.1rem, 3vw, 1.35rem); }
.music-library-tracks { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.music-library-row {
  width: 100%; min-height: 57px; padding: 7px 11px; text-align: left; color: var(--ink);
  border: 1px solid var(--optic-border); border-radius: 15px; background: var(--optic-film);
}
.music-library-row:hover, .music-library-row[aria-current="true"] { background: var(--card); }
.music-library-row[aria-current="true"] { box-shadow: inset 3px 0 var(--purple); }
.music-library-row .music-note { width: 38px; height: 38px; flex-basis: 38px; }
.music-library-detail { min-width: 0; flex: 1; }
.music-library-detail :is(strong, small) { display: block; overflow-wrap: anywhere; }
.music-library-detail strong { font-size: .92rem; }
.music-library-play { color: var(--purple); flex: none; font-size: .8rem; }
.music-library-inner > .text-link { justify-self: start; }
@media (prefers-reduced-transparency: reduce) {
  .header-inner, .hero-carousel, .orbit-tag, .hero-status, .hero .secondary,
  .panel, .overview > .panel, .split > .panel, .panel.social-panel, .social-card,
  .music-dock, .music-library, .avatar-viewer, .site-search, .lightbox {
    background: var(--solid-surface);

  }
  .orbit-lens .brand-avatar { filter: none; }
}


/* Keep the background still and move only the entering content. */
@media (max-width: 759px), (pointer: coarse) {
  body::before { content: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .liquid-hero .hero-copy,
  main > .page-heading {
    animation: content-enter 210ms ease-out;
  }

  .section-enter {
    animation: content-enter 195ms ease-out;
  }

  .music-library[open], .lightbox[open], .site-search[open] {
    animation: content-enter 160ms ease-out;
  }
}

@keyframes content-enter {
  from { opacity: .65; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


.site-header .phone-nav-label { display: none; }

@media (max-width: 759px), (max-width: 950px) and (hover: none) and (pointer: coarse) {
  .site-header .header-inner { flex-wrap: wrap; }
  .site-header nav { order: 3; width: 100%; justify-content: center; }
  .site-header nav a { padding-inline: clamp(6px, 3vw, 14px); }
  .site-header .nav-search,
  .site-header nav a:not([href="/"], [href="/messages"], [href="/favorability"]),
  .site-header .desktop-nav-label { display: none; }
  .site-header .phone-nav-label { display: inline; }
  .site-header nav a[href="/"] { order: -2; }
  .site-header nav a[href="/messages"] { order: -1; }
  .site-header .theme-toggle { margin-inline-start: auto; }
}


/* A readable fallback for in-app browser engines that lack modal dialogs. */
.music-library[data-dialog-fallback][open] {
  display: block;
  position: fixed;
  z-index: 10;
  inset: auto 0 max(70px, calc(env(safe-area-inset-bottom) + 68px));
  margin: 0 auto;
  overflow: auto;
  background: var(--solid-surface);
}

@media (max-width: 759px), (max-width: 950px) and (hover: none) and (pointer: coarse) {
  @media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }

    /* Keep the previous frame opaque while the new page fades over it. */
    ::view-transition-old(root) {
      animation: none;
      opacity: 1;
      mix-blend-mode: normal;
    }

    ::view-transition-new(root) {
      animation: mobile-page-in 160ms ease-out both;
      mix-blend-mode: normal;
    }

    @keyframes mobile-page-in {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    html:active-view-transition :is(.liquid-hero .hero-copy, main > .page-heading, .section-enter) {
      animation: none;
    }
  }
}


@media (max-width: 759px), (max-width: 950px) and (hover: none) and (pointer: coarse) {
  @media (prefers-reduced-motion: no-preference) {
    .mobile-panel-enter > .page-heading,
    .mobile-panel-enter .hero-copy {
      animation: mobile-panel-in 140ms ease-out;
    }
    @keyframes mobile-panel-in {
      from { opacity: .86; transform: translateY(4px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}


.music-netease summary { cursor: pointer; font-weight: 650; }
.music-netease[open] summary { margin-bottom: 6px; }
#music-netease-player:not(:empty) { margin-bottom: 6px; }
#music-netease-player iframe { display: block; width: 100%; height: 305px; border: 0; }

/* music-10 — self-hosted library player */
.music-dock {
  grid-template-columns: minmax(0, 1.2fr) auto minmax(56px, 1fr) 2.8rem;
  gap: 7px;
  background: var(--paper);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
}
.music-track { grid-column: 1; grid-row: 1; }
.music-controls { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 2px; }
.music-dock .music-seek { grid-column: 3; grid-row: 1; }
.music-dock #music-time { grid-column: 4; grid-row: 1; }
.music-dock.is-bili .music-seek { display: none; }
.music-dock.is-bili #music-time { grid-column: 3 / 5; justify-self: end; padding-right: 2px; }
.music-step {
  display: grid; place-items: center;
  width: 27px; height: 30px; padding: 0; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); font-size: .92rem; line-height: 1;
  cursor: pointer;
}
.music-step:hover, .music-step:focus-visible { background: var(--tint); color: var(--ink); }
.music-dock .music-toggle {
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; line-height: 1;
  cursor: pointer;
}
.music-note-glyph { display: grid; place-items: center; width: 100%; height: 100%; }
.music-track .music-list-icon { margin-left: 2px; }
.music-dock #site-music { display: none; }

/* library panel */
.music-library {
  width: min(calc(100% - 24px), 780px);
  max-height: min(84svh, 820px);
  margin-bottom: max(96px, calc(env(safe-area-inset-bottom) + 92px));
  background: var(--card);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
  overflow: hidden;
}
.music-library-inner {
  display: grid; gap: 10px; padding: clamp(13px, 3.5vw, 20px);
  max-height: inherit; grid-template-rows: auto auto auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}
.music-now {
  display: flex; align-items: center; gap: 11px;
  padding: 9px; border: 1px solid var(--optic-border); border-radius: 17px;
  background: var(--optic-film);
}
.music-now-cover {
  width: 58px; height: 58px; flex: none; border-radius: 13px; object-fit: cover;
  background: linear-gradient(135deg, #f8cae0, #c3e3ff);
}
.music-now-text { min-width: 0; display: grid; gap: 2px; }
.music-now-text strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-now-text .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.music-tools .music-search { flex: 1 1 170px; min-width: 0; }
.music-tools input[type="search"] {
  width: 100%; min-height: 36px; padding: 6px 11px; color: var(--ink); font: inherit;
  border: 1px solid var(--optic-border); border-radius: 12px; background: var(--optic-reading);
}
.music-tools button {
  min-height: 34px; padding: 4px 10px; color: var(--muted); font: inherit; font-size: .8rem;
  border: 1px solid var(--optic-border); border-radius: 11px; background: var(--optic-film);
  cursor: pointer;
}
.music-tools button:hover { color: var(--ink); background: var(--optic-reading); }
.music-tools button.is-on, .music-tools button[aria-pressed="true"] {
  color: var(--purple); border-color: color-mix(in srgb, var(--purple) 45%, transparent);
  background: color-mix(in srgb, var(--purple) 10%, var(--optic-reading));
}
.music-volume { display: flex; align-items: center; width: 86px; }
.music-volume input { width: 100%; accent-color: var(--control-accent); }
/* vinyl wall */
.record-wall-frame {
  position: relative; min-height: 0; padding: 38px 12px 12px;
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(255, 226, 186, .18); border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 28%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 26px),
    linear-gradient(155deg, #4b2b20, #2b1713 48%, #1a0d0b);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .16),
    inset 0 -24px 40px rgba(0, 0, 0, .42),
    0 14px 30px rgba(58, 25, 34, .16);
}
.record-wall-plaque {
  position: absolute; top: 10px; left: 15px; right: 92px; margin: 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  color: #f0d9b5; font-size: .7rem; letter-spacing: .08em;
}
.record-wall-plaque .meta { color: rgba(240, 217, 181, .58); font-size: .62rem; letter-spacing: .04em; }
.record-arm {
  position: absolute; top: 16px; right: 24px; width: 62px; height: 5px; border-radius: 999px;
  background: linear-gradient(90deg, #826039, #e9cd96 58%, #96703f);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .5);
  transform: rotate(-27deg); transform-origin: 100% 50%;
}
.record-arm::after {
  content: ''; position: absolute; left: -7px; top: -4px; width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f8e8c9, #7c5931);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .65);
}
.record-wall {
  list-style: none; margin: 0; padding: 4px 2px 2px; min-height: 0; flex: 1;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 20px 14px; max-height: none; overflow: auto; overscroll-behavior: contain;
  scrollbar-width: thin;
}
.record-item { position: relative; display: grid; justify-items: center; gap: 6px; min-width: 0; }
.record-disc {
  position: relative; width: min(100%, 108px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%;
  cursor: pointer;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, .17), transparent 32%),
    repeating-radial-gradient(circle at 50% 50%, #0b0b0d 0 2px, #17171a 2px 3.2px, #09090b 3.2px 4.4px);
  box-shadow:
    0 12px 18px rgba(0, 0, 0, .55),
    inset 0 0 0 2px #050505,
    inset 0 0 0 3px rgba(255, 255, 255, .06);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .25s ease, box-shadow .25s ease;
}
.record-disc::before {
  content: ''; position: absolute; inset: 8%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 210deg, transparent 0 18%, rgba(255, 255, 255, .08) 24%, transparent 32% 68%, rgba(255, 255, 255, .06) 75%, transparent 82%);
  opacity: .8;
}
.record-disc:hover, .record-disc:focus-visible {
  transform: rotate(0deg) scale(1.04); outline: none;
  box-shadow:
    0 16px 24px rgba(0, 0, 0, .6),
    0 0 0 2px rgba(238, 205, 153, .55),
    inset 0 0 0 2px #050505;
}
.record-label {
  position: absolute; inset: 29%; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #f6c9dd, #bfe2ff);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35), 0 0 0 2px rgba(255, 255, 255, .08);
}
.record-label img { display: block; width: 100%; height: 100%; object-fit: cover; }
.record-label.is-empty::before {
  content: '♪'; position: absolute; inset: 0; display: grid; place-items: center;
  color: #5a2b45; font-size: 1.3rem;
}
.record-spindle {
  position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px;
  border-radius: 50%; background: #130d0b; box-shadow: 0 0 0 2px #e9dcc4; z-index: 2;
}
.record-item.is-playing .record-disc {
  animation: record-spin 9s linear infinite;
  box-shadow:
    0 0 0 2px rgba(244, 211, 156, .8),
    0 0 24px rgba(238, 190, 128, .4),
    0 14px 22px rgba(0, 0, 0, .55);
}
.record-item.is-current .record-caption strong { color: #ffe9c4; }
.record-item.is-unplayable .record-disc { filter: saturate(.5) brightness(.72); }
.record-item.is-unplayable .record-disc:hover { filter: saturate(.8) brightness(.9); }
@keyframes record-spin { to { transform: rotate(360deg); } }
.record-caption { width: 100%; min-width: 0; text-align: center; color: #f3e3c8; line-height: 1.25; }
.record-caption strong {
  display: block; font-size: .76rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.record-caption span {
  display: block; margin-top: 1px; font-size: .64rem; color: rgba(243, 227, 200, .6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.record-badge {
  font-size: .56rem; line-height: 1; padding: 3px 6px; border-radius: 999px;
  color: #2b1713; background: #e8cfa3; letter-spacing: .05em;
}
.record-badge.is-none { color: #f0d9b5; background: rgba(255, 255, 255, .14); }
.record-badge.is-site { color: #2b1713; background: #cfe3f2; }
.record-badge.is-bili { color: #fff4f7; background: #d45b86; }
.record-fav {
  position: absolute; top: -4px; right: 1px; width: 24px; height: 24px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; font-size: .78rem; cursor: pointer;
  color: rgba(255, 238, 220, .72); border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(26, 14, 12, .74);
  opacity: 0; transform: translateY(2px); transition: opacity .18s, transform .18s;
}
.record-item:hover .record-fav, .record-fav:focus-visible, .record-fav.is-on {
  opacity: 1; transform: none;
}
.record-fav.is-on { color: #ff9dc5; }
#music-empty { padding: 14px 4px; text-align: center; }

/* bilibili stage */
.music-library.is-bili .music-library-inner { grid-template-rows: auto minmax(0, 1fr); }
.music-library.is-bili .music-library-inner > :not(.music-library-head):not(.bili-stage) { display: none; }
.bili-stage {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; min-height: 0;
}
.bili-stage-head {
  display: grid; grid-template-columns: auto 1fr auto;
  grid-template-areas: "back . link" "title title title";
  align-items: center; gap: 6px 9px; min-width: 0;
}
.bili-stage-head strong {
  grid-area: title; min-width: 0; font-size: .9rem; line-height: 1.35;
  overflow-wrap: anywhere;
}
#music-bili-back { grid-area: back; justify-self: start; }
#music-bili-link { grid-area: link; justify-self: end; }
.bili-back {
  flex: none; min-height: 32px; padding: 4px 9px; color: var(--muted); font: inherit; font-size: .78rem;
  border: 1px solid var(--optic-border); border-radius: 10px; background: var(--optic-film); cursor: pointer;
}
.bili-back:hover { color: var(--ink); background: var(--optic-reading); }
.bili-frame {
  position: relative; min-height: 300px; overflow: hidden; border-radius: 13px; background: #08060a;
  box-shadow: 0 8px 22px rgba(20, 8, 14, .22);
}
.bili-player-wrap { position: absolute; inset: 0; }
.bili-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.bili-audio-cover {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center;
  gap: 10px; padding: 18px; text-align: center;
  background: radial-gradient(circle at 50% 42%, #2c2320 0, #17100f 46%, #0a0707 100%);
}
.bili-audio-cover[hidden] { display: none; }
.bili-vinyl {
  position: relative; display: grid; place-items: center; width: min(190px, 58vw); max-width: 100%; aspect-ratio: 1;
  border-radius: 50%; animation: bili-spin 7s linear infinite;
  background:
    repeating-radial-gradient(circle, #161314 0 2px, #211d1d 2px 4px, #0e0c0c 4px 6px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .46), inset 0 0 0 1px rgba(255, 236, 214, .1);
}
.bili-vinyl::after {
  content: ""; position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(circle, transparent 57%, rgba(255, 244, 228, .07) 58%, transparent 60%);
}
.bili-vinyl img {
  width: 44%; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 5px #0c0a0a, 0 0 0 6px rgba(255, 238, 218, .24);
}
.bili-vinyl img[hidden] { display: none; }
.bili-vinyl-hole {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: #0a0707; border: 2px solid #e9d9c7; box-shadow: 0 0 0 3px #0a0707;
}
.bili-audio-caption {
  margin: 2px 0 0; color: #f4e7da; font-size: .78rem; letter-spacing: .12em;
}
.bili-audio-hint { margin: 0; color: #b7a596; font-size: .6rem; letter-spacing: .04em; }
.bili-note {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-align: right; margin: 0; font-size: .62rem;
}
.bili-visual {
  flex: none; padding: 0; color: var(--ink); font: inherit; font-size: .62rem;
  text-decoration: underline; text-underline-offset: 2px; border: 0; background: none; cursor: pointer;
}
.bili-visual:hover { color: var(--accent); }
.bili-start {
  margin-top: 12px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff;
  font: inherit; font-size: .72rem; cursor: pointer;
}
.bili-start:hover { background: rgba(255, 255, 255, .24); }
@keyframes bili-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bili-vinyl { animation: none; } }

/* admin */
.admin-music-upload fieldset { display: grid; gap: 9px; }
.admin-music-fields {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 12px;
}
.admin-music-fields label { display: block; }
.admin-music-fields input { width: 100%; min-width: 0; }
.admin-music-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 14px 0 0; }
.admin-music-list { display: grid; gap: 8px; margin-top: 12px; }
.admin-music-item {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px;
  align-items: center; padding: 9px; border: 1px solid var(--optic-border);
  border-radius: 14px; background: var(--optic-film);
}
.admin-music-item .music-note { width: 46px; height: 46px; flex-basis: 46px; }
.admin-music-meta { min-width: 0; display: grid; gap: 5px; }
.admin-music-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-music-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.admin-music-edit input {
  width: 100%; min-width: 0; padding: 4px 8px; font: inherit; font-size: .82rem;
  color: var(--ink); border: 1px solid var(--optic-border); border-radius: 8px;
  background: var(--optic-reading);
}
.admin-music-item-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.admin-music-item-actions button { padding: 4px 8px; font-size: .76rem; }
.admin-music-item .hint { font-size: .72rem; }

@media (max-width: 700px) {
  .music-dock {
    grid-template-columns: minmax(0, 1fr) auto 2.6rem;
    row-gap: 1px;
  }
  .music-dock .music-track { grid-column: 1; grid-row: 1; }
  .music-dock .music-controls { grid-column: 2; grid-row: 1; }
  .music-dock #music-time { grid-column: 3; grid-row: 1; }
  .music-dock .music-seek { grid-column: 1 / -1; grid-row: 2; }
  .music-dock.is-bili #music-time { grid-column: 3; grid-row: 1; }
  .music-tools .music-search { flex-basis: 100%; }
  .music-library { width: calc(100vw - 20px); max-height: 84svh; margin-bottom: 106px; }
  .music-library-inner { grid-template-rows: auto auto auto auto minmax(0, 1fr) auto auto; }
  .record-wall-frame { padding: 40px 8px 10px; }
  .record-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 10px;
  }
  .record-disc { width: min(100%, 88px); }
  .record-caption strong { font-size: .69rem; }
  .record-caption span { font-size: .61rem; }
  .record-fav { opacity: 1; transform: none; top: -2px; right: -1px; }
  .record-badge { font-size: .52rem; padding: 2px 5px; }
  .music-volume { display: none; }
}

/* Night scenery: the user's own illustration, kept behind the reading layers. */
[data-theme="dark"] {
  --sakura-image: url('/assets/night-doyaa.webp');
  --scenery-wash: linear-gradient(100deg, #0b0307e8, #16060d9c 46%, #070103e0);
  --scenery-glaze: linear-gradient(180deg, #0801048f, #10040a73 52%, #030002d9);
}

/* floating side player */
.music-float {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  width: 204px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "track" "time";
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid var(--optic-border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(42, 20, 34, .2), inset 0 1px 0 rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  backdrop-filter: blur(20px) saturate(1.12);
}
.music-float[hidden] { display: none; }
.music-float-track {
  grid-area: track;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.music-float-track:hover { background: var(--tint); }
.music-float-disc {
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: repeating-radial-gradient(circle at 50% 50%, #17131a 0 2px, #27212c 2px 4px);
  box-shadow: 0 6px 14px rgba(24, 10, 20, .28);
}
.music-float-disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.music-float-disc::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--card);
  box-shadow: 0 0 0 2px rgba(12, 7, 12, .45);
  z-index: 2;
}
.music-float-text { min-width: 0; display: grid; gap: 2px; }
.music-float-text strong, .music-float-text small {
  overflow: hidden; text-overflow: ellipsis;
}
.music-float-text strong {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  white-space: normal; font-size: .82rem; line-height: 1.25;
}
.music-float-text small { white-space: nowrap; }
.music-float-text small { color: var(--muted); font-size: .67rem; }
.music-float-controls { grid-area: controls; display: flex; align-items: center; gap: 1px; }
.music-float .music-step { width: 26px; height: 28px; font-size: .82rem; }
.music-float .music-toggle { width: 30px; height: 30px; font-size: .68rem; }
.music-float #music-time {
  grid-area: time; align-self: center; justify-self: end;
  color: var(--muted); font-size: .68rem; font-variant-numeric: tabular-nums;
  padding-right: 2px;
}
.music-float #site-music { display: none; }
@media (max-width: 700px) {
  .music-float {
    top: auto;
    right: calc(12px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    transform: none;
    width: auto;
    padding: 5px;
    border-radius: 50%;
    display: block;
  }
  .music-float-track { display: block; border-radius: 50%; }
  .music-float-disc { width: 50px; height: 50px; flex-basis: 50px; }
  .music-float-text, .music-float-controls, .music-float #music-time, .music-float .music-seek { display: none; }
}

/* opening line + tactile glass */
:root { color-scheme: only light; }
:root[data-theme="dark"] { color-scheme: only dark; }
.hero-oath {
  display: inline-block; margin: 10px 0 10px; padding: 3px 12px;
  border: 1px solid rgba(255, 255, 255, .38); border-radius: 999px;
  background: rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(9px) saturate(1.2);
  backdrop-filter: blur(9px) saturate(1.2);
  box-shadow: inset 0 1px rgba(255, 255, 255, .5), 0 6px 16px rgba(60, 30, 40, .1);
  white-space: nowrap;
  font-family: KaiTi, STKaiti, 'Noto Serif CJK SC', var(--sans);
  font-size: clamp(1.12rem, 2.9vw, 1.42rem);
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.55;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .2), 0 1px 6px rgba(53, 36, 53, .22);
}
:root[data-theme="dark"] .hero-oath {
  border-color: rgba(255, 210, 230, .2);
  background: rgba(28, 16, 26, .52);
  box-shadow: inset 0 1px rgba(255, 230, 240, .16), 0 6px 16px rgba(0, 0, 0, .28);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.hero-oath span { display: inline-block; opacity: 0; transform: translateY(5px) scale(1.08); }
.hero-oath.is-playing span {
  animation: oath-flash 780ms cubic-bezier(.18, .78, .22, 1) both;
  animation-delay: calc(240ms + var(--i) * 82ms);
}
@keyframes oath-flash {
  0% { opacity: 0; filter: blur(9px); transform: translateY(9px) scale(1.3); color: #fff; text-shadow: 0 0 24px #fff, 0 0 44px rgba(255, 182, 220, .8); }
  48% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1.03); color: #fff; text-shadow: 0 0 16px #fff, 0 0 34px rgba(255, 210, 238, .85); }
  72% { opacity: 1; transform: scale(1); color: var(--ink); }
  100% { opacity: .94; filter: blur(0); transform: none; color: var(--ink); }
}
@media (max-width: 759px) {
  .hero-oath { margin-top: 10px; font-size: clamp(1rem, 3.7vw, 1.18rem); letter-spacing: .1em; }
  @media (prefers-reduced-motion: no-preference) {
    .section-enter { animation: section-flash-in 620ms cubic-bezier(.16, .74, .2, 1) both; }
    @keyframes section-flash-in {
      0% { opacity: .22; transform: translateY(18px) scale(.985); filter: blur(7px) brightness(1.55) saturate(.8); }
      52% { opacity: 1; transform: translateY(0) scale(1.002); filter: blur(0) brightness(1.08) saturate(1.12); }
      100% { opacity: 1; transform: none; filter: none; }
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-oath span { opacity: 1; transform: none; }
}

:root {
  --glass-noise: 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='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header .header-inner, .hero-carousel, .orbit-tag, .hero-status, .hero .secondary,
  .overview > .panel, .panel, .social-card {
    -webkit-backdrop-filter: blur(22px) saturate(1.5) brightness(1.04) contrast(1.02);
    backdrop-filter: blur(22px) saturate(1.5) brightness(1.04) contrast(1.02);
  }
  .overview > .panel, .panel {
    background-image: var(--optic-reading), var(--glass-noise);
    background-size: auto, 180px 180px;
    background-blend-mode: normal, soft-light;
    background-clip: padding-box;
    box-shadow:
      inset 0 1px 1px var(--optic-highlight),
      inset 0 -1px 1px var(--optic-lowlight),
      inset 0 16px 30px rgba(255, 255, 255, .055),
      0 20px 48px var(--liquid-shadow);
  }
  .site-header .header-inner, .hero-carousel {
    background-image: var(--optic-film), var(--glass-noise);
    background-size: auto, 180px 180px;
    background-blend-mode: normal, soft-light;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header .header-inner, .hero-carousel, .overview > .panel, .panel, .social-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-image: var(--solid-surface);
  }
}

/* boot sequence */
.boot-screen {
  position: fixed; inset: 0; z-index: 200; overflow: hidden;
  display: grid; place-items: center; color: #fff;
  background:
    radial-gradient(circle at 50% 36%, rgba(141, 52, 87, .34), transparent 33%),
    radial-gradient(circle at 16% 8%, rgba(182, 220, 233, .18), transparent 32%),
    radial-gradient(circle at 84% 78%, rgba(104, 40, 68, .2), transparent 36%),
    #09060c;
  transition: opacity .72s ease, visibility .72s ease;
}
html.boot-skip .boot-screen { display: none; }
html.booting { overflow: hidden; }
.boot-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 34%, rgba(3, 2, 5, .64) 100%);
}
.boot-stars {
  position: absolute; inset: -20%;
  background-image:
    radial-gradient(circle, #ffeaf2 0 1px, transparent 1.5px),
    radial-gradient(circle, #cfe8f1 0 1px, transparent 1.6px),
    radial-gradient(circle, #fff 0 .7px, transparent 1.2px);
  background-size: 137px 121px, 211px 173px, 89px 97px;
  background-position: 0 0, 40px 70px, 22px 14px;
  opacity: .55; animation: boot-drift 18s linear infinite;
}
.boot-comet {
  position: absolute; left: -14%; top: 23%; width: 48vw; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 236, .95), transparent);
  box-shadow: 0 0 16px rgba(255, 184, 210, .8);
  transform: rotate(-24deg); transform-origin: left center;
  animation: boot-comet 1.9s cubic-bezier(.16, .7, .3, 1) .15s both;
}
.boot-core {
  position: relative; z-index: 1; display: grid; justify-items: center;
  padding: 24px; text-align: center; isolation: isolate;
}
.boot-core::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 46%;
  width: min(76vw, 760px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 164, 199, .17), rgba(141, 52, 87, .07) 42%, transparent 66%);
  filter: blur(8px);
}
.boot-orbit {
  position: relative; width: 112px; height: 112px; padding: 5px; border-radius: 50%;
  background: linear-gradient(145deg, #fff3f8, #e3b7c9 55%, #9e627b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .38), 0 0 44px rgba(255, 172, 205, .38), 0 22px 48px rgba(0, 0, 0, .45);
  animation: boot-arrive .8s cubic-bezier(.16, 1, .3, 1) both;
}
.boot-orbit img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.boot-kicker {
  margin: 22px 0 0; color: #ffd9e7; font-size: .66rem; font-weight: 700;
  letter-spacing: .38em; text-indent: .38em; opacity: 0;
  animation: boot-fade .7s ease .35s forwards;
}
.boot-name {
  margin: 10px 0 0; font-family: "Iowan Old Style", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(2.2rem, 8vw, 3.9rem); font-weight: 700; line-height: 1.1;
  letter-spacing: .08em; text-shadow: 0 0 26px rgba(255, 176, 207, .28);
}
.boot-name span {
  display: inline-block; opacity: 0; transform: translateY(18px) rotateX(55deg);
  animation: boot-letter .72s cubic-bezier(.18, .86, .3, 1) both;
  animation-delay: calc(.55s + var(--i) * 92ms);
}
.boot-welcome {
  margin: 12px 0 0; color: #f4c9d8; font-size: .72rem; font-weight: 600;
  letter-spacing: .36em; text-indent: .36em; opacity: 0;
  animation: boot-fade .7s ease 1.55s forwards;
}
.boot-load {
  width: 184px; height: 2px; margin: 26px 0 0; overflow: hidden; border-radius: 2px;
  background: rgba(255, 255, 255, .16); opacity: 0; animation: boot-fade .4s ease 1.15s forwards;
}
.boot-load i {
  display: block; width: 0; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #ffc1d6, #fff1f6);
  box-shadow: 0 0 10px rgba(255, 193, 214, .8);
  animation: boot-load 1.9s cubic-bezier(.5, 0, .2, 1) 1.2s forwards;
}
.boot-hint {
  margin: 16px 0 0; color: rgba(255, 244, 247, .48); font-size: .65rem;
  letter-spacing: .12em; opacity: 0; animation: boot-fade .8s ease 2.4s forwards;
}
.boot-screen.is-leaving { opacity: 0; visibility: hidden; }
@keyframes boot-arrive {
  from { opacity: 0; transform: scale(.72); filter: blur(10px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes boot-letter {
  from { opacity: 0; transform: translateY(18px) rotateX(55deg); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) rotateX(0); filter: blur(0); }
}
@keyframes boot-fade { to { opacity: 1; } }
@keyframes boot-load { to { width: 100%; } }
@keyframes boot-comet {
  0% { opacity: 0; transform: translate3d(-8vw, -10vh, 0) rotate(-24deg) scaleX(.3); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(88vw, 30vh, 0) rotate(-24deg) scaleX(1); }
}
@keyframes boot-drift { to { transform: translate3d(-26px, 18px, 0); } }

@media (min-width: 760px) {
  .boot-orbit { width: 148px; height: 148px; padding: 6px; }
  .boot-kicker { margin-top: 30px; font-size: .72rem; }
  .boot-name { font-size: 4.4rem; }
  .boot-load { width: 226px; margin-top: 30px; }
}

/* sections stay out of sight until they are scrolled into view */
.reveal-ready :where(
  main > section:not(.liquid-hero):not(.section-enter),
  main .hero-carousel:not(.section-enter),
  main .overview > section:not(.section-enter),
  main .split > section:not(.section-enter),
  .site-footer:not(.section-enter)
) {
  opacity: 0; transform: translateY(30px) scale(.985); filter: blur(10px);
  transition: opacity .72s ease, transform .78s cubic-bezier(.16, 1, .3, 1), filter .72s ease;
  will-change: opacity, transform, filter;
}
.reveal-ready main > section.section-enter,
.reveal-ready main .hero-carousel.section-enter,
.reveal-ready main .overview > section.section-enter,
.reveal-ready main .split > section.section-enter,
.reveal-ready .site-footer.section-enter { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .boot-screen { display: none; }
  .reveal-ready :where(
    main > section:not(.liquid-hero),
    main .hero-carousel,
    main .overview > section,
    main .split > section,
    .site-footer
  ) { opacity: 1; transform: none; filter: none; transition: none; }
}
