/* Estilo limpio tipo Pearson VUE */
:root {
  --blue: #0b5cad;
  --blue-dark: #084a8c;
  --gray-bg: #f2f4f7;
  --card-bg: #ffffff;
  --text: #1d2733;
  --muted: #5b6b7c;
  --border: #d7dde5;
  --amber: #e8a100;
  --green: #1e7e34;
  --red: #c0392b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: var(--gray-bg);
  color: var(--text);
}
#topbar {
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
#topbar .brand { font-weight: 600; font-size: 15px; }
#timerWrap { display: flex; align-items: center; gap: 10px; }
#timerLabel { font-size: 12px; opacity: .85; }
#timer {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,.15);
  padding: 2px 12px;
  border-radius: 6px;
}
#timer.low { background: var(--red); }
#btnClock {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 13px;
}
#btnClock:hover { background: rgba(255,255,255,.15); }
#app { max-width: 780px; margin: 24px auto; padding: 0 16px 40px; }
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.hidden { display: none !important; }
h1 { font-size: 22px; margin-top: 0; }
h2 { font-size: 20px; }
h3 { font-size: 16px; margin-top: 26px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.lead { font-size: 15px; }
.notice {
  background: #fff8e6;
  border: 1px solid #f0d48a;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 16px 0;
}
.rules { font-size: 14px; line-height: 1.7; }
button {
  font-family: inherit;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 16px;
  cursor: pointer;
}
button:hover { background: #eef2f7; }
button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
button.primary:hover { background: var(--blue-dark); }
button.big { font-size: 16px; padding: 12px 28px; margin-top: 12px; }
button.danger { border-color: var(--red); color: var(--red); }
button.danger:hover { background: #fdecea; }
button:disabled { opacity: .45; cursor: default; }
#progressRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}
#stem { font-size: 17px; line-height: 1.6; margin-bottom: 18px; font-weight: 500; }
#options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.option {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  font-size: 15px;
  line-height: 1.5;
}
.option:hover { border-color: var(--blue); background: #f4f8fd; }
.option.selected { border-color: var(--blue); background: #e3eefb; font-weight: 600; }
.option .letter {
  display: inline-block;
  font-weight: 700;
  color: var(--blue);
  margin-right: 10px;
}
.navrow { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 10px; }
.navrow2 { display: flex; justify-content: flex-end; }
#navigator {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 6px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafbfc;
  max-height: 220px;
  overflow-y: auto;
}
#navigator button {
  position: relative;
  padding: 8px 0;
  font-size: 13px;
}
#navigator button.current { border-color: var(--blue); background: #e3eefb; font-weight: 700; }
#navigator button.answered { background: #e6f4ea; }
#navigator button .dot {
  position: absolute;
  top: 3px;
  right: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
}
#scoreBox { text-align: center; margin: 10px 0 18px; }
#scoreBox .pct { font-size: 46px; font-weight: 800; }
#scoreBox .detail { color: var(--muted); font-size: 14px; margin-top: 4px; }
#scoreBox .verdict { font-size: 17px; font-weight: 700; margin-top: 8px; }
.verdict.good { color: var(--green); }
.verdict.bad { color: var(--red); }
#streakBox {
  text-align: center;
  font-size: 15px;
  background: #eef4ff;
  border: 1px solid #bcd3f5;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 6px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
th { background: #f4f6f9; }
.trap-card {
  border: 1px solid #f0d48a;
  background: #fffdf4;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 14px;
}
.trap-card .tq { font-weight: 600; margin-bottom: 6px; }
.trap-card .why { color: var(--muted); }
.history-summary { font-size: 14px; color: var(--muted); margin: 12px 0; }
@media (max-width: 560px) {
  #app { margin: 12px auto; }
  .card { padding: 18px; }
  #timer { font-size: 18px; }
  .navrow { flex-wrap: wrap; }
}
