/* ════════════════════════════════════════════════════
   UASD AUTOEVALUACIÓN — INF-3240
   Colores institucionales: Azul #003087, Blanco, Dorado
════════════════════════════════════════════════════ */

:root {
  --uasd-blue:      #003087;
  --uasd-blue-dark: #001e5a;
  --uasd-blue-mid:  #0046b8;
  --uasd-blue-lite: #d6e4f7;
  --uasd-blue-pale: #edf3fc;
  --uasd-gold:      #C8A84B;
  --uasd-gold-lite: #f5eacc;
  --correct:        #1a7f4b;
  --correct-bg:     #d0f0df;
  --wrong:          #c0392b;
  --wrong-bg:       #fde0dd;
  --skip-bg:        #fef9e7;
  --skip-text:      #7a6200;
  --text:           #0d1b3e;
  --muted:          #5a6a90;
  --border:         #c8d5ed;
  --white:          #ffffff;
  --shadow-card:    0 12px 50px rgba(0,48,135,.14), 0 2px 8px rgba(0,48,135,.08);
  --r:              16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  background: #f0f5ff;
  min-height: 100vh;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

/* ── Diagonal background pattern ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, #e8f0fb 0%, #f5f8ff 50%, #dce8fa 100%);
  z-index: -2;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0,48,135,.025) 0,
    rgba(0,48,135,.025) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 28px 28px;
  z-index: -1;
}

/* ════ SCREENS ════ */
.screen { display: none; }
#screen-intro.active  { display: block; }
#screen-exam.active   { display: block; }
#screen-results.active{ display: block; }

/* ════ ANIMATIONS ════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .5; }
}
@keyframes ringFill {
  from { stroke-dashoffset: 326.7; }
}

/* ════ INTRO SCREEN ════ */
.banner-stripe {
  height: 8px;
  background: linear-gradient(90deg, var(--uasd-blue-dark), var(--uasd-blue-mid) 50%, var(--uasd-gold));
}

.intro-wrap {
  display: flex;
  justify-content: center;
  padding: 36px 16px 60px;
}

.intro-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 5vw, 52px) clamp(24px, 6vw, 56px);
  width: 100%;
  max-width: 560px;
  position: relative;
  overflow: hidden;
  animation: fadeUp .5s ease both;
}

.card-accent-line {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--uasd-blue), var(--uasd-gold));
  border-radius: 20px 0 0 20px;
}

/* ── Institution Header ── */
.inst-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.inst-header.compact { margin-bottom: 14px; }

.escudo-ring {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 3px solid var(--uasd-blue);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--uasd-blue-pale);
}
.escudo-ring.small { width: 52px; height: 52px; }
.escudo { width: 100%; height: 100%; object-fit: contain; }

.inst-text { flex: 1; min-width: 0; }
.inst-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(11px, 2.3vw, 14px);
  font-weight: 700;
  color: var(--uasd-blue);
  line-height: 1.3;
}
.inst-sub {
  font-size: clamp(10px, 1.8vw, 11.5px);
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}

/* ── Title Block ── */
.title-block {
  text-align: center;
  margin-bottom: 24px;
}
.title-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--uasd-gold);
  background: var(--uasd-gold-lite);
  border: 1px solid var(--uasd-gold);
  padding: 3px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.main-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 900;
  color: var(--uasd-blue);
  line-height: 1.2;
  margin-bottom: 6px;
}
.main-subtitle {
  font-size: clamp(13px, 2.8vw, 16px);
  font-weight: 500;
  color: var(--uasd-blue-mid);
  margin-bottom: 14px;
}
.pill-row {
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(10px, 1.8vw, 12px);
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .3px;
}
.pill-blue    { background: var(--uasd-blue); color: #fff; }
.pill-gold    { background: var(--uasd-gold); color: #fff; }
.pill-outline { background: transparent; border: 1.5px solid var(--border); color: var(--muted); }
.prof-line {
  font-size: clamp(12px, 2.3vw, 13.5px);
  color: var(--uasd-gold);
  font-weight: 700;
  letter-spacing: .4px;
}

/* ── Separator ── */
.sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 22px 0;
}

/* ── Form ── */
.student-form { display: flex; flex-direction: column; gap: 14px; }
.form-group   { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--uasd-blue);
}
.form-group input {
  padding: 12px 15px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text);
  background: var(--uasd-blue-pale);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.form-group input:focus {
  border-color: var(--uasd-blue-mid);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,70,184,.1);
}

