/* 쮸댕 모의시험 — 쮸소서 컨설팅 디자인 색 + 스크랩북 스티커 느낌 */
:root {
  --sky: #3E82C0; --sky-deep: #2C6AA5; --sky-soft: #DCEBF8;
  --cream: #FBF1E0; --cream-2: #FFF8EC; --paper: #FFFDF7;
  --yellow: #F5C84B; --yellow-soft: #FFF1C2;
  --pink: #E98AA8; --pink-ink: #A8335F; --pink-soft: #FDE7EF;
  --green: #8CC66B; --green-ink: #3B7A25; --green-soft: #E8F5DD;
  --blue-line: #7BAAD8; --blue-ink: #2D5E8E;
  --ink: #2B3440; --muted: #7C7468; --line: #EADBC2;
  --red: #E0523F;
  --radius: 18px; --shadow: 0 3px 0 rgba(44, 106, 165, .12), 0 8px 18px rgba(60, 50, 30, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--cream); color: var(--ink); font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; -webkit-text-size-adjust: 100%; }
.wrap { max-width: 480px; margin: 0 auto; padding: 0 16px 96px; overflow-x: hidden; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 14px; } .center { text-align: center; justify-content: center; }
.hand { font-family: "Gaegu", "Pretendard Variable", sans-serif; }
a { color: var(--blue-ink); }

/* ---------- 홈 히어로 (파란 하늘 + 물결 + 쮸댕 뱃지) ---------- */
.hero-sky { position: relative; margin: 0 -16px; padding: 28px 16px 64px; background: var(--sky); color: var(--cream); text-align: center; overflow: hidden; }
.hero-sky::after { /* 물결 아래 테두리 */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px;
  background: radial-gradient(circle at 18px 0, var(--sky) 17px, var(--cream) 18px) -2px 0 / 36px 28px repeat-x;
}
.cloud { position: absolute; width: 74px; opacity: .95; }
.cloud.c1 { left: 6px; top: 70px; } .cloud.c2 { right: 4px; top: 150px; width: 60px; }
.pill-yellow { display: inline-block; background: var(--yellow); color: #3A2E14; font-weight: 800; font-size: 14px; padding: 7px 16px; border-radius: 99px; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.title { margin: 14px 0 6px; font-size: 52px; line-height: 1.05; font-weight: 900; letter-spacing: -2px; color: var(--cream); text-shadow: 0 4px 0 var(--sky-deep), 0 8px 14px rgba(0,0,0,.18); }
.sub { margin: 8px 0 0; font-size: 19px; font-weight: 800; color: var(--cream); text-shadow: 0 2px 0 var(--sky-deep); }
.sub em { font-style: normal; color: var(--yellow); }
.badge-wrap { display: flex; justify-content: center; margin-top: -58px; position: relative; z-index: 2; }
.tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.tag { font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 99px; background: var(--paper); border: 2.5px solid; }
.tag.pink { color: var(--pink-ink); border-color: var(--pink); } .tag.green { color: var(--green-ink); border-color: var(--green); } .tag.blue { color: var(--blue-ink); border-color: var(--blue-line); }

/* ---------- 쮸댕 캐릭터 ---------- */
.jj { width: 64px; height: 64px; flex: none; border-radius: 50%; position: relative; }
.jj img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 50%; }
.jj.badge { width: 128px; height: 128px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); animation: bob 3s ease-in-out infinite; }
.jj.sm { width: 48px; height: 48px; } .jj.xs { width: 38px; height: 38px; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-2deg); } }

/* ---------- 상단 바 ---------- */
.top { position: sticky; top: 0; z-index: 10; margin: 0 -16px 8px; padding: 10px 16px; display: flex; align-items: center; gap: 8px; background: var(--sky); color: var(--cream); box-shadow: 0 2px 0 var(--sky-deep); }
.top h1 { flex: 1; margin: 0; font-size: 17px; font-weight: 800; }
.back { background: none; border: 0; color: var(--cream); font: inherit; font-size: 28px; line-height: 1; padding: 0 6px 4px 0; cursor: pointer; }

