:root {
  --night: #07111f; --navy: #0c1b2e; --ice: #7dd3fc; --snow: #f5f9fc; --signal: #ff6a33;
  --kr: "Pretendard Variable", Pretendard, system-ui, sans-serif; --en: "Barlow Condensed", sans-serif;
  --accent: #ff6a33;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: radial-gradient(ellipse at 50% 0%, #13263d 0%, #07111f 70%) fixed; }
body { font-family: var(--kr); color: var(--snow); -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }
ul { list-style: none; }

.quiz { position: relative; width: min(100%, 520px); min-height: 100dvh; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.home { color: rgba(245, 249, 252, 0.6); font-family: var(--en); font-weight: 700; letter-spacing: 0.16em; font-size: 13px; text-decoration: none; }
.view { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 18px 0; animation: in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.kicker { font-family: var(--en); font-weight: 700; letter-spacing: 0.22em; font-size: 13px; color: var(--ice); display: flex; gap: 10px; align-items: center; }
.kicker span { background: var(--signal); color: var(--night); padding: 4px 8px 3px; letter-spacing: 0.1em; font-weight: 800; }
.kicker em { font-style: normal; color: rgba(245, 249, 252, 0.7); font-family: var(--kr); letter-spacing: 0; font-size: 13px; }
.title { font-size: clamp(44px, 13vw, 68px); font-weight: 900; line-height: 1.02; letter-spacing: -0.05em; }
.lead { font-size: 16px; color: rgba(245, 249, 252, 0.8); }
.types { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.types li { font-size: 13px; font-weight: 700; padding: 7px 11px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.18); color: rgba(245, 249, 252, 0.85); }

.btn { display: grid; place-items: center; min-height: 54px; border-radius: 14px; font-weight: 900; font-size: 17px; padding: 0 18px; text-decoration: none; text-align: center; }
.btn--go { background: var(--signal); color: var(--night); box-shadow: 0 10px 30px rgba(255, 106, 51, 0.35); }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.2); color: var(--snow); font-size: 15px; font-weight: 800; min-height: 48px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link { color: rgba(245, 249, 252, 0.6); font-size: 13px; text-decoration: underline; padding: 6px; align-self: center; }

/* progress: a slalom of seven gates */
.course { display: flex; align-items: center; gap: 6px; }
.course i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); transition: background 0.3s; }
.course i.done { background: var(--ice); }
.course i.now { background: var(--signal); }
.count { font-family: var(--en); font-weight: 700; letter-spacing: 0.16em; font-size: 14px; color: rgba(245, 249, 252, 0.6); }
.count b { color: var(--snow); font-size: 22px; }
.q { font-size: clamp(26px, 7.4vw, 36px); font-weight: 900; line-height: 1.2; letter-spacing: -0.04em; min-height: 2.4em; }
.opts { display: grid; gap: 10px; }
.opt {
  text-align: left; padding: 16px 18px; border-radius: 14px; font-size: 16.5px; font-weight: 700; line-height: 1.35;
  background: rgba(255, 255, 255, 0.05); border: 1.5px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
}
.opt:hover { border-color: var(--ice); background: rgba(125, 211, 252, 0.08); }
.opt:active, .opt.is-picked { transform: scale(0.985); background: var(--signal); border-color: var(--signal); color: var(--night); }

/* result card */
.card { position: relative; overflow: hidden; border-radius: 22px; padding: 26px 24px 20px; background: var(--accent); color: var(--night); display: grid; gap: 12px; }
.card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 26px solid rgba(7, 17, 31, 0.08); }
.card__label { font-family: var(--en); font-weight: 800; letter-spacing: 0.2em; font-size: 13px; opacity: 0.7; }
.card__title { font-size: clamp(34px, 10vw, 48px); font-weight: 900; line-height: 1.05; letter-spacing: -0.05em; }
.card__tag { font-size: 17px; font-weight: 800; }
.card__list { display: grid; gap: 7px; margin-top: 2px; }
.card__list li { position: relative; padding-left: 18px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.card__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--night); }
.card__match { margin-top: 4px; padding-top: 12px; border-top: 2px solid rgba(7, 17, 31, 0.16); font-size: 15px; font-weight: 700; }
.card__match b { font-family: var(--en); letter-spacing: 0.08em; margin-right: 8px; font-weight: 800; }
.card__foot { font-family: var(--en); font-weight: 700; letter-spacing: 0.18em; font-size: 12px; opacity: 0.6; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 9; background: var(--snow); color: var(--night); font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 999px; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }
