:root {
  --ink: #07050d;
  --surface: #0f0b18;
  --surface-card: #151022;
  --surface-soft: #1c152e;
  --surface-hover: #261d3d;
  --paper: #f4f0e8;
  --paper-bright: #ffffff;
  --muted: #aca5bb;
  --muted-dark: #6e677c;
  --violet: #8d5ce1;
  --violet-bright: #d5bfff;
  --violet-glow: rgba(141, 92, 225, 0.35);
  --cyan: #38bdf8;
  --gold: #c9a969;
  --gold-glow: rgba(201, 169, 105, 0.3);
  --danger: #f43f5e;
  --line: rgba(213, 191, 255, 0.14);
  --line-strong: rgba(213, 191, 255, 0.28);
  --display: "Iowan Old Style", "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;
  --sans: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition-fast: 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-smooth: 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 75% 10%, rgba(93, 48, 151, 0.18), transparent 36rem),
    radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.07), transparent 30rem),
    linear-gradient(180deg, #07050d 0%, #0d0915 50%, #06040a 100%);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

/* 앰비언트 글로우 배경 */
.ambient { position: fixed; width: 34rem; height: 34rem; border-radius: 50%; filter: blur(140px); opacity: 0.12; pointer-events: none; z-index: -1; }
.ambient-one { background: #854bd8; top: 15vh; left: -16rem; }
.ambient-two { background: #38bdf8; top: 60vh; right: -16rem; }
.ambient-three { background: #c9a969; bottom: 10vh; left: 30vw; }

/* 헤더 네비게이션 */
.site-header {
  height: 76px;
  padding: 0 clamp(20px, 4vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 5, 13, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--transition-fast);
}

.wordmark { display: flex; align-items: center; gap: 12px; font: 600 0.82rem/1 var(--display); letter-spacing: 0.18em; }
.wordmark-mark { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); transform: rotate(45deg); color: var(--violet-bright); background: rgba(141, 92, 225, 0.1); }
.wordmark-mark::first-letter { transform: rotate(-45deg); }
.wordmark-text { color: #fff; }

.header-nav { display: flex; gap: clamp(16px, 2.5vw, 36px); font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }
.header-nav a { transition: color var(--transition-fast); }
.header-nav a:hover { color: #fff; }

/* 19+ NSFW 모드 토글 */
.header-controls { display: flex; align-items: center; gap: 12px; }
.nsfw-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--line-strong);
  background: rgba(28, 21, 46, 0.8);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.nsfw-toggle:hover { border-color: var(--violet-bright); color: #fff; }
.nsfw-toggle.active {
  border-color: var(--danger);
  background: rgba(244, 63, 94, 0.15);
  color: #fff;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.3);
}
.nsfw-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}
.nsfw-toggle.active .nsfw-badge {
  background: var(--danger);
  color: #fff;
}

/* 히어로 섹션 */
.hero {
  min-height: min(920px, 100svh);
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-top: 76px;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.05);
  transition: opacity var(--transition-smooth);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 5, 13, 0.95) 0%, rgba(7, 5, 13, 0.72) 46%, rgba(7, 5, 13, 0.12) 80%),
    linear-gradient(0deg, #07050d 0%, transparent 48%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(740px, 100%);
  padding: 120px clamp(24px, 6vw, 100px) 140px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--violet-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  letter-spacing: -0.04em;
  line-height: 1.14;
  word-break: keep-all;
  text-shadow: 0 4px 30px #000;
}
.title-sub { color: #d8d1df; font-size: 0.58em; font-weight: 400; }
.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #c9c3cf;
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  line-height: 1.7;
  word-break: keep-all;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* 버튼 공통 */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.button.primary {
  background: linear-gradient(135deg, #8d5ce1, #6440ae);
  box-shadow: 0 10px 30px var(--violet-glow);
  color: #fff;
}
.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(141, 92, 225, 0.5);
}
.button.ghost {
  border-color: var(--line-strong);
  background: rgba(15, 11, 24, 0.6);
  backdrop-filter: blur(10px);
  color: var(--paper);
}
.button.ghost:hover {
  border-color: var(--violet-bright);
  background: rgba(28, 21, 46, 0.8);
  color: #fff;
}

/* 히어로 스탯 카드 */
.hero-stats {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 5vw, 80px);
  bottom: 40px;
  display: flex;
  gap: 16px;
}
.stat-card {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(15, 11, 24, 0.65);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-card b { color: #fff; font: 500 1.5rem/1 var(--display); }
.stat-card span { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; }

/* 섹션 공통 레이아웃 */
.section { width: min(1340px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0; }
.section h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 3.8vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.2; word-break: keep-all; }

/* 세계관 섹션 */
.story-section { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.section-heading { position: sticky; top: 100px; }
.section-heading > p:last-child { max-width: 580px; margin-top: 24px; color: var(--muted); font-size: 0.95rem; line-height: 1.75; word-break: keep-all; }

.principles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.principle-card { min-height: 200px; padding: 34px; background: linear-gradient(145deg, rgba(21, 16, 34, 0.95), rgba(13, 9, 21, 0.95)); position: relative; }
.principle-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 20%, var(--violet-glow), transparent 14rem); opacity: 0; transition: opacity var(--transition-fast); }
.principle-card:hover::after { opacity: 1; }
.index { color: var(--gold); font: italic 0.82rem var(--display); letter-spacing: 0.12em; }
.principle-card h3 { margin: 20px 0 10px; font: 500 1.6rem var(--display); color: #fff; }
.principle-card p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.7; word-break: keep-all; }

/* 캐릭터 & 에셋 갤러리 섹션 */
.character-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }

/* 카테고리 탭 */
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-tab {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-card);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.cat-tab:hover { color: #fff; border-color: var(--violet-bright); }
.cat-tab.active {
  background: linear-gradient(135deg, rgba(141, 92, 225, 0.25), rgba(100, 64, 174, 0.25));
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 4px 16px var(--violet-glow);
}

/* 컨트롤 바 (검색 / 그룹필터 / 정렬) */
.control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  margin-bottom: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(21, 16, 34, 0.7);
  backdrop-filter: blur(12px);
}
.search-box { position: relative; flex: 1; max-width: 380px; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-dark); pointer-events: none; }
.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: #fff;
  font-size: 0.82rem;
  transition: border-color var(--transition-fast);
}
.search-box input:focus { outline: none; border-color: var(--violet-bright); box-shadow: 0 0 12px var(--violet-glow); }
.search-box input::placeholder { color: var(--muted-dark); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  padding: 8px 14px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-pill:hover, .filter-pill.active { color: #fff; border-color: var(--violet); background: rgba(141, 92, 225, 0.18); }

.sort-box select {
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--paper);
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
}

/* 카드 그리드 */
.character-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.character-card {
  min-width: 0;
  position: relative;
  aspect-ratio: 0.75;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-card);
  cursor: pointer;
  transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-smooth);
}
.character-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet-bright);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px var(--violet-glow);
}
.character-card.hidden { display: none; }
.character-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--surface);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter var(--transition-fast);
}
.character-card:hover img { transform: scale(1.05); filter: brightness(0.85); }

.character-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(0deg, rgba(7, 5, 13, 0.98) 0%, rgba(7, 5, 13, 0.45) 50%, transparent 80%);
}
.character-number {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(7, 5, 13, 0.65);
  backdrop-filter: blur(8px);
  color: var(--violet-bright);
  font: 700 0.78rem var(--display);
}
.character-type {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.character-card h3 {
  margin: 0;
  font: 500 1.45rem var(--display);
  color: #fff;
}
.character-role {
  margin: 4px 0 0;
  color: #bbb4c5;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.character-quote {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  color: #e5dfeb;
  font: italic 0.82rem var(--display);
  transition: all var(--transition-smooth);
}
.character-card:hover .character-quote {
  max-height: 60px;
  margin-top: 10px;
  opacity: 1;
}

/* 빈 상태 안내 */
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); font-size: 0.95rem; }
.empty-state.hidden { display: none; }

/* 피날레 섹션 */
.finale {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) 1.3fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 100px;
}
.finale img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}
.finale-content p:not(.eyebrow) {
  max-width: 540px;
  margin: 20px 0 32px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 캐릭터 상세 모달 다이얼로그 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  display: none;
  place-items: center;
}
.modal[open] { display: grid; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 8, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modal-card {
  position: relative;
  z-index: 2;
  width: min(940px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 48px));
  background: var(--surface-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8), 0 0 40px var(--violet-glow);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(15, 11, 24, 0.8);
  color: var(--paper);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}
