:root {
  --bg-dark: #070b19;
  --bg-card: #10172a;
  --bg-card-hover: #18233c;
  --bg-glass: rgba(16, 23, 42, 0.85);
  --primary: #00f2fe;
  --primary-dark: #00b4d8;
  --secondary: #7b2cbf;
  --accent: #ff007f;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: rgba(0, 242, 254, 0.25);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.18);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-mono: 'Consolas', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(123, 44, 191, 0.18) 0%, transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(0, 242, 254, 0.14) 0%, transparent 40%),
    linear-gradient(rgba(0, 242, 254, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* TOP HUD */
.hud-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hud-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hud-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-glow);
}

.hud-title h1 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hud-title span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.hud-stats {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hud-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.hud-pill .label {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hud-pill .value {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
}

.timer-pill {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.1);
}

.timer-pill .value {
  color: var(--success);
  font-size: 1.15rem;
  letter-spacing: 1px;
}

.timer-pill.warning {
  border-color: var(--warning);
  background: rgba(245, 158, 11, 0.15);
  animation: pulse-warn 1.5s infinite;
}

.timer-pill.warning .value {
  color: var(--warning);
}

.timer-pill.danger {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.2);
  animation: pulse-danger 0.8s infinite;
}

.timer-pill.danger .value {
  color: var(--danger);
}

@keyframes pulse-warn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

@keyframes pulse-danger {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

/* STEPPER / ROADMAP BAR */
.roadmap-bar {
  max-width: 1180px;
  width: 100%;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
}

.roadmap-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
}

.roadmap-node {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.55;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.roadmap-node.active {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.14), rgba(16, 23, 42, 0.95));
}

.roadmap-node.completed {
  opacity: 0.9;
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  cursor: pointer;
}

.roadmap-node .node-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.roadmap-node.active .node-num {
  background: var(--primary);
  color: #000;
}

.roadmap-node.completed .node-num {
  background: var(--success);
  color: #000;
}

.roadmap-node .node-info {
  overflow: hidden;
}

.roadmap-node .node-title {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roadmap-node .node-pts {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* MAIN CONTAINER */
.main-content {
  max-width: 1100px;
  width: 100%;
  margin: 1.25rem auto 3rem;
  padding: 0 1.5rem;
  flex: 1;
}

/* CARDS & PANELS */
.cyber-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.35s ease;
}

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

.cyber-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--primary);
  border: 1px solid rgba(0, 242, 254, 0.35);
  margin-bottom: 0.75rem;
}

.mission-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.mission-header h2 {
  font-size: 1.65rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.mission-header p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* AGENT MENTOR DIALOG */
.mentor-box {
  background: linear-gradient(90deg, rgba(123, 44, 191, 0.22), rgba(0, 242, 254, 0.1));
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mentor-avatar {
  font-size: 2.2rem;
  background: rgba(0, 0, 0, 0.35);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--primary);
}

.mentor-text {
  font-size: 0.95rem;
}

.mentor-text strong {
  color: var(--primary);
}

/* WELCOME SCREEN */
.welcome-hero {
  text-align: center;
  max-width: 760px;
  margin: 1rem auto;
}

.welcome-hero h2 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, #fff, var(--primary), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  text-align: left;
}

.feature-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.feature-item h4 {
  color: var(--primary);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.avatar-selector {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap;
}

.avatar-option {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.15);
  font-size: 1.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-option:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.avatar-option.selected {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.18);
  box-shadow: var(--shadow-glow);
  transform: scale(1.08);
}

