/* ============================================
   Career Way Lab — DLC 2: Value & Motivation
   ============================================ */
:root {
  --bg-deep: #0a100f;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --bg-glass: rgba(255,255,255,0.06);
  --teal: #5ECEBB;
  --teal-light: #7EDDCE;
  --teal-dim: rgba(94,206,187,0.15);
  --teal-glow: rgba(94,206,187,0.20);
  --green-deep: #3BA88E;
  --text-primary: #F2F6F5;
  --text-secondary: #BDC9C6;
  --text-tertiary: #8A9B97;
  --text-muted: #627370;
  --danger: #C0534F;
  --danger-dim: rgba(192,83,79,0.12);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Noto Sans KR', sans-serif;
  --radius: 12px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
ul, ol { list-style: none; margin: 0; padding: 0; }
html { -webkit-overflow-scrolling: touch; }
body { font-family: var(--font-body); background: var(--bg-deep); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* ========== 앰비언트 ========== */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .35; }
.ambient-orb--1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(94,206,187,.18), transparent 70%); top: -150px; right: -100px; animation: f1 20s ease-in-out infinite; }
.ambient-orb--2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(59,168,142,.10), transparent 70%); bottom: -100px; left: -150px; animation: f2 25s ease-in-out infinite; }
.ambient-orb--3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(94,206,187,.07), transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); animation: f3 18s ease-in-out infinite; }
@keyframes f1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px,30px); } }
@keyframes f2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-40px); } }
@keyframes f3 { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.2); } }
.noise-overlay { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"); background-size: 128px; opacity: .5; }

/* ========== 화면 ========== */
.screen { display: none; min-height: 100vh; position: relative; z-index: 1; }
.screen.active { display: flex; justify-content: center; align-items: center; }
#phase1-screen.active, #phase2-screen.active { align-items: flex-start; }

/* ========== 등장 ========== */
[data-reveal] { opacity: 0; transform: translateY(20px); animation: reveal .7s ease forwards; }
[data-reveal="1"] { animation-delay: .1s; } [data-reveal="2"] { animation-delay: .25s; }
[data-reveal="3"] { animation-delay: .4s; } [data-reveal="4"] { animation-delay: .55s; }
[data-reveal="5"] { animation-delay: .7s; } [data-reveal="6"] { animation-delay: .85s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* ============================================
   공통 가이드 박스
   ============================================ */
.guide-box {
  padding: 18px 22px;
  background: var(--teal-dim);
  border: 1px solid rgba(94,206,187,.15);
  border-radius: var(--radius);
  margin-bottom: 16px;
  text-align: left;
}
.guide-box__main {
  font-size: 15px; color: var(--text-primary); line-height: 1.7; margin-bottom: 12px;
}
.guide-box__main strong { color: var(--teal-light); }
.guide-box__list {
  display: flex; flex-direction: column; gap: 8px;
}
.guide-box__list li {
  font-size: 13.5px; color: var(--text-secondary); line-height: 1.6;
  padding-left: 16px; position: relative;
}
.guide-box__list li::before {
  content: '·'; position: absolute; left: 4px; color: var(--teal); font-weight: 700;
}
.guide-box__list li strong { color: var(--teal-light); font-weight: 600; }

/* ============================================
   공통 버튼
   ============================================ */
.btn-start {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 48px; font-family: var(--font-body); font-size: 16px; font-weight: 700;
  color: var(--bg-deep); background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border: none; border-radius: 50px; cursor: pointer; transition: all .3s;
  box-shadow: 0 4px 24px var(--teal-glow);
}
.btn-start:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(94,206,187,.35); }
.btn-start:disabled { background: rgba(255,255,255,.08); color: var(--text-muted); box-shadow: none; cursor: not-allowed; }
.btn-arrow { font-size: 18px; transition: transform .3s; }
.btn-start:hover:not(:disabled) .btn-arrow { transform: translateX(4px); }

.btn-back {
  display: inline-flex; align-items: center; padding: 16px 32px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: var(--text-tertiary); background: transparent;
  border: 1px solid rgba(255,255,255,.1); border-radius: 50px; cursor: pointer; transition: all .3s;
}
.btn-back:hover { border-color: rgba(255,255,255,.2); color: var(--text-secondary); }

.btn-teal {
  padding: 14px 36px; font-family: var(--font-body); font-size: 15px; font-weight: 700;
  color: var(--bg-deep); background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border: none; border-radius: 50px; cursor: pointer; transition: all .3s;
  box-shadow: 0 4px 16px var(--teal-glow);
}
.btn-teal:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(94,206,187,.3); }

