/* ==========================================================================
   ㈜내연봉 - 디자인 토큰
   컨셉: 회사 인사시스템(사원증/공문/증명서) + 밈 게임의 대비
   ========================================================================== */
:root {
  --paper: #FAF7F0;        /* 오피스 아이보리 (배경) */
  --paper-shell: #ECE6D8;  /* PC에서 앱 바깥 배경 */
  --yellow: #FFC940;       /* 사원증 옐로우 */
  --navy: #2B4C7E;         /* 인사서류 네이비 */
  --navy-dark: #1E3A63;
  --red: #E8543E;          /* 경고/리스크/도장 레드오렌지 */
  --green: #3D8361;        /* 승진/성과 그린 */
  --muted: #6B6B6B;        /* 보조 텍스트 */
  --ink: #23262B;          /* 본문 텍스트 */
  --line: rgba(43, 76, 126, 0.22); /* 네이비 계열 보더 */
  --line-strong: rgba(43, 76, 126, 0.55);

  --radius-card: 18px;  /* 사원증(플라스틱) - 둥근 모서리 */
  --radius-doc: 10px;   /* 공문/증명서(종이) - 각진 모서리 */
  --radius-btn: 10px;

  --shadow-card: 0 10px 24px rgba(43, 76, 126, 0.16);
  --shadow-doc: 0 4px 14px rgba(35, 38, 43, 0.08);
  --shadow-modal: 0 20px 48px rgba(0, 0, 0, 0.28);

  --font-base: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Roboto Mono", "Consolas", "Menlo", monospace;
}

/* ==========================================================================
   리셋 / 접근성
   ========================================================================== */
* { box-sizing: border-box; }

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--paper-shell);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}

button, input {
  font-family: inherit;
  touch-action: manipulation;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   레이아웃 - 모바일 우선, PC는 중앙 정렬된 카드형
   ========================================================================== */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 481px) {
  body { padding: 28px 0; }
  #app {
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
  }
}

.screen {
  display: none;
  flex-direction: column;
  min-height: 100%;
  padding: calc(22px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom));
}
.screen.active {
  display: flex;
  animation: docSlideIn 300ms cubic-bezier(0.22, 0.7, 0.32, 1) both;
}
@keyframes docSlideIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

.hidden { display: none !important; }

/* ==========================================================================
   버튼 (터치 타겟 48px 이상)
   ========================================================================== */
.btn {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border-radius: var(--radius-btn);
  border: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  cursor: pointer;
  margin-top: 12px;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(43, 76, 126, 0.35);
}
.btn-primary:disabled {
  background: #C7CBD3;
  color: #8A8F99;
  box-shadow: none;
  cursor: not-allowed;
}
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--line-strong);
}
.btn-kakao {
  background: #FEE500;
  color: #191919;
  box-shadow: 0 6px 16px rgba(254, 229, 0, 0.35);
}
.btn-instagram {
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
  color: #fff;
  box-shadow: 0 6px 16px rgba(238, 42, 123, 0.3);
}
.btn-instagram:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ==========================================================================
   1. 인트로 - 채용 공고 히어로
   ========================================================================== */
#screen-intro { padding: 0; justify-content: flex-start; align-items: stretch; text-align: left; }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: calc(26px + env(safe-area-inset-top)) 24px 50px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 60%, #16273f 100%);
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
}
.hero-glow {
  position: absolute; top: -70px; right: -50px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255, 201, 64, 0.35), transparent 70%);
  filter: blur(4px);
}
.hero-skyline {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 64px;
  color: #fff;
  opacity: 0.07;
}

.hero-content { position: relative; }
.wordmark {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  opacity: 0; animation: heroFadeUp 640ms ease 60ms both;
}
.wordmark-icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--yellow); }
.wordmark-text { font-size: 16px; font-weight: 900; letter-spacing: -0.2px; color: #fff; }

.hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: 0.3px;
  color: var(--yellow);
  background: rgba(255, 201, 64, 0.14);
  border: 1px solid rgba(255, 201, 64, 0.4);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  opacity: 0; animation: heroFadeUp 640ms ease 140ms both;
}

