:root {
  --blue: #0063ff;
  --blue-deep: #1249a6;
  --blue-soft: #e9f2ff;
  --ink: #172033;
  --muted: #677084;
  --faint: #9aa0ab;
  --line: #d8e0ef;
  --bg: #ffffff;
  --ok: #00a86b;
  --warn: #f04452;
  --lime: #c7ff5b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: #0e1014;
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
  overflow: hidden;
}
.deck { width: 100vw; height: 100vh; display: grid; place-items: center; }
.frame {
  width: min(98vw, 1680px);
  height: min(97vh, 960px);
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.slide {
  position: absolute; inset: 0;
  padding: clamp(46px, 6.4vh, 62px) 56px clamp(52px, 6vh, 64px);
  opacity: 0; pointer-events: none;
  display: flex; flex-direction: column;
  background: var(--bg);
  transition: opacity .22s ease;
}
.slide.active { opacity: 1; pointer-events: auto; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .16em; color: var(--blue); text-transform: uppercase; margin-bottom: 6px; position: relative; z-index: 1; }
h1 { font-size: clamp(36px, 5.2vh, 58px); line-height: 1.08; letter-spacing: -.045em; font-weight: 800; position: relative; z-index: 1; word-break: keep-all; }
h2 { font-size: clamp(25px, 3.75vh, 36px); line-height: 1.24; letter-spacing: -.035em; font-weight: 800; position: relative; z-index: 1; word-break: keep-all; }
h3 { font-size: 21px; letter-spacing: -.025em; font-weight: 800; word-break: keep-all; }
.lead { margin-top: 8px; font-size: clamp(15.5px, 1.98vh, 19px); line-height: 1.55; color: var(--muted); max-width: 1180px; position: relative; z-index: 1; word-break: keep-all; overflow-wrap: anywhere; }
.fill { flex: 1; min-height: 0; margin-top: 20px; display: grid; gap: 16px; position: relative; z-index: 1; min-width: 0; }
.card {
  background: #fff; border-radius: 18px;
  padding: clamp(16px, 2.9vh, 26px) clamp(18px, 2.9vh, 28px);
  box-shadow: 0 2px 10px rgba(16,24,40,.05);
  display: flex; flex-direction: column; min-height: 0; min-width: 0;
}
.card p, .card li { font-size: clamp(14.5px, 1.82vh, 17.5px); line-height: 1.55; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.g2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.num {
  width: 34px; height: 34px; border-radius: 9px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; margin-bottom: 12px;
}
.pill {
  display: inline-flex; align-items: center;
  background: var(--blue-soft); color: var(--blue-deep);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 800; margin-bottom: 14px;
  width: fit-content; position: relative; z-index: 1;
}
.good { box-shadow: inset 4px 0 0 var(--blue), 0 2px 10px rgba(16,24,40,.05); }
.bad { box-shadow: inset 4px 0 0 var(--warn), 0 2px 10px rgba(16,24,40,.05); }
.tag { font-size: 13px; font-weight: 800; margin-bottom: 10px; letter-spacing: .04em; }
.tag.g { color: var(--blue); }
.tag.b { color: var(--warn); }
ul.rows { list-style: none; display: grid; gap: 10px; }
ul.rows li { font-size: clamp(15px, 2vh, 19px); line-height: 1.5; color: var(--muted); word-break: keep-all; }
ul.rows b { color: var(--ink); }
.callout {
  background: var(--blue-soft); border-radius: 14px;
  padding: clamp(12px, 1.9vh, 18px) 20px;
  font-size: clamp(15px, 1.92vh, 18px); line-height: 1.52; color: var(--blue-deep);
  word-break: keep-all; overflow-wrap: anywhere; max-width: 100%;
}
pre {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(12px, 1.5vh, 15px); line-height: 1.5;
  background: var(--ink); color: #e8edf4; border-radius: 18px;
  padding: clamp(14px, 2.2vh, 22px) 24px; white-space: pre-wrap;
  overflow-wrap: anywhere; max-width: 100%;
}
.week { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.week .wk { font-size: 13px; font-weight: 800; color: var(--blue); letter-spacing: .06em; margin-bottom: 10px; }
.week .now { outline: 3px solid var(--blue); }
.pflow { position: relative; margin-top: 8px; }
.pflow .track {
  position: absolute; left: 6.25%; right: 6.25%; top: 21px; height: 6px;
  background: #dcdee3; border-radius: 3px; overflow: hidden;
}
.pflow .track i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-deep)); }
.pflow .steps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; position: relative; }
.pflow .dot {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; border: 3px solid var(--blue);
}
.pflow .dot.off { background: #fff; color: var(--blue); }
.pflow .n { text-align: center; font-size: 12.5px; font-weight: 800; color: var(--blue); margin-top: 10px; }
.pflow .t { text-align: center; font-size: 16px; font-weight: 800; margin-top: 4px; }
.pflow .s { text-align: center; font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.shot {
  width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block;
}
.cover { padding: 0; }
.cover .inner {
  flex: 1; display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 36px; padding: 56px 66px 48px;
  position: relative; z-index: 1;
}
.cover h1 { font-size: clamp(42px, 6.4vh, 72px); }
.cover .sub { margin-top: 14px; font-size: 20px; font-weight: 700; color: var(--muted); }
.cover .meta {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
  display: grid; gap: 6px; font-size: 15px; font-weight: 700; color: var(--muted);
}
.cover-art { height: 100%; min-height: 0; border-radius: 18px; overflow: hidden; }
.cover-art img { width: 100%; height: 100%; object-fit: cover; }
.cover .inner.no-art { grid-template-columns: 1fr; }
.cover .inner.no-art > div:first-child { max-width: 760px; }
.end { align-items: center; justify-content: center; text-align: center; }
.end h1 { font-size: clamp(48px, 8vh, 72px); }
.end .sub { margin-top: 16px; font-size: 20px; color: var(--muted); font-weight: 700; max-width: 820px; }
.links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: #fff; border-radius: 999px;
  padding: 12px 20px; font-size: 15px; font-weight: 800; text-decoration: none;
}
.link-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.check { display: grid; gap: 10px; }
.check .row {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  font-size: 18px; font-weight: 700; line-height: 1.45;
}
.check .box {
  width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--blue);
  margin-top: 2px;
}
.footer {
  position: absolute; left: 56px; right: 56px; bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--faint); font-size: 13px; font-weight: 700; z-index: 2;
}
.footer nav { display: flex; gap: 8px; }
.footer a { color: var(--faint); text-decoration: none; }
.footer a.on { color: var(--blue); }
.progress {
  position: absolute; left: 0; right: 0; top: 0; height: 16px;
  display: flex; align-items: center; gap: 4px; padding: 0 16px; z-index: 3; cursor: pointer;
}
.progress .seg { flex: 1; height: 4px; border-radius: 2px; background: #d5d7dd; overflow: hidden; }
.progress .seg i { display: block; height: 100%; width: 0; background: var(--blue); }
.progress .seg.done i, .progress .seg.active i { width: 100%; }
.progress .seg.active { height: 7px; }
.term {
  color: var(--blue-deep);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  font-weight: 750;
}
.term:hover { color: var(--blue); }

.auth-widget {
  display: flex; align-items: center; gap: 8px;
}
.auth-badge {
  border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep);
  padding: 6px 12px; font-weight: 800; font-size: 12.5px;
}
.auth-badge--warn { background: #fff1ee; color: var(--warn); }
.auth-widget .ghost, .auth-widget .primary {
  border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 800;
  text-decoration: none; cursor: pointer;
}
.auth-widget .ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.auth-widget .primary { border: none; background: var(--blue); color: #fff; }

.mission-slide .fill { overflow-y: auto; padding-right: 4px; }
.mp-easy { display: grid; gap: 2px; }
.mp-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.mp-row:hover { background: var(--blue-soft); }
.mp-row input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.mp-pace { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-deep); font-size: 13px; }
.mp-item { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 6px; }
.mp-item:last-child { border-bottom: none; }
.mp-note { margin: 0 0 8px 32px; color: var(--faint); font-size: 12.5px; }
.mp-answer { margin: 4px 0 10px 32px; padding: 14px; border-radius: 12px; background: var(--blue-soft); display: grid; gap: 12px; }
.mp-field { display: grid; gap: 6px; }
.mp-field label { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.mp-field input[type="text"], .mp-field select, .mp-field textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px;
  background: #fff; width: 100%; font-family: inherit;
}
.mp-field textarea { min-height: 72px; resize: vertical; line-height: 1.5; }
.mp-image-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mp-image-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.mp-image-empty { color: var(--faint); font-size: 13px; }
.mp-answer-footer { display: flex; align-items: center; gap: 10px; }
.mp-answer-footer button {
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 800; cursor: pointer;
}
.mp-big { margin-top: 4px; }
.mp-big-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mp-big-head h4 { margin: 0; font-size: 16px; }
.mp-desc { margin: 8px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.mp-big textarea {
  width: 100%; min-height: 90px; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 14px; line-height: 1.55; resize: vertical; font-family: inherit;
}
.mp-big button {
  margin-top: 10px; border: none; border-radius: 999px; background: var(--blue); color: #fff;
  padding: 10px 18px; font-weight: 800; font-size: 14px; cursor: pointer;
}
.mp-save-msg { margin-left: 10px; font-size: 13px; font-weight: 800; }
.mp-save-msg--ok { color: var(--ok); }
.mp-save-msg--err { color: var(--warn); }
.mp-badge {
  border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted);
  padding: 5px 10px; font-size: 12px; font-weight: 800;
}
.mp-badge--done { background: #dff9e7; border-color: transparent; color: #0a6b3f; }
.mp-empty { padding: 20px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-deep); line-height: 1.6; font-size: 15px; }
.mp-empty a { color: var(--blue-deep); font-weight: 800; }

@media (max-width: 900px) {
  .slide { padding: 36px 22px 56px; }
  .g2, .g3, .g4, .g5, .week, .pflow .steps, .cover .inner { grid-template-columns: 1fr; }
  .cover .inner { padding: 36px 22px; }
  .pflow { display: none; }
}

/* 대시보드 안에 끼워 볼 때(iframe): 검은 여백과 로그인 위젯을 없애고 칸을 꽉 채운다 */
html.embed, html.embed body { background: transparent; }
html.embed .deck { width: 100vw; height: 100vh; }
html.embed .frame { width: 100vw; height: 100vh; border-radius: 0; box-shadow: none; }
html.embed .auth-widget { display: none; }

/* 피그마 슬라이드를 이미지 그대로 보여 주는 슬라이드 */
.slide.imgslide { padding: 20px 0 42px; align-items: center; justify-content: center; background: #fff; }
.slide.imgslide img { width: 100%; height: 100%; display: block; object-fit: contain; user-select: none; -webkit-user-drag: none; }
