/* =========================================================
   삼국지 천하결전 시즌1 회고평가 CBT v2
   국가자격 CBT의 실용적인 화면 구조 + 팬메이드 비주얼
   ========================================================= */
:root{
  --teal:#079cab;
  --teal-deep:#027b89;
  --blue:#148bc8;
  --blue-deep:#2766a3;
  --cyan:#13a9d7;
  --paper:#ffffff;
  --bg:#edf1f4;
  --ink:#25282b;
  --muted:#6d7378;
  --line:#cfd9df;
  --line-dark:#98aab5;
  --panel:#f7f9fa;
  --pink:#ed1450;
  --good:#1b9271;
  --bad:#d44343;
  --gold:#d2a64a;
  --serif:"Batang","바탕","Noto Serif KR",Georgia,serif;
  --sans:"Malgun Gothic","맑은 고딕","Apple SD Gothic Neo",Arial,sans-serif;
  --qfont:18px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:var(--sans);color:var(--ink);background:var(--bg)}
button,input{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}

/* ===== 입구 ===== */
.entry-screen{
  min-height:100vh;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 78% 12%,rgba(19,169,215,.12),transparent 28rem),
    linear-gradient(135deg,#fbfcfd 0%,#eef6f7 55%,#e7f0f2 100%);
}
.entry-screen:before{
  content:"";
  position:absolute;
  width:560px;height:560px;
  border-radius:50%;
  border:86px solid rgba(7,156,171,.055);
  right:-170px;top:-180px;
}
.entry-bg-mark{
  position:absolute;right:-20px;bottom:-110px;
  font:900 360px/1 var(--sans);
  color:rgba(7,156,171,.035);
  user-select:none;
}
.entry-shell{max-width:1240px;margin:0 auto;padding:28px 34px 55px;position:relative;z-index:2}
.entry-header{
  display:flex;justify-content:space-between;align-items:center;
  border-bottom:3px solid var(--teal);
  padding-bottom:18px;
}
.entry-logo{display:flex;align-items:center;gap:12px}
.logo-circle{
  width:44px;height:44px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--teal);color:#fff;
  font-family:var(--serif);font-size:22px;font-weight:700;
  box-shadow:inset 0 0 0 3px #fff,0 0 0 1px var(--teal);
}
.entry-logo strong{display:block;font-size:18px}
.entry-logo small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.entry-code{font-size:11px;color:var(--teal-deep);letter-spacing:.13em;font-weight:700}

.entry-grid{
  display:grid;grid-template-columns:minmax(0,1.03fr) minmax(360px,.82fr);
  gap:64px;align-items:center;padding-top:52px;
}
.entry-kicker{font-size:11px;color:var(--teal);font-weight:800;letter-spacing:.18em}
.entry-copy h1{
  font-size:clamp(42px,5.4vw,72px);
  line-height:1.08;letter-spacing:-.065em;margin:15px 0 20px;
}
.entry-copy h1 em{font-style:normal;color:var(--teal-deep)}
.entry-lead{
  max-width:620px;font-size:16px;line-height:1.75;color:#555d62;
  word-break:keep-all;margin:0 0 26px;
}
.exam-brief{
  display:grid;grid-template-columns:repeat(3,minmax(0,150px));
  width:max-content;max-width:100%;
  border:1px solid #b7ccd2;background:rgba(255,255,255,.75);
}
.exam-brief>div{padding:14px 18px;border-right:1px solid #cbd8dc}
.exam-brief>div:last-child{border-right:0}
.exam-brief span{display:block;font-size:10px;color:var(--muted)}
.exam-brief strong{font-size:23px;margin-right:4px}
.exam-brief small{font-size:10px;color:var(--muted)}

.nickname-form{margin-top:34px;max-width:620px}
.nickname-form label{display:block;font-weight:700;font-size:13px;margin-bottom:8px}
.nickname-row{display:flex;gap:8px}
.nickname-row input{
  flex:1;min-width:0;height:52px;
  border:2px solid #9cb7be;background:#fff;
  padding:0 16px;font-size:16px;outline:none;
}
.nickname-row input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(7,156,171,.12)}
.nickname-row button{
  min-width:132px;border:0;background:var(--teal);color:#fff;font-weight:800;
  padding:0 20px;
}
.nickname-row button:hover{background:var(--teal-deep)}
.nickname-form>p{font-size:10px;color:var(--muted);margin:7px 0 0}
.entry-error{color:var(--bad)!important;font-weight:700;min-height:14px}

