/* =============================================================
   캠퍼스 매치 · CAMPUS MATCH — Toss 감성 캠퍼스 필름 에디션
   · 깔끔한 화이트 카드 · 큼직한 타이포 · 부드러운 스프링 전환
   · 대학 상징색이 페이지 전체 배경·강조색으로 부드럽게 전환
   · 모바일 우선 (390px) / 데스크톱 2단 (1024px~)
   ============================================================= */

:root {
  --ink: #191f28;
  --ink-2: #333d4b;
  --muted: #6b7684;
  --muted-2: #8b95a1;
  --line: #e5e8eb;
  --line-2: #d1d6db;
  --surface: #ffffff;
  --surface-2: #f2f4f6;
  --surface-3: #f9fafb;
  --bg: #f7f8fa;

  --uni: #3182f6;
  --uni-deep: #1b64da;
  --uni-soft: #e8f3ff;
  --uni-glow: #66a9ff;
  --uni-accent: #ffd166;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(23, 31, 40, 0.03), 0 8px 24px rgba(23, 31, 40, 0.06);
  --shadow-lg: 0 2px 4px rgba(23, 31, 40, 0.04), 0 18px 48px rgba(23, 31, 40, 0.1);
  --spring: cubic-bezier(0.22, 1, 0.36, 1);

  --sans: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR",
    "Noto Sans CJK KR", "Malgun Gothic", sans-serif;
  --mono: "SFMono-Regular", Menlo, "IBM Plex Mono", "D2Coding", "Noto Sans Mono CJK KR", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #04060c; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.014em;
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, canvas { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in srgb, var(--uni) 22%, transparent); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--uni) 55%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ---------------- 배경 오로라 (대학 상징색) ---------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -20%, color-mix(in srgb, var(--uni-soft) 70%, #ffffff) 0%, transparent 60%),
    var(--bg);
  transition: background 0.6s ease;
}
.bg__a, .bg__b {
  position: absolute;
  width: 78vmax;
  height: 78vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  transition: opacity 0.8s ease;
}
.bg__a {
  top: -34vmax;
  right: -28vmax;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--uni) 34%, transparent), transparent 72%);
}
.bg__b {
  bottom: -44vmax;
  left: -32vmax;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--uni-glow) 26%, transparent), transparent 70%);
}
body[data-mode="quiz"] .bg__a { opacity: 0.34; }
body[data-mode="quiz"] .bg__b { opacity: 0.26; }
body[data-mode="compare"] .bg__a { opacity: 0.4; }
body[data-mode="codex"] .bg__a { opacity: 0.3; }

/* ---------------- 상단 바 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 248, 250, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 18px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  background: var(--uni);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.05em;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--uni) 34%, transparent);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
.brand__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.brand__txt b { font-size: 15.5px; font-weight: 800; letter-spacing: -0.04em; }
.brand__txt small {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  white-space: nowrap;
}
.topbar__right { display: flex; align-items: center; gap: 6px; flex: none; }
.pill-free {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 31, 40, 0.04);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
.pill-free i { width: 6px; height: 6px; border-radius: 50%; background: #12b76a; }

/* ---------------- 탭 ---------------- */
.tabs {
  position: sticky;
  top: 54px;
  z-index: 39;
  padding: 0 18px 10px;
  background: linear-gradient(rgba(247, 248, 250, 0.94) 62%, rgba(247, 248, 250, 0));
  backdrop-filter: blur(6px);
}
.tabs__in {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 720px;
  margin: 0 auto;
  padding: 4px;
  border-radius: 16px;
  background: var(--surface-2);
}
.tab {
  position: relative;
  min-height: 42px;
  padding: 0 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: background 0.22s var(--spring), color 0.22s ease, box-shadow 0.22s ease, transform 0.22s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.tab b { display: block; font-size: 8.5px; font-family: var(--mono); font-weight: 600; letter-spacing: 0.06em; color: var(--muted-2); margin-top: 1px; }
.tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(23, 31, 40, 0.06), 0 4px 12px rgba(23, 31, 40, 0.06);
}
.tab[aria-selected="true"] b { color: var(--uni); }
.tab:active { transform: scale(0.97); }

