*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);

  min-height: 100vh;
  padding: 16px;
  overflow-x: hidden;
}

.result-card {
  background: #fff;
  width: min(100%, 420px);

  border-radius: 18px;
  padding: 24px;
  text-align: center;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  animation: pop 0.4s ease;

  margin: 0 auto;
}

.top {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #111;
}

.info {
  text-align: left;
  margin-top: 10px;
}

.info p {
  margin: 8px 0;
  font-size: 14px;
  color: #444;
}

.marks {
  margin: 26px 0 18px;
}

.score {
  font-size: 44px;
  font-weight: 800;
  color: #16a34a;
  line-height: 1;
}

.total {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.msg {
  margin-top: 12px;
  font-size: 13px;
  color: #555;
}

/* Mobile fine-tune */
@media (max-width: 480px) {
  .result-card {
    padding: 20px;
    border-radius: 14px;
  }

  .top {
    font-size: 20px;
  }
  .score {
    font-size: 38px;
  }
}

@keyframes pop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
