:root {
  --viaa-purple: #5E2D8C;
  --viaa-purple-hover: #4A2170;
  --viaa-purple-dark: #221038;
  --viaa-purple-deep: #180A29;
  --viaa-purple-soft: #F5EFFA;
  --viaa-red: #E52521;
  --viaa-red-hover: #C81E1A;
  --viaa-gold: #FACC15;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #FAF8FC;
  -webkit-tap-highlight-color: transparent;
}

.viaa-gradient-bar {
  background: linear-gradient(90deg, #221038 0%, #3A1A5E 65%, #5E2D8C 100%);
}

.viaa-projector-bg {
  background: radial-gradient(circle at top right, #4A2170 0%, #221038 52%, #180A29 100%);
}

.protected-exam-zone {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.protected-exam-zone input {
  -webkit-user-select: text;
  user-select: text;
}

.blur-protected {
  filter: blur(18px);
  pointer-events: none;
}

.rank-flash {
  animation: flashRow 0.9s ease-out;
}

@keyframes flashRow {
  0% { background-color: rgba(229, 37, 33, 0.24); }
  100% { background-color: transparent; }
}

.score-pop {
  animation: popScore 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes popScore {
  0% { transform: scale(1); }
  45% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@media print {
  body.no-print * {
    display: none !important;
    visibility: hidden !important;
  }
  body.no-print::after {
    content: "Nội dung bài thi được bảo vệ — Không cho phép in hoặc lưu PDF.";
    display: block !important;
    visibility: visible !important;
    padding: 40px;
    font-size: 18px;
    font-weight: bold;
    color: #E52521;
    text-align: center;
  }
}
