@import url("vendor/katex/dist/katex.min.css");

:root {
  --ps-bg: #f7f8fc;
  --ps-paper: #ffffff;
  --ps-ink: #172033;
  --ps-soft: #5b657a;
  --ps-line: #dfe4ef;
  --ps-control-line: #7b8498;
  --ps-accent: #5b5ce2;
  --ps-accent-deep: #3f3fb0;
  --ps-accent-soft: #eeeeff;
  --ps-good: #087f5b;
  --ps-good-soft: #e7f8f1;
  --ps-warn: #b23b25;
  --ps-warn-soft: #fff0ec;
  --ps-gold: #e9a11b;
  --ps-shadow: 0 24px 70px rgba(31, 42, 68, .12);
  --ps-radius: 28px;
  --ps-font: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; }

body.ps-present {
  overflow: hidden;
  background: var(--ps-bg);
  color: var(--ps-ink);
  font-family: var(--ps-font);
  word-break: keep-all;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.phase-2 {
  --ps-accent: #078a7b;
  --ps-accent-deep: #05675e;
  --ps-accent-soft: #e5f7f4;
}

body.phase-3 {
  --ps-accent: #d85b32;
  --ps-accent-deep: #a94021;
  --ps-accent-soft: #fff0e9;
}

body.phase-4 {
  --ps-accent: #b34586;
  --ps-accent-deep: #853063;
  --ps-accent-soft: #fbeaf5;
}

body.phase-5 {
  --ps-accent: #2563c7;
  --ps-accent-deep: #19468f;
  --ps-accent-soft: #e9f1ff;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 4px solid rgba(91, 92, 226, .28);
  outline-offset: 3px;
}

.ps-deck { position: relative; width: 100%; height: 100dvh; isolation: isolate; }

.ps-deck::before,
.ps-deck::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.ps-deck::before {
  width: 38vw;
  height: 38vw;
  right: -17vw;
  top: -20vw;
  background: color-mix(in srgb, var(--ps-accent) 12%, transparent);
}

.ps-deck::after {
  width: 26vw;
  height: 26vw;
  left: -13vw;
  bottom: -16vw;
  background: rgba(233, 161, 27, .09);
}

.ps-slide {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
}

.ps-slide.is-active { display: block; animation: ps-enter .28s ease-out both; }

@keyframes ps-enter {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.ps-scene {
  width: min(100%, 1680px);
  height: 100%;
  margin: 0 auto;
  padding: clamp(88px, 9vh, 116px) clamp(34px, 6vw, 108px) clamp(92px, 10vh, 126px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 2.2vh, 30px);
}

.ps-scene.ps-top { justify-content: flex-start; padding-top: clamp(94px, 11vh, 126px); }
.ps-scene.ps-center { align-items: center; text-align: center; }
.ps-scene.ps-narrow { width: min(100%, 1240px); }

.ps-kicker {
  margin: 0;
  color: var(--ps-accent-deep);
  font-size: clamp(17px, 1.45vw, 24px);
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: .04em;
}

.ps-kicker::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 6px;
  margin: 0 10px 4px 0;
  border-radius: 99px;
  background: var(--ps-accent);
}

.ps-scene h1,
.ps-scene h2,
.ps-scene h3,
.ps-scene p { margin: 0; }

.ps-scene h1 {
  max-width: 16ch;
  font-size: clamp(48px, 5.4vw, 92px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 900;
}

.ps-scene h2 {
  max-width: 22ch;
  font-size: clamp(38px, 4vw, 68px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 900;
}

.ps-scene h3 {
  font-size: clamp(25px, 2.2vw, 38px);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 850;
}

.ps-lead {
  max-width: 40ch;
  color: var(--ps-soft);
  font-size: clamp(24px, 2.25vw, 38px);
  line-height: 1.48;
  letter-spacing: -.015em;
  font-weight: 620;
}

.ps-body {
  max-width: 48ch;
  color: var(--ps-soft);
  font-size: clamp(21px, 1.75vw, 30px);
  line-height: 1.55;
  font-weight: 560;
}

.ps-em { color: var(--ps-accent-deep); font-weight: 850; }
.ps-good-text { color: var(--ps-good); font-weight: 800; }
.ps-warn-text { color: var(--ps-warn); font-weight: 800; }

.ps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 86px);
  min-height: 0;
}

.ps-grid.ps-40-60 { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
.ps-grid.ps-60-40 { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); }
.ps-stack { display: flex; flex-direction: column; gap: clamp(14px, 2vh, 24px); min-width: 0; }

.ps-card,
.ps-visual,
.ps-prompt,
.ps-equation,
.ps-checkpoint {
  border: 2px solid var(--ps-line);
  border-radius: var(--ps-radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 34px rgba(31, 42, 68, .07);
}

.ps-card { padding: clamp(22px, 2.6vw, 40px); }
.ps-card.accent { border-color: color-mix(in srgb, var(--ps-accent) 38%, var(--ps-line)); background: var(--ps-accent-soft); }
.ps-card.good { border-color: #9bd8c4; background: var(--ps-good-soft); }
.ps-card.warn { border-color: #f1b8aa; background: var(--ps-warn-soft); }

.ps-visual {
  position: relative;
  min-height: clamp(280px, 47vh, 600px);
  padding: clamp(16px, 2vw, 30px);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(91, 101, 122, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 101, 122, .075) 1px, transparent 1px),
    #fff;
  background-size: 32px 32px;
}

.ps-visual.clean { background: #fff; }
.ps-visual.soft { background: var(--ps-accent-soft); }
.ps-visual svg { width: 100%; height: 100%; max-height: 58vh; overflow: visible; }
.ps-visual canvas { width: 100%; max-height: 56vh; border-radius: 18px; touch-action: none; }

.ps-graph {
  width: 100%;
  height: clamp(280px, 47vh, 560px);
  min-width: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: 18px;
  background: #fff;
  touch-action: none;
}

.ps-graph.jxgbox { border: 0; }
.ps-graph .JXGtext {
  color: var(--ps-ink) !important;
  font-family: var(--ps-font) !important;
  font-weight: 700;
}
.ps-graph .JXG_navigation,
.ps-graph .JXG_copyright { display: none !important; }

.ps-prompt {
  padding: clamp(26px, 3vw, 48px);
  border-color: color-mix(in srgb, var(--ps-accent) 45%, var(--ps-line));
  background: var(--ps-accent-soft);
}

.ps-prompt > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ps-accent-deep);
  font-size: clamp(18px, 1.5vw, 24px);
}

.ps-prompt > p { font-size: clamp(27px, 2.55vw, 43px); line-height: 1.35; font-weight: 820; }

.ps-equation {
  min-width: 0;
  max-width: 100%;
  padding: clamp(24px, 3vw, 46px);
  text-align: center;
  color: var(--ps-ink);
  font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif;
  font-size: clamp(31px, 3.8vw, 66px);
  line-height: 1.22;
  font-weight: 650;
  letter-spacing: -.02em;
}

.ps-equation small {
  display: block;
  margin-top: 14px;
  color: var(--ps-soft);
  font-family: var(--ps-font);
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.45;
  font-weight: 600;
}

.katex { font-size: 1.08em; }
.ps-equation .katex-display { max-width: 100%; margin: 0; overflow-x: auto; overflow-y: hidden; }
.ps-equation .katex { font-size: 1em; }
.ps-choice .katex, .ps-body .katex, .ps-points .katex { white-space: nowrap; }

.ps-points {
  list-style: none;
  display: grid;
  gap: clamp(13px, 1.7vh, 22px);
  margin: 0;
  padding: 0;
}

.ps-points li {
  position: relative;
  padding-left: 1.4em;
  color: var(--ps-ink);
  font-size: clamp(23px, 2vw, 34px);
  line-height: 1.42;
  font-weight: 680;
}

.ps-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .48em;
  height: .48em;
  border-radius: 50%;
  background: var(--ps-accent);
}

.ps-points.compact { gap: 12px; }
.ps-points.compact li { font-size: clamp(20px, 1.65vw, 28px); }

.ps-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 34px);
}