.btn-outline {
  padding: 14px 36px; font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: var(--text-tertiary); background: transparent;
  border: 1px solid rgba(255,255,255,.1); border-radius: 50px; cursor: pointer; transition: all .3s;
}
.btn-outline:hover { border-color: rgba(255,255,255,.2); color: var(--text-secondary); }

.nav-btn {
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: 50px; cursor: pointer; transition: all .25s; border: none;
}
.nav-btn--prev { background: transparent; color: var(--text-tertiary); border: 1px solid rgba(255,255,255,.1); }
.nav-btn--prev:hover { border-color: rgba(255,255,255,.2); color: var(--text-secondary); }
.nav-btn--prev.hidden { visibility: hidden; pointer-events: none; }
.nav-btn--next { background: linear-gradient(135deg, var(--teal), var(--teal-light)); color: var(--bg-deep); font-weight: 700; box-shadow: 0 4px 16px var(--teal-glow); }
.nav-btn--next:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(94,206,187,.3); }

/* ============================================
   1. 인트로
   ============================================ */
.intro { max-width: 520px; width: 100%; padding: 48px 28px 60px; text-align: center; }
.intro__badge { font-size: 12px; font-weight: 600; letter-spacing: 3px; color: var(--teal); margin-bottom: 40px; }
.intro__title { font-size: 32px; font-weight: 700; line-height: 1.5; color: var(--text-primary); margin-bottom: 24px; }
.intro__title em { font-family: var(--font-display); font-style: italic; font-size: 40px; color: var(--teal); font-weight: 600; }
.intro__desc { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 40px; }
.intro__desc strong { color: var(--teal-light); font-weight: 600; }

.intro__metrics { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 44px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.metric { text-align: center; }
.metric__num { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--text-primary); line-height: 1; margin-bottom: 6px; }
.metric__label { font-size: 12px; font-weight: 500; color: var(--text-tertiary); letter-spacing: .5px; }
.metric-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }

.intro__input-section { margin-bottom: 32px; }
.input-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-tertiary); letter-spacing: 1px; margin-bottom: 12px; text-transform: uppercase; }
.input-box { display: inline-block; position: relative; width: 280px; }
.input-box input { width: 100%; font-family: var(--font-body); font-size: 18px; font-weight: 600; text-align: center; padding: 16px 20px; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.15); border-radius: var(--radius); color: var(--text-primary); outline: none; caret-color: var(--teal); transition: all .3s; }
.input-box input::placeholder { color: var(--text-muted); font-weight: 400; font-size: 15px; }
.input-box input:focus { border-color: var(--teal); background: rgba(94,206,187,.06); box-shadow: 0 0 0 3px rgba(94,206,187,.12); }

/* ============================================
   2. 기본 결과 입력
   ============================================ */
.base { max-width: 520px; width: 100%; padding: 48px 28px 60px; text-align: center; }
.base__badge { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--teal); margin-bottom: 28px; }
.base__title { font-size: 26px; font-weight: 700; color: var(--text-primary); line-height: 1.5; margin-bottom: 16px; }
.base__desc { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 36px; }
.base__desc strong { color: var(--teal-light); font-weight: 600; }
.base__actions { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 32px; }

.base__section { text-align: left; margin-bottom: 24px; padding: 24px; background: var(--bg-card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); }
.base__section--sjt { border-color: rgba(94,206,187,.15); background: rgba(94,206,187,.03); }
.base__section-title { font-size: 15px; font-weight: 700; color: var(--teal); margin-bottom: 6px; letter-spacing: .5px; }
.base__section-desc { font-size: 13px; color: var(--text-tertiary); line-height: 1.6; margin-bottom: 16px; }
.base__form-group { margin-bottom: 16px; }
.base__form-group:last-child { margin-bottom: 0; }
.base__label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.base__label-sub { font-weight: 400; color: var(--text-muted); }