/* ---------- 카드·스티커 ---------- */
.card { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; box-shadow: var(--shadow); }
.card.notice { background: var(--cream-2); border-style: dashed; }
.notice p { margin: 4px 0; }
.h2 { font-size: 17px; font-weight: 800; margin: 0 0 10px; } .h3 { font-size: 15px; font-weight: 800; margin: 12px 0 6px; }
.label { display: inline-block; font-size: 12px; font-weight: 800; color: var(--blue-ink); background: var(--sky-soft); padding: 2px 10px; border-radius: 99px; margin-bottom: 6px; }
.star { position: absolute; color: var(--yellow); font-size: 20px; text-shadow: 0 1px 0 rgba(0,0,0,.1); pointer-events: none; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 800; border: 0; border-radius: 14px; padding: 12px 18px; min-height: 46px; cursor: pointer; background: var(--line); color: var(--ink); text-decoration: none; }
.btn.primary { background: var(--sky); color: var(--cream); box-shadow: 0 4px 0 var(--sky-deep); }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sky-deep); }
.btn.yellow { background: var(--yellow); color: #3A2E14; box-shadow: 0 4px 0 #C99A20; }
.btn.ghost { background: var(--paper); border: 2px solid var(--line); }
.btn.link { background: none; color: var(--muted); text-decoration: underline; font-weight: 500; }
.btn.big { width: 100%; font-size: 18px; padding: 16px; }
.btn.wide { width: 100%; }
.btn.tiny { min-height: 32px; padding: 4px 10px; font-size: 13px; font-weight: 600; border-radius: 99px; }
.btn small { font-weight: 500; font-size: 13px; opacity: .85; }
.btn:disabled { opacity: .5; }
.cta { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- 직종 칩 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { font: inherit; font-weight: 700; font-size: 15px; padding: 7px 15px; border-radius: 99px; background: var(--paper); color: var(--ink); border: 2.5px solid var(--line); cursor: pointer; }
.chip-btn:nth-child(4n+1) { border-color: var(--pink); } .chip-btn:nth-child(4n+2) { border-color: var(--green); }
.chip-btn:nth-child(4n+3) { border-color: var(--blue-line); } .chip-btn:nth-child(4n+4) { border-color: var(--yellow); }
.chip-btn.on { background: var(--sky); color: var(--cream); border-color: var(--sky-deep); box-shadow: 0 3px 0 var(--sky-deep); }
.chip { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--line); }
.chip.live { background: var(--green-soft); color: var(--green-ink); } .chip.demo { background: var(--yellow-soft); color: #7A5A06; }

/* ---------- 여정 지도 (홈) ---------- */
.journey { position: relative; margin: 18px 0 6px; padding: 4px 0; }
.journey::before { /* 구불구불 점선 길 */
  content: ""; position: absolute; left: 50%; top: 30px; bottom: 30px; width: 0; border-left: 4px dashed var(--blue-line); transform: translateX(-2px); opacity: .7;
}
.jstop { position: relative; display: flex; align-items: center; gap: 12px; width: 84%; margin: 0 0 14px; padding: 14px 16px; border-radius: 22px; border: 2.5px solid; background: var(--paper); text-align: left; font: inherit; color: inherit; cursor: pointer; box-shadow: var(--shadow); }
.jstop:nth-of-type(odd) { margin-right: auto; transform: rotate(-1.5deg); }
.jstop:nth-of-type(even) { margin-left: auto; transform: rotate(1.5deg); }
.jstop .n { font-size: 40px; font-weight: 900; line-height: 1; font-family: "Gaegu", sans-serif; }
.jstop b { display: block; font-size: 17px; } .jstop small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.jstop.pink { border-color: var(--pink); background: var(--pink-soft); } .jstop.pink .n { color: var(--pink-ink); }
.jstop.green { border-color: var(--green); background: var(--green-soft); } .jstop.green .n { color: var(--green-ink); }
.jstop.blue { border-color: var(--blue-line); background: var(--sky-soft); } .jstop.blue .n { color: var(--blue-ink); }
.jstop.yellow { border-color: var(--yellow); background: var(--yellow-soft); cursor: default; margin-left: auto; margin-right: 0; transform: rotate(1.5deg); } .jstop.yellow .n { color: #9A6E0A; }
.jstop .go { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--blue-ink); white-space: nowrap; }
.jstop .stk { position: absolute; top: -12px; right: 14px; font-size: 22px; }

/* ---------- 진행 중 미니 길 (쮸댕이 같이 걸어감) ---------- */
.trail { position: relative; height: 72px; margin: 4px 0 6px; }
.trail-line { position: absolute; left: 10%; right: 10%; top: 48px; height: 0; border-top: 4px dashed var(--blue-line); }
.tstop { position: absolute; top: 38px; transform: translateX(-50%); text-align: center; width: 74px; }
.tstop .dot { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--blue-line); font-size: 12px; font-weight: 900; color: var(--blue-ink); }
.tstop small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.2; margin-top: 2px; }
.tstop.done .dot { background: var(--green); border-color: var(--green-ink); color: #fff; }
.tstop.on .dot { background: var(--yellow); border-color: #C99A20; color: #3A2E14; } .tstop.on small { color: var(--ink); }
.trail .walker { position: absolute; top: -2px; transform: translateX(-50%); transition: left .8s ease; }

/* ---------- 쮸댕 말풍선 ---------- */
.say { display: flex; gap: 10px; align-items: flex-end; margin: 14px 0; }
.bubble { position: relative; flex: 1; background: var(--paper); border: 2px solid var(--line); border-radius: 20px 20px 20px 6px; padding: 12px 14px; font-weight: 600; box-shadow: var(--shadow); }
.bubble b { color: var(--sky-deep); }

/* ---------- 폼 ---------- */
.mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 2px dashed var(--line); }
.mode:first-of-type { border-top: 0; } .mode input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--sky); flex: none; }
.mode small { display: block; color: var(--muted); font-size: 12px; }
.ta { width: 100%; font: inherit; color: inherit; background: var(--cream-2); border: 2px solid var(--line); border-radius: 14px; padding: 12px; resize: vertical; line-height: 1.65; }
.ta:focus { outline: 3px solid var(--sky-soft); border-color: var(--sky); }
.flow { padding-left: 20px; } .flow li { margin: 6px 0; }
.rules { padding-left: 20px; }

