/* =============================================================
   기합 판독소 · 찐 해병 점수 판독기 — v2 "토스 × 레드옐로우"
   -------------------------------------------------------------
   · 토스(Toss) 감성: 흰 카드 20~24px 라운드, 넉넉한 여백, 또렷한 타이포 계층
   · 해병대 정체성: 빨강 #C8102E + 노랑 #FFD400 + 다크/크림 대비
   · 모든 상호작용에 짧고 쫀득한 피드백(0.15~0.45s)
   ============================================================= */

@font-face {
  font-family: "Pretendard";
  src: url("fonts/pretendard-regular.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("fonts/pretendard-bold.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 브랜드 */
  --red: #c8102e;
  --red-deep: #a00c24;
  --red-soft: #fff1f3;
  --yellow: #ffd400;
  --yellow-deep: #f0bd00;
  --yellow-soft: #fff9d6;
  --sep: #5a4a00;

  /* 뉴트럴 (토스 그레이) */
  --ink: #191f28;
  --ink-2: #333d4b;
  --gray-700: #4e5968;
  --gray-500: #8b95a1;
  --gray-600: #6b7684;
  --gray-400: #b0b8c1;
  --gray-300: #d1d6db;
  --gray-200: #e5e8eb;
  --gray-100: #f2f4f6;
  --gray-50: #f9fafb;

  /* 표면 */
  --bg: #f7f5f0;
  --bg-2: #fbf9f4;
  --card: #ffffff;
  --cream: #fffdf6;
  --dark: #171a1f;
  --dark-2: #22262e;

  --line: #e8e6e1;
  --hair: rgba(25, 31, 40, 0.08);

  --r-lg: 24px;
  --r-md: 20px;
  --r-sm: 14px;

  --shadow-card: 0 1px 2px rgba(25, 31, 40, 0.04), 0 10px 28px rgba(25, 31, 40, 0.06);
  --shadow-pop: 0 12px 34px rgba(25, 31, 40, 0.16);

  --sans: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --mono: "SFMono-Regular", Menlo, "DejaVu Sans Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 40% at 50% -10%, rgba(255, 212, 0, 0.3), rgba(255, 212, 0, 0) 62%),
    radial-gradient(48% 34% at 100% 0%, rgba(200, 16, 46, 0.1), rgba(200, 16, 46, 0) 60%),
    radial-gradient(40% 30% at 0% 100%, rgba(200, 16, 46, 0.06), rgba(200, 16, 46, 0) 62%);
}

button,
input { font-family: inherit; }

a { color: inherit; text-decoration: none; }

ul, ol, dl, dd, p, h1, h2, h3, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

.shell {
  width: min(100% - 32px, 960px);
  margin-inline: auto;
}

/* ===================== 상단 바 ===================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}

.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--red);
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(200, 16, 46, 0.24);
  flex: none;
}

.brand__txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.brand__txt b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.brand__txt i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--gray-500);
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gray-700);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  white-space: nowrap;
}
.chip--free i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #12b76a;
  display: block;
}

.topbar__clock {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}

/* ===================== 탭 ===================== */
.tabsbar {
  position: sticky;
  top: 60px;
  z-index: 30;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 0 12px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: rgba(25, 31, 40, 0.055);
  border-radius: 16px;
}

.tabs__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gray-500);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 10px 4px;
  border-radius: 12px;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.22s var(--ease),
    box-shadow 0.22s var(--ease), transform 0.12s var(--ease);
  white-space: nowrap;
}
.tabs__btn:active { transform: scale(0.97); }
.tabs__btn.is-on {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(25, 31, 40, 0.1);
}

/* ===================== 히어로 ===================== */
.pane { padding-top: 4px; }
#quiz,
#result,
#vsSetup,
#vsQuiz,
#vsResult,
.checklist,
.guide,
.faq,
.siblings { scroll-margin-top: 128px; }
.pane.is-on { display: block; }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px 24px 30px;
  color: #fff;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 212, 0, 0.18), transparent 62%),
    radial-gradient(90% 70% at 0% 100%, rgba(200, 16, 46, 0.32), transparent 66%),
    var(--dark);
  box-shadow: var(--shadow-card);
}
.hero::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--yellow);
  margin-bottom: 12px;
}
.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.18);
}

.hero__title {
  font-size: clamp(30px, 8.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.16;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  font-size: clamp(12px, 3.2vw, 15px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  padding: 5px 12px;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 212, 0, 0.25);
}

.hero__desc {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.72);
}
.hero__desc b {
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 -0.55em 0 rgba(255, 212, 0, 0.16);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.hero__tags li {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 9px;
}

.hero__ladder { display: none; }

.hero__ladderK {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 8px;
}
.hero__ladder ol { display: grid; gap: 1px; }
.hero__ladder li {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.hero__ladder li:first-child { border-top: 0; }
.hero__ladder i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  display: block;
}
.hero__ladder b {
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: -0.01em;
}
.hero__ladder span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.4);
}