.select-wrapper { position: relative; }
.select-wrapper select { width: 100%; font-family: var(--font-body); font-size: 15px; font-weight: 500; padding: 14px 18px; appearance: none; -webkit-appearance: none; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.12); border-radius: var(--radius); color: var(--text-primary); outline: none; cursor: pointer; transition: all .3s; }
.select-wrapper select:focus { border-color: var(--teal); background: rgba(94,206,187,.06); box-shadow: 0 0 0 3px rgba(94,206,187,.1); }
.select-wrapper select:disabled { opacity: .5; cursor: not-allowed; }
.select-wrapper select option { background: #121a18; color: var(--text-primary); padding: 8px; }
.select-wrapper::after { content: '▾'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 12px; pointer-events: none; }

/* SJT 토글 */
.base__sjt-toggle { margin-bottom: 16px; }
.base__sjt-notice { margin-bottom: 24px; padding: 14px 20px; background: rgba(94,206,187,.06); border: 1px solid rgba(94,206,187,.2); border-radius: var(--radius); text-align: center; animation: reveal .4s ease forwards; }
.base__sjt-notice p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.base__sjt-notice strong { color: var(--teal-light); font-weight: 700; }
.base__sjt-notice-sub { font-size: 13px; color: var(--text-muted); }
.base__sjt-toggle { margin-bottom: 24px; }
.toggle-label { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 16px 20px; background: var(--bg-card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); transition: all .25s; }
.toggle-label:hover { border-color: rgba(255,255,255,.12); }
.toggle-label input { display: none; }
.toggle-switch { position: relative; width: 44px; height: 24px; background: rgba(255,255,255,.12); border-radius: 12px; transition: background .25s; flex-shrink: 0; }
.toggle-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--text-muted); border-radius: 50%; transition: all .25s; }
.toggle-label input:checked + .toggle-switch { background: var(--teal); }
.toggle-label input:checked + .toggle-switch::after { left: 23px; background: var(--bg-deep); }
.toggle-text { font-size: 14px; font-weight: 500; color: var(--text-secondary); }

.hidden { display: none !important; }

/* ============================================
   4-1 / 5-1. 브릿지 (단계 전환 안내)
   ============================================ */
.bridge { max-width: 520px; width: 100%; padding: 48px 28px 60px; text-align: center; }
.bridge__badge { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--teal); margin-bottom: 24px; }
.bridge__title { font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.bridge__summary { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; }
.bridge__summary strong { color: var(--teal-light); font-weight: 700; }
.bridge__card { text-align: left; padding: 24px; background: var(--bg-card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); margin-bottom: 36px; }
.bridge__card-title { font-size: 14px; font-weight: 700; color: var(--teal); margin-bottom: 10px; letter-spacing: .5px; }
.bridge__card-desc { font-size: 15px; color: var(--text-primary); line-height: 1.7; margin-bottom: 16px; }
.bridge__card-desc strong { color: var(--teal-light); }
.bridge__card-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bridge__card-list li { font-size: 14px; color: var(--text-secondary); line-height: 1.6; padding-left: 20px; position: relative; }
.bridge__card-list li::before { content: '·'; position: absolute; left: 6px; top: 0; color: var(--teal); font-weight: 700; }

/* ============================================
   3. 가이드
   ============================================ */
.guide { max-width: 520px; width: 100%; padding: 48px 28px 60px; text-align: center; }
.guide__badge { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--teal); margin-bottom: 32px; }
.guide__title { font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 36px; }
.guide__steps { display: flex; flex-direction: column; text-align: left; margin-bottom: 32px; }
.step { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.step:last-child { border-bottom: none; }
.step__num { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--teal); min-width: 40px; line-height: 1; padding-top: 2px; }
.step__content h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.step__content p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.7; }
.step__content strong { color: var(--teal-light); font-weight: 600; }
.guide__notice { padding: 18px 22px; background: var(--teal-dim); border: 1px solid rgba(94,206,187,.15); border-radius: var(--radius); margin-bottom: 36px; }
.guide__notice p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.7; }
.guide__notice strong { color: var(--teal-light); font-weight: 600; }

