:root {
  --page-bg: #f4f5fa;
  --primary-blue: #3d58df;
  --primary-deep: #263baf;
  --accent-gold: #e9c82e;
  --surface-light: #e9edf8;
  --surface-lighter: #eef1f8;
  --surface-glass: rgba(244, 245, 250, 0.86);
  --text-primary: #202b56;
  --text-secondary: #697197;
  --blue-border: rgba(61, 88, 223, 0.18);
  --blue-shadow: rgba(61, 88, 223, 0.14);
  --gold-soft: rgba(233, 200, 46, 0.25);
  --top-bar-height: 68px;
  --content-width: 1320px;
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-bar-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 10% 12%, rgba(61, 88, 223, 0.09), transparent 26rem),
    radial-gradient(circle at 92% 46%, rgba(233, 200, 46, 0.08), transparent 22rem),
    linear-gradient(180deg, #f4f5fa 0%, #eef1f8 48%, #f4f5fa 100%);
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  line-height: 1.7;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(61, 88, 223, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 88, 223, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(61, 88, 223, 0.42);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-error {
  position: fixed;
  top: calc(var(--top-bar-height) + 12px);
  left: 50%;
  z-index: 60;
  width: min(92vw, 680px);
  padding: 12px 18px;
  color: #7f291e;
  text-align: center;
  background: #fff1ed;
  border: 1px solid rgba(127, 41, 30, 0.2);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(32, 43, 86, 0.12);
  transform: translateX(-50%);
}

#fairy-glow-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.top-bar,
#page-main,
.copyright-footer {
  position: relative;
  z-index: 1;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--top-bar-height);
  background: rgba(244, 245, 250, 0.88);
  border-bottom: 1px solid var(--blue-border);
  box-shadow: 0 9px 30px rgba(32, 43, 86, 0.07);
  backdrop-filter: blur(18px);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--content-width));
  height: 100%;
  margin: 0 auto;
}

.site-home {
  text-decoration: none;
}

.site-home span {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--primary-blue);
}

.bgm-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--primary-blue);
  cursor: pointer;
  background: var(--surface-lighter);
  border: 1px solid var(--blue-border);
  border-radius: 50%;
  place-items: center;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.icon-button:hover,
.icon-button.is-playing {
  color: #fff;
  background: var(--primary-blue);
  transform: translateY(-1px);
}

.volume-control {
  display: flex;
  align-items: center;
}

.volume-control input {
  width: 96px;
  accent-color: var(--primary-blue);
  cursor: pointer;
}

.content-section,
.profile-section {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding: clamp(74px, 9vw, 116px) 0;
}

.hero-section {
  min-height: calc(100svh - var(--top-bar-height));
  padding-top: clamp(58px, 8vw, 92px);
}

.section-heading {
  margin-bottom: clamp(30px, 4vw, 48px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary-blue);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(2rem, 5vw, 3.65rem);
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.heading-line {
  display: block;
  width: 84px;
  height: 2px;
  margin: 17px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 30px);
  align-items: end;
  justify-content: center;
}

.character-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  background: rgba(238, 241, 248, 0.68);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(32, 43, 86, 0.08);
  opacity: 0;
  transform: translateY(-68px) scale(0.96);
  transition: box-shadow 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.character-card::before {
  position: absolute;
  inset: auto -20% -18% -20%;
  height: 48%;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(61, 88, 223, 0.18), transparent 67%);
}

.character-card.is-entered {
  animation: character-enter 820ms cubic-bezier(0.2, 0.78, 0.28, 1) forwards;
  animation-delay: var(--entry-delay, 0ms);
}

.character-card:hover {
  border-color: rgba(61, 88, 223, 0.44);
  box-shadow: 0 22px 60px var(--blue-shadow), 0 0 22px var(--gold-soft);
  transform: translateY(-6px);
}

.character-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 2 / 3;
  min-height: 420px;
  padding: 18px 12px 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 45%),
    radial-gradient(circle at 50% 74%, rgba(61, 88, 223, 0.13), transparent 52%);
}

.character-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 20px rgba(32, 43, 86, 0.12));
}

.character-meta {
  position: relative;
  z-index: 1;
  display: block;
  padding: 19px 22px 22px;
  background: rgba(244, 245, 250, 0.9);
  border-top: 1px solid var(--blue-border);
}

.character-name {
  display: block;
  margin-bottom: 3px;
  font-size: clamp(1.25rem, 2.2vw, 1.68rem);
  font-weight: 700;
  letter-spacing: 0.11em;
}

.character-role {
  display: inline-flex;
  align-items: center;
  color: var(--primary-blue);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.character-role::before {
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 8px;
  content: "";
  background: var(--accent-gold);
}

@keyframes character-enter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.banner-section {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 1440px);
  margin: 0 auto;
  padding: 20px 0 clamp(64px, 8vw, 106px);
}

