.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  color: var(--uniform-navy);
  font-weight: 900;
  text-decoration: none;
  border: 1px solid rgba(201, 141, 46, 0.32);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 12px 28px rgba(80, 55, 28, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(80, 55, 28, 0.14);
}

.button--primary {
  color: var(--ivory);
  border-color: transparent;
  background: linear-gradient(135deg, var(--uniform-navy), #50567a);
}

.button--ghost {
  background: rgba(255, 250, 240, 0.54);
  backdrop-filter: blur(12px);
}

.button--small {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 0.86rem;
}

.panel,
.feature-ribbon article,
.portal-card,
.timeline-card,
.quote-card,
.recipe-card,
.outfit-card,
.fanart-card,
.daily-scene,
.diary-page,
.typewriter-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.entrance-hero {
  position: relative;
  min-height: calc(100vh - 78px);
  overflow: hidden;
  isolation: isolate;
}

.hero-full__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
}

.hero-full__image--base {
  z-index: -4;
  filter: saturate(0.94) brightness(1.04);
}

.hero-full__image--local-backdrop {
  z-index: -3;
  opacity: 0.36;
  filter: blur(26px) saturate(1.04) brightness(1.08);
  transform: scale(1.08);
}

.hero-full__image--local {
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.92;
  object-fit: contain;
  object-position: right center;
  transform: translate3d(var(--hero-move-x, 0), var(--hero-move-y, 0), 0);
  filter: saturate(1.05) brightness(1.04) drop-shadow(0 24px 42px rgba(80, 55, 28, 0.16));
  transition: opacity 260ms ease, transform 220ms ease, filter 260ms ease;
}

.hero-full.is-portrait-focus .hero-full__image--local {
  opacity: 0.9;
  filter: saturate(1.08) brightness(1.06);
}

.hero-full__image--local.is-switching {
  opacity: 0.34;
  filter: saturate(0.9) brightness(1.12);
}

.hero-full__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 18% 52%, rgba(255, 250, 240, 0.94), rgba(255, 250, 240, 0.62) 32%, rgba(255, 250, 240, 0.16) 54%, transparent 74%),
    linear-gradient(90deg, rgba(255, 250, 240, 0.68), rgba(255, 250, 240, 0.36) 38%, rgba(255, 250, 240, 0.04) 72%),
    linear-gradient(180deg, rgba(47, 52, 79, 0.03), rgba(52, 41, 29, 0.16));
  transition: opacity 220ms ease;
}

.hero-full.is-portrait-focus .hero-full__shade {
  opacity: 0.58;
}

.hero-full__content {
  position: relative;
  display: grid;
  align-content: center;
  min-height: calc(100vh - 78px);
  width: min(560px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 98px);
  padding: clamp(28px, 5vw, 48px) 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.hero-full.is-portrait-focus .hero-full__content {
  opacity: 0.12;
  pointer-events: none;
  transform: translateX(-18px);
}

.hero-full__content::before {
  position: absolute;
  inset: 12% 0 12% -8%;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at 24% 50%, rgba(255, 250, 240, 0.78), rgba(255, 246, 224, 0.34) 42%, transparent 64%);
  filter: blur(10px);
}

.hero-full__content h1 {
  text-shadow: 0 8px 28px rgba(255, 250, 240, 0.72), 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-lead {
  max-width: 520px;
  color: var(--soft-brown);
  font-size: clamp(1.04rem, 2.2vw, 1.38rem);
  text-shadow: 0 1px 16px rgba(255, 250, 240, 0.88);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(500px, 100%);
  margin-top: 18px;
}

.hero-meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid rgba(201, 141, 46, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.5);
  box-shadow: 0 6px 16px rgba(80, 55, 28, 0.06);
  backdrop-filter: blur(10px);
}

.hero-meta strong {
  flex: 0 1 auto;
  overflow: hidden;
  color: var(--uniform-navy);
  font-size: 0.78rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-meta small {
  flex: 0 1 auto;
  overflow: hidden;
  color: var(--caramel);
  font-size: 0.68rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-actions,
.player-controls,
.quiz-actions,
.live-controls,
.cinema-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-portrait-toggle {
  position: absolute;
  z-index: 6;
  top: clamp(94px, 13vh, 132px);
  left: clamp(18px, 7vw, 98px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--uniform-navy);
  cursor: pointer;
  opacity: 0.82;
  border: 1px solid rgba(201, 141, 46, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.52);
  box-shadow: 0 10px 22px rgba(80, 55, 28, 0.1);
  backdrop-filter: blur(12px);
  font-weight: 900;
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hero-portrait-toggle:hover,
.hero-portrait-toggle:focus-visible,
.hero-portrait-toggle[aria-pressed="true"] {
  opacity: 1;
  border-color: rgba(201, 141, 46, 0.64);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 16px 34px rgba(201, 141, 46, 0.22);
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  color: rgba(47, 52, 79, 0.76);
  font-weight: 900;
  text-decoration: none;
  transform: translateX(-50%);
}

.local-hero-deck {
  display: grid;
  grid-template-columns: minmax(240px, 0.84fr) minmax(0, 1.6fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  margin-top: 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(234, 210, 162, 0.62);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 0 0, rgba(243, 216, 137, 0.28), transparent 34%),
    rgba(255, 253, 248, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.local-hero-deck h2 {
  margin: 0 0 8px;
  color: var(--uniform-navy);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.local-hero-deck p:last-child {
  margin: 0;
  color: var(--soft-brown);
  font-weight: 800;
}

.local-hero-strip {
  display: grid;
  grid-auto-columns: minmax(108px, 132px);
  grid-auto-flow: column;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 4px 10px;
  scrollbar-color: rgba(201, 141, 46, 0.42) transparent;
}

.local-hero-thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  min-width: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.94), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(243, 216, 137, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 244, 214, 0.78));
  box-shadow: 0 12px 26px rgba(80, 55, 28, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.local-hero-thumb::before,
.local-hero-thumb::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.local-hero-thumb::before {
  background:
    linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.58) 47%, transparent 62%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.06), rgba(80, 55, 28, 0.08));
  opacity: 0;
  transform: translateX(-38%);
  transition: opacity 180ms ease, transform 260ms ease;
}

.local-hero-thumb::after {
  inset: auto 10px 8px;
  height: 18%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(80, 55, 28, 0.16), transparent 72%);
  opacity: 0.42;
}

.local-hero-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 8px 8px 14px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 13px 18px rgba(80, 55, 28, 0.16));
  transform: scale(0.98);
  transition: transform 220ms ease, filter 220ms ease;
}

.local-hero-thumb span {
  position: absolute;
  z-index: 2;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  min-width: 34px;
  min-height: 26px;
  max-width: calc(100% - 16px);
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  color: var(--uniform-navy);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.local-hero-thumb:hover,
.local-hero-thumb:focus-visible,
.local-hero-thumb.is-active {
  border-color: rgba(201, 141, 46, 0.72);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 1), transparent 36%),
    radial-gradient(circle at 82% 78%, rgba(243, 216, 137, 0.36), transparent 36%),
    linear-gradient(180deg, rgba(255, 253, 248, 1), rgba(255, 242, 207, 0.88));
  box-shadow: 0 16px 34px rgba(201, 141, 46, 0.24);
  transform: translateY(-3px);
}

.local-hero-thumb:hover::before,
.local-hero-thumb:focus-visible::before,
.local-hero-thumb.is-active::before {
  opacity: 1;
  transform: translateX(34%);
}