/* ---------------- 레이아웃 ---------------- */
.main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6px 18px 40px;
}
.panel { animation: panelIn 0.4s var(--spring) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero { padding: 10px 2px 18px; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--uni) 10%, #fff);
  color: var(--uni-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: background 0.5s ease, color 0.5s ease;
}
.hero__kicker::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--uni); }
.hero__title {
  margin: 0;
  font-size: clamp(30px, 8.4vw, 52px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.055em;
}
.hero__title em { font-style: normal; color: var(--uni); transition: color 0.5s ease; }
.hero__desc {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.hero__desc b { color: var(--ink-2); font-weight: 800; }
.hero__types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.hero__types li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 31, 40, 0.04);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: -0.03em;
}
.hero__types li::before { content: ""; width: 7px; height: 7px; border-radius: 3px; background: var(--c); }

.hero__note {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero__note-k {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.axis-table { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.axis-table li {
  display: grid;
  grid-template-columns: 34px 14px 34px 1fr;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  letter-spacing: -0.02em;
}
.axis-table b { font-weight: 800; color: var(--ink); }
.axis-table i { font-style: normal; font-size: 9px; color: var(--muted-2); text-align: center; }
.axis-table strong { font-weight: 600; color: var(--muted); }
.axis-table em { font-style: normal; font-size: 10.5px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__note-fine { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--muted-2); }

/* ---------------- 카드 공통 ---------------- */
.card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* ---------------- 퀴즈 ---------------- */
.quiz { padding: 20px 18px 16px; position: relative; overflow: hidden; }
.quiz::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--uni), var(--uni-glow));
  transition: background 0.5s ease;
}
.quiz__top { display: flex; align-items: center; gap: 10px; }
.quiz__no { margin: 0; display: flex; align-items: baseline; gap: 3px; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.quiz__no b { font-size: 20px; font-weight: 800; color: var(--uni); letter-spacing: -0.04em; transition: color 0.5s ease; }
.steps { display: flex; gap: 3px; flex: 1; }
.steps i {
  height: 4px;
  flex: 1;
  border-radius: 99px;
  background: var(--surface-2);
  transition: background 0.35s var(--spring), transform 0.35s var(--spring);
}
.steps i.is-done { background: color-mix(in srgb, var(--uni) 45%, #fff); }
.steps i.is-now { background: var(--uni); transform: scaleY(1.5); }
.quiz__badge {
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--uni) 9%, #fff);
  font-size: 10px;
  font-weight: 800;
  color: var(--uni-deep);
  white-space: nowrap;
  transition: background 0.4s ease, color 0.4s ease;
}
.quiz__q {
  margin: 16px 0 0;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -0.05em;
  word-break: keep-all;
  min-height: 60px;
}
.quiz__hint { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); word-break: keep-all; }

.opts { display: grid; gap: 8px; margin-top: 16px; }
.opt {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 0;
  border-radius: 16px;
  background: var(--surface-2);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s var(--spring), box-shadow 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { background: #e9edf1; }
.opt:active { transform: scale(0.985); }
.opt__key {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 9px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.opt__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.opt__label { font-size: 15px; font-weight: 700; line-height: 1.34; letter-spacing: -0.035em; word-break: keep-all; }
.opt__sub { font-size: 11.5px; color: var(--muted); letter-spacing: -0.02em; line-height: 1.3; word-break: keep-all; }
.opt__tick {
  flex: none;
  width: 18px;
  opacity: 0;
  font-size: 14px;
  font-weight: 900;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s var(--spring);
}
.opt.is-picked {
  background: var(--uni);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--uni) 28%, transparent);
  transform: translateY(-1px);
}
.opt.is-picked .opt__key { background: rgba(255, 255, 255, 0.2); color: #fff; }
.opt.is-picked .opt__sub { color: rgba(255, 255, 255, 0.72); }
.opt.is-picked .opt__tick { opacity: 1; transform: scale(1); color: var(--uni-accent); }

.quiz__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; min-height: 22px; }
.quiz__back {
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.quiz__back:hover { color: var(--ink); }
.quiz__fine { margin: 0 0 0 auto; font-size: 10.5px; color: var(--muted-2); }
.quiz__tilt {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface-3);
  font-size: 11.5px;
  color: var(--muted);
  word-break: keep-all;
}
.quiz__tilt b { color: var(--uni-deep); font-weight: 800; }

/* ---------------- 결과 ---------------- */
.result { display: grid; gap: 14px; animation: rise 0.5s var(--spring) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* 판정 카드 */
.verdict { padding: 22px 18px 18px; position: relative; overflow: hidden; }
.verdict::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--uni) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.verdict__k { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.verdict__name {
  margin: 2px 0 0;
  font-size: clamp(38px, 11vw, 56px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.07em;
  color: var(--uni);
  transition: color 0.5s ease;
}
.verdict__award { margin: 8px 0 0; font-size: 15px; font-weight: 800; color: var(--ink-2); letter-spacing: -0.03em; word-break: keep-all; }
.verdict__uni {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.verdict__uni span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: var(--surface-2); font-weight: 700; color: var(--ink-2); }
.verdict__uni i { font-style: normal; color: var(--muted-2); font-weight: 500; }

.punch {
  margin: 16px 0 0;
  padding: 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--uni) 7%, #fff);
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.04em;
  word-break: keep-all;
  transition: background 0.5s ease;
}
.punch small { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: -0.02em; }

.sloganbox { margin: 16px 0 0; padding: 18px 16px; border-radius: 18px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.sloganbox::before {
  content: "";
  position: absolute;
  inset: auto -30% -120% 40%;
  height: 220px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--uni) 70%, transparent), transparent 72%);
  opacity: 0.55;
}
.sloganbox__k { position: relative; margin: 0; font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.5); }
.sloganbox__q {
  position: relative;
  margin: 8px 0 0;
  font-size: clamp(20px, 5.6vw, 30px);
  font-weight: 900;
  line-height: 1.34;
  letter-spacing: -0.055em;
  word-break: keep-all;
}
.sloganbox__q::before { content: "“"; color: var(--uni-accent); }
.sloganbox__q::after { content: "”"; color: var(--uni-accent); }
.sloganbox__src { position: relative; margin: 8px 0 0; font-size: 10.5px; color: rgba(255, 255, 255, 0.55); letter-spacing: -0.01em; word-break: keep-all; }

