/* ============================================================
   pmc-exam-web · 남서울대학교 대학원 공공관리사 자격검정 시험
   01_UI_Mockup.html 의 디자인 토큰을 SPA 환경으로 이식
   ============================================================ */

:root {
  --navy-900: #0c1a32;
  --navy-800: #142a4f;
  --navy-700: #1c3a6e;
  --navy-600: #2a4d8a;
  --navy-100: #e8eef7;
  --navy-50:  #f4f7fc;
  --paper:    #fdfcf7;
  --ink:      #1a1a1a;
  --line:     #d8dde6;
  --line-dark:#3a4a66;
  --accent:   #c8102e;
  --accent-2: #1565c0;
  --warn:     #d97706;
  --ok:       #2e7d32;
  --shadow:   0 1px 2px rgba(12,26,50,.06), 0 4px 12px rgba(12,26,50,.06);

  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;
  --font-display: 'Bebas Neue', Impact, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #e6e9f0; font-family: var(--font-body); color: var(--ink); }
button { font-family: inherit; }
a { color: inherit; }

body { padding: 28px 18px 64px; min-height: 100vh; }

/* ----- 부트 로더 ----- */
.boot-loader {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  color: #5a6478;
}
.boot-spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid var(--navy-100);
  border-top-color: var(--navy-700);
  margin: 0 auto 18px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- 윈도우 프레임 ----- */
.window {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid #c8cfdc;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(12,26,50,.12), 0 2px 6px rgba(12,26,50,.08);
}
.titlebar {
  height: 32px;
  background: linear-gradient(180deg, #1c3a6e, #142a4f);
  display: flex; align-items: center; padding: 0 12px; color: #fff;
  font-size: 12px; letter-spacing: .02em;
}
.titlebar .dots { display: flex; gap: 6px; margin-right: 12px; }
.titlebar .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.titlebar .title { font-weight: 500; }
.titlebar .uni-tag {
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(255,255,255,0.55);
  margin-right: 10px;
  padding-right: 10px;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.titlebar .ctrls {
  margin-left: auto; display: flex; gap: 18px;
  font-family: var(--font-mono); font-size: 11px; opacity: .8;
}

/* ----- 학교 배너 (시작 화면 위) ----- */
.uni-banner {
  max-width: 1440px;
  margin: 0 auto 16px;
  padding: 18px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--navy-900);
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: 4px;
}
.uni-banner .logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .04em;
  color: var(--navy-900);
  border: 2.5px solid var(--navy-900);
  padding: 6px 18px;
  border-radius: 4px;
  white-space: nowrap;
}
.uni-banner .text {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  line-height: 1.5;
}
.uni-banner .text .ko {
  font-size: 17px; font-weight: 700; color: var(--navy-900); letter-spacing: -.01em;
}
.uni-banner .text .en {
  font-size: 11px; color: #6c7689; letter-spacing: .18em;
  text-transform: uppercase; margin-top: 4px;
}
.uni-banner .badge {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 12px;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

/* ============ 시작 화면 ============ */
.start-screen {
  padding: 64px 56px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 70%, #f0eee5 100%);
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.start-screen::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 50%;
  background-image:
    linear-gradient(rgba(20,42,79,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,42,79,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.start-left { position: relative; z-index: 1; }
.start-uni {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.start-uni .logo {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .04em;
  color: var(--navy-900);
  border: 2px solid var(--navy-900);
  padding: 5px 12px;
  border-radius: 3px;
  white-space: nowrap;
}
.start-uni .txt .ko {
  font-size: 13px; font-weight: 700; color: var(--navy-900);
}
.start-uni .txt .en {
  font-size: 9.5px; color: #6c7689;
  letter-spacing: .16em; text-transform: uppercase; margin-top: 2px;
}

.start-left .crest {
  width: 72px; height: 72px;
  border: 3px solid var(--navy-900); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  font-family: var(--font-display);
  color: var(--navy-900); margin-bottom: 24px;
}
.start-left .crest b { font-size: 22px; letter-spacing: .04em; line-height: 1; }
.start-left .crest small { font-size: 9px; letter-spacing: .18em; margin-top: 2px; }

.start-left .kicker {
  font-size: 12px; letter-spacing: .24em;
  color: var(--accent); font-weight: 600;
  text-transform: uppercase; margin-bottom: 14px;
}
.start-left h1 {
  font-size: 44px; line-height: 1.15;
  color: var(--navy-900);
  font-weight: 800; letter-spacing: -.025em; margin-bottom: 8px;
}
.start-left h1 .stamp {
  color: var(--accent); font-family: var(--font-display);
  font-weight: 400; letter-spacing: .04em;
}
.start-left .subtitle {
  font-size: 17px; color: #5a6478; margin-bottom: 28px; font-weight: 500;
}
.start-left .meta {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 24px 32px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.start-left .meta .m label {
  display: block; font-size: 10px; letter-spacing: .18em;
  color: #6c7689; text-transform: uppercase; margin-bottom: 6px; font-weight: 600;
}
.start-left .meta .m b {
  font-size: 18px; color: var(--navy-900); font-weight: 700;
  font-family: var(--font-mono);
}
.start-left .meta .m b.kor { font-family: var(--font-body); }
.start-left .notice {
  font-size: 13px; color: #5a6478; line-height: 1.7;
}

.start-form {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 36px 32px;
  border-radius: 4px;
  box-shadow: 0 6px 32px rgba(12,26,50,.08);
  position: relative; z-index: 1;
}
.start-form h3 {
  font-size: 13px; letter-spacing: .16em; color: var(--accent);
  font-weight: 700; text-transform: uppercase; margin-bottom: 6px;
}
.start-form h2 {
  font-size: 22px; color: var(--navy-900); font-weight: 700;
  margin-bottom: 24px; letter-spacing: -.01em;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-size: 11px; letter-spacing: .14em;
  color: #5a6478; text-transform: uppercase;
  margin-bottom: 8px; font-weight: 600;
}
.form-row input {
  width: 100%; padding: 14px 14px;
  font-size: 15px; border: 1px solid var(--line);
  background: var(--navy-50); font-family: var(--font-body);
  color: var(--ink); border-radius: 2px;
}
.form-row input:focus {
  outline: 2px solid var(--navy-700); outline-offset: -1px; background: #fff;
}
.form-row input.mono { font-family: var(--font-mono); letter-spacing: .04em; }
.form-row input[readonly] {
  background: #f4f7fc; color: #6c7689;
}
.form-row .err {
  display: none; color: var(--accent); font-size: 12px; margin-top: 6px;
}
.form-row.invalid .err { display: block; }
.form-row.invalid input { border-color: var(--accent); background: #fff5f5; }

.form-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  gap: 16px;
}
.form-foot .terms {
  font-size: 12px; color: #5a6478; line-height: 1.5; flex: 1;
}
.form-foot .btn { padding: 13px 28px; font-size: 14px; }

.start-error {
  margin-top: 16px; padding: 12px 14px;
  background: #fff5f5; border: 1px solid var(--accent);
  border-left-width: 4px;
  color: var(--accent); font-size: 13px; border-radius: 3px;
  display: none;
  white-space: pre-line; line-height: 1.6;
}
.start-error.visible { display: block; }

/* ============ 시험 화면 ============ */
.header {
  background: var(--navy-900); color: #fff;
  padding: 18px 28px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 32px;
  border-bottom: 3px solid var(--accent);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .header-uni {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .04em;
  color: #fff;
  border: 2px solid #fff;
  padding: 4px 10px;
  border-radius: 3px;
  margin-right: 14px;
  padding-right: 10px;
  white-space: nowrap;
}
.brand .seal {
  width: 44px; height: 44px;
  border: 2px solid #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px;
  letter-spacing: .05em; line-height: 1;
  text-align: center; flex-direction: column;
}
.brand .seal small {
  font-size: 8px; letter-spacing: .2em; opacity: .85; margin-top: 2px;
}
.brand h1 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.brand p {
  font-size: 11px; opacity: .7; letter-spacing: .18em;
  text-transform: uppercase; margin-top: 2px;
}

.subject-progress {
  display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.subject-pill {
  padding: 7px 18px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 2px;
  font-size: 13px; letter-spacing: .02em;
  color: rgba(255,255,255,.55);
  position: relative;
}
.subject-pill.done {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.15);
}
.subject-pill.done::after {
  content: "✓";
  position: absolute; top: -7px; right: -7px;
  width: 18px; height: 18px;
  background: var(--ok); color: #fff; border-radius: 50%;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.subject-pill.active {
  background: #fff; color: var(--navy-900);
  border-color: #fff; font-weight: 700;
  box-shadow: 0 0 0 3px rgba(255,255,255,.15);
}
.subject-arrow { color: rgba(255,255,255,.3); font-size: 11px; }

.timer {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.06);
  padding: 8px 18px 8px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.12);
}
.timer .label {
  font-size: 10px; letter-spacing: .2em; opacity: .65;
  line-height: 1.1; text-transform: uppercase;
}
.timer .label b {
  display: block; font-size: 11px; letter-spacing: .05em;
  color: #fff; opacity: .9; font-weight: 500; margin-top: 2px;
}
.timer .clock {
  font-family: var(--font-mono); font-weight: 600;
  font-size: 34px; letter-spacing: .04em; color: #fff;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.timer.warning .clock {
  color: var(--accent); animation: pulse 1.2s ease-in-out infinite;
}
.timer.danger .clock {
  color: var(--accent); animation: pulse 0.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .55; } }

/* 시험 본문 그리드 */
.body {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 780px;
}

/* ----- 좌측: 문제 영역 ----- */
.left {
  padding: 28px 32px 24px;
  border-right: 1px solid var(--line);
  background: var(--paper);
  display: flex; flex-direction: column;
}
.question-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; border-bottom: 2px solid var(--ink);
  margin-bottom: 22px;
}
.qnum { display: flex; align-items: baseline; gap: 14px; }
.qnum .num {
  font-family: var(--font-display);
  font-size: 48px; line-height: .9;
  color: var(--navy-900); letter-spacing: .02em;
}
.qnum .of { font-size: 13px; color: #6c7689; letter-spacing: .05em; }
.qnum .of b { color: var(--navy-800); }
.qmeta-r { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag {
  font-size: 11px; padding: 4px 10px;
  border: 1px solid var(--line); color: #5a6478;
  letter-spacing: .05em; border-radius: 2px; background: #fff;
}
.tag.cat {
  border-color: var(--navy-700); color: var(--navy-700); font-weight: 600;
}

.question-text {
  font-size: 17px; line-height: 1.75; color: var(--ink);
  padding: 8px 4px 24px; font-weight: 500; letter-spacing: -.005em;
  white-space: pre-wrap;
}
.question-text .leadin {
  color: #6c7689; font-size: 14px; display: block;
  margin-bottom: 10px; letter-spacing: .04em; font-weight: 400;
}

.choices { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.choice {
  display: grid; grid-template-columns: 36px 1fr;
  gap: 14px; align-items: flex-start;
  padding: 14px 18px;
  border: 1px solid var(--line); background: #fff;
  cursor: pointer; transition: all .15s ease;
  border-radius: 3px;
  font: inherit; text-align: left; width: 100%;
}
.choice:hover { border-color: var(--navy-600); background: var(--navy-50); }
.choice .bullet {
  width: 28px; height: 28px;
  border: 1.5px solid #aab2c2; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: #6c7689; flex-shrink: 0; background: #fff;
}
.choice .text {
  font-size: 15px; line-height: 1.55; color: #1f2937; padding-top: 3px;
  white-space: pre-wrap;
}
.choice.selected {
  border-color: var(--navy-900); background: #fff;
  box-shadow: inset 0 0 0 1px var(--navy-900);
}
.choice.selected .bullet {
  background: var(--navy-900); border-color: var(--navy-900); color: #fff;
}
.choice.selected .text { color: var(--navy-900); font-weight: 600; }

.left-foot {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 11px 22px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line);
  background: #fff; color: var(--navy-900);
  cursor: pointer; letter-spacing: .02em;
  transition: all .15s; border-radius: 2px;
  font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover:not(:disabled) { border-color: var(--navy-900); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary {
  background: var(--navy-900); color: #fff; border-color: var(--navy-900);
}
.btn.primary:hover:not(:disabled) { background: var(--navy-800); }
.btn.danger {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn.danger:hover:not(:disabled) { background: #a30d25; }
.btn .arrow { font-family: var(--font-mono); font-size: 13px; }
.btn-group { display: flex; gap: 8px; }

/* ----- 우측 패널 ----- */
.right {
  background: var(--navy-50);
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.panel { background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.panel h3 {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: var(--navy-900);
  padding: 8px 14px; font-weight: 600;
}
.panel .body-pad { padding: 14px 16px; }

.exam-info { display: flex; flex-direction: column; gap: 10px; }
.info-row {
  display: grid; grid-template-columns: 78px 1fr;
  align-items: center; gap: 10px; font-size: 13px;
}
.info-row label {
  color: #5a6478; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 600;
  border-right: 1px solid var(--line); padding-right: 10px;
}
.info-row .value {
  font-family: var(--font-mono); font-size: 14px;
  color: var(--ink); font-weight: 500; letter-spacing: .02em;
  word-break: break-all;
}
.info-row .value.kor { font-family: var(--font-body); font-size: 15px; font-weight: 600; }

/* OMR */
.omr-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: var(--navy-50);
}
.omr-head .stat { font-size: 12px; color: #5a6478; letter-spacing: .05em; }
.omr-head .stat b {
  color: var(--navy-900); font-family: var(--font-mono); font-size: 14px;
}
.omr-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0; padding: 6px 8px 12px;
}
.omr-row {
  display: grid; grid-template-columns: 30px repeat(4, 1fr);
  align-items: center;
  padding: 5px 8px;
  border-bottom: 1px dashed #e8eaef;
  font-size: 12px;
}
.omr-row .qn {
  font-family: var(--font-mono); font-weight: 600;
  font-size: 12px; color: #5a6478; text-align: center;
}
.omr-row.current { background: #fffbe6; }
.omr-row.current .qn { color: var(--accent); }
.omr-bubble {
  width: 22px; height: 22px;
  border: 1.4px solid #aab2c2; border-radius: 50%;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px;
  color: #aab2c2; cursor: pointer; font-weight: 600;
  background: #fff; transition: all .12s;
  border: 1.4px solid #aab2c2;
}
.omr-bubble:hover { border-color: var(--navy-600); }
.omr-bubble.filled {
  background: var(--navy-900); border-color: var(--navy-900); color: #fff;
}

.legend {
  display: flex; gap: 12px;
  padding: 10px 14px; border-top: 1px solid var(--line);
  font-size: 11px; color: #5a6478;
}
.legend span { display: flex; align-items: center; gap: 5px; }
.legend .sw { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend .sw.fill { background: var(--navy-900); }
.legend .sw.empty { border: 1.4px solid #aab2c2; }
.legend .sw.cur { background: #fffbe6; border: 1px solid #e8c000; }

.submit-area {
  background: #fff; border: 1px solid var(--line);
  border-radius: 3px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.submit-area .progress-text {
  display: flex; justify-content: space-between;
  font-size: 12px; color: #5a6478;
}
.submit-area .progress-text b {
  font-family: var(--font-mono); color: var(--navy-900); font-size: 14px;
}
.progress-bar {
  height: 6px; background: var(--navy-50); overflow: hidden; border-radius: 1px;
}
.progress-bar .fill { height: 100%; background: var(--navy-900); transition: width .25s ease; }

.submit-note {
  font-size: 11px; color: #6c7689;
  text-align: center; line-height: 1.5;
}

/* ============ 과목 전환 화면 ============ */
.between-screen {
  padding: 80px 56px;
  background: var(--paper);
  text-align: center;
  min-height: 560px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.between-screen .stamp {
  width: 120px; height: 120px;
  border: 4px solid var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: var(--accent); font-family: var(--font-display);
  margin-bottom: 32px;
  transform: rotate(-6deg);
  position: relative;
}
.between-screen .stamp::after {
  content: ""; position: absolute; inset: -12px;
  border: 1px dashed var(--accent); border-radius: 50%; opacity: .4;
}
.between-screen .stamp b { font-size: 28px; letter-spacing: .05em; line-height: 1; }
.between-screen .stamp small {
  font-size: 11px; letter-spacing: .2em; margin-top: 4px;
}
.between-screen h1 {
  font-size: 36px; color: var(--navy-900); font-weight: 800;
  margin-bottom: 10px; letter-spacing: -.02em;
}
.between-screen p {
  font-size: 16px; color: #5a6478; margin-bottom: 32px;
  max-width: 520px; line-height: 1.65;
}
.summary-card {
  background: var(--navy-50); border: 1px solid var(--line);
  padding: 24px 36px; display: flex; gap: 48px;
  margin-bottom: 36px; border-radius: 4px;
  flex-wrap: wrap; justify-content: center;
}
.summary-card .item label {
  display: block; font-size: 10px; letter-spacing: .18em;
  color: #6c7689; text-transform: uppercase;
  margin-bottom: 6px; font-weight: 600;
}
.summary-card .item b {
  font-size: 24px; font-family: var(--font-mono);
  color: var(--navy-900); font-weight: 700;
}
.summary-card .item.score b { color: var(--ok); }
.summary-card .item.fail b { color: var(--accent); }
.next-info {
  border-left: 3px solid var(--accent); padding: 8px 18px;
  text-align: left; background: #fffbe6;
  font-size: 13px; color: #5a6478; line-height: 1.6;
  margin-bottom: 24px; max-width: 600px;
}
.next-info b { color: var(--navy-900); }

/* ============ 결과 화면 ============ */
.result-screen {
  padding: 48px 56px;
  background: var(--paper);
  min-height: 560px;
}
.result-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 40px;
}
.result-kicker {
  font-size: 11px; letter-spacing: .2em; color: var(--accent);
  font-weight: 700; text-transform: uppercase; margin-bottom: 12px;
}
.result-title {
  font-size: 40px; color: var(--navy-900); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px;
}
.result-title .pass { color: var(--ok); }
.result-title .fail { color: var(--accent); }
.result-meta {
  font-size: 15px; color: #5a6478; margin-bottom: 32px;
}
.result-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.result-table thead tr {
  background: var(--navy-900); color: #fff;
}
.result-table th {
  padding: 12px 14px; text-align: left;
  font-size: 11px; letter-spacing: .14em; font-weight: 600;
  text-transform: uppercase;
}
.result-table th.center { text-align: center; }
.result-table tbody { font-family: var(--font-mono); }
.result-table tbody tr { border-bottom: 1px solid var(--line); }
.result-table tbody tr:last-child { border-bottom: 2px solid var(--navy-900); }
.result-table td { padding: 14px; }
.result-table td.subject { font-family: var(--font-body); font-weight: 600; }
.result-table td.center { text-align: center; }
.result-table td.score { font-weight: 600; }
.result-table td.pass { color: var(--ok); font-weight: 600; }
.result-table td.fail { color: var(--accent); font-weight: 600; }
.result-table tfoot tr { background: var(--navy-50); }
.result-table tfoot td {
  padding: 16px 14px; font-family: var(--font-body); font-weight: 700;
  color: var(--navy-900);
}
.result-table tfoot td.score { font-size: 18px; }

.result-actions {
  display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap;
}

.score-card {
  background: var(--navy-900); color: #fff;
  padding: 32px 28px; border-radius: 4px;
  position: relative; overflow: hidden;
}
.score-card .label {
  font-size: 11px; letter-spacing: .18em;
  opacity: .65; text-transform: uppercase; margin-bottom: 14px;
}
.score-card .total {
  font-family: var(--font-display);
  font-size: 88px; line-height: .9;
  letter-spacing: .02em;
}
.score-card .total small { font-size: 24px; opacity: .5; }
.score-card .divider {
  height: 1px; background: rgba(255,255,255,.18); margin: 20px 0;
}
.score-card .stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; font-size: 12px;
}
.score-card .stats .l {
  opacity: .6; letter-spacing: .1em;
  text-transform: uppercase; font-size: 10px; margin-bottom: 4px;
}
.score-card .stats b {
  font-family: var(--font-mono); font-size: 18px;
}
.score-card .deco {
  position: absolute; bottom: -30px; right: -30px;
  width: 140px; height: 140px;
  border: 8px solid rgba(255,255,255,.06); border-radius: 50%;
}

.pass-criteria {
  margin-top: 18px; padding: 18px;
  border: 1px dashed var(--line);
  font-size: 12px; color: #5a6478; line-height: 1.7;
  border-radius: 3px;
}
.pass-criteria b { color: var(--navy-900); }

.result-cert {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 2px solid var(--navy-900);
  display: flex; align-items: center; gap: 20px;
}
.result-cert .logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .04em;
  color: var(--navy-900);
  border: 2px solid var(--navy-900);
  padding: 6px 14px;
  border-radius: 4px;
  white-space: nowrap;
}
.result-cert .txt { flex: 1; }
.result-cert .txt .org {
  font-size: 14px; font-weight: 700; color: var(--navy-900);
}
.result-cert .txt .sub {
  font-size: 11px; color: #6c7689;
  letter-spacing: .16em; text-transform: uppercase; margin-top: 3px;
}
.result-cert .seal-stamp {
  width: 84px; height: 84px;
  border: 2.5px solid var(--accent); border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--accent); font-weight: 800;
  font-size: 11px; letter-spacing: .1em;
  transform: rotate(-8deg);
  text-align: center; line-height: 1.1;
}

/* ============ 모달 ============ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(12,26,50,.55);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: #fff; border-radius: 6px; max-width: 480px; width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(12,26,50,.32);
  overflow: hidden;
}
.modal-head {
  background: var(--navy-900); color: #fff;
  padding: 14px 20px; font-size: 15px; font-weight: 700;
  letter-spacing: -.01em;
  border-bottom: 3px solid var(--accent);
}
.modal-body { padding: 24px 20px; font-size: 14px; color: #1f2937; line-height: 1.7; }
.modal-foot {
  padding: 14px 20px; border-top: 1px solid var(--line);
  display: flex; gap: 8px; justify-content: flex-end;
  background: var(--navy-50);
}

/* ============ 반응형 ============ */
@media (max-width: 1100px) {
  .body { grid-template-columns: 1fr; }
  .right { border-top: 1px solid var(--line); }
  .header {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .start-screen { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; }
  .start-screen::before { display: none; }
  .start-left h1 { font-size: 32px; }
  .result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { padding: 12px 8px 32px; }
  .uni-banner { padding: 14px 18px; gap: 14px; flex-wrap: wrap; }
  .uni-banner .badge { display: none; }
  .left { padding: 22px 18px 18px; }
  .right { padding: 20px 18px; }
  .question-text { font-size: 16px; }
  .qnum .num { font-size: 36px; }
  .timer .clock { font-size: 26px; }
  .between-screen { padding: 56px 24px; }
  .between-screen h1 { font-size: 28px; }
  .result-screen { padding: 28px 18px; }
  .result-title { font-size: 28px; }
  .score-card .total { font-size: 64px; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; justify-content: center; }
  .left-foot { flex-direction: column; align-items: stretch; }
  .btn-group { width: 100%; }
  .btn-group .btn { flex: 1; justify-content: center; }
  .summary-card { gap: 24px; padding: 20px 24px; }
}
