* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  min-height: 100vh;
  padding: 0;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
  background: linear-gradient(90deg, #ff4b5c, #1e3c72);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.logo-slot {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  border: 3px solid white;
  flex-shrink: 0;
}

.logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0;
}

.container {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 30px 20px;
  margin: 20px;
  text-align: center;
  max-width: 700px;
  width: calc(100% - 40px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
}

#progress-bar {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  height: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

#progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff4b5c, #4facfe);
  transition: width 0.3s ease;
}

#question {
  font-size: clamp(1.1rem, 4vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.5;
  word-wrap: break-word;
}

#options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.option-btn {
  padding: 14px 16px;
  background: linear-gradient(90deg, #ff4b5c, #4facfe);
  color: white;
  font-weight: 700;
  font-size: clamp(0.95rem, 3vw, 1.4rem);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  word-wrap: break-word;
}

.option-btn:hover {
  transform: scale(1.03);
  box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.3);
}

.option-btn:active {
  transform: scale(0.98);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.controls button {
  margin: 5px;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  font-weight: bold;
  font-size: clamp(1rem, 3vw, 1.3rem);
  background: white;
  color: #1e3c72;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
}

.controls button:hover {
  background: #ff4b5c;
  color: white;
  transform: scale(1.05);
}

.controls button:active {
  transform: scale(0.98);
}

#feedback {
  margin-top: 20px;
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  font-weight: bold;
  word-wrap: break-word;
}

/* Certificate Styles */
.certificate {
  display: none;
  background: linear-gradient(135deg, #fffbea, #fff8dc);
  color: #333;
  padding: 24px;
  border-radius: 16px;
  margin-top: 20px;
  border: 4px solid #ffd166;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.certificate h2 {
  color: #ff9900;
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
}

.certificate p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  margin: 8px 0;
}

.claim-btn {
  padding: 12px 20px;
  background: linear-gradient(90deg, #ff4b5c, #ff9900);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.claim-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 75, 92, 0.4);
}

footer {
  margin-top: auto;
  padding: 15px;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  opacity: 0.9;
  text-align: center;
}

/* Tablet */
@media (max-width: 768px) {
  header {
    padding: 16px;
  }
  
  .logo-slot {
    width: 70px;
    height: 70px;
  }
  
  .container {
    padding: 24px 16px;
    margin: 16px;
    width: calc(100% - 32px);
  }
  
  #options {
    gap: 10px;
  }
  
  .option-btn {
    padding: 12px 14px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  header {
    padding: 14px 12px;
  }
  
  .logo-slot {
    width: 60px;
    height: 60px;
  }
  
  .container {
    padding: 20px 14px;
    margin: 12px;
    width: calc(100% - 24px);
    border-radius: 16px;
  }
  
  #progress-bar {
    height: 10px;
    margin-bottom: 16px;
  }
  
  #options {
    gap: 8px;
  }
  
  .option-btn {
    padding: 12px;
  }
  
  .controls button {
    padding: 10px 16px;
    width: 100%;
    max-width: 200px;
  }
  
  .certificate {
    padding: 18px;
  }
  
  footer {
    padding: 12px;
  }
}