/* 창빙시 홈 v5.0.0 — home.css, home-v4.css 위에 덮어씁니다.
   - 새 그림체 9가지(f~o)의 표지 제목 글씨
   - 모바일 길게 눌러 장면 넘기기, 상세 첫 그림 제목 글씨
   - 첫 방문 랜딩 단계(.ob-), 참여 방법 튜토리얼(.tu-) */

/* ── 새 그림체의 제목 글씨 ───────────────── */
.f-cover[data-s="f"] .f-ttl, .fd-hero[data-s="f"] .f-ttl { font-family: "cb-dohyeon", var(--font); color: #fff; text-shadow: 0 0 12px rgba(255, 70, 110, 0.75), 0 2px 8px rgba(0, 0, 0, 0.85); }
.f-cover[data-s="g"]::after { background: linear-gradient(to top, rgba(255, 246, 252, 0.8) 0%, rgba(255, 246, 252, 0.25) 30%, rgba(255, 246, 252, 0) 48%); }
.f-cover[data-s="g"] .f-ttl, .fd-hero[data-s="g"] .f-ttl { font-family: "cb-dohyeon", var(--font); color: #ff5c9d; -webkit-text-stroke: 4px #fff; paint-order: stroke fill; text-shadow: 0 2px 10px rgba(255, 120, 180, 0.45); }
.f-cover[data-s="h"] .f-ttl, .fd-hero[data-s="h"] .f-ttl { font-family: "cb-bhs", var(--font); color: #ffd23f; text-shadow: 3px 3px 0 #c2185b, 5px 5px 0 rgba(0, 0, 0, 0.55); font-style: italic; }
.f-cover[data-s="i"] .f-ttl, .fd-hero[data-s="i"] .f-ttl { font-family: "cb-dohyeon", var(--font); color: #fff; -webkit-text-stroke: 3px #1b1b24; paint-order: stroke fill; }
.f-cover[data-s="j"]::after { background: linear-gradient(to top, rgba(250, 243, 228, 0.88) 0%, rgba(250, 243, 228, 0.3) 30%, rgba(250, 243, 228, 0) 48%); }
.f-cover[data-s="j"] .f-ttl, .fd-hero[data-s="j"] .f-ttl { font-family: "cb-gowun", var(--serif); font-weight: 700; color: #4a2f22; text-shadow: 0 0 6px rgba(255, 250, 238, 0.95); }
.f-cover[data-s="k"] .f-ttl, .fd-hero[data-s="k"] .f-ttl { font-family: "cb-bhs", var(--font); color: #e9fbff; text-shadow: 0 0 6px #00e5ff, 0 0 16px #ff2bd6, 0 2px 4px rgba(0, 0, 0, 0.8); letter-spacing: 0.02em; }
.f-cover[data-s="l"]::after { background: linear-gradient(to top, rgba(250, 245, 236, 0.85) 0%, rgba(250, 245, 236, 0) 40%); }
.f-cover[data-s="l"] .f-ttl, .fd-hero[data-s="l"] .f-ttl { font-family: "cb-bhs", var(--font); color: #ff4f8b; text-shadow: 2px 2px 0 #19a7a1; }
.f-cover[data-s="m"] .f-ttl, .fd-hero[data-s="m"] .f-ttl { font-family: "cb-myeongjo", var(--serif); font-weight: 800; text-align: center; color: #f3dfa2; text-shadow: 0 1px 0 #6b4e16, 0 2px 10px rgba(0, 0, 0, 0.8); letter-spacing: 0.03em; }
.f-cover[data-s="n"]::after { background: linear-gradient(to top, rgba(246, 242, 232, 0.88) 0%, rgba(246, 242, 232, 0.25) 32%, rgba(246, 242, 232, 0) 50%); }
.f-cover[data-s="n"] .f-ttl, .fd-hero[data-s="n"] .f-ttl { font-family: "cb-brush", var(--serif); color: #15130f; font-size: 1.45em; line-height: 1; text-shadow: 0 0 6px rgba(255, 255, 255, 0.9); }
.f-cover[data-s="o"] .f-ttl, .fd-hero[data-s="o"] .f-ttl { font-family: "cb-dohyeon", var(--font); color: #fff7e6; text-shadow: 0 3px 0 rgba(120, 70, 30, 0.6), 0 6px 16px rgba(0, 0, 0, 0.6); }
@media (min-width: 1024px) {
  .f-cover[data-s="f"] .f-ttl, .f-cover[data-s="g"] .f-ttl, .f-cover[data-s="i"] .f-ttl, .f-cover[data-s="o"] .f-ttl { font-size: 23px; }
  .f-cover[data-s="h"] .f-ttl, .f-cover[data-s="k"] .f-ttl, .f-cover[data-s="l"] .f-ttl { font-size: 23px; }
  .f-cover[data-s="j"] .f-ttl, .f-cover[data-s="m"] .f-ttl { font-size: 20px; }
}
.f-cover:not([data-s="a"]):not([data-s="b"]):not([data-s="c"]):not([data-s="d"]):not([data-s="e"]):not([data-s="base"]) .f-ttl { font-size: 21px; line-height: 1.14; }

/* 장면 넘김 표시: 이름 없이 점만 */
.f-sty i { display: none !important; }
/* 길게 누르기: 길게 눌렀을 때 그림 저장 메뉴·글자 선택이 뜨지 않게 */
.f-char[data-cycle] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.f-char[data-cycle] img { -webkit-user-drag: none; pointer-events: none; }
.f-char.cycling .f-cover { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6); }

/* ── 상세 첫 그림의 제목 글씨 ───────────────── */
.fd-hero .fd-ttl { position: absolute; left: 18px; right: 18px; bottom: 54px; z-index: 2; font-weight: 400; font-size: 30px; line-height: 1.12; word-break: keep-all; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8); }
.fd-hero[data-s="base"] .fd-ttl { font-family: "cb-dohyeon", var(--font); text-shadow: 0 0 12px rgba(255, 92, 160, 0.7), 0 2px 8px rgba(0, 0, 0, 0.8); }
.fd-hero[data-s="a"] .fd-ttl { font-family: "cb-gowun", var(--serif); font-weight: 700; }
.fd-hero[data-s="b"] .fd-ttl { font-family: "cb-bhs", var(--font); color: #fff36b; -webkit-text-stroke: 6px #111; paint-order: stroke fill; transform: rotate(-3deg); transform-origin: 0 100%; }
.fd-hero[data-s="c"] .fd-ttl { font-family: "cb-songmyung", var(--serif); color: #f6ecd9; }
.fd-hero[data-s="d"] .fd-ttl { font-family: "cb-brush", var(--serif); font-size: 44px; text-decoration: underline; text-decoration-color: rgba(226, 38, 64, 0.95); text-decoration-thickness: 9px; text-underline-offset: -4px; text-decoration-skip-ink: none; }
.fd-hero[data-s="e"] .fd-ttl { font-family: "cb-myeongjo", var(--serif); font-weight: 800; text-align: center; text-shadow: 0 0 16px rgba(110, 160, 255, 0.95), 0 2px 6px rgba(0, 0, 0, 0.7); }
.fd-hero[data-s="a"] .fd-ttl, .fd-hero[data-s="j"] .fd-ttl, .fd-hero[data-s="n"] .fd-ttl, .fd-hero[data-s="g"] .fd-ttl, .fd-hero[data-s="l"] .fd-ttl { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75); color: #fff; -webkit-text-stroke: 0; }
.fd-hero .fd-ttl.work { font-family: "cb-songmyung", var(--serif); }
.fd-hero .fd-ttl.work[data-g="romance"] { font-family: "cb-myeongjo", var(--serif); font-weight: 800; color: #ffe6ee; }
.fd-hero .fd-ttl.work[data-g="modern"] { font-family: "cb-bhs", var(--font); }
.fd-hero .fd-ttl.work[data-g="mystery"] { font-family: "cb-brush", var(--serif); font-size: 40px; }
@media (min-width: 1024px) { .fd-hero .fd-ttl { bottom: 22px; right: 26px; font-size: 32px; } }

/* ── 참여 방법 튜토리얼 ───────────────── */
.f-help svg { width: 20px; height: 20px; }
#tu { position: fixed; inset: 0; z-index: 70; font-family: var(--font); color: #f4f1f8; --tu-bg: #1a1626; }
#tu[hidden] { display: none; }
#tu.centered { display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 10, 0.78); }
.tu-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(5, 4, 10, 0.74), 0 0 0 3px #f2b84f, 0 0 24px rgba(242, 184, 79, 0.6); transition: all 0.3s var(--ease-out); pointer-events: none; }
.tu-card { position: relative; width: min(400px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 18px; background: var(--tu-bg); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); animation: f-up 0.25s var(--ease-out); }
.tu-card.with-phone { display: grid; width: min(820px, calc(100vw - 24px)); grid-template-columns: 1fr; }
.tu-body { padding: 18px 18px 14px; }
.tu-n { font-size: 11.5px; font-weight: 800; color: #f2b84f; letter-spacing: 0.04em; }
.tu-body h2 { margin: 4px 0 8px; font-size: 19px; font-weight: 800; line-height: 1.3; }
.tu-text { font-size: 14px; line-height: 1.65; color: #ddd6e8; }
.tu-text b { color: #fff; }
.tu-text code, .tu-text kbd { font-family: var(--font); font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: #2a2440; color: #ffe2a8; }
.tu-art { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; font-family: "cb-dohyeon", var(--font); font-size: 20px; }
.tu-art span { padding: 6px 10px; border-radius: 10px; background: #2a2440; }
.tu-art i { font-style: normal; color: #f2b84f; }
.tu-three, .tu-modes, .tu-legend { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.tu-three li, .tu-modes li { padding: 10px 12px; border-radius: 12px; background: #231e33; font-size: 13px; color: #b9b1c7; }
.tu-three li b, .tu-modes li b { display: block; color: #fff; font-size: 14px; margin: 2px 0; }
.tu-three { counter-reset: tu; }
.tu-three li::before { counter-increment: tu; content: counter(tu); display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: #f2b84f; color: #2b1d00; font-size: 12px; font-weight: 900; float: left; }
.tu-modes .f-badge { display: inline-block; }
.tu-list { margin: 6px 0 8px; padding-left: 18px; }
.tu-list li { margin: 4px 0; }
.tu-legend li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.tu-legend i, .tu-phone [data-n]::after { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #f2b84f; color: #2b1d00; font-size: 11px; font-weight: 900; flex: none; }
.tu-nav { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.tu-nav span { flex: 1; }
.tu-nav button { height: 38px; padding: 0 14px; border-radius: 10px; border: 0; background: #2a2440; color: #f4f1f8; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.tu-nav [data-tu="skip"] { background: none; color: #9b93a8; padding: 0 4px; }
.tu-nav .next { background: #f2b84f; color: #2b1d00; font-weight: 800; }
.tu-end { display: grid; gap: 8px; margin-top: 12px; }
.tu-end button { height: 44px; border-radius: 12px; border: 0; background: #f2b84f; color: #2b1d00; font-size: 14.5px; font-weight: 800; cursor: pointer; }
.tu-end button + button { background: #2a2440; color: #fff; }
/* 연습 대화 화면 */
.tu-phone { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 14px 14px 0; padding: 10px; border-radius: 16px; background: #0d0b13; border: 1px solid rgba(255, 255, 255, 0.08); }
.tu-phone header { display: flex; align-items: center; gap: 8px; }
.tu-phone header img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.tu-phone header b { display: block; font-size: 14px; }
.tu-phone header small { font-size: 11px; color: #9b93a8; }
.tu-stat { margin-left: auto; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #2a2440; color: #ffd38a; transition: transform 0.2s; }
.tu-stat.pulse { transform: scale(1.12); }
.tu-log { height: 190px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; scroll-behavior: smooth; }
.tu-log p { margin: 0; font-size: 13px; line-height: 1.55; max-width: 92%; }
.tu-log .narr { color: #9b93a8; font-style: italic; }
.tu-log .act { color: #b9b1c7; font-style: italic; }
.tu-log .act::before { content: "*"; } .tu-log .act::after { content: "*"; }
.tu-log .line { padding: 7px 10px; border-radius: 12px 12px 12px 4px; background: #231e33; }
.tu-log .line b { display: block; font-size: 11px; color: #f2b84f; }
.tu-log .me { align-self: flex-end; padding: 7px 10px; border-radius: 12px 12px 4px 12px; background: #f2b84f; color: #2b1d00; font-weight: 600; }
.tu-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tu-chips button { flex: none; max-width: 210px; text-align: left; padding: 6px 10px; border-radius: 12px; border: 1px solid rgba(242, 184, 79, 0.4); background: rgba(242, 184, 79, 0.08); color: #fff; font-size: 12.5px; line-height: 1.35; cursor: pointer; }
.tu-chips button small { display: block; font-size: 10.5px; color: #f2b84f; font-weight: 800; }
.tu-chips button.used { opacity: 0.5; }
.tu-input { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; border-radius: 12px; background: #1d1928; color: #857d93; font-size: 12.5px; }
.tu-input span { flex: 1; }
.tu-input i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #3a3350; color: #fff; font-style: normal; }
.tu-tools { display: flex; gap: 6px; }
.tu-tools button { height: 30px; padding: 0 10px; border-radius: 8px; border: 0; background: #1d1928; color: #b9b1c7; font-size: 12px; font-weight: 700; cursor: pointer; }
.tu-phone [data-n] { position: relative; }
.tu-phone [data-n]::after { content: attr(data-n); position: absolute; right: -6px; top: -6px; z-index: 2; box-shadow: 0 0 0 2px #0d0b13; }
.tu-log .narr[data-n]::after, .tu-log .line[data-n]::after { right: -2px; top: -2px; }
@media (min-width: 760px) {
  .tu-card.with-phone { grid-template-columns: 360px 1fr; align-items: start; }
  .tu-card.with-phone .tu-phone { margin: 16px 0 16px 16px; }
  .tu-log { height: 240px; }
}
@media (prefers-reduced-motion: reduce) { .tu-hole, .tu-card { transition: none; animation: none; } }

/* ── 첫 방문 랜딩(성향 창 + 창빙시 소개) ───────────────── */
.ob-box .f-pop-body h2 { margin-top: 4px; }
.ob-step { font-size: 11.5px; font-weight: 800; color: var(--gold); letter-spacing: 0.04em; }
.ob-box .f-pick button { transition: transform 0.15s, box-shadow 0.15s; }
.ob-box .f-pick button[aria-pressed="true"] { transform: translateY(-2px); }
.ob-box .f-pick span { font-size: 14px; }
.ob-box .f-pick span small { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; color: #ddd6e8; }
.ob-login, .ob-later { display: block; width: 100%; margin-top: 8px; height: 36px; border: 0; background: none; color: var(--f-text-3); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ob-later { text-decoration: none; color: var(--f-text-2); font-size: 13.5px; height: 42px; }
.ob-art { aspect-ratio: 2.4 / 1; }
.ob-three { list-style: none; margin: 12px 0 2px; padding: 0; display: grid; gap: 6px; counter-reset: ob; }
.ob-three li { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: var(--f-bg-3); font-size: 13px; color: var(--f-text-2); }
.ob-three li::before { counter-increment: ob; content: counter(ob); flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-size: 11.5px; font-weight: 900; }
.ob-three b { flex: none; color: var(--f-text); font-size: 13.5px; }

/* Google account controls v6.3.0 */
.cb-google-login { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; min-height:44px; padding:11px 16px; margin:16px 0; border:1px solid #dadce0; border-radius:8px; background:#fff; color:#1f1f1f; font:500 14px/1.3 Arial,sans-serif; cursor:pointer; }
.cb-google-login b { font:bold 20px/1 Arial,sans-serif; color:#4285f4; }
.cb-google-login:hover { background:#f2f5ff; }
.cb-google-login:disabled { opacity:.5; cursor:wait; }
.cb-google-login:focus-visible,.cb-auth-later:focus-visible { outline:2px solid #f4b945; outline-offset:3px; }
.cb-account-email { overflow-wrap:anywhere; }
.cb-auth-later { display:block; margin:16px auto 0; padding:10px; border:0; background:transparent; color:inherit; cursor:pointer; }