.hero__meta {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
}

/* ===================== 카드 공통 ===================== */
.card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
}

.sec__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.sec__kick {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.sec__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.32;
}
.sec__desc {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.55;
}

.ad {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sep);
  background: var(--yellow);
  border-radius: 6px;
  padding: 3px 7px;
}

.block-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  margin: 22px 0 10px;
}
.block-title:first-child { margin-top: 4px; }
.block-title span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}

/* ===================== 버튼 ===================== */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 15px 18px;
  border-radius: 16px;
  transition: transform 0.12s var(--ease), background 0.18s var(--ease),
    box-shadow 0.18s var(--ease), color 0.18s var(--ease);
  min-height: 52px;
}
.btn:active { transform: scale(0.975); }
.btn:disabled { cursor: default; opacity: 0.55; transform: none; }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.22);
}
.btn--primary:hover { background: var(--red-deep); }
.btn--gray {
  background: var(--gray-100);
  color: var(--ink-2);
}
.btn--gray:hover { background: var(--gray-200); }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gray-700);
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 12px;
}
.btn--ghost:hover { background: var(--gray-50); }
.btn--text {
  background: none;
  color: var(--gray-500);
  font-size: 13.5px;
  min-height: 40px;
  padding: 8px;
  width: 100%;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn--text:hover { color: var(--ink-2); }
.btn--sm { font-size: 13px; min-height: 40px; }
.btn--wide { width: 100%; }

.btn--primary .btn__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 3px 6px;
}
.btn.is-done {
  background: #12b76a;
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 183, 106, 0.24);
}
.btn.is-done .btn__meta { background: rgba(255, 255, 255, 0.22); color: #fff; }
.btn.is-busy { opacity: 0.7; }

/* ===================== 퀴즈 ===================== */
.quiz { margin-top: -14px; position: relative; z-index: 2; }

.quiz__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.quiz__label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.quiz__en {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--gray-400);
  margin-top: 3px;
}
.quiz__step {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--gray-400);
  flex: none;
  padding-top: 2px;
}
.quiz__step b {
  font-size: 16px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--gray-100);
  overflow: hidden;
  margin-bottom: 20px;
}
.progress > i {
  display: block;
  height: 100%;
  width: 16.6%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--red));
  transition: width 0.45s var(--ease);
}

.quiz__body.is-swap { animation: swap 0.32s var(--ease); }
@keyframes swap {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.quiz__kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 8px;
}
.quiz__q {
  font-size: clamp(19px, 5.2vw, 23px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.36;
  margin-bottom: 6px;
}
.quiz__sub {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 18px;
}

.quiz__opts {
  display: grid;
  gap: 8px;
}

.opt {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 14px 14px 13px;
  font-size: 14.5px;
  line-height: 1.44;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease),
    transform 0.12s var(--ease), box-shadow 0.16s var(--ease);
  animation: optIn 0.36s var(--ease) both;
}
@keyframes optIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.opt:nth-child(2) { animation-delay: 0.04s; }
.opt:nth-child(3) { animation-delay: 0.08s; }
.opt:nth-child(4) { animation-delay: 0.12s; }
.opt:nth-child(5) { animation-delay: 0.16s; }

.opt:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}
.opt:active { transform: scale(0.988); }

.opt__key {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.opt__text { flex: 1 1 auto; min-width: 0; }

.opt.is-picked {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--red) inset, 0 6px 18px rgba(200, 16, 46, 0.1);
}
.opt.is-picked .opt__key {
  background: var(--red);
  color: #fff;
}
.opt.is-pop { animation: pop 0.32s var(--ease); }
@keyframes pop {
  0% { transform: scale(1); }
  45% { transform: scale(0.975); }
  100% { transform: scale(1); }
}

.quiz__reaction {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  background: var(--yellow-soft);
  border-radius: 12px;
  padding: 10px 12px;
  line-height: 1.5;
}
.quiz__reaction.is-in { animation: swap 0.28s var(--ease); }

.quiz__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.quiz__hint {
  font-size: 11.5px;
  color: var(--gray-400);
  text-align: right;
}
.quiz__fine {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ===================== 결과 · 판정 카드 ===================== */
.result { margin-top: 16px; }
.result.is-drop { animation: drop 0.5s var(--ease); }
@keyframes drop {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.verdict {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(110% 70% at 100% 0%, rgba(255, 212, 0, 0.16), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(200, 16, 46, 0.34), transparent 66%),
    var(--dark);
  box-shadow: var(--shadow-card);
}

.verdict__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}
.verdict__top b { color: rgba(255, 255, 255, 0.8); }

.verdict__main {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.verdict__label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 7px;
}
.verdict__label span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.32);
}