/* ============================================
   4. 1단계 — 자유 선택
   ============================================ */
.pick { max-width: 600px; width: 100%; min-height: 100vh; min-height: 100dvh; padding: 0 24px; display: flex; flex-direction: column; }
.pick__header { position: sticky; top: 0; z-index: 10; padding: 20px 0 16px; background: linear-gradient(to bottom, var(--bg-deep) 70%, transparent); }
.header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pick__logo { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--teal); letter-spacing: 2px; }
.pick__counter { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.counter-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--teal); }
.counter-current { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--teal); }
.counter-sep { margin: 0 3px; color: var(--text-muted); }
.counter-total { font-size: 13px; }

.progress-track { width: 100%; height: 3px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 2px; width: 0%; background: linear-gradient(90deg, var(--green-deep), var(--teal-light)); transition: width .5s cubic-bezier(.4,0,.2,1); box-shadow: 0 0 12px var(--teal-glow); }

.pick__body { flex: 1; padding: 20px 0 24px; }
.pick__selected-count { text-align: center; margin-bottom: 16px; font-size: 14px; color: var(--text-muted); }
.pick__selected-count strong { color: var(--teal); font-size: 18px; }
.pick__nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 max(32px, env(safe-area-inset-bottom, 32px)); position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg-deep) 60%, transparent); }

/* 키워드 카드 그리드 */
.keyword-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; padding-bottom: 8px; }
.keyword-grid--pick { grid-template-columns: 1fr; gap: 10px; }

.keyword-card {
  position: relative; padding: 20px 24px; cursor: pointer;
  background: var(--bg-card); border: 1.5px solid rgba(255,255,255,.06);
  border-radius: var(--radius); transition: all .25s ease; overflow: hidden;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px;
}
.keyword-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(to bottom, var(--teal), var(--teal-light)); transition: width .25s; border-radius: var(--radius) 0 0 var(--radius); }
.keyword-card:hover { background: var(--bg-card-hover); border-color: rgba(94,206,187,.2); transform: translateX(3px); }
.keyword-card:hover::before { width: 3px; }

.keyword-card.picked { border-color: var(--teal); background: rgba(94,206,187,.08); box-shadow: 0 0 0 1px rgba(94,206,187,.3); }
.keyword-card.picked::before { width: 3px; }
.keyword-card.picked .keyword-card__keyword { color: var(--teal-light); }

