* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--card);
  color: var(--text-main);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}
.app-container.page-exit-up {
  animation: pageExitUp var(--motion-duration-base) var(--motion-ease-exit) forwards;
  pointer-events: none;
}

/* 타이틀 카드 — 41_mission과 같은 hero-card 패턴 */
.hero-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--rd-md);
  padding: var(--sp-7) var(--sp-5) var(--sp-6);
  text-align: center;
}
.hero-kicker {
  font-size: var(--ft-body);
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-2);
}
.hero-tagline {
  margin: 0;
  font-size: var(--ft-display-l);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--text-main);
  word-break: keep-all;
}
.hero-tagline .accent-jm { color: var(--jelmmung-deep); }
.hero-tagline .accent-jt { color: var(--jelttok-deep); }
.hero-mascot-single {
  width: 192px;
  height: 192px;
  object-fit: contain;
  display: block;
  margin: var(--sp-6) auto 0;
}

/* 캐릭터 카드 — 공통 골격 */
.character-card {
  position: relative;
  padding: var(--sp-5);
  border-radius: var(--rd-md);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
  text-align: center;
  box-shadow: var(--sh-1);
}

.character-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(43, 54, 67, 0.12));
}
.character-name {
  margin: 0;
  font-size: var(--ft-display-s);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
.character-card.jm .character-name { color: var(--jelmmung-deep); }
.character-card.jt .character-name { color: var(--jelttok-deep); }

.character-tagline {
  margin: 0;
  font-size: var(--ft-h2);
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-main);
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.character-body {
  margin: 0;
  font-size: var(--ft-body);
  color: var(--text-muted);
  line-height: 1.6;
  word-break: keep-all;
}

/* 태그 카드 — 캐릭터 카드 내부, # 태그 모음 */
.tag-card {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--rd-md);
  margin-top: var(--sp-2);
  display: block;
  text-align: center;
  font-size: var(--ft-body-s);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.character-card.jm .tag-card { background: var(--jelmmung-soft); }
.character-card.jt .tag-card { background: var(--jelttok-soft); }
.tag-card .tag {
  display: inline;
  margin-right: var(--sp-2);
}
.tag-card .tag:last-child { margin-right: 0; }

/* 대화 카드 — 젤방 메신저 화면 */
.chat-card {
  overflow: hidden;
  border-radius: var(--rd-md);
  background: var(--card);
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
}
.chat-appbar {
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  background: var(--card);
  border-bottom: var(--border-subtle);
}
.chat-contact {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.chat-contact-avatars {
  position: relative;
  width: 54px;
  height: 38px;
  flex: 0 0 54px;
}
.chat-contact-avatars img {
  position: absolute;
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--rd-pill);
  background: var(--card);
  box-shadow: var(--sh-1);
}
.chat-contact-avatars img:first-child { left: 0; bottom: 0; }
.chat-contact-avatars img:last-child { right: 0; top: 0; }
.chat-contact-main {
  margin: 0;
  font-size: var(--ft-body);
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.chat-contact-sub {
  margin-top: var(--sp-1);
  font-size: var(--ft-caption);
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
}
.chat-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-muted);
}
.chat-action {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rd-pill);
  background: var(--neutral-a);
}
.chat-action svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-thread {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--neutral-a);
  overflow: hidden;
}
.chat-thread::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    no-repeat 7% 8% / 22px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23F5B074' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 34% 8% / 18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23F0A3C0' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 61% 8% / 22px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%239BA8E2' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 88% 8% / 20px 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23D89BC2' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 7% 27% / 18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23C6D580' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 34% 27% / 20px 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23CFA6DE' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 61% 27% / 18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23F4C842' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 88% 27% / 22px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%2382D5D1' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 7% 47% / 20px 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%238DC9E6' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 34% 47% / 22px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23B5A3EA' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E");
  background-position:
    12% 9%,
    39% 13%,
    66% 7%,
    91% 18%,
    19% 31%,
    48% 24%,
    76% 35%,
    8% 45%,
    34% 53%,
    62% 44%;
}
.chat-thread::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    no-repeat 61% 47% / 18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23F5B074' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 88% 47% / 18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23F0A3C0' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 7% 66% / 20px 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%239BA8E2' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 34% 66% / 18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23D89BC2' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 61% 66% / 19px 19px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23C6D580' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 88% 66% / 18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23CFA6DE' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 7% 85% / 20px 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23F4C842' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 34% 85% / 18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%2382D5D1' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 61% 85% / 18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%238DC9E6' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E"),
    no-repeat 88% 85% / 19px 19px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23B5A3EA' d='M6 18C6 9.16 12.27 2 20 2C27.73 2 34 9.16 34 18V28.2C34 29.86 33.3 31.2 32.08 32.06C30.88 32.9 29.93 33.87 29.32 34.98C28.79 35.93 27.82 36.4 26.82 36.4C25.8 36.4 24.82 35.89 24.12 34.95L23.11 33.58C22.41 32.63 21.25 32.06 20 32.06C18.75 32.06 17.59 32.63 16.89 33.58L15.88 34.95C15.18 35.89 14.2 36.4 13.18 36.4C12.18 36.4 11.21 35.93 10.68 34.98C10.07 33.87 9.12 32.9 7.92 32.06C6.7 31.2 6 29.86 6 28.2V18Z'/%3E%3C/svg%3E");
  background-position:
    89% 50%,
    15% 62%,
    42% 67%,
    70% 59%,
    91% 72%,
    10% 84%,
    35% 78%,
    57% 90%,
    80% 83%,
    24% 91%;
}
.chat-line {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-2);
  max-width: 92%;
}
.chat-line.jm {
  align-self: flex-start;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas:
    ". name"
    "avatar bubble";
}
.chat-line.jt {
  align-self: flex-end;
  grid-template-columns: minmax(0, 1fr) 46px;
  grid-template-areas:
    "name ."
    "bubble avatar";
}
.chat-speaker {
  grid-area: avatar;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: var(--rd-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.chat-line.jm .chat-speaker { background: var(--jelmmung-soft); }
.chat-line.jt .chat-speaker { background: var(--jelttok-soft); }
.chat-speaker img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
}
.chat-content {
  min-width: 0;
  display: contents;
}
.chat-name {
  grid-area: name;
  font-size: var(--ft-caption);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
}
.chat-line.jm .chat-name { color: var(--jelmmung-deep); }
.chat-line.jt .chat-name {
  color: var(--jelttok-deep);
  justify-self: end;
  text-align: right;
}
.chat-bubble {
  grid-area: bubble;
  position: relative;
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--rd-pill);
  font-size: var(--ft-body-s);
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.chat-bubble::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.chat-line.jm .chat-bubble {
  background: var(--card);
  color: var(--jelmmung-deep);
}
.chat-line.jm .chat-bubble::before {
  left: -8px;
  border-right: 9px solid var(--card);
}
.chat-line.jt .chat-bubble {
  background: var(--card);
  color: var(--jelttok-deep);
  justify-self: end;
}
.chat-line.jt .chat-bubble::before {
  right: -8px;
  border-left: 9px solid var(--card);
}
.chat-composer {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--card);
  border-top: var(--border-subtle);
}
.chat-input {
  min-width: 0;
  flex: 1;
  height: 40px;
  padding: 0 var(--sp-4);
  border-radius: var(--rd-pill);
  background: var(--neutral-a);
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: var(--ft-body-s);
  font-weight: 700;
}
.chat-send {
  width: 40px;
  height: 40px;
  border-radius: var(--rd-pill);
  background: var(--jelmmung-deep);
  color: var(--text-inverse);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: var(--ft-caption);
}
.chat-send svg {
  width: 18px;
  height: 18px;
  transform: translate(-1px, 1px);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 하단 CTA — 41_mission과 동일 패턴 */
.cta-section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  opacity: 0;
  transform: translateY(-28px);
  animation: dropDown var(--motion-duration-base) var(--motion-ease-natural) 0.55s forwards;
}
.cta-section .btn-cta { width: 100%; }

