/* ─── Base ────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #0d0d0d;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0d0d0d;
  color: #d4d4d4;
  overflow-x: hidden;
}

/* ─── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 2px;
}

/* ─── Scan lines overlay (subtle) ────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px);
  pointer-events: none;
  z-index: 9999;
}

/* ─── Terminal card ───────────────────────────────────── */
.term-card {
  background: #111111;
  border: 1px solid #1f1f1f;
}

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

/* ─── Section label (prompt style) ───────────────────── */
.prompt-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #525252;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.prompt-prefix {
  font-family: 'JetBrains Mono', monospace;
  color: #4ade80;
  font-size: 0.7rem;
  margin-right: 0.5rem;
}

/* ─── Range slider ────────────────────────────────────── */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: #2a2a2a;
  outline: none;
  cursor: pointer;
  border-radius: 0;
  padding: 10px 0;
  margin: 4px 0;
  touch-action: manipulation;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: #d4d4d4;
  border: none;
  transition: background .15s;
}

input[type=range]::-webkit-slider-thumb:hover {
  background: #f5f5f5;
}

input[type=range]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: #d4d4d4;
  border: none;
}

/* ─── Select ──────────────────────────────────────────── */
select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px !important;
  font-size: 16px;
  /* Prevents iOS auto-zoom */
}

@media (min-width: 640px) {
  select {
    font-size: 0.875rem;
    /* 14px on desktop */
  }
}

select:focus {
  outline: none;
}

select option {
  background: #111111;
  color: #d4d4d4;
}

/* ─── Gender toggle ───────────────────────────────────── */
.gender-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  transition: all .15s ease;
  border-radius: 0;
}

.gender-btn.active-male {
  background: transparent;
  border-color: #60a5fa !important;
  color: #60a5fa;
}

.gender-btn.active-female {
  background: transparent;
  border-color: #f9a8d4 !important;
  color: #f9a8d4;
}

/* ─── Result block ────────────────────────────────────── */
#result-block {
  display: none;
}

#result-block.visible {
  display: block;
  animation: slideUp .4s ease forwards;
}

/* ─── Progress bar ────────────────────────────────────── */
.progress-track {
  background: #1f1f1f;
  height: 4px;
  position: relative;
}

.progress-fill {
  height: 100%;
  transition: width 1s cubic-bezier(.4, 0, .2, 1);
}

/* ─── Metric card ─────────────────────────────────────── */
.metric-card {
  transition: border-color .2s ease;
}

.metric-card:hover {
  border-color: #3d3d3d !important;
}

/* ─── DLI number ──────────────────────────────────────── */
.dli-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ─── Hobby toggle ────────────────────────────────────── */
.hobby-btn {
  font-family: 'JetBrains Mono', monospace;
  border-radius: 0;
  transition: all .15s ease;
}

.hobby-btn.active-hobby-no {
  border-color: #4ade80 !important;
  color: #4ade80;
}

.hobby-btn.active-hobby-yes {
  border-color: #fbbf24 !important;
  color: #fbbf24;
}

