:root {
  --mp-navy: #1A2238;
  --mp-navy-2: #2A375A;
  --mp-orange: #F39200;
  --mp-orange-2: #FFAB2E;
  --mp-bg: #FAFAFA;
  --mp-cream: #FFF8EE;
  --mp-ink: #0F1626;
}

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--mp-bg);
  color: var(--mp-ink);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: 'Outfit', sans-serif; letter-spacing: -0.02em; }
.font-body { font-family: 'IBM Plex Sans', sans-serif; }
.font-mono-mp { font-family: 'JetBrains Mono', monospace; }
.font-cert { font-family: 'Cormorant Garamond', serif; }

::selection { background: var(--mp-orange); color: var(--mp-navy); }

/* MP Logo lockup */
.mp-logo-mark {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: center;
}
.mp-logo-mark .m-letter { color: #F39200; }
.mp-logo-mark .p-letter { color: #1A2238; margin-left: -4px; }

/* Typing test character classes */
.tt-char { transition: color 80ms ease, background 80ms ease; }
.tt-char-correct { color: #1A2238; }
.tt-char-incorrect { color: #fff; background: rgba(239, 68, 68, 0.85); border-radius: 2px; }
.tt-char-pending { color: #B6B6B6; }
.tt-char-active { position: relative; }
.tt-char-active::before {
  content: ''; position: absolute; left: -2px; top: 0; bottom: 0;
  width: 2px; background: #F39200; animation: tt-blink 1s step-end infinite;
}
@keyframes tt-blink { 50% { opacity: 0; } }

.grain { position: relative; }
.grain::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.04;
}

.test-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -20px rgba(26, 34, 56, 0.18);
  border-color: rgba(243, 146, 0, 0.5);
}

.mouse-target {
  transition: transform 100ms ease;
  cursor: crosshair;
}
.mouse-target:hover { transform: scale(1.05); }
.pulse-glow {
  box-shadow: 0 0 0 0 rgba(243, 146, 0, 0.6);
  animation: pulseGlow 1.6s infinite;
}
@keyframes pulseGlow {
  0%   { box-shadow: 0 0 0 0   rgba(243, 146, 0, 0.55); }
  70%  { box-shadow: 0 0 0 18px rgba(243, 146, 0, 0); }
  100% { box-shadow: 0 0 0 0   rgba(243, 146, 0, 0); }
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}

input:focus, textarea:focus, select:focus, button:focus { outline: none; }
