/* 도미노끊기 체험판 — 시스템 글꼴만 사용, 외부 요청 없음. 390px 우선. */
:root {
  --navy: #1f3a5f;
  --navy-d: #142a47;
  --navy-l: #e8eef6;
  --teal: #0e8a8c;
  --teal-d: #0a6466;
  --teal-l: #e2f3f3;
  --gray: #6b7280;
  --gray-d: #374151;
  --gray-l: #f3f4f6;
  --line: #d3d9e2;
  --red: #c62828;
  --red-l: #fdeded;
  --bg: #f6f8fb;
  --cap-h: 0px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: #1b2433; font-family: var(--font);
  font-size: 15px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere;
  padding-bottom: calc(var(--nav-h) + var(--cap-h) + 8px);
}
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 14px; }
.muted { color: var(--gray); }
/* 넓은 화면에서는 본문 폭 전체를 1.25배로 키워 글자가 작아 보이지 않게 한다(zoom을 모르는 브라우저는 그대로 둔다) */
@media (min-width: 1500px) { .wrap { zoom: 1.25; } }
.small { font-size: 13px; }

/* 위 띠: 모든 화면에서 맨 위에 붙어 있다 */
.band {
  position: sticky; top: 0; z-index: 30; background: var(--navy-d); color: #fff;
  font-size: 12px; line-height: 1.4; padding: 6px 14px; text-align: center; letter-spacing: -0.01em;
}
@media (min-width: 900px) { .band { font-size: 13px; padding: 7px 14px; } }