.keyword-card.eliminated { border-color: rgba(192,83,79,.3); background: var(--danger-dim); opacity: .45; }
.keyword-card.eliminated::before { width: 3px; background: linear-gradient(to bottom, var(--danger), #994040); }
.keyword-card.eliminated:hover { transform: none; }
.keyword-card.eliminated .keyword-card__keyword { text-decoration: line-through; text-decoration-color: rgba(192,83,79,.5); }

.keyword-card__keyword { position: relative; font-size: 18px; font-weight: 700; flex: 1; transition: color .25s; }
.keyword-card__hint { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.12); background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 700; font-family: var(--font-body); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; z-index: 1; }
.keyword-card__hint:hover { border-color: var(--teal); color: var(--teal); background: rgba(94,206,187,.08); }
.keyword-card.show-tagline .keyword-card__hint { border-color: var(--teal); color: var(--teal); background: rgba(94,206,187,.1); }
.keyword-card__tagline { display: none; position: relative; font-size: 13.5px; font-weight: 400; color: var(--text-tertiary); line-height: 1.65; }
.keyword-card.show-tagline .keyword-card__tagline { display: block; width: 100%; margin-top: 6px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }

/* ============================================
   5. 2단계 — 제거
   ============================================ */
.eliminate { max-width: 600px; width: 100%; min-height: 100vh; min-height: 100dvh; padding: 0 24px; display: flex; flex-direction: column; }
.eliminate__header { padding: 48px 0 24px; text-align: center; }
.eliminate__badge { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--teal); margin-bottom: 20px; }
.eliminate__title { font-size: 26px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.eliminate__encourage { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; text-align: center; }
.eliminate__encourage strong { color: var(--teal-light); font-weight: 600; }
.eliminate__desc { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; text-align: center; }
.eliminate__desc strong { color: var(--teal-light); font-weight: 700; }

/* 플로팅 하단 바 */
.eliminate__floating {
  position: sticky; bottom: 0; z-index: 20;
  padding: 16px 0 max(20px, env(safe-area-inset-bottom, 20px));
  background: linear-gradient(to top, var(--bg-deep) 70%, rgba(10,16,15,.95) 85%, transparent);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.floating__status { display: flex; gap: 12px; }
.floating__chip {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08); border-radius: 50px;
}
.floating__chip--remain { border-color: rgba(94,206,187,.2); background: rgba(94,206,187,.06); }
.floating__label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.floating__value { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.floating__value strong { font-weight: 800; color: var(--text-primary); font-size: 16px; }
.floating__chip--remain .floating__value strong { color: var(--teal); }
.floating__btn {
  width: 100%; max-width: 320px;
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  padding: 16px 48px; color: var(--bg-deep);
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border: none; border-radius: 50px; cursor: pointer; transition: all .3s;
  box-shadow: 0 4px 24px var(--teal-glow);
}
.floating__btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(94,206,187,.35); }
.floating__btn:disabled { background: rgba(255,255,255,.08); color: var(--text-muted); box-shadow: none; cursor: not-allowed; }
.floating__btn.ready { animation: pulse-glow 1.5s ease-in-out infinite; }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 4px 24px var(--teal-glow); } 50% { box-shadow: 0 6px 32px rgba(94,206,187,.4); } }

/* ============================================
   6. 3단계 — 순위
   ============================================ */
.ranking { max-width: 520px; width: 100%; padding: 48px 24px 60px; }
.ranking__header { text-align: center; margin-bottom: 32px; }
.ranking__badge { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--teal); margin-bottom: 20px; }
.ranking__title { font-size: 26px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.ranking__encourage { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; text-align: center; }
.ranking__encourage strong { color: var(--teal-light); font-weight: 600; }
.ranking__desc { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; text-align: center; }
.ranking__desc strong { color: var(--teal-light); font-weight: 600; }

.ranking__list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.ranking-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; background: var(--bg-card);
  border: 1.5px solid rgba(255,255,255,.06); border-radius: var(--radius);
  cursor: grab; transition: all .25s; user-select: none;
}
.ranking-item:hover { border-color: rgba(94,206,187,.2); background: var(--bg-card-hover); }
.ranking-item:active { cursor: grabbing; }
.ranking-item.dragging { opacity: .35; }
.ranking-item__rank { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text-muted); min-width: 28px; text-align: center; }
.ranking-item:nth-child(1) .ranking-item__rank { color: var(--teal); }
.ranking-item:nth-child(1) { background: rgba(94,206,187,.06); border-color: rgba(94,206,187,.2); box-shadow: 0 4px 24px rgba(94,206,187,.08); }
.ranking-item:nth-child(2) .ranking-item__rank { color: rgba(94,206,187,.7); }
.ranking-item:nth-child(3) .ranking-item__rank { color: rgba(94,206,187,.5); }
.ranking-item__info { flex: 1; }
.ranking-item__keyword { display: block; font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.ranking-item__tagline { font-size: 14px; color: var(--text-tertiary); }
.ranking__actions { text-align: center; }

/* ============================================
   7. 결과
   ============================================ */
.result { max-width: 520px; width: 100%; padding: 48px 28px 60px; text-align: center; }
.result__badge { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--teal); margin-bottom: 36px; }
.result__title { font-size: 24px; font-weight: 700; color: var(--text-primary); line-height: 1.5; margin-bottom: 16px; }
.result__name { color: var(--teal-light); font-weight: 800; }
.result__intro { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 32px; }
.result__intro strong { color: var(--teal-light); font-weight: 600; }
.teal-line { width: 48px; height: 2px; background: linear-gradient(90deg, transparent, var(--teal), transparent); margin: 0 auto 32px; }

