/* ============================================
   Result Screens (AI & DIY)
   ============================================ */

/* ── AI Result ── */
#screen-result {
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.result-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 36px;
  padding: 44px 36px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px var(--shadow);
  animation: resultReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  overflow-y: auto;
  max-height: calc(100vh - 110px);
}

.result-card__emoji {
  font-size: 96px;
  display: block;
  margin-bottom: 18px;
  animation: float 3s ease-in-out infinite;
}

.result-card__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7C5AB8;
  margin-bottom: 7px;
}

.result-card__title {
  font-size: clamp(30px, 7vw, 50px);
  font-weight: 900;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--dark-p), var(--primary), var(--mid-p));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result-card__desc {
  font-size: 16px;
  color: #4B2D8A;
  line-height: 1.8;
  margin-bottom: 28px;
}

/* ── Score Pills ── */
.result-scores {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.score-pill {
  border-radius: 16px;
  padding: 12px 18px;
  flex: 1;
  min-width: 88px;
}

.score-pill--comfort {
  background: #F5F0FF;
  border: 1.5px solid rgba(124, 58, 237, 0.25);
}

.score-pill--fruity {
  background: var(--blush);
  border: 1.5px solid rgba(109, 40, 217, 0.25);
}

.score-pill--bold {
  background: #F3E8FF;
  border: 1.5px solid rgba(147, 51, 234, 0.25);
}

.score-pill__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 3px;
}

.score-pill__value {
  font-size: 26px;
  font-weight: 900;
}

.score-pill--comfort .score-pill__value { color: var(--dark-p); }
.score-pill--fruity .score-pill__value  { color: var(--primary); }
.score-pill--bold .score-pill__value    { color: var(--mid-p); }

/* ── Recommendation ── */
.recommendation {
  background: #F5F0FF;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 22px;
  text-align: right;
}

.recommendation__label {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 9px;
}

.recommendation__flavors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recommendation__flavor {
  background: var(--blush);
  border-radius: 30px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--primary);
}

.result-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── English subtitle under personality title ── */
.result-card__title-en {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  margin-top: -8px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

/* ── Uniqueness message ── */
.result-unique {
  background: linear-gradient(135deg, #F5F0FF, #EDE9FE);
  border: 1.5px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  padding: 14px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
}

.result-unique__icon {
  font-size: 28px;
  flex-shrink: 0;
}

.result-unique__text {
  font-size: 14px;
  color: var(--dark-p);
  font-weight: 600;
  line-height: 1.7;
}

/* ── Pickup Code ── */
.pickup-code {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 22px;
  text-align: center;
}

.pickup-code__label {
  font-size: 14px;
  font-weight: 700;
  color: #065F46;
  margin-bottom: 8px;
}

.pickup-code__value {
  font-size: 32px;
  font-weight: 900;
  color: #059669;
  letter-spacing: 4px;
  font-family: 'Courier New', monospace;
  margin-bottom: 6px;
}

.pickup-code__note {
  font-size: 12px;
  color: #065F46;
  opacity: 0.8;
}

/* ── Rating Stars ── */
.result-rating {
  margin-bottom: 22px;
  text-align: center;
}

.result-rating__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-p);
  margin-bottom: 10px;
}

.result-rating__stars {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.result-rating__star {
  font-size: 32px;
  cursor: pointer;
  color: #DDD6FE;
  transition: color 0.2s, transform 0.2s;
}

.result-rating__star:hover {
  transform: scale(1.2);
}

.result-rating__star.active {
  color: #F59E0B;
}

/* ── Share / Referral ── */
.result-share {
  background: linear-gradient(135deg, #F0F9FF, #DBEAFE);
  border: 1.5px solid rgba(59, 130, 246, 0.25);
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 22px;
  text-align: center;
}

.result-share__label {
  font-size: 14px;
  font-weight: 700;
  color: #1E40AF;
  margin-bottom: 10px;
}

.result-share__btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.result-share__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

/* ── DIY Result ── */
#screen-diy-result {
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.diy-result-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 36px;
  padding: 44px 36px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(26, 158, 120, 0.2);
  animation: resultReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  overflow-y: auto;
  max-height: calc(100vh - 110px);
}

.diy-result__cup {
  font-size: 90px;
  display: block;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

.diy-result__title {
  font-size: clamp(26px, 6vw, 42px);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 10px;
}

.diy-result__subtitle {
  font-size: 16px;
  color: #4B2D8A;
  margin-bottom: 24px;
  line-height: 1.7;
}

.diy-mix-preview {
  background: #F5F0FF;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 22px;
  text-align: right;
}

.diy-mix-preview__label {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.diy-mix-preview__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diy-mix-preview__item {
  background: var(--blush);
  border-radius: 26px;
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
}
