* {
      box-sizing: border-box;
    }
    body {
      font-family: 'Montserrat', sans-serif;
      background: linear-gradient(to right, #e0eafc, #cfdef3);
      padding: 20px;
      margin: 0;
    }
    h1 {
      text-align: center;
      color: #333;
      font-size: 2.5rem;
      margin-bottom: 20px;
      animation: fadeInDown 1s ease-out;
    }
    .container {
      max-width: 960px;
      margin: auto;
      background: #fff;
      padding: 25px;
      border-radius: 16px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.1);
      animation: fadeInUp 1s ease-in;
    }
    .input-group {
      margin-bottom: 20px;
    }
    label {
      font-weight: 700;
      display: block;
      margin-bottom: 5px;
    }
    input {
      width: 100%;
      padding: 10px;
      border-radius: 6px;
      border: 1px solid #ccc;
    }
    button {
      width: 100%;
      padding: 14px;
      background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 1.1rem;
      font-weight: bold;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      transition: background 0.3s ease;
    }
    button:hover {
      background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
    }
    .results {
      margin-top: 30px;
      animation: fadeIn 1s ease-in-out;
    }
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 18px;
      margin-bottom: 20px;
    }
    .card {
      background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
      border: 2px solid #6a11cb;
      padding: 20px;
      border-radius: 16px;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }
    .card .number-circle {
      background: linear-gradient(135deg, #2575fc, #6a11cb);
      color: white;
      font-size: 1.8rem;
      width: 60px;
      height: 60px;
      line-height: 60px;
      border-radius: 50%;
      font-weight: bold;
      margin-bottom: 10px;
      display: inline-block;
    }
    .card strong {
      display: block;
      font-size: 1.1rem;
      margin-bottom: 5px;
      color: #4e54c8;
    }
    .card i {
      font-size: 1.4rem;
      margin-bottom: 5px;
      color: #6a11cb;
    }
    .grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 10px;
    }
    .grid div {
      text-align: center;
      padding: 15px;
      border-radius: 5px;
      font-weight: bold;
      color: white;
      transition: transform 0.3s ease;
    }
    .grid div.present {
      background: #4caf50;
    }
    .grid div.missing {
      background: #e53935;
      animation: blink 1s step-start infinite;
    }
    @keyframes blink {
      50% { opacity: 0.6; }
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeInDown {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @media (max-width: 600px) {
      h1 {
        font-size: 1.8rem;
      }
      button {
        font-size: 1rem;
      }
    }