/* ========== QUIZ PAGE STYLES ========== */

    .quiz-page {
      min-height: 100vh;
      background: var(--color-bg);
    }

    /* --- Hero --- */
    .quiz-hero {
      text-align: center;
      padding: 48px 24px 32px;
      max-width: 680px;
      margin: 0 auto;
    }

    .quiz-hero h1 {
      font-family: var(--font-display);
      font-size: var(--text-3xl);
      font-weight: 800;
      margin-bottom: 12px;
      color: var(--color-text);
    }

    .quiz-hero p {
      font-size: var(--text-lg);
      color: var(--color-text-muted);
      line-height: 1.6;
    }

    /* --- Progress Bar --- */
    .progress-container {
      position: sticky;
      top: 64px;
      z-index: 100;
      background: rgba(255,255,255,0.92);
      backdrop-filter: blur(30px);
      padding: 16px 24px;
      border-bottom: 1px solid rgba(200,200,200,0.3);
    }

    .progress-inner {
      max-width: 680px;
      margin: 0 auto;
    }

    .progress-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }

    .progress-label {
      font-size: 13px;
      font-weight: 600;
      color: var(--color-text-muted);
    }

    .progress-count {
      font-size: 13px;
      font-weight: 700;
      color: var(--color-primary, #6B8F71);
    }

    .progress-track {
      width: 100%;
      height: 6px;
      background: rgba(0,0,0,0.06);
      border-radius: 3px;
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, #6B8F71, #8DB580);
      border-radius: 3px;
      transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* --- Question Container --- */
    .quiz-container {
      max-width: 680px;
      margin: 0 auto;
      padding: 40px 24px 120px;
      position: relative;
    }

    .question-slide {
      display: none;
      animation: slideIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .question-slide.active {
      display: block;
    }

    .question-slide.slide-out {
      animation: slideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    @keyframes slideIn {
      from { opacity: 0; transform: translateX(40px); }
      to { opacity: 1; transform: translateX(0); }
    }

    @keyframes slideOut {
      from { opacity: 1; transform: translateX(0); }
      to { opacity: 0; transform: translateX(-40px); }
    }

    .question-category {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: #6B8F71;
      margin-bottom: 8px;
    }

    .question-text {
      font-family: var(--font-display);
      font-size: clamp(22px, 4vw, 28px);
      font-weight: 700;
      color: var(--color-text);
      line-height: 1.3;
      margin-bottom: 8px;
    }

    .question-subtitle {
      font-size: 15px;
      color: var(--color-text-muted);
      margin-bottom: 28px;
      line-height: 1.5;
    }

    /* --- Answer Cards --- */
    .answers-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .answers-grid.single-col {
      grid-template-columns: 1fr;
    }

    .answer-card {
      background: rgba(255,255,255,0.7);
      backdrop-filter: blur(20px);
      border: 2px solid rgba(200,200,200,0.3);
      border-radius: 16px;
      padding: 20px;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .answer-card:hover {
      transform: translateY(-3px);
      border-color: rgba(107,143,113,0.4);
      background: rgba(255,255,255,0.9);
      box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    .answer-card:active {
      transform: scale(0.97);
    }

    .answer-card.selected {
      border-color: #6B8F71;
      background: rgba(107,143,113,0.08);
      box-shadow: 0 0 0 3px rgba(107,143,113,0.15);
    }

    .answer-card.selected::after {
      content: '';
      position: absolute;
      top: 10px;
      right: 10px;
      width: 22px;
      height: 22px;
      background: #6B8F71;
      border-radius: 50%;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
      background-size: 14px;
      background-repeat: no-repeat;
      background-position: center;
      animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes popIn {
      from { transform: scale(0); }
      to { transform: scale(1); }
    }

    .answer-icon {
      font-size: 32px;
      margin-bottom: 10px;
      display: block;
    }

    .answer-icon img {
      width: 44px;
      height: 44px;
      object-fit: contain;
    }

    .answer-label {
      font-weight: 700;
      font-size: 15px;
      color: var(--color-text);
      margin-bottom: 4px;
    }

    .answer-desc {
      font-size: 13px;
      color: var(--color-text-muted);
      line-height: 1.4;
    }

    /* --- Back Button --- */
    .quiz-back {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      font-weight: 600;
      color: var(--color-text-muted);
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px 0;
      margin-bottom: 16px;
      transition: color 0.2s;
      opacity: 0;
      pointer-events: none;
    }

    .quiz-back.visible {
      opacity: 1;
      pointer-events: auto;
    }

    .quiz-back:hover {
      color: var(--color-text);
    }

    .quiz-back svg {
      width: 18px;
      height: 18px;
    }

    /* ========== RESULTS ========== */
    .results-container {
      display: none;
      max-width: 680px;
      margin: 0 auto;
      padding: 48px 24px 120px;
      text-align: center;
      animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .results-container.active {
      display: block;
    }

    .results-badge {
      display: inline-block;
      background: linear-gradient(135deg, #6B8F71, #8DB580);
      color: white;
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      padding: 6px 20px;
      border-radius: 20px;
      margin-bottom: 20px;
    }

    .results-title {
      font-family: var(--font-display);
      font-size: clamp(28px, 5vw, 40px);
      font-weight: 800;
      color: var(--color-text);
      margin-bottom: 8px;
    }

    .results-match {
      font-size: 18px;
      color: var(--color-text-muted);
      margin-bottom: 32px;
    }

    .winner-card {
      background: rgba(255,255,255,0.8);
      backdrop-filter: blur(20px);
      border: 2px solid rgba(107,143,113,0.3);
      border-radius: 24px;
      padding: 40px 32px;
      margin-bottom: 32px;
      position: relative;
      overflow: hidden;
    }

    .winner-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #6B8F71, #8DB580, #C5DBC9);
    }

    .winner-image {
      width: 180px;
      height: 140px;
      object-fit: contain;
      margin: 0 auto 20px;
      display: block;
    }

    .winner-name {
      font-family: var(--font-display);
      font-size: 28px;
      font-weight: 800;
      margin-bottom: 4px;
    }

    .winner-tagline {
      font-size: 16px;
      color: var(--color-text-muted);
      margin-bottom: 20px;
    }

    .winner-description {
      font-size: 16px;
      line-height: 1.7;
      color: var(--color-text);
      text-align: left;
      max-width: 520px;
      margin: 0 auto 28px;
    }

    .winner-strengths {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
      margin-bottom: 24px;
    }

    .strength-tag {
      background: rgba(107,143,113,0.1);
      color: #6B8F71;
      font-size: 13px;
      font-weight: 600;
      padding: 6px 14px;
      border-radius: 20px;
    }

    /* --- Score Gauge --- */
    .match-gauge {
      margin: 0 auto 24px;
      width: 120px;
      height: 120px;
      position: relative;
    }

    .match-gauge svg {
      transform: rotate(-90deg);
    }

    .match-gauge .gauge-bg {
      fill: none;
      stroke: rgba(0,0,0,0.06);
      stroke-width: 8;
    }

    .match-gauge .gauge-fill {
      fill: none;
      stroke: #6B8F71;
      stroke-width: 8;
      stroke-linecap: round;
      transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .match-gauge .gauge-text {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .match-gauge .gauge-pct {
      font-family: var(--font-display);
      font-size: 28px;
      font-weight: 800;
      color: var(--color-text);
    }

    .match-gauge .gauge-label {
      font-size: 11px;
      font-weight: 600;
      color: var(--color-text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    /* --- Runner-ups --- */
    .runnerup-section {
      margin-top: 40px;
      text-align: left;
    }

    .runnerup-title {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 700;
      color: var(--color-text);
      margin-bottom: 16px;
      text-align: center;
    }

    .runnerup-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .runnerup-item {
      display: flex;
      align-items: center;
      gap: 16px;
      background: rgba(255,255,255,0.6);
      border-radius: 14px;
      padding: 14px 18px;
      border: 1px solid rgba(200,200,200,0.3);
    }

    .runnerup-rank {
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 800;
      color: var(--color-text-muted);
      min-width: 28px;
    }

    .runnerup-img {
      width: 48px;
      height: 48px;
      object-fit: contain;
    }

    .runnerup-info {
      flex: 1;
    }

    .runnerup-name {
      font-weight: 700;
      font-size: 15px;
      color: var(--color-text);
    }

    .runnerup-score-text {
      font-size: 13px;
      color: var(--color-text-muted);
    }

    .runnerup-bar {
      width: 80px;
      height: 6px;
      background: rgba(0,0,0,0.06);
      border-radius: 3px;
      overflow: hidden;
    }

    .runnerup-bar-fill {
      height: 100%;
      background: #6B8F71;
      border-radius: 3px;
      transition: width 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
    }

    /* --- CTA Buttons --- */
    .results-cta {
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: center;
      margin-top: 36px;
    }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, #6B8F71, #5A7D60);
      color: white;
      font-size: 16px;
      font-weight: 700;
      padding: 14px 32px;
      border-radius: 12px;
      border: none;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(107,143,113,0.3);
    }

    .btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: transparent;
      color: var(--color-text-muted);
      font-size: 14px;
      font-weight: 600;
      padding: 10px 24px;
      border-radius: 10px;
      border: 1.5px solid rgba(200,200,200,0.4);
      cursor: pointer;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .btn-secondary:hover {
      border-color: rgba(107,143,113,0.4);
      color: var(--color-text);
    }

    .restart-btn {
      margin-top: 16px;
      background: none;
      border: none;
      color: var(--color-text-muted);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .restart-btn:hover {
      color: var(--color-text);
    }

    /* --- Confetti --- */
    .confetti-piece {
      position: fixed;
      width: 8px;
      height: 8px;
      border-radius: 2px;
      pointer-events: none;
      z-index: 1000;
      animation: confettiFall 2.5s cubic-bezier(0.25, 0, 0.5, 1) forwards;
    }

    @keyframes confettiFall {
      0% { transform: translateY(-20px) rotate(0deg) scale(1); opacity: 1; }
      100% { transform: translateY(100vh) rotate(720deg) scale(0.5); opacity: 0; }
    }

    /* --- Mobile --- */
    @media (max-width: 600px) {
      .answers-grid {
        grid-template-columns: 1fr;
      }
      .quiz-hero { padding: 32px 20px 24px; }
      .quiz-hero h1 { font-size: 26px; }
      .winner-card { padding: 28px 20px; }
      .runnerup-bar { width: 60px; }
    }

    /* --- Floating Mascot --- */
    .mascot-float {
      position: fixed;
      bottom: 24px;
      right: 24px;
      width: 80px;
      height: 80px;
      z-index: 50;
      animation: floatBounce 3s ease-in-out infinite;
      pointer-events: none;
      opacity: 0.9;
    }

    .mascot-float img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
    }

    @keyframes floatBounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }