/* 디자인 메모 (토스 TDS·카카오·네이버 패턴 참고) - 회색 단계는 TDS grey(50~900)를 그대로 쓰고, 파랑은 토스 blue500(#3182F6)에서 색상을 하늘색 쪽으로 약 7도 옮긴 #1F88E5 를 쓴다 - 버튼: 채움(fill)과 연한(weak) 두 가지. 누르면 어두운 막이 덮이고 살짝 작아진다 (100ms) - 선택은 드롭다운 대신 바텀시트. 바깥(딤)을 누르거나 Esc로 닫힌다 - 입력칸은 회색 채움 + 테두리 없음, 포커스 때만 파란 테두리 - 하단 탭: 선택은 파랑, 나머지는 회색 - 그라데이션·이모지 없음, 그림자는 깊이를 줄 때만. 성경 본문만 세리프 */ :root { --grey50: #f9fafb; --grey100: #f2f4f6; --grey200: #e5e8eb; --grey300: #d1d6db; --grey500: #8b95a1; --grey600: #6b7684; --grey700: #4e5968; --grey900: #191f28; --ground: #ffffff; --surface: var(--grey100); --border: var(--grey200); --text: var(--grey900); --sub: var(--grey700); /* 해설 등 두 번째 글자 */ --muted: #646e7b; /* 날짜, 메타 (회색 바탕 위에서도 4.5:1) */ --primary: #1f88e5; /* 버튼 채움 */ --primary-ink: #ffffff; --primary-fill: #1976d2; /* 흰 글자를 얹는 채움 버튼 (4.5:1). 브랜드 파랑은 아이콘, 테두리, 스위치에 쓴다 */ --danger-ink: #ffffff; --accent: #1569c7; /* 글자로 쓰는 파랑 (흰 바탕 4.5:1 이상) */ --accent-soft: #e7f3fd; /* weak 버튼, 선택된 칩 */ --press: rgba(0, 0, 0, 0.08); --dim: rgba(0, 0, 0, 0.45); --notice-bg: #fff0f0; --notice-line: #ffd6d6; --notice-ink: #b0161b; --radius-sm: 10px; --radius-md: 14px; --radius-lg: 20px; --ease: cubic-bezier(0.22, 1, 0.36, 1); --pad: 20px; --col: 560px; /* 본문 영역 폭. 넓은 화면에서는 맨 아래 규칙이 넓힌다 */ --read: 560px; /* 읽는 칸 폭 */ --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", system-ui, sans-serif; /* 성경 본문은 언어별 글꼴: 라틴 글자는 Source Serif 4, 한글은 그 글꼴에 없으니 마루부리로 넘어간다 */ --scripture: "Source Serif 4", "MaruBuri", "AppleMyungjo", "Noto Serif KR", serif; /* AI 해석과 쉬운 풀이처럼 길게 읽는 글. 말씀(마루부리)과 구분된다 */ --reading: "Gowun Dodum", "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif; --fs-verse: 19px; --fs-scale: 1; /* 글자 크기 버튼: 보통(19px)을 1로 본 배율. 묵상의 다른 글도 같이 커진다 */ --hl-yellow: #fff1a6; --hl-green: #d4f3de; --hl-blue: #d7ebfd; --hl-pink: #ffdde6; --hl-purple: #e9e0fc; --avatar-bg: #d1d6db; --avatar-fg: #ffffff; --sel-grey: #c2c9d1; /* 고른 구절 */ --sel-blue: #bcdaf7; /* 머문 구절, 찾아간 구절 */ --verse-line: 30px; /* 본문 한 줄 높이(글자의 1.6배): 절 번호를 여기에 맞춘다 */ } @media (prefers-color-scheme: dark) { :root { --ground: #17181c; --surface: #23252b; --border: #2e3138; --text: #f2f4f6; --sub: #c3c9d0; --muted: #9aa3ad; --primary: #3d9bf2; --grey300: #4e5968; --primary-fill: #2477cc; --danger-ink: #3a1a1b; --accent: #6db3f7; --accent-soft: #16283c; --press: rgba(255, 255, 255, 0.08); --dim: rgba(0, 0, 0, 0.6); --notice-bg: #3a1a1b; --notice-line: #5c2a2c; --notice-ink: #ffb3b5; --avatar-bg: #3a3d44; --avatar-fg: #6b7684; --sel-grey: #3d414a; --sel-blue: #1f3d5e; --hl-yellow: rgba(255, 214, 10, 0.26); --hl-green: rgba(52, 199, 120, 0.26); --hl-blue: rgba(61, 155, 242, 0.3); --hl-pink: rgba(255, 99, 140, 0.26); --hl-purple: rgba(150, 110, 240, 0.3); } } @font-face { font-family: "MaruBuri"; font-weight: 400; font-display: swap; src: url(https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Regular.woff2) format("woff2"); } @font-face { font-family: "MaruBuri"; font-weight: 700; font-display: swap; src: url(https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Bold.woff2) format("woff2"); } * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; } /* 앱처럼: 화면 전체는 움직이지 않고 본문(main)만 스크롤한다. 위 막대와 아래 탭은 제자리에 있고, 본문은 끝에서 부드럽게 튕긴다 */ html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; } body { background: var(--ground); color: var(--text); font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; height: 100dvh; display: flex; flex-direction: column; -webkit-text-size-adjust: 100%; } body.sheet-open main { overflow: hidden; } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } button, input, textarea { font: inherit; color: inherit; } input, textarea { font-size: max(16px, 1em); } /* 16px보다 작으면 아이폰이 입력할 때 화면을 확대한다 */ :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; } .pointer :focus { outline: none; } /* 버튼: 누르면 어두운 막 + 살짝 작아짐 */ button { position: relative; border: none; background: var(--surface); color: var(--text); border-radius: var(--radius-md); padding: 0 16px; min-height: 44px; font-weight: 600; cursor: pointer; transition: transform .1s var(--ease); } button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--press); opacity: 0; transition: opacity .1s var(--ease); pointer-events: none; } button:active { transform: scale(0.97); } button:active::after { opacity: 1; } button:disabled { opacity: .4; cursor: default; transform: none; } button.primary { background: var(--primary-fill); color: var(--primary-ink); } button.weak { background: var(--accent-soft); color: var(--accent); } button.text { background: none; color: var(--sub); padding: 0 6px; min-height: 44px; } button.cta { width: 100%; min-height: 56px; font-size: 17px; font-weight: 700; } button.sm { min-height: 44px; padding: 0 12px; font-size: 14px; border-radius: var(--radius-sm); } /* 보이는 크기는 작게 두고 누르는 영역만 44px로 넓힌다 */ button.sm::before, button.text::before, .swatch::before, .switch::before { content: ""; position: absolute; inset: -4px -2px; } input, textarea { width: 100%; border: 2px solid transparent; background: var(--surface); border-radius: var(--radius-md); padding: 12px 14px; min-height: 48px; font-weight: 500; } input:focus, textarea:focus { border-color: var(--primary); outline: none; } textarea { resize: none; line-height: 1.6; } ::placeholder { color: var(--muted); } /* 상단 */ .topbar { position: sticky; top: 0; z-index: 5; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(8px + env(safe-area-inset-top)) max(var(--pad), calc((100% - var(--col)) / 2)) 8px; background: var(--ground); } .brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; margin: 0; padding: 4px 0; letter-spacing: -0.02em; background: none; border: 0; color: inherit; cursor: pointer; } .brand svg { width: 22px; height: 22px; color: var(--primary); } main { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 4px max(var(--pad), calc((100% - var(--col)) / 2)) calc(96px + env(safe-area-inset-bottom)); } .view { display: none; } .view.active { display: block; } h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.35; } .greeting { font-size: 26px; font-weight: 700; margin: 12px 0 6px; } .greeting-sub { margin: 0 0 32px; color: var(--sub); } .view-title { font-size: 24px; font-weight: 700; margin: 12px 0 16px; } .muted { color: var(--muted); font-size: 14px; margin: 0; } /* 마음 고르기 */ .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; } .chip { min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; } .chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--primary); } /* 결과 */ #comfort-result:empty { display: none; } #comfort-result { margin-top: 22px; } .daily { margin-top: 40px; } .daily[hidden] { display: none; } .match-head { display: flex; align-items: baseline; gap: 10px; margin: 36px 0 12px; } .match-head:first-child { margin-top: 0; } .match-head h2, .match-head h3 { margin: 0; font-size: 18px; font-weight: 700; } .match-head p { margin: 0; color: var(--muted); font-size: 14px; } .lead-verse .verse-text { font-size: 23px; line-height: 1.7; } .verse-text { font-family: var(--scripture); font-weight: 400; font-size: var(--fs-verse); line-height: 1.8; margin: 0 0 10px; } .verse-text sup { font-family: var(--font); color: var(--muted); font-size: 11px; margin-right: 3px; } .ref { color: var(--accent); font-weight: 700; margin: 0; font-size: 15px; } .note { color: var(--sub); margin: 6px 0 0; font-size: 15px; } .verse-item { padding: 22px 0; border-top: 1px solid var(--border); } .more-verses { width: 100%; min-height: 48px; margin-top: 8px; } /* 함께 기도 */ .pray-notice { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; padding: 14px 16px; background: var(--accent-soft); color: var(--accent); text-align: left; } .pray-notice[hidden] { display: none; } .pray-notice svg { width: 18px; height: 18px; fill: none; transform: rotate(-90deg); flex-shrink: 0; } .pray-tabs { margin: 20px 0 4px; } .pray-list { list-style: none; padding: 0; margin: 0; } .pray-card { padding: 20px 0; border-top: 1px solid var(--border); } .pray-card:first-child { border-top: none; } .pray-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 2px; } .pray-tag { color: var(--accent); font-weight: 700; } .pray-tag.alone { color: var(--sub); } .pray-text { margin: 0 0 14px; white-space: pre-wrap; line-height: 1.7; } .pray-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; color: var(--sub); } .pray-btn svg { width: 18px; height: 18px; fill: none; } .pray-btn.done, .pray-btn.done:disabled { background: var(--accent-soft); color: var(--accent); opacity: 1; } .pray-count { margin: 0 0 10px; color: var(--accent); font-weight: 600; font-size: 14px; } .pray-thanked { font-size: 14px; margin: 0; } .pray-menu { margin-left: auto; background: none; min-height: 44px; min-width: 44px; padding: 0; color: var(--muted); display: inline-grid; place-items: center; } .pray-hint { font-size: 14px; margin: 8px 0 16px; } .pray-notice-item { display: grid; gap: 4px; padding: 12px 0; } .pray-notice-item strong { font-size: 15px; } .tabbar .dot { position: absolute; top: 8px; left: calc(50% + 8px); width: 7px; height: 7px; border-radius: 999px; background: var(--primary); } .verse-actions { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 10px; } .verse-actions > :first-child { margin-left: -8px; } /* 첫 단추의 아이콘이 본문 글자와 같은 줄에서 시작하게 */ .helpful { display: inline-flex; align-items: center; gap: 4px; } .helpful svg { width: 16px; height: 16px; fill: none; } .helpful.on { color: var(--accent); opacity: 1 !important; } /* 저장 버튼 (아이콘 + 글자) */ .fav-btn { display: inline-flex; align-items: center; gap: 4px; background: none; padding: 0 8px; min-height: 44px; color: var(--sub); border-radius: var(--radius-sm); } .fav-btn svg { width: 18px; height: 18px; fill: none; } .fav-btn[aria-pressed="true"] { color: var(--primary); } .fav-btn[aria-pressed="true"] svg { fill: currentColor; } /* 위기 안내: 오류처럼 붉게 겁주지 않고, 눌러야 할 전화 하나를 크게 */ .crisis { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 32px; } .crisis h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; } .crisis h3:focus { outline: none; } .crisis p { margin: 0 0 16px; color: var(--sub); } .crisis a { color: inherit; text-decoration: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; } .crisis a strong { font-size: 20px; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; } .crisis a strong svg { width: 20px; height: 20px; } .crisis small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; } .crisis .crisis-main { background: var(--primary-fill); color: var(--primary-ink); border-radius: var(--radius-md); padding: 0 18px; } .crisis .crisis-main small { color: inherit; } .crisis .crisis-also { margin-top: 8px; padding: 0 18px; border-radius: var(--radius-md); background: var(--fill); } .crisis .crisis-text { margin-top: 8px; padding: 0 18px; border-radius: var(--radius-md); background: var(--fill); } .crisis .crisis-text strong { font-size: 16px; color: var(--accent); } .crisis-more { margin-top: 8px; } .crisis-more summary { cursor: pointer; min-height: 44px; color: var(--accent); font-weight: 600; } .crisis-more ul { list-style: none; padding: 0; margin: 0; } .crisis-more li + li { border-top: 1px solid var(--border); } /* 성경 */ .bible-bar { display: grid; gap: 6px; position: sticky; top: -4px; z-index: 4; background: var(--ground); padding: 4px 0 8px; margin-top: -4px; } /* 스크롤해도 장과 번역본이 남는다 */ .bible-bar { transform: translateZ(0); } /* 아이폰에서 스크롤할 때 고정 막대가 떨리지 않게 따로 그린다 */ .title-picker { justify-self: start; display: inline-flex; align-items: center; gap: 6px; background: none; padding: 0 4px; margin-left: -4px; white-space: nowrap; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; min-height: 48px; border-radius: var(--radius-sm); } .title-picker svg, .bar-actions svg { width: 16px; height: 16px; fill: none; } .bible-head { display: flex; align-items: center; gap: 8px; } .bible-head .title-picker { margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* 본문과 AI 해석: 가로로 긴 얇은 알약(양 끝이 둥근) */ .segmented.bible-mode { display: grid; grid-template-columns: 1fr 1fr; margin: 6px 0 0; padding: 2px; border-radius: 999px; } .segmented.bible-mode button { min-height: 26px; padding: 0 12px; border-radius: 999px; font-size: 13px; } .read-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 0; } .bible-version { margin: 0; color: var(--muted); font-size: 13px; } #view-bible.ai-mode .read-row { display: none; } .listen-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px 0 10px; border-radius: 999px; font-size: 14px; color: var(--sub); } .listen-pill[hidden] { display: none; } .read-tools { display: flex; gap: 8px; flex: none; } .listen-pill svg { width: 16px; height: 16px; } .listen-pill.on { color: var(--accent); } .verse.speaking { background: var(--accent-soft); border-radius: 10px; } .listen-btn { display: inline-flex; align-items: center; gap: 4px; } .listen-btn svg { width: 18px; height: 18px; } .listen-btn.on { color: var(--accent); } /* 유리 단추 (크림처럼). 앱 안에서도 웹이 그린다: 흐림 + 반투명 + 위쪽 빛 */ :root { --glass: rgba(255, 255, 255, 0.62); --glass-edge: rgba(255, 255, 255, 0.85); } @media (prefers-color-scheme: dark) { :root { --glass: rgba(60, 62, 68, 0.55); --glass-edge: rgba(255, 255, 255, 0.1); } } .glass { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); border: 1px solid var(--glass-edge); box-shadow: 0 4px 16px rgba(25, 31, 40, 0.08), inset 0 1px 0 var(--glass-edge); color: var(--sub); flex-shrink: 0; } .glass svg { width: 20px; height: 20px; fill: none; } .glass-round { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; } .glass-round svg { width: 22px; height: 22px; } /* 검색: 크림처럼 알약이 제목 줄에 그대로 있고 옆으로 늘어난다. 감쇠 0.75, 반응 0.37초 스프링 (0.28초에 2.8% 넘었다 돌아온다, 크림 영상에서 잰 값) */ :root { --stretch: cubic-bezier(0.34, 1.3, 0.64, 1); } @supports (animation-timing-function: linear(0, 1)) { :root { --stretch: linear(0, 0.0251, 0.0887, 0.1764, 0.2768, 0.3813, 0.4837, 0.5798, 0.667, 0.7438, 0.8097, 0.8648, 0.9098, 0.9455, 0.9731, 0.9937, 1.0085, 1.0184, 1.0244, 1.0275, 1.0284, 1.0276, 1.0258, 1.0233, 1.0205, 1.0175, 1.0146, 1.0119, 1.0094, 1.0072, 1.0054, 1.0038, 1.0025, 1.0015, 1.0007, 1.0002, 0.9998, 0.9995, 0.9993, 0.9992, 1); } } .search-pill { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; width: 84px; height: 40px; margin: 0; padding: 0 12px; border-radius: 999px; transition: width .56s var(--stretch); } .search-pill svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--sub); } .search-pill input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; font-size: 16px; } .search-pill input::-webkit-search-cancel-button { display: none; } .bible-head { position: relative; justify-content: flex-end; } /* 알약은 오른쪽에 붙은 채 왼쪽으로 늘어나 끝에서 살짝 넘었다 돌아온다 (제목은 margin-right: auto로 왼쪽에) */ .bible-head .title-picker { transition: opacity .16s ease-out, filter .16s ease-out; } #read-settings { transition: width .56s var(--stretch); overflow: hidden; } .cancel-label { display: none; font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; } .bible-head:is(.searching, .unsearching) { min-height: 48px; } /* 제목이 빠져도 줄 높이가 그대로라 알약이 위아래로 움직이지 않는다 */ /* 제목은 자리를 비우고 흐려진다. 접힐 때는 줄어드는 유리 아래에서 다시 또렷해진다 */ .bible-head:is(.searching, .unsearching) .title-picker { position: absolute; left: 0; } .bible-head.searching .title-picker { opacity: 0; filter: blur(4px); pointer-events: none; } .bible-head.searching .search-pill { width: calc(100% - 72px); } .bible-head.searching #read-settings { width: 64px; border-radius: 999px; } .bible-head.searching #read-settings svg { display: none; } .bible-head.searching .cancel-label { display: inline; animation: glass-in .2s ease-out; } @keyframes glass-in { from { opacity: 0; filter: blur(4px); } } /* 검색 내용: 검색칸 줄 바로 아래부터 그 자리에 바로 나타난다 */ .search-panel { position: fixed; left: 0; right: 0; bottom: 0; top: var(--search-top, 0px); z-index: 15; background: var(--page); } .search-panel[hidden] { display: none; } .search-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: calc(max(env(safe-area-inset-top), var(--search-top, 0px)) - var(--search-top, 0px) + 12px) max(var(--pad), calc((100% - var(--col)) / 2)) 120px; } .search-hint { color: var(--muted); font-size: 15px; } .search-hint[hidden] { display: none; } @media (prefers-reduced-motion: reduce) { .search-pill, #read-settings, .bible-head .title-picker { transition: none; } #read-settings svg, .bible-head.searching .cancel-label { animation: none; } } /* 앱(리퀴드 글래스): 두 단추는 상태 막대 바로 아래 오른쪽에 고정하고 투명하게 자리만 잡는다. 그 자리에 앱이 유리 단추를 그린다 */ .native-glass .bible-head { padding-right: 140px; } .native-glass #search-form, .native-glass #read-settings { position: fixed; z-index: 8; top: calc(env(safe-area-inset-top) + 2px); opacity: 0; pointer-events: none; } .native-glass #read-settings { right: max(var(--pad), calc((100vw - var(--col)) / 2)); } .native-glass #search-form { right: calc(max(var(--pad), calc((100vw - var(--col)) / 2)) + 48px); width: 84px; transition: none; } /* 앱: 늘어나는 유리 검색칸은 앱이 그린다. 웹은 자리만 그대로 두고 제목만 흐려 비켜 준다 */ .native-glass .bible-head:is(.searching, .unsearching) .title-picker { position: static; } .native-glass .bible-head.searching #read-settings { width: 40px; } .set-label { margin: 18px 0 8px; color: var(--muted); font-size: 13px; font-weight: 600; } .set-label:first-child { margin-top: 0; } #sheet-body .chips { margin-bottom: 0; } #sheet-body .chips .chip { min-height: 40px; padding: 0 14px; font-size: 14px; background: var(--surface); } .set-desc { margin: 8px 0 0; color: var(--muted); font-size: 13px; } .segmented.font-size { grid-template-columns: repeat(3, 1fr); margin-bottom: 4px; } .pick-grid.nums button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--text); } .pick-grid.nums button.has-fig { background: var(--accent-soft); color: var(--accent); font-weight: 700; } .fig-legend { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--muted); font-size: 13px; } .fig-legend span { width: 12px; height: 12px; border-radius: 4px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); } /* 장 고르기 맨 위 책 소개: 둥근 그림, 뜻, 한두 문장, 지도가 있으면 아래에 작은 지도 (누르면 성경 지도) */ .book-intro { background: var(--surface); border-radius: var(--radius-lg); padding: 14px; margin: 0 0 16px; } .book-intro-top { display: flex; align-items: flex-start; gap: 12px; } .book-intro .face { width: 52px; height: 52px; background: var(--ground); } .book-intro .hit-text span { color: var(--sub); line-height: 1.5; } /* 책의 지도들: 시트 폭 가득(좌우 여백까지) 옆으로 넘기는 줄, 아래에 장 칩 */ .book-maps { margin: -4px calc(-1 * var(--pad)) 16px; } .book-map { position: relative; height: min(58vh, 520px); overflow: hidden; background: #d5e6f7; touch-action: none; } /* 성경 지도(mappage.js embedMap)를 칸 안에: 위 막대, 아래 판, 위치 지도 없이 */ .book-map-live, .map-page.mp-embed { position: absolute; inset: 0; z-index: auto; box-shadow: none; } .mp-embed .mp-nav, .mp-embed .mp-mini, .mp-embed .mp-hint { display: none; } .mp-embed .mp-panel { visibility: hidden; height: 58px; overflow: hidden; } /* 아래 이름표 자리: 글자와 길이 그 밑에 깔리지 않게 비워 둔다 */ .book-map-cap { pointer-events: none; } /* 이름표 위를 밀어도 지도가 움직이게 */ .book-map-cap, .book-map-go { position: absolute; bottom: 12px; display: inline-flex; align-items: center; height: 34px; border-radius: 17px; background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--text); font-size: 14px; font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); } .book-map-cap { left: var(--pad); display: block; max-width: calc(100% - 2 * var(--pad) - 46px); padding: 0 12px; line-height: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .book-map-cap b { color: var(--accent); margin-right: 6px; } .book-map-go { right: var(--pad); width: 34px; padding: 0; justify-content: center; } .book-map-go svg { width: 15px; height: 15px; } .book-map-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--pad) 0; scrollbar-width: none; } .book-map-chips::-webkit-scrollbar { display: none; } .book-map-chips button { flex: none; min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--surface); color: var(--sub); font-size: 14px; font-weight: 600; } .book-map-chips button[aria-pressed="true"] { background: var(--text); color: var(--ground); } /* 장마다 시대가 있는 책: 번호 + 시대 줄. 고른 장은 회색 바탕, 그림 있는 장은 번호가 파랗다 */ .chap-list { display: flex; flex-direction: column; gap: 2px; } .chap-list button { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px 6px 6px; background: none; text-align: left; } .chap-list b { display: grid; place-items: center; height: 36px; border-radius: var(--radius-sm); background: var(--surface); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; } .chap-list span { color: var(--sub); font-size: 14px; font-weight: 500; line-height: 1.4; word-break: keep-all; } .chap-list .has-fig b { background: var(--accent-soft); color: var(--accent); } .chap-list [aria-pressed="true"] { background: var(--surface); } .chap-list [aria-pressed="true"] b { box-shadow: inset 0 0 0 2px var(--text); } .search-recent { margin: 0 0 16px; } .recent-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; } .search-recent .chips { margin-bottom: 0; } .search-recent .chip { min-height: 36px; padding: 0 14px; font-size: 14px; background: var(--card); color: var(--sub); } .bookmark-go { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; margin: 0 0 14px; padding: 0 16px; background: var(--surface); border-radius: var(--radius-md); font-size: 15px; color: var(--sub); text-align: left; } .book-hit { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; margin: 0 0 8px; padding: 10px 14px 10px 12px; background: var(--card); border-radius: var(--radius-md); text-align: left; } .hit-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .hit-text strong { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; } .hit-text span { color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.4; word-break: keep-all; } .book-hit > svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; color: var(--grey500); } /* 프로필 사진처럼 둥근 그림: 얇은 테두리, 그림이 없으면 회색 동그라미에 첫 글자 */ .face { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; isolation: isolate; background: var(--surface); box-shadow: 0 0 0 1px var(--border); color: var(--muted); font-size: 17px; font-weight: 700; } .face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* 인물은 얼굴이 크게: 검색 결과 줄은 조금 크게, 소개 머리는 크게 (그림 확대는 app.js avatar) */ .book-hit .face.person { width: 52px; height: 52px; font-size: 19px; } .face.large { width: 120px; height: 120px; font-size: 44px; box-shadow: 0 0 0 1.5px var(--border); } .person-head { display: flex; flex-direction: column; align-items: center; margin: -36px 0 18px; text-align: center; } .person-head h3 { margin: 12px 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; } .person-head p { margin: 0; color: var(--muted); font-size: 14px; word-break: keep-all; } .person-about { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--sub); word-break: keep-all; } .person-sec { margin: 0 0 6px; color: var(--sub); font-size: 13px; font-weight: 700; } .person-events { background: var(--surface); border-radius: var(--radius-md); padding: 4px 6px; } .person-events button { min-height: 60px; padding: 8px 8px; font-weight: 600; font-size: 15px; word-break: keep-all; } .person-events li + li { box-shadow: 0 -1px 0 var(--border); } .person-events button svg { width: 18px; height: 18px; color: var(--grey500); } /* 인물 이야기: 길게 읽는 글(고운돋움), 성경으로 가는 말은 본문 속 링크처럼 파란 글자에 옅은 밑줄 */ .person-story p { margin: 0 0 14px; font-family: var(--reading); font-weight: 400; font-size: 16px; line-height: 1.75; color: var(--text); word-break: keep-all; } .story-link { color: var(--accent); text-decoration: underline 1px color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 4px; border-radius: 4px; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; transition: background-color .25s ease-out; } .story-link.is-pressed { background: var(--accent-soft); transition-duration: .08s; } @media (hover: hover) { .story-link:hover { text-decoration-color: currentColor; } .story-link:active { background: var(--accent-soft); } } .person-credit { margin: 16px 0 0; font-size: 12px; color: var(--muted); } .person-credit a { color: inherit; text-decoration: none; } .search-scope { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 4px calc(var(--pad) * -1) 4px; padding: 4px var(--pad); } .search-scope::-webkit-scrollbar { display: none; } .search-scope .chip { flex-shrink: 0; min-height: 34px; padding: 0 12px; font-size: 13px; } .search-scope .chip[aria-pressed="true"] { background: var(--text); color: var(--page); box-shadow: none; } .search-sec { margin: 18px 0 8px; color: var(--sub); font-size: 13px; font-weight: 700; } .search-list mark { background: #ffe58f; color: inherit; border-radius: 3px; padding: 0 1px; } @media (prefers-color-scheme: dark) { .search-list mark { background: #7a5b00; } } .home-mark { margin: 12px 0; min-height: 56px; background: var(--card); border-radius: var(--radius-lg, 20px); } .home-mark[hidden] { display: none; } .bookmark-go strong { color: var(--text); font-weight: 600; } .bookmark-go svg { width: 20px; height: 20px; fill: none; flex-shrink: 0; } .bookmark-go .go { margin-left: auto; color: var(--grey500); } .bar-actions { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; } /* 초점 테두리가 잘리지 않게 */ .bar-actions::-webkit-scrollbar { display: none; } .bar-actions button { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex-shrink: 0; } .chapter { margin: 12px 0 24px; } .verse { display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 2px; padding: 6px 8px; margin: 0 -8px; border-radius: var(--radius-sm); } .verse .num { color: var(--muted); font-size: 12px; line-height: var(--verse-line); font-variant-numeric: tabular-nums; } .verse .body { font-family: var(--scripture); font-weight: 400; font-size: var(--fs-verse); line-height: var(--verse-line); } .verse .txt, .verse .compare { white-space: pre-line; } /* 쉬운 풀이의 시는 줄을 나눈다 */ .verse .gloss { display: block; margin: 6px 0 2px; color: var(--sub); font-size: 14px; line-height: 1.55; } /* 쉬운 풀이의 한 줄 풀이 */ .verse .compare { display: block; font-family: var(--scripture); font-weight: 400; color: var(--sub); font-size: 16px; line-height: 1.6; margin: 2px 0 6px; } .verse.merged .body { font-family: var(--font); font-size: 13px; color: var(--muted); line-height: 1.6; } .verse.highlight { background: var(--sel-blue); } .pager { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .result-count { margin: 0 0 4px; } .list { list-style: none; padding: 0; margin: 0; } .list li { border-top: 1px solid var(--border); padding: 16px 0; } .list li:first-child { border-top: none; } .list button.linklike { background: none; border-radius: 0; padding: 0; min-height: 0; text-align: left; width: 100%; line-height: 1.6; font-weight: 500; } .list button.linklike:active { transform: none; } .list .snippet { display: block; font-family: var(--scripture); font-weight: 400; margin-top: 2px; } .hist-meta { display: flex; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 2px; } .sub-title { font-size: 18px; margin: 40px 0 4px; } /* 계정 */ .auth-form { display: grid; gap: 16px; } .auth-form label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; } .about { margin-top: 40px; background: var(--surface); border-radius: var(--radius-lg); padding: 16px 20px; } .about summary { cursor: pointer; font-weight: 600; min-height: 44px; } .about ul { padding-left: 18px; color: var(--sub); font-size: 15px; } /* 읽음 표시 */ .read-area { display: flex; justify-content: center; margin: 4px 0 16px; } .read-mark, .read-done { display: inline-flex; align-items: center; gap: 6px; } .read-mark svg, .read-done svg { width: 18px; height: 18px; fill: none; } .read-done { margin: 0; min-height: 44px; padding: 0 6px; background: none; color: var(--accent); font-weight: 600; font-size: 15px; } .share-icon { width: 18px; height: 18px; fill: none; vertical-align: -3px; margin-right: 4px; flex-shrink: 0; } .read-card { padding: 20px 22px; } .read-card:empty { display: none; } .read-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; } .read-head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; } .read-head button { min-height: 28px; padding: 0; margin: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 600; } .read-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; } .read-plan { margin: 14px 0 0; font-weight: 700; } .read-next { margin: 2px 0 0; color: var(--sub); font-size: 15px; } .read-head + .read-next { margin-top: 14px; color: var(--text); font-weight: 700; font-size: 16px; } .read-card .plan-bar { height: 6px; margin-top: 10px; } .read-go { width: 100%; margin-top: 14px; font-size: 15px; } button.read-pick { display: block; margin: 6px auto -6px; color: var(--accent); } .sheet-lead { margin: -4px 0 12px; } .share-in-sheet { margin: -4px 0 8px -6px; } /* 성경통독 */ .plan-bar { height: 8px; border-radius: 999px; background: var(--grey200); overflow: hidden; } .plan-bar span { display: block; height: 100%; background: var(--primary); border-radius: 999px; } .icon-btn { background: none; min-height: 44px; min-width: 44px; padding: 0 10px; font-size: 18px; border-radius: 999px; display: inline-grid; place-items: center; } .icon-btn svg, .pray-menu svg, .login-head button svg { width: 22px; height: 22px; } .ponder-text { font-size: calc(17px * var(--fs-scale)); line-height: 1.85; color: var(--text); margin: 0 0 8px; } .prayer-help summary { cursor: pointer; color: var(--accent); font-weight: 600; } .prayer-help[open] summary { margin-bottom: 10px; } .rest { display: grid; justify-items: center; text-align: center; gap: 20px; padding-top: 24px; } /* 시트 안 버튼 */ .sheet-head h2:empty { display: none; } .done-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .done-actions button { min-height: 52px; } /* 내 페이지 */ .profile { display: flex; align-items: center; gap: 14px; width: 100%; background: none; padding: 4px 0; margin: -4px 0 28px; text-align: left; border-radius: var(--radius-md); } .avatar { width: 56px; height: 56px; border-radius: 999px; background: var(--avatar-bg); color: var(--avatar-fg); overflow: hidden; flex-shrink: 0; } .avatar svg { display: block; width: 100%; height: 100%; } .profile-text { display: grid; gap: 2px; flex: 1; min-width: 0; } .profile-text strong { font-size: 19px; } .profile-text .muted { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .profile-go { width: 20px; height: 20px; color: var(--muted); fill: none; transform: rotate(-90deg); flex-shrink: 0; } .name-actions { margin-top: 16px; } .login-head { display: flex; align-items: center; gap: 4px; margin: 12px 0 8px; } .login-head button { background: none; padding: 0; min-width: 44px; margin-left: -10px; display: inline-grid; place-items: center; } .login-head .view-title { margin: 0; } .account-actions { display: flex; justify-content: space-between; margin-top: 24px; } .policy-link { margin: 16px 0 0; font-size: 14px; } .policy-link a { color: var(--muted); display: inline-block; padding: 14px 0; } .policy-link a + a { margin-left: 12px; } /* 노트 */ .note-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; } .note-tiles button[hidden] { display: none; } .note-tiles button { display: grid; justify-items: start; gap: 4px; min-height: 92px; padding: 14px; text-align: left; border-radius: var(--radius-lg); } .note-tiles span { color: var(--sub); font-size: 14px; } .note-tiles strong { font-size: 24px; font-variant-numeric: tabular-nums; } .verse .body[data-note-verse] { cursor: pointer; } .note-mark { width: 15px; height: 15px; margin-left: 4px; vertical-align: -1px; color: var(--accent); fill: none; } .saved-mark { fill: currentColor; } /* 구절 선택과 색칠 */ .verse.selected { background: var(--border); } /* 고른 구절은 회색 바탕. 이어서 고르면 바탕이 끊기지 않고 이어진다 */ .verse.selected + .verse.selected { border-top-left-radius: 0; border-top-right-radius: 0; } .verse.selected:has(+ .verse.selected) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; } .verse[data-hl] .txt { -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 2px 0; border-radius: 3px; } .verse[data-hl="yellow"] .txt { background: var(--hl-yellow); } .verse[data-hl="green"] .txt { background: var(--hl-green); } .verse[data-hl="blue"] .txt { background: var(--hl-blue); } .verse[data-hl="pink"] .txt { background: var(--hl-pink); } .verse[data-hl="purple"] .txt { background: var(--hl-purple); } body.verse-bar-open main { padding-bottom: 280px; } body.verse-bar-open .tabbar { visibility: hidden; } /* 도구 막대가 덮은 탭이 초점을 받지 않게 */ body.verse-bar-open .toast { bottom: calc(260px + env(safe-area-inset-bottom)); } .verse-bar[hidden] { display: none; } .verse-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; max-width: 600px; margin: 0 auto; background: var(--ground); border-radius: 24px 24px 0 0; border-top: 1px solid var(--border); padding: 16px var(--pad) calc(16px + env(safe-area-inset-bottom)); animation: rise .24s var(--ease); } .verse-bar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; } .verse-bar-head strong { font-size: 18px; } .verse-bar-head .text { min-height: 44px; padding: 0 4px; color: var(--accent); font-weight: 600; } .swatches { display: flex; gap: 10px; margin-bottom: 16px; } .swatch { width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 999px; display: grid; place-items: center; color: var(--grey900); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); } .swatch svg { width: 20px; height: 20px; fill: none; opacity: 0; } .swatch[aria-pressed="true"] svg { opacity: 1; } .swatch[data-color="yellow"] { background: #ffd84d; } .swatch[data-color="green"] { background: #6fd39a; } .swatch[data-color="blue"] { background: #74b9f7; } .swatch[data-color="pink"] { background: #ff97b2; } .swatch[data-color="purple"] { background: #b99df2; } .verse-tools { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; } .verse-tools button { padding: 0 2px; white-space: nowrap; } .verse-tools button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 68px; background: var(--surface); border-radius: var(--radius-md); font-size: 14px; font-weight: 600; color: var(--sub); } .verse-tools svg { width: 24px; height: 24px; fill: none; } .verse-tools [aria-pressed="true"] { color: var(--accent); } .verse-tools [aria-pressed="true"] svg { fill: currentColor; } .note-verse { font-family: var(--scripture); font-size: 17px; line-height: 1.7; margin: 0 0 12px; color: var(--sub); } #note-text { margin-bottom: 12px; } .answered-toggle { display: flex; align-items: center; gap: 6px; width: 100%; margin-bottom: 12px; color: var(--sub); } .answered-toggle svg { width: 18px; height: 18px; fill: none; } .answered-toggle.on { background: var(--accent-soft); color: var(--accent); } .note-list { list-style: none; padding: 0; margin: 12px 0 0; } .note-list li + li { border-top: 1px solid var(--border); } .note-list button { display: grid; gap: 2px; width: 100%; background: none; text-align: left; padding: 14px 4px; border-radius: 0; min-height: 0; font-weight: 500; } .note-list button:active { transform: none; } .note-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .answered { color: var(--accent); font-weight: 700; } /* 설정 */ .setting { background: var(--surface); border-radius: var(--radius-lg); padding: 6px 18px; } .setting-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; } .setting-row + .setting-row { border-top: 1px solid var(--border); } .setting-row[hidden] { display: none; } .setting-title { margin: 0; font-weight: 600; } .setting .muted { margin-top: 2px; } .setting input[type="time"] { width: auto; min-height: 40px; background: var(--ground); } /* 스위치: 아이폰 기본 스위치 크기(51x31). 누르는 자리는 ::before로 44px을 지킨다 */ .switch { flex-shrink: 0; width: 51px; min-height: 31px; height: 31px; padding: 0; border-radius: 999px; background: var(--grey300); transition: background-color .2s var(--ease); } .switch::before { inset: -7px -4px; } .switch span { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 999px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06); transition: transform .2s var(--ease); } .switch[aria-checked="true"] { background: var(--primary); } .switch[aria-checked="true"] span { transform: translateX(20px); } .switch:active { transform: none; } /* 바텀시트 */ .sheet[hidden] { display: none; } .sheet { position: fixed; inset: 0; z-index: 20; } .sheet-dim { position: absolute; inset: 0; background: var(--dim); animation: fade .2s var(--ease); } .sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto; max-width: 600px; margin: 0 auto; background: var(--ground); border-radius: 24px 24px 0 0; padding: 10px var(--pad) calc(20px + env(safe-area-inset-bottom)); animation: rise .28s var(--ease); } .sheet-head { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; } .sheet-head h2 { font-size: 20px; font-weight: 700; margin: 0; } .sheet-head button { background: none; padding: 0 6px; min-height: 44px; min-width: 44px; font-size: 20px; } .segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: var(--radius-sm); padding: 3px; margin-bottom: 14px; } .segmented button { min-height: 44px; background: none; color: var(--muted); border-radius: 8px; font-size: 15px; } .segmented button[aria-pressed="true"] { background: var(--ground); color: var(--text); font-weight: 700; } .pick-grid { display: grid; gap: 8px; } .pick-grid.books { grid-template-columns: repeat(3, 1fr); } .pick-grid.nums { grid-template-columns: repeat(5, 1fr); } .pick-grid button { min-height: 48px; padding: 0 6px; font-size: 15px; } .pick-grid button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--primary); } /* 직접 고르기: 종류별 묶음마다 이름과 모두 고르기, 아래에 고른 권 수 버튼이 붙어 있다 */ .book-group + .book-group { margin-top: 18px; } .book-group-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .book-group-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--sub); } .book-group-head .text { color: var(--accent); font-weight: 600; font-size: 14px; padding-right: 0; } .sheet-foot { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); margin: 18px 0 calc(-20px - env(safe-area-inset-bottom)); padding: 12px 0 calc(20px + env(safe-area-inset-bottom)); background: var(--ground); } .sheet-foot button { width: 100%; min-height: 52px; font-size: 16px; font-weight: 700; } .sheet-foot button:disabled { opacity: 1; background: var(--surface); color: var(--sub); } .pick-list { list-style: none; padding: 0; margin: 0; } .pick-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; background: none; text-align: left; border-radius: var(--radius-md); padding: 0 8px; } .pick-list small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; } .pick-list svg { width: 22px; height: 22px; color: var(--primary); fill: none; flex-shrink: 0; } @keyframes rise { from { transform: translateY(100%); } } @keyframes fade { from { opacity: 0; } } /* 위로: 카카오톡 같은 대화 */ :root { --dock-bottom: calc(59px + env(safe-area-inset-bottom)); } /* 웹 탭 바 위 */ .native-tabs { --dock-bottom: calc(58px + env(safe-area-inset-bottom)); } /* 앱의 iOS 탭 바 위 */ .chat-log { display: flex; flex-direction: column; gap: 14px; padding: 12px 0 106px; } .msg { display: flex; gap: 8px; align-items: flex-start; } .chat-wait { display: none !important; } /* 차례를 기다리는 말풍선 */ /* 새 말은 흐려졌다 나타나지 않고 아래에서 대화와 함께 밀려 올라온다 */ .chat-in { animation: chat-in .36s var(--spring) both; } @keyframes chat-in { from { opacity: .4; transform: translateY(24px); } } @media (prefers-reduced-motion: reduce) { .chat-in { animation: none; } } .msg.me { justify-content: flex-end; } .msg-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; max-width: 88%; } .msg.bot.cont { margin-top: -8px; } /* 대화 상대는 맨 위 가운데에: 둥근 제비 얼굴과 그 아래 이름표. 대화는 그 뒤로 지나간다 */ .chat-head { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 44px 1fr 44px; align-items: start; pointer-events: none; } .chat-head > * { pointer-events: auto; } /* 대화가 위 단추들 뒤로 지나갈 때 글자가 겹쳐 읽히지 않게, 그 띠만 흐리게 가린다 (아래로 갈수록 옅어진다) */ .chat-head::before { content: ""; position: absolute; z-index: -1; top: calc(-1 * (env(safe-area-inset-top) + 16px)); left: -16px; right: -16px; bottom: -22px; pointer-events: none; background: color-mix(in srgb, var(--page) 72%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); -webkit-mask-image: linear-gradient(#000 calc(100% - 34px), transparent); mask-image: linear-gradient(#000 calc(100% - 34px), transparent); } /* 대화 화면은 위 단추 띠가 상태 막대 뒤까지 한 겹으로 이어진다. 상태 막대 띠를 따로 겹치면 아일랜드 아래에서 흐림이 끊긴다 */ .native-chrome.native-edge body:has(#view-comfort.active)::before, .native-chrome.native-edge body:has(#view-comfort.active)::after { display: none; } .chat-bird-btn { justify-self: center; display: flex; flex-direction: column; align-items: center; min-height: 0; padding: 0; background: none; border-radius: 0; box-shadow: none; } /* 누르면 피클처럼 찌그러지지 않고 살짝 옅어지기만 한다 (회색 막과 그림자 없음) */ .chat-bird-btn::after { display: none; } .chat-bird-btn .chat-bird, .chat-bird-btn .chat-who { transition: opacity .25s ease-out; } .chat-bird-btn:active, .chat-bird-btn.is-pressed { transform: none; background: none; } .chat-bird-btn:active .chat-bird, .chat-bird-btn.is-pressed .chat-bird, .chat-bird-btn:active .chat-who, .chat-bird-btn.is-pressed .chat-who { opacity: .55; transition-duration: .06s; } /* 둥근 단추(메뉴, 새 대화, 돌아가기): 바탕 위에 떠 있는 흰 동그라미 */ .head-btn { width: 44px; height: 44px; min-height: 0; margin-top: 6px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: var(--ground); color: var(--text); box-shadow: 0 0 0 1px var(--border), 0 2px 12px rgba(25, 31, 40, 0.06); } .head-btn svg { width: 22px; height: 22px; } .chat-bird { width: 56px; height: 56px; border-radius: 50%; background: var(--ground); box-shadow: 0 2px 12px rgba(25, 31, 40, 0.08); overflow: hidden; } .chat-bird svg { display: block; width: 100%; height: 100%; } .chat-who { display: flex; flex-direction: column; align-items: center; margin-top: -8px; padding: 3px 12px 4px; border-radius: 999px; background: var(--ground); box-shadow: 0 2px 12px rgba(25, 31, 40, 0.08); } .chat-who strong { font-size: 13px; font-weight: 700; line-height: 1.3; } .chat-who small { font-size: 11px; color: var(--muted); line-height: 1.3; } .chat-who small:empty { display: none; } .bird-eyes, .bird-book, .bird { transform-box: fill-box; transform-origin: center; } .bird-eyes { animation: blink 4.6s infinite; } @keyframes blink { 0%, 93%, 100% { transform: none; } 95.5% { transform: scaleY(0.12); } } .bird-book { opacity: 0; transform: translateY(24px); transition: opacity .22s, transform .28s var(--spring); } .chat-head.busy .bird-book { opacity: 1; transform: none; } /* 누르면 찌그러졌다 튄다. 입력하는 동안은 아래 입력칸을 보고, '도움이 됐어요'를 누르면 웃는다 */ .chat-head.listen .bird-eyes { animation: none; transform: translate(4px, 12px); transition: transform .22s var(--spring); } .bird-happy { opacity: 0; } .chat-head.happy .bird-happy { opacity: 1; } .chat-head.happy .bird-eyes { opacity: 0; } .chat-head.happy .bird { animation: hop .5s var(--spring); } @keyframes hop { 40% { transform: translateY(-8%); } } .chat-head.busy .bird-eyes { animation: read 1.6s infinite ease-in-out; } @keyframes read { 0%, 100% { transform: translate(-3px, 14px); } 50% { transform: translate(5px, 14px); } } .chat-head.busy .bird { animation: bob 1.6s infinite ease-in-out; } @keyframes bob { 50% { transform: translateY(-3%); } } @media (prefers-reduced-motion: reduce) { .bird-eyes, .chat-head.busy .bird-eyes, .chat-head.busy .bird, .chat-head.happy .bird, .chat-bird.big .bird, .chat-bird.big .bird-eyes, .chat-bird.big .bird-wing { animation: none; } .chat-head.busy .bird-eyes { transform: translateY(14px); } } /* 대화 글자는 iOS 기본 글꼴(한글은 Apple SD Gothic Neo). 피클 같은 앱(네이티브)과 같은 글꼴이라 같은 크기에서 더 잘 읽힌다 */ :root { --chat-font: -apple-system, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, sans-serif; } .verse-bubble .verse-actions, .bubble .ref-link { font-family: var(--font, inherit); } /* 말풍선: 피클 같은 AI 채팅과 같은 결. 16px, 줄 간격 1.32, 네 모서리 22px(한 줄이면 알약 모양). 같은 사람 말이 이어지면 맞닿는 모서리만 8px */ .bubble { margin: 0; padding: 11px 15px; border-radius: 22px; background: var(--card); font-family: var(--chat-font); font-size: 16px; font-weight: 400; line-height: 1.3; letter-spacing: 0; word-break: keep-all; overflow-wrap: anywhere; } .msg.bot .bubble:has(+ .bubble) { border-bottom-left-radius: 8px; } .msg.bot .bubble + .bubble { border-top-left-radius: 8px; } .msg.me:has(+ .msg.me) .bubble { border-bottom-right-radius: 8px; } .msg.me + .msg.me { margin-top: -10px; } .msg.me + .msg.me .bubble { border-top-right-radius: 8px; } .chat-head { margin-inline: calc(16px - var(--pad)); } /* 위 단추는 화면 끝에서 16px */ .chat-log { margin-inline: calc(18px - var(--pad)); } /* 대화 글은 ChatGPT처럼 화면 끝에서 20px (글 안쪽 2px 포함, 입력칸과 같은 선) */ /* 예전에 남긴 대화의 말씀 칸 안 옛 도구 줄(저장, 체크)은 숨긴다. 도구는 답 맨 아래 한 줄뿐 */ .msg.bot .verse-bubble .verse-actions:not(.answer-tools) { display: none; } .bubble p { margin: 0; } .msg.me .bubble { max-width: 80%; background: var(--bubble-me, var(--primary-fill)); color: var(--bubble-me-ink, var(--primary-ink)); white-space: pre-wrap; } .verse-bubble { padding: 14px 16px 6px; } .verse-bubble .verse-text { margin: 0 0 6px; font-family: var(--scripture); font-size: calc(var(--fs-verse) - 2px); line-height: 1.55; letter-spacing: -0.01em; } .verse-ref-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 2px 0 0; } .verse-tag { font-size: 12px; color: var(--muted); } .verse-orig { min-height: 32px; padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--sub); } .verse-note { margin: 10px 0 0; font-family: var(--chat-font); font-size: 15px; line-height: 1.4; color: var(--sub); } .verse-bubble .verse-text sup { font-family: var(--font); font-size: 11px; color: var(--muted); margin-right: 3px; } .verse-bubble .verse-actions { flex-wrap: wrap; gap: 0; margin: 4px -6px 0; } /* 얼굴 옆 말풍선은 좁아서 넘치는 단추는 다음 줄로 */ .verse-bubble .verse-actions button { min-height: 40px; padding: 0 6px; font-size: 14px; white-space: nowrap; } .verse-bubble .verse-actions > :first-child { margin-left: 0; } .msg-body .crisis { margin: 0; } .chat-more { align-self: flex-end; min-height: 38px; font-size: 14px; background: var(--card); color: var(--accent); font-weight: 600; } /* 앱에 부탁한 말의 답: 흰 칸 안의 iOS 목록, 줄마다 꺾쇠 */ .chat-list { width: min(300px, 100%); background: var(--card); border-radius: 18px; overflow: hidden; } .chat-src { width: min(300px, 100%); background: var(--card); border-radius: 18px; padding: 0 16px; } .chat-src summary { display: flex; align-items: center; } .chat-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 14px; border-radius: 0; background: none; text-align: left; font-weight: 400; } .chat-row + .chat-row { border-top: 1px solid var(--border); } .chat-row-text { flex: 1; min-width: 0; display: grid; gap: 1px; } .chat-row-text strong { font-size: 15px; font-weight: 600; color: var(--text); } .chat-row-text span { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .chat-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; color: var(--sub); } .chat-ico svg { width: 18px; height: 18px; fill: none; } .chat-row .face.chat-face { width: 34px; height: 34px; flex: none; font-size: 14px; } .chat-row-go { flex: none; width: 16px; height: 16px; fill: none; color: var(--grey500); } .chat-feel { max-width: 300px; gap: 6px; } .ai-made { margin: -2px 0 0 4px; font-size: 12px; color: var(--muted); } /* AI 답: 문단과 목록. 읽는 글이라 줄 간격을 넓힌다 */ .bubble.rich { display: grid; gap: 10px; padding: 13px 16px; line-height: 1.55; } .bubble.rich p, .bubble.rich ul { margin: 0; } .bubble.rich ul { padding-left: 18px; display: grid; gap: 4px; } .bubble.rich li::marker { color: var(--muted); } .bubble.rich strong { font-weight: 700; } .chat-feel .chip { min-height: 38px; font-size: 14px; } .typing { display: inline-flex; gap: 4px; padding: 14px; } /* 기다리는 점: 하나씩 차례로 살짝 튀어 오른다 */ .typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--grey500); animation: typing 1.2s infinite ease-in-out; } .typing span:nth-child(2) { animation-delay: .16s; } .typing span:nth-child(3) { animation-delay: .32s; } @keyframes typing { 0%, 50%, 100% { transform: none; opacity: .45; } 25% { transform: translateY(-4px); opacity: 1; } } @media (prefers-reduced-motion: reduce) { .typing span { animation: none; opacity: .6; } } .chat-dock { position: fixed; left: 0; right: 0; bottom: var(--dock-bottom); z-index: 4; max-width: 600px; margin: 0 auto; padding: 16px var(--pad) 8px; background: linear-gradient(to bottom, transparent, var(--page) 18px); } .native-glass .chat-dock { display: none; } /* 앱은 입력칸을 유리로 직접 그린다 */ /* 키보드가 올라오면 탭 바 자리만큼 띄우지 않고 키보드 바로 위에 (--kb: 키보드에 가린 높이). 화면 키보드가 있는 터치 기기에서만: 컴퓨터는 키보드가 화면을 가리지 않아 입력칸이 탭 바 뒤로 숨는다 */ @media (hover: none), (pointer: coarse) { .chat-dock:focus-within { bottom: var(--kb, 0px); padding-bottom: 6px; } } .chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 24px; background: var(--card); box-shadow: 0 2px 12px rgba(25, 31, 40, 0.06); } .chat-input textarea { flex: 1; min-height: 36px; max-height: 120px; padding: 6px 0; border: 0; border-radius: 0; background: none; line-height: 1.5; box-shadow: none; outline: none; } .chat-send { flex: 0 0 36px; width: 36px; height: 36px; min-height: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; background: var(--primary-fill); color: var(--primary-ink); } .chat-send svg { width: 20px; height: 20px; } .chat-send:disabled { opacity: .4; } /* 하단 탭 */ .tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--ground); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); max-width: 600px; margin: 0 auto; } .tabbar button { border-radius: 0; background: none; display: grid; justify-items: center; gap: 2px; padding: 8px 0 6px; min-height: 56px; font-size: 12px; font-weight: 600; color: var(--muted); } .tabbar button:active { transform: none; } .tabbar button::after { display: none; } /* 누를 때 회색 막을 남기지 않는다 */ .tabbar svg { width: 24px; height: 24px; fill: none; } .tabbar button.active { color: var(--accent); } .toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--grey900); color: #fff; padding: 12px 18px; border-radius: var(--radius-md); font-size: 14px; z-index: 30; max-width: calc(100% - 40px); } .empty { color: var(--muted); padding: 24px 0; } .error-box { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; display: grid; gap: 12px; justify-items: start; } .error-box p { margin: 0; color: var(--sub); } @media (prefers-reduced-motion: reduce) { *, *::after { transition: none !important; animation: none !important; } button:active { transform: none; } } /* AI 해석 */ .ai { margin: 0 0 24px; } .ai-open { width: 100%; } .ai-head { display: flex; align-items: center; justify-content: space-between; } .ai-head h3 { font-size: 20px; margin: 0; } .ai-note { color: var(--muted); font-size: 14px; margin: 2px 0 4px; } .ai-sec { border-top: 1px solid var(--border); padding: 20px 0 4px; margin-top: 12px; } .ai-range { color: var(--accent); font-size: 14px; font-weight: 600; margin: 0 0 2px; } .ai-sec h4 { font-size: calc(18px * var(--fs-scale)); margin: 0 0 10px; } .ai-sec > p:not(.ai-range), .ai-rest p { font-family: var(--reading); font-weight: 400; font-size: calc(16px * var(--fs-scale)); line-height: 1.75; margin: 0 0 12px; } .ai-sec sup { color: var(--accent); font-size: .68em; margin-left: 1px; } .ai-src summary { color: var(--muted); font-size: 14px; cursor: pointer; min-height: 44px; } .ai-src ol { margin: 4px 0 8px; padding-left: 20px; font-size: 14px; color: var(--sub); } .ai-src li { margin: 6px 0; overflow-wrap: anywhere; } .ai-src a { color: var(--accent); } .ai-src small { display: block; color: var(--muted); } /* 함께 기도 이용 약속, 계정 삭제 */ .terms-list { padding-left: 20px; margin: 0 0 8px; color: var(--sub); line-height: 1.65; } .terms-list li { margin: 6px 0; } button.primary.danger { background: var(--notice-ink); color: var(--danger-ink); } /* Apple, Google 로그인 (각 회사의 버튼 지침: Apple은 검정, Google은 흰 바탕과 회색 테두리) */ .social-login { display: grid; gap: 8px; margin: 8px 0 4px; } .social { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; font-weight: 600; } .social svg { width: 18px; height: 18px; } .social.apple { background: #000; color: #fff; } .social.google { background: #fff; color: #1f1f1f; border: 1px solid #747775; } .social-or { text-align: center; margin: 12px 0 0; font-size: 14px; } /* 쉬운 풀이 안내, 구절 키보드 초점 */ .easy-note { display: flex; align-items: flex-start; gap: 8px; } .easy-note p { margin: 0; flex: 1; } .easy-note strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; } .easy-note button.text { flex-shrink: 0; margin: -8px -6px -8px 0; color: var(--accent); font-weight: 600; } .easy-note { margin: 0 0 12px; padding: 12px 14px; background: var(--surface); border-radius: var(--radius-sm); color: var(--sub); font-size: 14px; line-height: 1.6; } .verse .body:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; } /* 함께 기도 소개 (로그인 전) */ /* 장절을 누르면 앞뒤 본문으로 */ .ref-link { display: inline-flex; align-items: center; gap: 2px; background: none; padding: 0; min-height: 44px; border-radius: var(--radius-sm); } .ref-link svg { width: 16px; height: 16px; } .ref-link:active { transform: none; } /* AI 해석: 단락마다 첫 문단만, 나머지는 더 읽기로 */ .ai-more { padding: 0; color: var(--accent); font-weight: 600; margin: -4px 0 8px; } /* 꺼진 스위치도 바탕과 구분되게 (3:1) */ .switch[aria-checked="false"], .switch:not([aria-checked]) { background: #7d8794; } /* 아이폰에서는 아이폰 기본 스위치 색 */ .ios .switch[aria-checked="false"], .ios .switch:not([aria-checked]) { background: rgba(120, 120, 128, 0.24); } /* 회색 카드 위라 아이폰 기본보다 조금 진하게 */ .ios .switch[aria-checked="true"] { background: #34c759; } @media (prefers-color-scheme: dark) { .switch[aria-checked="false"], .switch:not([aria-checked]) { background: #77818e; } .ios .switch[aria-checked="false"], .ios .switch:not([aria-checked]) { background: #39393d; } .ios .switch[aria-checked="true"] { background: #30d158; } .toast { background: #3a3d44; box-shadow: inset 0 0 0 1px #5d6673; } } /* 쉬운 풀이는 AI 풀이라 성경 본문 세리프 대신 본문 글꼴로 */ .chapter.easy .verse .body { font-family: var(--reading); font-weight: 400; } /* 처음 성경을 열 때 한 줄 안내 */ .tap-hint { margin: 10px 0 0; color: var(--muted); font-size: 14px; } /* 펼치기 표시는 브라우저 기본 ▶ 대신 아래쪽 꺾쇠 */ details > summary { list-style: none; display: flex; align-items: center; gap: 6px; } details > summary::-webkit-details-marker { display: none; } details > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; transition: transform .2s var(--ease); } details[open] > summary::after { transform: rotate(-135deg) translateY(-2px); } /* AI 해석은 장 넘김 버튼과 간격을 둔다 */ .ai { margin-top: 24px; } .sheet-close { margin-left: auto; margin-right: -10px; } .verse.selected .num { color: var(--text); } /* 회색 바탕 위 절 번호도 4.5:1 */ .reset-btn { justify-self: start; padding: 0; } /* 로그인 또는 회원가입 */ .auth-mode { margin: 16px 0; } .auth-form .muted[hidden], .reset-btn[hidden] { display: none; } /* 기도 탭 미리보기 */ /* hidden 속성이 display 규칙에 지지 않게 */ .social-login[hidden], .social[hidden], .swatches[hidden] { display: none; } .verse-bar-head > span { display: flex; gap: 4px; } .verse.highlight .num, .verse.selected .num { color: var(--text); } .prayer-help summary { min-height: 44px; } .ai-src li { min-height: 44px; display: flex; flex-direction: column; justify-content: center; } .ai-src a { display: inline-block; padding: 8px 0; } .auth-form .muted[hidden] { display: none; } #auth-terms a { color: var(--accent); } .crisis-more[open] summary::after { transform: rotate(-135deg) translateY(-2px); } .back-comfort { display: inline-flex; align-items: center; gap: 4px; margin: 8px 0 0; } .back-comfort[hidden] { display: none; } .back-comfort svg { width: 16px; height: 16px; } .help ul { list-style: none; padding: 0; } .help li { margin: 10px 0; line-height: 1.6; } .help strong { color: var(--text); margin-right: 6px; } .help a { color: var(--accent); } @media (hover: none) { .kbd-help { display: none; } } [tabindex="-1"]:focus { outline: none; } .back-comfort { position: absolute; right: 0; top: 6px; display: inline-flex; align-items: center; gap: 4px; margin: 0; } #ai-area, #crisis-title, .match-head h3 { scroll-margin-top: 140px; } small { font-size: 13px; } .about.help { margin: 40px 0 8px; } #auth-terms a { display: inline-block; padding: 12px 2px; } .ai-head .text { min-width: 44px; } /* ── 1.1: 한 겹 더, 움직임 ───────────────────────────────── - 모든 화면을 연회색 바탕에 두고, 칸과 버튼과 입력칸은 흰색으로 올린다. 흰 카드 안의 버튼과 입력칸은 다시 회색 - 움직임은 iOS 기본을 따른다: 줄은 누르면 회색, 상세 화면은 오른쪽에서 밀려 들어오고, 시트는 스프링으로 올라온다 - 선택된 탭은 꽉 찬 아이콘, 제목은 더 크고 굵게 */ :root { --page: var(--grey100); --card: #ffffff; --fill: var(--grey100); /* 흰 카드 안의 버튼, 입력칸 */ --spring: cubic-bezier(0.32, 0.72, 0, 1); --push: cubic-bezier(0.2, 0.85, 0.25, 1); } /* 감쇠 0.86, 반응 0.45초 스프링 (끝에서 0.5%만 넘었다 돌아온다) */ @supports (animation-timing-function: linear(0, 1)) { :root { --spring: linear(0, 0.0332, 0.1133, 0.2173, 0.3298, 0.4407, 0.5437, 0.6354, 0.7146, 0.7812, 0.8358, 0.8797, 0.9143, 0.9409, 0.961, 0.9759, 0.9865, 0.994, 0.9989, 1.0021, 1.0039, 1.0048, 1.005, 1.0049, 1.0045, 1.004, 1.0034, 1.0028, 1.0023, 1.0018, 1); } } @media (prefers-color-scheme: dark) { :root { --page: #101114; --card: #1c1e23; --fill: #23252b; } } /* 글이 주인공인 화면(위로 대화, 성경 본문, 제비 소개)은 흰 바탕에 회색 칸. 카드를 쌓는 화면(홈, 묵상, 기도, 내 페이지)은 연회색 바탕에 흰 카드 */ :root:has(#view-comfort.active), :root:has(#view-bible.active), :root:has(#view-bird.active) { --page: var(--ground); --card: var(--grey100); --fill: var(--ground); } @media (prefers-color-scheme: dark) { :root:has(#view-comfort.active), :root:has(#view-bible.active), :root:has(#view-bird.active) { --page: var(--ground); --card: #23252b; --fill: #2c2f36; } } /* 한 겹 더: 연회색 바탕 위 흰 카드 */ body, .topbar, .bible-bar { background: var(--page); } .topbar { --icon-cut: var(--page); } /* 바탕 위의 버튼, 입력칸, 안내 상자는 흰색 (회색 바탕에 회색이 묻히지 않게) */ main { --surface: var(--card); } main .segmented { background: var(--border); } main .segmented button[aria-pressed="true"] { background: var(--card); } /* 흰 카드 안에서는 다시 회색 */ #view-home .daily, .read-card, #view-me .profile, #view-me .setting, #view-me .about, #saved-list, #view-me .note-tiles button, .crisis, .error-box, .about { --surface: var(--fill); } .crisis, .error-box, .about, .easy-note { background: var(--card); } #view-home .daily, .read-card, #view-me .profile, #view-me .setting, #view-me .about, #saved-list:has(li) { background: var(--card); border-radius: var(--radius-lg); } #view-me .note-tiles button { background: var(--card); } #view-me .setting input[type="time"] { background: var(--surface); } /* 홈 */ .greeting { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 12px 0 14px; } .read-card { margin-top: 12px; } #view-home .daily { margin-top: 12px; padding: 22px; } #view-home .daily .match-head { display: block; margin: 0 0 12px; } #view-home .daily .match-head p { margin-top: 4px; } #view-home .daily .verse-item { padding: 0; border-top: none; } /* 내 페이지: 칸마다 카드 */ #view-me .profile { padding: 16px 18px; margin: 0 0 12px; } #saved-list:has(li) { padding: 0 18px; overflow: hidden; } #view-me .about { margin-top: 12px; } #view-me .about.help { margin-top: 32px; } #view-me .about.help.ai-info { margin-top: 12px; } /* 글자: 제목과 숫자는 더 크고 굵게, 본문과 차이를 키운다 */ .view-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; } .sub-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; } .match-head h2, .match-head h3 { font-size: 17px; } .note-tiles strong { font-size: 24px; font-weight: 700; } .title-picker { font-size: 22px; font-weight: 700; } /* 목록 한 줄: 넉넉한 높이, 누르면 크기는 그대로 두고 바탕만 회색 */ .list li { padding: 18px 0; } .note-list button { min-height: 60px; padding: 16px 4px; } .list button.linklike::after { inset: -18px -18px; border-radius: 0; } .pick-list button:active, .profile:active, .pray-notice:active { transform: none; } /* 누르면 바로 어두워지고, 떼면 iOS처럼 천천히 걷힌다 */ button::after { transition-duration: .25s; } button:active::after { transition-duration: 0s; } /* 손가락(터치)에서는 :active 대신 .is-pressed: 스크롤하다 닿은 손가락에는 반응하지 않고, 누르면 폭신하게 들어갔다가(0.12초) 떼면 살짝 튕기며 돌아온다(0.4초). 회색 막은 옅게 */ @media (hover: none) { button:active { transform: none; } button:active::after { opacity: 0; } button, #saved-list, .note-list { transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1); } button::after { transition: opacity .25s ease-out; } button.is-pressed { transform: scale(0.96); transition: transform .12s ease-out; } button.is-pressed::after { opacity: .5; transition-duration: .08s; } /* 카드 안의 줄은 줄 대신 카드 전체가 눌린다 */ #saved-list:has(.is-pressed) { transform: scale(0.98); transition: transform .12s ease-out; } #saved-list .is-pressed, .note-list .is-pressed, .pick-list .is-pressed, .list .is-pressed { transform: none; } #saved-list .is-pressed::after { opacity: .35; } .switch.is-pressed, .chip.is-pressed { transform: none; } } /* 하단 탭: 뒤가 비치는 막대, 선택된 탭은 꽉 찬 아이콘 */ .tabbar { --tab-bg: var(--ground); --icon-cut: var(--ground); background: color-mix(in srgb, var(--ground) 86%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 0.5px solid rgba(0, 0, 0, 0.16); } .tabbar svg.on, .tabbar button.active svg.off { display: none; } .native-tabs .tabbar { display: none; } /* 1.1 앱은 iOS 탭 바를 직접 그린다 */ /* 1.1 앱: 장 막대는 본문과 함께 올라가고, 다 지나가면 위에 장 이름만 작게 접힌다 (아이폰 큰 제목이 접히는 것처럼) */ .bible-mini[hidden] { display: none; } .native-tabs .bible-bar { position: static; transform: none; } .bible-mini { position: fixed; top: 0; left: 0; right: 0; z-index: 7; padding-top: env(safe-area-inset-top); background: color-mix(in srgb, var(--page) 88%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.14); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .16s ease-out, transform .22s var(--spring); } .bible-mini.show { opacity: 1; transform: none; pointer-events: auto; } .mini-title { display: block; width: 100%; min-height: 44px; padding: 0 max(var(--pad), calc((100% - var(--read)) / 2)); background: none; border-radius: 0; text-align: left; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; } .mini-title:active { transform: none; } @media (prefers-color-scheme: dark) { .bible-mini { box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.12); } } /* 1.1 앱: 시트, 구절 도구 막대, 묵상 화면의 오르내림은 앱이 그린다 (웹 애니메이션은 60Hz에 묶인다) */ .native-sheets .sheet-panel, .native-sheets .sheet-dim, .native-sheets .verse-bar { animation: none; } /* 1.1 앱: 시트와 도구 막대 위의 손잡이 (아래로 쓸어 닫을 수 있다는 표시) */ .native-sheets .sheet-panel::before, .native-sheets .verse-bar::before { content: ""; display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--grey300); margin: -4px auto 10px; } .native-sheets .sheet-panel, .native-sheets .verse-bar { touch-action: pan-y; } /* 펼친 시트(인물 소개를 위로 밀었을 때): 화면을 다 덮고 모서리는 펴지며, 내용은 상태 막대 아래에서 시작한다 */ .sheet-panel.full { max-height: none; height: 100%; border-radius: 0; padding-top: calc(10px + env(safe-area-inset-top)); } /* 1.1 앱: 위쪽 흐린 띠와 접힌 장 제목은 앱이 iOS 재질로 그린다. 웹 것은 자리만 잡는다 */ .native-chrome body::before { display: none; } .native-chrome .bible-mini { visibility: hidden; } /* 2.2 앱: 장 제목이 접힐 때가 아니면 상태 막대 뒤는 웹이 그린다 (최신 iOS 앱처럼 글이 화면 맨 위까지 이어지며 흐려진다) - 두 겹: 위 겹은 흐리게(10px) 하다가 상태 막대 끝에서 풀리고, 아래 겹은 약하게 흐려(3px) 그 끝을 이어 경계선이 없다 - 흐림은 상태 막대 높이 안에서 끝낸다. 28px 더 내려오면 첫 줄 글까지 흐려져 너무 낮다는 피드백 (2026-11-19) - 바탕색 막은 옅게 얹어 흐린 글이 비쳐 보이고, 아래로 갈수록 더 옅어진다. 빈 곳은 바탕 위에 바탕이라 화면과 색이 같다 (채도는 올리지 않는다: 바탕색이 바뀐다) */ .native-chrome.native-edge body::before, .native-chrome.native-edge body::after { content: ""; display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 6; pointer-events: none; height: calc(env(safe-area-inset-top) + 6px); } .native-chrome.native-edge body::before { background: linear-gradient(color-mix(in srgb, var(--page) 45%, transparent), color-mix(in srgb, var(--page) 15%, transparent) 70%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent calc(100% - 4px)); mask-image: linear-gradient(#000 calc(100% - 26px), transparent calc(100% - 4px)); } .native-chrome.native-edge body::after { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(transparent calc(100% - 30px), #000 calc(100% - 14px), transparent); mask-image: linear-gradient(transparent calc(100% - 30px), #000 calc(100% - 14px), transparent); } /* 다이내믹 아일랜드 기종: 흐림 경계를 아일랜드 아래 끝(--island-bottom, app.js가 기종으로 정한다)에 맞춘다. 아래 4px 안에서 끝난다 */ .native-chrome.native-edge.island-edge body::before, .native-chrome.native-edge.island-edge body::after { height: calc(var(--island-bottom) + 4px); } .native-chrome.native-edge.island-edge body::before { -webkit-mask-image: linear-gradient(#000 calc(100% - 7px), transparent calc(100% - 2px)); mask-image: linear-gradient(#000 calc(100% - 7px), transparent calc(100% - 2px)); } .native-chrome.native-edge.island-edge body::after { -webkit-mask-image: linear-gradient(transparent calc(100% - 14px), #000 calc(100% - 4px), transparent); mask-image: linear-gradient(transparent calc(100% - 14px), #000 calc(100% - 4px), transparent); } /* 1.1 앱: iOS 글자 크기 설정 (앱이 --text-adjust를 넘긴다) */ .native-chrome body { -webkit-text-size-adjust: var(--text-adjust, 100%); text-size-adjust: var(--text-adjust, 100%); } .native-pending { visibility: hidden; } .ghost-still { pointer-events: none; } .sheet.ghost-still { z-index: 19; } /* 1.1 앱: 위 '보금자리' 막대를 빼고 화면마다 제목부터 보여 준다. 상태 막대 뒤만 비치는 띠로 가린다 */ .native-tabs .topbar { display: none; } /* 휴대폰(안드로이드 앱, 휴대폰 브라우저)에서는 화면마다 제목이 있으니 위의 보금자리 줄을 뺀다. 마우스로 쓰는 컴퓨터에서만 보인다 */ @media not ((hover: hover) and (pointer: fine)) { .topbar { display: none; } } .native-tabs main { padding-top: calc(4px + env(safe-area-inset-top)); } /* 고정 막대(sticky)는 이 여백 아래에 붙는다 */ .native-tabs body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); z-index: 6; pointer-events: none; background: color-mix(in srgb, var(--page) 86%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); } .tabbar button.active svg.on { display: block; } @media (prefers-color-scheme: dark) { .tabbar { border-top-color: rgba(255, 255, 255, 0.14); } } /* 바텀시트와 묵상 화면: 스프링으로 올라오고, 닫을 때는 복사본이 아래로 내려간다 */ .sheet-panel { animation: rise .28s var(--spring); } .sheet-dim { animation: fade .18s ease-out; } .verse-bar { animation: rise .22s var(--spring); } .leaving { pointer-events: none; } .sheet.leaving { z-index: 19; } /* 곧바로 새 시트가 열리면 그 아래로 */ .sheet.leaving .sheet-panel { animation: sink .18s cubic-bezier(0.4, 0, 1, 1) forwards; } .sheet.leaving .sheet-dim { animation: fade-out .18s ease-in forwards; } @keyframes sink { to { transform: translateY(100%); } } @keyframes fade-out { to { opacity: 0; } } /* 상세 화면: 오른쪽에서 밀려 들어오고(push), 돌아갈 때 오른쪽으로 빠진다(pop). 위 막대와 탭은 제자리 */ .topbar { view-transition-name: topbar; } .tabbar { view-transition-name: tabbar; } ::view-transition-group(topbar), ::view-transition-group(tabbar), ::view-transition-old(topbar), ::view-transition-new(topbar), ::view-transition-old(tabbar), ::view-transition-new(tabbar) { animation: none; } ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--push); } [data-nav="push"]::view-transition-old(root) { animation-name: nav-behind; } [data-nav="push"]::view-transition-new(root) { animation-name: nav-from-right; box-shadow: 0 0 24px rgba(0, 0, 0, 0.12); } [data-nav="pop"]::view-transition-old(root) { animation-name: nav-to-right; z-index: 1; box-shadow: 0 0 24px rgba(0, 0, 0, 0.12); } [data-nav="pop"]::view-transition-new(root) { animation-name: nav-from-behind; } @keyframes nav-from-right { from { transform: translateX(100%); } } @keyframes nav-behind { to { transform: translateX(-30%); filter: brightness(0.92); } } @keyframes nav-to-right { to { transform: translateX(100%); } } @keyframes nav-from-behind { from { transform: translateX(-30%); filter: brightness(0.92); } } @media (prefers-reduced-motion: reduce) { *::before { animation: none !important; } ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } } /* 성경 본문: 줄 간격 1.6, 한글 자간을 조금 좁혀 한 줄에 더 담는다 */ .verse .body, .verse-text, .list .snippet, .verse .compare { letter-spacing: -0.01em; } .verse-text, .verse .compare { line-height: 1.6; } .lead-verse .verse-text { line-height: 1.55; } /* AI 해석: 장 막대의 'AI 해석' 단추로 본문 대신 펼친다. 보고서처럼 장 요약(사이에 지도) 다음에 절마다 자세히, 그림은 그 절 안에 */ #view-bible.ai-mode #chapter-view, #view-bible.ai-mode #read-area, #view-bible.ai-mode #tap-hint, #view-bible.ai-mode #search-recent { display: none; } /* 해석을 펴면 검색칸은 위로 부드럽게 접어 넣는다 */ #ai-area { margin: 12px 0 24px; } #ai-area[hidden] { display: none; } .ai-overview { background: var(--card); border-radius: var(--radius-lg); padding: 20px 18px 6px; margin: 12px 0 28px; } .ai-overview h3 { font-size: 18px; margin: 0 0 12px; } .ai-overview > p { font-family: var(--reading); font-weight: 400; font-size: calc(16px * var(--fs-scale)); line-height: 1.75; margin: 0 0 14px; color: var(--text); } .ai-detail-title { font-size: 18px; margin: 0 0 4px; } .ai-figure { margin: 4px 0 14px; } .ai-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); background: var(--border); } .ai-figure figcaption, .ai-map figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--sub); } .ai-figure figcaption small, .ai-map figcaption small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); } .ai-figure figcaption a { color: inherit; text-decoration: none; } .ai-map { margin: 4px 0 18px; } .ai-map figcaption strong { color: var(--text); font-weight: 700; } .ai-map-art { aspect-ratio: 640 / 517; border-radius: var(--radius-md); overflow: hidden; background: #cfe4f9; } .ai-map-art:has(svg) { aspect-ratio: auto; } /* 키가 큰 지도도 자르지 않는다 */ .ai-map-art { position: relative; cursor: pointer; } /* 누르면 크게: 오른쪽 위 작은 단추 모양 (지도 전체가 단추다) */ .ai-map-open { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 9px; background: var(--card); color: var(--sub); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); pointer-events: none; } .ai-map-open svg { width: 16px; height: 16px; } .ai-map-art svg { display: block; width: 100%; height: auto; } /* 연표: 시대 아홉 개를 점으로, 이 장의 시대만 파랑 */ .ai-timeline { margin: 0 0 18px; } .tl-now { margin: 0 0 8px; font-size: 13px; color: var(--muted); white-space: nowrap; } .tl-now strong { color: var(--text); font-weight: 700; } .tl-now span { display: inline-block; } /* 글자의 x 지점이 점 위에 오게, 양옆 빈칸을 x : 1-x로 나눈다. 글자가 칸 밖으로 넘치면 화면이 옆으로 밀린다 */ .tl-now.mid { display: flex; padding: 0 6px; } .tl-now.mid::before { content: ""; flex-grow: var(--x); } .tl-now.mid::after { content: ""; flex-grow: calc(1 - var(--x)); } .tl-now.end { text-align: right; } .tl-track { position: relative; display: flex; justify-content: space-between; align-items: center; height: 12px; } .tl-track::before { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; height: 2px; border-radius: 1px; background: var(--border); } .tl-track i { position: relative; width: 12px; height: 12px; display: grid; place-items: center; } .tl-track i::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grey300); } .tl-track i.on::after { width: 12px; height: 12px; background: var(--primary); } .tl-ends { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 11px; color: var(--muted); } /* 표, 족보, 구조도 */ .ai-x { margin: 4px 0 18px; } .ai-x h4 { font-size: 15px; margin: 0 0 6px; } .ai-x-cap { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--sub); } /* 해석 속 그림: 흰 카드(장 요약) 안이면 회색 칸, 회색 바탕(절 해석)이면 흰 칸. x-on은 칸 위에 얹는 것, x-ctl은 칸 밖의 단추 */ #ai-area { --x-bg: var(--card); --x-on: var(--fill); --x-ctl: var(--card); } .ai-overview { --x-bg: var(--fill); --x-on: var(--card); --x-ctl: var(--fill); } .ai-x-art .st-nav { background: var(--x-on); } /* 한 구간씩 넘기는 막대 (지도, 단계 구조도) */ .st-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; } .st-text { flex: 1; min-width: 0; display: grid; line-height: 1.4; } .st-no { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; } .st-title { font-size: 15px; font-weight: 700; color: var(--text); word-break: keep-all; } .st-ref { font-size: 13px; font-weight: 600; color: var(--accent); } .st-nav { flex: none; width: 40px; height: 40px; min-height: 0; border-radius: 12px; background: var(--x-ctl); color: var(--text); display: grid; place-items: center; padding: 0; } .st-nav svg { width: 18px; height: 18px; } .st-nav:disabled { opacity: .35; } .st-dots { display: flex; gap: 4px; margin-top: 10px; } .st-dots i { flex: 1; height: 3px; border-radius: 2px; background: var(--border); transition: background .2s; } .st-dots i.done { background: var(--grey300); } .st-dots i.on { background: var(--primary); } .ai-map-steps:empty { display: none; } /* 그림 칸 */ .ai-x-cap.top { margin: 0 0 10px; } .ai-x-art { background: var(--x-bg); border-radius: var(--radius-md); padding: 14px; } .ai-table table { width: 100%; border-collapse: collapse; font-size: calc(14px * var(--fs-scale)); } .ai-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--border); } .ai-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.45; word-break: keep-all; color: var(--sub); } .ai-table td:last-child, .ai-table th:last-child { padding-right: 0; } .ai-table td.n { width: 22px; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; } .ai-table td.n + td { color: var(--text); font-weight: 700; white-space: nowrap; } .ai-table td.n + td + td { white-space: nowrap; font-size: 13px; font-variant-numeric: tabular-nums; } .ai-tree ol { list-style: none; margin: 0; padding: 0; } .ai-tree li { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0 7px 22px; font-size: calc(15px * var(--fs-scale)); font-weight: 600; } .ai-tree li::before { content: ""; position: absolute; z-index: 1; left: 2px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--grey300); } .ai-tree li::after { content: ""; position: absolute; left: 6px; top: 50%; height: 100%; width: 2px; background: var(--border); } .ai-tree li:last-child::after { display: none; } .ai-tree.has-branch li:last-child::after { display: block; height: calc(50% + 24px); } .ai-tree li small { font-size: 13px; font-weight: 500; color: var(--muted); text-align: right; } .ai-tree li.mark::before { background: var(--primary); box-shadow: none; } .ai-tree li.mark small { color: var(--accent); } .tr-branch { position: relative; display: flex; gap: 6px; margin: 4px 0 0 22px; } .tr-branch::before { content: ""; position: absolute; left: -16px; top: 50%; width: 12px; height: 2px; background: var(--border); } .tr-branch span { background: var(--fill); border-radius: 8px; padding: 5px 12px; font-size: 14px; font-weight: 600; } .ai-diagram-art { aspect-ratio: 640 / 360; border-radius: var(--radius-md); overflow: hidden; background: var(--fill); } .ai-diagram-art svg { display: block; width: 100%; height: auto; } .ai-diagram-art text { font-family: inherit; } .dg-court { fill: var(--card); } .dg-wall { fill: none; stroke: var(--grey300); stroke-width: 3; } .dg-holy { fill: var(--accent-soft); stroke: var(--primary); stroke-width: 2.5; } .dg-mhp { fill: color-mix(in srgb, var(--primary) 20%, var(--card)); stroke: var(--primary); stroke-width: 2.5; } .dg-veil { stroke: var(--primary); stroke-width: 6; } .dg-item { fill: var(--sub); } .dg-room { font-size: 30px; font-weight: 700; fill: var(--text); } .dg-label { font-size: 26px; font-weight: 600; fill: var(--text); } .dg-sub { font-size: 22px; font-weight: 600; fill: var(--muted); } .dg-accent { font-size: 26px; font-weight: 700; fill: var(--accent); } @media (prefers-color-scheme: dark) { .tl-track i::after, .dg-wall { background: #3a3e46; stroke: #3a3e46; } .ai-tree li::before { box-shadow: inset 0 0 0 2px #3a3e46; } } @media (prefers-color-scheme: dark) { .ai-map-art, .book-map { --map-sea: #1b2c40; --map-land: #23252b; --map-coast: #3a5675; --map-text: #f2f4f6; --map-halo: #23252b; --map-sub: #9aa3ad; --map-route: #3d9bf2; --map-route-soft: #2c5e8f; --map-sea-text: #4f7aa6; background: #1b2c40; } .ai-map-open, .book-map-go { box-shadow: none; } .book-map { --map-land: var(--ground); --map-halo: var(--ground); } /* 회색 카드 위에서 땅이 카드와 섞이지 않게 */ } /* ── 지도 페이지 (web/mappage.js): 오른쪽에서 밀려 들어오는 큰 지도 ── */ .map-page { position: fixed; inset: 0; z-index: 12; overflow: hidden; background: var(--map-sea); touch-action: none; /* 장 지도(atlas-map)와 같은 색 */ --map-sea: #d5e6f7; --map-land: #fafbfc; --map-coast: #a9c3dd; --map-lake: #c3dcf4; --map-river: #93bfe6; --map-text: #191f28; --map-halo: #ffffff; --map-sub: #4e5968; --map-route: #1f88e5; --map-route-soft: #7db6ec; --map-sea-text: #4a86c0; --map-dot: #8b95a1; --map-mk: #333d4b; --map-ctx: #8b95a1; --map-pill: #1976d2; --map-road: #c9b49a; --map-road-text: #8a7259; --map-town: rgba(138, 114, 89, .22); --map-town-line: rgba(138, 114, 89, .75); --map-blue: #1f88e5; --map-orange: #f08a24; --map-green: #14a38b; --map-brown: #9a5b46; --map-grey: #4e5968; --map-border: #8b95a1; --map-nation: #333d4b; --map-note: #6b7684; box-shadow: 0 0 24px rgba(0, 0, 0, 0.12); } @media (prefers-color-scheme: dark) { .map-page { --map-sea: #1b2c40; --map-land: #24262c; --map-coast: #3a5675; --map-lake: #223a54; --map-river: #3f6b94; --map-text: #f2f4f6; --map-halo: #23252b; --map-sub: #c3c9d0; --map-route: #3d9bf2; --map-route-soft: #2c5e8f; --map-sea-text: #78a6d4; --map-dot: #6b7684; --map-mk: #e5e8eb; --map-ctx: #8b95a1; --map-pill: #2b7fd6; --map-road: #6e5f4e; --map-road-text: #b09a80; --map-town: rgba(176, 154, 128, .2); --map-town-line: rgba(176, 154, 128, .7); --map-blue: #3d9bf2; --map-orange: #f59a3c; --map-green: #36c2a6; --map-brown: #c4836b; --map-grey: #c3c9d0; --map-border: #79828d; --map-nation: #dfe3e8; --map-note: #a3abb5; } } .mp-nav { position: absolute; inset: 0 0 auto; z-index: 3; padding-top: env(safe-area-inset-top); height: calc(48px + env(safe-area-inset-top)); display: flex; align-items: center; padding-left: 4px; background: color-mix(in srgb, var(--ground) 86%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); } .mp-nav h2 { position: absolute; left: 50%; bottom: 12px; pointer-events: none; transform: translateX(-50%); margin: 0; font-size: 17px; font-weight: 700; } .mp-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; overflow: visible; transform-origin: 0 0; } .mp-map.mp-moving { will-change: transform; } /* 손가락으로 옮기는 동안은 그려 둔 그림을 합성만 한다 (mappage.js setLive) */ /* 글자는 바탕색 테두리(halo)를 먼저 그려 강, 해안선 위에서도 읽힌다. 크기와 테 굵기는 mappage.js가 화면 px로 맞춘다 */ .mp-map text { font-family: var(--font); paint-order: stroke; stroke-linejoin: round; } .mp-sea { fill: var(--map-sea-text); stroke: var(--map-sea); font-weight: 600; letter-spacing: .04em; } .mp-lake { fill: var(--map-sea-text); stroke: var(--map-sea); font-weight: 600; letter-spacing: .02em; } .mp-region { fill: var(--map-note); stroke: var(--map-halo); font-weight: 600; letter-spacing: .02em; } .mp-map .mp-pl .mp-ref rect { fill: var(--map-pill); } .mp-map .mp-pl .mp-ref text { fill: #fff; stroke: none; font-weight: 700; } /* 장:절 꼬리표 */ .mp-unit { fill: var(--map-note); stroke: var(--map-halo); paint-order: stroke; stroke-linejoin: round; font-weight: 700; letter-spacing: .02em; } .mp-unit.main { fill: var(--map-nation); font-weight: 800; } .mp-relief image { transition: opacity .3s ease-out; } /* 뼈대: 옛 큰길은 가는 갈색 선, 큰 도시는 작은 진한 점 */ .mp-roads path { stroke: var(--map-road); stroke-width: 1.3; } /* 로마 길은 그물처럼 촘촘해서 더 가늘고 옅게 (도시와 사건 길이 먼저 보이게) */ .mp-roads-nt path { stroke-width: 0.9; stroke-opacity: .6; } .mp-towns path { fill: var(--map-town); stroke: var(--map-town-line); stroke-width: 1.2; stroke-linejoin: round; } .mp-road { fill: var(--map-road-text); stroke: var(--map-halo); font-weight: 600; letter-spacing: .02em; } .mp-pl.mp-city > circle:not(.mp-hit) { fill: var(--map-mk); stroke: var(--map-halo); } .mp-short tspan { display: none; } /* 자리가 모자라 설명 줄을 뺀 지명 */ .mp-unit-note, .mp-pnote { fill: var(--map-note); font-weight: 500; } .mp-unit-note { stroke: var(--map-halo); paint-order: stroke; stroke-linejoin: round; } .mp-pl { cursor: pointer; } .mp-pl .mp-hit { fill: transparent; stroke: none; } .mp-pl > circle:not(.mp-hit) { fill: var(--map-land); stroke: var(--map-dot); } .mp-pl text { fill: var(--map-sub); font-weight: 600; paint-order: stroke; stroke: var(--map-halo); stroke-linejoin: round; } .mp-pl.here > circle:not(.mp-hit) { fill: var(--map-text); stroke: var(--map-halo); } /* 장 지도처럼 진한 점에 흰 테 */ .mp-pl.here text { fill: var(--map-text); font-weight: 700; } /* 카메라가 옮겨 가는 동안 빠지는 글자와 점은 흐려지고, 새로 보일 것은 떠오른다 (튀어나오거나 사라지지 않게) */ .mp-map text, .mp-pl { transition: opacity .22s ease-out; } .mp-map .mp-off { opacity: 0; visibility: hidden; transition: opacity .16s ease-in, visibility 0s .16s; } @media (prefers-reduced-motion: reduce) { .mp-map text, .mp-pl, .mp-map .mp-off { transition: none; } } /* 위치 지도: 확대했을 때만 오른쪽 위에 */ .mp-mini { position: absolute; top: calc(60px + env(safe-area-inset-top)); right: 12px; z-index: 2; width: 104px; border-radius: 12px; overflow: hidden; background: var(--map-sea); box-shadow: 0 0 0 2px var(--card), 0 2px 10px rgba(0, 0, 0, 0.08); opacity: 0; transform: scale(.92); transition: opacity .18s, transform .22s var(--spring); pointer-events: none; } .mp-mini.on { opacity: 1; transform: none; } .mp-mini svg { display: block; width: 100%; height: auto; } .mp-hint { position: absolute; left: 50%; top: calc(62px + env(safe-area-inset-top)); z-index: 2; transform: translateX(-50%); margin: 0; background: var(--card); color: var(--sub); font-size: 13px; padding: 6px 12px; border-radius: 99px; white-space: nowrap; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); transition: opacity .3s; pointer-events: none; } .mp-hint.gone { opacity: 0; } .mp-loading { position: absolute; top: 45%; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 14px; } /* 아래 판: 시대 고르기와 그 시대의 일들, 일을 고르면 그 길을 한 구간씩 */ .mp-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: var(--card); border-radius: 20px 20px 0 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06); --x-ctl: var(--fill); } .mp-panel [hidden] { display: none; } .mp-era, .mp-ev-head { display: flex; align-items: center; gap: 8px; padding: 0 12px; } .mp-era-text { flex: 1; min-width: 0; text-align: center; display: grid; } .mp-era-text strong { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; } .mp-era-text span { font-size: 13px; color: var(--muted); } .mp-nav-btn { flex: none; width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 12px; background: var(--fill); color: var(--text); display: grid; place-items: center; } .mp-nav-btn svg { width: 18px; height: 18px; } .mp-nav-btn:disabled { opacity: .35; } /* 시대 막대: 칸마다 같은 폭 (연도가 아니라 담긴 일의 양으로 나눈 칸) */ .mp-track { display: flex; gap: 3px; margin: 6px 16px 0; } .mp-track button { flex: 1; height: 22px; min-height: 0; padding: 0; background: none; border-radius: 0; position: relative; } .mp-track button::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 6px; border-radius: 3px; background: var(--border); } .mp-track button.on::before { background: var(--primary); } .mp-track button::after { display: none; } .mp-ends { display: flex; justify-content: space-between; margin: 0 16px; font-size: 11px; color: var(--muted); } .mp-events { display: flex; align-items: flex-start; gap: 8px; overflow-x: auto; padding: 8px 16px 2px; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x; } .mp-events::-webkit-scrollbar { display: none; } .mp-ev { flex: none; display: grid; gap: 1px; text-align: left; background: var(--fill); border-radius: 14px; padding: 8px 12px; max-width: 220px; min-height: 0; } .mp-ev b { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 한 줄로: 긴 제목 하나 때문에 판 전체가 높아지지 않게 */ .mp-ev span { font-size: 12px; font-weight: 500; color: var(--muted); } .mp-ev.cur { background: var(--accent-soft); } .mp-ev.cur b { color: var(--accent); } .mp-ev-back { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 8px 0 2px; background: none; color: var(--accent); font-size: 14px; font-weight: 600; } .mp-ev-back svg { width: 18px; height: 18px; flex: none; } .mp-ev-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; } .mp-read { margin-left: auto; min-height: 36px; padding: 0 12px; border-radius: 10px; background: var(--fill); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; } .mp-read.cur { background: none; color: var(--muted); pointer-events: none; } .mp-ev-title { margin: 6px 16px 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; } .mp-stepper { padding: 0 12px; } .mp-stepper:empty { display: none; } .mp-close { min-height: 44px; padding: 0 12px; background: none; color: var(--accent); font-size: 16px; font-weight: 500; } .mp-close:active { transform: none; opacity: .5; } /* 장소 시트: 책마다 한 줄, 장은 작은 칩 */ .mp-count { margin: 0 0 12px; font-size: 13px; color: var(--muted); } .mp-chs { display: grid; gap: 12px; } .mp-book { display: grid; gap: 6px; } .mp-book > span { font-size: 14px; font-weight: 700; color: var(--sub); } .mp-book > div { display: flex; flex-wrap: wrap; gap: 6px; } .mp-book button { min-width: 44px; min-height: 36px; padding: 0 10px; border-radius: 10px; background: var(--fill); color: var(--text); font-size: 14px; font-weight: 600; } .mp-book button.cur { background: var(--accent-soft); color: var(--accent); } .mp-credit { margin: 16px 0 0; font-size: 11px; color: var(--muted); } .mp-credit a { color: inherit; } /* 넓은 화면(아이패드, 컴퓨터): 글은 읽기 좋은 폭의 칸에 두고, 홈과 내 페이지는 카드를 두 줄로 놓는다. 시트는 iOS 폼 시트처럼 화면 가운데에. 높이 조건은 가로로 눕힌 아이폰(Safari)을 빼려는 것이다. 아이폰 앱은 세로로 잠겨 있어서 이 규칙에 걸리지 않는다. 아이패드 창을 좁히면 이 규칙이 풀려 아이폰 모양이 된다 */ @media (min-width: 700px) and (min-height: 500px) { :root { --pad: 28px; --col: 1000px; --read: 680px; } #view-bible, #view-comfort, #view-pray { max-width: var(--read); margin-inline: auto; } #view-login { max-width: 480px; margin-inline: auto; } .native-tabs .bible-bar { position: relative; } /* '위로 결과로 돌아가기'가 칸 오른쪽에 붙게 */ /* 홈: 왼쪽에 오늘의 묵상과 읽기, 오른쪽에 오늘의 한 구절 */ #view-home.active { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: 16px; align-items: start; } #view-home .greeting { grid-column: 1 / -1; } #qt-read { grid-column: 1; } #view-home .daily { grid-column: 2; grid-row: 2 / 4; align-self: stretch; margin-top: 0; } /* 내 페이지: 왼쪽에 프로필과 기록, 오른쪽에 알림과 안내. 마지막 줄이 왼쪽 칸의 남는 높이를 받아 오른쪽 칸이 벌어지지 않는다 */ #view-me.active { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto) 1fr; column-gap: 16px; align-items: start; } #view-me.active > * { grid-column: 2; } #view-me.active > #me-title { grid-column: 1 / -1; } #view-me.active > #me-out, #view-me.active > #me-in { grid-column: 1; grid-row: 2 / -1; } #view-me > .sub-title { margin-top: 0; } #view-me .about.help { margin: 12px 0 0; } /* 시트: 화면 가운데에 떠 있는 폼 시트 */ .sheet-panel { top: 0; bottom: 0; margin: auto; width: 560px; max-width: calc(100% - 48px); height: fit-content; max-height: min(82vh, 760px); border-radius: 24px; padding: 20px var(--pad) 24px; animation-name: rise-far; } .sheet.leaving .sheet-panel { animation-name: sink-far; } .native-sheets .sheet-panel { animation: none; } .native-sheets .sheet-panel::before { display: none; } .pick-grid.books { grid-template-columns: repeat(4, 1fr); } .pick-grid.nums { grid-template-columns: repeat(6, 1fr); } .verse-bar { max-width: var(--read); } } @keyframes rise-far { from { transform: translateY(100vh); } } @keyframes sink-far { to { transform: translateY(100vh); } } /* 이야기 그림(story)과 바탕 그림: 2D는 SVG, 3D는 /viz3d.js. 오른쪽 위 분할 단추로 바꾼다 */ .ai-x.has-seg { position: relative; } .ai-x.has-seg h4 { padding-right: 96px; } .sy-seg { position: absolute; top: -3px; right: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--x-bg); border-radius: 9px; padding: 2px; } .ai-x .sy-seg button { position: relative; z-index: 1; border: 0; background: none; box-shadow: none; min-height: 0; height: auto; border-radius: 7px; font-size: 13px; font-weight: 600; line-height: 1; color: var(--text); padding: 7px 11px; min-width: 42px; } .sy-seg i { position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); border-radius: 7px; background: var(--x-on); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); transition: transform .26s cubic-bezier(.3, .7, .2, 1); } .sy-seg[data-m="3d"] i { transform: translateX(100%); } .sy-stage { position: relative; } .sy-layer { transition: opacity .22s ease; } .sy-layer.off { position: absolute; inset: 0; opacity: 0; pointer-events: none; } .sy-3d { min-height: 240px; aspect-ratio: 4 / 3.4; border-radius: 10px; overflow: hidden; background: #2a2230; position: relative; } .sy-3d.off { min-height: 0; } .sy-3d canvas { display: block; width: 100% !important; height: 100% !important; } .sy-loading { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .85); font-size: 13px; } .sy-tag { position: absolute; left: 0; top: 0; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(10, 16, 32, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .4s; } .sy-tag.on { opacity: 1; } .sy-tag.say { background: rgba(255, 255, 255, .92); color: #191f28; } .sy-svg { display: block; width: 100%; height: auto; overflow: visible; } .sy-svg text { font-size: 12px; font-weight: 600; fill: var(--sub); } .sy-svg .sy-name, .sy-svg .pl-room { font-size: 13px; font-weight: 700; fill: var(--sub); } .sy-svg .sy-who-name { font-size: 11.5px; fill: var(--muted); transition: x 1.3s cubic-bezier(.3, .7, .3, 1), y 1.3s cubic-bezier(.3, .7, .3, 1); } .sy-shape { fill: var(--x-on); stroke: var(--grey300); stroke-width: 1.5; transition: fill .3s, stroke .3s; } .sy-water .sy-shape { fill: color-mix(in srgb, var(--primary) 18%, var(--x-on)); } .sy-mountain .sy-shape { fill: color-mix(in srgb, var(--grey300) 60%, var(--x-on)); } .sy-altar .sy-shape { fill: var(--grey300); } .sy-joint { stroke: var(--x-on); stroke-width: 1.2; } .sy-place.hot .sy-shape { fill: color-mix(in srgb, var(--primary) 16%, var(--x-on)); stroke: var(--primary); } .sy-place, .sy-actor, .pl-thing { transition: opacity .4s; } .gone { opacity: 0; pointer-events: none; } .sy-m { transition: transform 1.3s cubic-bezier(.3, .7, .3, 1); } .sy-m circle { fill: var(--primary); stroke: var(--x-on); stroke-width: 1.5; transition: fill .3s; } .sy-t-ally .sy-m circle { fill: var(--sub); } .sy-t-enemy .sy-m circle, .sy-t-crowd .sy-m circle { fill: var(--grey500); } .sy-actor.hot .sy-m circle { fill: var(--primary); } .sy-actor.blind .sy-m circle { fill: none; stroke: var(--grey500); stroke-dasharray: 2 2; } .sy-actor.bow .sy-m circle { transform: scale(1, .6) translateY(4px); transition: transform .5s; } .sy-actor.down .sy-m circle { transform: scale(1.25, .4) translateY(6px); fill: var(--grey500); stroke: none; transition: transform .5s, fill .5s; } .sy-stair { stroke: var(--grey500); stroke-width: 1; } .sy-wall { stroke: var(--grey300); stroke-width: 1.5; } .sy-fire { fill: #f08a24; transform-box: fill-box; transform-origin: bottom; } .sy-fire.pop { animation: sy-pop .6s cubic-bezier(.3, .7, .3, 1.4); } .sy-light { fill: color-mix(in srgb, #f6c445 45%, transparent); } .sy-smoke { fill: var(--grey300); opacity: .7; } .sy-water .sy-ditch { fill: none; stroke: color-mix(in srgb, var(--primary) 55%, var(--x-on)); stroke-width: 5; } .sy-water .sy-wet { fill: color-mix(in srgb, var(--primary) 30%, transparent); } .sy-water.dry, .sy-fx.dry { animation: sy-dry 1.2s .5s ease-in forwards; } .sy-fire.fall { animation: sy-fall .7s cubic-bezier(.5, 0, .6, 1.3); } @keyframes sy-dry { to { opacity: 0; } } @keyframes sy-fall { from { transform: translateY(-90px) scale(.5, 1.6); opacity: 0; } 30% { opacity: 1; } } .sy-wave { fill: none; stroke: color-mix(in srgb, var(--primary) 70%, var(--x-on)); stroke-width: 2.5; stroke-linecap: round; animation: sy-wave .9s ease-in-out infinite alternate; } @keyframes sy-wave { to { transform: translate(9px, -3px); } } .sy-hit { fill: var(--grey700, #4e5968); animation: sy-hit .9s ease-in infinite; } .sy-hit-line { stroke: var(--grey300); stroke-width: 1; stroke-dasharray: 2 4; } @keyframes sy-hit { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)); opacity: 1; } } .sy-rain { stroke: color-mix(in srgb, var(--primary) 60%, var(--x-on)); stroke-width: 1.5; stroke-linecap: round; } .sy-bub { fill: var(--x-on); stroke: var(--grey300); stroke-width: 1.2; } .sy-svg .sy-say-t { font-size: 12.5px; font-weight: 700; fill: var(--text); } .sy-say.pop { animation: sy-pop .35s cubic-bezier(.3, .7, .3, 1.3); transform-box: fill-box; transform-origin: bottom; } @keyframes sy-pop { from { transform: scale(.6); opacity: 0; } } .sy-svg.still *, .sy-svg.still { transition: none !important; animation: none !important; } .pl-area { fill: var(--x-on); stroke: var(--grey300); stroke-width: 1.5; transition: fill .3s; } .pl-in { fill: var(--x-bg); stroke: var(--grey300); stroke-width: 1.5; transition: fill .3s; } .pl-strip { fill: var(--grey200); transition: fill .3s; } .pl-line { fill: none; stroke: var(--grey500); stroke-width: 1.5; stroke-dasharray: 4 3; transition: stroke .3s; } .pl-veil { stroke: var(--grey500); stroke-width: 1.5; stroke-dasharray: 3 3; } .pl-thing rect, .pl-thing circle { fill: var(--grey300); transition: fill .3s; } .pl-thing { transition: transform 1.3s cubic-bezier(.3, .7, .3, 1), opacity .4s; } .hot.pl-area, .hot.pl-in, .hot.pl-strip { fill: color-mix(in srgb, var(--primary) 18%, var(--x-on)); } .hot.pl-line { stroke: var(--primary); stroke-width: 2.5; } .pl-thing.hot rect, .pl-thing.hot circle { fill: var(--primary); } .pl-trail { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .35; } .th-svg { aspect-ratio: 300 / 270; } .th-svg text { font-size: 12px; } .th-svg .halo { paint-order: stroke; stroke: var(--x-bg); stroke-width: 4px; stroke-linejoin: round; } @media (prefers-reduced-motion: reduce) { .sy-m, .pl-thing, .sy-svg .sy-who-name { transition: none; } .sy-fire.pop, .sy-fire.fall, .sy-say.pop { animation: none; } .sy-water.dry, .sy-fx.dry { animation: none; opacity: 0; } .sy-wave, .sy-hit { animation: none; } .sy-hit { transform: translate(var(--dx), var(--dy)); } } .sy-hint { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: rgba(255, 255, 255, .85); pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); } .sy-tag.sy-pl { background: rgba(255, 255, 255, .82); color: #191f28; } .sy-tag.sy-who { font-size: 11px; padding: 2px 8px; } .sy-t-fire .sy-m circle { fill: #f08a24; stroke: color-mix(in srgb, #f08a24 40%, var(--x-on)); } /* 본문 절 아래 '그림 보기' 단추 */ .verse .fig-open { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 2px; max-width: 100%; min-height: 34px; padding: 0 12px; border-radius: 17px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; } .verse .fig-open svg { width: 12px; height: 12px; flex: none; } .verse .fig-open span { font-weight: 500; color: var(--sub); max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fig-sheet { --x-bg: var(--fill); --x-on: var(--card); --x-ctl: var(--fill); padding-bottom: 8px; } .fig-sheet .ai-x { margin: 0; } /* 위에 떠 있는 칸과 단추는 모두 같은 유리로: 대화 입력칸, 빠른 답, 성경 검색칸, 본문과 해석 전환, 구절 도구 */ .chat-input, .chat-more, .bible-mode, .verse-bar, .segmented, .pager button, .chip, button.sm, .more-verses, .verse-tools button, .toast, .sheet-head .icon-btn { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); border: 1px solid var(--glass-edge); box-shadow: 0 4px 16px rgba(25, 31, 40, 0.08), inset 0 1px 0 var(--glass-edge); } .bible-mode button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 4px rgba(25, 31, 40, 0.08); } /* 카드 제목 옆의 글자 단추(성경통독 '계획 바꾸기')는 유리 없이 글자만 */ .read-head button.sm { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; } /* 잡다한 단추도 유리로: 칩과 단추는 알약, 알림(토스트)은 글자를 진하게 */ .pager button, .more-verses { border-radius: 999px; } .toast { color: var(--text); border-radius: 999px; padding: 12px 20px; } .segmented { border-radius: 999px; } .segmented button { border-radius: 999px; } /* 떠오르는 기도: 휴대폰 한 화면에 맞춘 카드. 안에서 기도 제목이 천천히 올라가고 손으로 밀어 볼 수 있다 */ .pray-stage { position: relative; height: max(320px, calc(100dvh - var(--stage-top, 300px) - var(--dock-bottom) - 12px)); margin: 0; border-radius: 24px; overflow: hidden; background: linear-gradient(var(--page), var(--accent-soft)); } .pray-stage[hidden] { display: none; } .pray-sky { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; scrollbar-width: none; padding: 70% 14px 84px; -webkit-mask-image: linear-gradient(transparent, #000 18%); mask-image: linear-gradient(transparent, #000 18%); } .pray-sky::-webkit-scrollbar { display: none; } .float-prayer { flex-shrink: 0; align-self: flex-start; max-width: 78%; min-height: 0; padding: 10px 14px; border-radius: 18px; text-align: left; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--sub); transition: color .2s, opacity .2s, transform .2s var(--spring); } .float-prayer.right { align-self: flex-end; } /* 누른 기도는 붙잡힌다: 그 기도만 살짝 떠오르고 나머지는 조금 흐려진다 */ .float-prayer.is-pressed { transform: scale(0.98); } .pray-sky.holding .float-prayer { opacity: .45; } /* 붙잡은 동안은 아래 단추 막대 뒤가 어지럽지 않게 아래쪽도 흐리게 지운다 */ .pray-sky.holding { -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 calc(100% - 96px), transparent calc(100% - 24px)); mask-image: linear-gradient(transparent, #000 18%, #000 calc(100% - 96px), transparent calc(100% - 24px)); } .pray-sky.holding .float-prayer[aria-pressed="true"] { opacity: 1; color: var(--text); transform: scale(1.03); box-shadow: 0 6px 20px rgba(25, 31, 40, 0.12); } #pray-in.stage-on .pray-tabs { margin-bottom: 12px; } /* 붙잡았을 때만 아래에서 올라오는 단추 막대 (0.22초), 놓으면 0.18초에 내려간다 */ .stage-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; opacity: 0; transform: translateY(12px); visibility: hidden; transition: opacity .18s ease-out, transform .18s ease-out, visibility 0s .18s; } .stage-bar.on { opacity: 1; transform: none; visibility: visible; transition: opacity .16s ease-out, transform .22s var(--spring); } #stage-menu { width: 48px; height: 48px; } #stage-menu[hidden] { display: none; } #stage-pray { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: 999px; font-size: 15px; } @media (prefers-reduced-motion: reduce) { .stage-bar, .stage-bar.on, .float-prayer { transition: none; } } /* 붙잡은 단추가 파란 단추 하나가 되게 아래 로그인 단추는 흐리게 */ #pray-out .cta { transition: opacity .2s; } #view-pray.stage-holding #pray-out .cta { opacity: .4; } #stage-pray svg { width: 18px; height: 18px; fill: none; } #pray-in.stage-on #pray-list, #pray-in.stage-on #pray-more { display: none; } /* 로그인 전: 예시 기도만 떠오르고, 카드 아래 로그인 단추가 늘 보이게 그만큼 줄인다. 신고할 글이 없어 메뉴는 뺀다 */ .pray-stage.out { height: max(280px, calc(100dvh - var(--stage-top, 300px) - var(--dock-bottom) - 80px)); } #pray-out .cta { margin-top: 12px; } .hand-float { position: fixed; z-index: 20; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--primary); pointer-events: none; animation: hand-up 1.4s ease-out forwards; } .hand-float svg { width: 18px; height: 18px; } @keyframes hand-up { from { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-170px) scale(1); opacity: 0; } } /* 시트(흰 바탕) 안의 둘 중 고르기: 고른 쪽을 회색으로 */ #sheet .segmented { background: var(--card); } #sheet .segmented button[aria-pressed="true"] { background: var(--border); color: var(--text); box-shadow: none; } /* ── 머무는 곳 (web/places.js): 묵상 탭 맨 위의 그림 카드 줄, 누르면 그림과 소리가 화면을 채운다 ── */ .places-title { font-size: 18px; font-weight: 700; margin: 4px 0 8px; } /* 캐러셀: 가운데 카드가 크고 양옆은 작고 흐리다. 크기와 투명도는 넘기는 동안 web/places.js가 정한다 */ .place-row { position: relative; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: auto; margin: 0 calc(-1 * var(--pad)); padding: 6px 0 12px; scrollbar-width: none; overscroll-behavior-x: contain; } .place-row::-webkit-scrollbar { display: none; } .place-card { flex: 0 0 252px; height: 330px; scroll-snap-align: center; scroll-snap-stop: always; min-height: 0; padding: 0; border-radius: 24px; overflow: hidden; background: var(--border); transform-origin: center; will-change: transform, opacity; } .place-card img { display: block; width: 100%; height: 100%; object-fit: cover; } .place-cap { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 4px; } .place-cap .txt { display: grid; gap: 2px; transition: opacity .12s ease-out; } .place-cap .txt.swap { opacity: 0; } .place-cap strong { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; } .place-cap span { color: var(--muted); font-size: 14px; font-weight: 500; } .place-cap-play { display: grid; place-items: center; width: 56px; height: 56px; min-height: 0; margin-top: 12px; padding: 0; border-radius: 50%; background: var(--text); color: var(--card); } .place-cap-play svg { width: 24px; height: 24px; } .place-layer { position: fixed; inset: 0; z-index: 15; overflow: hidden; background: #0d0e10; color: #fff; animation: rise .28s var(--spring); touch-action: pan-y; } .place-layer[hidden] { display: none; } .place-layer.leaving { animation: sink .18s cubic-bezier(0.4, 0, 1, 1) forwards; } .native-sheets .place-layer { animation: none; } /* 그림은 아주 천천히 다가오며 옆으로 흐른다 (동작 줄이기를 켜면 멈춘다) */ .place-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: drift 50s ease-in-out infinite alternate; } @keyframes drift { to { transform: scale(1.16) translate3d(-2%, -1.5%, 0); } } .place-layer::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(8, 9, 12, 0.5); } .place-body { position: relative; z-index: 2; height: 100%; max-width: 560px; margin: 0 auto; overflow-y: auto; display: flex; flex-direction: column; padding: calc(8px + env(safe-area-inset-top)) var(--pad) calc(16px + env(safe-area-inset-bottom)); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); } .place-layer button::after { background: rgba(255, 255, 255, 0.16); } .place-close { align-self: flex-start; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -4px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); color: #fff; } .place-close svg { width: 20px; height: 20px; } .place-main { margin-top: auto; display: flex; flex-direction: column; align-items: center; text-align: center; } .place-title { margin: 0 0 14px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; } .place-title:focus { outline: none; } .place-verse { margin: 0 0 28px; } .place-verse p { margin: 0 0 8px; font-family: var(--scripture); font-size: 19px; line-height: 1.6; letter-spacing: -0.01em; word-break: keep-all; text-wrap: pretty; } .place-verse cite { font-style: normal; font-size: 14px; opacity: .78; } .place-play { display: grid; place-items: center; width: 72px; height: 72px; padding: 0; border-radius: 50%; background: #fff; color: var(--grey900); text-shadow: none; } .place-play svg { width: 30px; height: 30px; } .place-play:is([data-state="paused"], [data-state="failed"]) svg { margin-left: 3px; } /* 세모는 눈으로 보기에 가운데로 */ .place-play[data-state="loading"] svg { opacity: .35; } .place-play::after { background: rgba(0, 0, 0, 0.08); } .place-status { min-height: 20px; margin: 12px 0 10px; font-size: 14px; opacity: .88; } .place-timer { grid-template-columns: repeat(4, 1fr); width: min(100%, 300px); margin: 0; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-color: rgba(255, 255, 255, 0.2); box-shadow: none; } .place-timer button { min-height: 32px; border-radius: 999px; background: none; color: rgba(255, 255, 255, 0.82); font-size: 14px; text-shadow: none; } .place-timer button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.92); color: var(--grey900); font-weight: 700; } .place-credit { margin: 22px 0 0; font-size: 11px; line-height: 1.55; text-align: center; opacity: .7; } .place-credit a { display: block; color: inherit; text-decoration: none; } /* 제비 소개 (위로에서 밀려 들어오는 화면) */ .bird-top { position: sticky; top: 0; z-index: 3; height: 50px; } .bird-top .head-btn { position: absolute; left: calc(16px - var(--pad)); } .bird-hero { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: -16px 0 18px; text-align: center; } .chat-bird.big { width: 76px; height: 76px; margin-bottom: 6px; } .bird-hero h2 { margin: 0; font-size: 17px; font-weight: 700; } .segmented.bird-tabs { grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; background: var(--ground); box-shadow: 0 0 0 1px var(--border); } .segmented.bird-tabs button { display: grid; place-items: center; min-height: 40px; } .segmented.bird-tabs button svg { width: 21px; height: 21px; fill: none; } .segmented.bird-tabs button[aria-pressed="true"] { background: var(--card); } .bird-pane-title { margin: 0 0 12px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; } .bird-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 0; text-align: center; } .bird-empty img { width: 64px; height: 64px; margin-bottom: 6px; } .bird-empty strong { font-size: 16px; font-weight: 600; } .bird-empty p { margin: 0 0 12px; font-size: 14px; color: var(--muted); } .pill-btn { min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ground); box-shadow: 0 0 0 1px var(--border); color: var(--text); font-weight: 600; } .bird-pane .empty { padding: 48px 0; text-align: center; color: var(--muted); } .bird-verse { margin: 0 0 10px; padding: 14px 16px 6px; border-radius: 18px; background: var(--card); } .bird-verse .verse-text { margin: 0 0 4px; font-family: var(--scripture); font-size: var(--fs-verse); line-height: 1.6; letter-spacing: -0.01em; } .bird-about p { margin: 0 0 12px; line-height: 1.6; } .chat-row-del { flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; background: none; color: var(--grey500); } .chat-row-del svg { width: 16px; height: 16px; } /* 지난 대화 메뉴: 왼쪽에서 나온다. 브라우저에서는 대화 위에 어두운 막, 앱에서는 iOS가 대화 화면을 오른쪽으로 민다 */ .drawer { position: fixed; inset: 0; z-index: 30; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } .drawer input { -webkit-user-select: text; user-select: text; } .drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(75vw, 320px); overflow-y: auto; overscroll-behavior: contain; padding: calc(12px + env(safe-area-inset-top)) 12px calc(24px + env(safe-area-inset-bottom)); background: var(--drawer-bg); } .drawer-scrim { position: absolute; inset: 0 0 0 min(75vw, 320px); min-height: 0; padding: 0; border-radius: 0; background: rgba(0, 0, 0, 0.3); box-shadow: none; } .drawer:not(.native) .drawer-panel { animation: drawer-in .28s var(--spring); } .drawer:not(.native) .drawer-scrim { animation: fade .28s; } .drawer.closing .drawer-panel { transform: translateX(-100%); transition: transform .18s ease-in; animation: none; } .drawer.closing .drawer-scrim { opacity: 0; transition: opacity .18s; animation: none; } .drawer.native .drawer-scrim { background: none; } @keyframes drawer-in { from { transform: translateX(-100%); } } @media (prefers-reduced-motion: reduce) { .drawer-panel, .drawer-scrim { animation: none !important; transition: none !important; } } .drawer { --drawer-bg: #f2f4f6; } @media (prefers-color-scheme: dark) { .drawer { --drawer-bg: #101114; } } .drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; padding-left: 8px; } .drawer-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; } .drawer-find { margin-top: 0; width: 40px; height: 40px; } .drawer-search[hidden] { display: none; } .drawer-search { margin: 0 0 8px; } .drawer-search { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; background: var(--ground); color: var(--muted); } .drawer-search svg { width: 18px; height: 18px; flex: none; fill: none; } .drawer-search input { flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; background: none; box-shadow: none; font-size: 16px; outline: none; } .drawer-new { margin-top: 0; width: 40px; height: 40px; box-shadow: none; background: none; } .drawer-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 12px; border-radius: 12px; background: none; box-shadow: none; font-weight: 600; text-align: left; color: var(--text); } .drawer-row svg { width: 22px; height: 22px; flex: none; fill: none; } .drawer-row[aria-current="true"] { background: var(--border); } .drawer-row { font-weight: 500; } .drawer-label { margin: 16px 12px 4px; font-size: 13px; font-weight: 600; color: var(--muted); } .drawer-chat-line { display: flex; align-items: center; } .drawer-chat { display: block; flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; background: none; box-shadow: none; text-align: left; font-family: var(--chat-font); font-size: 16px; font-weight: 400; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; -webkit-touch-callout: none; user-select: none; } .drawer-chat.held { background: var(--border); transform: scale(.98); transition: transform .12s; } .chat-menu { position: fixed; z-index: 2; min-width: 200px; padding: 6px; border-radius: 14px; background: var(--ground); box-shadow: 0 0 0 1px var(--border), 0 12px 32px rgba(25, 31, 40, 0.18); animation: menu-in .2s var(--spring); transform-origin: top left; } @keyframes menu-in { from { opacity: 0; transform: scale(.9); } } .chat-menu-del { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; background: none; box-shadow: none; color: var(--notice-ink); font-weight: 500; } .chat-menu-del svg { width: 20px; height: 20px; fill: none; } .drawer-chat[aria-current="true"] { background: var(--ground); } .drawer-note { margin: 16px 12px 0; font-size: 12px; color: var(--muted); } .drawer-chats .empty { margin: 4px 12px; font-size: 14px; color: var(--muted); } /* 흰 바탕 대화 위의 빠른 답 칩과 '다른 말씀' 단추는 그림자 없는 회색 */ .chat-feel .chip, .chat-more { background: var(--card); box-shadow: none; } /* 제비 소개의 큰 제비는 살아 있는 것처럼 천천히 움직인다: 숨 쉬듯 몸이 기울고, 눈이 이리저리 보고, 가끔 깜빡이고 날개를 턴다 */ .chat-bird.big .bird { transform-origin: 50% 92%; animation: sway 5.2s ease-in-out infinite; } @keyframes sway { 0%, 100% { transform: rotate(-2.5deg) scale(1, 1); } 25% { transform: rotate(0deg) scale(1.025, .975) translateY(1%); } 50% { transform: rotate(2.5deg) scale(1, 1.01) translateY(-1.5%); } 75% { transform: rotate(0deg) scale(1.02, .98) translateY(.5%); } } .chat-bird.big .bird-eyes { animation: blink 4.6s infinite, look 9s ease-in-out infinite; } @keyframes look { 0%, 18%, 100% { translate: 0 0; } 24%, 40% { translate: -9px 2px; } 48%, 64% { translate: 7px -3px; } 72%, 90% { translate: 0 5px; } } .bird-wing { transform-box: fill-box; transform-origin: 30% 10%; } .chat-bird.big .bird-wing { animation: flap 7s ease-in-out infinite; } @keyframes flap { 0%, 80%, 100% { transform: none; } 83% { transform: rotate(-22deg); } 86% { transform: rotate(4deg); } 89% { transform: rotate(-16deg); } 93% { transform: none; } } /* 내 페이지: 연회색 바탕 위 흰 묶음 카드. 줄마다 아이콘, 이름, 오른쪽 꺾쇠. 누르면 그 묶음이 오른쪽에서 들어온다 */ .me-label { margin: 22px 4px 8px; font-size: 13px; font-weight: 600; color: var(--muted); } .me-group { background: var(--card); border-radius: 20px; overflow: hidden; } #me-in .me-group { margin-top: 12px; } .me-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px; border-radius: 0; background: none; box-shadow: none; color: var(--text); text-align: left; font-size: 16px; font-weight: 500; text-decoration: none; } .me-row[hidden] { display: none; } .me-ico { flex: none; width: 24px; display: grid; place-items: center; color: var(--sub); } .me-ico svg { width: 22px; height: 22px; fill: none; } .me-row-title { flex: 1; min-width: 0; } .me-row-detail { font-size: 15px; font-weight: 400; color: var(--muted); } .me-go { flex: none; width: 16px; height: 16px; fill: none; color: var(--grey500); } .me-home[hidden], .me-sub[hidden] { display: none; } /* 설정 안쪽 화면의 머리줄: 따로 된 막대가 아니라 화면 위에 얹힌 층. 가운데 제목(17px, 600), 왼쪽 뒤로, 오른쪽 할 일. 내용은 화면 맨 위까지 이어지고 스크롤하면 이 층 밑으로 흐리게 지나간다 (피클 설정 화면처럼) */ .me-sub-head { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; gap: 4px; margin: 0 calc(16px - var(--pad)) 12px; padding: 6px 0; } .me-sub-head::before { content: ""; position: absolute; z-index: -1; top: calc(-1 * (env(safe-area-inset-top) + 16px)); left: -16px; right: -16px; bottom: -16px; pointer-events: none; background: color-mix(in srgb, var(--page) 72%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent); mask-image: linear-gradient(#000 calc(100% - 26px), transparent); } .me-sub-head .head-btn { margin-top: 0; } .me-sub-head h3 { grid-column: 2; margin: 0; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .me-sub-head .save-pill { grid-column: 3; justify-self: end; margin: 0; padding: 0 14px; } .me-sub .setting { margin: 0; } .me-text { background: var(--card); border-radius: 20px; padding: 6px 18px; } .me-text ul { margin: 0; padding: 0; list-style: none; } .me-text li { padding: 12px 0; line-height: 1.55; font-size: 15px; } .me-text li + li { border-top: 1px solid var(--border); } .me-text li strong { display: block; margin-bottom: 2px; } .me-text .muted { padding: 4px 0 12px; } .me-sub .account-actions { display: flex; flex-direction: column; background: var(--card); border-radius: 20px; overflow: hidden; } .me-sub .account-actions button { min-height: 56px; padding: 0 18px; justify-content: flex-start; border-radius: 0; text-align: left; font-size: 16px; } .me-sub .account-actions button + button { border-top: 1px solid var(--border); color: var(--notice-ink); } /* 들어올 때와 돌아갈 때: iOS 내비게이션처럼 오른쪽에서 짧게 */ .me-enter { animation: me-enter .28s var(--spring); } @keyframes me-enter { from { transform: translateX(40px); opacity: 0; } } .me-leave { animation: me-leave .18s ease-in forwards; } @keyframes me-leave { to { transform: translateX(40px); opacity: 0; } } .me-back { animation: me-back .24s var(--spring); } @keyframes me-back { from { transform: translateX(-24px); opacity: .4; } } @media (prefers-reduced-motion: reduce) { .me-enter, .me-leave, .me-back { animation: none; } } .me-note { margin: 10px 4px 0; font-size: 13px; color: var(--muted); } /* 내 페이지 줄: 피클처럼 구분선은 아이콘 오른쪽(글자 시작)부터 */ .me-group > .me-row:not(:first-child) { border-top: 0; } .me-group > .me-row { position: relative; } .me-group > .me-row:not(:first-child)::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: 1px; background: var(--border); } .save-pill { margin-left: auto; min-height: 36px; padding: 0 16px; white-space: nowrap; border-radius: 999px; background: var(--text); color: var(--ground); font-size: 15px; font-weight: 600; } .save-pill:disabled { background: var(--grey300); color: #fff; opacity: 1; } /* 화면 및 디자인: 맨 위 채팅 미리보기, 그 아래 칸마다 흰 카드 */ .me-card { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; margin: 0 0 12px; padding: 0 18px; border-radius: 20px; background: var(--card); box-shadow: none; color: var(--text); font-size: 16px; font-weight: 500; text-align: left; } .me-card.me-row { border-top: 0; } .me-card[hidden] { display: none; } .me-select-row { position: relative; } .me-select-value { display: flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 400; } .me-select-value svg { width: 16px; height: 16px; } .me-select-row select { position: absolute; inset: 0; width: 100%; opacity: 0; -webkit-appearance: none; appearance: none; } .me-palette { display: block; padding: 14px 16px 16px; } .me-card-title { margin: 0 0 12px; font-size: 16px; font-weight: 500; } .swatch-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; } .swatch-dot { aspect-ratio: 1; width: 100%; min-height: 0; padding: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(25, 31, 40, 0.08); } .swatch-dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--text); } .icon-now { width: 28px; height: 28px; border-radius: 7px; margin-left: auto; box-shadow: 0 0 0 1px var(--border); } .me-card .me-row-title { flex: 1; } .design-preview { display: flex; justify-content: center; margin: 4px 0 20px; overflow: hidden; height: 300px; } .dp-phone { position: relative; display: flex; flex-direction: column; gap: 7px; width: 200px; padding: 40px 12px 12px; border-radius: 30px 30px 0 0; background: var(--ground); box-shadow: 0 0 0 5px var(--grey200), 0 0 0 6px var(--grey300); } .dp-bird { position: absolute; top: 8px; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--ground); box-shadow: 0 1px 4px rgba(25, 31, 40, 0.12); overflow: hidden; } .dp-bird img { width: 100%; height: 100%; } .dp-b { display: block; height: 22px; border-radius: 11px; background: var(--fill); } .dp-b.me { align-self: flex-end; background: var(--bubble-me, var(--primary-fill)); } .dp-b.bot.w80 { height: 38px; } .w25 { width: 25%; } .w30 { width: 30%; } .w35 { width: 35%; } .w45 { width: 45%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } /* 앱 아이콘: 큰 카드 두 줄씩, 고른 칸은 검은 테두리, 오른쪽 위 저장 */ .icon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .icon-card { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 0; padding: 20px 10px 16px; border-radius: 20px; background: var(--card); box-shadow: none; color: var(--text); font-size: 15px; font-weight: 500; } .icon-card[hidden] { display: none; } .icon-card[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--text); } .icon-card img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 0 1px var(--border); } /* 글씨 크기: 대화 미리보기, 8칸 슬라이더, 휴대폰 설정 따르기 */ .font-preview { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; } .font-preview .bubble { background: var(--fill); max-width: 85%; } .font-preview .fp-me { align-self: flex-end; background: var(--bubble-me, var(--primary-fill)); color: var(--bubble-me-ink, var(--primary-ink)); } .font-slider { gap: 14px; min-height: 72px; } .font-slider.off { opacity: .45; } .fs-small { font-size: 13px; } .fs-big { font-size: 24px; } /* 피클처럼 눈금 8칸, 고른 곳까지 검게 채운 막대, 흰 동그라미 손잡이 */ .fs-track { position: relative; flex: 1; height: 28px; } .fs-ticks { position: absolute; left: 14px; right: 14px; top: 50%; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; } .fs-ticks i { width: 2px; height: 12px; border-radius: 1px; background: var(--grey300); } #font-range { position: relative; -webkit-appearance: none; appearance: none; width: 100%; min-height: 0; height: 28px; margin: 0; padding: 0; background: none; box-shadow: none; } #font-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--text) var(--fill-pct, 28%), transparent var(--fill-pct, 28%)); } #font-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(25, 31, 40, 0.08), 0 2px 6px rgba(25, 31, 40, 0.2); } .fs-track::before { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--grey200); } .font-follow { justify-content: space-between; margin-bottom: 6px; } /* 설정 안쪽 화면에서는 머리줄 층이 상태 막대 뒤까지 한 겹으로 이어진다 (상태 막대 띠를 따로 겹치면 흐림이 끊긴다) */ .native-chrome.native-edge body:has(#view-me.active .me-sub:not([hidden]))::before, .native-chrome.native-edge body:has(#view-me.active .me-sub:not([hidden]))::after { display: none; } /* 고객 지원 */ .me-row.plain { padding-left: 18px; } .me-group > .me-row.plain:not(:first-child)::before { left: 18px; } .help-hero { margin: 4px 4px 16px; text-align: center; } .help-hero p { margin: 0 0 6px; font-size: 14px; color: var(--muted); } .help-hero h4 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; } .help-search { display: flex; align-items: center; gap: 8px; height: 48px; margin: 0 0 16px; padding: 0 16px; border-radius: 999px; background: var(--card); color: var(--muted); } .help-search svg { width: 20px; height: 20px; flex: none; fill: none; } .help-search input { flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; background: none; box-shadow: none; font-size: 16px; outline: none; } .help-card { margin: 0 0 10px; border-radius: 20px; background: var(--card); overflow: hidden; } .help-card[hidden] { display: none; } .help-head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px 16px; border-radius: 0; background: none; box-shadow: none; color: var(--text); text-align: left; } .help-text { flex: 1; min-width: 0; display: grid; gap: 2px; } .help-text strong { font-size: 16px; font-weight: 600; } .help-text span { font-size: 13px; font-weight: 400; color: var(--muted); } .help-count { flex: none; font-size: 13px; font-weight: 500; color: var(--accent); } .help-head .me-go { color: var(--accent); transition: transform .2s var(--spring); } .help-head[aria-expanded="true"] .me-go { transform: rotate(90deg); } .help-body { padding: 0 18px 10px 52px; } .help-body[hidden] { display: none; } .help-body ul { margin: 0; padding: 0; list-style: none; } .help-body li { padding: 10px 0; font-size: 15px; line-height: 1.55; border-top: 1px solid var(--border); } .report-text { display: block; width: 100%; min-height: 180px; margin: 0 0 22px; padding: 16px 18px; border: 0; border-radius: 20px; background: var(--card); box-shadow: none; font-size: 16px; line-height: 1.5; resize: none; } .report-label { margin: 0 4px 10px; font-size: 14px; color: var(--muted); } .report-files { display: flex; gap: 10px; overflow-x: auto; margin: 0 0 22px; padding-bottom: 2px; } .report-add, .report-thumb { position: relative; flex: none; width: 116px; height: 190px; border-radius: 18px; background: var(--card); overflow: hidden; } .report-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; } .report-add svg { width: 26px; height: 26px; fill: none; } .report-thumb img, .report-thumb video { width: 100%; height: 100%; object-fit: cover; } .report-thumb button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; min-height: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(25, 31, 40, 0.6); color: #fff; } .report-thumb button svg { width: 14px; height: 14px; } .topic-chips { display: flex; flex-wrap: wrap; gap: 8px; } .topic-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--border); color: var(--text); font-size: 14px; font-weight: 500; } .topic-chip svg { width: 17px; height: 17px; fill: none; } .topic-chip[aria-pressed="true"] { background: var(--text); color: var(--ground); box-shadow: none; } .src-note { margin-top: 12px; } .src-note p { margin: 0; padding: 12px 0; font-size: 14px; line-height: 1.55; color: var(--sub); } .src-note strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 15px; } @media (prefers-color-scheme: dark) { .swatch-dot { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); } .dp-phone { box-shadow: 0 0 0 5px #2c2f36, 0 0 0 6px #3a3d45; } } /* 본문과 AI 해석 전환은 스크롤해도 위에 붙어 남는다. 앱은 접힌 장 제목 막대 바로 아래, 브라우저는 장 막대 바로 아래 */ .segmented.bible-mode { position: sticky; top: var(--bible-stick, 0px); z-index: 4; } .bible-mode.stuck { box-shadow: 0 2px 12px rgba(25, 31, 40, 0.12); } /* 문서 창: 아래에서 올라오는 전체 화면 층. 위에 가운데 제목과 왼쪽 동그란 닫기 */ .doc-view { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--ground); animation: rise .3s var(--spring); } .doc-view[hidden] { display: none; } .doc-view.leaving { animation: sink .2s cubic-bezier(0.4, 0, 1, 1) forwards; } .doc-head { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; } .doc-head .head-btn { margin: 0; } .doc-head h3 { margin: 0; text-align: center; font-size: 17px; font-weight: 600; } #doc-frame { flex: 1; width: 100%; border: 0; background: var(--ground); } /* 왼쪽 끝에서 밀어 돌아갈 때 손가락을 따라 움직이는 층 */ .swipe-follow { transition: none !important; animation: none !important; } @media (prefers-reduced-motion: reduce) { .doc-view, .doc-view.leaving { animation: none; } } .doc-edge { position: absolute; left: 0; top: 0; bottom: 0; width: 24px; z-index: 2; } /* 안쪽 문서 위에서도 왼쪽 끝 밀기를 받는다 */ .doc-view { position: fixed; } /* ── 위로 대화 2.5: GPT, Claude처럼 화면 전체를 쓴다 (2026-12-05) ── 보금자리의 말은 말풍선 없이 화면 폭 그대로 읽는 글, 내 말만 오른쪽 말풍선. 말씀은 왼쪽 파란 줄 인용, 도구는 글자 없는 회색 아이콘 줄. 위는 막대 없이 유리 동그라미 둘과 가운데 이름만 뜨고, 대화는 그 밑으로 흐려지며 지나간다 */ .chat-log { gap: 20px; } .msg.bot .msg-body { width: 100%; max-width: 100%; gap: 12px; } .msg.bot.cont { margin-top: -6px; } .msg.bot .bubble { padding: 0 2px; border-radius: 0; background: none; line-height: 1.5; letter-spacing: 0; } /* ChatGPT iOS처럼 시스템 글꼴 17pt, 줄 높이 약 25pt(1.5), 자간 0, 굵게는 600 */ .msg .bubble, .msg.bot .bubble.rich { font-size: 17px; } .msg.bot .bubble strong, .msg.bot .bubble b { font-weight: 600; } .msg.bot .bubble.rich { padding: 0 2px; gap: 12px; } .msg.bot .bubble.rich ul { gap: 6px; } .msg.me .bubble { max-width: 82%; } /* 말씀: 왼쪽 세로줄 인용 */ .msg.bot .verse-bubble { padding: 0 2px; } .msg.bot .verse-bubble .verse-text { margin: 0 0 8px; padding: 2px 0 2px 14px; border-left: 3px solid var(--primary); border-radius: 0; font-size: calc(var(--fs-verse) - 1px); line-height: 1.6; } .msg.bot .verse-ref-row { padding-left: 14px; } .msg.bot .verse-note { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--text); } /* 도구: 글자 없는 회색 아이콘 (이름은 화면 읽기 프로그램에 그대로 남는다) */ /* 답 전체 맨 아래 (지난 대화에 남은 예전 답은 말씀 안에 있다) */ .msg.bot .verse-actions { gap: 2px; margin: 0 -10px; flex-wrap: nowrap; } .msg.bot .verse-bubble .verse-actions { margin: 8px -8px 0; } .msg.bot .verse-actions button { width: 40px; min-height: 40px; padding: 0; justify-content: center; font-size: 0; color: var(--grey500); background: none; } .msg.bot .verse-actions button svg { width: 20px; height: 20px; margin: 0; } .msg.bot .verse-actions button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .msg.bot .verse-actions [aria-pressed="true"], .msg.bot .verse-actions .on { color: var(--accent); } .msg.bot .verse-actions .helpful.on svg path { fill: currentColor; fill-opacity: 1; } /* 답 아래 도구: ChatGPT처럼 글 바로 아래, 첫 아이콘이 글 왼쪽 선에 맞고, 진한 회색 20px 아이콘이 촘촘히 */ .msg.bot .answer-tools { margin: -4px 0 0 -6px; gap: 0; } /* 머리 줄 가운데 '보금자리' 글자는 뺀다. 양쪽 단추만 남긴다 */ .chat-head .chat-who { visibility: hidden; } .msg.bot .answer-tools button { width: 32px; min-height: 36px; margin: 0; color: var(--grey700); } /* 빈 대화의 인사: 화면 가운데 두 줄, 둘째 줄은 회색 */ .chat-hello { position: fixed; z-index: 0; left: 24px; right: 24px; top: 46%; transform: translateY(-50%); margin: 0; text-align: center; pointer-events: none; animation: fade .3s ease-out; } .chat-hello p { margin: 0; font-family: var(--chat-font); font-size: 20px; line-height: 1.45; color: var(--text); word-break: keep-all; } .chat-hello p + p { color: var(--muted); } .chat-more { background: var(--card); } /* 기다리는 동안: 점 대신 회색 글자가 천천히 숨 쉰다 */ .msg.bot .typing { padding: 0 2px; } .msg.bot .typing span { width: 6px; height: 6px; } .typing.working { display: block; color: var(--muted); font-size: 15px; animation: working 1.6s infinite ease-in-out; } @keyframes working { 50% { opacity: .45; } } @media (prefers-reduced-motion: reduce) { .typing.working { animation: none; } } /* 위: 가운데 이름만 (제비 얼굴은 소개 화면에 크게 있다). 이름 아래 '말씀 찾는 중' */ .chat-head { align-items: center; } .chat-head .chat-bird { display: none; } .chat-who { margin: 6px 0 0; padding: 0; background: none; box-shadow: none; } .chat-who strong { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; } .chat-who small { font-size: 12px; } .chat-head .head-btn.glass { border: 1px solid var(--glass-edge); box-shadow: 0 4px 16px rgba(25, 31, 40, 0.08), inset 0 1px 0 var(--glass-edge); color: var(--text); } /* 2.5 앱: 위 두 단추는 iOS 리퀴드 글래스가 같은 자리에 그린다 */ .glass-head .chat-head .head-btn { visibility: hidden; } /* 맨 아래로: 입력칸 위 가운데 */ .chat-down { position: fixed; z-index: 4; left: 50%; bottom: calc(var(--dock-bottom) + 72px); width: 40px; height: 40px; margin-left: -20px; color: var(--text); animation: fade .16s; } .chat-down[hidden], .glass-head .chat-down { display: none; } .chat-down svg { width: 20px; height: 20px; } @media (hover: none), (pointer: coarse) { .chat-dock:focus-within ~ .chat-down { display: none; } } /* 입력칸도 유리 알약 */ .chat-dock { background: none; } .chat-input { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); border: 1px solid var(--glass-edge); box-shadow: 0 4px 16px rgba(25, 31, 40, 0.08), inset 0 1px 0 var(--glass-edge); } .chat-input textarea { font-size: 17px; } /* 채팅 글과 같은 17px (ChatGPT) */ /* 유리 메뉴: 대화가 통째로 흐려지고 그 위에 목록. 판이 미끄러지지 않고 흐림이 0.24초에 번진다 */ .drawer.glass-menu .drawer-panel { inset: 0; width: auto; max-width: none; padding: calc(16px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--page) 55%, transparent); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%); animation: fade .24s ease-out; } .drawer.glass-menu .drawer-scrim { display: none; } .drawer.glass-menu.closing .drawer-panel { transform: none; opacity: 0; transition: opacity .18s ease-in; } .drawer.glass-menu .drawer-top { margin-bottom: 12px; } .drawer.glass-menu .drawer-find, .drawer.glass-menu .drawer-row { display: none; } .drawer.glass-menu .drawer-chat[aria-current="true"] { background: var(--glass); } .drawer-dock { display: none; } .drawer.glass-menu .drawer-dock { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; } .drawer-new-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--primary-fill); color: var(--primary-ink); font-size: 16px; font-weight: 600; box-shadow: 0 4px 16px rgba(25, 31, 40, 0.1); } .drawer-new-pill svg { width: 20px; height: 20px; fill: none; } .drawer-dock .glass-round { width: 48px; height: 48px; color: var(--text); } @media (prefers-reduced-motion: reduce) { .drawer.glass-menu .drawer-panel { animation: none; } }