.local-hero-thumb:hover img,
.local-hero-thumb:focus-visible img,
.local-hero-thumb.is-active img {
  filter: drop-shadow(0 16px 22px rgba(80, 55, 28, 0.2));
  transform: scale(1.01);
}

.creator-home {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  padding-block: clamp(42px, 7vw, 74px);
  border-block: 1px solid rgba(234, 210, 162, 0.56);
}

.creator-home::before {
  position: absolute;
  inset: 12px 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 255, 255, 0.82), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(125, 152, 199, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.7), rgba(255, 247, 228, 0.44));
}

.creator-home__copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.creator-home__copy h2,
.creator-profile__intro h2,
.contact-card h2 {
  max-width: 760px;
  margin: 0;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.08;
}

.creator-home__copy p,
.creator-profile__intro p,
.contact-card p {
  max-width: 720px;
  margin: 0;
  color: var(--soft-brown);
  font-weight: 820;
  line-height: 1.85;
}

.creator-home__actions,
.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.creator-home__cards,
.creator-skill-list,
.creator-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.creator-card,
.creator-skill-list article,
.creator-projects a,
.contact-card__panel {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: clamp(17px, 2.5vw, 22px);
  overflow: hidden;
  color: var(--soft-brown);
  text-decoration: none;
  border: 1px solid rgba(234, 210, 162, 0.62);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 88% 10%, rgba(243, 216, 137, 0.24), transparent 32%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.88), rgba(255, 247, 228, 0.66));
  box-shadow: var(--shadow-soft);
}

.creator-card::before,
.creator-skill-list article::before,
.creator-projects a::before,
.contact-card__panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(110deg, transparent 0 38%, rgba(255, 255, 255, 0.42) 52%, transparent 66%);
  opacity: 0;
  transform: translateX(-36%);
  transition: opacity 180ms ease, transform 300ms ease;
}

.creator-projects a {
  min-height: 248px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.creator-projects__media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 0 0 4px;
  overflow: hidden;
  border: 1px solid rgba(201, 141, 46, 0.18);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 25% 12%, rgba(255, 253, 248, 0.65), transparent 42%),
    linear-gradient(135deg, rgba(243, 216, 137, 0.16), rgba(125, 152, 199, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.creator-projects__media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, transparent 44%, rgba(52, 41, 29, 0.14)),
    radial-gradient(circle at 82% 18%, rgba(255, 250, 240, 0.24), transparent 38%);
}

.creator-projects__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.02);
  transition: transform 260ms ease, filter 260ms ease;
}

.creator-projects a:hover .creator-projects__media img,
.creator-projects a:focus-visible .creator-projects__media img {
  filter: saturate(1.05) brightness(1.04);
  transform: scale(1.06);
}

.creator-projects a:hover,
.creator-projects a:focus-visible {
  color: var(--uniform-navy);
  border-color: rgba(201, 141, 46, 0.48);
  background:
    radial-gradient(circle at 88% 10%, rgba(243, 216, 137, 0.34), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(255, 244, 214, 0.78));
  box-shadow: 0 18px 38px rgba(80, 55, 28, 0.13);
  transform: translateY(-2px);
}

.creator-projects a:hover::before,
.creator-projects a:focus-visible::before {
  opacity: 1;
  transform: translateX(34%);
}

.creator-card span,
.creator-skill-list span,
.creator-projects span,
.contact-card__panel span {
  position: relative;
  justify-self: start;
  padding: 4px 10px;
  color: var(--caramel);
  border: 1px solid rgba(201, 141, 46, 0.18);
  border-radius: 999px;
  background: rgba(243, 216, 137, 0.2);
  font-size: 0.72rem;
  font-weight: 900;
}

.creator-card h3,
.creator-card strong,
.creator-skill-list strong,
.creator-projects strong,
.contact-card__panel strong {
  position: relative;
  margin: 0;
  color: var(--uniform-navy);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.28;
}

.creator-card p,
.creator-skill-list small,
.creator-projects small,
.contact-card__panel small {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.65;
}

.creator-projects__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  justify-self: start;
  min-width: 112px;
  margin-top: auto;
  padding: 8px 11px;
  color: var(--uniform-navy);
  border: 1px solid rgba(201, 141, 46, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.64);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

.creator-projects__cta::after {
  margin-left: 10px;
  color: var(--caramel);
  content: "›";
  font-size: 1.08rem;
  line-height: 0.8;
  transition: transform 180ms ease;
}

.creator-projects a:hover .creator-projects__cta::after,
.creator-projects a:focus-visible .creator-projects__cta::after {
  transform: translateX(3px);
}

.creator-showcase,
.creator-links {
  display: grid;
  gap: clamp(18px, 4vw, 30px);
}

.mahiru-quick-profile {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(18px, 4vw, 38px);
  align-items: center;
  padding-block: clamp(42px, 7vw, 74px);
}

.mahiru-quick-profile__copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.mahiru-quick-profile__copy h2 {
  max-width: 720px;
  margin: 0;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.08;
}

.mahiru-quick-profile__copy p {
  max-width: 680px;
  margin: 0;
  color: var(--soft-brown);
  font-weight: 820;
  line-height: 1.85;
}

.mahiru-quick-profile__copy .button {
  justify-self: start;
  margin-top: 8px;
}

.site-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.site-note-grid article {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(234, 210, 162, 0.58);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 88% 12%, rgba(243, 216, 137, 0.18), transparent 32%),
    rgba(255, 253, 248, 0.62);
  box-shadow: 0 12px 28px rgba(80, 55, 28, 0.08);
}

.site-note-grid span {
  color: var(--caramel);
  font-size: 0.72rem;
  font-weight: 950;
}

.site-note-grid strong {
  color: var(--uniform-navy);
  font-size: 1rem;
  line-height: 1.28;
}

.site-note-grid small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.6;
}

.mahiru-quick-profile__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mahiru-quick-profile__facts article {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 10px;
  min-height: 178px;
  padding: clamp(17px, 2.5vw, 22px);
  overflow: hidden;
  border: 1px solid rgba(234, 210, 162, 0.62);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 86% 10%, rgba(243, 216, 137, 0.25), transparent 34%),
    radial-gradient(circle at 8% 92%, rgba(125, 152, 199, 0.09), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(255, 247, 228, 0.68));
  box-shadow: var(--shadow-soft);
}

.mahiru-quick-profile__facts article::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(110deg, transparent 0 38%, rgba(255, 255, 255, 0.36) 52%, transparent 66%);
  opacity: 0;
  transform: translateX(-36%);
  transition: opacity 180ms ease, transform 300ms ease;
}

.mahiru-quick-profile__facts article:hover::before {
  opacity: 1;
  transform: translateX(34%);
}

.mahiru-quick-profile__facts span {
  position: relative;
  justify-self: start;
  padding: 4px 10px;
  color: var(--caramel);
  border: 1px solid rgba(201, 141, 46, 0.18);
  border-radius: 999px;
  background: rgba(243, 216, 137, 0.2);
  font-size: 0.72rem;
  font-weight: 900;
}

.mahiru-quick-profile__facts strong {
  position: relative;
  color: var(--uniform-navy);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.28;
}

.mahiru-quick-profile__facts small {
  position: relative;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.68;
}

.creator-profile {
  display: grid;
  gap: clamp(18px, 4vw, 34px);
  padding-block: clamp(44px, 7vw, 76px);
  border-block: 1px solid rgba(234, 210, 162, 0.54);
}

.creator-profile__intro {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
  gap: clamp(18px, 4vw, 38px);
  align-items: center;
  padding-block: clamp(44px, 7vw, 76px);
}