.verdict__num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0 12px;
}
.verdict__num b {
  font-size: clamp(56px, 17vw, 76px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.verdict__num span {
  font-family: var(--mono);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
}

.meter {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.meter__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--red));
  transition: width 1.05s var(--ease);
}
.meter__tick {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(23, 26, 31, 0.35);
  text-decoration: none;
}
.meter__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.35);
}
.verdict__cap {
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--yellow);
}

.gradechip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.gradechip__en {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--yellow);
}
.gradechip__name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}
.gradechip__line {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}
.gradechip__action {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 8px;
  padding: 4px 8px;
}

.punch {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.punch__text {
  font-size: clamp(19px, 5vw, 24px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #fff;
}
.punch__sub {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.48);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 18px;
}
.stat {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 10px 10px 11px;
  min-width: 0;
}
.stat__k {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}
.stat__en {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.26);
  margin-top: 2px;
}
.stat__v {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat__note {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.35;
}

.actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

/* ===================== 보급품 ===================== */
.supply { margin-top: 12px; }
.supply.is-in { animation: swap 0.42s var(--ease); }

.sup-list { display: grid; gap: 8px; }

.sup__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease),
    transform 0.12s var(--ease);
}
.sup__link:hover {
  border-color: var(--yellow-deep);
  background: var(--cream);
}
.sup__link:active { transform: scale(0.99); }

.sup__icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 19px;
}
.sup__body { flex: 1 1 auto; min-width: 0; display: block; }
.sup__name {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sup__note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sup__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}
.sup__price {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.sup__go {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}
.sup__badge {
  flex: none;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sep);
  background: var(--yellow);
  border-radius: 5px;
  padding: 2px 5px;
  align-self: flex-start;
  margin-top: 2px;
}

.disc {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--gray-400);
}

/* ===================== 접힘(아코디언) ===================== */
.fold {
  margin-top: 12px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.fold--flat {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
}

.fold__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  transition: background 0.16s var(--ease);
}
.fold__sum::-webkit-details-marker { display: none; }
.fold__sum:hover { background: var(--gray-50); }

.fold__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fold__txt b {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.fold__txt i {
  font-style: normal;
  font-size: 12px;
  color: var(--gray-600);
}

.fold__chev {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.24s var(--ease), background 0.2s var(--ease);
}
.fold__chev::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.8px solid var(--gray-700);
  border-bottom: 1.8px solid var(--gray-700);
  transform: translate(-1px, -2px) rotate(45deg);
}
.fold[open] .fold__chev {
  transform: rotate(180deg);
  background: var(--yellow);
}
.fold[open] .fold__chev::before { border-color: var(--sep); }

.fold__body {
  padding: 4px 18px 18px;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--gray-700);
}
.fold__body p { max-width: 70ch; }
.fold__body p + p { margin-top: 10px; }
.fold__body b { color: var(--ink); font-weight: 800; }
.fold__body .btn { margin-top: 18px; }

/* 문항별 채점 */
.rows { display: grid; gap: 8px; margin-top: 8px; }
.rows li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: var(--bg-2);
}
.row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.row__badge {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 6px;
  padding: 2px 6px;
}
.row__pts {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
}
.row__text {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gray-700);
}

.reasons { display: grid; gap: 10px; }
.reasons li {
  padding-left: 12px;
  border-left: 2px solid var(--yellow);
}
.reason__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.reason__body {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--gray-500);
}

.stats--extra {
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 8px;
}
.stats--extra .stat {
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
}
.stats--extra .stat__k { color: var(--gray-500); font-size: 12px; }
.stats--extra .stat__v {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink);
  text-align: right;
}

/* ===================== 동기 vs 나 ===================== */
.hero--vs .hero__title { font-size: clamp(28px, 7.6vw, 40px); }

.vs-setup { margin-top: 14px; }
.vs-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 16px;
}
.field { display: block; }
.field__lab {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.field__input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--gray-50);
  padding: 13px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.field__input::placeholder { color: var(--gray-400); font-weight: 500; }
.field__input:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.vs-quiz { margin-top: 14px; }

.vs-round { margin: 4px 0 18px; }
.vs-round__kick {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
}
.vs-round__q {
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.4;
}
.vs-round__sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--gray-600);
}

