/* ============================================================
   SMAKO Quiz + Result Card Styles
   Extracted from index.html — owned by smako-quiz.js
   ============================================================ */

/* ── Quiz Options (4-point Likert) ── */
.quiz-option {
  width: 100%; background: white; border: 2px solid #EEEBE8;
  border-radius: 14px; padding: 13px 16px; cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
  display: flex; align-items: center; gap: 12px; text-align: left;
}
.quiz-option:hover { border-color: #d4c4b8; box-shadow: 0 2px 8px rgba(28,18,9,0.06); transform: translateX(3px); }
.quiz-option.card-selected { border-color: #E9371C; background: #E9371C; }
.quiz-option.card-selected * { color: white !important; opacity: 1 !important; }
.quiz-option.card-dimmed { opacity: 0.28; transform: scale(0.98); }
.quiz-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ── Collectible Card (rc-*) ── */
.rc { width: 100%; max-width: min(380px, calc(100vw - 40px)); background: #FDFAF5; border-radius: 2.5rem; padding: 20px; display: flex; flex-direction: column; position: relative; overflow: hidden; border: 6px solid var(--accent, #E9371C); box-shadow: inset 4px 4px 0px rgba(0,0,0,0.05), 4px 4px 0px #000; }
.rc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; flex-shrink: 0; }
.rc-header .rc-brand { color: #E9371C; font-weight: 900; font-size: 20px; letter-spacing: -0.04em; text-transform: uppercase; line-height: 1; }
.rc-header .rc-subline { color: rgba(28,18,9,0.35); font-weight: 700; font-size: 9px; text-transform: uppercase; letter-spacing: 0.15em; margin-top: 3px; }
.rc-card-num { background: #1C1209; color: white; padding: 4px 8px; border-radius: 8px; font-size: 9px; font-weight: 900; border: 2px solid #000; letter-spacing: 0.05em; }
.rc-art { flex: 1 1 0; min-height: 200px; border-radius: 16px; border: 3px solid #1C1209; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.rc-art .rc-radial { position: absolute; inset: 0; opacity: 0.3; }
.rc-art img { position: relative; z-index: 1; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4)); }
.rc-art .rc-star { position: absolute; top: 8px; right: 8px; z-index: 2; background: #E9371C; border: 2px solid #000; padding: 6px; border-radius: 10px; transform: rotate(12deg); box-shadow: 2px 2px 0px #000; line-height: 1; }
.rc-art .rc-star svg { display: block; width: 12px; height: 12px; fill: white; }
.rc-nameplate { margin: 0 -8px 8px; position: relative; flex-shrink: 0; }
.rc-nameplate-inner { border: 3px solid #1C1209; padding: 8px 20px; box-shadow: 4px 4px 0px #000; transform: rotate(-1deg); }
.rc-nameplate-inner h2 { color: white; font-weight: 900; font-size: 22px; letter-spacing: -0.02em; text-align: center; text-transform: uppercase; line-height: 1; }
.rc-decode-pill { display: flex; justify-content: center; margin-top: 6px; }
.rc-decode-pill span { background: white; border: 2px solid #1C1209; padding: 2px 12px; border-radius: 999px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; color: #1C1209; box-shadow: 2px 2px 0px #000; }
.rc-stats { margin-bottom: 10px; flex-shrink: 0; }
.rc-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.rc-stat-row { display: flex; flex-direction: column; gap: 3px; }
.rc-stat-label { font-size: 8px; font-weight: 900; color: #1C1209; text-transform: uppercase; letter-spacing: 0.14em; }
.rc-stat-track { height: 10px; width: 100%; background: white; border: 2px solid #1C1209; border-radius: 2px; overflow: hidden; box-shadow: 2px 2px 0px #000; }
.rc-stat-fill { height: 100%; border-right: 2px solid #1C1209; }
.rc-personality { border-top: 2px solid rgba(28,18,9,0.12); padding-top: 8px; margin-bottom: 8px; flex-shrink: 0; }
.rc-personality p { font-size: 10px; font-weight: 700; color: #1C1209; display: flex; align-items: flex-start; gap: 6px; line-height: 1.35; margin-bottom: 4px; }
.rc-personality p:last-child { margin-bottom: 0; }
.rc-personality .rc-arrow { color: #E9371C; font-weight: 900; flex-shrink: 0; }
.rc-food-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; flex-shrink: 0; }
.rc-food-chip { background: rgba(28,18,9,0.04); color: #1C1209; font-size: 9px; font-weight: 800; padding: 4px 10px; border-radius: 999px; border: 2px solid rgba(28,18,9,0.06); text-transform: uppercase; letter-spacing: 0.04em; }
.rc-compat { border-top: 2px solid rgba(28,18,9,0.12); padding-top: 8px; flex-shrink: 0; }
.rc-compat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc-compat-heading { font-size: 7px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(28,18,9,0.45); margin-bottom: 4px; }
.rc-compat-row { display: flex; align-items: center; justify-content: space-between; border-radius: 8px; padding: 4px 7px; margin-bottom: 3px; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; border: 2px solid; box-shadow: 2px 2px 0px; }
.rc-compat-row.rc-vibe { background: #E8F5E9; border-color: #2E7D32; box-shadow: 2px 2px 0px #2E7D32; color: #1B5E20; }
.rc-compat-row.rc-clash { background: #FFF3E0; border-color: #E9371C; box-shadow: 2px 2px 0px #E9371C; color: #BF360C; }

/* ── Result overlay entrance animation (turns the reveal into a moment) ── */
@keyframes smako-overlay-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes smako-card-arrive {
  0%   { opacity: 0; transform: scale(0.92) translateY(14px); }
  100% { opacity: 1; transform: scale(1)    translateY(0);    }
}
#result-overlay.result-active {
  animation: smako-overlay-fade-in 0.28s ease-out both;
}
#result-overlay.result-active #result-card {
  animation: smako-card-arrive 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  #result-overlay.result-active,
  #result-overlay.result-active #result-card {
    animation: none !important;
  }
}