.form-error { font-size: 12.5px; color: var(--wrong); font-weight: 500; }
.hidden { display: none !important; }

.btn-start {
  margin-top: 4px;
  width: 100%;
  background: var(--uasd-blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .15s;
  -webkit-appearance: none;
}
.btn-start .arrow {
  font-size: 18px;
  transition: transform .2s;
}
.btn-start:hover { background: var(--uasd-blue-mid); transform: translateY(-1px); }
.btn-start:hover .arrow { transform: translateX(4px); }

.notice {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
  background: var(--uasd-blue-pale);
  border: 1px solid var(--uasd-blue-lite);
  border-radius: 8px;
  padding: 10px 14px;
}
.notice strong { color: var(--uasd-blue); }

/* ════ EXAM TOPBAR ════ */
.exam-topbar {
  position: sticky;
  top: 0; z-index: 100;
  background: linear-gradient(90deg, var(--uasd-blue-dark) 0%, var(--uasd-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  gap: 10px;
  box-shadow: 0 3px 16px rgba(0,0,0,.25);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.topbar-logo {
  width: 30px; height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.topbar-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(10px, 2vw, 12px);
  color: rgba(255,255,255,.85);
  font-weight: 500;
  letter-spacing: .5px;
  white-space: nowrap;
}

.topbar-counter {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(11px, 2.3vw, 13px);
  font-weight: 600;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 8px;
  padding: 5px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(12px, 2.8vw, 15px);
  font-weight: 500;
  color: #fff;
  letter-spacing: 1.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.timer-box.warning {
  background: rgba(192,57,43,.4);
  border-color: #ff7b7b;
  animation: blink 1s infinite;
}

/* Progress */
.progress-track {
  height: 4px;
  background: rgba(0,48,135,.12);
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--uasd-gold), var(--uasd-blue-mid));
  transition: width .4s ease;
}

/* ════ QUESTION STAGE ════ */
.stage {
  display: flex;
  justify-content: center;
  padding: clamp(24px, 4vw, 44px) 16px 70px;
  min-height: calc(100vh - 84px);
}

.q-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 700px;
  overflow: hidden;
  animation: fadeUp .3s ease both;
  border: 1px solid rgba(0,48,135,.08);
}

.q-card::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--uasd-blue), var(--uasd-blue-mid) 60%, var(--uasd-gold));
}

.q-card-inner {
  padding: clamp(24px, 5vw, 44px) clamp(20px, 5vw, 44px);
}

.q-type-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--uasd-blue);
  background: var(--uasd-blue-pale);
  border: 1px solid var(--uasd-blue-lite);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.q-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(16px, 3vw, 20px);
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 26px;
  font-weight: 700;
}

/* ── Options ── */
.q-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 28px;
}

.opt-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--uasd-blue-pale);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: clamp(11px, 2vw, 14px) clamp(14px, 3vw, 18px);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(13px, 2.5vw, 15px);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color .15s, background .15s, transform .1s;
  -webkit-appearance: none;
  line-height: 1.45;
}
.opt-btn:hover {
  border-color: var(--uasd-blue-mid);
  background: var(--uasd-blue-lite);
  transform: translateX(3px);
}
.opt-btn.selected {
  border-color: var(--uasd-blue);
  background: var(--uasd-blue-lite);
  font-weight: 600;
  color: var(--uasd-blue-dark);
}

.opt-indicator {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid #9daecb;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
  position: relative;
}
.opt-btn.selected .opt-indicator {
  background: var(--uasd-blue);
  border-color: var(--uasd-blue);
}
.opt-indicator::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  display: none;
}
.opt-btn.selected .opt-indicator::after { display: block; }

/* Multi checkbox */
.opt-btn.multi .opt-indicator { border-radius: 5px; }
.opt-btn.multi.selected .opt-indicator::after {
  content: '✓';
  font-size: 11px;
  font-weight: 900;
  background: transparent;
  color: #fff;
  width: auto; height: auto;
}