.input-group {
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

.cyber-input {
  width: 100%;
  padding: 0.95rem 1.2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background: rgba(7, 11, 25, 0.9);
  color: #fff;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cyber-input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #051020;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* INTERACTIVE GAME ELEMENTS */
.subgame-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.subgame-tab {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.subgame-tab.active {
  background: rgba(0, 242, 254, 0.18);
  color: var(--primary);
  border-color: var(--primary);
}

.subgame-tab.done {
  background: rgba(16, 185, 129, 0.18);
  color: var(--success);
  border-color: var(--success);
}

/* MISSION 1: LAYER CLASSIFIER */
.threat-arena {
  background: rgba(7, 11, 25, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.incoming-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  max-width: 650px;
  margin: 0.75rem auto 1.5rem;
  box-shadow: var(--shadow-glow);
}

.incoming-card .item-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.incoming-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.incoming-card p {
  color: #cbd5e1;
  font-size: 0.98rem;
}

.layer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.85rem;
}

.layer-btn {
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.layer-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.layer-btn .layer-icon {
  font-size: 1.8rem;
}

.layer-btn .layer-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary);
}

.layer-btn .layer-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* MISSION 2: PASSWORD FORGE & MFA */
.forge-panel {
  background: rgba(7, 11, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.strength-meter {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.75rem 0 1rem;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.criteria-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}

.criteria-item {
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.criteria-item.met {
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.4);
}

/* MATCHING / PAIRS GAME */
.match-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1rem 0;
}

.match-card {
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.92rem;
}

.match-card:hover:not(.matched) {
  border-color: var(--primary);
}

.match-card.selected {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.16);
  box-shadow: var(--shadow-glow);
}

.match-card.matched {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.15);
  opacity: 0.75;
  cursor: default;
}

/* MISSION 3: BESTIARY DETECTIVE */
.case-terminal {
  background: #050811;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 0.82rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.suspects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.suspect-card {
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.suspect-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.suspect-card h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.suspect-card span {
  font-size: 0.78rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.4rem;
}

/* MISSION 4: PHONE SIMULATOR & DIGITAL FOOTPRINT */
.phone-mockup {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  background: #0b1325;
  border: 3px solid #334155;
  border-radius: 26px;
  padding: 1.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-bubble {
  background: #1e293b;
  border-radius: 14px 14px 14px 4px;
  padding: 1rem;
  margin-bottom: 1.1rem;
  border-left: 4px solid var(--warning);
}

.chat-sender {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--warning);
  margin-bottom: 0.35rem;
}

/* MISSION 5: CREATIVE COMMONS BUILDER */
.cc-builder {
  background: rgba(7, 11, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.cc-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1.2rem 0;
}

.cc-toggle {
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.cc-toggle.active {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.16);
  box-shadow: var(--shadow-glow);
}

.cc-toggle .cc-code {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
}

.cc-preview-badge {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  margin: 0.5rem 0 1rem;
}

/* QUIZ / OPTIONS */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.quiz-option {
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  text-align: left;
  color: var(--text-main);
  font-size: 0.96rem;
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-option:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.quiz-option.correct {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.2);
}

.quiz-option.wrong {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.2);
}

/* FEEDBACK BANNER */
.feedback-banner {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: fadeIn 0.25s ease;
}

.feedback-banner.success {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid var(--success);
  color: #a7f3d0;
}

.feedback-banner.error {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid var(--danger);
  color: #fecaca;
}

/* MANUAL MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.manual-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.manual-section h4 {
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.manual-section ul {
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* =========================================================================
   CERTIFICADO FINAL DE ALTA LEGIBILIDAD (FONDO BLANCO EN PANTALLA E IMPRESIÓN)
   ========================================================================= */
.certificate-box {
  background: #ffffff;
  color: #0f172a;
  border: 4px solid #0284c7;
  outline: 2px solid #cbd5e1;
  outline-offset: -10px;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 1rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.cert-status-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #0284c7;
  margin-bottom: 0.75rem;
}

.cert-heading {
  font-size: 1.9rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.cert-player-name {
  color: #0369a1;
  text-decoration: underline;
  text-decoration-color: #38bdf8;
  text-underline-offset: 4px;
}

.cert-subtitle {
  color: #475569;
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.cert-scores-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}

.cert-score-card {
  background: #f8fafc;
  border: 2px solid #0284c7;
  border-radius: var(--radius-md);
  padding: 1rem 1.75rem;
  min-width: 220px;
}

.cert-score-card.grade-card {
  background: #f0fdf4;
  border-color: #15803d;
}

.cert-score-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #334155;
  letter-spacing: 0.5px;
}

.score-big {
  font-size: 2.75rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #0369a1;
  line-height: 1.15;
  margin-top: 0.2rem;
}

.grade-big {
  font-size: 2.75rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #15803d;
  line-height: 1.15;
  margin-top: 0.2rem;
}

.cert-rank-title {
  font-weight: 800;
  font-size: 1.2rem;
  color: #0f172a;
  margin-bottom: 0.3rem;
}

.cert-rank-msg {
  color: #334155;
  font-size: 0.96rem;
  max-width: 620px;
  margin: 0 auto 1.5rem;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0;
  text-align: left;
}

.breakdown-item {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.breakdown-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
}

.breakdown-val {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0.2rem;
}

.breakdown-val.accent-blue { color: #0369a1; }
.breakdown-val.accent-green { color: #15803d; }
.breakdown-val.accent-purple { color: #6d28d9; }

.certificate-box .btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
  border: 2px solid #64748b;
}

.certificate-box .btn-secondary:hover {
  background: #e2e8f0;
  border-color: #0f172a;
}

/* FOOTER */
.cyber-footer {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 25, 0.9);
}

@media (max-width: 768px) {
  .roadmap-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .match-columns {
    grid-template-columns: 1fr;
  }
  .cyber-card {
    padding: 1.25rem;
  }
}

@media print {
  .hud-header, .roadmap-bar, .no-print, .cyber-footer {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #0f172a !important;
  }
  .main-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .cyber-card {
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    padding: 0 !important;
  }
  .certificate-box {
    box-shadow: none !important;
    border: 3px solid #0f172a !important;
    background: #ffffff !important;
    color: #0f172a !important;
  }
}