.section-label { font-size: 14px; color: var(--text-tertiary); line-height: 1.8; margin-bottom: 16px; text-align: center; }
.section-label strong { color: var(--text-secondary); font-weight: 600; }

.result__base-types { margin-bottom: 40px; padding: 24px; background: var(--bg-card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); text-align: left; }
.result__base-types h3 { font-size: 14px; font-weight: 700; color: var(--teal); margin-bottom: 16px; letter-spacing: 1px; }
.base-type-list { display: flex; flex-wrap: wrap; gap: 8px; }
.base-type-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 50px; font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.base-type-chip__rank { font-size: 11px; font-weight: 700; color: var(--teal); letter-spacing: .5px; text-transform: uppercase; }
.base-type-chip:nth-child(1) { border-color: rgba(94,206,187,.3); background: rgba(94,206,187,.06); }
.base-type-chip:nth-child(1) .base-type-chip__rank { color: var(--teal-light); }
.base-type-chip__colors { font-size: 13px; color: var(--text-muted); margin-left: 4px; }

.result__axes { margin-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.axis-row { padding: 18px 22px; background: var(--bg-card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); text-align: left; }
.axis-label { font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 10px; }
.axis-bar-wrap { display: flex; align-items: center; gap: 10px; }
.axis-side { font-size: 13px; font-weight: 700; min-width: 52px; text-align: center; }
.axis-side--pos { color: var(--teal); }
.axis-side--neg { color: var(--text-tertiary); }
.axis-track { flex: 1; height: 8px; background: rgba(255,255,255,.04); border-radius: 4px; overflow: hidden; position: relative; }
.axis-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--green-deep), var(--teal-light)); transition: width 1.2s cubic-bezier(.4,0,.2,1); }

.result__podium { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.podium-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--bg-card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); text-align: left; }
.podium-card--1 { background: rgba(94,206,187,.06); border-color: rgba(94,206,187,.2); box-shadow: 0 4px 24px rgba(94,206,187,.08); }
.podium-rank { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text-muted); min-width: 32px; text-align: center; }
.podium-card--1 .podium-rank { color: var(--teal); }
.podium-info { flex: 1; }
.podium-keyword { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.podium-tagline { font-size: 14px; color: var(--text-tertiary); }
.podium-category { font-size: 12px; font-weight: 600; color: var(--teal); letter-spacing: .5px; }

.result__full { margin-bottom: 40px; padding: 20px 22px; background: var(--bg-card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); text-align: left; }
.result__full h3 { font-size: 14px; font-weight: 700; color: var(--teal); margin-bottom: 12px; letter-spacing: 1px; }
.full-rank-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.03); }
.full-rank-row:last-child { border-bottom: none; }
.full-rank-num { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-muted); min-width: 24px; }
.full-rank-keyword { font-size: 15px; font-weight: 600; }
.full-rank-cat { font-size: 12.5px; color: var(--text-tertiary); margin-left: auto; }

.result__cta { margin-bottom: 36px; padding: 22px 24px; background: var(--teal-dim); border: 1px solid rgba(94,206,187,.15); border-radius: var(--radius); }
.result__cta p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.result__cta strong { color: var(--teal-light); }
.result__cta-sub { font-size: 14px; color: var(--teal); font-weight: 500; margin-top: 12px; }
.result__actions { display: flex; gap: 12px; justify-content: center; }

