* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}

.iq-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.25rem;
}

.iq-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.iq-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  color: #94a3b8;
}

.iq-title {
  margin: 0.4rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.iq-score {
  background: #1e293b;
  border-radius: 12px;
  padding: 0.5rem 0.9rem;
  text-align: right;
  min-width: 90px;
}

.iq-score-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.iq-score-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.iq-main {
  display: grid;
  gap: 1.25rem;
}

.iq-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.iq-progress {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #cbd5f5;
  margin-bottom: 0.75rem;
}

.iq-image-wrap {
  background: #0b1220;
  border-radius: 14px;
  padding: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

.iq-image-wrap img {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.iq-question {
  margin: 0.9rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.iq-options {
  display: grid;
  gap: 0.6rem;
}

.iq-option {
  background: #1f2937;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.iq-option:hover {
  background: #273449;
}

.iq-option.correct {
  background: #16a34a;
  border-color: #16a34a;
}

.iq-option.wrong {
  background: #ef4444;
  border-color: #ef4444;
}

.iq-feedback {
  min-height: 1.2rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #93c5fd;
}

.iq-actions {
  margin-top: 0.8rem;
  display: flex;
  justify-content: flex-end;
}

.iq-btn {
  background: #1f2937;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.iq-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.iq-btn-premium {
  background: #062a4d;
  border-color: #062a4d;
}

.iq-results {
  display: grid;
  gap: 0.8rem;
}

.iq-results-title {
  margin: 0;
  font-size: 1.2rem;
}

.iq-results-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1f2937;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}

.iq-credits {
  border-top: 1px solid #1f2937;
  padding-top: 0.6rem;
}

.iq-credits-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.iq-credits ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.8rem;
  color: #cbd5f5;
}

.hidden {
  display: none;
}

@media (min-width: 768px) {
  .iq-shell {
    padding: 2rem;
  }
  .iq-title {
    font-size: 2rem;
  }
}

.iq-best-score {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}

.iq-progress-container {
  background: #1f2937;
  height: 6px;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.iq-progress-bar {
  background: #2563eb;
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.iq-btn-secondary {
  background: #4b5563;
  border-color: #4b5563;
}

.iq-result-actions {
  display: flex;
  gap: 10px;
}

.iq-result-actions button {
    flex: 1;
}

.iq-best-score {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}

.iq-progress-container {
  background: #1f2937;
  height: 6px;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.iq-progress-bar {
  background: #2563eb;
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.iq-btn-secondary {
  background: #4b5563;
  border-color: #4b5563;
}

.iq-result-actions {
  display: flex;
  gap: 10px;
}

.iq-result-actions button {
    flex: 1;
}
