/* stats.html (moved out of the template, on the tokens) */
  .stats-page {
    max-width: 1100px;
    margin: 0 auto;
  }

  .stats-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }

  .stats-header-main h1 {
    margin: 0;
  }

  .stats-header-main p {
    margin: .25rem 0 0;
    opacity: .9;
  }

  .stats-meta {
    font-size: .9em;
    text-align: right;
    opacity: .85;
  }

  .stats-meta div {
    margin: .1rem 0;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
  }

  .stat-card {
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 1.2rem 1.3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    gap: .5rem;
  }

  .stat-card.highlight {
    border-color: #f1c40f;
    box-shadow: 0 0 0 1px rgba(241,196,15,0.25), 0 4px 16px rgba(0,0,0,0.6);
  }

  .stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface-inset);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: .25rem;
  }

  .stat-title {
    font-family: var(--primary-font);
    font-size: 1.3rem;
    margin: 0;
  }

  .stat-text {
    font-size: .95rem;
    line-height: 1.4;
    opacity: .95;
  }

  .stat-pill {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(241,196,15,0.8);
    background: rgba(0,0,0,0.4);
    color: #f1c40f;
  }

  .stats-fallback {
    margin-top: 2rem;
    padding: 1.8rem 1.6rem;
    border-radius: 6px;
    border: 1px dashed var(--border-color);
    background: var(--surface-inset);
    max-width: 720px;
  }

  .stats-fallback h2 {
    margin-top: 0;
  }

  .stats-fallback p {
    margin: .35rem 0;
  }

  .stats-fallback code {
    background: rgba(0,0,0,0.4);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: .85em;
  }

  @media (max-width: 640px) {
    .stats-header {
      align-items: flex-start;
    }
    .stats-meta {
      text-align: left;
    }
  }