.hero-tagline {
  font-size: clamp(20px, 6.4vw, 27px);
  font-weight: 900;
  line-height: 1.38;
  letter-spacing: -0.4px;
  word-break: keep-all;
  overflow-wrap: break-word;
  margin: 0 0 8px;
  opacity: 0; animation: heroFadeUp 640ms ease 220ms both;
}
.hero-tagline em { color: var(--yellow); font-style: normal; }

/* 히어로(네이비) -> 하단(페이퍼) 전환을 부드럽게 */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(22, 39, 63, 0) 0%, var(--paper) 100%);
  pointer-events: none;
}

.hero-sub {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  opacity: 0; animation: heroFadeUp 640ms ease 300ms both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 채용 공고 카드 - 히어로 하단에 겹쳐서 배치 */
.job-card {
  position: relative;
  z-index: 1;
  margin: -26px 20px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-doc);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  opacity: 0; animation: heroFadeUp 640ms ease 380ms both;
}
.job-card-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800;
  color: var(--green);
  margin-bottom: 12px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 131, 97, 0.18);
  flex-shrink: 0;
}
.job-card-title {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 8px;
}
.job-card-desc {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
}

.job-card-req {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 18px;
}
.req-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.req-row dt { color: var(--muted); font-weight: 700; margin: 0; }
.req-row dd { color: var(--ink); font-weight: 800; margin: 0; }

.btn-cta { box-shadow: 0 8px 20px rgba(43, 76, 126, 0.4); }
@media (hover: hover) {
  .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(43, 76, 126, 0.45);
    background: linear-gradient(180deg, #33578f 0%, var(--navy-dark) 100%);
  }
}
.cta-sub {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin: 10px 0 0;
}

/* 캐릭터 일러스트 (인트로 하단) */
.intro-character {
  position: relative;
  flex: 1;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 24px calc(14px + env(safe-area-inset-bottom));
  opacity: 0; animation: heroFadeUp 640ms ease 460ms both;
}
.character-glow {
  position: absolute;
  width: min(50vw, 190px);
  height: min(50vw, 190px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 64, 0.30) 0%, rgba(43, 76, 126, 0.12) 55%, rgba(43, 76, 126, 0) 76%);
}
.character-figure {
  position: relative;
  width: clamp(76px, 21vh, 138px);
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(43, 76, 126, 0.18));
}
.accessory {
  position: absolute;
  width: clamp(26px, 8vw, 40px);
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(43, 76, 126, 0.16));
}
.accessory-left { left: 12%; top: 12%; animation: floatSlow 3.2s ease-in-out infinite; }
.accessory-right { right: 10%; bottom: 16%; animation: floatSlow 3.6s ease-in-out infinite reverse; }
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ==========================================================================
   2~3. 입사지원서 (닉네임 / 조건선택)
   ========================================================================== */
.card-box { width: 100%; margin: auto 0; }
.doc-form {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-doc);
  padding: 20px 18px;
  background: #fff;
  box-shadow: var(--shadow-doc);
}
.doc-step {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.card-box h2 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
  color: var(--ink);
}
.desc { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 18px; }

.doc-field { display: block; margin-bottom: 8px; }
.doc-field-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
#input-nickname {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 8px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
}
#input-nickname:focus { outline: 2px solid var(--navy); outline-offset: 1px; }

.doc-checklist {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.doc-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  padding: 5px 10px 5px 6px;
}
.check-box {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  flex-shrink: 0;
}
.doc-check-item.checked {
  color: var(--navy);
  border-color: var(--navy);
  border-style: solid;
}
.doc-check-item.checked .check-box {
  background: var(--navy);
  border-color: var(--navy);
}