.modal-close:hover { border-color: #fff; color: #fff; transform: rotate(90deg); }

.modal-body {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  min-height: 520px;
}
.modal-preview {
  position: relative;
  background: var(--ink);
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.modal-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-img-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-id-badge {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(7, 5, 13, 0.8);
  backdrop-filter: blur(8px);
  color: var(--violet-bright);
  font: 700 0.8rem var(--display);
}
.btn-copy-tag {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(141, 92, 225, 0.3);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-copy-tag:hover {
  background: var(--violet);
  box-shadow: 0 4px 16px var(--violet-glow);
}

.modal-info {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.modal-header { display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.modal-type { color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; }
.modal-name { margin: 4px 0 0; font: 500 2rem var(--display); color: #fff; }
.modal-role { margin: 4px 0 0; color: #bbb4c5; font-size: 0.88rem; }
.modal-quote { margin: 12px 0 0; color: #e5dfeb; font: italic 0.95rem var(--display); border-left: 2px solid var(--violet); padding-left: 12px; }

.variant-section { display: flex; flex-direction: column; gap: 12px; }
.variant-title-row { display: flex; justify-content: space-between; align-items: center; }
.variant-title-row h3 { margin: 0; font-size: 0.88rem; font-weight: 700; color: #fff; }
.variant-count { font-size: 0.75rem; color: var(--muted); }
.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  padding: 4px;
}
.variant-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--surface);
  transition: all var(--transition-fast);
}
.variant-item img { width: 100%; height: 100%; object-fit: cover; }
.variant-item:hover { border-color: var(--violet-bright); transform: scale(1.05); }
.variant-item.active { border-color: var(--violet); box-shadow: 0 0 12px var(--violet-glow); }
.variant-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
}
.variant-badge.nsfw { background: var(--danger); }

.prompt-hint {
  margin-top: auto;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prompt-hint label { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.tag-input-row { display: flex; gap: 8px; }
.tag-input-row input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--cyan);
  font-family: monospace;
  font-size: 0.8rem;
}
.btn-small {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-small.primary {
  background: var(--violet);
  color: #fff;
}
.btn-small.primary:hover { background: #9d6ff0; }

/* 토스트 알림 */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  padding: 12px 24px;
  border-radius: 9999px;
  border: 1px solid var(--line-strong);
  background: rgba(21, 16, 34, 0.92);
  backdrop-filter: blur(16px);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--violet-glow);
  z-index: 2000;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* 플로팅 맨 위로 버튼 */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(21, 16, 34, 0.8);
  backdrop-filter: blur(12px);
  color: var(--paper);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { border-color: var(--violet); color: #fff; transform: translateY(-2px); }

/* 푸터 */
footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 40px clamp(20px, 4vw, 80px);
}
.footer-content {
  width: min(1340px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 0.75rem;
  color: var(--muted);
}
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-brand strong { color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; }
.footer-meta { display: flex; gap: 16px; letter-spacing: 0.08em; }

/* 미디어 쿼리 반응형 처리 */
@media (max-width: 1040px) {
  .story-section { grid-template-columns: 1fr; }
  .section-heading { position: static; }
  .character-grid { grid-template-columns: repeat(3, 1fr); }
  .modal-body { grid-template-columns: 300px 1fr; }
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .hero { min-height: 800px; }
  .hero-copy { padding: 100px 20px 60px; }
  .hero-stats { display: none; }
  .control-bar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: 100%; }
  .character-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .character-overlay { padding: 14px; }
  .character-card h3 { font-size: 1.15rem; }
  .character-quote { display: none; }
  .finale { grid-template-columns: 1fr; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-preview { max-height: 320px; border-right: none; border-bottom: 1px solid var(--line); }
  .modal-info { padding: 24px 20px; }
  .footer-content { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .character-grid { grid-template-columns: 1fr; }
}
