/* "How XP works", My Progress, and Achievements screen styling.
   Split from index.html — see palabra-file-split-plan.md. */

  /* How XP works screen */
  .recap-row { display: flex; align-items: center; gap: 14px; }
  .recap-text .recap-level { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; }
  .recap-text .recap-sub { font-size: 12px; color: var(--cream-dim); margin-top: 3px; }
  .recap-text .xp-track { margin-top: 8px; width: 180px; }
  .section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--label); margin: 18px 0 10px 4px; }
  .rule-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .rule-row:last-child { border-bottom: none; }
  .rule-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
  .rule-text { flex: 1; }
  .rule-title { font-size: 13px; font-weight: 600; }
  .rule-sub { font-size: 11px; color: var(--cream-dim); margin-top: 1px; }
  .footnote { font-size: 12px; color: var(--cream-dim); line-height: 1.6; text-align: center; padding: 16px 8px 4px; }

  /* My Progress screen */
  .progress-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .card.progress-summary-card { padding: 16px 14px; }
  .progress-summary-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--label);
    margin-bottom: 10px;
  }
  .progress-summary-card.conjugate .progress-summary-eyebrow { color: var(--conjugate); }
  .progress-summary-big {
    font-family: 'Sora', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
  }
  .progress-summary-big-label {
    font-size: 11px;
    color: var(--cream-dim);
    margin: 4px 0 12px;
  }
  .progress-summary-stat {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--cream-dim);
    padding: 4px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .progress-summary-stat span:last-child { color: var(--cream); font-weight: 600; }

  .progress-section-title {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
  }
  .progress-section-sub {
    font-size: 12px;
    color: var(--cream-dim);
    margin-bottom: 14px;
  }

  .progress-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 90px;
  }
  .progress-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
  }
  .progress-bar-count { font-size: 11px; font-weight: 700; color: var(--cream-dim); }
  .progress-bar {
    width: 100%;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, var(--label), rgba(201,168,255,0.25));
  }
  .progress-bar.conjugate {
    background: linear-gradient(180deg, var(--conjugate), rgba(52,211,153,0.22));
  }
  .progress-bar-label { font-size: 10px; color: var(--cream-dim); }

  .progress-review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--outline);
  }
  .progress-review-item:last-child { border-bottom: none; }
  .progress-review-word { font-weight: 600; font-size: 14px; }
  .progress-review-person { color: var(--cream-dim); font-weight: 400; }
  .progress-review-en { color: var(--cream-dim); font-size: 12.5px; margin-top: 2px; }
  .progress-box-tag {
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255,77,109,0.16);
    color: var(--terracotta);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .progress-box-tag.mid { background: rgba(255,193,99,0.16); color: var(--ochre); }
  .progress-empty { font-size: 13px; color: var(--cream-dim); padding: 4px 0; }

  .achievement-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--outline);
  }
  .achievement-item:last-child { border-bottom: none; }
  .achievement-item.locked { opacity: 0.4; }
  .ach-icon {
    font-size: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #FFE9C2, #FFC163 55%, #B87A1E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .achievement-item.locked .ach-icon { background: rgba(255,255,255,0.08); }
  .ach-name { font-weight: 700; font-size: 15px; }
  .ach-desc { font-size: 13px; color: var(--cream-dim); }

  .achievement-toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(20,14,34,0.75);
    border: 1px solid var(--label);
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 90vw;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .achievement-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  .toast-icon { font-size: 26px; }
  .toast-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--label); }
  .toast-name { font-weight: 700; font-size: 15px; }

  /* Achievement toast's hexagonal badge — used only by showAchievementToast()
     (achievements.js); showComingSoonToast() and the daily-goal toast keep
     the plain .toast-icon emoji above, since a hex badge + shine + sparkle
     is meant to read as a bigger deal than either of those. */
  .toast-badge { position: relative; width: 44px; height: 44px; flex: 0 0 auto; }
  .badge-hex { width: 44px; height: 44px; display: block; overflow: visible; }
  .badge-hex-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
  }
  .achievement-sparkle-canvas { position: absolute; inset: -30px; pointer-events: none; }

  .badge-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.6) 48%, transparent 66%);
    transform: translateX(-130%);
    mix-blend-mode: screen;
    pointer-events: none;
  }
  .toast-badge.play .badge-shine { animation: toastShineSweep 1.1s ease-out 0.25s; }
  @keyframes toastShineSweep {
    0%   { transform: translateX(-130%); }
    100% { transform: translateX(130%); }
  }

  @media (prefers-reduced-motion: reduce) {
    .toast-badge.play .badge-shine { animation: none !important; opacity: 0; }
  }