.mascot-stage{position:relative;max-width:500px;justify-self:end}
.speech-bubble{
  position:absolute;z-index:3;left:-48px;top:-34px;
  background:#fff;border:2px solid #263035;border-radius:20px;
  padding:14px 18px;box-shadow:0 12px 28px rgba(28,48,56,.1);
}
.speech-bubble:after{
  content:"";position:absolute;right:35px;bottom:-14px;
  width:22px;height:22px;background:#fff;border-right:2px solid #263035;border-bottom:2px solid #263035;
  transform:rotate(45deg);
}
.speech-bubble b,.speech-bubble span{display:block;position:relative;z-index:1}
.speech-bubble b{font-size:14px}
.speech-bubble span{font-size:11px;color:var(--muted);margin-top:4px}
.mascot-card{
  background:#fff;border:1px solid #c6d4d8;
  padding:10px;box-shadow:0 22px 55px rgba(31,72,80,.15);
  transform:rotate(1.2deg);
}
.mascot-card img{width:100%;display:block;aspect-ratio:1/1;object-fit:contain;background:#fff}
.mascot-caption{
  margin:-3px 18px 0;background:#273136;color:#fff;
  padding:11px 16px;display:flex;justify-content:space-between;gap:12px;
  transform:rotate(-1deg);
}
.mascot-caption span{font-size:10px;color:#bfcbd0}
.mascot-caption strong{font-size:13px}

/* ===== CBT 상단 ===== */
.exam-screen{min-height:100vh;background:#fff}
.cbt-topbar{
  min-height:62px;display:grid;grid-template-columns:1fr auto auto;align-items:center;
  gap:18px;padding:8px 18px;
  border-top:5px solid #2b2d2f;border-bottom:4px solid var(--cyan);
  background:linear-gradient(#fff,#f3f3f3);
}
.cbt-brand{display:flex;align-items:center;gap:10px}
.cbt-badge{
  width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  background:var(--teal);color:#fff;font-family:var(--serif);font-size:18px;
}
.cbt-brand b{display:block;font-size:17px}
.cbt-brand small{display:block;font-size:9px;color:var(--muted);margin-top:2px}
.candidate-chip,.timer-box{
  border-left:1px solid #bfc8cd;padding-left:16px;min-width:120px
}
.candidate-chip span,.timer-box span{display:block;font-size:9px;color:var(--muted)}
.candidate-chip strong{font-size:13px}
.timer-box strong{font-size:19px;color:#e01d47;font-variant-numeric:tabular-nums}

.cbt-toolbar{
  min-height:48px;background:#e9edf1;border-bottom:1px solid #bcc8ce;
  display:flex;align-items:center;padding:5px 12px;gap:15px;
}
.toolbar-group{display:flex;align-items:center;gap:5px}
.toolbar-label{font-size:10px;font-weight:700;margin-right:2px}
.toolbar-group button{
  height:30px;border:1px solid #cfd9de;background:#fff;color:#5e666b;border-radius:3px;padding:0 10px;font-size:10px
}
.toolbar-group button.active{background:#c9e8f2;color:#127ca4;border-color:#a9d5e2;font-weight:700}
.toolbar-spacer{flex:1}
.question-counter{
  min-width:170px;background:#fff;border-left:3px solid var(--cyan);padding:5px 10px;font-size:10px;line-height:1.65
}
.question-counter span{display:block}.question-counter b{color:#e12a52}

/* ===== CBT 본문 ===== */
.cbt-layout{
  display:grid;grid-template-columns:minmax(0,1fr) 270px;
  min-height:calc(100vh - 115px);
}
.question-area{min-width:0;background:#fff;border-right:1px solid #cfd9df}
.question-sheet{
  padding:28px clamp(22px,4vw,52px) 36px;min-height:calc(100vh - 190px);
  font-size:var(--qfont);
}
.question-status-row{
  display:flex;justify-content:space-between;align-items:center;
  border-bottom:1px solid #d6dde1;padding-bottom:9px;margin-bottom:24px;
  font-size:10px;color:var(--muted);
}
.flag-button{border:0;background:transparent;color:#778087;padding:5px}
.flag-button[aria-pressed="true"]{color:#d74343;font-weight:800}
.qnumrow{display:flex;align-items:baseline;gap:9px;margin-bottom:10px}
.qno{font-size:1em;color:#6d7378}.qtag{font-size:9px;border:1px solid #c5d0d6;padding:2px 5px;color:#667077}
.qscore{margin-left:auto;font-size:10px;color:#8a9195}
.prompt{font-family:var(--serif);font-size:1em;line-height:1.65;word-break:keep-all;max-width:930px}
.prompt p{margin:0 0 12px}
.passage{border:1px solid #3b4043;padding:16px 18px;margin:18px 0;background:#fff;font-size:.93em}
.passage-label{display:block;text-align:center;font-weight:700;margin-bottom:9px}
.prompt table{width:100%;border-collapse:collapse;margin:16px 0;font-family:var(--sans);font-size:.82em}
.prompt th,.prompt td{border:1px solid #454b4f;padding:7px;text-align:center}.prompt th{background:#f2f4f5}

.choices{display:grid;gap:7px;margin-top:20px;max-width:920px}
.choice{
  display:grid;grid-template-columns:30px 1fr;gap:5px;align-items:start;
  width:100%;border:1px solid transparent;background:transparent;text-align:left;padding:8px 6px;color:#454b4f
}
.choice:hover{background:#f4f8fa;border-color:#d8e6ec}
.choice.selected{background:#eef8fc;border-color:#8fcbe2}
.choice-num{
  width:22px;height:22px;border:1px solid #57b9df;border-radius:50%;
  display:grid;place-items:center;font-size:11px;color:#168fc1;font-family:var(--sans);margin-top:1px
}
.choice.selected .choice-num{background:#139fd0;color:#fff;border-color:#139fd0}
.choice-text{font-family:var(--serif);font-size:.92em;line-height:1.48}

.bottom-navigation{
  height:56px;background:#e1e5e8;border-top:1px solid #c7d0d5;
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:6px 18px
}
.bottom-navigation #prevBtn{justify-self:start}.bottom-navigation #nextBtn{justify-self:end}
.pill{
  min-width:105px;height:38px;border-radius:22px;border:1px solid #c1ccd2;background:#fff;color:#2289b1;font-weight:700;font-size:12px;padding:0 18px
}
.pill.primary{background:linear-gradient(#18aeb9,#0796a4);color:#fff;border-color:#078d99}
.pill.secondary{background:linear-gradient(#fff,#edf0f2)}
.pill:disabled{opacity:.35;cursor:not-allowed}
.page-indicator{font-size:12px;color:#168fc1}

/* ===== 답안표 ===== */
.answer-sheet{background:#f9fbfc;padding-bottom:14px}
.answer-sheet-title{
  background:linear-gradient(#3d7bb9,#2d66a4);color:#fff;
  text-align:center;padding:17px 8px;font-weight:800;font-size:14px
}
.answer-sheet-sub{
  display:grid;grid-template-columns:50px 1fr;text-align:center;
  background:#eef4fa;color:#59738c;border-bottom:1px solid #c6d5e1;
  font-size:9px;padding:6px 0
}
.answer-sheet-rows{max-height:calc(100vh - 320px);overflow:auto}
.answer-row{
  display:grid;grid-template-columns:50px 1fr;min-height:33px;align-items:center;border-bottom:1px solid #e6edf1;font-size:10px
}
.answer-row.current{background:#eaf6fb}
.answer-no{text-align:center;color:#158ec1;font-weight:700}
.answer-options{display:flex;gap:5px;justify-content:center}
.answer-dot{
  width:20px;height:20px;border:0;background:transparent;padding:0;
  display:grid;place-items:center;color:#169bd0;font-size:15px
}
.answer-dot.selected{color:#099fd3}
.answer-dot.selected:before{content:"●";font-size:17px}
.answer-dot:not(.selected):before{content:attr(data-glyph);font-size:15px}
.answer-row.flagged .answer-no:after{content:"•";color:#e14848;margin-left:3px}
.answer-summary{
  display:grid;grid-template-columns:repeat(3,1fr);margin:12px;border:1px solid #c8d4da;background:#fff
}
.answer-summary>div{text-align:center;padding:8px 2px;border-right:1px solid #d5dee3}
.answer-summary>div:last-child{border:0}
.answer-summary span{display:block;font-size:8px;color:#7b858b}.answer-summary b{font-size:16px;color:#286a9d}
.submit-exam{
  display:block;width:calc(100% - 24px);margin:0 12px;height:44px;border-radius:22px;
  border:1px solid #0b8e99;background:linear-gradient(#13b6bc,#07959d);color:#fff;font-weight:800
}

/* ===== 전체 문항 ===== */
.paper-question-view{padding:22px 28px 50px;background:#fff}
.paper-heading{
  display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid var(--cyan);padding-bottom:12px;margin-bottom:10px
}
.paper-heading strong{display:block;font-size:18px}.paper-heading span{font-size:10px;color:var(--muted)}
.paper-heading button{border:1px solid #b7cbd3;background:#fff;color:#1684ae;height:34px;padding:0 14px}
.paper-mount{columns:2;column-gap:42px;column-rule:1px solid #d8dfe3}
.paper-q{break-inside:avoid;padding:18px 0 22px;border-bottom:1px solid #e1e6e9;cursor:pointer}
.paper-q:hover{background:#fafcfd}
.paper-q .prompt{font-size:14px}.paper-q .choices{margin-top:10px;gap:1px}
.paper-q .choice{pointer-events:none;padding:3px;grid-template-columns:25px 1fr}
.paper-q .choice-num{width:19px;height:19px;font-size:9px}.paper-q .choice-text{font-size:12px}

/* ===== 모바일 ===== */
.mobile-actionbar,.mobile-drawer,.drawer-backdrop{display:none}

/* ===== dialog ===== */
.cbt-dialog{border:1px solid #1794bc;padding:0;width:min(92vw,430px);box-shadow:0 24px 80px rgba(0,0,0,.24)}
.cbt-dialog::backdrop{background:rgba(20,27,30,.48)}
.cbt-dialog form{padding:30px;position:relative}.cbt-dialog h2{margin:0 0 10px;color:#2176a4}.cbt-dialog p{font-size:12px;color:var(--muted);line-height:1.6}
.dialog-symbol{
  position:absolute;right:24px;top:18px;width:52px;height:52px;border:2px solid rgba(7,156,171,.18);
  color:rgba(7,156,171,.26);border-radius:50%;display:grid;place-items:center;font-family:var(--serif);font-size:22px;transform:rotate(-10deg)
}
.dialog-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:24px}

/* ===== 결과 ===== */
.result-screen{
  min-height:100vh;background:
  radial-gradient(circle at 90% 0%,rgba(19,169,215,.1),transparent 28rem),
  #eef3f5;padding:38px 20px 70px
}
.result-shell{max-width:900px;margin:0 auto}
.result-top{
  background:#fff;border-top:5px solid #2d3033;border-bottom:3px solid var(--cyan);
  padding:17px 22px;display:flex;justify-content:space-between;align-items:center
}
.result-top span{font-size:9px;color:var(--teal);letter-spacing:.15em;font-weight:800}
.result-top h1{font-size:21px;margin:4px 0 0}
.result-seal{
  width:52px;height:52px;border-radius:50%;display:grid;place-items:center;
  border:3px double var(--teal);color:var(--teal);font-family:var(--serif);font-size:24px;font-weight:700
}
.result-card{background:#fff;border:2px solid #2a8ec7;margin-top:22px;box-shadow:0 20px 45px rgba(32,69,83,.11)}
.result-message{padding:22px 26px;background:#f7f9fa;border-bottom:1px solid #d1dce2}
.result-message span{font-size:10px;color:var(--teal);font-weight:800;letter-spacing:.12em}
.result-message h2{font-size:25px;margin:5px 0}.result-message p{font-size:12px;color:var(--muted);margin:4px 0 0}
.result-table{display:grid;grid-template-columns:130px 1fr 130px 1fr}
.result-cell{min-height:58px;border-right:1px solid #d9e1e5;border-bottom:1px solid #d9e1e5;padding:14px;display:flex;align-items:center}
.result-cell:nth-child(4n){border-right:0}
.result-cell.label{justify-content:center;background:#f3f7f9;font-size:11px;font-weight:700}
.result-cell.value{font-size:15px}.score-value b{font-size:34px;color:#1118ed;margin-right:4px}.verdict{color:#0a949e;font-size:22px!important;font-weight:800}
.result-footer-line{display:flex;justify-content:space-between;padding:13px 18px;font-size:9px;color:#7f878c}
.result-actions{display:flex;gap:8px;justify-content:center;margin-top:18px;flex-wrap:wrap}
.result-btn{min-height:44px;border-radius:23px;border:1px solid #a9bbc4;background:#fff;color:#267da5;font-weight:700;padding:0 22px}
.result-btn.primary{background:linear-gradient(#14afb8,#07949e);color:#fff;border-color:#078a94}
.review-section{background:#fff;border:1px solid #cdd9df;margin-top:28px;padding:24px}
.review-title{border-bottom:3px solid var(--cyan);padding-bottom:10px}.review-title span{font-size:9px;color:var(--teal);letter-spacing:.15em}.review-title h2{margin:3px 0 0}
.review-card{padding:20px 14px;border-bottom:1px solid #e0e6e9}.review-card.correct{border-left:4px solid var(--good)}.review-card.wrong{border-left:4px solid var(--bad)}
.review-card h3{margin:0 0 9px;font-size:15px}.review-answer{font-size:11px}.good{color:var(--good);font-weight:800}.bad{color:var(--bad);font-weight:800}
.explanation{margin-top:10px;background:#f6f8f9;padding:12px 14px;font-size:11px;line-height:1.65;color:#555f64}

/* ===== 반응형 ===== */
@media(max-width:900px){
  .entry-shell{padding:18px 18px 40px}.entry-grid{grid-template-columns:1fr;gap:42px;padding-top:32px}
  .entry-copy h1{font-size:clamp(38px,12vw,60px)}.mascot-stage{justify-self:center;width:min(92vw,500px)}
  .speech-bubble{left:4px;top:-28px}.entry-code{display:none}
  .cbt-topbar{grid-template-columns:1fr auto;padding:7px 10px}.candidate-chip{display:none}.cbt-brand b{font-size:14px}.cbt-brand small{display:none}
  .cbt-toolbar{padding:5px 8px}.question-counter{display:none}
  .cbt-layout{display:block}.answer-sheet{display:none}
  /* 고정 하단 답안표가 마지막 선택지를 덮지 않도록 스크롤 여백 확보 */
  #singleQuestionView{padding-bottom:calc(82px + env(safe-area-inset-bottom))}
  .question-sheet{
    min-height:calc(100vh - 205px);
    min-height:calc(100dvh - 205px);
    padding:24px 18px 34px
  }
  .prompt{font-size:1em}
  .bottom-navigation{display:none}
  .paper-question-view{padding:18px 15px calc(92px + env(safe-area-inset-bottom))}.paper-mount{columns:1}
  .mobile-actionbar{
    display:grid;grid-template-columns:68px 1fr 68px;position:fixed;z-index:40;left:0;right:0;bottom:0;
    height:calc(58px + env(safe-area-inset-bottom));
    min-height:calc(58px + env(safe-area-inset-bottom));
    background:rgba(255,255,255,.97);border-top:1px solid #aebdc5;padding-bottom:env(safe-area-inset-bottom)
  }
  .mobile-actionbar button{border:0;background:transparent;font-size:19px}
  .mobile-actionbar button:nth-child(2){border-left:1px solid #d2dde2;border-right:1px solid #d2dde2;font-size:13px}
  .mobile-actionbar small{display:block;font-size:8px;color:var(--muted)}
  .drawer-backdrop{display:block;position:fixed;inset:0;z-index:48;background:rgba(16,28,33,.4)}
  .mobile-drawer{
    display:block;position:fixed;z-index:49;left:0;right:0;bottom:0;max-height:78vh;overflow:auto;
    background:#fff;padding:8px 18px calc(18px + env(safe-area-inset-bottom));border-top:2px solid var(--cyan);box-shadow:0 -18px 50px rgba(0,0,0,.17)
  }
  .drawer-handle{width:44px;height:4px;border-radius:4px;background:#bfcbd0;margin:0 auto 16px}
  .drawer-head{display:flex;justify-content:space-between;align-items:start}.drawer-head small{font-size:8px;color:var(--muted)}.drawer-head h2{margin:2px 0}.drawer-head button{border:0;background:transparent;font-size:27px}
  .mobile-question-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin:16px 0 20px}
  .mobile-qbtn{height:42px;border:1px solid #bed0d8;background:#fff;color:#3489ad;position:relative}
  .mobile-qbtn.answered{background:#159fce;color:#fff;border-color:#159fce}.mobile-qbtn.current{outline:2px solid #263238;outline-offset:2px}.mobile-qbtn.flagged:after{content:"";position:absolute;right:-4px;top:-4px;width:8px;height:8px;border-radius:50%;background:#e04a4a;border:2px solid #fff}
  .result-table{grid-template-columns:105px 1fr}.result-cell:nth-child(4n){border-right:1px solid #d9e1e5}.result-cell:nth-child(2n){border-right:0}
}
@media(max-width:560px){
  .entry-header{align-items:flex-start}.entry-logo small{max-width:240px;line-height:1.4}
  .entry-lead{font-size:14px}.exam-brief{width:100%;grid-template-columns:repeat(3,1fr)}.exam-brief>div{padding:12px 10px}.exam-brief strong{font-size:20px}
  .nickname-row{display:block}.nickname-row input{width:100%}.nickname-row button{width:100%;height:48px;margin-top:8px}
  .speech-bubble{max-width:270px}.mascot-caption{display:block}.mascot-caption strong{display:block;margin-top:3px}
  .toolbar-group:first-child{display:none}.cbt-toolbar{min-height:40px}.question-sheet{font-size:var(--qfont)}
  .result-screen{padding:20px 10px 50px}.result-top{padding:13px}.result-top h1{font-size:16px}.result-seal{width:42px;height:42px}
  .result-message{padding:18px}.result-message h2{font-size:21px}
  .result-table{grid-template-columns:88px 1fr}.result-cell{padding:11px;min-height:52px}.result-cell.value{font-size:13px}.verdict{font-size:18px!important}
  .result-actions .result-btn{width:100%}
}
@media print{
  .entry-screen,.cbt-topbar,.cbt-toolbar,.answer-sheet,.bottom-navigation,.mobile-actionbar,.mobile-drawer,.drawer-backdrop{display:none!important}
  .cbt-layout{display:block}.paper-question-view{display:block!important;padding:8mm 10mm}.paper-mount{columns:2}
}


/* ===== v2.1 입구 화면: 국가 CBT식 진지한 응시자 확인 ===== */
.formal-entry{
  grid-template-columns:minmax(0,1fr) minmax(320px,.72fr);
  grid-template-areas:
    "intro intro"
    "confirm mascot";
  column-gap:54px;
  row-gap:28px;
  align-items:start;
}
.entry-intro{
  grid-area:intro;
  max-width:720px;
}
.formal-entry .entry-intro h1{
  font-size:clamp(38px,4.7vw,64px);
  line-height:1.12;
  letter-spacing:-.055em;
  margin:14px 0 16px;
}
.formal-entry .entry-intro h1 em{
  color:#1f789c;
  font-style:normal;
}
.formal-entry .entry-lead{
  max-width:650px;
  font-size:14px;
  color:#5c676d;
  margin:0;
}
.candidate-confirm{
  grid-area:confirm;
  width:100%;
  max-width:690px;
  background:#fff;
  border:2px solid #2594c5;
  box-shadow:0 16px 38px rgba(28,72,91,.08);
}
.confirm-title{
  min-height:74px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 18px;
  background:#f5f8fa;
  border-bottom:1px solid #cddae0;
}
.confirm-icon{
  width:38px;height:38px;
  border:2px solid #2b8fbd;
  border-radius:50%;
  display:grid;place-items:center;
  color:#2b8fbd;
  font-weight:900;
}
.confirm-title strong{
  display:block;
  color:#267aa7;
  font-size:17px;
}
.confirm-title small{
  display:block;
  margin-top:3px;
  color:#768087;
  font-size:10px;
}
.confirm-table{
  display:grid;
  grid-template-columns:120px 1fr 120px 1fr;
  border-bottom:1px solid #d6e0e5;
}
.confirm-label,
.confirm-value{
  min-height:47px;
  display:flex;
  align-items:center;
  padding:9px 12px;
  border-right:1px solid #d6e0e5;
  border-bottom:1px solid #d6e0e5;
  font-size:11px;
}
.confirm-table > :nth-last-child(-n+4){border-bottom:0}
.confirm-table > :nth-child(4n){border-right:0}
.confirm-label{
  justify-content:center;
  background:#f3f7f9;
  color:#526169;
  font-weight:700;
}
.confirm-value{
  color:#242b2f;
  font-weight:600;
}
.formal-form{
  margin:0;
  max-width:none;
  padding:18px;
}
.formal-form label{
  font-size:11px;
  color:#4f5d63;
  margin-bottom:7px;
}
.formal-form .nickname-row input{
  border:1px solid #aebfc7;
}
.formal-form .nickname-row input:focus{
  border-color:#178dbd;
  box-shadow:0 0 0 3px rgba(20,139,190,.1);
}
.formal-form .nickname-row button{
  background:linear-gradient(#159dac,#078b99);
}
.formal-form .nickname-row button:hover{
  background:#087f8b;
}
.formal-mascot{
  grid-area:mascot;
  width:100%;
  max-width:430px;
  justify-self:end;
  align-self:start;
}
.candidate-visual-card{
  background:#fff;
  border:1px solid #c3d0d6;
  box-shadow:0 20px 50px rgba(30,68,82,.12);
}
.visual-head{
  min-height:64px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  background:#f4f7f8;
  border-top:4px solid #2d3033;
  border-bottom:3px solid #1a9bc7;
}
.visual-head span{
  font-size:9px;
  color:#78848a;
}
.visual-head strong{
  color:#2c6e95;
  font-size:15px;
}
.formal-mascot .mascot-card{
  transform:none;
  border:0;
  box-shadow:none;
  padding:14px;
}
.formal-mascot .mascot-card img{
  border:1px solid #e0e5e8;
}
.visual-foot{
  display:grid;
  grid-template-columns:64px 1fr 64px 1fr;
  border-top:1px solid #d6e0e5;
}
.visual-foot span,
.visual-foot b{
  min-height:42px;
  display:flex;
  align-items:center;
  padding:8px 10px;
  border-right:1px solid #d6e0e5;
  font-size:10px;
}
.visual-foot span{
  justify-content:center;
  background:#f4f7f8;
  color:#657078;
}
.visual-foot b{
  color:#283137;
}
.visual-foot > :last-child{border-right:0}

/* 기존 입구 말풍선/캡션은 완전히 비활성화 */
.speech-bubble,
.mascot-caption{
  display:none!important;
}

/* 결과 판정은 실제 CBT 결과 통지처럼 */
.result-message h2{
  letter-spacing:-.025em;
}
.result-message p{
  font-size:13px;
  color:#4f5a60;
}

.entry-logo small{font-size:14px}
.formal-entry .entry-lead{font-size:18px;line-height:1.7}
.confirm-title small{font-size:14px}
.confirm-label,.confirm-value{font-size:15px;min-height:54px}
.formal-form label{font-size:15px}
.nickname-form>p{font-size:14px;line-height:1.5}
.visual-head span{font-size:13px}.visual-head strong{font-size:17px}.visual-foot{font-size:14px}

.question-status-row{font-size:14px}
.qtag{font-size:13px}.qscore{font-size:14px}
.prompt{line-height:1.72}.passage{font-size:1em}.prompt table{font-size:.9em}
.choice-text{font-size:1em;line-height:1.6}.choice-num{font-size:13px}
.answer-sheet-sub{font-size:13px}.answer-row{font-size:14px;min-height:38px}
.answer-summary span{font-size:12px}

.result-top span{font-size:13px}
.result-message span{font-size:14px}.result-message p{font-size:17px;line-height:1.65}
.result-cell.label{font-size:15px}.result-cell.value{font-size:19px}
.result-footer-line{font-size:13px}
.review-title span{font-size:13px}.review-card h3{font-size:18px}
.review-answer{font-size:15px;line-height:1.6}
.explanation{font-size:15px;line-height:1.8;padding:16px 18px}

@media(max-width:900px){
  .formal-entry{
    grid-template-columns:1fr;
    grid-template-areas:
      "intro"
      "confirm"
      "mascot";
    gap:30px;
  }
  .entry-intro{max-width:none}
  .candidate-confirm{max-width:none}
  .formal-mascot{
    width:min(92vw,430px);
    justify-self:center;
  }
  .creator-credit{
    position:static;
    margin-top:12px;
  }
}
@media(max-width:620px){
  .confirm-table{
    grid-template-columns:94px 1fr;
  }
  .confirm-table > *{
    border-bottom:1px solid #d6e0e5!important;
  }
  .confirm-table > :nth-child(2n){
    border-right:0;
  }
  .confirm-table > :nth-last-child(-n+2){
    border-bottom:0!important;
  }
}


/* discreet creator credit */
.creator-credit{
  position:absolute;
  right:34px;
  bottom:16px;
  margin:0;
  text-align:right;
  font-size:11px;
  line-height:1.4;
  letter-spacing:.04em;
  color:#7f8d93;
  opacity:.68;
  user-select:none;
  pointer-events:none;
}
.result-credit{
  margin-top:18px;
  padding:0 2px 8px;
}
@media(max-width:620px){
  .creator-credit{font-size:10px}
}
@media(max-width:900px){
  .creator-credit{position:static;right:auto;bottom:auto;margin-top:12px}
}


/* ===== 2026-08-15 entry compact desktop + portrait mobile fix ===== */
@media(min-width:901px){
  .entry-shell{
    max-width:1240px;
    padding-top:24px;
    padding-bottom:42px;
  }
  .formal-entry{
    grid-template-columns:minmax(0,1.08fr) minmax(340px,.72fr);
    grid-template-areas:
      "intro intro"
      "confirm mascot";
    column-gap:48px;
    row-gap:18px;
    align-items:start;
    padding-top:26px;
  }
  .entry-intro{
    max-width:none;
    width:100%;
  }
  .formal-entry .entry-intro h1{
    font-size:clamp(34px,3.45vw,46px);
    line-height:1.08;
    letter-spacing:-.045em;
    margin:0 0 10px;
    white-space:nowrap;
  }
  .formal-entry .entry-lead{
    max-width:none;
    margin:0;
    font-size:15px;
    line-height:1.45;
    white-space:nowrap;
  }
  .candidate-confirm,
  .formal-mascot{
    align-self:start;
  }
  .candidate-confirm{
    max-width:none;
  }
  .formal-mascot{
    width:100%;
    max-width:430px;
  }
}

@media(max-width:900px){
  .entry-shell{
    padding:16px 16px 36px;
  }
  .entry-header{
    padding-bottom:14px;
  }
  .formal-entry{
    padding-top:22px;
    grid-template-columns:1fr;
    grid-template-areas:
      "intro"
      "confirm"
      "mascot";
    gap:22px;
  }
  .formal-entry .entry-intro h1{
    margin:0 0 9px;
    font-size:clamp(31px,7.4vw,44px);
    line-height:1.12;
    letter-spacing:-.045em;
    white-space:normal;
    word-break:keep-all;
  }
  .formal-entry .entry-lead{
    margin:0;
    max-width:none;
    font-size:14px;
    line-height:1.55;
    white-space:normal;
    word-break:keep-all;
  }
  .candidate-confirm{
    width:100%;
    max-width:none;
  }
  .formal-mascot{
    width:100%;
    max-width:430px;
    justify-self:center;
  }
  .creator-credit{
    position:static;
    margin-top:10px;
    text-align:right;
  }
}

@media(max-width:620px){
  .entry-logo{gap:10px}
  .logo-circle{width:40px;height:40px;font-size:20px}
  .entry-logo strong{font-size:17px}
  .entry-logo small{font-size:11px;max-width:245px}
  .formal-entry{padding-top:18px;gap:18px}
  .formal-entry .entry-intro h1{
    font-size:clamp(28px,8.8vw,38px);
    line-height:1.14;
  }
  .formal-entry .entry-lead{font-size:13px}
  .confirm-title{min-height:64px;padding:12px 14px}
  .confirm-title strong{font-size:16px}
  .confirm-title small{font-size:12px}
  .confirm-label,.confirm-value{font-size:13px;min-height:49px}
  .formal-form{padding:14px}
  .formal-form label{font-size:14px}
  .nickname-form>p{font-size:12px}
  .visual-head{min-height:56px;padding:11px 13px}
  .visual-head span{font-size:11px}
  .visual-head strong{font-size:15px}
  .formal-mascot .mascot-card{padding:10px}
  .visual-foot span,.visual-foot b{min-height:38px;font-size:12px;padding:7px 8px}
}