.doc-field-box {
  border: 1.5px dashed var(--line-strong);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}
.option-label {
  font-weight: 800;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--navy);
}
.option-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.option-buttons button {
  flex: 1 1 auto;
  min-width: 70px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.option-buttons button.selected {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ==========================================================================
   4. 로딩 / 첫 발령 공문 (인라인 doc-popup)
   ========================================================================== */
#screen-loading { justify-content: center; align-items: center; text-align: center; }
.center { display: flex; flex-direction: column; align-items: center; width: 100%; }
.spinner {
  width: 44px; height: 44px;
  border: 5px solid rgba(43, 76, 126, 0.15);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.reveal-line { font-size: 16px; font-weight: 700; margin: 6px 0; color: var(--ink); }

/* 공문 팝업 공통 (레벨업 모달 + 로딩화면 인라인 버전) */
.doc-popup {
  width: 100%;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: var(--radius-doc);
  padding: 24px 20px 20px;
  position: relative;
  box-shadow: var(--shadow-doc);
}
.doc-popup::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  pointer-events: none;
}
.doc-popup-header {
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--navy);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}
.doc-popup-no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  margin: 0 0 10px;
}
.doc-popup-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
  text-align: center;
  margin: 0 0 8px;
  white-space: pre-line;
}
.doc-popup-inline { margin-bottom: 8px; }

.doc-seal {
  width: 78px; height: 78px;
  margin: 6px auto 4px;
  color: var(--red);
  transform: rotate(-11deg);
  mix-blend-mode: multiply;
  opacity: 0.92;
}
.seal-svg { width: 100%; height: 100%; display: block; }

@keyframes sealStampIn {
  0% { transform: scale(2.3) rotate(-24deg); opacity: 0; }
  55% { transform: scale(0.92) rotate(-9deg); opacity: 1; }
  75% { transform: scale(1.05) rotate(-13deg); opacity: 1; }
  100% { transform: scale(1) rotate(-11deg); opacity: 1; }
}
.doc-seal.seal-stamp { animation: sealStampIn 480ms cubic-bezier(0.25, 0.8, 0.3, 1.1) both; }

/* 레벨업 모달 (전체화면 오버레이) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 26, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal-overlay .doc-popup {
  max-width: 400px;
  box-shadow: var(--shadow-modal);
}

/* ==========================================================================
   5. 게임 화면 - 사원증 + 이벤트 카드
   ========================================================================== */