.contact-card__panel {
  min-height: 220px;
  align-content: center;
}

.contact-methods {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 4px;
}

.contact-method {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.74);
  box-shadow: 0 8px 18px rgba(80, 55, 28, 0.08);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-method:hover,
.contact-method:focus-visible {
  border-color: rgba(201, 141, 46, 0.5);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 12px 24px rgba(80, 55, 28, 0.13);
  transform: translateY(-1px);
}

.contact-method--muted {
  cursor: default;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.42);
  box-shadow: none;
}

.contact-method--muted:hover {
  transform: none;
}

.contact-availability {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.contact-availability span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(201, 141, 46, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.54);
}

.contact-availability strong {
  color: var(--uniform-navy);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.2;
}

.contact-availability small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.45;
}

.contact-template {
  position: relative;
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.contact-template span {
  color: var(--caramel);
  font-size: 0.72rem;
  font-weight: 900;
}

.contact-template textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 12px 13px;
  color: var(--soft-brown);
  border: 1px solid rgba(201, 141, 46, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.65;
}

.contact-template textarea:focus-visible {
  outline: 2px solid rgba(201, 141, 46, 0.48);
  outline-offset: 2px;
}

.contact-status {
  position: relative;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.6;
}

.page-afterglow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  padding-block: clamp(44px, 7vw, 78px);
  border-block: 1px solid rgba(234, 210, 162, 0.58);
}

.page-afterglow::before {
  position: absolute;
  inset: 18px 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 14% 16%, rgba(243, 216, 137, 0.28), transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(125, 152, 199, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.62), rgba(255, 247, 228, 0.46));
}

.page-afterglow__media {
  display: grid;
  min-height: clamp(220px, 26vw, 330px);
  overflow: hidden;
  border: 1px solid rgba(234, 210, 162, 0.68);
  border-radius: var(--radius-md);
  place-items: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.86), transparent 38%),
    linear-gradient(160deg, rgba(255, 253, 248, 0.9), rgba(246, 224, 179, 0.42));
  box-shadow: var(--shadow-soft);
}

.page-afterglow__media img {
  width: 100%;
  height: 100%;
  max-height: clamp(230px, 31vw, 380px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 28px rgba(80, 55, 28, 0.18));
}

.page-afterglow__copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.page-afterglow__copy h2 {
  max-width: 760px;
  margin: 0;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.05;
}

.page-afterglow__copy p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--soft-brown);
  font-weight: 820;
  line-height: 1.8;
}

.page-afterglow__links {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.page-afterglow__links a {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 18px;
  color: var(--soft-brown);
  text-decoration: none;
  border: 1px solid rgba(201, 141, 46, 0.2);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 88% 10%, rgba(243, 216, 137, 0.24), transparent 34%),
    rgba(255, 253, 248, 0.72);
  box-shadow: 0 10px 24px rgba(80, 55, 28, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.page-afterglow__links a:hover {
  color: var(--uniform-navy);
  border-color: rgba(201, 141, 46, 0.48);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 16px 32px rgba(80, 55, 28, 0.13);
  transform: translateY(-2px);
}

.page-afterglow__links span {
  justify-self: start;
  padding: 4px 10px;
  color: var(--caramel);
  border: 1px solid rgba(201, 141, 46, 0.18);
  border-radius: 999px;
  background: rgba(243, 216, 137, 0.2);
  font-size: 0.72rem;
  font-weight: 900;
}

.page-afterglow__links strong {
  color: var(--uniform-navy);
  font-size: 1.05rem;
  line-height: 1.2;
}

.page-afterglow__links small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.5;
}

.page-afterglow__picked {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  padding-top: clamp(10px, 2vw, 18px);
  border-top: 1px solid rgba(201, 141, 46, 0.16);
}

.page-afterglow__picked > span {
  justify-self: start;
  padding: 4px 10px;
  color: var(--caramel);
  border: 1px solid rgba(201, 141, 46, 0.2);
  border-radius: 999px;
  background: rgba(243, 216, 137, 0.18);
  font-size: 0.72rem;
  font-weight: 900;
}

.page-afterglow__picked > strong {
  max-width: 720px;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.4vw, 1.46rem);
  line-height: 1.25;
}

.page-afterglow__picked > small {
  max-width: 680px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.7;
}

.page-afterglow__picked-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px;
}

.page-afterglow__picked a {
  display: grid;
  min-width: 0;
  min-height: 108px;
  align-content: start;
  gap: 7px;
  padding: 14px 15px;
  color: var(--soft-brown);
  text-decoration: none;
  border: 1px solid rgba(201, 141, 46, 0.18);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.86), rgba(255, 247, 228, 0.62)),
    rgba(243, 216, 137, 0.08);
  box-shadow: 0 10px 22px rgba(80, 55, 28, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.page-afterglow__picked a:hover {
  color: var(--uniform-navy);
  border-color: rgba(201, 141, 46, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(255, 244, 214, 0.78)),
    rgba(243, 216, 137, 0.14);
  box-shadow: 0 14px 28px rgba(80, 55, 28, 0.11);
  transform: translateY(-2px);
}

.page-afterglow__picked a:focus-visible {
  outline: 2px solid rgba(201, 141, 46, 0.48);
  outline-offset: 3px;
}

.page-afterglow__picked a span {
  justify-self: start;
  padding: 3px 9px;
  color: var(--caramel);
  border: 1px solid rgba(201, 141, 46, 0.16);
  border-radius: 999px;
  background: rgba(243, 216, 137, 0.16);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.2;
}

.page-afterglow__picked a strong {
  min-width: 0;
  color: var(--uniform-navy);
  font-size: 0.98rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.page-afterglow__picked a small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mahiru-line {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 4vw, 34px);
  align-items: center;
  margin-block: clamp(30px, 5vw, 58px) clamp(18px, 4vw, 36px);
  padding: clamp(24px, 5vw, 42px);
  overflow: hidden;
  border-block: 1px solid rgba(234, 210, 162, 0.52);
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.92), transparent 32%),
    radial-gradient(circle at 86% 30%, rgba(243, 216, 137, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.78), rgba(255, 247, 228, 0.46));
}

.mahiru-line::before,
.mahiru-line::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.mahiru-line::before {
  inset: 12px 0;
  z-index: 0;
  border-block: 1px solid rgba(201, 141, 46, 0.08);
  background:
    repeating-linear-gradient(90deg, rgba(201, 141, 46, 0.07) 0 1px, transparent 1px 86px),
    linear-gradient(90deg, rgba(255, 253, 248, 0.48), transparent 36%, rgba(255, 253, 248, 0.32));
}

.mahiru-line::after {
  inset: 0 auto 0 -34%;
  z-index: 1;
  width: 28%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), rgba(243, 216, 137, 0.28), transparent);
  transform: skewX(-14deg);
}

.mahiru-line.is-glinting::after {
  animation: mahiru-line-glint 740ms ease-out;
}

.mahiru-line__copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  min-width: 0;
  outline: 0;
}

.mahiru-line__copy:focus-visible {
  border-radius: var(--radius-sm);
  outline: 2px solid rgba(201, 141, 46, 0.44);
  outline-offset: 8px;
}

.mahiru-line__copy h2 {
  max-width: 860px;
  margin: 0;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.6vw, 2.55rem);
  line-height: 1.14;
}

.mahiru-line__copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--soft-brown);
  font-size: clamp(0.98rem, 1.8vw, 1.1rem);
  font-weight: 830;
  line-height: 1.78;
  overflow-wrap: anywhere;
  transition: color 180ms ease, transform 180ms ease;
}