.ps-compare > * { min-width: 0; }
.ps-compare .ps-card h3 { margin-bottom: 12px; }
.ps-compare .ps-card p { color: var(--ps-soft); font-size: clamp(20px, 1.6vw, 27px); line-height: 1.48; font-weight: 570; }

.ps-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ps-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--ps-accent-soft);
  color: var(--ps-accent-deep);
  font-size: clamp(16px, 1.2vw, 21px);
  font-weight: 800;
}

.ps-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(13px, 1.5vw, 20px);
}

.ps-choice {
  min-height: clamp(74px, 9vh, 104px);
  padding: 15px 22px;
  border: 3px solid var(--ps-control-line);
  border-radius: 22px;
  background: #fff;
  color: var(--ps-ink);
  cursor: pointer;
  text-align: left;
  font-size: clamp(20px, 1.7vw, 29px);
  line-height: 1.28;
  font-weight: 760;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.ps-choice:hover { transform: translateY(-2px); border-color: var(--ps-accent); }
.ps-choice.is-wrong { border-color: #dd715a; background: var(--ps-warn-soft); }
.ps-choice.is-correct { border-color: #35a782; background: var(--ps-good-soft); color: #075c43; }
.ps-choice[disabled] { cursor: default; }

.ps-feedback {
  grid-column: 1 / -1;
  min-height: 1.5em;
  color: var(--ps-soft);
  font-size: clamp(19px, 1.5vw, 25px);
  line-height: 1.4;
  font-weight: 720;
}

.ps-feedback.good { color: var(--ps-good); }
.ps-feedback.warn { color: var(--ps-warn); }

.ps-checkpoint {
  padding: clamp(24px, 3.2vw, 48px);
  border-top: 9px solid var(--ps-accent);
}

.ps-checkpoint h2 { margin-bottom: clamp(18px, 2.5vh, 30px); }

.ps-slider-row {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--ps-control-line);
  border-radius: 20px;
  background: #fff;
}

.ps-slider-row label,
.ps-slider-row output { font-size: clamp(18px, 1.45vw, 24px); font-weight: 800; }
.ps-slider-row output { min-width: 4.5ch; color: var(--ps-accent-deep); text-align: right; }
.ps-slider-row input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--ps-accent); cursor: pointer; }

