/* =========================================================
   꿀강 랜딩 — 네 화면 구조 (시안 2026-10-05 반영)
   1 주황 배경 + 카톡 말풍선 / 2 그래프 / 3 후기 / 4 주황 배경 가입
   style.css 뒤에 불러옵니다. (가입창·자동완성 스타일은 style.css 것을 사용)
   ========================================================= */
:root {
  --purple: #7b61ff;
  --purple-deep: #5b3fd6;
  --orange-bg: #f28c28;
  --brown: #2b1a06;
  --brown-2: #7a3b0c;
  --cream: #fff3d6;
  --yellow: #ffe14d;
  --line2: #ece7df;
  --cell: #e7e6ee;
}

html { scroll-snap-type: y mandatory; }
body { background: #fff; }
main { max-width: none; padding: 0; zoom: 1; }

/* 상단바: 로고만 */
.topbar { position: fixed; left: 0; right: 0; top: 0; max-width: none; padding: 18px 24px 10px; }
.topbar.is-solid { background: none; backdrop-filter: none; border-bottom: 0; box-shadow: none; }
.logo { color: var(--brown); text-shadow: none; font-size: 30px; }

/* ---------- 화면 공통 ---------- */
.screen {
  min-height: 100vh; min-height: 100svh;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center;
  padding: 76px 24px 124px; box-sizing: border-box;
}
.scr { width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.scr.left { align-items: flex-start; text-align: left; }
.light { background: linear-gradient(135deg, #ecebff 0%, #fff6e7 45%, #ffe9bf 100%); }
.orange { background: var(--orange-bg); }

/* 글자 3단계 */
.t-title { margin: 0; font-size: clamp(30px, 9.6vw, 52px); font-weight: 900; line-height: 1.18; letter-spacing: -0.04em; color: var(--brown); word-break: keep-all; }
.t-title em { color: var(--orange); }
.t-title em.p { color: var(--purple); }
.t-title.big { font-size: clamp(34px, 11vw, 60px); line-height: 1.14; letter-spacing: -0.045em; }
.t-title .b2 { color: var(--brown-2); }
.t-body { margin: 14px 0 0; font-size: clamp(17px, 5vw, 22px); font-weight: 600; line-height: 1.45; color: var(--ink-2); word-break: keep-all; }
.t-cap { margin: 14px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.t-cap b { color: var(--ink); font-weight: 800; }

/* ---------- 1. 약속 (주황 배경 + 말풍선) ---------- */
.s1 .t-title { color: var(--brown); }
.chat { margin-top: 26px; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.bub { position: relative; max-width: 86%; border-radius: 20px; padding: 14px 18px; font-size: clamp(15px, 4.4vw, 18px); font-weight: 600; line-height: 1.45; color: var(--brown); word-break: keep-all; text-align: left; }
.bub.l { align-self: flex-start; background: #fff; border-top-left-radius: 6px; }
.bub.r { align-self: flex-end; background: var(--yellow); border-top-right-radius: 6px; }
.bub.l::before { content: ""; position: absolute; left: -9px; top: 10px; border: 7px solid transparent; border-right-color: #fff; border-left: 0; }
.bub.r::before { content: ""; position: absolute; right: -9px; top: 10px; border: 7px solid transparent; border-left-color: var(--yellow); border-right: 0; }
.bub b { font-weight: 900; }
.s1-tag { margin: 30px 0 0; width: 100%; text-align: center; font-size: clamp(19px, 5.6vw, 25px); font-weight: 800; line-height: 1.35; letter-spacing: -0.03em; color: var(--brown); word-break: keep-all; }

/* ---------- 2. 증거 ---------- */
.tabs { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tab { border: 2px solid var(--brown); background: #fff; color: var(--brown); border-radius: 999px; padding: 10px 15px; font-size: 16px; font-weight: 800; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.tab.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.qd-wrap { margin-top: 18px; width: 100%; max-width: 420px; display: grid; grid-template-columns: 44px 1fr; gap: 6px; }
.qd-y { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding: 10px 0; font-size: 14px; font-weight: 800; color: var(--brown); text-align: right; white-space: nowrap; }
.qd-y small { font-size: 13px; font-weight: 700; color: var(--muted); }
.qd { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 4 / 3; max-height: 34svh; }
.qd-c { border-radius: 16px; background: var(--cell); color: #8f8c9a; font-size: 14px; font-weight: 700; padding: 10px 12px; display: flex; transition: background .3s, color .3s; white-space: nowrap; }
.qd-c.tl { align-items: flex-start; justify-content: flex-start; }
.qd-c.tr { align-items: flex-start; justify-content: flex-end; }
.qd-c.bl { align-items: flex-end; justify-content: flex-start; }
.qd-c.br { align-items: flex-end; justify-content: flex-end; }
.qd-c.on { background: #f3a04c; color: var(--brown-2); }
.qd-pin { position: absolute; width: 0; height: 0; transition: left .45s cubic-bezier(.2,.8,.2,1), top .45s cubic-bezier(.2,.8,.2,1); }
.qd-cur { position: absolute; left: -3px; top: -2px; width: 30px; height: 35px; fill: #fff; stroke: var(--brown); stroke-width: 1.8; stroke-linejoin: round; }
.qd-lbl { position: absolute; left: 0; bottom: 100%; transform: translate(-50%, -8px); white-space: nowrap; font-size: 15px; font-weight: 800; color: var(--brown); background: #fff; border: 2px solid var(--brown); border-radius: 12px; padding: 5px 11px; }
.qd-pin.edge-l .qd-lbl { transform: translate(-14px, -8px); }
.qd-pin.edge-r .qd-lbl { left: auto; right: 0; transform: translate(14px, -8px); }
.qd-pin.edge-r .qd-cur { left: auto; right: -3px; transform: scaleX(-1); }
.qd-pin.flip .qd-lbl { bottom: auto; top: 100%; transform: translate(-50%, 38px); }
.qd-pin.flip.edge-l .qd-lbl { transform: translate(-14px, 38px); }
.qd-pin.flip.edge-r .qd-lbl { transform: translate(14px, 38px); }
.qd-x { margin: 8px 0 0; padding-left: 50px; width: 100%; max-width: 420px; box-sizing: border-box; display: flex; justify-content: space-between; font-size: 14px; font-weight: 800; color: var(--brown); }
.qd-x small { font-size: 14px; font-weight: 700; color: var(--muted); }
.sum { margin: 14px 0 0; display: flex; align-items: center; gap: 8px; font-size: clamp(14px, 4.2vw, 17px); font-weight: 700; color: var(--brown); word-break: keep-all; text-align: left; }
.sum i { flex-shrink: 0; font-style: normal; font-size: 13px; font-weight: 900; color: var(--orange-deep); border: 2px solid var(--orange); border-radius: 999px; padding: 4px 10px; background: #fff; }
.chips2 { margin-top: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.chips2 span { font-size: 15px; font-weight: 800; color: var(--brown); background: #fff; border: 2px solid var(--brown); border-radius: 999px; padding: 8px 14px; white-space: nowrap; }
.chips2 b { color: var(--purple); font-weight: 900; }

/* ---------- 3. 후기 ---------- */
.s3 .t-title.big { font-size: clamp(32px, 10.2vw, 56px); }
.quotes { margin-top: 22px; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.qt { background: rgba(255,255,255,.75); border: 1.5px solid #fff; border-radius: 18px; padding: 14px 16px 12px; text-align: left; }
.qt p { margin: 0; font-size: clamp(13.5px, 3.9vw, 16px); font-weight: 600; line-height: 1.5; color: var(--brown); word-break: keep-all; }
.qt p b { color: var(--orange-deep); font-weight: 700; }
.qt small { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

/* ---------- 4. 가입 ---------- */
.s4 { padding-bottom: 60px; }
.s4 .t-title em { color: var(--cream); }
.s4 .t-body { color: var(--brown); }
.steps { margin-top: 24px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 7px; background: var(--cream); color: var(--brown); border-radius: 999px; padding: 9px 16px 9px 9px; font-size: 16px; font-weight: 800; white-space: nowrap; }
.steps i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--brown); color: #fff; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.btn-final { margin-top: 30px; width: 100%; max-width: 420px; height: 68px; border: 0; border-radius: 22px; background: var(--brown); color: #fff; font-size: clamp(19px, 5.4vw, 23px); font-weight: 900; letter-spacing: -0.02em; transition: transform .12s; }
.btn-final:active { transform: scale(.98); }
.s4 .foot-copy { margin-top: 30px; padding: 0; font-size: 12.5px; color: var(--brown); opacity: .7; }
.s4 .foot-copy a { color: inherit; }

/* ---------- 하단 고정 버튼 ---------- */
.sticky-cta { background: none; }
.sticky-cta .btn-cta { font-size: clamp(19px, 5.4vw, 23px); box-shadow: 0 10px 24px rgba(60,40,10,.18); transition: background .25s, color .25s, transform .3s ease, opacity .3s ease; }
.sticky-cta.on-orange .btn-cta { background: var(--brown); color: #fff; }
.sticky-cta.is-off { transform: translateY(110%); opacity: 0; pointer-events: none; }
#startBtn[hidden] { display: none; }

/* ---------- 낮은 화면 보정 ---------- */
@media (max-height: 680px) {
  .screen { padding-top: 62px; padding-bottom: 108px; }
  .s4 { padding-bottom: 40px; }
  .t-title.big { font-size: clamp(30px, 9.6vw, 52px); }
  .chat { margin-top: 16px; gap: 8px; }
  .bub { padding: 10px 14px; }
  .s1-tag { margin-top: 18px; }
  .qd { aspect-ratio: auto; height: 24svh; max-height: none; }
  .tabs { margin-top: 14px; } .qd-wrap { margin-top: 12px; } .sum { margin-top: 10px; } .chips2 { margin-top: 10px; } .t-body, .t-cap { margin-top: 10px; }
  .quotes { margin-top: 14px; gap: 8px; } .qt { padding: 10px 12px 9px; }
}
@media (max-width: 360px) {
  .screen { padding-left: 18px; padding-right: 18px; }
  .tab { padding: 8px 11px; font-size: 14px; }
  .qd-c { font-size: 12.5px; padding: 8px 9px; }
  .qd-lbl { font-size: 13px; }
  .chips2 span { font-size: 13.5px; padding: 7px 11px; }
  .steps span { font-size: 14px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-snap-type: none; } }

/* =========================================================
   가입창 축소 + 키보드 대응
   ========================================================= */
.overlay { background: #fffaf3; padding: 52px 16px calc(28px + var(--kb, 0px) + env(safe-area-inset-bottom)); scroll-padding-top: 10px; }
.overlay .overlay-inner { zoom: 1; max-width: 440px; gap: 16px; }
.overlay .overlay-close { width: 36px; height: 36px; font-size: 16px; top: calc(10px + env(safe-area-inset-top)); right: 12px; box-shadow: none; background: #fff; border: 2px solid var(--line2); }
.overlay .card { box-shadow: none; border: 2px solid var(--line2); border-radius: 24px; }
.overlay .signup { padding: 20px 18px 18px; }
.overlay .card-logo { font-size: 20px; text-shadow: none; }
.overlay .card-title { margin: 10px 0 4px; font-size: 23px; line-height: 1.28; letter-spacing: -0.6px; }
.overlay .card-sub { margin: 0 0 14px; font-size: 14.5px; }
.overlay .field { margin-bottom: 12px; }
.overlay .field label { font-size: 15.5px; margin-bottom: 6px; }
.overlay .field .chk { width: 15px; height: 15px; }
.overlay .field .chk::after { left: 5px; top: 2.5px; width: 3px; height: 7px; border-width: 0 2px 2px 0; }
.overlay .field-hint { font-size: 12px; }
.overlay .ac-input-wrap { border-width: 2px; border-radius: 16px; padding: 0 12px 0 13px; gap: 8px; }
.overlay .ac-icon { width: 20px; height: 20px; }
.overlay .ac input { height: 48px; font-size: 17px; }
.overlay .ac-clear { width: 22px; height: 22px; line-height: 22px; font-size: 12px; }
.overlay .ac-list { top: calc(100% + 4px); padding: 4px; border-radius: 14px; box-shadow: 0 10px 24px rgba(60,40,10,.14); max-height: min(232px, var(--listmax, 232px)); }
.overlay .ac-item { padding: 10px 10px; border-radius: 10px; font-size: 15.5px; }
.overlay .ac-item .meta { font-size: 12px; }
.overlay .ac-empty { padding: 12px 10px; font-size: 14px; }
.overlay .pills { gap: 7px; }
.overlay .pill { height: 42px; border-width: 2px; border-radius: 13px; font-size: 15px; }
.overlay .form-msg { min-height: 16px; margin: 0 0 6px; font-size: 13px; }
.overlay .btn-primary { height: 52px; font-size: 18px; border-radius: 16px; box-shadow: none; }
.overlay .btn-outline { height: 52px; font-size: 18px; border-radius: 16px; border-width: 2px; margin-top: 10px; }
.overlay .btn-text { margin-top: 14px; font-size: 15px; }
.overlay .form-foot { margin-top: 10px; font-size: 12px; line-height: 1.45; }
.overlay .done { padding: 20px 18px 22px; background: #fff; }
.overlay .done-pot { width: 96px; height: auto; margin: 10px auto 6px; }
.overlay .done-title { margin: 0 0 12px; font-size: 26px; }
.overlay .summary { gap: 8px; margin-bottom: 14px; }
.overlay .summary-row { padding: 11px 14px; border-width: 2px; border-radius: 16px; font-size: 16px; }
.overlay .done-sub { margin: 0 0 14px; font-size: 16px; }
.overlay.is-typing .card-logo, .overlay.is-typing .card-title, .overlay.is-typing .card-sub { display: none; }
.overlay.is-typing .signup { padding-top: 14px; }
.overlay.is-typing { padding-top: 10px; }
.overlay.is-typing .overlay-close { opacity: 0; pointer-events: none; }
/* 강의 탭 3개가 폰 폭(390px)에서 한 줄에 들어가도록 */
.tab { font-size: 14.5px; padding: 8px 10px; letter-spacing: -0.02em; }
@media (max-width: 360px) { .tab { font-size: 13.5px; padding: 7px 8px; } }
/* 2·3번 화면이 폰 한 화면(390×760)에 들어가도록 간격 조정 */
.s2 .t-body { margin-top: 10px; }
.tabs { margin-top: 14px; }
.qd-wrap { margin-top: 12px; }
.qd { max-height: 28svh; }
.sum { margin-top: 10px; }
.chips2 { margin-top: 10px; }
.s2 .t-cap { margin-top: 8px; }
.s3 .t-title.big { font-size: clamp(30px, 9.4vw, 52px); }
.quotes { margin-top: 14px; gap: 8px; }
.qt { padding: 11px 13px 10px; }
.qt p { font-size: clamp(13px, 3.7vw, 15px); line-height: 1.45; }
.qt small { margin-top: 4px; font-size: 12px; }
@media (max-height: 680px) {
  .qd { height: 22svh; }
  .s3 .t-title.big { font-size: clamp(28px, 8.6vw, 48px); }
  .qt { padding: 9px 11px 8px; } .qt p { font-size: 13px; line-height: 1.4; }
}
/* 가입 완료 화면: 꿀단지 대신 꿀벌 캐릭터, 가입창 배경은 라벤더→크림 그라데이션 */
.overlay { background: linear-gradient(135deg, #ecebff 0%, #fff6e7 45%, #ffe9bf 100%); }
.overlay .card { background: #fff; border-color: rgba(255,255,255,.9); }
.overlay .done-pot { width: 110px; height: 110px; margin: 8px auto 4px; display: block; }

/* ---------- 1번 화면 손질: 로고 오른쪽 위, 카톡형 말풍선, 하단 문구 확대 ---------- */
body.on-s1 .topbar-in { justify-content: flex-end; }
.bub { border-radius: 22px; padding: 16px 20px; font-size: clamp(16px, 4.7vw, 19px); line-height: 1.4; max-width: 88%; }
.bub.l { border-top-left-radius: 0; }
.bub.r { border-top-right-radius: 0; }
.bub.l::before { left: -14px; top: 0; border: 0; border-top: 16px solid #fff; border-left: 14px solid transparent; }
.bub.r::before { right: -14px; top: 0; border: 0; border-top: 16px solid var(--yellow); border-right: 14px solid transparent; }
.chat { margin-top: 30px; gap: 14px; }
.s1-tag { margin-top: 46px; font-size: clamp(22px, 6.6vw, 30px); line-height: 1.32; }
@media (max-height: 680px) {
  .chat { margin-top: 18px; gap: 10px; }
  .bub { padding: 11px 15px; }
  .s1-tag { margin-top: 24px; font-size: clamp(19px, 5.6vw, 26px); }
}
.chat { margin-top: 24px; }
.s1-tag { margin-top: 38px; }

/* ---------- 2번 화면: 요약을 그래프 위로, 라벨·커서 겹침 방지 ---------- */
.sum { margin: 12px 0 0; }
.qd-wrap { margin-top: 10px; }
.qd .qd-pin .qd-lbl { left: 50%; right: auto; top: auto; bottom: calc(100% + 8px); transform: translateX(-50%); font-size: 14px; padding: 4px 10px; }
.qd .qd-pin.lx-r .qd-lbl { left: 0; transform: none; }
.qd .qd-pin.lx-l .qd-lbl { left: auto; right: 0; transform: none; }
.qd .qd-pin.ly-b .qd-lbl { bottom: auto; top: 38px; }
.qd .qd-pin.cur-up .qd-lbl { bottom: calc(100% + 38px); }
.qd .qd-pin .qd-cur { left: -3px; right: auto; top: -2px; bottom: auto; transform: none; }
.qd .qd-pin.edge-r .qd-cur { left: auto; right: -3px; transform: scaleX(-1); }
.qd .qd-pin.cur-up .qd-cur { top: auto; bottom: -2px; transform: scaleY(-1); }
.qd .qd-pin.cur-up.edge-r .qd-cur { transform: scale(-1, -1); }
@media (max-width: 360px) { .qd .qd-pin .qd-lbl { font-size: 12.5px; padding: 3px 8px; } }
/* 로고: 모든 화면에서 오른쪽 위 */
.topbar-in { justify-content: flex-end; }

/* ---------- 2번 화면: 그래프 중앙 정렬, 커서 방향 고정, 적음·많음을 그래프 양 끝에 ---------- */
.qd-wrap { grid-template-columns: 36px 1fr 36px; gap: 6px; }
.qd-y { font-size: 12.5px; }
.qd-y small { font-size: 12px; }
.qd .qd-pin .qd-cur, .qd .qd-pin.edge-r .qd-cur, .qd .qd-pin.cur-up .qd-cur { left: -3px; right: auto; top: -2px; bottom: auto; transform: none; }
.qd .qd-pin.cur-up .qd-lbl { bottom: calc(100% + 8px); }
.qd-x { display: grid; grid-template-columns: 36px 1fr 36px; gap: 6px; padding-left: 0; }
.qd-xin { grid-column: 2; display: flex; justify-content: space-between; align-items: baseline; }

/* =========================================================
   1번 화면: 시안(390px 폭 기준) 비율·글씨체 반영
   제목·로고: Gmarket Sans Bold / 말풍선·문구: Pretendard
   ========================================================= */
@font-face { font-family: 'GmarketSans'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff'); }
.logo { font-family: 'GmarketSans', Pretendard, sans-serif; font-weight: 700; font-size: clamp(24px, 7.7vw, 32px); letter-spacing: -0.02em; }
.topbar { padding: clamp(28px, 8vw, 40px) 24px 0; }
.s1 { align-items: flex-start; padding: clamp(96px, min(30vw, 15.5vh), 130px) 24px 128px; }
.s1 .scr { max-width: 520px; }
.s1 .t-title.big { font-family: 'GmarketSans', Pretendard, sans-serif; font-weight: 700; font-size: clamp(30px, min(11.8vw, 6vh), 60px); line-height: 1.45; letter-spacing: -0.01em; }
.s1 .t-title .b2 { color: var(--brown-2); }
.chat { margin-top: clamp(24px, min(11vw, 5.6vh), 48px); gap: clamp(16px, min(6vw, 3vh), 26px); width: 100%; }
.bub { max-width: 96%; border-radius: 17px; padding: 17px 20px; font-size: clamp(13.5px, 4vw, 16.5px); font-weight: 500; line-height: 1.42; letter-spacing: -0.01em; }
.bub.r { padding: 12px 22px; }
.bub.l { border-top-left-radius: 0; }
.bub.r { border-top-right-radius: 0; }
.bub.l::before { left: -18px; top: 0; border: 0; border-top: 22px solid #fff; border-left: 18px solid transparent; }
.bub.r::before { right: -18px; top: 0; border: 0; border-top: 22px solid var(--yellow); border-right: 18px solid transparent; }
.bub b { font-weight: 800; }
.s1-tag { margin-top: clamp(24px, min(9.5vw, 4.8vh), 40px); font-size: clamp(19px, min(6.2vw, 3.2vh), 26px); font-weight: 800; line-height: 1.5; letter-spacing: -0.03em; }
.sticky-cta { padding-left: 24px; padding-right: 24px; }
.sticky-cta .btn-cta { height: clamp(64px, 19vw, 76px); border-radius: 14px; font-size: clamp(20px, 5.6vw, 23px); font-weight: 800; }
.btn-final { border-radius: 14px; height: clamp(64px, 19vw, 76px); font-weight: 800; }
@media (max-height: 680px) {
  .s1 { padding-top: 84px; }
  .chat { margin-top: 18px; gap: 12px; }
  .bub { padding: 11px 15px; }
  .s1-tag { margin-top: 18px; }
}
.s1 { padding-bottom: 90px; }
.chat { padding-right: 8px; box-sizing: border-box; }
/* 1번 화면: 화면 높이에 비례해 시안 비율 유지 (시안 867px 높이 기준) */
.s1 { padding-top: clamp(84px, min(30vw, 13.5vh), 130px); }
.s1 .t-title.big { font-size: clamp(28px, min(11.8vw, 5.3vh), 60px); }
.chat { margin-top: clamp(18px, min(11vw, 5vh), 48px); gap: clamp(12px, min(6vw, 2.8vh), 26px); }
.bub { font-size: clamp(13px, min(4vw, 1.85vh), 16.5px); padding: clamp(11px, 2vh, 17px) 20px; }
.bub.r { padding: clamp(9px, 1.4vh, 12px) 22px; }
.s1-tag { margin-top: clamp(18px, min(9.5vw, 4.3vh), 40px); font-size: clamp(18px, min(6.2vw, 2.8vh), 26px); }

/* ---------- 2·3번 화면: 내용을 화면 높이에 고르게 분산 ---------- */
.s2, .s3 { align-items: stretch; }
.s2 .scr, .s3 .scr { margin: 0 auto; min-height: 100%; }
.s2 .tabs { margin-top: auto; }
.s2 .chips2 { margin-top: auto; }
.s3 .quotes { flex: 1; justify-content: space-evenly; gap: 0; margin-top: 10px; }
.s3 .qt { margin: 0; }
/* 커서 아이콘 검정 테두리 50% 얇게 */
.qd .qd-pin .qd-cur { stroke-width: 0.9; }

/* ---------- 2번 화면: 그래프를 '수업 스펙' 카드 안에 (요약 필 제거) ---------- */
.spec { margin-top: 12px; width: 100%; box-sizing: border-box; background: #fff; border-radius: 22px; padding: 16px 16px 14px; box-shadow: 0 10px 28px rgba(60,40,10,.08); text-align: left; }
.spec-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; color: var(--muted); }
.spec-badge { background: #ffefd8; color: var(--orange-deep); font-weight: 800; font-size: 14px; border-radius: 999px; padding: 6px 13px; white-space: nowrap; }
.spec-sum { margin: 8px 0 12px; font-size: clamp(15px, 4.5vw, 18px); font-weight: 800; line-height: 1.4; color: var(--brown); word-break: keep-all; }
.spec .qd-wrap { margin-top: 0; max-width: none; grid-template-columns: 44px 1fr; gap: 8px; }
.spec .qd-y { padding: 8px 0; font-size: 14px; color: var(--brown); align-items: flex-start; text-align: left; }
.spec .qd-y small { color: var(--muted); font-size: 13px; }
.spec .qd { gap: 8px; }
.spec .qd-c { background: #f3efe7; color: #a39b8f; border-radius: 18px; font-size: 15px; font-weight: 700; padding: 12px 14px; }
.spec .qd-c.on { background: #fde3c2; color: var(--orange-deep); }
.spec .qd .qd-pin .qd-lbl { background: #fff; border: 0; box-shadow: 0 4px 14px rgba(60,40,10,.16); font-size: 15px; font-weight: 900; color: var(--brown); border-radius: 12px; padding: 6px 12px; }
.spec .qd .qd-pin .qd-cur { fill: var(--orange); stroke: #fff; stroke-width: 2; }
.spec .qd-x { margin-top: 8px; max-width: none; grid-template-columns: 44px 1fr; gap: 8px; }
.sum { display: none; }
@media (max-width: 360px) { .spec { padding: 14px 12px 12px; } .spec .qd-c { font-size: 13px; padding: 10px 11px; } .spec .qd .qd-pin .qd-lbl { font-size: 13px; } }
/* 점이 왼쪽에 있을 때 왼쪽 아래 칸 이름을 오른쪽으로 옮겨 커서와 겹치지 않게 */
.qd.pin-bl .qd-c.bl { justify-content: flex-end; align-items: flex-start; }
.spec .qd { max-height: 36svh; }
/* 왼쪽 아래 칸에 점이 있을 때: 칸 이름은 오른쪽 위, 좌표 라벨은 커서 오른쪽 옆 */
.qd.pin-bl .qd-pin .qd-lbl { bottom: auto; top: 2px; left: 34px; right: auto; transform: none; }
/* (수정) 왼쪽 아래 칸에 점이 있을 때: 칸 이름은 왼쪽 위, 라벨은 커서 위에서 조금 오른쪽으로 */
.qd.pin-bl .qd-c.bl { justify-content: flex-start; align-items: flex-start; }
.qd.pin-bl .qd-pin .qd-lbl { bottom: calc(100% + 8px); top: auto; left: 12px; right: auto; transform: none; }

/* 스크롤 끊김 완화: 강제 스냅 대신 가까울 때만 부드럽게 붙음 */
html { scroll-snap-type: y proximity; scroll-behavior: smooth; }
.screen { scroll-snap-stop: normal; }

/* 화면마다 한 번씩 멈춤 (한 번 넘기면 다음 화면에 정확히 정렬) */
html { scroll-snap-type: y mandatory; }
.screen { scroll-snap-stop: always; }

/* 2번 화면: 제목·그래프·칩 사이 간격을 일정하게 (화면이 커도 벌어지지 않게) */
.s2 { align-items: center; }
.s2 .scr { min-height: auto; margin: 0 auto; }
.s2 .tabs { margin-top: clamp(22px, 4vh, 36px); }
.s2 .chips2 { margin-top: clamp(14px, 2.6vh, 24px); }
.s2 .t-cap { margin-top: 8px; }

/* 3번 화면: 리뷰 카드 확대 */
.qt { padding: 16px 18px 14px; border-radius: 20px; }
.qt p { font-size: clamp(15px, 4.3vw, 18px); line-height: 1.5; }
.qt small { margin-top: 6px; font-size: 13.5px; }
@media (max-height: 680px) { .qt { padding: 12px 14px 11px; } .qt p { font-size: clamp(14px, 3.9vw, 16px); line-height: 1.45; } }
/* 높이 800px 이하 폰: 2·3번 화면이 한 화면에 들어가도록 여백 축소 */
@media (max-height: 800px) {
  .s2, .s3 { padding-top: 64px; padding-bottom: 110px; }
  .s2 .t-body { margin-top: 8px; }
  .s2 .tabs { margin-top: clamp(14px, 3vh, 36px); }
  .s2 .chips2 { margin-top: clamp(10px, 2vh, 24px); }
  .spec { padding: 14px 14px 12px; margin-top: 10px; }
  .spec-sum { margin: 6px 0 10px; }
  .qt { padding: 14px 16px 12px; }
}
@media (max-height: 800px) { .s2 .t-cap { margin-top: 5px; } .spec .qd-x { margin-top: 6px; } }

/* 3번 화면: 리뷰 간격을 다시 촘촘하게 (제목 아래 한 묶음으로) */
.s3 { align-items: center; }
.s3 .scr { min-height: auto; margin: 0 auto; }
.s3 .quotes { flex: none; justify-content: flex-start; gap: 10px; margin-top: 16px; }

/* 2번 화면: 그래프를 낮게 (3:2) 해서 인앱 브라우저처럼 짧은 화면에서도 한 화면에 */
.spec .qd { aspect-ratio: 3 / 2; max-height: 30svh; }
@media (max-height: 720px) {
  .s2 { padding-top: 60px; padding-bottom: 104px; }
  .s2 .t-title { font-size: clamp(26px, 8.4vw, 44px); }
  .s2 .t-body { margin-top: 6px; font-size: clamp(15px, 4.4vw, 19px); }
  .s2 .tabs { margin-top: 12px; }
  .spec { margin-top: 10px; padding: 12px 12px 10px; }
  .spec-sum { margin: 5px 0 8px; font-size: clamp(14px, 4.1vw, 17px); }
  .spec .qd { aspect-ratio: 16 / 9; max-height: 26svh; }
  .spec .qd-c { padding: 9px 11px; font-size: 13.5px; }
  .spec .qd-x { margin-top: 5px; }
  .s2 .chips2 { margin-top: 10px; }
  .s2 .t-cap { margin-top: 4px; }
}
/* 과목 탭·칩 테두리 절반 두께 */
.tab, .chips2 span { border-width: 1px; }
/* 짧은 화면(인앱 브라우저 등, 높이 720px 이하): 1·3번 화면도 한 화면에 */
@media (max-height: 720px) {
  .s1 { padding-top: clamp(70px, min(26vw, 12vh), 110px); padding-bottom: 78px; }
  .s3 { padding-top: 60px; padding-bottom: 104px; }
  .s3 .t-title.big { font-size: clamp(26px, 8.4vw, 44px); }
  .s3 .quotes { gap: 8px; margin-top: 12px; }
  .qt { padding: 10px 13px 9px; }
  .qt p { font-size: clamp(13.5px, 3.8vw, 15px); line-height: 1.4; }
  .qt small { margin-top: 3px; font-size: 12px; }
}
@media (max-height: 720px) { .s3 { padding-bottom: 98px; } .s3 .quotes { margin-top: 8px; } }

/* 그래프 더 작게: 카드 안에서 폭을 제한하고 가운데 정렬 */
.spec .qd-wrap, .spec .qd-x { max-width: 270px; margin-left: auto; margin-right: auto; }
.spec .qd-c { font-size: 13.5px; padding: 10px 11px; }
.spec .qd .qd-pin .qd-lbl { font-size: 13.5px; padding: 5px 10px; }
.spec .qd .qd-pin .qd-cur { width: 26px; height: 30px; }
@media (max-width: 360px) { .spec .qd-wrap, .spec .qd-x { max-width: 250px; } }
/* 로고는 첫 화면에서만 */
.topbar { opacity: 0; pointer-events: none; transition: opacity .25s ease; }
body.on-s1 .topbar { opacity: 1; pointer-events: auto; }
/* 흰 카드 폭을 그래프 폭에 맞춰 줄이고 가운데 정렬 */
.spec { max-width: 300px; margin-left: auto; margin-right: auto; padding: 14px 14px 12px; }
.spec .qd-wrap, .spec .qd-x { max-width: none; }
@media (max-width: 360px) { .spec { max-width: 278px; padding: 12px 12px 10px; } }

/* 그래프 폭 = 아래 칩 줄 폭 (가로만 확장, 높이 고정) */
.spec { width: fit-content; max-width: 100%; padding: 12px 8px 10px; }
.spec .qd-wrap, .spec .qd-x { grid-template-columns: 38px var(--gw, 276px); gap: 6px; max-width: none; }
.spec .qd-y { font-size: 12.5px; }
.spec .qd { width: var(--gw, 276px); height: 147px; aspect-ratio: auto; max-height: none; }
.spec-head, .spec-sum { padding-left: 4px; padding-right: 4px; }
@media (max-height: 720px) { .spec .qd { height: 128px; } }
/* 그래프 전체 키우기: 높이를 화면 높이에 비례해 (한 화면 유지) */
.spec .qd { height: clamp(150px, 24vh, 215px); }
@media (max-height: 720px) { .spec .qd { height: clamp(120px, 20vh, 160px); } }
/* 2번 화면: 좌우 여백을 줄이고 칩 줄·그래프가 화면 폭을 넓게 쓰도록 */
.s2 { padding-left: 14px; padding-right: 14px; }
.s2 .scr { max-width: 520px; }
.s2 .chips2 { width: 100%; gap: 8px; flex-wrap: nowrap; }
.s2 .chips2 span { flex: 1; text-align: center; padding-left: 6px; padding-right: 6px; }
@media (max-width: 360px) { .s2 .chips2 span { font-size: 13px; padding-left: 4px; padding-right: 4px; } }

.spec-sum .nb { white-space: nowrap; }
/* 팀플·과제·강의력 칩: 테두리 없는 연주황 필 */
.chips2 span { border: 0; background: #ffefd8; color: var(--brown); }
.chips2 b { color: var(--orange-deep); }
/* 팀플·과제·강의력 칩: 연보라 필 (정보 = 보라, 선택·강조 = 주황) */
.chips2 span { background: #f1edff; color: var(--brown); }
.chips2 b { color: var(--purple-deep); }

/* ---------- 1번 화면 말풍선: 인스타 DM 스타일 (꼬리 없음, 둥근 알약, 프로필 원) ---------- */
.chat.dm { gap: clamp(12px, 2vh, 16px); padding-right: 0; }
.chat.dm .grp { display: flex; align-items: flex-end; gap: 8px; width: 100%; }
.chat.dm .grp.r { justify-content: flex-end; }
.chat.dm .msgs { display: flex; flex-direction: column; gap: 5px; max-width: 86%; }
.chat.dm .grp.r .msgs { align-items: flex-end; }
.chat.dm .grp.l .msgs { align-items: flex-start; }
.chat.dm .bub { max-width: 100%; border-radius: 26px; padding: clamp(10px, 1.6vh, 13px) 18px; }
.chat.dm .bub::before { display: none; }
.chat.dm .bub.l { border-top-left-radius: 26px; }
.chat.dm .bub.r { border-top-right-radius: 26px; }
.chat.dm .grp.l .bub:first-child { border-bottom-left-radius: 8px; }
.chat.dm .grp.l .bub:last-child { border-top-left-radius: 8px; }
.chat.dm .grp.r .bub:first-child { border-bottom-right-radius: 8px; }
.chat.dm .grp.r .bub:last-child { border-top-right-radius: 8px; }
.chat.dm .av { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #efedf3; border: 1.5px solid #e1dde8; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.chat.dm .av svg { width: 20px; height: 20px; fill: #8b8797; }
@media (max-height: 680px) { .chat.dm .av { flex-basis: 28px; width: 28px; height: 28px; } .chat.dm .av svg { width: 16px; height: 16px; } }
.s1-tag { margin-top: clamp(18px, min(9.5vw, 3.9vh), 40px); }
.chat.dm { gap: clamp(10px, 1.7vh, 16px); }
@media (max-height: 800px) { .s3 .quotes { gap: 8px; margin-top: 10px; } .qt p { font-size: clamp(14px, 4vw, 16px); line-height: 1.45; } }
@media (max-height: 720px) { .qt p { font-size: clamp(13px, 3.7vw, 14.5px); line-height: 1.4; } .qt { padding: 9px 12px 8px; } .s3 .quotes { gap: 6px; } }

/* ---------- 1번 화면: 대화 속 링크 미리보기 카드 (하단 문구 대체) ---------- */
.chat.dm .grp.r .bub:first-child { border-bottom-right-radius: 8px; }
.chat.dm .grp.r .bub + .bub { border-top-right-radius: 8px; }
.chat.dm .grp.l .bub:first-child { border-bottom-left-radius: 8px; }
.chat.dm .grp.l .bub + .bub { border-top-left-radius: 8px; }
.chat.dm .grp.r .bub:last-of-type { border-top-right-radius: 8px; border-bottom-right-radius: 26px; }
.lcard { display: flex; align-items: center; gap: 12px; width: min(100%, 300px); margin-top: 3px; border: 0; border-radius: 18px; background: #fff; padding: 12px 14px; text-align: left; cursor: pointer; transition: transform .12s; }
.lcard:active { transform: scale(.98); }
.lcard-ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: #fff3d6; display: inline-flex; align-items: center; justify-content: center; }
.lcard-ic svg { width: 32px; height: 32px; }
.lcard-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lcard-tx b { font-size: 15px; font-weight: 900; color: var(--brown); letter-spacing: -0.02em; }
.lcard-tx span { font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--ink-2); word-break: keep-all; }
.lcard-tx small { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 1px; }
@media (max-height: 680px) { .lcard { padding: 9px 12px; gap: 10px; } .lcard-ic { flex-basis: 38px; width: 38px; height: 38px; } .lcard-ic svg { width: 28px; height: 28px; } .lcard-tx span { font-size: 12px; } }
.chat { margin-top: clamp(18px, min(11vw, 4.4vh), 48px); }
.s1 { padding-bottom: 74px; }
@media (max-height: 720px) { .s1 { padding-top: clamp(62px, min(24vw, 10.5vh), 100px); } .chat.dm .bub { padding: 9px 15px; } .lcard { margin-top: 2px; } }

/* ---------- 1번 화면 대화·링크 카드 1.5배 확대 ---------- */
.chat.dm .bub { font-size: clamp(19px, min(6vw, 2.75vh), 25px); padding: clamp(11px, 1.7vh, 15px) 22px; border-radius: 32px; line-height: 1.35; }
.chat.dm .grp.l .bub:first-child { border-bottom-left-radius: 10px; }
.chat.dm .grp.l .bub + .bub { border-top-left-radius: 10px; }
.chat.dm .grp.r .bub:first-child { border-bottom-right-radius: 10px; }
.chat.dm .grp.r .bub + .bub, .chat.dm .grp.r .bub:last-of-type { border-top-right-radius: 10px; }
.chat.dm .msgs { max-width: 90%; gap: 6px; }
.chat.dm .grp { gap: 10px; }
.chat.dm .av { flex-basis: 51px; width: 51px; height: 51px; }
.chat.dm .av svg { width: 30px; height: 30px; }
.lcard { width: 100%; max-width: 100%; gap: 14px; padding: 14px 18px; border-radius: 22px; }
.lcard-ic { flex-basis: 64px; width: 64px; height: 64px; border-radius: 16px; }
.lcard-ic svg { width: 46px; height: 46px; }
.lcard-tx b { font-size: 22px; }
.lcard-tx span { font-size: clamp(16px, min(4.8vw, 2.2vh), 19px); line-height: 1.3; }
.lcard-tx small { font-size: 15px; }
.chat.dm .grp.r .msgs { max-width: 100%; align-items: flex-end; }
.chat.dm .grp.r .bub { max-width: 90%; }
/* 커진 대화가 한 화면에 들어가도록 제목·여백을 화면 높이에 맞춰 조정 */
.s1 { padding-top: clamp(64px, min(26vw, 11vh), 120px); padding-bottom: 66px; }
.s1 .t-title.big { font-size: clamp(28px, min(11.8vw, 4.5vh), 60px); line-height: 1.38; }
.chat { margin-top: clamp(16px, min(9vw, 3.4vh), 40px); }
.chat.dm { gap: clamp(10px, 1.5vh, 16px); }
@media (max-height: 720px) {
  .s1 { padding-top: clamp(56px, min(20vw, 9vh), 90px); padding-bottom: 60px; }
  .s1 .t-title.big { font-size: clamp(26px, min(10.5vw, 4.2vh), 50px); line-height: 1.3; }
  .chat.dm .bub { padding: 8px 18px; }
  .chat.dm .av { flex-basis: 42px; width: 42px; height: 42px; } .chat.dm .av svg { width: 25px; height: 25px; }
  .lcard { padding: 10px 14px; gap: 10px; } .lcard-ic { flex-basis: 52px; width: 52px; height: 52px; } .lcard-ic svg { width: 38px; height: 38px; }
  .lcard-tx b { font-size: 19px; } .lcard-tx small { font-size: 13px; }
}
.s1 { padding-top: clamp(60px, min(26vw, 10vh), 120px); }
.s1 .t-title.big { font-size: clamp(28px, min(11.8vw, 4.3vh), 60px); }
.chat { margin-top: clamp(14px, min(9vw, 3vh), 40px); }
.chat.dm .bub { padding-top: clamp(9px, 1.4vh, 14px); padding-bottom: clamp(9px, 1.4vh, 14px); }

/* ---------- 수업 스펙 카드: 안쪽 여백을 넓히고 그래프는 그만큼 좁게 ---------- */
.spec { padding: 16px 18px 16px; }
.spec-head, .spec-sum { padding-left: 2px; padding-right: 2px; }
.spec-sum { margin: 8px 0 12px; }
.spec .qd-wrap, .spec .qd-x { grid-template-columns: 40px var(--gw, 276px); gap: 8px; }
.spec .qd-y { padding: 10px 0; }
.spec .qd { gap: 8px; }
.spec .qd-c { padding: 12px 14px; }
.spec .qd-x { margin-top: 8px; }
@media (max-height: 720px) { .spec { padding: 12px 14px 12px; } .spec-sum { margin: 5px 0 8px; } .spec .qd-x { margin-top: 6px; } }
@media (max-width: 360px) { .spec { padding: 12px 12px 12px; } }

/* 1번 화면: 제목 다시 키우고, 대화 묶음은 버튼 쪽으로 내림 */
.s1 .t-title.big { font-size: clamp(30px, min(11.8vw, 5.3vh), 60px); line-height: 1.38; }
.chat { margin-top: clamp(22px, min(12vw, 5.5vh), 56px); }
.s1 { padding-bottom: 56px; }
.chat.dm { gap: clamp(8px, 1.2vh, 14px); }
.chat.dm .msgs { gap: 4px; }
.chat.dm .bub { padding-top: clamp(7px, 1vh, 12px); padding-bottom: clamp(7px, 1vh, 12px); }
.lcard { padding: 12px 16px; margin-top: 2px; }
@media (max-height: 720px) {
  .s1 .t-title.big { font-size: clamp(26px, min(10.5vw, 4.8vh), 50px); }
  .chat { margin-top: clamp(16px, min(9vw, 4vh), 40px); }
  .s1 { padding-bottom: 52px; }
  .chat.dm .bub { padding-top: 6px; padding-bottom: 6px; }
  .lcard { padding: 9px 13px; }
}
.chat { margin-top: clamp(20px, min(12vw, 5vh), 56px); }
.chat.dm .msgs { gap: 3px; }
.lcard { padding: 10px 16px; }
.s1 { padding-bottom: 60px; }

/* 1번 화면 대화·링크 카드: 1.5배 확대 취소 (원래 크기로) */
.chat.dm .bub { font-size: clamp(13px, min(4vw, 1.85vh), 16.5px); padding: clamp(10px, 1.6vh, 13px) 18px; border-radius: 26px; line-height: 1.4; max-width: 100%; }
.chat.dm .grp.l .bub:first-child { border-bottom-left-radius: 8px; }
.chat.dm .grp.l .bub + .bub { border-top-left-radius: 8px; }
.chat.dm .grp.r .bub:first-child { border-bottom-right-radius: 8px; }
.chat.dm .grp.r .bub + .bub, .chat.dm .grp.r .bub:last-of-type { border-top-right-radius: 8px; }
.chat.dm .msgs, .chat.dm .grp.r .msgs { max-width: 86%; gap: 5px; }
.chat.dm .grp.r .bub { max-width: 100%; }
.chat.dm .grp { gap: 8px; }
.chat.dm .av { flex-basis: 34px; width: 34px; height: 34px; }
.chat.dm .av svg { width: 20px; height: 20px; }
.lcard { width: min(100%, 300px); gap: 12px; padding: 12px 14px; border-radius: 18px; margin-top: 3px; }
.lcard-ic { flex-basis: 44px; width: 44px; height: 44px; border-radius: 12px; }
.lcard-ic svg { width: 32px; height: 32px; }
.lcard-tx b { font-size: 15px; }
.lcard-tx span { font-size: 12.5px; line-height: 1.35; }
.lcard-tx small { font-size: 11px; }
.chat.dm { gap: clamp(10px, 1.7vh, 16px); }
@media (max-height: 720px) {
  .chat.dm .bub { padding: 9px 15px; }
  .chat.dm .av { flex-basis: 28px; width: 28px; height: 28px; } .chat.dm .av svg { width: 16px; height: 16px; }
  .lcard { padding: 9px 12px; gap: 10px; } .lcard-ic { flex-basis: 38px; width: 38px; height: 38px; } .lcard-ic svg { width: 28px; height: 28px; }
  .lcard-tx b { font-size: 15px; } .lcard-tx small { font-size: 11px; } .lcard-tx span { font-size: 12px; }
}
/* 요약 문장 줄 높이를 고정해 과목을 바꿔도 카드·그래프 크기와 위치가 똑같이 */
.spec-sum { line-height: 26px; height: 26px; overflow: visible; }
@media (max-height: 720px) { .spec-sum { line-height: 24px; height: 24px; } }

/* 사파리: 주소창이 접혀 화면이 커질 때 마지막 화면 위로 이전 화면 색이 비치던 문제
   - 마지막 화면은 큰 뷰포트(100lvh) 기준으로 채우고, 페이지 바깥(스크롤 끝) 색도 주황으로 */
body { background: var(--orange-bg); }
.s4 { min-height: 100lvh; }
.s4 { min-height: 100vh; min-height: 100lvh; }

/* iOS 사파리: 키보드가 떠 있을 때 가입창 위쪽이 잘리지 않도록 보이는 영역 기준으로 여백 확보 */
.overlay.is-typing { padding-top: 12px; scroll-padding-top: 12px; -webkit-overflow-scrolling: touch; }

/* 입력 중 가입창 위쪽 여백 */
.overlay.is-typing { padding-top: 36px; scroll-padding-top: 36px; }
.overlay.is-typing .signup { padding-top: 18px; }

/* 1번 화면: 제목 1.2배, 채팅 간격 축소 */
.s1 .t-title.big { font-size: clamp(36px, min(14.16vw, 6.36vh), 72px); line-height: 1.32; }
.chat { margin-top: clamp(14px, min(7vw, 3vh), 36px); }
.chat.dm { gap: clamp(6px, 1vh, 10px); }
.chat.dm .msgs, .chat.dm .grp.r .msgs { gap: 3px; }
@media (max-height: 720px) {
  .s1 .t-title.big { font-size: clamp(31px, min(12.6vw, 5.76vh), 60px); line-height: 1.26; }
  .chat { margin-top: 12px; }
  .chat.dm { gap: 6px; }
}

/* 1번 제목 자간·줄 간격을 3번 제목과 동일하게 */
.s1 .t-title.big { letter-spacing: -0.045em; line-height: 1.14; }
@media (max-height: 720px) { .s1 .t-title.big { line-height: 1.14; } }

/* 1번 화면 채팅: 1.1배 확대 + 아래로 내림 */
.chat { margin-top: clamp(20px, min(11vw, 5.5vh), 56px); }
.chat.dm .bub { font-size: clamp(14.3px, min(4.4vw, 2.04vh), 18.2px); padding: clamp(11px, 1.76vh, 14.3px) 20px; border-radius: 28.6px; }
.chat.dm .grp.l .bub:first-child { border-bottom-left-radius: 9px; }
.chat.dm .grp.l .bub + .bub { border-top-left-radius: 9px; }
.chat.dm .grp.r .bub:first-child { border-bottom-right-radius: 9px; }
.chat.dm .grp.r .bub + .bub, .chat.dm .grp.r .bub:last-of-type { border-top-right-radius: 9px; }
.chat.dm .av { flex-basis: 37px; width: 37px; height: 37px; }
.chat.dm .av svg { width: 22px; height: 22px; }
.lcard { width: min(100%, 330px); gap: 13px; padding: 13px 15px; border-radius: 20px; }
.lcard-ic { flex-basis: 48px; width: 48px; height: 48px; border-radius: 13px; }
.lcard-ic svg { width: 35px; height: 35px; }
.lcard-tx b { font-size: 16.5px; }
.lcard-tx span { font-size: 13.75px; }
.lcard-tx small { font-size: 12.1px; }
@media (max-height: 720px) {
  .chat { margin-top: 22px; }
  .chat.dm .bub { padding: 10px 16.5px; }
  .chat.dm .av { flex-basis: 31px; width: 31px; height: 31px; } .chat.dm .av svg { width: 18px; height: 18px; }
  .lcard { padding: 10px 13px; gap: 11px; } .lcard-ic { flex-basis: 42px; width: 42px; height: 42px; } .lcard-ic svg { width: 31px; height: 31px; }
  .lcard-tx b { font-size: 16.5px; } .lcard-tx span { font-size: 13.2px; } .lcard-tx small { font-size: 12.1px; }
}
