/* Quiz postcard: flat 4:5 Stasher-branded artwork that exports cleanly to PNG */

.quiz-section .postcard {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  min-height: 0;
  background: linear-gradient(135deg, var(--brand-navy-deep) 0%, var(--brand-navy) 60%, var(--scale-1) 100%);
  border-radius: 24px;
  padding: 36px 32px;
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}

.quiz-section .postcard .pc-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

.quiz-section .postcard .pc-city {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 12px 0 0;
  color: #fff;
}

.quiz-section .postcard .pc-country {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 4px 0 0;
}

.quiz-section .postcard .pc-score {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}

.quiz-section .postcard .pc-score .pc-score-num {
  font-size: 1.4rem;
  color: #fff;
}

/* Postcard metric strip: same component as the spectrum row, scaled and
   recolored to read on the dark postcard background. Replaces pc-fingerprint. */
.quiz-section .postcard .pc-metric-strip {
  display: inline-grid;
  grid-template-columns: repeat(6, 26px);
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}
.quiz-section .postcard .pc-metric-strip .ms-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 5px;
}
.quiz-section .postcard .pc-metric-strip .ms-bar-wrap {
  display: flex;
  align-items: end;
  justify-content: center;
  width: 100%;
  height: 30px;
}
.quiz-section .postcard .pc-metric-strip .ms-bar {
  width: 11px;
  min-height: 4px;
  height: var(--bar-h, 50%);
  max-height: 30px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 2px;
}
.quiz-section .postcard .pc-metric-strip .ms-cell[data-tier="quiet"] .ms-bar { background: #ffffff; }
.quiz-section .postcard .pc-metric-strip .ms-cell[data-tier="loud"]  .ms-bar { background: var(--scale-4); }
.quiz-section .postcard .pc-metric-strip .ms-cell[data-tier="mid"]   .ms-bar { background: rgba(255, 255, 255, 0.55); }
.quiz-section .postcard .pc-metric-strip .ms-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}
.quiz-section .postcard .pc-metric-strip .ms-icon svg { width: 18px; height: 18px; display: block; }
.quiz-section .postcard .pc-metric-strip .ms-cell[data-tier="quiet"] .ms-icon { color: #ffffff; }
.quiz-section .postcard .pc-metric-strip .ms-cell[data-tier="loud"]  .ms-icon { color: var(--scale-4); }
.quiz-section .postcard .pc-metric-strip .ms-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.quiz-section .postcard .pc-strip-caption {
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.62);
  margin: 10px 0 0;
  line-height: 1.4;
  max-width: 32ch;
}

.quiz-section .postcard .pc-cta {
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-navy);
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  align-self: end;
  justify-self: stretch;
  display: block;
  margin-bottom: 8px;
}

.quiz-section .postcard .pc-cta:hover { background: #fff; }

/* Stasher logo, inlined to keep PNG export deterministic. Force fill white. */
.quiz-section .postcard .pc-logo {
  position: absolute;
  bottom: 18px;
  right: 22px;
  line-height: 0;
}
.quiz-section .postcard .pc-logo svg {
  width: 88px;
  height: auto;
  display: block;
}
.quiz-section .postcard .pc-logo svg path,
.quiz-section .postcard .pc-logo svg [fill] {
  fill: #ffffff !important;
}