.ps-btn {
  min-height: 56px;
  padding: 12px 22px;
  border: 0;
  border-radius: 16px;
  background: var(--ps-accent-deep);
  color: #fff;
  cursor: pointer;
  font-size: clamp(18px, 1.35vw, 23px);
  line-height: 1.2;
  font-weight: 850;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--ps-accent) 24%, transparent);
}

.ps-btn:hover { background: var(--ps-accent-deep); }
.ps-btn.ghost { border: 2px solid var(--ps-control-line); background: #fff; color: var(--ps-ink); box-shadow: none; }
.ps-btn.good { background: var(--ps-good); }

.ps-step { opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .26s ease, transform .26s ease; }
.ps-step.is-shown { opacity: 1; transform: none; pointer-events: auto; }

.ps-takeaway {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 1100px;
  padding: clamp(24px, 3vw, 42px);
  border-radius: var(--ps-radius);
  background: var(--ps-ink);
  color: #fff;
  box-shadow: var(--ps-shadow);
}

.ps-takeaway::before {
  content: "!";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--ps-accent);
  font-size: 30px;
  font-weight: 900;
}

.ps-takeaway p { font-size: clamp(25px, 2.25vw, 38px); line-height: 1.4; font-weight: 760; }

.ps-question-mark {
  display: grid;
  place-items: center;
  width: clamp(160px, 20vw, 300px);
  aspect-ratio: 1;
  border-radius: 35% 65% 58% 42% / 48% 38% 62% 52%;
  background: var(--ps-accent-soft);
  color: var(--ps-accent);
  font-size: clamp(100px, 13vw, 210px);
  line-height: 1;
  font-weight: 900;
  transform: rotate(-5deg);
}

.ps-flow { display: flex; align-items: stretch; gap: 12px; }
.ps-flow > .ps-card { flex: 1 1 0; display: grid; place-items: center; text-align: center; }
.ps-flow > .ps-arrow { display: grid; place-items: center; color: var(--ps-accent); font-size: clamp(32px, 3vw, 48px); font-weight: 900; }

.ps-compact-stack { gap: 14px; }
.ps-compact-stack .ps-equation { padding: 18px 26px; font-size: 48px; }
.ps-compact-stack .ps-prompt { padding: 20px 26px; }
.ps-compact-stack .ps-card { padding: 20px 26px; }
.ps-compact-stack .ps-btn { min-height: 52px; padding-block: 10px; }

