/* 멈춤연습 공용 스타일 — 기기 화면(전화·문자·카톡·브라우저)과 판단 버튼 */
:root {
  --bg: #f7f4ee; --ink: #1a1a1a; --muted: #555; --line: #e5e0d6;
  --s1: #E63946; --s2: #F4A261; --s3: #1F6FEB; --s4: #2E7D32; --s5: #6A4C93;
  --safe: #2E7D32; --safe-bg: #e8f5e9; --half: #9a5b00; --half-bg: #fff4e0; --risk: #c62828; --risk-bg: #fdecea;
  --shadow: 0 4px 18px rgba(0,0,0,.08); --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; font-size: 20px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-text-size-adjust: 100%; }
svg { width: 1em; height: 1em; vertical-align: -0.15em; }
button { font: inherit; }
.site-head { padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; }
.site-head .logo { font-weight: 900; font-size: 20px; color: inherit; text-decoration: none; }
.site-head .logo small { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 4px; }
.head-help { background: var(--risk); color: #fff; border-radius: 99px; padding: 8px 14px; font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap; }

/* ---------- 기기 ---------- */
.device { width: 100%; max-width: 360px; margin: 0 auto; background: #111; border-radius: 36px; padding: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.22); position: relative; }
.device-notch { width: 90px; height: 18px; background: #111; border-radius: 0 0 12px 12px; position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 2; }
.device-screen { background: #fff; border-radius: 26px; overflow: hidden; height: 520px; display: flex; flex-direction: column; position: relative; }

/* 전화 수신 */
.ring, .call { flex: 1; background: linear-gradient(180deg, #2b3a4a 0%, #121820 100%); color: #fff; text-align: center; padding: 48px 20px 28px; display: flex; flex-direction: column; align-items: center; }
.ring-top { font-size: 15px; color: #b8c4cf; }
.ring-avatar { width: 92px; height: 92px; border-radius: 50%; background: #4a5a6a; display: grid; place-items: center; font-size: 42px; margin: 26px 0 16px; animation: pulse 1.4s ease-in-out infinite; }
.ring-name { font-size: 30px; font-weight: 800; letter-spacing: .02em; }
.ring-sub { font-size: 17px; color: #b8c4cf; margin-top: 4px; }
.ring-note { margin-top: 18px; font-size: 15px; background: rgba(255,255,255,.12); border-radius: 10px; padding: 8px 12px; color: #ffe08a; }
.ring-btns { margin-top: auto; display: flex; justify-content: space-around; width: 100%; }
.rb { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; }
.rb-no { background: #e53935; } .rb-yes { background: #43a047; animation: shake 1s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 50% { box-shadow: 0 0 0 18px rgba(255,255,255,0); } }
@keyframes shake { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } }

/* 통화 중 */
.call { padding-top: 44px; }
.call-name { font-size: 26px; font-weight: 800; }
.call-clock { font-size: 17px; color: #9fd1a4; margin-top: 2px; font-variant-numeric: tabular-nums; }
.wave { display: flex; gap: 5px; height: 40px; align-items: center; margin: 20px 0 14px; }
.wave i { width: 6px; height: 10px; background: #7fc4ff; border-radius: 3px; }
.speaking .wave i { animation: wave .9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s; } .wave i:nth-child(3) { animation-delay: .2s; } .wave i:nth-child(4) { animation-delay: .3s; }
.wave i:nth-child(5) { animation-delay: .2s; } .wave i:nth-child(6) { animation-delay: .1s; }
@keyframes wave { 0%,100% { height: 8px; } 50% { height: 36px; } }
.caption { background: rgba(255,255,255,.96); color: #111; border-radius: 14px; padding: 14px 16px; font-size: 19px; line-height: 1.55; text-align: left; width: 100%; min-height: 120px; font-weight: 600; }
.replay { margin-top: 12px; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 99px; padding: 8px 18px; font-size: 16px; cursor: pointer; }
.call-end { margin-top: auto; width: 64px; height: 64px; border-radius: 50%; background: #e53935; display: grid; place-items: center; font-size: 30px; }

/* 앱 머리 */
.app-head { padding: 34px 16px 10px; border-bottom: 1px solid #ddd; background: #f6f6f6; }
.ah-name { font-size: 19px; font-weight: 800; }
.ah-sub { font-size: 14px; color: #555; margin-top: 2px; }
.thread { flex: 1; overflow-y: auto; padding: 14px 12px 18px; }
.b-row { margin-bottom: 12px; }
.bubble-sms { background: #e9e9eb; border-radius: 18px 18px 18px 4px; padding: 12px 14px; font-size: 18px; line-height: 1.5; max-width: 90%; word-break: break-all; }
.b-time { font-size: 13px; color: #666; margin: 3px 4px 0; }
.fake-link { color: #1559c7; text-decoration: underline; word-break: break-all; }

/* 카톡 */
.ch-kakao .app-head { background: #b2c7da; border-bottom: 0; }
.kk-thread { background: #b2c7da; }
.kk-row { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-start; }
.kk-pf { width: 38px; height: 38px; border-radius: 14px; background: #8aa3b9; flex: none; }
.kk-name { font-size: 14px; color: #333; margin-bottom: 3px; }
.kk-line { display: flex; align-items: flex-end; gap: 5px; }
.bubble-kk { background: #fff; border-radius: 4px 16px 16px 16px; padding: 10px 13px; font-size: 18px; line-height: 1.5; max-width: 230px; word-break: break-all; }
.kk-line .b-time { margin: 0; white-space: nowrap; font-size: 12px; color: #444; }
.kk-system { text-align: center; font-size: 14px; background: rgba(0,0,0,.18); color: #fff; border-radius: 99px; padding: 4px 12px; margin: 6px auto 12px; width: fit-content; }

/* 브라우저 */
.browser { padding: 32px 10px 8px; background: #f1f3f4; border-bottom: 1px solid #ddd; }
.urlbar { background: #fff; border-radius: 99px; padding: 8px 12px; font-size: 14px; display: flex; gap: 6px; align-items: center; color: #333; }
.urlbar .url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.webpage { flex: 1; overflow-y: auto; padding: 16px; }
.w-brand { font-weight: 900; color: #0b3a82; border-bottom: 3px solid #0b3a82; padding-bottom: 8px; font-size: 18px; }
.w-banner { font-size: 24px; font-weight: 900; margin: 16px 0 8px; line-height: 1.3; }
.w-body { font-size: 17px; color: #333; background: #fff8e1; border-radius: 10px; padding: 10px 12px; }
.w-field { display: block; margin-top: 10px; font-size: 15px; color: #333; }
.w-input { display: block; height: 38px; border: 2px solid #c8ccd2; border-radius: 8px; margin-top: 3px; background: #fafafa; }
.w-btn { margin-top: 16px; background: #0b3a82; color: #fff; text-align: center; border-radius: 10px; padding: 13px; font-weight: 800; font-size: 18px; }

/* ---------- 판단 영역 ---------- */
.q-card { background: #fff; border-radius: var(--radius); padding: 18px 18px 6px; box-shadow: var(--shadow); }
.q-text { font-size: 22px; font-weight: 800; line-height: 1.4; margin: 0 0 6px; }
.choice { display: block; width: 100%; min-height: 64px; text-align: left; background: #fff; border: 2px solid #222; border-radius: 14px; padding: 14px 16px; margin: 0 0 12px; font-size: 20px; font-weight: 700; cursor: pointer; color: var(--ink); }
.choice:hover, .choice:focus-visible { background: #fffbe6; outline: 3px solid #ffd54f; }
.choice[disabled] { cursor: default; opacity: .55; }
.choice.picked { opacity: 1; border-width: 3px; }
.choice.picked.v-safe { border-color: var(--safe); background: var(--safe-bg); }
.choice.picked.v-half { border-color: var(--half); background: var(--half-bg); }
.choice.picked.v-risk { border-color: var(--risk); background: var(--risk-bg); }
.fb { border-radius: 14px; padding: 16px 18px; margin: 4px 0 14px; font-size: 19px; line-height: 1.6; border: 2px solid; }
.fb b.t { display: block; font-size: 21px; margin-bottom: 4px; }
.fb.v-safe { background: var(--safe-bg); border-color: var(--safe); }
.fb.v-half { background: var(--half-bg); border-color: var(--half); }
.fb.v-risk { background: var(--risk-bg); border-color: var(--risk); }
.fb.v-neutral { background: #eef2f7; border-color: #7a8ca3; }
.btn { display: block; width: 100%; min-height: 64px; padding: 16px 20px; margin: 12px 0; font-size: 21px; font-weight: 800; border-radius: 14px; border: 2px solid #111; background: #fff; color: var(--ink); text-align: center; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--s3); border-color: var(--s3); color: #fff; }
.btn.dark { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.btn.red { background: var(--risk); border-color: var(--risk); color: #fff; }
.pause-btn { display: inline-flex; align-items: center; gap: 8px; background: #1a1a1a; color: #fff; border: 0; border-radius: 99px; padding: 10px 18px; font-size: 18px; font-weight: 800; cursor: pointer; margin: 0 0 12px; }

.badge { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 15px; font-weight: 800; }
.g-safe { background: var(--safe-bg); color: var(--safe); }
.g-half { background: var(--half-bg); color: var(--half); }
.g-risk { background: var(--risk-bg); color: var(--risk); }

/* 멈춤 5초 덮개 */
.stop5 { position: fixed; inset: 0; background: rgba(0,0,0,.93); color: #fff; display: none; align-items: center; justify-content: center; text-align: center; z-index: 100; padding: 20px; }
.stop5.show { display: flex; }
.stop5 .n { font-size: 96px; font-weight: 900; line-height: 1; }
.stop5 .w { font-size: 58px; font-weight: 900; margin: 12px 0 6px; }
.stop5 .q { font-size: 24px; color: #ccc; }

@media (max-width: 420px) {
  body { font-size: 18px; }
  .device-screen { height: 480px; }
  .q-text { font-size: 20px; }
  .choice { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ring-avatar, .rb-yes, .speaking .wave i { animation: none; }
}