.vs-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vs-pick {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease),
    transform 0.12s var(--ease), box-shadow 0.16s var(--ease);
}
.vs-pick:hover { border-color: var(--gray-300); background: var(--gray-50); }
.vs-pick:active { transform: scale(0.98); }
.vs-pick.is-picked {
  border-color: var(--red);
  background: var(--red-soft);
  box-shadow: 0 0 0 1px var(--red) inset;
}
.vs-pick__face {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  padding: 0 6px;
  text-align: center;
  line-height: 1.15;
  overflow: hidden;
}
.vs-pick.is-picked .vs-pick__face {
  background: var(--red);
  color: #fff;
}
.vs-pick__txt {
  font-size: 12.5px;
  color: var(--gray-500);
  font-weight: 600;
}

.vs-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.vsc { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.vsc__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vsc__num {
  font-size: clamp(34px, 10vw, 44px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.vsc__grade {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gray-500);
  line-height: 1.35;
}
.vsc.is-win .vsc__num { color: var(--red); }
.vsc.is-win .vsc__name { color: var(--ink); }
.vsc.is-win .vsc__grade { color: var(--ink-2); }
.vsc.is-win::after {
  content: "WIN";
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sep);
  background: var(--yellow);
  border-radius: 5px;
  padding: 2px 5px;
  margin-top: 3px;
}

.vs-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.vs-verdict {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--ink);
}

.vs-bars { margin-top: 12px; display: grid; gap: 16px; }
.vsbar__k {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.vsbar__row {
  display: grid;
  grid-template-columns: 44px 1fr 54px;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--gray-500);
}
.vsbar__row + .vsbar__row { margin-top: 5px; }
.vsbar__row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vsbar__track {
  height: 9px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.vsbar__track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--red));
  transition: width 0.7s var(--ease);
}
.vsbar__row.is-b .vsbar__track i {
  background: linear-gradient(90deg, #cfd6df, var(--ink-2));
}
.vsbar__row b {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ===================== 계급·전설 도감 ===================== */
.codex {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.codex__item {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.codex__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
}
.codex__item--high::before { background: #e8552f; }
.codex__item--mid::before { background: var(--yellow-deep); }
.codex__item--low::before { background: #7f8b99; }
.codex__item--warn::before { background: #c07900; }
.codex__item--civil::before { background: var(--gray-300); }

.codex__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.codex__range {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 6px;
  padding: 3px 7px;
}
.codex__item--mid .codex__range,
.codex__item--low .codex__range,
.codex__item--warn .codex__range,
.codex__item--civil .codex__range {
  color: var(--gray-700);
  background: var(--gray-100);
}
.codex__en {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}
.codex__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.codex__line {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.5;
}
.codex__crit {
  margin-top: 12px;
  display: grid;
  gap: 5px;
}
.codex__crit li {
  position: relative;
  padding-left: 13px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.codex__crit li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
}
.codex__punch {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg-2);
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.5;
}

.lore { margin-top: 30px; }
.lore__grid {
  display: grid;
  gap: 8px;
}
.lore__card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.lore__ico {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--yellow-soft);
  font-size: 17px;
  margin-bottom: 10px;
}
.lore__card h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lore__card p {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--gray-500);
}

/* ===================== 체크리스트 ===================== */
.checklist { margin-top: 34px; }
.check-count {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  padding: 5px 10px;
  font-variant-numeric: tabular-nums;
}
.check-groups {
  display: grid;
  gap: 18px;
}
.check-group__title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.check { display: grid; gap: 7px; }
.check__row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease),
    transform 0.12s var(--ease);
}
.check__row:hover { border-color: var(--gray-300); }
.check__row:active { transform: scale(0.99); }
.check__box {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1.5px solid var(--gray-300);
  background: #fff;
  margin-top: 1px;
  position: relative;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.check__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.check__txt b {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.check__txt i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--gray-600);
  line-height: 1.4;
}
.check__row.is-on { background: var(--yellow-soft); border-color: var(--yellow-deep); }
.check__row.is-on .check__box {
  background: var(--red);
  border-color: var(--red);
}
.check__row.is-on .check__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2.5px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(42deg);
}
.check__row.is-on .check__txt b { color: var(--ink); }

.check-msg {
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 12px;
  padding: 11px 12px;
  line-height: 1.5;
}

/* ===================== 가이드 · FAQ ===================== */
.guide { margin-top: 14px; }
.faq { margin-top: 14px; }

/* ===================== 형제 사이트 ===================== */
.siblings { margin-top: 34px; }
.sib__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sib {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.14s var(--ease), border-color 0.16s var(--ease);
  min-height: 100%;
}
.sib:hover { transform: translateY(-2px); border-color: var(--yellow-deep); }
.sib__ico { font-size: 18px; margin-bottom: 4px; }
.sib b {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sib i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--gray-500);
  line-height: 1.4;
}