.stats { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.stat { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 3px 8px; }
.stat__k { margin: 0; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.stat__v { margin: 0; font-family: var(--mono); font-size: 15px; font-weight: 800; color: var(--uni); }
.stat__bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.stat__bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--uni), var(--uni-glow)); transition: width 1s var(--spring); }

.match { display: grid; gap: 8px; margin-top: 16px; }
.match__cell { padding: 13px 14px; border-radius: 16px; background: var(--surface-3); }
.match__cell--best { background: #f1f8f4; }
.match__cell--worst { background: #fdf3f3; }
.match__k { margin: 0; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; color: var(--muted); }
.match__v { margin: 4px 0 0; font-size: 14.5px; font-weight: 900; letter-spacing: -0.04em; }
.match__line { margin: 3px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.45; word-break: keep-all; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 52px;
  padding: 0 12px;
  border: 0;
  border-radius: 16px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: transform 0.18s var(--spring), background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn--ghost { background: var(--surface-2); color: var(--ink); }
.btn--ghost:hover { background: #e9edf1; }
.btn--solid { background: var(--uni); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--uni) 26%, transparent); }
.btn--solid:hover { background: var(--uni-deep); }
.btn:active { transform: scale(0.98); }
.btn.is-done { background: #12b76a; box-shadow: 0 8px 20px rgba(18, 183, 106, 0.26); }
.cert-note { margin: 9px 0 0; font-size: 10.5px; color: var(--muted-2); text-align: center; word-break: keep-all; }

/* 필수템 */
.items { padding: 20px 18px 16px; }
.items__kick { margin: 0; font-size: 10.5px; font-weight: 800; color: var(--uni); letter-spacing: 0.02em; }
.items__kick span { color: var(--muted-2); font-family: var(--mono); }
.items__title { margin: 4px 0 0; font-size: 21px; font-weight: 900; letter-spacing: -0.05em; }
.items__desc { margin: 5px 0 0; font-size: 12px; color: var(--muted); word-break: keep-all; }
.item-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.item__link {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-3);
  transition: background 0.18s ease, transform 0.18s var(--spring);
}
.item__link:hover { background: var(--surface-2); transform: translateY(-1px); }
.item__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; font-size: 20px; box-shadow: 0 1px 2px rgba(23, 31, 40, 0.05); }
.item__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.item__name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.3; }
.item__ad { padding: 1px 4px; border-radius: 4px; background: var(--surface-2); font-family: var(--mono); font-size: 8px; font-weight: 700; font-style: normal; letter-spacing: 0.05em; color: var(--muted); }
.item__note { font-size: 11.5px; color: var(--muted); line-height: 1.4; word-break: keep-all; }
.item__price { font-family: var(--mono); font-size: 11.5px; font-weight: 800; color: var(--ink); white-space: nowrap; text-align: right; }
.item__price::after { content: " →"; color: var(--uni); }
.items__note { margin: 10px 0 0; font-size: 10px; color: var(--muted-2); word-break: keep-all; }
.items__disclosure { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-3); font-size: 10px; line-height: 1.5; color: var(--muted); word-break: keep-all; }