.id-card {
  background: linear-gradient(155deg, #fff 0%, #fbfaf6 60%, var(--paper) 100%);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px 16px 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.id-card::before {
  /* 사원증 목걸이 구멍 */
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: rgba(43, 76, 126, 0.18);
}
.id-card-top { display: flex; gap: 12px; align-items: center; margin-top: 8px; margin-bottom: 12px; }
.id-photo {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--yellow);
  border: 1.5px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.id-info { flex: 1; min-width: 0; }
.id-row-label { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.id-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.id-name { font-size: 17px; font-weight: 900; letter-spacing: -0.3px; color: var(--ink); }
.id-badge {
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.id-stats { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.id-stat-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.id-stat-key { width: 36px; flex-shrink: 0; color: var(--muted); font-weight: 700; }
.id-stat-val { font-weight: 800; font-size: 14px; color: var(--navy); }
.id-bar-track { flex: 1; height: 7px; background: rgba(43, 76, 126, 0.12); border-radius: 6px; overflow: hidden; }
.id-bar-fill { height: 100%; border-radius: 6px; transition: width 0.3s; }
.id-bar-fill.exp { background: var(--navy); }
.id-bar-fill.burnout { background: var(--red); }
.id-stat-sub { width: 66px; text-align: right; flex-shrink: 0; color: var(--muted); }

.id-barcode {
  height: 22px;
  border-radius: 3px;
  margin-bottom: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0px, var(--ink) 2px,
    transparent 2px, transparent 4px,
    var(--ink) 4px, var(--ink) 5px,
    transparent 5px, transparent 9px,
    var(--ink) 9px, var(--ink) 12px,
    transparent 12px, transparent 15px,
    var(--ink) 15px, var(--ink) 16px,
    transparent 16px, transparent 19px
  );
  opacity: 0.75;
}
.id-card-foot { text-align: right; font-size: 11px; color: var(--muted); font-weight: 700; }

/* 이벤트 카드 - 결재 문서가 도장 찍히듯 등장 */
.event-card {
  flex: 1;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-doc);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-doc);
}
@keyframes cardStampIn {
  0% { opacity: 0; transform: scale(1.1) rotate(-3deg); }
  60% { opacity: 1; transform: scale(0.97) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.event-card.stamp-in { animation: cardStampIn 360ms cubic-bezier(0.3, 1.3, 0.4, 1) both; }

.event-category {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
  border: 1.5px solid transparent;
}
.event-category.cat-growth { background: var(--green); color: #fff; }
.event-category.cat-jobchange { background: var(--navy); color: #fff; }
.event-category.cat-review { background: var(--yellow); color: var(--ink); }
.event-category.cat-risk { background: var(--red); color: #fff; }
.event-category.cat-random { background: #EDEBE3; color: var(--muted); border-color: var(--line); }
.event-category.cat-life { background: var(--paper); color: var(--navy); border-color: var(--navy); }

.event-situation {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.55;
  margin-bottom: 20px;
  color: var(--ink);
}

/* 선택지 - 결재란 느낌 */
.event-choices { display: flex; flex-direction: column; gap: 10px; }
.event-choices button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.event-choices button::before {
  content: "";
  width: 20px; height: 20px;
  border-radius: 4px;
  border: 1.5px solid var(--navy);
  flex-shrink: 0;
}
.event-choices button:active { transform: scale(0.98); }
.event-choices button:disabled { opacity: 0.55; cursor: not-allowed; }
.event-choices button.chosen {
  border-color: var(--red);
  background: #FFF3F0;
}
.event-choices button.chosen::before {
  background: var(--red);
  border-color: var(--red);
}

.event-result {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  border: 1px dashed var(--line-strong);
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1.6;
  white-space: pre-line;
  color: var(--ink);
}

/* ==========================================================================
   6. 결과 화면 - 인사기록카드 / 퇴직증명서
   ========================================================================== */
#screen-result { align-items: center; }
.cert-frame {
  width: 100%;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: var(--radius-doc);
  padding: 22px 18px 18px;
  position: relative;
  box-shadow: var(--shadow-doc);
}
.cert-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  pointer-events: none;
}
.cert-header {
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}
.cert-company { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: 1px; }
.cert-doc-label { font-size: 20px; font-weight: 900; letter-spacing: 4px; color: var(--navy); margin-top: 2px; }
.cert-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
}

.cert-ribbon {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  margin-bottom: 12px;
  background: var(--yellow);
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.06);
}
.result-emoji {
  font-size: 30px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}
.result-title { font-size: 17px; font-weight: 900; letter-spacing: -0.3px; }

.cert-desc {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  color: var(--ink);
  text-align: center;
  white-space: pre-line;
  margin: 0 0 16px;
}

.cert-table {
  border-top: 1px solid var(--line);
  margin-bottom: 16px;
}
.cert-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.cert-row span { color: var(--muted); font-weight: 700; }
.cert-row b { color: var(--ink); font-weight: 800; }

.cert-signature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cert-signature-text { font-size: 12px; font-weight: 700; color: var(--muted); }
.cert-signature .doc-seal { width: 62px; height: 62px; margin: 0; }

.result-watermark { font-size: 10px; color: var(--muted); opacity: 0.7; font-weight: 700; text-align: center; }

.result-actions { width: 100%; margin-top: 20px; }
.instagram-guide {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 10px 0 0;
}