.banner-viewport {
  position: relative;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  background: var(--page-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 58px rgba(32, 43, 86, 0.11);
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform 560ms cubic-bezier(0.22, 0.75, 0.26, 1);
}

.banner-slide {
  flex: 0 0 100%;
  height: 100%;
}

.banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: var(--page-bg);
}

.banner-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-button {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0 0 4px;
  color: var(--primary-blue);
  cursor: pointer;
  background: rgba(244, 245, 250, 0.9);
  border: 1px solid var(--blue-border);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(32, 43, 86, 0.13);
  place-items: center;
  font-size: 2rem;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.carousel-button:hover {
  color: #fff;
  background: var(--primary-blue);
  transform: scale(1.05);
}

.carousel-button:disabled {
  display: none;
}

.carousel-prev,
.carousel-next {
  top: 50%;
  transform: translateY(-50%);
}

.carousel-prev:hover,
.carousel-next:hover {
  transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
  left: 18px;
}

.carousel-next {
  right: 18px;
}

.carousel-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 13px;
  margin-top: 18px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  cursor: pointer;
  background: rgba(61, 88, 223, 0.2);
  border: 0;
  border-radius: 50%;
  transition: width 180ms ease, background 180ms ease;
}

.carousel-dot.is-active {
  width: 28px;
  background: var(--primary-blue);
  border-radius: 999px;
}

.empty-message {
  margin: 20px 0;
  color: var(--text-secondary);
  text-align: center;
}

.shop-group + .shop-group {
  margin-top: clamp(54px, 7vw, 84px);
}

.subsection-heading {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 13px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--blue-border);
}

.subsection-heading h3 {
  margin: 0;
  font-size: clamp(1.28rem, 2.4vw, 1.7rem);
}

.subsection-heading span {
  color: var(--text-secondary);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 18px;
}

.platform-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 120px;
  padding: 16px;
  text-decoration: none;
  background: rgba(244, 245, 250, 0.74);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(32, 43, 86, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.platform-card:hover {
  border-color: rgba(61, 88, 223, 0.4);
  box-shadow: 0 16px 42px var(--blue-shadow), 0 0 15px rgba(233, 200, 46, 0.16);
  transform: translateY(-4px);
}

.platform-card img {
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: contain;
  background: var(--surface-lighter);
  border-radius: 10px;
}

.platform-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

.platform-hint {
  display: block;
  margin-top: 5px;
  color: var(--primary-blue);
  font-size: 0.78rem;
}

.platform-empty {
  grid-column: 1 / -1;
  padding: 20px;
  color: var(--text-secondary);
  text-align: center;
  background: rgba(238, 241, 248, 0.55);
  border: 1px dashed var(--blue-border);
  border-radius: var(--radius-md);
}

.product-carousel {
  position: relative;
  padding: 0 58px;
}

.product-viewport {
  overflow: hidden;
}

.product-track {
  display: flex;
  gap: 20px;
  transition: none;
  will-change: transform;
}

.product-track--centered {
  width: 100%;
  justify-content: center;
  transform: none !important;
  will-change: auto;
}

.product-card {
  position: relative;
  flex: 0 0 calc((100% - 80px) / 5);
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  background: rgba(244, 245, 250, 0.78);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 34px rgba(32, 43, 86, 0.07);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.product-card:hover {
  border-color: rgba(61, 88, 223, 0.4);
  box-shadow: 0 17px 42px var(--blue-shadow);
  transform: translateY(-4px);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface-light);
}

.product-label {
  display: block;
  min-height: 70px;
  padding: 18px;
  font-weight: 700;
}

.new-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  color: #3e3600;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--accent-gold);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(88, 72, 0, 0.16);
}

.product-prev,
.product-next {
  top: 50%;
  transform: translateY(-50%);
}

.product-prev:hover,
.product-next:hover {
  transform: translateY(-50%) scale(1.05);
}

.product-prev {
  left: 0;
}

.product-next {
  right: 0;
}

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

.social-card {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 15px 18px;
  text-decoration: none;
  background: rgba(244, 245, 250, 0.72);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 27px rgba(32, 43, 86, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.social-card[href]:hover {
  border-color: rgba(61, 88, 223, 0.4);
  box-shadow: 0 14px 32px var(--blue-shadow);
  transform: translateY(-3px);
}

.social-card.is-disabled {
  color: var(--text-secondary);
  cursor: default;
  opacity: 0.72;
}

.social-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--surface-lighter);
  border-radius: 12px;
}

.social-label {
  font-weight: 700;
}