/* 생존 체크리스트 */
.check { padding: 20px 18px 18px; }
.check__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.check__title { margin: 0; font-size: 19px; font-weight: 900; letter-spacing: -0.045em; }
.check__desc { margin: 4px 0 0; font-size: 12px; color: var(--muted); word-break: keep-all; }
.check__count { flex: none; font-family: var(--mono); font-size: 12px; font-weight: 800; color: var(--uni); }
.check__list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.check__item { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 14px; background: var(--surface-3); text-align: left; cursor: pointer; transition: background 0.18s ease; }
.check__item:hover { background: var(--surface-2); }
.check__box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); color: transparent; font-size: 12px; font-weight: 900; transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease; }
.check__item.is-on .check__box { background: var(--uni); box-shadow: inset 0 0 0 1.5px var(--uni); color: #fff; }
.check__txt { font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.42; letter-spacing: -0.02em; word-break: keep-all; }
.check__item.is-on .check__txt { color: var(--muted-2); text-decoration: line-through; }
.check__tag { display: inline-block; margin-left: 5px; padding: 1px 5px; border-radius: 4px; background: color-mix(in srgb, var(--uni) 10%, #fff); color: var(--uni-deep); font-size: 9px; font-weight: 800; vertical-align: 1px; }

/* 자세히 */
.more { overflow: hidden; padding: 0; }
.more > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 800; letter-spacing: -0.03em; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted-2); }
.more[open] > summary em { color: var(--uni); }
.more__body { padding: 0 18px 20px; }
.block-title { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 8px; font-size: 12px; font-weight: 900; letter-spacing: -0.02em; }
.block-title:first-child { margin-top: 0; }
.block-title span { font-family: var(--mono); font-size: 8.5px; font-weight: 500; letter-spacing: 0.08em; color: var(--muted-2); }
.about p { margin: 0 0 9px; font-size: 13.5px; line-height: 1.68; color: var(--ink-2); word-break: keep-all; }
.day, .caution { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-3); font-size: 12.5px; line-height: 1.65; color: var(--ink-2); word-break: keep-all; }
.caution { background: #fdf3f3; }
.axes { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.axes li { display: grid; grid-template-columns: 26px 44px 1fr; gap: 8px; align-items: center; font-size: 12px; }
.axes b { display: grid; place-items: center; height: 24px; border-radius: 8px; background: var(--surface-2); font-family: var(--mono); font-size: 10.5px; color: var(--ink); }
.axes span { font-weight: 800; color: var(--ink-2); }
.axes em { font-style: normal; color: var(--muted); }
.clubs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.clubs li { padding: 5px 10px; border-radius: 999px; background: var(--surface-2); font-size: 11.5px; font-weight: 700; letter-spacing: -0.02em; }
.quote-box { margin: 18px 0 0; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--uni) 7%, #fff); font-size: 13px; font-weight: 800; color: var(--ink-2); text-align: center; letter-spacing: -0.03em; }
.again { display: block; width: 100%; margin-top: 4px; padding: 15px; border: 0; border-radius: 16px; background: var(--surface-2); font-size: 13.5px; font-weight: 800; color: var(--ink-2); cursor: pointer; transition: background 0.2s ease; }
.again:hover { background: #e9edf1; }

/* ---------------- 궁합 비교 ---------------- */
.panel-head { padding: 12px 2px 18px; }
.panel-head h2 { margin: 0; font-size: clamp(26px, 7vw, 40px); font-weight: 900; letter-spacing: -0.055em; line-height: 1.1; }
.panel-head p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); word-break: keep-all; }

.cmp-pick { display: grid; gap: 10px; }
.pick { padding: 16px; }
.pick__k { margin: 0 0 10px; font-size: 11px; font-weight: 800; color: var(--muted); }
.pick__k b { color: var(--uni); font-family: var(--mono); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s var(--spring);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.chip:hover { background: #e9edf1; }
.chip[aria-pressed="true"] { background: var(--c); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 26%, transparent); }
.chip[aria-pressed="true"]::before { background: rgba(255, 255, 255, 0.7); }

.cmp { margin-top: 12px; padding: 22px 18px 20px; overflow: hidden; position: relative; }
.cmp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, color-mix(in srgb, var(--a) 16%, transparent), transparent 46%, color-mix(in srgb, var(--b) 16%, transparent));
  pointer-events: none;
}
.cmp__top { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.cmp__side { min-width: 0; text-align: center; }
.cmp__code { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: var(--c); color: #fff; font-family: var(--mono); font-size: 17px; font-weight: 800; box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 30%, transparent); }
.cmp__name { margin: 8px 0 0; font-size: 15px; font-weight: 900; letter-spacing: -0.04em; color: var(--c); }
.cmp__award { margin: 2px 0 0; font-size: 10.5px; color: var(--muted); word-break: keep-all; }
.cmp__vs { font-family: var(--mono); font-size: 11px; font-weight: 800; color: var(--muted-2); letter-spacing: 0.06em; }
.cmp__score { position: relative; display: grid; place-items: center; margin: 20px auto 0; width: 148px; height: 148px; border-radius: 50%; background: conic-gradient(var(--a) 0 calc(var(--p) * 0.5%), var(--b) calc(var(--p) * 0.5%) calc(var(--p) * 1%), var(--surface-2) calc(var(--p) * 1%) 100%); transition: background 0.4s ease; }
.cmp__score::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--surface); }
.cmp__score b { position: relative; z-index: 1; font-family: var(--mono); font-size: 36px; font-weight: 800; letter-spacing: -0.05em; color: var(--ink); }
.cmp__score b small { font-size: 13px; color: var(--muted-2); margin-left: 2px; }
.cmp__score em { position: absolute; z-index: 1; bottom: 34px; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted-2); }
.cmp__title { position: relative; margin: 16px 0 0; text-align: center; font-size: 21px; font-weight: 900; letter-spacing: -0.05em; }
.cmp__line { position: relative; margin: 7px 0 0; text-align: center; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; word-break: keep-all; }
.cmp__rows { position: relative; display: grid; gap: 8px; margin-top: 18px; }
.cmp__row { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(4px); }
.cmp__row i { font-style: normal; font-size: 16px; }
.cmp__row b { display: block; font-size: 10.5px; font-weight: 800; color: var(--muted); letter-spacing: 0.02em; }
.cmp__row p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; word-break: keep-all; }
.cmp__bar { position: relative; display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin-top: 18px; }
.cmp__bar i { height: 100%; }
.cmp__bar i:first-child { background: var(--a); }
.cmp__bar i:last-child { background: var(--b); }
.cmp__note { position: relative; margin: 12px 0 0; font-size: 10px; color: var(--muted-2); text-align: center; word-break: keep-all; }

/* ---------------- 대학 도감 ---------------- */
.codex { display: grid; gap: 12px; margin-top: 4px; }
.uni-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.uni-card__top { position: relative; padding: 20px 18px 18px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 66%, #05070d)); color: #fff; overflow: hidden; }
.uni-card__top::after { content: ""; position: absolute; right: -30px; bottom: -60px; width: 170px; height: 170px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); }
.uni-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.uni-card__code { font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.66); }
.uni-card__est { font-family: var(--mono); font-size: 10px; color: rgba(255, 255, 255, 0.5); }
.uni-card__name { margin: 10px 0 0; font-size: 24px; font-weight: 900; letter-spacing: -0.055em; }
.uni-card__en { margin: 3px 0 0; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.6); }
.uni-card__symbol { position: absolute; right: 16px; bottom: 14px; font-size: 34px; opacity: 0.92; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35)); }
.uni-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.uni-card__creed { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); word-break: keep-all; }
.uni-card__creed small { display: block; margin-top: 3px; font-size: 9.5px; font-weight: 600; color: var(--muted-2); letter-spacing: 0; }
.uni-card__slogan { margin: 12px 0 0; padding: 11px 12px; border-radius: 12px; background: var(--surface-3); font-size: 12.5px; font-weight: 700; color: var(--ink-2); line-height: 1.5; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.uni-card__slogan span { display: block; margin-top: 3px; font-size: 9px; font-weight: 600; color: var(--muted-2); }
.uni-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 12px 0 0; }
.uni-card__facts div { min-width: 0; }
.uni-card__facts dt { font-size: 9px; font-weight: 800; letter-spacing: 0.03em; color: var(--muted-2); }
.uni-card__facts dd { margin: 1px 0 0; font-size: 11.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uni-card__swatch { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 10.5px; color: var(--muted); }
.uni-card__swatch i { width: 14px; height: 14px; border-radius: 5px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.uni-card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.uni-card__tags span { padding: 3px 7px; border-radius: 999px; background: var(--surface-2); font-size: 9.5px; font-weight: 700; color: var(--muted); }
.uni-card__actions { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: auto; padding-top: 14px; }
.uni-card__film { min-height: 42px; border: 0; border-radius: 12px; background: var(--c); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; transition: filter 0.2s ease; }
.uni-card__film:hover { filter: brightness(1.08); }
.uni-card__link { display: grid; place-items: center; min-height: 42px; padding: 0 12px; border-radius: 12px; background: var(--surface-2); font-size: 11px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.uni-card__link:hover { background: #e9edf1; }

/* ---------------- 가이드 · FAQ ---------------- */
.guide { max-width: 760px; margin: 96px auto 0; }
.guide__title { margin: 0 0 4px; font-size: 22px; font-weight: 900; letter-spacing: -0.05em; }
.guide__sub { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); word-break: keep-all; }
.guide__cards { display: grid; gap: 8px; }
.faq-item { border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgba(23, 31, 40, 0.03); overflow: hidden; }
.faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 800; letter-spacing: -0.03em; word-break: keep-all; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; flex: none; font-family: var(--mono); font-size: 16px; font-weight: 500; color: var(--muted-2); transition: transform 0.25s var(--spring); }
.faq-item[open] > summary::after { transform: rotate(45deg); color: var(--uni); }
.faq-item__a { margin: 0; padding: 0 18px 18px; font-size: 12.5px; line-height: 1.75; color: var(--ink-2); word-break: keep-all; }
.faq-item__a b { color: var(--ink); }
.guide__lead { margin: 0 0 12px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--uni) 7%, #fff); font-size: 12.5px; line-height: 1.7; color: var(--ink-2); word-break: keep-all; }

/* 형제 사이트 */
.links { max-width: 760px; margin: 30px auto 0; }
.links__title { margin: 0 0 4px; font-size: 16px; font-weight: 900; letter-spacing: -0.04em; }
.links__sub { margin: 0 0 12px; font-size: 11.5px; color: var(--muted); }
.links__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.link-card { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgba(23, 31, 40, 0.03); transition: transform 0.2s var(--spring), box-shadow 0.2s ease; }
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.link-card b { font-size: 12.5px; font-weight: 800; letter-spacing: -0.03em; }
.link-card span { font-size: 10.5px; color: var(--muted); word-break: keep-all; }
.link-card em { margin-top: 4px; font-style: normal; font-size: 9px; font-family: var(--mono); color: var(--muted-2); }

/* ---------------- 푸터 ---------------- */
.footer { max-width: 760px; margin: 34px auto 0; padding: 20px 18px 40px; text-align: center; }
.footer__brand { margin: 0; font-size: 12px; font-weight: 800; color: var(--ink-2); letter-spacing: -0.03em; }
.footer__disc { margin: 8px 0 0; font-size: 10.5px; color: var(--muted); }
.footer__fine { margin: 10px 0 0; font-size: 10px; line-height: 1.7; color: var(--muted-2); word-break: keep-all; }
.footer__fine a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- 토스트 ---------------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 130; transform: translate(-50%, 12px); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: rgba(25, 31, 40, 0.94); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: -0.02em; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.24s var(--spring); backdrop-filter: blur(6px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =============================================================
   풀스크린 시네마틱 — 암전 → 배경 영상 → 결과 배경 루프
   ============================================================= */
.cinema {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  background: #04060c;
}
.cinema.is-on { opacity: 1; }
.cinema canvas { width: 100%; height: 100%; display: block; }
.cinema__scrim {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  background:
    radial-gradient(130% 78% at 50% -8%, rgba(4, 6, 12, 0.02), rgba(4, 6, 12, 0.3) 60%, rgba(4, 6, 12, 0.66) 100%),
    linear-gradient(180deg, rgba(4, 6, 12, 0.42) 0%, rgba(4, 6, 12, 0.04) 26%, rgba(4, 6, 12, 0.16) 70%, rgba(4, 6, 12, 0.56) 100%);
}
body[data-mode="result"] .cinema__scrim { opacity: 1; }

/* 연출 중에는 페이지 본문을 잠시 숨깁니다 */
body.is-cinema { background: transparent; }
body.is-cinema .bg { opacity: 0; }
body.is-cinema .topbar,
body.is-cinema .tabs,
body.is-cinema .main,
body.is-cinema .guide,
body.is-cinema .links,
body.is-cinema .footer { opacity: 0; visibility: hidden; }

/* 커튼 · 시네마틱 타이포 */
.curtain { position: fixed; inset: 0; z-index: 120; overflow: hidden; }
.curtain__black { position: absolute; inset: 0; background: #000; }
.curtain__scrim {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(64% 44% at 50% 50%, rgba(3, 5, 10, 0.5), rgba(3, 5, 10, 0.16) 60%, rgba(3, 5, 10, 0) 80%);
}
.curtain__inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 20px;
  text-align: center;
  color: #fff;
}
.curtain__inner > * { grid-area: 1 / 1; }
.ct-kick {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(9.5px, 2.5vw, 12.5px);
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}
.ct-kick__dot { color: rgba(255, 255, 255, 0.34); }
.ct-kick__since { color: rgba(255, 255, 255, 0.72); }
.ct-rule {
  width: min(58vw, 300px);
  height: 1px;
  opacity: 0;
  transform: translateY(36px);
  background: rgba(255, 255, 255, 0.16);
}
.ct-rule i { display: block; height: 100%; transform: scaleX(0); transform-origin: center; background: linear-gradient(90deg, transparent, #fff, transparent); }
.ct-creed { margin: 0; }
.ct-line {
  display: block;
  white-space: nowrap;
  font-size: clamp(26px, 8.2vw, 66px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.045em;
  text-shadow: 0 8px 48px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.ct-ch {
  display: inline-block;
  opacity: 0;
  will-change: opacity, transform, filter;
}
.ct-src {
  margin: 14px 0 0;
  opacity: 0;
  font-family: var(--mono);
  font-size: clamp(8.5px, 2.2vw, 10.5px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}
.ct-now {
  margin: 0;
  opacity: 0;
  font-size: clamp(13px, 3.7vw, 18px);
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.curtain__wash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 50% 46%, #ffffff 0%, color-mix(in srgb, var(--uni) 62%, #ffffff) 16%, color-mix(in srgb, var(--uni) 96%, #000000) 46%, color-mix(in srgb, var(--uni) 80%, #000000) 100%);
}
.ct-skip {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  padding: 10px 8px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  opacity: 0;
  transition: color 0.2s ease;
}
.ct-skip:hover { color: rgba(255, 255, 255, 0.86); }

/* 결과 페이지 상단 시네마틱 헤더 */
.cine-head { padding: 18px 4px 16px; text-align: center; color: #fff; }
.cine-head__en {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(8.5px, 2.4vw, 10.5px);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}
.cine-head__creed {
  margin: 10px 0 0;
  font-size: clamp(18px, 5.4vw, 27px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.045em;
  word-break: keep-all;
  color: #fff;
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.72), 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 결과 카드의 '필름 다시 보기' */
.cine-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.cine-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background 0.18s ease;
}
.cine-link:hover { background: #e9edf1; }
.cine-link span { font-size: 12px; color: var(--uni); }
.cine-foot__hint { font-size: 9.5px; color: var(--muted-2); word-break: keep-all; }

/* =============================================================
   결과 페이지 — 시네마틱 배경 위의 화이트 카드
   ============================================================= */
body[data-mode="result"] { background: transparent; }
body[data-mode="result"] .bg { opacity: 0; }
body[data-result="1"] .hero { display: none; }
body[data-result="1"] .judge-grid { display: block; }
body[data-result="1"] .col { max-width: 760px; margin: 0 auto; }

body[data-mode="result"] .topbar { background: rgba(6, 9, 16, 0.5); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07); }
body[data-mode="result"] .brand__txt b { color: #fff; }
body[data-mode="result"] .brand__txt small { color: rgba(255, 255, 255, 0.45); }
body[data-mode="result"] .pill-free { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); box-shadow: none; }
body[data-mode="result"] .tabs { background: linear-gradient(rgba(6, 9, 16, 0.78) 62%, rgba(6, 9, 16, 0)); }
body[data-mode="result"] .tabs__in { background: rgba(255, 255, 255, 0.09); }
body[data-mode="result"] .tab { color: rgba(255, 255, 255, 0.62); }
body[data-mode="result"] .tab b { color: rgba(255, 255, 255, 0.38); }
body[data-mode="result"] .tab[aria-selected="true"] { background: rgba(255, 255, 255, 0.95); color: #101720; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.42); }
body[data-mode="result"] .tab[aria-selected="true"] b { color: var(--uni); }

body[data-mode="result"] .card {
  background: rgba(255, 255, 255, 0.975);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 26px 60px rgba(0, 0, 0, 0.44);
  animation: cineCard 0.6s var(--spring) both;
}
@keyframes cineCard { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
body[data-mode="result"] .verdict { animation-delay: 0.04s; }
body[data-mode="result"] .cine-foot { border-top-color: rgba(23, 31, 40, 0.08); }

/* 결과 모드의 하단 섹션은 다크 글래스 */
body[data-mode="result"] .guide__title,
body[data-mode="result"] .links__title { color: #fff; }
body[data-mode="result"] .guide__sub,
body[data-mode="result"] .links__sub { color: rgba(255, 255, 255, 0.55); }
body[data-mode="result"] .guide__lead { background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.82); }
body[data-mode="result"] .guide__lead b { color: #fff; }
body[data-mode="result"] .faq-item { background: rgba(255, 255, 255, 0.07); box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.09); }
body[data-mode="result"] .faq-item > summary { color: rgba(255, 255, 255, 0.92); }
body[data-mode="result"] .faq-item__a { color: rgba(255, 255, 255, 0.74); }
body[data-mode="result"] .faq-item__a b { color: #fff; }
body[data-mode="result"] .link-card { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: none; }
body[data-mode="result"] .link-card b { color: #fff; }
body[data-mode="result"] .link-card span { color: rgba(255, 255, 255, 0.6); }
body[data-mode="result"] .link-card em { color: rgba(255, 255, 255, 0.35); }
body[data-mode="result"] .footer__brand { color: rgba(255, 255, 255, 0.82); }
body[data-mode="result"] .footer__disc { color: rgba(255, 255, 255, 0.55); }
body[data-mode="result"] .footer__fine { color: rgba(255, 255, 255, 0.38); }
body[data-mode="result"] .again { background: rgba(255, 255, 255, 0.12); color: #fff; }
body[data-mode="result"] .again:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------------- 모바일 압축 (첫 화면에 문항·선택지까지) ---------------- */
@media (max-width: 719px) {
  .hero { padding: 4px 2px 12px; }
  .hero__kicker { margin-bottom: 8px; padding: 4px 9px; font-size: 10.5px; }
  .hero__title { font-size: clamp(27px, 7.8vw, 34px); }
  .hero__desc { margin-top: 8px; font-size: 12.5px; line-height: 1.5; }
  .hero__types, .hero__note { display: none; }
  .quiz { padding: 16px 14px 12px; border-radius: 24px; }
  .quiz__q { font-size: 22px; margin-top: 12px; min-height: 0; }
  .opts { margin-top: 12px; gap: 7px; }
  .opt { min-height: 56px; }
  body[data-result="1"] .hero { display: none; }
}

/* ---------------- 데스크톱 ---------------- */
@media (min-width: 720px) {
  .main { padding: 10px 24px 48px; }
  .hero__desc { font-size: 15px; }
  .quiz { padding: 26px 26px 20px; }
  .quiz__q { font-size: 27px; min-height: 0; }
  .opt { min-height: 66px; padding: 12px 14px; gap: 12px; }
  .opt__label { font-size: 16px; }
  .opt__sub { font-size: 12px; }
  .verdict { padding: 28px 26px 24px; }
  .verdict__award { font-size: 17px; }
  .punch { font-size: 18px; padding: 18px; }
  .items { padding: 26px; }
  .check { padding: 26px; }
  .cmp { padding: 28px 26px 24px; }
  .cmp-pick { grid-template-columns: 1fr 1fr; }
  .codex { grid-template-columns: 1fr 1fr; }
  .links__grid { grid-template-columns: repeat(3, 1fr); }
  .match { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .main { padding: 14px 28px 56px; }
  .judge-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 44px; align-items: start; }
  .hero { position: sticky; top: 128px; padding-top: 12px; }
  .hero__title { font-size: 54px; }
  .hero__note { display: block; }
  .tabs__in { max-width: 640px; }
  .quiz__q { font-size: 30px; }
  .codex { grid-template-columns: repeat(4, 1fr); }
  .uni-card__name { font-size: 21px; }
  .guide, .links, .footer { max-width: 900px; }
  .guide__cards { grid-template-columns: 1fr; }
}

@media (min-width: 1280px) {
  .hero__title { font-size: 60px; }
}

/* ---------------- 모션 줄이기 ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .stat__bar i { transition: none; }
}

/* JS가 켜지기 전에도 히어로가 보이도록 */
.no-js .quiz, .no-js .tabs { display: none; }