.ps-mini-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ps-soft);
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ps-big-number {
  color: var(--ps-accent);
  font-size: clamp(76px, 10vw, 170px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.06em;
}

.ps-speaker-notes { display: none; }

/* 발표 셸 */
.ps-topbar {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 68px;
  padding: 0 clamp(18px, 2.6vw, 42px);
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(247, 248, 252, .91);
  border-bottom: 1px solid rgba(205, 212, 226, .82);
  backdrop-filter: blur(14px);
}

.ps-home {
  color: var(--ps-ink);
  text-decoration: none;
  font-size: clamp(16px, 1.18vw, 20px);
  font-weight: 850;
  white-space: nowrap;
}

.ps-home span { color: var(--ps-accent-deep); }
.ps-slide-name { min-width: 0; margin-right: auto; overflow: hidden; color: var(--ps-soft); text-overflow: ellipsis; white-space: nowrap; font-size: clamp(15px, 1.05vw, 18px); font-weight: 720; }
.ps-counter { color: var(--ps-soft); font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 850; white-space: nowrap; }

.ps-tool {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ps-control-line);
  border-radius: 13px;
  background: #fff;
  color: var(--ps-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
}

.ps-tool:hover, .ps-tool[aria-pressed="true"] { border-color: var(--ps-accent); background: var(--ps-accent-soft); color: var(--ps-accent-deep); }

.ps-bottom {
  position: fixed;
  z-index: 50;
  inset: auto 0 0;
  height: 78px;
  padding: 0 clamp(18px, 2.6vw, 42px);
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
  background: linear-gradient(to top, var(--ps-bg) 70%, rgba(247, 248, 252, 0));
}

.ps-nav-btn {
  min-width: 128px;
  min-height: 58px;
  padding: 10px 22px;
  border: 2px solid var(--ps-control-line);
  border-radius: 18px;
  background: #fff;
  color: var(--ps-ink);
  cursor: pointer;
  font-size: 19px;
  font-weight: 850;
}

.ps-nav-btn.next { border-color: var(--ps-accent); background: var(--ps-accent); color: #fff; }
.ps-nav-btn:disabled { opacity: .35; cursor: default; }

.ps-progress { height: 10px; overflow: hidden; border-radius: 99px; background: #dfe4ef; }
.ps-progress > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ps-accent); transition: width .22s ease; }

.ps-notes-panel {
  position: fixed;
  z-index: 80;
  right: 22px;
  top: 80px;
  width: min(440px, calc(100vw - 44px));
  max-height: calc(100vh - 174px);
  overflow: auto;
  padding: 24px;
  border: 2px solid var(--ps-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--ps-shadow);
}

.ps-notes-panel[hidden] { display: none; }
.ps-notes-panel h2 { margin: 0 0 12px; font-size: 21px; }
.ps-notes-panel p, .ps-notes-panel li { color: var(--ps-soft); font-size: 18px; line-height: 1.55; }

.ps-overview {
  position: fixed;
  z-index: 90;
  inset: 0;
  overflow: auto;
  padding: 88px clamp(24px, 5vw, 80px) 50px;
  background: rgba(16, 23, 40, .94);
  backdrop-filter: blur(12px);
}

.ps-overview[hidden] { display: none; }
.ps-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1500px; margin: 0 auto 28px; color: #fff; }
.ps-overview-head h2 { margin: 0; font-size: clamp(30px, 3vw, 48px); }
.ps-overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; max-width: 1500px; margin: 0 auto; }
.ps-overview-card {
  min-height: 170px;
  padding: 22px;
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.ps-overview-card strong { display: block; margin-bottom: 10px; color: #c7c8ff; font-size: 16px; }
.ps-overview-card span { font-size: 22px; line-height: 1.3; font-weight: 780; }
.ps-overview-card.is-current { border-color: #fff; background: color-mix(in srgb, var(--ps-accent) 55%, transparent); }

.ps-toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 16px);
  padding: 13px 20px;
  border-radius: 14px;
  background: var(--ps-ink);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  font-size: 17px;
  font-weight: 750;
  transition: opacity .18s ease, transform .18s ease;
}
.ps-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.ps-help {
  position: fixed;
  z-index: 95;
  inset: 50% auto auto 50%;
  width: min(580px, calc(100vw - 40px));
  transform: translate(-50%, -50%);
  padding: 30px;
  border: 2px solid var(--ps-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--ps-shadow);
}
.ps-help[hidden] { display: none; }
.ps-help h2 { margin: 0 0 18px; }
.ps-help dl { display: grid; grid-template-columns: 130px 1fr; gap: 12px; margin: 0; }
.ps-help dt { font-weight: 850; }
.ps-help dd { margin: 0; color: var(--ps-soft); }

@media (max-height: 820px) and (min-width: 901px) {
  .ps-scene {
    padding: 76px clamp(30px, 5vw, 76px) 72px;
    gap: 12px;
  }
  .ps-scene.ps-top { padding-top: 76px; }
  .ps-scene h1 { font-size: clamp(44px, 4.6vw, 64px); }
  .ps-scene h2 { font-size: clamp(36px, 3.45vw, 50px); }
  .ps-scene h3 { font-size: clamp(23px, 2vw, 32px); }
  .ps-lead { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.38; }
  .ps-body { font-size: clamp(20px, 1.55vw, 25px); line-height: 1.46; }
  .ps-grid { gap: clamp(24px, 4vw, 56px); }
  .ps-stack { gap: 10px; }
  .ps-card { padding: clamp(18px, 2vw, 28px); }
  .ps-grid > .ps-visual {
    height: 44vh;
    min-height: 0;
    max-height: 350px;
    padding: 16px;
  }
  .ps-grid > .ps-visual svg {
    height: calc(44vh - 32px);
    max-height: 318px;
    overflow: hidden;
  }
  .ps-grid > .ps-visual .ps-graph { height: calc(44vh - 32px); min-height: 0; max-height: 318px; }
  .ps-equation { padding: clamp(18px, 2vw, 28px); font-size: clamp(28px, 3vw, 42px); }
  .ps-equation small { margin-top: 9px; font-size: clamp(17px, 1.3vw, 21px); }
  .ps-prompt { padding: 18px 28px; }
  .ps-prompt > strong { margin-bottom: 6px; }
  .ps-prompt > p { font-size: clamp(24px, 2vw, 30px); }
  .ps-takeaway { gap: 14px; padding: 20px 24px; }
  .ps-takeaway p { font-size: clamp(22px, 1.9vw, 28px); }
  .ps-compact-stack { gap: 9px; }
  .ps-compact-stack .ps-equation { padding: 12px 20px; font-size: 34px; }
  .ps-compact-stack .ps-prompt { padding: 14px 22px; }
  .ps-compact-stack .ps-prompt > p { font-size: 24px; }
  .ps-compact-stack .ps-card { padding: 14px 22px; }
  .ps-compact-stack .ps-btn { min-height: 48px; padding-block: 9px; }
}

@media (max-width: 900px), (max-height: 620px) {
  .ps-topbar { height: 58px; }
  .ps-scene { padding: 74px 26px 78px; gap: 14px; }
  .ps-bottom { height: 64px; }
  .ps-nav-btn { min-width: 100px; min-height: 50px; padding: 8px 15px; font-size: 17px; }
  .ps-grid, .ps-grid.ps-40-60, .ps-grid.ps-60-40 { grid-template-columns: 1fr; gap: 18px; }
  .ps-grid > .ps-visual { min-height: 235px; max-height: 42vh; }
  .ps-compare { gap: 12px; }
  .ps-flow { flex-wrap: wrap; }
  .ps-flow > .ps-card { min-width: 180px; }
  .ps-tool.optional { display: none; }
}

@media (max-width: 900px) {
  .ps-choices { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .ps-slide-name { display: none; }
  .ps-home { margin-right: auto; }
  .ps-scene h1 { font-size: clamp(38px, 12vw, 58px); }
  .ps-scene h2 { font-size: clamp(32px, 9vw, 48px); }
  .ps-lead { font-size: 22px; }
  .ps-compare { grid-template-columns: 1fr; }
  .ps-choices { grid-template-columns: 1fr; }
  .ps-visual { min-height: 230px; }
  .ps-progress { height: 7px; }
  .ps-bottom { grid-template-columns: auto 1fr auto; gap: 10px; padding-inline: 10px; }
  .ps-nav-btn { min-width: 56px; width: 56px; padding: 8px; font-size: 0; }
  .ps-nav-btn::first-letter { font-size: 22px; }
}

@media print {
  body.ps-present { overflow: visible; background: #fff; }
  .ps-deck { height: auto; }
  .ps-slide { position: relative; display: block !important; height: 100vh; break-after: page; }
  .ps-topbar, .ps-bottom, .ps-overview, .ps-notes-panel, .ps-help, .ps-toast { display: none !important; }
  .ps-step { opacity: 1; transform: none; }
}

/* 32차시 발표 시작 화면 */
body.ps-launch {
  min-height: 100%;
  margin: 0;
  background: #f5f7fc;
  color: var(--ps-ink);
  font-family: var(--ps-font);
  word-break: keep-all;
}

.pl-shell { width: min(1420px, calc(100% - 48px)); margin: 0 auto; }
.pl-nav { height: 72px; display: flex; align-items: center; gap: 18px; }
.pl-brand { margin-right: auto; color: var(--ps-ink); text-decoration: none; font-size: 20px; font-weight: 900; }
.pl-nav a:not(.pl-brand) { color: var(--ps-soft); text-decoration: none; font-size: 16px; font-weight: 750; }

.pl-hero {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  padding: clamp(54px, 7vw, 94px);
  border-radius: 36px;
  background: #172033;
  color: #fff;
  box-shadow: 0 28px 80px rgba(23, 32, 51, .18);
}

.pl-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: -180px;
  border: 85px solid rgba(126, 127, 255, .32);
  border-radius: 50%;
}

.pl-eyebrow { margin: 0 0 18px; color: #bfc0ff; font-size: 18px; font-weight: 850; letter-spacing: .06em; }
.pl-hero h1 { position: relative; z-index: 1; max-width: 12ch; margin: 0; font-size: clamp(52px, 6.6vw, 102px); line-height: 1.03; letter-spacing: -.055em; }
.pl-hero p { position: relative; z-index: 1; max-width: 38ch; margin: 24px 0 0; color: #d7dbea; font-size: clamp(21px, 2vw, 31px); line-height: 1.5; font-weight: 580; }
.pl-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pl-action { display: inline-flex; align-items: center; min-height: 56px; padding: 12px 22px; border-radius: 16px; background: #7e7fff; color: #fff; text-decoration: none; font-size: 18px; font-weight: 850; }
.pl-action.ghost { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.pl-resume[hidden] { display: none; }

.pl-guide { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.pl-guide li { padding: 8px 13px; border: 1px solid #dce1ed; border-radius: 999px; background: #fff; color: var(--ps-soft); font-size: 15px; font-weight: 760; }

.pl-phase { margin-top: 72px; }
.pl-phase-head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 22px; margin-bottom: 24px; }
.pl-phase-no { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--phase-soft, #eeeeff); color: var(--phase, #5b5ce2); font-size: 26px; font-weight: 900; }
.pl-phase-head h2 { margin: 0; font-size: clamp(31px, 3.2vw, 48px); letter-spacing: -.035em; }
.pl-phase-head p { grid-column: 2; margin: -12px 0 0; color: var(--ps-soft); font-size: 19px; line-height: 1.45; }

.pl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pl-card {
  position: relative;
  min-height: 230px;
  padding: 27px;
  overflow: hidden;
  border: 2px solid #e0e5ef;
  border-radius: 25px;
  background: #fff;
  color: var(--ps-ink);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(31, 42, 68, .055);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pl-card:hover { transform: translateY(-5px); border-color: var(--phase, #5b5ce2); box-shadow: 0 18px 38px rgba(31,42,68,.11); }
.pl-card::after { content: "→"; position: absolute; right: 24px; bottom: 21px; color: var(--phase, #5b5ce2); font-size: 26px; font-weight: 900; }
.pl-card-no { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 11px; border-radius: 999px; background: var(--phase-soft, #eeeeff); color: var(--phase, #5b5ce2); font-size: 15px; font-weight: 900; }
.pl-card h3 { margin: 20px 0 10px; font-size: clamp(23px, 1.8vw, 29px); line-height: 1.25; letter-spacing: -.025em; }
.pl-card p { max-width: 28ch; margin: 0; color: var(--ps-soft); font-size: 17px; line-height: 1.5; font-weight: 570; }
.pl-card-progress { position: absolute; inset: auto 0 0; width: 0; height: 6px; background: var(--phase, #5b5ce2); }
.pl-card.is-started .pl-card-no::after { content: " · 이어 보기"; }

.pl-footer { margin-top: 80px; padding: 34px 0 46px; border-top: 1px solid #dce1eb; color: var(--ps-soft); font-size: 15px; line-height: 1.6; }

@media (max-width: 980px) { .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pl-shell { width: min(100% - 26px, 1420px); }
  .pl-nav a:not(.pl-brand) { display: none; }
  .pl-hero { min-height: 440px; padding: 42px 26px; border-radius: 26px; }
  .pl-grid { grid-template-columns: 1fr; }
  .pl-phase { margin-top: 54px; }
  .pl-phase-head { grid-template-columns: 54px 1fr; }
  .pl-phase-no { width: 54px; height: 54px; }
}