/* ===================== 푸터 ===================== */
.footer {
  margin-top: 34px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer__brand {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--gray-500);
}
.footer__disc {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--gray-500);
}
.footer__fine {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--gray-400);
}

/* ===================== 로더 · 토스트 ===================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 26, 31, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.loader.is-on { opacity: 1; }

.loader__card {
  width: min(100%, 320px);
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-pop);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.24s var(--ease);
}
.loader.is-on .loader__card { transform: none; }

.loader__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.loader__title span { color: var(--red); }

.loader__steps { margin: 16px 0 14px; display: grid; gap: 7px; }
.loader__step {
  font-size: 12.5px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s var(--ease);
}
.loader__step::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-200);
  flex: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.loader__step.is-active { color: var(--ink); font-weight: 700; }
.loader__step.is-active::before { background: var(--red); transform: scale(1.3); }
.loader__step.is-done { color: var(--gray-500); }
.loader__step.is-done::before { background: var(--yellow-deep); }

.loader__bar {
  height: 6px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.loader__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--red));
  transition: width 0.2s linear;
}
.loader__fine {
  margin-top: 12px;
  font-size: 11px;
  color: var(--gray-400);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  z-index: 90;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ===================== 반응형 ===================== */
@media (min-width: 560px) {
  .shell { width: min(100% - 40px, 960px); }
  .hero { padding: 32px 30px 34px; }
  .card { padding: 26px 24px; }
  .quiz { margin-top: -20px; }
  .verdict { padding: 24px; }
  .verdict__main { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .actions { grid-template-columns: 1.15fr 1fr; }
  .check-groups { grid-template-columns: 1fr 1fr; }
  .sib__grid { grid-template-columns: repeat(4, 1fr); }
  .codex { grid-template-columns: 1fr 1fr; }
  .lore__grid { grid-template-columns: 1fr 1fr; }
  .bopts { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 700px) {
  .sup-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .sup__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    height: 100%;
    position: relative;
  }
  .sup__badge { position: absolute; top: 13px; right: 13px; margin: 0; }
  .sup__body { width: 100%; }
  .sup__foot { justify-content: space-between; gap: 8px; margin-top: 10px; }
  .sup__name, .sup__note { white-space: normal; overflow: visible; }
  .sup__note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
}

@media (min-width: 900px) {
  #paneJudge.is-on {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
  }
  #paneJudge .hero { margin: 0; }
  .hero__ladder { display: block; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  #paneJudge .quiz { margin: 0; }
  #paneJudge .result { grid-column: 1 / -1; margin-top: 4px; }
  #paneVersus.is-on { max-width: 720px; margin-inline: auto; }
  .quiz__q { font-size: 24px; }
  .codex { grid-template-columns: repeat(3, 1fr); }
  .lore__grid { grid-template-columns: repeat(4, 1fr); }
  .verdict__num b { font-size: 84px; }
  .stats { gap: 10px; }
  .stat { padding: 14px; }
}

@media (min-width: 900px) {
  #paneCodex .hero { padding: 34px 32px; }
}

@media (max-width: 359px) {
  .topbar__clock { display: none; }
  .tabs__btn { font-size: 12.5px; }
  .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =============================================================
   v3 · ROKMC 해병대 레드·옐로우 아이덴티티
   -------------------------------------------------------------
   · 배경: 해병대 활동복(체육복) 진홍 크림슨 그라데이션 (#A50B21 ~ #C8102E ~ #6E0715)
   · 포인트: #FFD400 노란 스트라이프(체육복 라인), 빨간 명찰, 팔각모 8각 실루엣
   · 구조: 흰 24px 카드는 그대로 → 크림슨 위에 떠서 토스식 가독성 유지
   ============================================================= */

@font-face {
  font-family: "Black Han Sans";
  src: url("fonts/black-han-sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --crimson: #a50b21;
  --crimson-hi: #c8102e;
  --crimson-lo: #6e0715;
  --crimson-deep: #4a0410;
  --plate-ink: #5c0512;
  --gothic: "Black Han Sans", "Pretendard", "Apple SD Gothic Neo", sans-serif;
  --bg: #a50b21;
  --bg-2: #fbf7f4;
  --shadow-card: 0 1px 2px rgba(58, 0, 8, 0.2), 0 18px 40px rgba(58, 0, 8, 0.26);
  --shadow-pop: 0 16px 40px rgba(40, 0, 6, 0.4);
}

/* ---------- 배경: 크림슨 + 노란 스트라이프 ---------- */
body {
  background-color: #8c0a1c;
  background-image:
    radial-gradient(92% 46% at 50% -12%, rgba(255, 212, 0, 0.26), rgba(255, 212, 0, 0) 62%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.035) 0 2px, rgba(255, 255, 255, 0) 2px 16px),
    linear-gradient(168deg, #8c0a1c 0%, #a50b21 18%, #c8102e 46%, #a50b21 66%, #7a0819 82%, #5c0512 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

body::before {
  background:
    radial-gradient(56% 40% at 8% 6%, rgba(255, 212, 0, 0.14), rgba(255, 212, 0, 0) 62%),
    radial-gradient(48% 34% at 96% 76%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 62%);
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 210px;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255, 212, 0, 0.11) 0 10px, rgba(255, 212, 0, 0) 10px 28px);
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0) 100%);
}

/* ---------- 상단 바 · 빨간 명찰 ---------- */
.topbar {
  background: rgba(104, 7, 20, 0.78);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 8px 26px rgba(40, 0, 6, 0.3);
}

.topbar__in { height: 62px; }

.brand { gap: 12px; }

.brand__mark { display: none; }

.brand__plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-family: var(--gothic);
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--yellow);
  padding: 8px 12px 7px;
  border: 2px solid var(--yellow);
  border-radius: 8px;
  background: linear-gradient(180deg, #c8102e 0%, #96091f 58%, #7c0718 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3), 0 3px 10px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.brand__txt b { color: #fff; }
.brand__txt i { color: rgba(255, 212, 0, 0.78); }

.topbar__meta { gap: 8px; }

.chip {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
}
.chip--free i { background: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.16); }

