/* ═══════════════════════════════════════════
   DLC3 — Dark + Blue/Navy Theme
   Career Way Lab · Workplace Draft
   ═══════════════════════════════════════════ */

:root {
  --bg-deep: #060a14;
  --bg-base: #0a1020;
  --bg-card: rgba(14, 22, 46, 0.85);
  --bg-card-hover: rgba(20, 32, 65, 0.9);
  --border-subtle: rgba(80, 130, 240, 0.12);
  --border-active: rgba(80, 130, 240, 0.4);
  --blue-500: #4f82f0;
  --blue-400: #6a9cf5;
  --blue-300: #8db6f8;
  --blue-200: #b4d0fb;
  --cyan-400: #45d4c0;
  --gold-400: #d4a853;
  --red-400: #f06565;
  --text-1: #e4e9f2;
  --text-2: #94a0b8;
  --text-3: #5a677f;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg-deep);
  color: var(--text-1);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'Cormorant Garamond', serif; }

/* ── BG Decoration ── */
.bg-orb {
  position: fixed; border-radius: 50%;
  filter: blur(100px); pointer-events: none; z-index: 0;
}
.bg-orb--1 {
  width: 500px; height: 500px; top: -120px; left: -100px;
  background: rgba(79,130,240,0.08);
  animation: orbFloat 20s ease-in-out infinite;
}
.bg-orb--2 {
  width: 400px; height: 400px; bottom: -80px; right: -60px;
  background: rgba(69,212,192,0.05);
  animation: orbFloat 25s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 20px); }
}
.bg-noise {
  position: fixed; inset: 0; opacity: 0.025; z-index: 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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Layout ── */
.screen { display: none; position: relative; z-index: 1; min-height: 100vh; }
.screen.active { display: flex; flex-direction: column; align-items: center; }
.wrap { width: 100%; max-width: 640px; padding: 0 20px; }

/* ── Reveal Animation ── */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-in { animation: fadeUp .45s ease both; }

/* ── Glass Card ── */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.glass-sm {
  background: rgba(14,22,46,0.5);
  border: 1px solid rgba(80,130,240,0.06);
  border-radius: var(--radius-md);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: 60px; cursor: pointer;
  font-family: inherit; font-weight: 700; transition: all .25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), #3d6ce0);
  color: #fff; padding: 14px 36px; font-size: 14px;
  box-shadow: 0 4px 20px rgba(79,130,240,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79,130,240,.4);
}
.btn-primary:disabled {
  opacity: .35; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn-ghost {
  background: transparent; border: 1px solid var(--border-subtle);
  color: var(--text-2); padding: 10px 20px; font-size: 13px;
}
.btn-ghost:hover { border-color: var(--blue-500); color: var(--text-1); }
.btn-arrow { display: inline-block; transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── Inputs ── */
.input-field {
  width: 100%; padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(80, 130, 240, 0.35);
  background: rgba(20, 32, 65, 0.7);
  color: var(--text-1); font-size: 15px; font-family: inherit;
  outline: none; transition: border-color .2s, box-shadow .2s;
  box-shadow: 0 0 0 1px rgba(80, 130, 240, 0.08);
}
.input-field:focus { border-color: var(--blue-500); box-shadow: 0 0 12px rgba(79,130,240,.2); }
.input-field::placeholder { color: var(--text-3); }
.input-label {
  font-size: 12px; color: var(--text-3);
  letter-spacing: .5px; display: block; margin-bottom: 6px;
}

/* ═══ INTRO ═══ */
.intro { max-width: 520px; width: 100%; padding: 48px 28px 60px; text-align: center; }
.intro__badge {
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  color: var(--blue-400); margin-bottom: 40px;
}
.intro__title {
  font-size: 32px; font-weight: 700; line-height: 1.5;
  color: var(--text-1); margin-bottom: 24px;
}
.intro__title em {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 40px; color: var(--blue-300); font-weight: 600;
}
.intro__desc { font-size: 15px; color: var(--text-2); line-height: 1.8; margin-bottom: 40px; }
.intro__desc strong { color: var(--blue-300); 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__num { font-size: 28px; font-weight: 900; color: var(--blue-400); display: block; }
.metric__label { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.metric-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }
.intro__input-section { margin-bottom: 32px; }
.input-box { display: inline-block; position: relative; width: 280px; }
.input-box input {
  width: 100%; font-family: inherit; 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-md); color: var(--text-1); outline: none;
  caret-color: var(--blue-400); transition: all .3s;
}
.input-box input::placeholder { color: var(--text-3); font-weight: 400; font-size: 15px; }
.input-box input:focus {
  border-color: var(--blue-400); background: rgba(79,130,240,.06);
  box-shadow: 0 0 0 3px rgba(79,130,240,.12);
}
.btn-start {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 48px; font-family: inherit; font-size: 16px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--blue-500), #3d6ce0);
  border: none; border-radius: 50px; cursor: pointer; transition: all .3s;
  box-shadow: 0 4px 24px rgba(79,130,240,.25);
}
.btn-start:hover:not(:disabled) {
  transform: translateY(-2px); box-shadow: 0 8px 32px rgba(79,130,240,.35);
}
.btn-start:disabled {
  background: rgba(255,255,255,.08); color: var(--text-3);
  box-shadow: none; cursor: not-allowed;
}
.btn-start .btn-arrow { transition: transform .2s; }
.btn-start:hover:not(:disabled) .btn-arrow { transform: translateX(4px); }

/* ═══ TYPE SELECT ═══ */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.type-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 16px 12px; border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle); background: transparent;
  cursor: pointer; transition: all .25s; text-align: center;
  font-family: inherit; color: var(--text-1);
}
.type-btn:hover { border-color: var(--blue-400); background: rgba(79,130,240,.04); }
.type-btn.selected { border-color: var(--blue-400); background: rgba(79,130,240,.1); }
.type-dot {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: #fff; flex-shrink: 0;
}
.type-name { font-size: 14px; font-weight: 700; }
.type-eng { font-size: 11px; color: var(--text-3); }