.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { margin: 0; font-size: 18px; color: var(--navy); letter-spacing: -0.02em; }
.brand small { font-size: 12px; font-weight: 600; color: var(--teal-d); border: 1px solid var(--teal); border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: 2px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex: 1; min-width: 260px; }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12.5px; color: var(--gray); position: relative; text-align: center; }
.steps li b { width: 24px; height: 24px; border-radius: 50%; background: var(--gray-l); border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 12px; }
.steps li span { line-height: 1.2; }
.steps li.done b { background: var(--navy-l); color: var(--navy); border-color: var(--navy); }
.steps li.on b { background: var(--navy); color: #fff; border-color: var(--navy); }
.steps li.on { color: var(--navy); font-weight: 700; }
@media (min-width: 900px) { .steps { max-width: 640px; margin-left: auto; } .steps li { flex-direction: row; justify-content: center; font-size: 13px; gap: 6px; } }

/* 화면 */
main { padding-top: 14px; padding-bottom: 12px; }
.screen[hidden] { display: none; }
.screen { animation: fade 0.25s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.head h2 { margin: 0 4px 0 0; font-size: 21px; color: var(--navy); letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.no { width: 28px; height: 28px; border-radius: 8px; background: var(--navy); color: #fff; display: inline-grid; place-items: center; font-size: 15px; }
.lead { margin: 6px 0 12px; font-size: 15.5px; }
.cols { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; } .card-cols { grid-template-columns: minmax(0, 1fr) 430px; } }
.notice { background: var(--gray-l); border: 1px solid var(--line); padding: 10px 12px; border-radius: 8px; }
.notice.err { background: var(--red-l); border-color: var(--red); color: var(--red); }

/* 꼬리표 · 역할 */
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: 999px; border: 1.5px solid; vertical-align: middle; white-space: nowrap; letter-spacing: -0.01em; }
.tag.fake { color: var(--gray-d); border-color: var(--gray); border-style: dashed; background: #fff; }
.tag.pub { color: #fff; background: var(--teal); border-color: var(--teal); }
.tag.rule { color: var(--teal-d); border-color: var(--teal); border-style: dashed; background: var(--teal-l); }
.tag.pilot { color: var(--navy); border-color: var(--navy); background: #fff; }
.actor { display: inline-block; font-size: 12.5px; line-height: 1.1; padding: 4px 8px; border-radius: 6px; border: 1.5px solid; background: #fff; vertical-align: middle; white-space: nowrap; font-weight: 600; }
.actor.officer { border-color: var(--navy); border-style: solid; color: var(--navy); }
.actor.agency { border-color: var(--navy); border-style: dashed; color: var(--navy); }
.actor.ai { border-color: var(--teal); border-style: dashed; color: var(--teal-d); background: var(--teal-l); }
.actor.system { border-color: var(--gray); border-style: solid; color: var(--gray-d); background: var(--gray-l); }

/* 1 신고 */
.examples { display: grid; gap: 8px; grid-template-columns: 1fr; margin-bottom: 12px; }
@media (min-width: 900px) { .examples { grid-template-columns: repeat(3, 1fr); } }
.ex { text-align: left; background: #fff; border: 1.5px solid var(--line); border-left: 5px solid var(--red); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; min-height: 44px; }
.ex b { color: var(--navy); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.ex span.t { font-size: 13.5px; color: #2b3445; }
.ex.on { border-color: var(--navy); border-left-color: var(--red); box-shadow: 0 0 0 2px var(--navy-l); background: #f9fbff; }
.ex:focus-visible, .btn:focus-visible, .reply:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.field { display: block; font-weight: 700; margin: 6px 0 4px; font-size: 14px; }
.hint { font-weight: 400; color: var(--gray); font-size: 13px; }
textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; resize: vertical; min-height: 84px; color: #1b2433; }
.criteria { margin: 10px 0 4px; padding: 8px 12px; background: var(--navy-l); border-radius: 8px; font-size: 13.5px; color: var(--navy); }
.flash { animation: flash 1s ease-out 1; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(14,138,140,.6); } 60% { box-shadow: 0 0 0 8px rgba(14,138,140,0); } 100% { box-shadow: none; } }

/* 2 AI가 읽은 것 */
.report { background: #fff; border: 1.5px solid var(--line); border-left: 5px solid var(--red); border-radius: 10px; padding: 14px 14px 18px; font-size: 16px; line-height: 2.3; }
.report mark { background: none; color: inherit; font-weight: 700; padding-bottom: 1px; position: relative; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.report mark::after { content: attr(data-k); position: absolute; left: 0; top: -1.2em; font-size: 12.5px; font-weight: 700; line-height: 1; white-space: nowrap; letter-spacing: 0; }
.report mark.k-trade { text-decoration-color: var(--navy); } .report mark.k-trade::after { color: var(--navy); }
.report mark.k-object { text-decoration-color: var(--teal); } .report mark.k-object::after { color: var(--teal-d); }
.report mark.k-process { text-decoration-color: #7a5af8; } .report mark.k-process::after { color: #6a4be0; }
.report mark.k-damage { text-decoration-color: var(--red); } .report mark.k-damage::after { color: var(--red); }
.report mark.off { opacity: 0.55; text-decoration-style: dotted; font-weight: 500; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.chip { background: #fff; border: 1.5px solid var(--teal); border-style: dashed; border-radius: 10px; padding: 8px 10px; min-height: 66px; }
.chip small { display: block; font-size: 12.5px; color: var(--gray); font-weight: 700; }
.chip b { display: block; font-size: 15px; color: var(--teal-d); margin: 1px 0; }
.chip em { font-style: normal; font-size: 12.5px; color: var(--gray-d); }
.chip.k-trade b { color: var(--navy); } .chip.k-process b { color: #5a3fd0; } .chip.k-damage b { color: var(--red); }
.chip.none { border-color: var(--line); background: var(--gray-l); }
.chip.none b { color: var(--gray); font-weight: 500; font-size: 13.5px; }
.chip.pulse { animation: pulse 0.9s ease-out 1; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14,138,140,.55); } 100% { box-shadow: 0 0 0 10px rgba(14,138,140,0); } }
.note { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; }
.rule-note { background: var(--teal-l); border: 1.5px dashed var(--teal); color: var(--teal-d); }

/* 3 후보 현장 */
.funnel { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: f; }
.frow { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px 10px; transition: box-shadow .2s, border-color .2s; }
.frow .top2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.frow .lab { font-size: 13.5px; }
.frow .lab .actor { margin-bottom: 3px; }
.frow .n { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1; white-space: nowrap; }
.frow .n small { font-size: 12.5px; font-weight: 600; color: var(--gray); margin-left: 2px; }
.frow .bar { height: 8px; background: var(--gray-l); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.frow .bar i { display: block; height: 100%; background: var(--navy); border-radius: 4px; transition: width .6s ease-out; }
.frow.s1 .bar i { background: #7e92ad; } .frow.s2 .bar i { background: #4d6a8f; }
.frow .hold { margin-top: 6px; font-size: 12.5px; color: var(--gray-d); }
.frow.focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-l); }
.dots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 2px; }
.dot { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); background: var(--gray-l); font-size: 12px; color: var(--gray); display: grid; place-items: center; line-height: 1; transition: opacity .3s, transform .3s; font-weight: 700; }
.dot.off { background: #fff; border-color: #aab7c8; color: #7e8aa0; }
.dot.month { background: #c8d6ea; border-color: #4d6a8f; color: var(--navy); }
.dot.hold { background: #fff; border: 2px dashed var(--navy); color: var(--navy); }
.dot.ready { background: var(--navy); border-color: var(--navy); color: #fff; }
.dots.dim .dot { opacity: .22; }
.dots.dim .dot.on { opacity: 1; transform: scale(1.08); }
.legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--gray-d); }
.legend li { display: flex; align-items: center; gap: 5px; }
.legend .sw { width: 13px; height: 13px; border-radius: 50%; display: inline-block; border: 2px solid var(--line); }
.holds { margin-top: 12px; }
.holds h3 { margin: 0 0 6px; font-size: 14px; color: var(--navy); }
.holds ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.holds li { background: #fff; border: 1.5px dashed var(--navy); border-radius: 8px; padding: 6px 10px; font-size: 13px; display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.holds li.ok { border-style: solid; }
.holds li em { font-style: normal; color: var(--gray-d); }

/* 4 확인 카드 */
@media (max-width: 899px) { .card-cols .side { order: 2; } .card-cols .phone { order: 1; } }
.flow { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.flow li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.flow em { font-style: normal; font-size: 13px; color: var(--gray-d); }
.phone { background: #fff; border: 2px solid var(--navy); border-radius: 22px; overflow: hidden; box-shadow: 0 8px 24px rgba(20,42,71,.15); max-width: 430px; width: 100%; margin: 0 auto; }
.phone-head { background: var(--navy); color: #fff; padding: 10px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.phone-head b { font-size: 16px; }
.phone-body { padding: 12px 16px 8px; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.meta span { font-size: 12.5px; background: var(--gray-l); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; }
.meta span b { color: var(--navy); }
.basis { margin: 0 0 6px; font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--gray-d); }
.phone h3 { font-size: 14.5px; margin: 6px 0 8px; color: var(--navy); line-height: 1.4; }
.measures { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: m; }
.measures li { counter-increment: m; position: relative; padding: 9px 10px 9px 38px; background: var(--teal-l); border: 1px solid #b6dcdd; border-radius: 10px; font-size: 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.measures li::before { content: counter(m); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.measures .cnt { font-weight: 800; color: var(--teal-d); white-space: nowrap; font-size: 15px; }
.measures .cnt small { font-weight: 600; font-size: 12.5px; }
.measures li.flash, .together.flash { animation: flash 1s ease-out 1; }
.together { margin-top: 8px; padding: 8px 10px; border: 1.5px dashed var(--teal); border-radius: 10px; font-size: 13.5px; background: #fff; }
.together b { color: var(--teal-d); }
.together .scope { display: block; font-size: 12.5px; color: var(--gray); margin-top: 2px; }
.review { margin-top: 8px; padding: 8px 10px; border: 1.5px solid var(--navy); border-radius: 10px; background: var(--navy-l); color: var(--navy); font-weight: 700; font-size: 13.5px; }
.pastcase { margin-top: 10px; padding: 8px 10px 9px 12px; border-left: 5px solid var(--red); background: var(--red-l); border-radius: 0 10px 10px 0; font-size: 13px; }
.pastcase b { color: var(--red); display: block; margin-bottom: 2px; }
.pastcase .ex2 { color: #3b2a2a; }
.source { margin: 10px 0 4px; font-size: 13px; color: var(--gray-d); }
.sender { margin: 4px 0 8px; font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.phone-foot { border-top: 1px solid var(--line); padding: 10px 16px 14px; background: var(--gray-l); }
.phone-foot p { margin: 0 0 6px; }
.replies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.reply { background: #fff; border: 1.5px solid var(--navy); color: var(--navy); border-radius: 10px; padding: 10px 4px; font-weight: 700; font-size: 13.5px; min-height: 44px; line-height: 1.25; }
.reply.sel { background: var(--navy); color: #fff; }
.reply[disabled] { opacity: .4; cursor: not-allowed; }
.replied { color: var(--navy); min-height: 1.4em; margin-top: 8px !important; }

.trades { margin-top: 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.trades h3 { margin: 0 0 8px; font-size: 14px; color: var(--navy); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.trades ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.trades li { display: grid; grid-template-columns: 8.5em 1fr 3.2em; gap: 8px; align-items: center; font-size: 13.5px; }
.trades li .bar { height: 8px; background: var(--gray-l); border-radius: 4px; overflow: hidden; }
.trades li .bar i { display: block; height: 100%; background: var(--teal); border-radius: 4px; }
.trades li b { text-align: right; color: var(--teal-d); }
.pastcase .note2 { display: block; margin-top: 4px; font-size: 11.5px; color: var(--gray-d); }

/* 5 회신 */
.bars { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.bars li { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.bars li b { font-size: 14.5px; }
.bars li .n { font-size: 24px; font-weight: 800; color: var(--navy); }
.bars li .bar { grid-column: 1 / -1; height: 8px; background: var(--gray-l); border-radius: 4px; overflow: hidden; }
.bars li .bar i { display: block; height: 100%; background: var(--navy); border-radius: 4px; }
.bars li.warn { border-color: var(--navy); border-width: 2px; }
.sitelist { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 4px; grid-template-columns: 1fr 1fr; }
.sitelist li { font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; display: flex; justify-content: space-between; gap: 6px; }
.sitelist li.warn { border: 1.5px solid var(--navy); font-weight: 700; }
.next-check { background: #fff; border: 1.5px solid var(--navy); border-radius: 12px; padding: 12px; display: grid; gap: 4px; }
.nc-step { display: grid; gap: 6px; justify-items: start; font-size: 14px; }
.nc-step b { font-size: 15px; color: var(--navy); line-height: 1.4; }
.nc-step.strong b { font-size: 20px; }
.arrow { text-align: center; font-size: 22px; color: var(--navy); line-height: 1; }
.next-check.pulse { animation: pulse 1s ease-out 1; }
.never { margin-top: 16px; padding: 14px; border: 2.5px solid var(--navy); border-radius: 12px; background: #fff; font-size: 17px; text-align: center; color: var(--navy); font-weight: 600; }
.never strong { display: block; color: var(--teal-d); font-size: 14px; letter-spacing: 0; }
.never.pulse { animation: pulse 1s ease-out 1; }

/* 아래쪽 안내 */
.foot { padding-top: 14px; padding-bottom: 14px; font-size: 13px; color: var(--gray-d); border-top: 1px solid var(--line); margin-top: 18px; }
.foot .src { margin: 4px 0; }
.actors-legend { margin: 0 0 8px; }

/* 아래 이동 바 */
.nav { position: fixed; left: 0; right: 0; bottom: var(--cap-h); z-index: 20; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(4px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: var(--nav-h); }
.navnum { font-weight: 800; color: var(--navy); font-size: 17px; }
.btn { border-radius: 12px; font-weight: 800; padding: 0 22px; height: 46px; min-width: 96px; border: 2px solid var(--navy); font-size: 16px; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.ghost { background: #fff; color: var(--navy); }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
@media (min-width: 900px) { .btn { min-width: 130px; } }

/* 시연 모드 */
.caption { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(15, 25, 40, .94); color: #fff; padding: 12px 18px 14px; text-align: center; }
.caption[hidden] { display: none; }
.caption p { margin: 0 auto; max-width: 980px; font-size: 15px; line-height: 1.5; font-weight: 600; }
.cap-bar { height: 3px; background: rgba(255,255,255,.2); margin: 8px auto 0; max-width: 980px; border-radius: 2px; overflow: hidden; }
.cap-bar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .5s linear; }
@media (min-width: 900px) { .caption p { font-size: 22px; } .caption { padding: 16px 24px 18px; } }
.cursor { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid #ff3d71; background: rgba(255, 61, 113, .22); z-index: 50; pointer-events: none; opacity: 0; transition: transform .7s cubic-bezier(.4, 0, .2, 1), opacity .2s; }
.cursor.show { opacity: 1; }
.cursor.click { animation: tap .45s ease-out 1; }
@keyframes tap { 0% { box-shadow: 0 0 0 0 rgba(255,61,113,.7); } 100% { box-shadow: 0 0 0 22px rgba(255,61,113,0); } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 380px) { .chips { grid-template-columns: 1fr; } .sitelist { grid-template-columns: 1fr; } }

/* 보강: 가독성·접기·시연 잠금 */
h2:focus:not(:focus-visible) { outline: none; }
.tag.mini { font-size: 12px; padding: 3px 7px; margin-left: 6px; }
.small-btn { height: 36px; min-width: 0; padding: 0 14px; font-size: 14px; margin-left: 8px; }
.block-note { background: #fff; border: 2px solid var(--navy); color: var(--navy); display: grid; gap: 8px; justify-items: start; }
.block-note p { margin: 0; font-weight: 700; }
.block-note[hidden] { display: none; }
.refnote { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--teal-d); }
.pc-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--gray-d); margin-bottom: 3px; }
.ops { margin: 0 0 6px; color: var(--gray-d); }
.report mark.neg { text-decoration-style: wavy; }
details.trades summary, details.more summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 14px; list-style-position: inside; min-height: 32px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
details.trades ul { margin-top: 8px; }
details.more { margin-top: 6px; }
details.more .actors-legend { margin-top: 8px; }
body.tour-lock { user-select: none; }
body.tour-lock textarea { caret-color: transparent; }