.chip--rok {
  display: none;
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--plate-ink);
  font-family: var(--gothic);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.topbar__clock { color: rgba(255, 255, 255, 0.55); }

/* ---------- 탭 ---------- */
.tabsbar {
  top: 62px;
  background: rgba(104, 7, 20, 0.62);
}

.tabs {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 212, 0, 0.18);
}

.tabs__btn { color: rgba(255, 255, 255, 0.72); }
.tabs__btn.is-on {
  background: var(--yellow);
  color: var(--plate-ink);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

/* ---------- 히어로: 노란 테두리 크림슨 판 + 명찰 리본 ---------- */
.hero {
  border: 3px solid var(--yellow);
  border-radius: 26px;
  padding: 22px 18px 48px;
  background:
    radial-gradient(82% 62% at 100% 0%, rgba(255, 212, 0, 0.18), rgba(255, 212, 0, 0) 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 66%),
    linear-gradient(152deg, #c8102e 0%, #a50b21 46%, #7d0819 100%);
  box-shadow: 0 22px 48px rgba(40, 0, 6, 0.44), inset 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.hero::after {
  right: -54px;
  top: -54px;
  width: 208px;
  height: 208px;
  border: 2px solid rgba(255, 212, 0, 0.4);
  box-shadow: 0 0 0 20px rgba(255, 212, 0, 0.06), 0 0 0 44px rgba(255, 212, 0, 0.04);
}

.hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.hero__eyebrow {
  margin-bottom: 0;
  color: var(--yellow);
  padding-top: 4px;
}

.hero__emblem {
  width: 64px;
  height: 64px;
  flex: none;
  margin-top: -2px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28));
}

.hero__cap {
  position: absolute;
  right: -46px;
  bottom: 40px;
  width: 214px;
  height: 156px;
  opacity: 0.085;
  pointer-events: none;
}

.hero__title {
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.16);
}

.hero__badge {
  border: 2px solid var(--plate-ink);
  box-shadow: 0 4px 0 rgba(92, 5, 18, 0.28);
}

.hero__desc { color: rgba(255, 255, 255, 0.86); }
.hero__desc b { box-shadow: inset 0 -0.55em 0 rgba(255, 212, 0, 0.24); }

.hero__tags li {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 212, 0, 0.38);
}

.hero__meta { color: rgba(255, 255, 255, 0.58); }

.hero__ladder { border-top-color: rgba(255, 212, 0, 0.24) !important; }
.hero__ladderK { color: rgba(255, 212, 0, 0.62); }
.hero__ladder li { border-top-color: rgba(255, 255, 255, 0.1); }
.hero__ladder b { color: rgba(255, 255, 255, 0.92); }
.hero__ladder span { color: rgba(255, 255, 255, 0.5); }

.hero__ribbon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 32px;
  background-color: var(--yellow);
  background-image: repeating-linear-gradient(115deg, rgba(165, 11, 33, 0.12) 0 9px, rgba(165, 11, 33, 0) 9px 21px);
  color: var(--plate-ink);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow: hidden;
}
.hero__ribbon::before,
.hero__ribbon::after {
  content: "★";
  flex: none;
  font-size: 9px;
  line-height: 1;
  color: rgba(92, 5, 18, 0.5);
}
.hero__ribbon span { white-space: nowrap; }