/* ---------- 성향검사 ---------- */
.progress { height: 10px; background: var(--paper); border: 2px solid var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.progress i { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--sky) 0 8px, #5B98CF 8px 16px); }
.pq small { color: var(--muted); font-weight: 700; }
.pq-t { font-size: 19px; font-weight: 800; margin: 8px 0 18px; min-height: 3.2em; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sc { font: inherit; border: 2px solid var(--line); background: var(--cream-2); color: inherit; border-radius: 14px; padding: 10px 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sc b { font-size: 18px; } .sc small { font-size: 11px; line-height: 1.2; color: var(--muted); text-align: center; }
.sc.on, .sc:active { background: var(--sky); border-color: var(--sky-deep); color: var(--cream); } .sc.on small { color: var(--cream); }
.axis .bar { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.axis .bar span:last-child { text-align: right; }
.track { position: relative; height: 10px; background: var(--sky-soft); border-radius: 99px; }
.track i { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--paper); box-shadow: 0 1px 4px rgba(0,0,0,.2); transform: translate(-50%, -50%); }
.changes { padding-left: 18px; font-size: 14px; } .changes li { margin: 4px 0; }

/* ---------- 전략게임 ---------- */
.game-head { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px auto; max-width: 340px; }
.cell { aspect-ratio: 1; font-size: 34px; border-radius: 20px; background: var(--paper); border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--line); cursor: pointer; transition: transform .1s, background .15s; }
.cell:disabled { cursor: default; opacity: 1; color: inherit; }
.cell.lit { background: var(--yellow); border-color: #C99A20; transform: scale(1.06); }
.cell.good { background: var(--green-soft); border-color: var(--green); } .cell.bad { background: var(--pink-soft); border-color: var(--pink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 8px; }
.stats b { display: block; font-size: 24px; color: var(--sky-deep); font-weight: 900; } .stats small { font-size: 12px; color: var(--muted); }
.log { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; } .log th, .log td { border-top: 2px dashed var(--line); padding: 6px; text-align: center; }

/* ---------- 영상면접 ---------- */
.iv { display: flex; flex-direction: column; gap: 10px; }
.interviewer { display: flex; align-items: center; gap: 10px; }
.interviewer > div:nth-child(2) { flex: 1; } .interviewer small { display: block; color: var(--muted); font-size: 12px; }
.iv-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; }
.qbox { background: var(--sky); color: var(--cream); border-radius: var(--radius); padding: 18px; box-shadow: 0 4px 0 var(--sky-deep); }
.qbox p { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.5; }
.timer { display: flex; align-items: center; justify-content: space-between; background: var(--yellow-soft); border: 2px solid var(--yellow); border-radius: 16px; padding: 10px 16px; font-weight: 700; }
.timer b { font-size: 28px; font-weight: 900; font-variant-numeric: tabular-nums; }
.timer.rec { background: var(--pink-soft); border-color: var(--pink); color: var(--pink-ink); }
.rec-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--red); margin-right: 4px; vertical-align: middle; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.me { width: 100%; aspect-ratio: 3/4; max-height: 46vh; object-fit: cover; border-radius: var(--radius); background: #000; transform: scaleX(-1); border: 3px solid var(--paper); box-shadow: var(--shadow); }
#pv { max-height: 34vh; }
.mic-only { text-align: center; padding: 28px; border: 2.5px dashed var(--blue-line); border-radius: var(--radius); color: var(--blue-ink); font-weight: 700; background: var(--paper); }
.meter { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.bar-bg { flex: 1; height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; } .bar-bg i { display: block; height: 100%; width: 0; background: var(--green); transition: width .08s; }

/* ---------- 결과 · 영수증 ---------- */
.receipt-wrap { position: relative; margin: 10px -16px 0; padding: 22px 24px 30px; background: linear-gradient(var(--sky) 0 60%, var(--cream) 60%); }
.receipt { position: relative; background: #FFFEFA; color: #2a2a2a; font-family: "Courier New", ui-monospace, monospace; font-size: 13.5px; padding: 22px 18px 18px; transform: rotate(-1.2deg); box-shadow: 0 10px 22px rgba(0,0,0,.18);
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 5.5px, #000 6px) 0 100% / 14px 14px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 7px) no-repeat;
          mask: radial-gradient(circle 6px at 50% 100%, transparent 5.5px, #000 6px) 0 100% / 14px 14px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 7px) no-repeat; }
.receipt h2 { font-family: "Pretendard Variable", sans-serif; font-weight: 900; text-align: center; margin: 0; font-size: 22px; letter-spacing: 2px; }
.receipt .sub2 { text-align: center; margin: 0 0 10px; font-size: 12px; }
.receipt .ln { display: flex; justify-content: space-between; gap: 8px; }
.receipt .dash { border-top: 1.5px dashed #888; margin: 8px 0; }
.receipt .tot { font-weight: 700; font-size: 15px; }
.barcode { height: 44px; margin: 12px 0 4px; background: repeating-linear-gradient(90deg, #222 0 2px, transparent 2px 4px, #222 4px 5px, transparent 5px 8px, #222 8px 11px, transparent 11px 12px); }
.receipt .thanks { text-align: center; margin: 10px 0 0; }
.receipt-wrap .jj { position: absolute; right: 10px; bottom: 2px; z-index: 2; transform: rotate(8deg); }
.receipt-wrap .stk { position: absolute; font-size: 26px; z-index: 2; }
.tabs { display: flex; gap: 6px; margin: 14px 0 0; }
.tab { flex: 1; border: 2.5px solid var(--line); background: var(--paper); font: inherit; font-weight: 800; border-radius: 99px; padding: 8px 4px; cursor: pointer; color: var(--ink); }
.tab.on { background: var(--sky); color: var(--cream); border-color: var(--sky-deep); }
.review .rq { font-weight: 800; margin: 4px 0 8px; }
.try { border-top: 2px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.player { margin: 6px 0; } .player video { width: 100%; border-radius: 14px; background: #000; max-height: 50vh; } .player audio { width: 100%; }
.pane { background: var(--cream-2); border-radius: 12px; padding: 10px; font-size: 14px; white-space: pre-wrap; }
.checks { display: flex; flex-direction: column; gap: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 6px 0; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--green-ink); flex: none; }
.memo { min-height: 60px; margin: 8px 0; }

/* ---------- 기타 ---------- */
.foot { margin-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: calc(100% - 32px); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; opacity: 0; transition: .25s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 타이머 막대 · 새 게임 ---------- */
.tbar { height: 8px; background: var(--sky-soft); border-radius: 99px; overflow: hidden; margin: 6px 0; }
.tbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--pink), var(--yellow)); border-radius: 99px; }
.gstage { min-height: 230px; display: grid; place-items: center; background: var(--paper); border: 2.5px solid var(--line); border-radius: 22px; margin: 10px 0 4px; box-shadow: var(--shadow); padding: 12px; }
.shape { font-size: 110px; line-height: 1; font-weight: 900; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.vs > div { background: var(--cream-2); border-radius: 16px; padding: 10px; text-align: center; }
.vs small { display: block; color: var(--muted); font-weight: 700; margin-top: 4px; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-content: center; min-height: 150px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--sky); transform: rotate(var(--r)); box-shadow: inset -3px -3px 0 rgba(0,0,0,.12); }
.vs > div:last-child .dots i { background: var(--pink); }
.rps { text-align: center; display: flex; flex-direction: column; align-items: center; } .rps small { display: block; color: var(--muted); font-weight: 700; } .rps .shape { font-size: 90px; }
.rps b { display: inline-block; margin-top: 8px; font-size: 24px; padding: 4px 18px; border-radius: 99px; }
.rps b.win { background: var(--sky-soft); color: var(--sky-deep); } .rps b.lose { background: var(--pink-soft); color: var(--red); }
.choices { display: grid; gap: 10px; } .choices.c2 { grid-template-columns: 1fr 1fr; } .choices.c3 { grid-template-columns: repeat(3, 1fr); }
.choices.c3 .btn { font-size: 34px; padding: 10px; }
.ch.good { background: var(--green-soft); border-color: var(--green); } .ch.bad { background: var(--pink-soft); border-color: var(--pink); }
.jstop.wide-stop { width: 100%; transform: none !important; margin: 0 0 12px; }