.mahiru-line.is-hovering .mahiru-line__copy p:not(.eyebrow),
.mahiru-line__copy:hover p:not(.eyebrow),
.mahiru-line__copy:focus-visible p:not(.eyebrow) {
  color: var(--uniform-navy);
  transform: translateX(4px);
}

.mahiru-line__button {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: min(100%, 180px);
  padding: 0.86rem 1rem;
  color: var(--uniform-navy);
  text-align: left;
  border: 1px solid rgba(201, 141, 46, 0.24);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.88), rgba(255, 244, 214, 0.72));
  box-shadow: 0 12px 26px rgba(80, 55, 28, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mahiru-line__button:hover,
.mahiru-line__button:focus-visible {
  border-color: rgba(201, 141, 46, 0.48);
  box-shadow: 0 16px 32px rgba(80, 55, 28, 0.12);
  transform: translateY(-2px);
}

.mahiru-line__button:focus-visible {
  outline: 2px solid rgba(201, 141, 46, 0.42);
  outline-offset: 3px;
}

.mahiru-line__button span {
  font-weight: 920;
}

.mahiru-line__button small {
  color: var(--muted);
  font-weight: 780;
  line-height: 1.45;
}

@keyframes mahiru-line-glint {
  0% {
    opacity: 0;
    transform: translateX(0) skewX(-14deg);
  }

  26% {
    opacity: 0.78;
  }

  100% {
    opacity: 0;
    transform: translateX(520%) skewX(-14deg);
  }
}

.feature-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 28px;
}

.feature-ribbon article {
  position: relative;
  min-height: 156px;
  border-radius: 8px;
  border-color: rgba(234, 210, 162, 0.54);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(255, 246, 224, 0.72)),
    var(--glass);
  box-shadow: 0 14px 32px rgba(122, 88, 43, 0.08);
}

.feature-ribbon article::before {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 10px;
  pointer-events: none;
  content: "";
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(243, 216, 137, 0.76), rgba(255, 253, 248, 0.3));
}

.feature-ribbon article,
.portal-card {
  padding: 22px;
}

.feature-ribbon span,
.portal-card span,
.quote-card span,
.timeline-card span,
.recipe-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--caramel);
  font-weight: 900;
}

.feature-ribbon span {
  margin-bottom: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(201, 141, 46, 0.16);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.68);
  box-shadow: inset 0 -8px 0 rgba(243, 216, 137, 0.16);
}

.feature-ribbon strong,
.portal-card strong {
  display: block;
  color: var(--uniform-navy);
  font-size: 1.12rem;
}

.feature-ribbon small,
.portal-card small {
  color: var(--muted);
}

.split-feature {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(234, 210, 162, 0.45);
  border-right: 0;
  border-left: 0;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.7), rgba(243, 216, 137, 0.14), rgba(255, 253, 248, 0.52));
  box-shadow: none;
}

.split-feature::after {
  position: absolute;
  right: clamp(20px, 5vw, 80px);
  bottom: -120px;
  width: min(42vw, 460px);
  height: min(42vw, 460px);
  pointer-events: none;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 216, 137, 0.28), transparent 68%);
}

.split-feature img,
.magazine-hero img,
.outfit-card img,
.fanart-card img,
.moment-slide img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.split-feature img {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(255, 244, 218, 0.5)),
    var(--ivory);
  box-shadow: var(--shadow);
}

.split-postcard {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  margin: 0;
}

.split-postcard img {
  display: block;
  width: min(100%, 360px);
  max-height: min(72vh, 560px);
  aspect-ratio: 4 / 5;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 28px 34px rgba(83, 58, 32, 0.18));
  object-fit: contain;
}

.split-postcard figcaption {
  margin-top: 10px;
  color: var(--soft-brown);
  font-size: 0.86rem;
  font-weight: 800;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.portal-card {
  display: grid;
  min-height: 178px;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.portal-card:hover {
  background: var(--glass-strong);
  transform: translateY(-5px);
}

.magazine-hero {
  perspective: 1200px;
}

.flip-card {
  min-height: 580px;
  perspective: 1200px;
}

.flip-card__inner {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 580px;
  transform-style: preserve-3d;
  transition: transform 680ms ease;
}

.flip-card:hover .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  margin: 0;
  overflow: hidden;
  backface-visibility: hidden;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  box-shadow: var(--shadow);
}

.flip-card__face::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.82), transparent 30%),
    radial-gradient(circle at 50% 84%, rgba(243, 216, 137, 0.28), transparent 42%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.86), rgba(255, 244, 218, 0.58));
}

.flip-card__face img {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: clamp(10px, 2vw, 22px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 26px 38px rgba(80, 55, 28, 0.18));
}

.flip-card figcaption {
  position: relative;
  z-index: 2;
  margin: 0 20px 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.72);
  backdrop-filter: blur(12px);
}

.flip-card figcaption strong,
.flip-card figcaption span {
  display: block;
}

.flip-card__back {
  padding: 34px;
  transform: rotateY(180deg);
  align-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(243, 216, 137, 0.36), transparent 36%),
    var(--glass-strong);
}

.flip-card__back dl,
.quick-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.flip-card__back div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.flip-card dt {
  color: var(--caramel);
  font-weight: 900;
}

.flip-card dd {
  margin: 0;
  color: var(--muted);
}

.profile-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  padding: clamp(22px, 4vw, 36px);
}

.profile-note-card {
  position: relative;
  min-height: 260px;
  padding: clamp(20px, 3vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(234, 210, 162, 0.56);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 10%, rgba(243, 216, 137, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(255, 247, 228, 0.72));
  box-shadow: 0 16px 34px rgba(122, 88, 43, 0.08);
}

.profile-note-card::before {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 10px;
  pointer-events: none;
  content: "";
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(243, 216, 137, 0.8), rgba(255, 253, 248, 0.2));
}

.profile-note-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 9px;
  color: var(--caramel);
  border: 1px solid rgba(201, 141, 46, 0.16);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.68);
  box-shadow: inset 0 -8px 0 rgba(243, 216, 137, 0.16);
  font-weight: 900;
}

.profile-note-card h2 {
  margin: 0 0 12px;
  color: var(--uniform-navy);
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.25;
}

.profile-note-card p {
  margin: 0;
  color: var(--soft-brown);
  font-weight: 760;
}

.profile-note-card:nth-child(2),
.profile-note-card:nth-child(4) {
  transform: translateY(14px);
}

.soft-timeline {
  position: relative;
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.soft-timeline::before,
.timeline-line::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  width: 2px;
  content: "";
  background: linear-gradient(var(--flax-gold), rgba(201, 141, 46, 0.1));
}

.soft-timeline li {
  position: relative;
  padding: 18px 18px 18px 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.74);
}

.soft-timeline li::before,
.timeline-card::before {
  position: absolute;
  left: 10px;
  top: 24px;
  width: 18px;
  height: 18px;
  content: "";
  border-radius: 50%;
  background: var(--caramel);
  box-shadow: 0 0 0 8px rgba(243, 216, 137, 0.24);
}

.soft-timeline span {
  color: var(--caramel);
  font-weight: 900;
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 14px 0 0;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented button,
.cinema-controls button,
.live-controls button,
.heart-button {
  min-height: 38px;
  padding: 8px 13px;
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.28);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
}

.segmented button.is-active {
  color: var(--ivory);
  background: var(--uniform-navy);
}

.search-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid rgba(201, 141, 46, 0.28);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
}