/* ---------- 카드 (토스식 유지) ---------- */
.quiz { margin-top: 10px; }
.card {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--primary {
  background: linear-gradient(180deg, #c8102e 0%, #a50b21 100%);
  box-shadow: 0 8px 20px rgba(165, 11, 33, 0.3);
}
.btn--primary:hover { background: linear-gradient(180deg, #b30d27 0%, #8c0a1c 100%); }

/* ---------- 판정 카드: 크림슨 명찰 판 ---------- */
.verdict {
  border: 3px solid var(--yellow);
  border-radius: 26px;
  padding: 20px 18px;
  background:
    radial-gradient(78% 58% at 100% 0%, rgba(255, 212, 0, 0.16), rgba(255, 212, 0, 0) 60%),
    radial-gradient(80% 65% at 0% 100%, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 66%),
    linear-gradient(152deg, #b30d26 0%, #96091f 44%, #6e0715 100%);
  box-shadow: 0 24px 48px rgba(40, 0, 6, 0.46), inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.verdict__emblem {
  position: absolute;
  right: -30px;
  top: -28px;
  width: 176px;
  height: 176px;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.verdict__cap {
  position: absolute;
  left: -20px;
  bottom: -26px;
  width: 196px;
  height: 140px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.verdict__top,
.verdict__main,
.punch,
.stats { position: relative; z-index: 1; }

.verdict__top {
  border-bottom-color: rgba(255, 212, 0, 0.3);
  color: rgba(255, 255, 255, 0.62);
}
.verdict__top b { color: var(--yellow); }

.verdict__label { color: rgba(255, 255, 255, 0.7); }
.verdict__num span { color: rgba(255, 255, 255, 0.5); }
.meter { background: rgba(255, 255, 255, 0.18); }
.meter__tick { background: rgba(92, 5, 18, 0.55); }
.verdict__cap { color: var(--yellow); }

.gradechip {
  background: rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 212, 0, 0.34);
}
.gradechip__en { color: var(--yellow); }
.gradechip__line { color: rgba(255, 255, 255, 0.72); }

.punch { border-top-color: rgba(255, 212, 0, 0.26); }
.punch__sub { color: rgba(255, 255, 255, 0.56); }

.stat { background: rgba(0, 0, 0, 0.2); }
.stat__k { color: rgba(255, 255, 255, 0.6); }
.stat__note { color: rgba(255, 255, 255, 0.42); }

/* ---------- 보급품 · 체크리스트 등 흰 카드 다듬기 ---------- */
.sup__link:hover { border-color: var(--yellow-deep); background: #fffdf6; }
.check__row.is-on { background: var(--yellow-soft); border-color: var(--yellow-deep); }

/* ---------- 노란 표어 테이프 ---------- */
.tape {
  position: relative;
  margin: 18px 0 0;
  border-radius: 10px;
  overflow: hidden;
  background:
    repeating-linear-gradient(112deg, rgba(110, 7, 21, 0.09) 0 9px, rgba(110, 7, 21, 0) 9px 26px),
    var(--yellow);
  box-shadow: 0 10px 24px rgba(50, 0, 6, 0.3), inset 0 0 0 1px rgba(110, 7, 21, 0.16);
}
.tape__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 12px;
  padding: 9px 16px;
  color: var(--plate-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
}
.tape__in span { white-space: nowrap; }
.tape__in i { font-style: normal; color: rgba(92, 5, 18, 0.4); }

/* ---------- 푸터 ---------- */
.footer {
  border-top: 3px solid var(--yellow);
  background: linear-gradient(180deg, rgba(78, 4, 16, 0.94), #3f020c);
}
.footer__brand {
  font-family: var(--gothic);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--yellow);
}
.footer__disc { color: rgba(255, 255, 255, 0.62); }
.footer__fine { color: rgba(255, 255, 255, 0.44); }

/* ---------- 로더 · 토스트 ---------- */
.loader { background: rgba(50, 0, 6, 0.64); }
.toast {
  background: #3f020c;
  border: 1px solid rgba(255, 212, 0, 0.42);
}

/* ---------- 포커스 (크림슨 위 노란 링) ---------- */
.topbar :focus-visible,
.tabs :focus-visible,
.hero :focus-visible,
.verdict :focus-visible,
.footer :focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* ---------- 반응형 ---------- */
@media (min-width: 560px) {
  .hero { padding: 28px 26px 52px; }
  .hero__emblem { width: 76px; height: 76px; }
  .hero__ribbon { font-size: 12px; height: 34px; }
  .quiz { margin-top: 12px; }
  .verdict { border-radius: 28px; }
}

@media (min-width: 760px) {
  .chip--rok { display: inline-flex; }
}

@media (min-width: 900px) {
  .topbar__in { height: 66px; }
  .tabsbar { top: 66px; }
  .brand__plate { font-size: 16px; }
  #paneJudge .quiz { margin-top: 0; }
  .hero { padding: 30px 28px 52px; }
  .hero__cap { width: 280px; height: 200px; right: -40px; bottom: 40px; }
  .verdict__emblem { width: 210px; height: 210px; }
  .verdict__cap { width: 240px; height: 170px; }
  .verdict { padding: 24px; }
}

@media (max-width: 559px) {
  .brand__txt { display: none; }
  .brand__plate { font-size: 13.5px; padding: 7px 10px 6px; }
  .topbar__in { height: 60px; }
  .tabsbar { top: 60px; }
  .hero__emblem { width: 54px; height: 54px; }
  .hero__cap { display: none; }
  .hero__meta { display: none; }
  .hero__desc { margin-top: 10px; }
  .hero__tags { margin-top: 14px; }
  .hero__ribbon { font-size: 10.5px; height: 30px; }
  .tape__in { font-size: 11px; }
}

/* ---------- v3 보정: 크림슨 위에 바로 놓이는 텍스트·버튼 ---------- */
.siblings .sec__kick,
.lore .sec__kick { color: var(--yellow); }
.siblings .sec__title,
.lore .sec__title { color: #fff; }
.siblings .sec__desc,
.lore .sec__desc { color: rgba(255, 255, 255, 0.74); }

.result > .actions .btn--primary {
  background: linear-gradient(180deg, #ffd400 0%, #f0bd00 100%);
  color: var(--plate-ink);
  box-shadow: 0 10px 24px rgba(40, 0, 6, 0.42);
}
.result > .actions .btn--primary:hover { background: linear-gradient(180deg, #ffde33 0%, #f6c71a 100%); }
.result > .actions .btn--primary .btn__meta {
  background: rgba(92, 5, 18, 0.16);
  color: #6e0715;
}
.result > .actions .btn--gray {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 212, 0, 0.36);
}
.result > .actions .btn--gray:hover { background: rgba(255, 255, 255, 0.26); }
.result > .actions .btn.is-done {
  background: #12b76a;
  color: #fff;
  border-color: transparent;
}
.result > .actions .btn.is-done .btn__meta { background: rgba(255, 255, 255, 0.24); color: #fff; }
.result > .btn--text { color: rgba(255, 212, 0, 0.82); }
.result > .btn--text:hover { color: #fff; }

.verdict__emblem { opacity: 0.13; }

/* 판정 번호: 워터마크 위에서도 읽히게 */
.verdict__top > span:last-child {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 7px;
  padding: 3px 8px;
  color: rgba(255, 255, 255, 0.86);
}
.verdict__top > span:last-child b { color: var(--yellow); }

/* 데스크톱 넓은 여백: 팔각모 8각 워터마크 */
.bg-mark {
  position: fixed;
  right: -140px;
  bottom: 6%;
  width: 580px;
  height: 580px;
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
  display: none;
}
@media (min-width: 1200px) {
  .bg-mark { display: block; }
}

/* 퀴즈 카드 상단 노란 스트라이프 */
.quiz { border-top: 4px solid var(--yellow); }

/* 탭 전환 시 히어로 제목이 고정 바에 가리지 않게 */
.pane { scroll-margin-top: 130px; }

/* ===================== 제휴 이벤트 + 쿠팡 다이나믹 배너 ===================== */
.promo { margin-top: 12px; }
.promo__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--red) 0%, var(--red-deep) 100%);
  border-bottom: 3px solid var(--yellow);
  color: #fff;
  box-shadow: 0 8px 22px rgba(200, 16, 46, 0.22);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.promo__cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(200, 16, 46, 0.26); }
.promo__cta:active { transform: scale(0.99); }
.promo__cta-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.promo__cta-txt b { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.34; word-break: keep-all; }
.promo__cta-txt span { font-size: 11.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.86); word-break: keep-all; }
.promo__go {
  flex: none;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--sep);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.coupang-dynamic-banner { max-width: 100%; overflow: hidden; margin: 14px auto 0; display: flex; justify-content: center; align-items: flex-start; }
.coupang-dynamic-banner ins { display: block; max-width: 100%; }
.coupang-dynamic-banner iframe { display: block; max-width: 100%; border: 0; }
