:root {
  color-scheme: light;
  --ink: #28183b;
  --muted: #78678a;
  --purple: #7440aa;
  --purple-deep: #54267f;
  --purple-soft: #efe5f7;
  --line: rgba(91, 53, 124, 0.16);
  --panel: rgba(255, 253, 255, 0.88);
  --white: #ffffff;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: #d8d0e1; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(75, 47, 100, 0.26) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(57, 32, 78, 0.18) 100%), url("./fanpage2.webp");
  background-position: center center;
  background-size: cover;
}

.page-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 20, 55, 0.04), rgba(38, 20, 55, 0.2));
}

.page-shell {
  width: min(1440px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(620px, 1.18fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.intro {
  align-self: end;
  padding: 24px 0 36px;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(31, 16, 45, 0.28);
}

.intro h1 { max-width: 560px; margin: 0 0 32px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(58px, 7vw, 112px); font-weight: 500; line-height: 0.83; letter-spacing: 0; }
.intro h1 span { color: #ecdaf8; font-style: italic; }

.game-entry {
  width: min(100%, 430px);
  min-height: 86px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  gap: 14px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  text-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(34, 15, 47, 0.24);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.game-entry:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 22px 54px rgba(34, 15, 47, 0.3); }
.game-entry + .game-entry { margin-top: 10px; }
.soft-game-entry { background: rgba(244, 233, 252, 0.94); }
.soft-game-entry .game-icon { background: #e5d0f3; }
.game-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 8px; background: var(--purple-soft); font-size: 25px; }
.game-text { display: grid; gap: 4px; }
.game-text small, .card-copy small, .copy-card small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 0.12em; }
.game-text strong { font-size: 19px; }
.arrow { color: var(--purple); font-size: 25px; }

.directory {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(41, 20, 57, 0.28);
  backdrop-filter: blur(22px) saturate(1.1);
}

.section-heading { margin-bottom: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-heading h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.social-card {
  min-width: 0;
  min-height: 72px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 20px;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.54);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.social-card:hover { transform: translateY(-2px); border-color: rgba(116, 64, 170, 0.42); background: rgba(255, 255, 255, 0.96); }
.vlogs { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.vlogs .section-heading { margin-bottom: 14px; }
.vlog-title { display: -webkit-box; overflow: hidden; line-height: 1.35; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.vlog-pending { cursor: default; }
.vlog-pending:hover { transform: none; border-color: var(--line); background: rgba(255, 255, 255, 0.54); }
.social-card.featured { color: #fff; border-color: transparent; background: linear-gradient(125deg, #673599, #8855b9); }
.social-card.featured small, .social-card.featured .external { color: rgba(255, 255, 255, 0.72); }
.platform-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 7px; background: rgba(116, 64, 170, 0.1); font-size: 20px; }
.featured .platform-icon { background: rgba(255, 255, 255, 0.16); }
.platform-icon.x { font-family: Arial, sans-serif; font-size: 22px; font-weight: 600; }
.card-copy { min-width: 0; display: grid; gap: 3px; }
.card-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.external { color: var(--purple); font-size: 17px; }

.documentary {
  margin-top: 28px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.documentary-heading h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.documentary-link {
  min-width: 0;
  min-height: 68px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 20px;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.54);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.documentary-link:hover { transform: translateY(-2px); border-color: rgba(116, 64, 170, 0.42); background: rgba(255, 255, 255, 0.96); }
.documentary-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 7px; background: var(--purple-soft); font-size: 20px; }
.documentary-copy { min-width: 0; display: grid; gap: 4px; }
.documentary-copy strong { font-size: 14px; }
.documentary-copy small { color: var(--muted); font-size: 10px; font-weight: 700; }

.favorites { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.favorites .section-heading { margin-bottom: 14px; }
.birthday-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.birthday-card { min-width: 0; min-height: 54px; padding: 8px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, 0.54); }
.birthday-card > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--purple-soft); font-size: 16px; }
.birthday-card > span:last-child { min-width: 0; display: grid; gap: 2px; }
.birthday-card small { color: var(--muted); font-size: 9px; font-weight: 800; }
.birthday-card strong { color: var(--purple-deep); font-size: 14px; }
.favorites-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.favorite-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.58);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.site-footer a:link,
.site-footer a:visited {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(28, 12, 41, 0.72);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.favorite-card:hover { transform: translateY(-2px); border-color: rgba(116, 64, 170, 0.42); background: rgba(255, 255, 255, 0.96); }
.favorite-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--purple-soft); }
.favorite-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cat-card .favorite-photo img { object-position: center 40%; }
.white-drink-card .favorite-photo img { object-position: center 38%; }
.pink-drink-card .favorite-photo img { object-position: center 34%; }
.favorite-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 5px 16px rgba(38, 20, 55, 0.2);
  backdrop-filter: blur(8px);
  font-size: 16px;
}
.favorite-copy { padding: 11px 12px 13px; display: grid; gap: 4px; }
.favorite-copy small { color: var(--muted); font-size: 9px; font-weight: 800; }
.favorite-copy strong { font-size: 15px; }
.favorite-copy em { color: var(--purple); font-size: 10px; font-style: normal; font-weight: 700; }

.community { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.section-heading.compact { margin-bottom: 14px; }
.section-heading.compact h2 { font-size: 19px; }
.penguin { font-size: 25px; }
.qq-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }

.copy-card {
  min-width: 0;
  min-height: 61px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.copy-card:first-child { grid-column: span 2; }
.copy-card:hover, .copy-card:focus-visible { border-color: rgba(116, 64, 170, 0.5); background: #fff; outline: none; }
.copy-card span:first-child { min-width: 0; display: grid; gap: 4px; }
.copy-card strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; }
.copy-label { flex: 0 0 auto; padding: 5px 7px; color: var(--purple-deep); border-radius: 4px; background: var(--purple-soft); font-size: 10px; font-weight: 700; }
.copy-card.copied .copy-label { color: #fff; background: var(--purple); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  padding: 10px 16px;
  color: #fff;
  border-radius: 6px;
  background: rgba(45, 25, 62, 0.94);
  box-shadow: 0 8px 24px rgba(24, 10, 35, 0.25);
  font-size: 13px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.visible { transform: translate(-50%, 0); opacity: 1; }

@media (min-width: 1001px) {
  .intro {
    align-self: start;
    padding-top: clamp(140px, 18vh, 200px);
  }

  .directory {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
}

@media (max-width: 1000px) {
  .page-backdrop { background-position: 43% center; }
  .page-shell { width: min(760px, calc(100% - 32px)); padding: 32px 0; grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .intro { min-height: 76vh; padding-top: 34px; display: flex; flex-direction: column; justify-content: flex-end; }
  .intro h1 { font-size: clamp(68px, 15vw, 100px); }
  .directory { box-shadow: 0 18px 50px rgba(41, 20, 57, 0.22); }
}

@media (max-width: 620px) {
  .page-backdrop { background-position: 39% center; }
  .page-backdrop::after { background: linear-gradient(180deg, rgba(45, 22, 65, 0.04) 25%, rgba(36, 18, 51, 0.72) 78%, rgba(36, 18, 51, 0.88)); }
  .page-shell { width: 100%; padding: 0; gap: 0; }
  .intro { min-height: 100svh; padding: 36px 18px 28px; }
  .intro h1 { font-size: clamp(58px, 20vw, 82px); }
  .game-entry { min-height: 78px; }
  .directory { padding: 28px 16px 34px; border-width: 1px 0 0; border-color: transparent; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
  .site-footer { width: 100%; padding: 0 16px max(18px, env(safe-area-inset-bottom)); }
  .directory .section-heading h2,
  .directory .documentary-heading h2 { color: #fff; text-shadow: 0 2px 12px rgba(28, 12, 41, 0.78); }
  .documentary, .favorites, .community { border-top-color: rgba(255, 255, 255, 0.28); }
  .vlogs { border-top-color: rgba(255, 255, 255, 0.28); }
  .social-grid { grid-template-columns: 1fr; }
  .social-card { min-height: 68px; }
  .documentary { gap: 12px; }
  .birthday-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .birthday-card:last-child { grid-column: 1 / -1; }
  .favorites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-card { grid-column: 1 / -1; }
  .cat-card .favorite-photo { aspect-ratio: 16 / 9; }
  .qq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .copy-card:first-child { grid-column: span 2; }
}

@media (max-width: 380px) {
  .favorites-grid { grid-template-columns: 1fr; }
  .cat-card { grid-column: auto; }
  .cat-card .favorite-photo { aspect-ratio: 4 / 3; }
  .qq-list { grid-template-columns: 1fr; }
  .copy-card:first-child { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
/* Filing links stay compact on desktop and wrap cleanly on narrow screens. */
.filing-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  justify-content: center;
}

.filing-links a {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.filing-divider {
  opacity: 0.55;
}

.mps-filing-link img {
  flex: 0 0 auto;
  height: 20px;
  object-fit: contain;
  width: 20px;
}

@media (max-width: 520px) {
  .filing-links {
    column-gap: 0.5rem;
    row-gap: 0.25rem;
  }

  .filing-divider {
    display: none;
  }
}