.social-status {
  display: block;
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.profile-section {
  padding-top: clamp(54px, 7vw, 90px);
  padding-bottom: clamp(74px, 9vw, 116px);
}

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  max-width: 1120px;
  padding: clamp(34px, 5vw, 58px);
  margin: 0 auto;
  overflow: hidden;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(244, 245, 250, 0.93), rgba(233, 237, 248, 0.9));
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 68px rgba(32, 43, 86, 0.1);
}

.profile-card::before,
.profile-card::after {
  position: absolute;
  width: 120px;
  height: 120px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(233, 200, 46, 0.26);
  border-radius: 50%;
}

.profile-card::before {
  top: -72px;
  left: -58px;
}

.profile-card::after {
  right: -52px;
  bottom: -76px;
}

.profile-card h2 {
  margin: 4px 0 8px;
  color: var(--primary-blue);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.1em;
}

.profile-avatar-wrap {
  position: relative;
  width: min(100%, 190px);
  aspect-ratio: 1;
  padding: 7px;
  background: rgba(244, 245, 250, 0.8);
  border: 1px solid rgba(61, 88, 223, 0.38);
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(61, 88, 223, 0.14);
}

.profile-avatar-wrap::after {
  position: absolute;
  top: 10%;
  right: 4%;
  width: 11px;
  height: 11px;
  content: "";
  pointer-events: none;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(233, 200, 46, 0.42);
}

.profile-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-lighter);
  border-radius: 50%;
}

.profile-copy {
  min-width: 0;
}

.profile-tagline {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-weight: 600;
}

.profile-bio {
  max-width: 660px;
  margin: 0;
  white-space: pre-line;
}

.profile-actions {
  display: grid;
  gap: 16px;
  width: min(280px, 100%);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 0;
}

.profile-detail {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.profile-detail[hidden] {
  display: none;
}

.profile-detail-title {
  margin: 0;
  color: var(--text-secondary);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.profile-detail-value {
  display: flex;
  min-width: 0;
}

.profile-pill {
  max-width: 100%;
  padding: 8px 16px;
  color: var(--primary-blue);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: rgba(61, 88, 223, 0.08);
  border: 1px solid var(--blue-border);
  border-radius: 999px;
}

.profile-note-text {
  margin: 0;
  color: var(--primary-blue);
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.copyright-footer {
  padding: 26px 20px 34px;
  color: var(--text-secondary);
  text-align: center;
  border-top: 1px solid var(--blue-border);
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(61, 88, 223, 0.1), transparent 34rem),
    #f4f5fa;
  place-items: center;
  transition: opacity 620ms ease, visibility 620ms ease;
}

.splash-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.splash-inner {
  display: grid;
  gap: clamp(34px, 6vh, 58px);
  width: min(90vw, 760px);
  text-align: center;
  place-items: center;
}

.splash-logo-wrap {
  position: relative;
}

.splash-logo {
  display: block;
  width: clamp(240px, 34vw, 540px);
  max-width: 82vw;
  max-height: 28vh;
  object-fit: contain;
  opacity: 0;
  animation: splash-logo-in 1.2s 120ms cubic-bezier(0.2, 0.7, 0.25, 1) forwards;
}

.splash-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(233, 200, 46, 0.66);
  opacity: 0;
  animation: spark-in 1.2s ease forwards;
}

.spark-one {
  top: 18%;
  left: 1%;
  animation-delay: 520ms;
}

.spark-two {
  top: 8%;
  right: 12%;
  width: 5px;
  height: 5px;
  animation-delay: 740ms;
}

.spark-three {
  right: 1%;
  bottom: 14%;
  animation-delay: 920ms;
}

.splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  opacity: 0;
  animation: actions-in 700ms 720ms ease forwards;
}