.search-box span {
  color: var(--caramel);
  font-weight: 900;
}

.search-box input {
  width: min(42vw, 240px);
  border: 0;
  outline: 0;
  background: transparent;
}

.gallery-focus {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(240px, 0.72fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  width: min(var(--max), calc(100% - 36px));
  margin: 24px auto 30px;
  padding: clamp(12px, 3vw, 28px) clamp(4px, 2vw, 18px);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 28% 50%, rgba(243, 216, 137, 0.2), transparent 46%),
    linear-gradient(90deg, rgba(255, 253, 248, 0.62), transparent 58%);
  box-shadow: none;
}

.gallery-focus::before {
  display: none;
}

.gallery-focus__media {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: clamp(340px, 54vw, 620px);
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(80, 55, 28, 0.16), transparent 58%),
    radial-gradient(circle at 52% 22%, rgba(255, 255, 255, 0.54), transparent 32%);
}

.gallery-focus__media::before {
  position: absolute;
  inset: -14% -18% -10%;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image: var(--gallery-focus-backdrop);
  background-position: center;
  background-size: cover;
  opacity: 0.18;
  filter: blur(34px) saturate(1.08) brightness(1.1);
  transform: scale(1.14);
}

.gallery-focus__media::after {
  position: absolute;
  inset: 0 auto 0 -42%;
  z-index: 2;
  width: 34%;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), rgba(243, 216, 137, 0.18), transparent);
  mix-blend-mode: soft-light;
  transform: skewX(-12deg);
}

.gallery-focus.is-switching .gallery-focus__media::after {
  animation: gallery-soft-glint 720ms ease-out;
}

.gallery-focus__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(72vh, 620px);
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(80, 55, 28, 0.14));
  transition: opacity 180ms ease, transform 240ms ease, filter 240ms ease;
}

.gallery-focus.is-switching .gallery-focus__media img {
  opacity: 0.28;
  transform: scale(0.985);
  filter: drop-shadow(0 16px 24px rgba(80, 55, 28, 0.1));
}

.gallery-focus__copy {
  position: relative;
  z-index: 1;
}

.gallery-focus__copy h2 {
  margin: 0 0 12px;
  color: var(--uniform-navy);
  font-size: clamp(1.8rem, 4vw, 3.35rem);
}

.gallery-focus__copy p:not(.eyebrow) {
  margin: 0 0 20px;
  color: var(--soft-brown);
  font-weight: 800;
}

.gallery-empty {
  width: min(760px, calc(100% - 36px));
  margin: -4px auto 42px;
  padding: clamp(24px, 5vw, 44px);
  text-align: center;
  border: 1px solid rgba(234, 210, 162, 0.62);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.9), transparent 40%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(255, 247, 228, 0.74));
  box-shadow: var(--shadow-soft);
}

.gallery-empty[hidden],
.gallery-focus[hidden] {
  display: none;
}

.gallery-empty h2 {
  margin: 0 0 10px;
  color: var(--uniform-navy);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.gallery-empty p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 auto;
  color: var(--soft-brown);
  font-weight: 800;
}

.masonry-stage,
.fanart-wall,
.recipe-grid,
.wardrobe-closet,
.daily-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.masonry-stage.is-js-masonry {
  display: block;
  min-height: var(--masonry-height, 800px);
}

.masonry-stage[data-empty="true"] {
  min-height: 0;
}

.masonry-stage.is-js-masonry .masonry-card {
  position: absolute;
  width: var(--masonry-col-width, 25%);
  transform: translate3d(var(--masonry-x, 0px), var(--masonry-y, 0px), 0px);
  transition: transform 260ms ease, opacity 200ms ease, filter 200ms ease;
}

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

.daily-scene {
  overflow: hidden;
}

.daily-scene img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center bottom;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.82), transparent 36%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(255, 244, 218, 0.62));
  filter: drop-shadow(0 14px 20px rgba(80, 55, 28, 0.12));
}

.daily-scene div {
  padding: 22px;
}

.daily-scene span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--caramel);
  font-weight: 900;
}

.daily-note {
  max-width: 860px;
}

.masonry-card,
.fanart-card,
.recipe-card,
.outfit-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  color: inherit;
}

.masonry-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 230px;
  cursor: zoom-in;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ivory);
  box-shadow: var(--shadow-soft);
}

.masonry-card.is-gallery-favorite {
  border-color: rgba(201, 141, 46, 0.62);
  box-shadow: 0 18px 38px rgba(201, 141, 46, 0.2);
}

.masonry-card.is-gallery-favorite::before {
  inset: 10px 10px auto auto;
  z-index: 4;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--uniform-navy);
  border: 1px solid rgba(201, 141, 46, 0.34);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 10px 24px rgba(80, 55, 28, 0.14);
  backdrop-filter: blur(10px);
  content: "★";
  animation: none;
}

.masonry-card::after {
  position: absolute;
  inset: 0 auto 0 -48%;
  z-index: 2;
  width: 40%;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), rgba(243, 216, 137, 0.16), transparent);
  mix-blend-mode: soft-light;
  transform: skewX(-12deg);
}

.masonry-card img,
.fanart-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center top;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.8), transparent 36%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.9), rgba(255, 244, 218, 0.68));
  filter: saturate(1.03);
  transition: transform 320ms ease, filter 320ms ease;
}

.masonry-card::before,
.fanart-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(255, 250, 240, 0.28) 25%, rgba(243, 216, 137, 0.24) 50%, rgba(255, 250, 240, 0.28) 75%);
  background-size: 220% 100%;
  animation: shimmer 1600ms linear infinite;
}

.masonry-card img[src],
.fanart-card img[src] {
  position: relative;
  z-index: 1;
}

.masonry-card:has(img[src])::before,
.fanart-card:has(img[src])::before {
  opacity: 0;
}

.masonry-card.is-gallery-favorite:has(img[src])::before {
  opacity: 1;
}

.masonry-card[data-category*="wide"] img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
}

.masonry-card:hover img,
.fanart-card:hover img {
  transform: translateY(-3px);
  filter: saturate(1.08) brightness(1.04);
}

.masonry-card:hover::after,
.masonry-card:focus-visible::after {
  animation: gallery-soft-glint 680ms ease-out;
}

.masonry-card span {
  position: static;
  z-index: 3;
  display: block;
  min-width: 0;
  padding: 12px 14px 14px;
  color: var(--uniform-navy);
  font-weight: 900;
  border-top: 1px solid rgba(234, 210, 162, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(255, 244, 218, 0.74)),
    rgba(255, 250, 240, 0.78);
  backdrop-filter: blur(10px);
}

.fanart-card__meta {
  position: static;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(234, 210, 162, 0.52);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.84), rgba(255, 244, 218, 0.68)),
    rgba(255, 250, 240, 0.78);
  backdrop-filter: blur(10px);
}

.fanart-card__meta span {
  min-width: 0;
  overflow: hidden;
  color: var(--uniform-navy);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes gallery-soft-glint {
  0% {
    opacity: 0;
    transform: translateX(0) skewX(-12deg);
  }

  30% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: translateX(520%) skewX(-12deg);
  }
}

.masonry-card.is-hidden,
.quote-card.is-hidden,
.timeline-card.is-hidden,
.recipe-card.is-hidden {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(47, 52, 79, 0.82);
}

