.aqg-quiz {
  max-width: 680px;
  margin: 0 auto;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: #172033;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  overflow: hidden;
}
.aqg-screen { padding: 32px 28px 36px; }
.aqg-hidden { display: none !important; }

/* Start screen */
.aqg-start-head { text-align: center; margin-bottom: 20px; }
.aqg-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 10px;
}
.aqg-sub {
  font-size: 15px;
  color: #687386;
  line-height: 1.55;
}

/* Hide "Text Quiz" / "Image Quiz" badge completely */
.aqg-type-badge { display: none !important; }

/* Cover / result / question images – true 16:9 like psychology */
.aqg-image {
  width: 100%;
  margin: 0 0 20px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f3f7;
  border: 1px solid #e1e5ec;
  aspect-ratio: 16 / 9;
  height: auto;
}
.aqg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.aqg-image.start {
  margin-bottom: 28px;
}

/* Buttons */
.aqg-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 54px;
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  background: #2271b1;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s;
  line-height: 54px;
  text-align: center;
}
.aqg-btn:hover { background: #135e96; }

/* Quiz screen – more breathing room */
.aqg-progress {
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  margin-bottom: 48px;
  overflow: hidden;
}
.aqg-progress div {
  height: 100%;
  width: 0;
  background: #2271b1;
  border-radius: 99px;
  transition: width .3s ease;
}
.aqg-mid {
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.aqg-question {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
  text-align: center;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aqg-answers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
}
.aqg-answer {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 52px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #334155;
  background: #f9fafb;
  border: 1px solid #e1e5ec;
  border-radius: 11px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.aqg-answer:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}
.aqg-answers-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.aqg-answer-has-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  text-align: center;
}
.aqg-answer-has-img img {
  max-width: 100%;
  max-height: 140px;
  border-radius: 8px;
  object-fit: contain;
  margin-bottom: 8px;
}
.aqg-answer-label {
  font-size: 15px;
  font-weight: 700;
}

/* Result screen – centered score block + larger image */
.aqg-screen[data-s="result"] {
  text-align: center;
}
.aqg-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #1e40af;
  background: #eff6ff;
  padding: 5px 12px;
  border-radius: 99px;
  margin: 0 auto 12px;
}
.aqg-score-line {
  font-size: 18px;
  font-weight: 700;
  color: #172033;
  margin: 0 auto 10px;
  text-align: center;
}
.aqg-result-title {
  font-size: 27px;
  font-weight: 900;
  margin: 0 auto 18px;
  line-height: 1.3;
  text-align: center;
}
.aqg-screen[data-s="result"] .aqg-image {
  margin: 0 auto 20px;
}
.aqg-result-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: #4b5563;
  margin: 0 auto 24px;
  text-align: left;
  max-width: 100%;
}

/* SNS share buttons – platform colors */
.aqg-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.aqg-share button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  transition: transform .15s, filter .15s;
}
.aqg-share button:hover {
  transform: translateY(-1px);
  filter: brightness(0.94);
}
.aqg-share button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.aqg-share .facebook { background: #1877f2; }
.aqg-share .x { background: #111111; }
.aqg-share .reddit { background: #ff4500; }
.aqg-share .linkedin { background: #0a66c2; }
.aqg-share .whatsapp { background: #25d366; }
.aqg-share .copy { background: #64748b; }

/* Carousel */
.aqg-carousel {
  max-width: 1100px;
  margin: 40px auto 20px;
  padding: 0 12px;
}
.aqg-carousel-inner { }
.aqg-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.aqg-carousel-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}
.aqg-carousel-nav { display: flex; gap: 6px; }
.aqg-carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #c3c4c7;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.aqg-carousel-btn:disabled { opacity: .35; cursor: default; }
.aqg-carousel-track-wrap { overflow: hidden; }
.aqg-carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.aqg-carousel-track::-webkit-scrollbar { height: 6px; }
.aqg-carousel-track::-webkit-scrollbar-thumb { background: #c3c4c7; border-radius: 3px; }
.aqg-carousel-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s;
}
.aqg-carousel-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.aqg-carousel-thumb {
  position: relative;
  height: 130px;
  background: #f0f0f1;
  overflow: hidden;
}
.aqg-carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aqg-carousel-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-weight: 700;
  color: #a0a5aa;
  letter-spacing: .05em;
}
.aqg-type-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0,0,0,.65);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
}
.aqg-carousel-body { padding: 12px 14px; }
.aqg-carousel-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}
.aqg-carousel-card-desc {
  font-size: 12px;
  color: #646970;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .aqg-screen { padding: 24px 18px 28px; }
  .aqg-title { font-size: 22px; }
  .aqg-sub { font-size: 14px; }
  .aqg-question { font-size: 17px; min-height: 0; }
  .aqg-answer { font-size: 15px; min-height: 48px; padding: 12px 14px; }
  .aqg-result-title { font-size: 22px; }
  .aqg-result-desc { font-size: 13.5px; }
  .aqg-btn { height: 48px; font-size: 16px; line-height: 48px; }
  .aqg-answers-images { grid-template-columns: 1fr; }
  .aqg-carousel-card { flex: 0 0 180px; }
  .aqg-progress { margin-bottom: 36px; }
  .aqg-mid { gap: 32px; }
}
