:root {
  --juniora-h: 38px;
  --bg: rgb(19, 21, 25);
  --panel: #1c1f26;
  --panel-2: #23272f;
  --ink: #fff;
  --muted: #9aa3ad;
  --good: var(--jn-green, #a0e747);
  --bad: #ff6b6b;
}
* { box-sizing: border-box }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--jn-font); min-height: 100% }
body { padding-bottom: var(--juniora-h); -webkit-tap-highlight-color: transparent; }
.wrap { max-width: 640px; margin: 0 auto; padding: 26px 18px 40px; }
.head { text-align: center; margin-bottom: 20px }
.head h1 { font-size: clamp(21px, 5vw, 27px); margin: 0 0 8px }
.head p { color: var(--muted); font-size: 14.5px; line-height: 1.9; margin: 0 }

.timeline { position: relative; margin: 26px 0 22px; }
.track { position: relative; height: 4px; background: #2a2e36; border-radius: 4px; }
.track-fill { position: absolute; inset-inline-start: 0; top: 0; height: 100%; width: 0%; background: var(--good); border-radius: 4px; transition: width .35s ease; }
.dots { position: absolute; inset: -10px 0 auto 0; display: flex; justify-content: space-between; }
.dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--panel-2); border: 2px solid #2a2e36;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--muted); cursor: pointer;
  transition: all .2s ease;
}
.dot.active { background: var(--good); border-color: var(--good); color: #10231f; transform: scale(1.15); }
.dot.done { border-color: var(--good); color: var(--good); }

.stage-card {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stage-time {
  font-size: 12px; font-weight: 900; color: var(--good);
  background: rgba(160,231,71,0.14); padding: 4px 12px; border-radius: 999px;
}
.stage-emoji { font-size: 40px; margin: 10px 0 4px; }
.stage-card h2 { margin: 0 0 8px; font-size: 19px; }
.stage-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; max-width: 420px; }
.tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.tools span {
  font-size: 11.5px; background: var(--panel); border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 10px; border-radius: 999px; color: var(--muted);
}

.nav-btns { display: flex; gap: 10px; margin-top: 16px; }
.nav-btn {
  flex: 1; padding: 13px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
  background: var(--panel); color: var(--ink); font-family: var(--jn-font);
  font-weight: 700; font-size: 14px; cursor: pointer;
}
.nav-btn.primary { background: var(--good); color: #10231f; border-color: var(--good); }
.nav-btn:disabled { opacity: .35; cursor: default; }

.quiz { margin-top: 30px; }
.quiz h3 { font-size: 16px; text-align: center; margin: 0 0 16px; }
.quiz-item {
  background: var(--panel); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px;
  padding: 14px; margin-bottom: 10px;
}
.quiz-item p { margin: 0 0 10px; font-size: 14px; }
.quiz-btns { display: flex; gap: 8px; }
.quiz-btns button {
  flex: 1; padding: 9px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
  background: var(--panel-2); color: var(--ink); font-family: var(--jn-font);
  font-weight: 700; font-size: 13px; cursor: pointer;
}
.quiz-feedback { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; min-height: 18px; }
.quiz-feedback.correct { color: var(--good); }
.quiz-feedback.wrong { color: var(--bad); }
.quiz-item button:disabled { opacity: .5; }

/* برند جونیورا؛ کوچیک و وسط‌چین پایین صفحه */
.juniora-overlay {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: rgba(13, 15, 19, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1000;
}
.juniora-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #9aa3ad;
  font-family: var(--jn-font);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  opacity: 0.85;
  transition: opacity .15s ease;
}
.juniora-link:hover { opacity: 1; }
.juniora-logo {
  width: 13px;
  height: auto;
  display: block;
  flex-shrink: 0;
}
.juniora-text {
  letter-spacing: normal;
}