.lightbox[hidden],
.recipe-drawer[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(94vw, 1180px);
  max-height: 84vh;
  border: 1px solid rgba(255, 253, 248, 0.58);
  border-radius: var(--radius-md);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.lightbox > button {
  position: fixed;
  z-index: 201;
  cursor: pointer;
}

.lightbox__close {
  top: 18px;
  right: 18px;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev {
  left: 18px;
}

.lightbox__next {
  right: 18px;
}

.lightbox__info {
  position: fixed;
  left: 50%;
  bottom: 24px;
  display: grid;
  gap: 2px;
  min-width: min(90vw, 520px);
  padding: 14px 18px;
  color: var(--ivory);
  text-align: center;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: var(--radius-md);
  background: rgba(47, 52, 79, 0.72);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.lightbox__info span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lightbox__info em,
.lightbox__info i {
  font-style: normal;
}

.lightbox__info em {
  color: var(--flax-gold);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 900;
}

.lightbox__info i {
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.86rem;
}

.lightbox__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.lightbox__actions button,
.lightbox__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  color: var(--uniform-navy);
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  background: var(--ivory);
}

.story-shell {
  position: relative;
  min-height: calc(100vh - 78px);
  overflow: hidden;
}

.story-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 78px;
  z-index: 40;
  height: 4px;
  background: rgba(201, 141, 46, 0.14);
}

.story-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--flax-gold), var(--caramel));
}

.story-index {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 41;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.story-index button {
  max-width: 138px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.84);
}

.story-rail {
  display: flex;
  height: calc(100vh - 78px);
  transition: transform 320ms ease-out;
}

.story-chapter {
  position: relative;
  display: grid;
  align-content: end;
  flex: 0 0 100vw;
  padding: clamp(40px, 8vw, 96px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(243, 216, 137, 0.18)),
    var(--paper);
}

.story-chapter::after {
  position: absolute;
  inset: 10%;
  z-index: 0;
  content: "";
  opacity: 0.56;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 216, 137, 0.38), transparent 60%);
}

.story-chapter > * {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.story-chapter span {
  color: var(--caramel);
  font-weight: 900;
}

.quote-stage {
  padding-bottom: 28px;
}

.typewriter-card {
  min-height: 280px;
  padding: clamp(24px, 5vw, 46px);
  text-align: center;
}

.typewriter-card blockquote {
  min-height: 110px;
  margin: 0 auto 24px;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.35;
}

.quote-wall {
  columns: 3 260px;
  column-gap: 18px;
}

.quote-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  padding: 22px;
  transform: rotate(var(--rot, -1deg));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.quote-card:hover {
  transform: rotate(0) translateY(-4px);
  box-shadow: var(--shadow);
}

.music-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
}

.record-player {
  display: grid;
  place-items: center;
}

.record {
  position: relative;
  display: grid;
  width: min(78vw, 380px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, #24211d 0 3px, #111 3px 6px),
    #111;
  box-shadow: var(--shadow);
  animation: record-spin 9s linear infinite paused;
}

.record.is-playing {
  animation-play-state: running;
}

.record::after {
  position: absolute;
  inset: 12%;
  content: "";
  border-radius: inherit;
  background: conic-gradient(from 35deg, transparent, rgba(255, 255, 255, 0.24), transparent 18%);
  mix-blend-mode: screen;
}

.record img {
  width: 44%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border: 6px solid #111;
  border-radius: 50%;
}

.audio-console canvas {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(243, 216, 137, 0.12));
  box-shadow: var(--shadow-soft);
}

.audio-progress {
  height: 12px;
  margin-top: 16px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(201, 141, 46, 0.16);
}

.audio-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--flax-gold), var(--caramel));
}

.lyrics {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  text-align: center;
}

.lyrics p {
  margin: 0;
  color: rgba(117, 102, 83, 0.52);
  transition: transform 180ms ease, color 180ms ease;
}

.lyrics p.is-active {
  color: var(--uniform-navy);
  font-weight: 900;
  transform: scale(1.04);
}

.playlist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.playlist li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.74);
}

.playlist .is-active {
  color: var(--ivory);
  background: var(--uniform-navy);
}

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

.timeline-line {
  position: relative;
  display: grid;
  gap: 20px;
}

.timeline-card {
  position: relative;
  margin-left: 38px;
  padding: 22px;
}

.emotion-meter {
  position: sticky;
  top: 90px;
}

.emotion-meter svg {
  width: 100%;
}

.diary-desk {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 520px);
  gap: 24px;
  align-items: start;
}

.diary-book {
  position: relative;
  min-height: 480px;
  padding: 36px 36px 36px 64px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(139, 104, 70, 0.12) 0 22px, transparent 22px),
    repeating-linear-gradient(180deg, transparent 0 36px, rgba(201, 141, 46, 0.14) 37px),
    var(--paper);
  box-shadow: var(--shadow);
  perspective: 1200px;
}

.diary-book::before {
  position: absolute;
  left: 30px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  content: "";
  background: var(--ribbon-red);
  opacity: 0.5;
}

.diary-page {
  display: none;
  min-height: 408px;
  padding: 34px;
  background: rgba(255, 253, 248, 0.54);
  transform-origin: left center;
}

.diary-page.is-active {
  display: block;
  animation: page-flip 560ms ease both;
}

.diary-page span {
  color: var(--caramel);
  font-family: var(--font-mono);
  font-weight: 900;
}

.diary-page p {
  color: var(--soft-brown);
  font-family: var(--font-accent);
  font-size: 1.3rem;
}

.doodle-canvas {
  width: 100%;
  border: 1px dashed rgba(201, 141, 46, 0.36);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.62);
}

.diary-scene-anchor {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  overflow: hidden;
  padding-block: clamp(22px, 4vw, 46px);
}

.diary-scene-anchor::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 24% 32%, rgba(243, 216, 137, 0.34), transparent 34%),
    radial-gradient(circle at 82% 70%, rgba(122, 168, 210, 0.12), transparent 32%),
    linear-gradient(90deg, rgba(255, 253, 248, 0.76), rgba(255, 247, 228, 0.34));
  opacity: 0.92;
}

.diary-scene-anchor__media {
  position: relative;
  min-height: clamp(360px, 42vw, 560px);
  border-radius: 42% 58% 48% 52% / 52% 42% 58% 48%;
  background:
    radial-gradient(ellipse at 50% 82%, rgba(80, 55, 28, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(243, 216, 137, 0.2));
}

.diary-scene-anchor__media::after {
  position: absolute;
  right: 8%;
  bottom: 7%;
  left: 12%;
  height: 20px;
  content: "";
  background: radial-gradient(ellipse at center, rgba(80, 55, 28, 0.18), transparent 70%);
  filter: blur(6px);
}

.diary-scene-anchor__media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 28px 34px rgba(80, 55, 28, 0.16));
}

.diary-scene-anchor__copy {
  max-width: 620px;
}

.diary-scene-anchor__copy h2 {
  max-width: 12em;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1.08;
}

.diary-scene-anchor__copy ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.diary-scene-anchor__copy li {
  padding: 12px 0 12px 18px;
  border-left: 2px solid rgba(201, 141, 46, 0.34);
  color: var(--soft-brown);
}

.diary-scene-anchor__copy li span {
  display: block;
  margin-bottom: 4px;
  color: var(--caramel);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recipe-card,
.outfit-card,
.fanart-card {
  padding: 18px;
}

.recipe-card h2,
.outfit-card h2 {
  font-size: 1.35rem;
}

.recipe-drawer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  width: min(420px, calc(100vw - 36px));
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  box-shadow: var(--shadow);
}

.recipe-drawer ul,
.recipe-drawer ol {
  padding-left: 1.2rem;
}

.recipe-drawer li {
  margin-bottom: 8px;
}