.button-primary,
.button-secondary {
  min-width: 180px;
  min-height: 48px;
  padding: 11px 21px;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button-primary {
  color: #fff;
  background: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  box-shadow: 0 10px 28px rgba(61, 88, 223, 0.22);
}

.button-secondary {
  color: var(--primary-blue);
  background: rgba(244, 245, 250, 0.8);
  border: 1px solid var(--blue-border);
}

.button-primary:hover,
.button-secondary:hover {
  box-shadow: 0 12px 28px rgba(61, 88, 223, 0.18);
  transform: translateY(-2px);
}

@keyframes splash-logo-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes spark-in {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  60%,
  100% {
    opacity: 0.72;
    transform: translateY(0);
  }
}

@keyframes actions-in {
  to {
    opacity: 1;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 31, 68, 0.68);
  backdrop-filter: blur(12px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(320px, 0.78fr);
  width: min(1120px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  background: var(--page-bg);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(12, 20, 54, 0.38);
}

.lightbox-visual {
  --lightbox-nav-top: 50%;

  position: relative;
  display: grid;
  min-height: 620px;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 72%, rgba(61, 88, 223, 0.2), transparent 52%),
    var(--surface-light);
  place-items: center;
}

.lightbox-visual img {
  display: block;
  width: 100%;
  height: min(82vh, 760px);
  object-fit: contain;
}

.lb-counter {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 5px 12px;
  color: #fff;
  background: rgba(32, 43, 86, 0.72);
  border-radius: 999px;
  font-size: 0.78rem;
}

.lightbox-copy {
  padding: clamp(34px, 5vw, 62px);
  overflow-y: auto;
}

.lightbox-copy h2 {
  margin: 4px 0 26px;
  color: var(--primary-blue);
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: 0.12em;
}

.lightbox-copy h3 {
  padding-top: 20px;
  margin: 28px 0 12px;
  color: var(--primary-blue);
  border-top: 1px solid var(--blue-border);
  font-size: 1rem;
}

.lb-role {
  margin: 0;
  color: var(--text-secondary);
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.lb-story,
.lb-settings {
  margin: 0;
  white-space: pre-line;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--primary-blue);
  cursor: pointer;
  background: rgba(244, 245, 250, 0.92);
  border: 1px solid var(--blue-border);
  border-radius: 50%;
  place-items: center;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-close svg {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-nav {
  top: var(--lightbox-nav-top);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-nav svg {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-nav-prev {
  left: 14px;
}

.lightbox-nav-next {
  right: 14px;
}

.lightbox-nav[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 780px;
    margin: 0 auto;
  }

  .character-art {
    min-height: 500px;
  }

  .social-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-card {
    flex-basis: calc((100% - 40px) / 3);
  }

  .lightbox-panel {
    grid-template-columns: minmax(300px, 0.9fr) minmax(290px, 0.8fr);
  }

}

@media (max-width: 768px) {
  :root {
    --top-bar-height: 62px;
  }

  .top-bar-inner,
  .content-section,
  .profile-section,
  .banner-section {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .volume-control input {
    width: 72px;
  }

  .hero-section {
    min-height: auto;
  }

  .character-grid {
    gap: 12px;
  }

  .character-art {
    min-height: 360px;
    padding: 10px 5px 0;
  }

  .character-meta {
    padding: 14px 15px 17px;
  }

  .carousel-prev {
    left: 8px;
  }

  .carousel-next {
    right: 8px;
  }

  .carousel-button {
    width: 34px;
    height: 34px;
    padding-bottom: 3px;
    font-size: 1.55rem;
  }

  .banner-slide img {
    object-position: center center !important;
  }

  .platform-card {
    grid-template-columns: 100px 1fr;
  }

  .product-card {
    flex-basis: calc((100% - 20px) / 2);
  }

  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .social-card {
    min-height: 78px;
    padding: 12px;
  }

  .social-card img {
    width: 42px;
    height: 42px;
  }

  .profile-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .profile-avatar-wrap {
    width: min(44vw, 180px);
  }

  .profile-bio {
    margin: 0 auto;
  }

  .profile-actions {
    justify-items: center;
    width: 100%;
  }

  .profile-links {
    justify-content: center;
  }

  .profile-detail {
    justify-items: center;
    text-align: center;
  }

  .profile-detail-value {
    justify-content: center;
  }

  .lightbox {
    padding: 10px;
  }

  .lightbox-panel {
    display: block;
    max-height: 96vh;
    overflow-y: auto;
  }

  .lightbox-visual {
    min-height: min(61vh, 580px);
  }

  .lightbox-visual img {
    height: min(58vh, 540px);
  }

  .lightbox-copy {
    padding: 28px 24px 38px;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .lightbox-close svg {
    width: 16px;
    height: 16px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-nav svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 520px) {
  .volume-control {
    display: none;
  }

  .content-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .character-art {
    min-height: 260px;
  }

  .carousel-button {
    width: 32px;
    height: 32px;
    font-size: 1.45rem;
  }

  .carousel-prev {
    left: 6px;
  }

  .carousel-next {
    right: 6px;
  }

  .carousel-dots {
    margin-top: 12px;
  }

  .subsection-heading {
    display: block;
  }

  .subsection-heading span {
    display: block;
    margin-top: 3px;
  }

  .product-carousel {
    padding: 0 44px;
  }

  .product-card {
    flex-basis: 100%;
  }

  .social-label {
    font-size: 0.84rem;
  }

  .social-status {
    font-size: 0.64rem;
  }

  .splash-actions {
    width: 100%;
  }

  .button-primary,
  .button-secondary {
    width: min(100%, 270px);
  }
}

@media (max-width: 360px) {
  .character-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .character-art {
    min-height: 450px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .character-card {
    opacity: 1;
    transform: none;
  }
}