/* ═══ GUIDE ═══ */
.guide-section { padding: 60px 0; }
.guide-step { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.guide-num {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; flex-shrink: 0;
}
.guide-body h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.guide-body p { font-size: 12px; color: var(--text-2); line-height: 1.6; }

/* ═══ PHASE INTRO ═══ */
.phase-intro { padding: 80px 0 40px; text-align: center; }
.phase-badge {
  display: inline-block; padding: 4px 14px; border-radius: 100px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.phase-1-badge { border: 1px solid var(--cyan-400); color: var(--cyan-400); }
.phase-2-badge { border: 1px solid var(--gold-400); color: var(--gold-400); }
.phase-3-badge { border: 1px solid var(--red-400); color: var(--red-400); }

/* ═══ DRAFT ROUND ═══ */
.draft-header {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 0;
}
.round-tag { font-size: 12px; font-weight: 700; color: var(--blue-400); letter-spacing: 2px; }
.round-sub { font-size: 12px; color: var(--blue-300); margin-top: 2px; font-weight: 500; }
.budget-num { font-size: 24px; font-weight: 900; color: var(--gold-400); }
.budget-label { font-size: 10px; color: var(--text-3); }

/* Round Story */
.round-story {
  padding: 20px 22px; border-radius: var(--radius-md);
  background: rgba(79,130,240,.1); border-left: 3px solid var(--blue-400);
  margin-bottom: 18px;
}
.round-story-title { font-size: 15px; font-weight: 900; margin-bottom: 6px; color: var(--blue-300); }
.round-story-text { font-size: 14px; color: var(--text-1); line-height: 1.7; }

/* Token Bar */
.token-track {
  width: 100%; height: 5px; border-radius: 3px;
  background: rgba(80,130,240,.08); overflow: hidden; margin-bottom: 6px;
}
.token-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.token-fill.low { background: linear-gradient(90deg, var(--red-400), #e04a4a); }
.token-fill.mid { background: linear-gradient(90deg, var(--gold-400), #e8a832); }

/* Progress Dots */
.progress { display: flex; gap: 5px; align-items: center; margin: 10px 0 16px; }
.prog-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(80,130,240,.15); transition: all .3s;
}
.prog-dot.done { background: var(--blue-500); }
.prog-dot.now {
  background: var(--blue-400); width: 20px; border-radius: 4px;
  box-shadow: 0 0 6px rgba(79,130,240,.4);
}
.prog-dot.event { background: var(--red-400); opacity: .6; }

/* Draft Cards */
.card-stack { display: flex; flex-direction: column; gap: 12px; }
.draft-card {
  position: relative; padding: 22px 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card); cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1); overflow: hidden;
}
.draft-card:hover { border-color: var(--border-active); transform: translateY(-3px); }
.draft-card.picked {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 1px var(--blue-500), 0 8px 28px rgba(79,130,240,.18);
}
.draft-card.locked { opacity: .4; pointer-events: none; border-color: rgba(240,101,101,.2); }
.card-cost-tag { position: absolute; top: 14px; right: 16px; font-size: 10px; color: var(--text-3); }
.card-cost-tag b { font-size: 17px; color: var(--text-1); font-weight: 900; }
.card-tier-tag {
  display: inline-block; padding: 2px 8px; border-radius: 5px;
  font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.tier-HIGH { background: rgba(212,168,83,.12); color: var(--gold-400); }
.tier-MID { background: rgba(79,130,240,.1); color: var(--blue-300); }
.tier-LOW { background: rgba(69,212,192,.08); color: var(--cyan-400); }
.card-label { font-size: 15px; font-weight: 700; margin: 10px 0 6px; }
.card-text { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.card-example {
  font-size: 11.5px; color: var(--text-3); line-height: 1.55;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid rgba(80,130,240,.06);
}

/* Actions */
.draft-actions {
  display: flex; gap: 10px; justify-content: center;
  margin-top: 24px; flex-wrap: wrap;
}

/* ═══ EVENT OVERLAY ═══ */
.event-bg {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(6,10,20,.93); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.event-bg.on { display: flex; }
.event-box {
  max-width: 500px; width: 90%; padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(20,28,55,.95), rgba(14,18,36,.98));
  border: 1px solid rgba(240,101,101,.25);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.event-tag {
  display: inline-block; padding: 3px 12px; border-radius: 100px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: var(--red-400); border: 1px solid rgba(240,101,101,.25);
  text-transform: uppercase;
}
.event-title { font-size: 20px; font-weight: 900; margin: 14px 0 8px; }
.event-text { font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; }
.event-opt {
  display: block; width: 100%; text-align: left;
  padding: 14px 18px; margin-bottom: 8px;
  border-radius: var(--radius-md); cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: rgba(14,22,46,.6);
  color: var(--text-1); font-size: 12.5px; line-height: 1.5;
  font-family: inherit; transition: all .2s;
}
.event-opt:hover { border-color: var(--red-400); background: rgba(240,101,101,.04); }
.event-opt-picked {
  border-color: var(--red-400); background: rgba(240,101,101,.1);
  box-shadow: 0 0 0 1px var(--red-400);
}

/* ═══ RESULT ═══ */
.result-section { padding: 40px 0 60px; text-align: center; }
.total-num {
  font-size: 60px; font-weight: 900;
  background: linear-gradient(135deg, var(--blue-300), var(--cyan-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.gauge-track {
  width: 100%; height: 8px; border-radius: 4px;
  background: rgba(80,130,240,.08); overflow: hidden;
}
.gauge-fill {
  height: 100%; border-radius: 4px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}
.fit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.fit-box { padding: 20px 12px; text-align: center; }
.fit-label { font-size: 10px; color: var(--text-3); letter-spacing: 1px; }
.fit-num { font-size: 28px; font-weight: 900; margin: 6px 0; }
.axis-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.axis-name { font-size: 11px; color: var(--text-1); width: 52px; text-align: right; flex-shrink: 0; font-weight: 500; }
.axis-track {
  flex: 1; height: 7px; border-radius: 4px;
  background: rgba(80,130,240,.06); position: relative; overflow: hidden;
}
.axis-center { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.06); }
.axis-fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; transition: all .8s cubic-bezier(.4,0,.2,1); }
.axis-end { font-size: 11px; color: var(--text-1); width: 52px; flex-shrink: 0; font-weight: 500; }
.axis-val { font-size: 12px; font-weight: 700; width: 28px; text-align: center; flex-shrink: 0; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.info-box { padding: 20px; }
.info-box-label { font-size: 10px; color: var(--text-3); letter-spacing: 1px; margin-bottom: 8px; }
.info-box-val { font-size: 17px; font-weight: 900; }

/* ═══ TOAST ═══ */
.toast {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-80px); z-index: 300;
  padding: 10px 24px; border-radius: 60px;
  background: rgba(79,130,240,.9); color: #fff;
  font-size: 12px; font-weight: 700;
  transition: transform .4s ease; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 480px) {
  .intro__title { font-size: 26px; }
  .intro__title em { font-size: 34px; }
  .intro__metrics { gap: 16px; }
  .metric__num { font-size: 22px; }
  .input-box { width: 100%; max-width: 280px; }
  .type-grid { gap: 8px; }
  .type-btn { padding: 12px; }
  .draft-card { padding: 18px 16px; }
  .card-label { font-size: 14px; }
  .card-text { font-size: 12px; }
  .card-example { font-size: 11px; }
  .event-box { padding: 28px 20px; }
  .fit-grid { grid-template-columns: 1fr; gap: 8px; }
  .info-grid { grid-template-columns: 1fr; }
  .total-num { font-size: 48px; }
}

/* ========== 개인정보 동의 ========== */
.consent-section { margin-bottom: 16px; text-align: left; max-width: 360px; margin-left: auto; margin-right: auto; }
.consent-label { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-2, #9ca3af); line-height: 1.6; cursor: pointer; }
.consent-checkbox { margin-top: 3px; accent-color: var(--blue-400, #6a9cf5); flex-shrink: 0; width: 16px; height: 16px; }
.consent-label a { color: var(--blue-300, #8db6f8); }