/* ── VF row ── */
.vf-row {
  flex-direction: row !important;
  gap: 14px;
}
.vf-btn {
  flex: 1;
  justify-content: center;
  font-size: clamp(14px, 3vw, 16px);
  font-weight: 700;
  padding: clamp(15px, 3vw, 20px) 10px;
  border-radius: 12px;
  min-width: 0;
}
.opt-btn.vbtn:hover,
.opt-btn.vbtn.selected {
  border-color: var(--correct);
  background: #edfbf2;
  color: var(--correct);
  transform: none;
}
.opt-btn.vbtn.selected .opt-indicator {
  background: var(--correct);
  border-color: var(--correct);
}
.opt-btn.fbtn:hover,
.opt-btn.fbtn.selected {
  border-color: var(--wrong);
  background: #fef0ef;
  color: var(--wrong);
  transform: none;
}
.opt-btn.fbtn.selected .opt-indicator {
  background: var(--wrong);
  border-color: var(--wrong);
}

/* ── Match ── */
.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin-bottom: 24px;
}
.match-col { display: flex; flex-direction: column; gap: 8px; }
.match-col-header {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--uasd-blue);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--uasd-blue);
  margin-bottom: 2px;
}
.match-term {
  background: var(--uasd-blue-pale);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: clamp(12px, 2.2vw, 14px);
  font-weight: 600;
  color: var(--uasd-blue-dark);
  min-height: 46px;
  display: flex;
  align-items: center;
  border-left: 3px solid var(--uasd-blue);
}
.match-select {
  -webkit-appearance: none;
  appearance: none;
  background: var(--uasd-blue-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23003087' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 32px 10px 13px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(11px, 2vw, 13px);
  color: var(--text);
  cursor: pointer;
  min-height: 46px;
  width: 100%;
  transition: border-color .2s;
}
.match-select:focus  { outline: none; border-color: var(--uasd-blue-mid); }
.match-select.answered { border-color: var(--uasd-blue); background-color: var(--uasd-blue-lite); }

.q-footer { display: flex; justify-content: flex-end; }

.btn-next {
  background: var(--uasd-blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background .2s, transform .15s, opacity .2s;
}
.btn-next span { transition: transform .2s; }
.btn-next:hover:not(:disabled) { background: var(--uasd-blue-mid); transform: translateY(-1px); }
.btn-next:hover:not(:disabled) span { transform: translateX(4px); }
.btn-next:disabled { opacity: .35; cursor: not-allowed; }

/* ════ RESULTS ════ */
.results-wrap {
  display: flex;
  justify-content: center;
  padding: 36px 16px 60px;
}

.results-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 5vw, 52px) clamp(24px, 6vw, 56px);
  width: 100%;
  max-width: 700px;
  overflow: hidden;
  position: relative;
  animation: fadeUp .5s ease both;
  border: 1px solid rgba(0,48,135,.07);
}

.results-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--uasd-blue-dark), var(--uasd-blue-mid) 50%, var(--uasd-gold));
}
.results-card > * { margin-top: 0; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(14px, 3vw, 18px);
  color: var(--uasd-blue);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-title.centered { text-align: center; }

/* Info grid */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--uasd-blue-pale);
  border: 1px solid var(--uasd-blue-lite);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.info-item {
  display: flex;
  gap: 12px;
  font-size: clamp(12px, 2.3vw, 14px);
  flex-wrap: wrap;
  align-items: flex-start;
}
.info-lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  color: var(--uasd-blue);
  min-width: 88px;
  font-size: clamp(10px, 1.8vw, 11.5px);
  text-transform: uppercase;
  letter-spacing: .6px;
  padding-top: 1px;
  flex-shrink: 0;
}
.info-val { color: var(--text); font-weight: 500; }

/* Score ring */
.score-section { text-align: center; margin: 26px 0 22px; }
.score-ring {
  width: clamp(100px, 18vw, 128px);
  height: clamp(100px, 18vw, 128px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 14px;
}
.ring-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: var(--uasd-blue-lite);
  stroke-width: 8;
}
.ring-arc {
  fill: none;
  stroke: var(--uasd-blue);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1s ease, stroke .5s;
}
.score-ring.high .ring-arc { stroke: var(--correct); }
.score-ring.mid  .ring-arc { stroke: var(--uasd-gold); }
.score-ring.low  .ring-arc { stroke: var(--wrong); }

