/* Quiz result card — 9:16, cream minimal, fixed branding */
.qrs-page { max-width: 20rem; margin: 0 auto; }
.qrs-mount { margin-bottom: 0; }
.qrs-mount--centered { display: flex; justify-content: center; }

.qrs-card {
  width: 100%;
  max-width: 16rem;
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #E7E2DB;
  background: #FAF8F5;
  color: #1A1814;
  box-shadow: 0 12px 40px rgba(26, 24, 20, 0.08);
  font-family: 'Google Sans', system-ui, sans-serif;
}

.qrs-card-inner--centered {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem 1rem;
  min-height: 0;
  overflow: hidden;
}

.qrs-brand-head {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8A847A;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
  width: 100%;
}

.qrs-quiz-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: #5C574F;
  margin-bottom: 1rem;
  line-height: 1.45;
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: break-word;
  flex-shrink: 0;
  width: 100%;
}

.qrs-result-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: #1A1814;
  margin-bottom: 0.65rem;
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: break-word;
  flex-shrink: 0;
  width: 100%;
}

.qrs-result-desc {
  font-size: 0.75rem;
  line-height: 1.55;
  color: #5C574F;
  white-space: pre-wrap;
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: break-word;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

/* ก่อน capture — แสดงข้อความเต็มและย่อฟอนต์ถ้าจำเป็น */
.qrs-card--capturing {
  overflow: visible;
}

.qrs-card--capturing .qrs-card-inner--centered {
  overflow: visible;
}

.qrs-card--capturing .qrs-result-desc {
  overflow: visible;
  flex: 0 1 auto;
}

.qrs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid #E7E2DB;
  background: #F5F2ED;
  font-size: 0.6rem;
  font-weight: 600;
  color: #6B6560;
  flex-shrink: 0;
}

.qrs-footer-left,
.qrs-footer-right {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qrs-footer-right {
  text-align: right;
}

.qrs-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.qrs-actions .btn-primary { min-width: 9rem; }