/* ========== 복원 배너 ========== */
.resume-banner { margin-bottom: 28px; padding: 20px 24px; background: rgba(94,206,187,.08); border: 1.5px solid rgba(94,206,187,.25); border-radius: var(--radius); text-align: center; animation: reveal .5s ease forwards; }
.resume-banner__text { font-size: 15px; color: var(--text-primary); margin-bottom: 14px; line-height: 1.6; }
.resume-banner__text strong { color: var(--teal-light); }
.resume-time { font-size: 13px; color: var(--text-tertiary); }
.resume-banner__actions { display: flex; gap: 10px; justify-content: center; }
.resume-btn { font-family: var(--font-body); font-size: 14px; font-weight: 700; padding: 10px 24px; border-radius: 50px; cursor: pointer; border: none; transition: all .25s; }
.resume-btn--yes { background: linear-gradient(135deg, var(--teal), var(--teal-light)); color: var(--bg-deep); box-shadow: 0 4px 16px var(--teal-glow); }
.resume-btn--yes:hover { transform: translateY(-1px); }
.resume-btn--no { background: transparent; color: var(--text-tertiary); border: 1px solid rgba(255,255,255,.1); }
.resume-btn--no:hover { border-color: rgba(255,255,255,.2); color: var(--text-secondary); }

/* ========== 토스트 ========== */
.toast { position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%) translateY(16px); background: var(--teal); color: var(--bg-deep); padding: 12px 28px; border-radius: 50px; font-size: 14px; font-weight: 700; opacity: 0; transition: all .3s; z-index: 999; box-shadow: 0 8px 32px var(--teal-glow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== 반응형 ========== */
@media (max-width: 480px) {
  .intro__title { font-size: 26px; } .intro__title em { font-size: 34px; }
  .intro__metrics { gap: 16px; } .metric__num { font-size: 26px; }
  .input-box { width: 100%; max-width: 280px; }
  .base__title { font-size: 22px; }
  .pick { padding: 0 18px; }
  .eliminate { padding: 0 18px; }
  .keyword-card { padding: 16px 18px; }
  .keyword-card__keyword { font-size: 17px; }
  .keyword-card__tagline { font-size: 13px; }
  .keyword-card__hint { width: 26px; height: 26px; font-size: 12px; }
  .ranking-item { padding: 14px 16px; gap: 12px; }
  .ranking-item__tagline { display: none; }
  .step { gap: 12px; padding: 18px 0; } .step__num { font-size: 24px; min-width: 32px; }
  .result__actions { flex-direction: column; align-items: center; }
  .btn-teal, .btn-outline { width: 100%; max-width: 280px; }
  .floating__status { gap: 8px; }
  .floating__chip { padding: 6px 12px; }
  .floating__label { font-size: 11px; }
  .floating__value { font-size: 13px; }
  .floating__value strong { font-size: 14px; }
}
/* ── 주관적 정의 입력 ── */
.define-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 100px;
}

.define-item {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 20px;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}

.define-item.defined {
  border-color: rgba(94,206,187,0.35);
  background: rgba(94,206,187,0.05);
  box-shadow: 0 0 0 1px rgba(94,206,187,0.08), 0 4px 20px rgba(94,206,187,0.06);
}

.define-item__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.define-item__rank {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(94,206,187,0.15), rgba(94,206,187,0.08));
  border: 1px solid rgba(94,206,187,0.2);
  color: #5ECEBB;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.define-item.defined .define-item__rank {
  background: linear-gradient(135deg, rgba(94,206,187,0.3), rgba(94,206,187,0.15));
}

.define-item__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.define-item__keyword {
  font-size: 16px;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.02em;
}

.define-item__tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.define-item__input-wrap {
  position: relative;
  margin-top: 2px;
}

.define-item__input-wrap::before {
  content: '✍️';
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 13px;
  z-index: 1;
  opacity: 0.7;
}

.define-item__textarea {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px 12px 12px 36px;
  color: rgba(255,255,255,0.92);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  resize: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.define-item__textarea:focus {
  outline: none;
  border-color: rgba(94,206,187,0.5);
  background: rgba(0,0,0,0.35);
  box-shadow: 0 0 0 3px rgba(94,206,187,0.08);
}

.define-item.defined .define-item__textarea {
  border-color: rgba(94,206,187,0.2);
}

.define-item__textarea::placeholder {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

.define-item__count {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 10px;
  color: rgba(255,255,255,0.15);
  font-weight: 500;
}

.define-item.defined .define-item__count {
  color: rgba(94,206,187,0.35);
}