.ring-pct {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 900;
  color: var(--uasd-blue);
  position: relative;
  z-index: 1;
}
.score-ring.high .ring-pct { color: var(--correct); }
.score-ring.mid  .ring-pct { color: #8a6400; }
.score-ring.low  .ring-pct { color: var(--wrong); }

.score-msg {
  display: inline-block;
  font-size: clamp(13px, 2.3vw, 15px);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--uasd-blue-pale);
}

/* Tally */
.tally-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.tally {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: 12px;
  padding: clamp(12px, 2vw, 18px) 8px;
}
.tally-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 900;
  line-height: 1;
}
.tally small {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(9px, 1.5vw, 10.5px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.tally.correct { background: var(--correct-bg); color: var(--correct); }
.tally.wrong   { background: var(--wrong-bg);   color: var(--wrong); }
.tally.skipped { background: var(--skip-bg);    color: var(--skip-text); }

/* Review list */
.review-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.review-item {
  border-radius: 9px;
  padding: 12px 16px;
  font-size: clamp(12px, 2.3vw, 14px);
  line-height: 1.55;
  border-left: 4px solid;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  animation: slideIn .3s ease both;
}
.review-item.correct { background: var(--correct-bg); border-color: var(--correct); }
.review-item.wrong   { background: var(--wrong-bg);   border-color: var(--wrong); }
.review-item.skipped { background: var(--skip-bg);    border-color: #c9a800; }

.ri-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.correct .ri-status { background: var(--correct); color: #fff; }
.wrong   .ri-status { background: var(--wrong);   color: #fff; }
.skipped .ri-status { background: #c9a800;        color: #fff; }

.ri-num { font-weight: 700; flex-shrink: 0; }

/* ══ GROUP BLOCK ══ */
.group-block {
  background: linear-gradient(135deg, var(--uasd-blue-dark) 0%, var(--uasd-blue) 100%);
  border-radius: 14px;
  padding: clamp(18px, 4vw, 28px) clamp(16px, 4vw, 28px);
  color: #fff;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}
.group-block::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(200,168,75,.12);
}
.group-block::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}

.group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.group-icon {
  width: 44px; height: 44px;
  background: rgba(200,168,75,.25);
  border: 2px solid var(--uasd-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.group-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(14px, 3vw, 18px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.group-course {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(10px, 1.8vw, 11.5px);
  color: var(--uasd-gold);
  margin-top: 3px;
  letter-spacing: .5px;
}

.group-members {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.group-members li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 10px 14px;
  transition: background .15s;
}
.group-members li:hover { background: rgba(255,255,255,.15); }
.member-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--uasd-gold);
  min-width: 22px;
}
.member-name {
  font-weight: 600;
  font-size: clamp(13px, 2.5vw, 15px);
  flex: 1;
  color: #fff;
}
.member-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(10px, 1.8vw, 12px);
  color: rgba(255,255,255,.65);
  letter-spacing: .5px;
}

/* ── Result Actions ── */
.result-actions {
  display: flex;
  gap: 12px;
}
.btn-primary-action, .btn-outline-action {
  flex: 1;
  border-radius: 10px;
  padding: 13px 20px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background .2s, transform .15s;
  -webkit-appearance: none;
}
.btn-primary-action {
  background: var(--uasd-blue);
  color: #fff;
  border: none;
}
.btn-primary-action:hover { background: var(--uasd-blue-mid); transform: translateY(-1px); }
.btn-outline-action {
  background: transparent;
  color: var(--uasd-blue);
  border: 2px solid var(--uasd-blue);
}
.btn-outline-action:hover { background: var(--uasd-blue-pale); }

/* ════ PRINT ════ */
@media print {
  body { background: #fff; }
  body::before, body::after { display: none; }
  .exam-topbar, .progress-track, .result-actions { display: none !important; }
  .results-card { box-shadow: none; border: none; padding: 16px; }
  .review-item { break-inside: avoid; }
  .group-block { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ════ RESPONSIVE ════ */
@media (max-width: 640px) {
  .intro-card, .results-card { padding: 28px 18px; }
  .topbar-label { display: none; }
  .vf-row { flex-direction: row !important; }
  .match-grid { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column; }
}
@media (max-width: 420px) {
  .tally-row { grid-template-columns: 1fr; }
  .vf-btn span:last-child { font-size: 13px; }
}