/* ── 젤리 글래스 (구 redesign.css 화면40 흡수 · !important 제거)
   히어로는 전역 .hero-card 의존이었음 → 자기 css가 .hero-card 베이스를 다시 정의하므로
   .is-characters .hero-card(0,2,0)로 스코프해 이김. z-lift도 스코프로 포함. ── */
.is-characters .hero-card,
.is-characters .character-card,
.is-characters .chat-card,
.is-characters .cta-section { position: relative; z-index: 1; }
.is-characters .hero-card {
  background: var(--cg-card-bg);
  backdrop-filter: blur(var(--cg-blur)); -webkit-backdrop-filter: blur(var(--cg-blur));
  border: var(--cg-card-border);
  border-radius: var(--cg-radius);
  box-shadow: var(--cg-shadow);
}
.is-characters .character-card,
.is-characters .chat-card {
  background: var(--cg-surface-70);
  backdrop-filter: blur(26px) saturate(1.25); -webkit-backdrop-filter: blur(26px) saturate(1.25);
  border: var(--cg-card-border);
  border-radius: var(--cg-radius);
  box-shadow:
    0 6px 16px rgba(217, 64, 64, 0.10),
    0 22px 48px rgba(217, 64, 64, 0.18),
    inset 0 1px 2px rgba(255, 255, 255, 0.85);
}
