/* 직장인 유형 테스트 — 스타일 */
:root {
  --bg: #0f1226;
  --bg2: #171a35;
  --card: #ffffff;
  --ink: #1d2233;
  --sub: #6b7189;
  --line: #e7e9f2;
  --brand: #6c5ce7;
  --brand2: #a06bff;
  --accent: #ffb020;
  --pink: #ff6b9d;
  --ok: #14b8a6;
  --shadow: 0 12px 40px rgba(20, 20, 60, .16);
  --radius: 20px;
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 50% -10%, #262a55 0%, var(--bg) 55%);
  min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 48px; }

/* ── 공통 카드 ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
}

/* ── 헤더 ── */
.brand {
  text-align: center; color: #fff; padding: 8px 0 4px;
}
.brand .logo { font-size: 13px; letter-spacing: .5px; opacity: .8; font-weight: 700; }

/* ── 히어로(랜딩) ── */
.hero { text-align: center; color: #fff; padding: 28px 6px 24px; }
.hero .emojis { font-size: 40px; letter-spacing: 4px; margin-bottom: 10px; }
.hero h1 { font-size: 30px; font-weight: 800; line-height: 1.28; letter-spacing: -.5px; }
.hero h1 .hl { background: linear-gradient(120deg, var(--accent), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin-top: 14px; color: #c7cbe6; font-size: 15px; }
.hero .meta { margin-top: 10px; font-size: 13px; color: #8f95bd; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 17px 20px; border: none; border-radius: 16px;
  font-size: 17px; font-weight: 800; color: #fff; cursor: pointer;
  background: linear-gradient(120deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 24px rgba(108, 92, 231, .4);
  transition: transform .08s ease, box-shadow .2s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(2px) scale(.99); }
.btn.secondary { background: #eef0fa; color: var(--brand); box-shadow: none; }
.btn.ghost { background: transparent; color: #c7cbe6; box-shadow: none; border: 1px solid #3a3f6b; }
.btn.kakao { background: #FEE500; color: #191600; box-shadow: 0 8px 20px rgba(254,229,0,.3); }
.btnrow { display: flex; gap: 10px; margin-top: 12px; }
.btnrow .btn { font-size: 15px; padding: 14px; }

.hero .cta { margin-top: 26px; }
.trust { margin-top: 16px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.chip { font-size: 12px; color: #cfd3ee; background: rgba(255,255,255,.08); padding: 6px 11px; border-radius: 999px; }

/* ── 테스트 진행 ── */
.progress-top { color: #fff; margin: 6px 2px 14px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.bar { height: 8px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; margin: 0 2px 20px; }
.bar > i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--pink)); transition: width .35s cubic-bezier(.4,0,.2,1); }

.q { font-size: 21px; font-weight: 800; line-height: 1.4; letter-spacing: -.3px; margin-bottom: 22px; word-break: keep-all; }
.q .num { display: inline-block; color: var(--brand); font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt {
  text-align: left; padding: 18px 18px; border-radius: 15px; border: 2px solid var(--line);
  background: #fbfbfe; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer;
  transition: border-color .12s, background .12s, transform .06s; font-family: inherit; line-height: 1.45; word-break: keep-all;
}
.opt:hover { border-color: var(--brand2); background: #f6f4ff; }
.opt:active { transform: scale(.99); }
.opt .k { color: var(--brand); font-weight: 800; margin-right: 8px; }

.backlink { margin-top: 18px; text-align: center; }
.backlink button { background: none; border: none; color: #9aa0c8; font-size: 13px; cursor: pointer; font-family: inherit; }

/* ── 결과 ── */
.result-hero {
  text-align: center; border-radius: var(--radius); padding: 30px 20px 26px; color: #fff;
  background: linear-gradient(150deg, var(--brand), var(--brand2)); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.result-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 80% -20%, rgba(255,255,255,.25), transparent 60%); pointer-events: none; }
.result-hero .rarity { font-size: 12.5px; font-weight: 700; background: rgba(0,0,0,.18); display: inline-block; padding: 5px 12px; border-radius: 999px; }
.result-hero .bigemoji { font-size: 68px; margin: 12px 0 6px; line-height: 1; }
.result-hero .code { font-size: 13px; letter-spacing: 3px; opacity: .8; font-weight: 700; }
.result-hero h2 { font-size: 28px; font-weight: 800; margin-top: 4px; letter-spacing: -.5px; }
.result-hero .tagline { margin-top: 6px; font-size: 15px; color: #f0ecff; font-weight: 600; }

.section { margin-top: 16px; }
.section h3 { font-size: 15px; font-weight: 800; color: var(--brand); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.desc { font-size: 15.5px; color: #333a52; word-break: keep-all; }

.traits { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.traits li { background: #f5f4ff; border-radius: 12px; padding: 12px 14px; font-size: 14.5px; font-weight: 600; color: #3a3f66; }
.traits li::before { content: "✔ "; color: var(--brand); font-weight: 800; }

.gauge { margin-top: 8px; }
.gauge .row { margin-bottom: 14px; }
.gauge .lab { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--sub); margin-bottom: 5px; }
.gauge .lab .on { color: var(--ink); }
.gauge .track { height: 10px; background: var(--line); border-radius: 999px; position: relative; overflow: hidden; }
.gauge .track > i { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--brand), var(--brand2)); }

.sbs { display: flex; gap: 10px; }
.sbs .box { flex: 1; border-radius: 14px; padding: 14px; text-align: center; }
.sbs .good { background: #e9fbf6; }
.sbs .bad { background: #fff0f4; }
.sbs .box .h { font-size: 12.5px; font-weight: 800; margin-bottom: 5px; }
.sbs .good .h { color: var(--ok); }
.sbs .bad .h { color: var(--pink); }
.sbs .box .t { font-size: 13.5px; color: #444a63; word-break: keep-all; }

.match-row { display: flex; gap: 10px; }
.match-row .m { flex: 1; border-radius: 14px; padding: 14px; text-align: center; border: 2px solid var(--line); }
.match-row .m .lbl { font-size: 12px; font-weight: 800; color: var(--sub); }
.match-row .m .em { font-size: 30px; margin: 6px 0 2px; }
.match-row .m .nm { font-size: 14px; font-weight: 800; }
.match-row .m.best { border-color: var(--ok); background: #e9fbf6; }
.match-row .m.worst { border-color: var(--pink); background: #fff0f4; }

.quote { margin-top: 8px; font-size: 15px; font-style: italic; color: #4a4f70; background: #f6f6fb; border-left: 4px solid var(--brand2); padding: 12px 14px; border-radius: 8px; word-break: keep-all; }

.share-box { margin-top: 22px; }
.share-box .lead { text-align: center; color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; }

.othertypes { margin-top: 26px; }
.othertypes .tt { color: #cfd3ee; font-size: 14px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grid .cell { background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 4px; text-align: center; cursor: pointer; transition: background .12s; }
.grid .cell:hover { background: rgba(255,255,255,.14); }
.grid .cell .e { font-size: 24px; }
.grid .cell .n { font-size: 10.5px; color: #b9bee0; margin-top: 3px; line-height: 1.25; word-break: keep-all; }

/* 광고 슬롯 */
.adslot { margin: 22px 0; min-height: 90px; display: flex; align-items: center; justify-content: center; }

/* 결과 공유 카드(캡처용) */
#shareCard {
  position: fixed; left: -9999px; top: 0; width: 500px; padding: 44px 40px;
  background: linear-gradient(150deg, #6c5ce7, #a06bff); color: #fff; font-family: inherit;
}
#shareCard .sc-emoji { font-size: 96px; text-align: center; }
#shareCard .sc-code { text-align: center; letter-spacing: 4px; font-weight: 700; opacity: .85; font-size: 16px; margin-top: 8px; }
#shareCard .sc-name { text-align: center; font-size: 40px; font-weight: 800; margin-top: 6px; }
#shareCard .sc-tag { text-align: center; font-size: 19px; color: #efeaff; margin-top: 6px; font-weight: 600; }
#shareCard .sc-desc { font-size: 18px; margin-top: 22px; line-height: 1.6; color: #f4f1ff; word-break: keep-all; }
#shareCard .sc-foot { margin-top: 30px; text-align: center; font-size: 15px; opacity: .8; font-weight: 700; }

/* 하단 정보(SEO/가치) */
.info { margin-top: 30px; color: #aeb3d6; }
.info h3 { color: #eef0ff; font-size: 16px; margin: 22px 0 8px; }
.info p { font-size: 13.5px; line-height: 1.7; color: #a7ace0; word-break: keep-all; }
.info details { background: rgba(255,255,255,.05); border-radius: 12px; padding: 12px 16px; margin-top: 8px; }
.info summary { font-size: 14px; font-weight: 700; color: #dfe2fb; cursor: pointer; }
.info details p { margin-top: 8px; }

.footer { margin-top: 30px; text-align: center; color: #7a80ab; font-size: 12px; }
.footer a { color: #9aa0c8; text-decoration: none; }

.hidden { display: none !important; }
.fade { animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