.recipe-drawer input:checked + span {
  text-decoration: line-through;
  opacity: 0.55;
}

.outfit-card img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.78), rgba(243, 216, 137, 0.18)),
    var(--ivory);
  margin-bottom: 14px;
}

.outfit-detail {
  display: grid;
  gap: 14px;
}

.palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.palette-swatch {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(47, 52, 79, 0.14);
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.26);
}

.cinema {
  position: relative;
  min-height: calc(100vh - 78px);
  overflow: hidden;
  background: #161411;
}

.cinema.is-dark {
  background: #050506;
}

.film-strip {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, 0.14) 38px 48px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0 42px, transparent 42px calc(100% - 42px), rgba(0, 0, 0, 0.72) calc(100% - 42px));
  z-index: 3;
}

.moment-track {
  height: calc(100vh - 78px);
}

.moment-slide {
  display: none;
  position: relative;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 253, 248, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(47, 52, 79, 0.92), rgba(52, 41, 29, 0.82));
}

.moment-slide::before,
.moment-slide::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.moment-slide::before {
  z-index: 0;
  background-image: var(--moment-backdrop);
  background-position: center;
  background-size: cover;
  opacity: 0.48;
  filter: blur(28px) saturate(1.08) brightness(0.88);
  transform: scale(1.12);
}

.moment-slide::after {
  z-index: 1;
  background:
    radial-gradient(ellipse at 52% 42%, rgba(255, 253, 248, 0.12), transparent 38%),
    radial-gradient(ellipse at 18% 78%, rgba(243, 216, 137, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(13, 13, 18, 0.58), rgba(13, 13, 18, 0.2) 48%, rgba(13, 13, 18, 0.54)),
    linear-gradient(180deg, rgba(10, 9, 12, 0.42), rgba(10, 9, 12, 0.18) 42%, rgba(10, 9, 12, 0.68));
}

.moment-slide.is-active {
  display: block;
  animation: cinema-dissolve 620ms ease both;
}

.moment-slide img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding-right: min(34vw, 430px);
  object-fit: contain;
  object-position: center bottom;
  border-radius: 0;
  filter: drop-shadow(0 26px 38px rgba(0, 0, 0, 0.26));
}

.moment-slide div {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: clamp(18px, 5vw, 76px);
  width: min(330px, 28vw);
  padding: 18px 20px;
  color: var(--ivory);
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: var(--radius-md);
  background: rgba(47, 52, 79, 0.42);
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
}

.moment-slide div p {
  margin-bottom: 0;
}

.moment-slide span {
  color: var(--flax-gold);
  font-weight: 900;
}

.cinema-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  justify-content: center;
  transform: translateX(-50%);
}

.universe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: stretch;
}

.universe-graph {
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at center, rgba(243, 216, 137, 0.22), transparent 45%),
    linear-gradient(135deg, rgba(47, 52, 79, 0.94), rgba(28, 26, 36, 0.96));
  box-shadow: var(--shadow);
}

.quiz-shell {
  max-width: 860px;
}

.quiz-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(201, 141, 46, 0.16);
}

.quiz-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--flax-gold), var(--caramel));
  transition: width 280ms ease;
}

.quiz-card {
  margin-top: 18px;
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
}

.quiz-options {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.quiz-options button,
.sort-item {
  padding: 14px;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.78);
}

.quiz-options button.is-selected {
  color: var(--ivory);
  background: var(--uniform-navy);
}

.quiz-options button.is-correct {
  background: rgba(123, 168, 98, 0.22);
}

.quiz-options button.is-wrong {
  background: rgba(201, 75, 93, 0.18);
  animation: shake 240ms ease;
}

.featured-fanart {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 16px;
}

.featured-fanart article {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(234, 210, 162, 0.48);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.8), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(255, 244, 218, 0.56)),
    var(--ivory);
  box-shadow: var(--shadow-soft);
}

.featured-fanart img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.8), rgba(255, 244, 218, 0.58)),
    var(--ivory);
}

.featured-fanart span,
.featured-fanart__title {
  position: static;
  display: block;
  min-width: 0;
  padding: 12px 14px 14px;
  overflow: hidden;
  color: var(--uniform-navy);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-top: 1px solid rgba(234, 210, 162, 0.42);
  background: rgba(255, 250, 240, 0.78);
}

.fanart-card {
  min-height: 260px;
}

.fanart-wall.is-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fanart-sentinel {
  width: min(var(--max), calc(100% - 36px));
  height: 1px;
  margin: 0 auto 40px;
}

.heart-button {
  position: static;
  z-index: 2;
  flex: 0 0 auto;
  margin-top: 0;
  color: var(--ribbon-red);
  font-weight: 900;
}

.about-snap {
  height: calc(100vh - 78px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.about-slide {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(34px, 8vw, 98px);
  text-align: center;
  scroll-snap-align: start;
}

.about-slide:nth-child(odd) {
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.74), rgba(243, 216, 137, 0.14));
}

.about-slide p {
  max-width: 760px;
  color: var(--muted);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(760px, 100%);
  margin-top: 20px;
}

.tech-grid span {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--glass);
}

.live-stage {
  position: relative;
  display: grid;
  min-height: calc(100vh - 78px);
  overflow: hidden;
  place-items: center;
}

.live-stage__intro {
  position: absolute;
  top: clamp(26px, 7vh, 64px);
  left: clamp(18px, 7vw, 86px);
  z-index: 2;
  max-width: min(520px, calc(100% - 36px));
  text-shadow: 0 1px 18px rgba(255, 250, 240, 0.88);
}

.live-stage__intro h1 {
  margin: 0;
  color: var(--uniform-navy);
  font-size: clamp(2.2rem, 9vw, 4.8rem);
}

.live-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 58% 22%, rgba(255, 253, 248, 0.34), transparent 34%),
    linear-gradient(90deg, rgba(255, 250, 240, 0.76), rgba(255, 250, 240, 0.24)),
    url("../background/微信图片_20260526103917_37_2.png") center/cover;
  filter: blur(10px) saturate(1.04) brightness(1.06);
  transform: scale(1.04);
}

.live-character {
  position: relative;
  width: min(72vw, 500px);
  margin: 0;
  transform-style: preserve-3d;
  transition: transform 160ms ease;
}

.live-character img {
  width: 100%;
  max-height: calc(100vh - 210px);
  object-fit: contain;
  filter: drop-shadow(0 28px 44px rgba(80, 55, 28, 0.24));
}

.speech-bubble {
  position: absolute;
  left: 50%;
  bottom: 118px;
  max-width: min(86vw, 520px);
  padding: 14px 18px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  box-shadow: var(--shadow-soft);
  transform: translateX(-50%);
}

.live-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  justify-content: center;
  transform: translateX(-50%);
}

@media (max-width: 1120px) {
  .portal-grid,
  .masonry-stage,
  .recipe-grid,
  .wardrobe-closet,
  .fanart-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-dashboard,
  .timeline-layout,
  .diary-desk,
  .diary-scene-anchor,
  .universe-layout,
  .local-hero-deck,
  .gallery-focus,
  .mahiru-line,
  .page-afterglow,
  .split-feature,
  .daily-collage,
  .creator-home,
  .mahiru-quick-profile,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

  .page-afterglow__links {
    grid-template-columns: 1fr;
  }

  .page-afterglow__picked-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-index {
    display: none;
  }

  .diary-scene-anchor__media {
    min-height: clamp(300px, 64vw, 520px);
  }
}

@media (max-width: 760px) {
  .entrance-hero {
    min-height: calc(100svh - 66px);
  }

  .hero-full__content {
    min-height: calc(100svh - 66px);
    margin: 0 auto;
    align-content: end;
    padding-top: clamp(270px, 48svh, 430px);
    padding-bottom: clamp(24px, 5svh, 40px);
  }

  .hero-meta {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .hero-meta span {
    padding: 9px 11px;
  }

  .hero-full__image {
    object-position: 50% top;
  }

  .hero-full__image--local-backdrop {
    object-position: center top;
    opacity: 0.26;
    filter: blur(34px) saturate(1.02) brightness(1.08);
    transform: scale(1.14);
  }

  .hero-full__image--local {
    inset: clamp(24px, 5svh, 54px) 0 auto;
    width: 100%;
    height: clamp(250px, 44svh, 420px);
    max-height: none;
    opacity: 0.94;
    object-fit: contain;
    object-position: center top;
    transform: translate3d(var(--hero-move-x, 0), var(--hero-move-y, 0), 0);
    filter: saturate(1.06) brightness(1.06) drop-shadow(0 18px 28px rgba(80, 55, 28, 0.14));
  }

  .hero-full__shade {
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.02), rgba(255, 250, 240, 0.06) 38%, rgba(255, 250, 240, 0.72) 68%, rgba(255, 250, 240, 0.96)),
      linear-gradient(180deg, rgba(47, 52, 79, 0.04), rgba(52, 41, 29, 0.12));
  }

  .hero-full.is-portrait-focus .hero-full__image--local {
    opacity: 0.92;
  }

  .hero-portrait-toggle {
    top: 86px;
    left: 18px;
    min-height: 40px;
    padding-inline: 12px;
    opacity: 0.76;
    background: rgba(255, 253, 248, 0.46);
  }

  .local-hero-deck {
    margin-top: 18px;
    padding: 16px;
  }

  .local-hero-strip {
    grid-auto-columns: minmax(92px, 110px);
  }

  .diary-book {
    min-height: 360px;
    padding: 24px 20px 24px 42px;
  }

  .diary-book::before {
    left: 22px;
    top: 22px;
    bottom: 22px;
  }

  .diary-page {
    min-height: 300px;
    padding: 24px 20px;
  }

  .diary-page p {
    font-size: 1.08rem;
  }

  .diary-scene-anchor {
    gap: 18px;
    padding-block: 18px 28px;
  }

  .diary-scene-anchor__media {
    min-height: clamp(240px, 74vw, 380px);
  }

  .diary-scene-anchor__copy h2 {
    font-size: clamp(1.72rem, 9vw, 2.45rem);
  }

  .profile-dashboard {
    grid-template-columns: 1fr;
  }

  .profile-note-card:nth-child(2),
  .profile-note-card:nth-child(4) {
    transform: none;
  }

  .mahiru-quick-profile__copy .button {
    justify-self: stretch;
  }

  .gallery-controls {
    width: min(100% - 24px, var(--max));
    justify-content: stretch;
    gap: 8px;
    padding-top: 4px;
  }

  .gallery-controls .segmented {
    flex: 1 1 100%;
    justify-content: flex-start;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .gallery-controls .segmented button {
    flex: 0 0 auto;
    padding-inline: 11px;
  }

  .gallery-controls .search-box {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    border-radius: 22px;
  }

  .gallery-controls .search-box input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .gallery-controls > .button {
    justify-content: center;
    width: auto;
    flex: 0 0 auto;
  }

  .gallery-focus {
    width: min(100% - 24px, var(--max));
    margin-top: 10px;
    margin-bottom: 16px;
    padding: 4px 0 10px;
    border-radius: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.36), rgba(255, 253, 248, 0));
  }

  .gallery-focus::before {
    display: none;
  }

  .gallery-focus__media {
    min-height: clamp(220px, 52vw, 340px);
  }

  .gallery-focus__media img {
    max-height: clamp(220px, 50vh, 340px);
    object-fit: contain;
  }

  .gallery-focus__copy h2 {
    font-size: clamp(1.32rem, 7vw, 2rem);
  }

  .gallery-focus__copy {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .gallery-focus__copy .eyebrow,
  .gallery-focus__copy p:not(.eyebrow) {
    display: none;
  }

  .gallery-focus__copy h2 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gallery-focus__copy .button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
  }

  .moment-slide div {
    top: 64px;
    right: 14px;
    left: 14px;
    bottom: auto;
    width: auto;
    max-width: none;
    padding: 12px 14px;
    background: rgba(47, 52, 79, 0.34);
    transform: none;
  }

  .moment-slide div p {
    margin-top: 4px;
    font-size: 0.92rem;
  }

  .moment-slide img {
    padding: 124px 0 74px;
    object-position: center bottom;
  }

  .moment-slide::before {
    opacity: 0.38;
    filter: blur(24px) saturate(1.04) brightness(0.82);
  }

  .feature-ribbon,
  .creator-home__cards,
  .creator-skill-list,
  .creator-projects,
  .site-note-grid,
  .contact-availability,
  .mahiru-quick-profile__facts,
  .page-afterglow__links,
  .portal-grid,
  .recipe-grid,
  .wardrobe-closet,
  .fanart-wall,
  .featured-fanart,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .masonry-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100% - 24px, var(--max));
  }

  .masonry-card {
    min-height: 0;
    border-radius: var(--radius-sm);
  }

  .masonry-card img {
    aspect-ratio: 3 / 4;
  }

  .masonry-card[data-category*="wide"] img {
    aspect-ratio: 4 / 3;
  }

  .masonry-card span {
    padding: 9px 10px 10px;
  }

  @media (max-width: 520px) {
    .gallery-controls > .button {
      width: 100%;
    }

    .gallery-focus__media {
      min-height: clamp(190px, 54vw, 280px);
    }

    .gallery-focus__media img {
      max-height: clamp(190px, 44vh, 280px);
    }

    .masonry-stage {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      width: min(100% - 24px, var(--max));
    }

    .masonry-card img,
    .masonry-card[data-category*="wide"] img {
      aspect-ratio: 3 / 4;
      max-height: none;
      object-fit: cover;
    }

    .masonry-card span {
      padding: 8px 9px 10px;
      font-size: 0.82rem;
    }
  }

  .creator-projects a {
    min-height: 0;
  }

  .creator-projects__media {
    aspect-ratio: 4 / 3;
  }

  .fanart-card__meta {
    align-items: stretch;
    border-radius: var(--radius-sm);
    flex-direction: column;
  }

  .fanart-card__meta .heart-button {
    width: 100%;
  }

  .masonry-card span,
  .featured-fanart span,
  .featured-fanart__title {
    font-size: 0.94rem;
  }

  .flip-card,
  .flip-card__inner {
    min-height: 500px;
  }

  .page-afterglow {
    padding-block: 42px;
  }

  .page-afterglow__media {
    min-height: 260px;
  }

  .page-afterglow__copy h2 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .page-afterglow__picked {
    padding-top: 16px;
  }

  .page-afterglow__picked-list {
    grid-template-columns: 1fr;
  }

  .page-afterglow__picked a {
    min-height: 0;
  }

  .mahiru-line {
    gap: 18px;
    margin-block: 22px 30px;
    padding: 24px 18px;
  }

  .mahiru-line__button {
    width: 100%;
  }

  .contact-method,
  .contact-card__actions .button {
    width: 100%;
  }

  .story-rail {
    height: auto;
    display: grid;
    transform: none !important;
  }

  .story-chapter {
    flex-basis: auto;
    min-height: 78vh;
  }

  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 84px;
  }
}
