:root {
  --bg: #05070b;
  --bg2: #0a0f19;
  --card: #090f1e;
  --line: #1b2742;
  --line-soft: #223253;
  --text: #eef2ff;
  --muted: #8f9ec2;
  --blue: #2f76ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: radial-gradient(1100px 450px at 50% -15%, #172445 0%, var(--bg2) 45%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
  padding: 8px 12px 22px;
}
.bg-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(280px 220px at 15% 8%, rgba(60, 125, 255, 0.12), transparent 65%),
    radial-gradient(260px 220px at 86% 88%, rgba(23, 205, 176, 0.08), transparent 65%);
}
.container {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}
.card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
h1 { font-size: 1.08rem; color: #fff; }
.muted { color: var(--muted); font-size: 0.86rem; }
.hidden { display: none !important; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 14px;
}
.topbar-clean { justify-content: center; }
.topbar-btn {
  border: none;
  background: transparent;
  color: #c4ccee;
  font-size: 12px;
  cursor: pointer;
}
.topbar-center { text-align: center; }
.topbar-center h1 { font-size: 18px; margin-bottom: 1px; }
.topbar-sub { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; }
.topbar-dots {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0c1223;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.topbar-dots span { width: 3px; height: 3px; border-radius: 50%; background: #93a3c9; }

.intro-box {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 23, 45, 0.92), rgba(9, 15, 29, 0.95));
  padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(46, 82, 155, 0.18);
}
.intro-title {
  font-size: 35px;
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}
.intro-list {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.intro-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #afbbdc;
  font-size: 11.5px;
}
.list-ico {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #29426f;
  border-radius: 7px;
  color: #8ab0ff;
  font-size: 10px;
  background: rgba(36, 68, 122, 0.22);
}

.section-label {
  margin-top: 18px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7f8eb4;
  font-size: 11px;
  font-weight: 600;
}
.track-grid { display: grid; gap: 10px; }
.track-btn {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(10, 18, 34, 0.95), rgba(8, 14, 26, 0.98));
  color: #fff;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.track-btn:hover { border-color: #34528e; }
.track-btn.selected {
  border-color: #387bff;
  box-shadow: 0 0 0 1px rgba(56, 123, 255, 0.35) inset;
}
.track-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid #2c3f64;
}
.track-neo { color: #71a6ff; background: rgba(58, 109, 209, 0.2); }
.track-biz { color: #45d3a4; background: rgba(18, 136, 111, 0.2); }
.track-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.track-copy b { font-size: 24px; line-height: 1; letter-spacing: 0.01em; }
.track-copy small {
  font-size: 8px;
  color: #93a5cb;
  border: 1px solid #2a3c60;
  border-radius: 30px;
  padding: 1px 5px;
}
.track-copy span { font-size: 12px; color: #8ea0c7; }
.track-arrow { margin-left: auto; color: #5d6d92; font-size: 19px; }

.context-box {
  margin-top: 14px;
  border: 1px solid #223354;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(9, 16, 31, 0.95), rgba(7, 12, 24, 0.98));
  padding: 12px;
}
.context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.context-head .muted {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
}
.badge {
  font-size: 9px;
  color: #9cc1ff;
  border: 1px solid #355ea5;
  background: rgba(32, 78, 157, 0.26);
  padding: 2px 7px;
  border-radius: 20px;
}
.context-grid { display: grid; gap: 10px; }
.ctx-input {
  width: 100%;
  background: #070f22;
  color: #e8eeff;
  border: 1px solid #25385d;
  border-radius: 11px;
  font-size: 13px;
  padding: 12px;
  outline: none;
}
.ctx-input::placeholder { color: #5f739d; }
.ctx-input:focus {
  border-color: #3d78eb;
  box-shadow: 0 0 0 1px rgba(61, 120, 235, 0.42) inset;
}

.progress-meta {
  font-size: 12px;
  color: #9caacc;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.progress {
  height: 7px;
  background: #111d37;
  border: 1px solid #22345a;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.progress > div {
  height: 100%;
  background: linear-gradient(90deg, #2f76ff, #6a84ff);
}
.quiz-question {
  font-size: 1.18rem;
  line-height: 1.35;
  margin-bottom: 14px;
}
.quiz-shell {
  border: 1px solid #223455;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(11, 20, 39, 0.96), rgba(8, 14, 28, 0.98));
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(112, 151, 235, 0.12), 0 16px 30px rgba(0, 0, 0, 0.35);
}
.options { display: grid; gap: 9px; }
.opt {
  width: 100%;
  text-align: left;
  background: linear-gradient(180deg, rgba(18, 31, 56, 0.92), rgba(10, 19, 36, 0.98));
  border: 1px solid #264173;
  color: #dbe7ff;
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(145, 182, 255, 0.12);
  transform: translateZ(0);
  transition: transform 0.12s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.opt:hover {
  border-color: #4f77c7;
  transform: translateY(-1px);
}
.opt.selected {
  border-color: #3b81ff;
  box-shadow: 0 0 0 1px rgba(59, 129, 255, 0.35) inset, 0 8px 16px rgba(26, 74, 173, 0.32);
  background: linear-gradient(180deg, rgba(33, 59, 106, 0.94), rgba(16, 32, 61, 0.98));
}

.row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.btn {
  border-radius: 12px;
  padding: 12px 15px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  flex: 1;
}
.btn-xl {
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 14px;
}
.btn-primary {
  border: 1px solid #2a67d4;
  background: linear-gradient(180deg, #2f76ff, #2a6ff2);
  color: #fff;
  box-shadow: 0 10px 18px rgba(44, 106, 231, 0.35), inset 0 1px 0 rgba(175, 204, 255, 0.25);
}
.btn-ghost {
  border: 1px solid #2a3f67;
  background: #0a1328;
  color: #d3e0ff;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-start {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 14px 24px rgba(44, 106, 231, 0.3), inset 0 1px 0 rgba(173, 202, 255, 0.25);
}
.tracks-hint {
  margin-top: 9px;
  min-height: 16px;
  font-size: 11px;
}

.score-big {
  font-size: 3.2rem;
  font-weight: 800;
  color: #81a8ff;
  text-align: center;
  margin: 6px 0 4px;
}
.result-hero {
  border: 1px solid #264173;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 37, 69, 0.9), rgba(12, 23, 44, 0.97));
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(145, 182, 255, 0.12), 0 12px 24px rgba(0, 0, 0, 0.3);
}
#result-radar {
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 14px auto 10px;
}
.result-grid { display: grid; gap: 10px; margin-top: 10px; }
.result-card {
  border: 1px solid #263a5e;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(11, 20, 37, 0.95), rgba(8, 14, 27, 0.98));
  padding: 11px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(110, 153, 235, 0.1);
}
.result-card-title {
  color: #8eb4ff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}
.result-blocks { display: flex; flex-wrap: wrap; gap: 6px; }
.result-pill {
  display: inline-block;
  border: 1px solid #39578b;
  background: #0f1d38;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
}
.result-flags-list { margin: 0; padding-left: 16px; color: #a8b6da; font-size: 12px; }
.result-flags-list li { margin-bottom: 5px; }
.row-sticky {
  position: sticky;
  bottom: 6px;
  background: rgba(5, 8, 14, 0.82);
  border: 1px solid #1c2a46;
  border-radius: 16px;
  padding: 8px;
  backdrop-filter: blur(10px);
}

@media (max-width: 360px) {
  .track-copy b { font-size: 21px; }
  .btn-start { font-size: 15px; }
}

.quiz-lang-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.quiz-lang-btn {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.quiz-lang-btn.active {
  border-color: var(--blue);
  color: #fff;
  background: rgba(47, 118, 255, 0.25);
}
