:root {
    color-scheme: dark;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #101010;
    color: #f5f5f5;
  }
  
  * {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    padding: 22px;
    background:
      radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 30rem),
      #101010;
  }
  
  .page {
    width: min(1800px, 100%);
    margin: 0 auto;
  }
  
  .hero {
    margin-bottom: 22px;
  }
  
  h1 {
    margin: 0;
    max-width: 1200px;
    font-size: clamp(28px, 5.3vw, 78px);
    letter-spacing: -0.075em;
    line-height: 0.9;
    padding-bottom: 0.1em;
  }
  
  .description {
    max-width: 860px;
    margin: 24px 0 0;
    color: #bdbdbd;
    font-size: clamp(13px, 1.3vw, 15px);
    line-height: 1.45;
    white-space: pre-wrap;
  }
  
  .tierlist {
    display: grid;
    gap: 10px;
  }
  
  .tier {
    display: grid;
    grid-template-columns: 115px 1fr;
    min-height: 107px;
    border: 1px solid #333;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
  }
  
  .tier-label {
    display: grid;
    place-items: center;
    padding: 10px;
    text-align: center;
    color: #111;
    font-size: 32px;
    font-weight: 950;
    line-height: 1.05;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
  }
  
  .items {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-end;
    gap: 8px;
    padding: 10px;
  }
  
  .card {
    width: 84px;
    align-self: flex-end;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 11px;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
      #202020;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  }
  
  .card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  
  .label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 6px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(to top, rgba(10,10,10,0.92) 60%, rgba(10,10,10,0.0));
    padding-top: 14px;
  }

  @media (hover: hover) {
    .card:hover .label {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      background: rgba(10, 10, 10, 0.93);
      padding-top: 5px;
    }
  }

  .card.label-open .label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    background: rgba(10, 10, 10, 0.93);
    padding-top: 5px;
  }
  
  @media (min-width: 1500px) {
    .card {
      width: 94px;
    }
  }
  
  @media (max-width: 900px) {
    body {
      padding: 14px;
    }
  
    .hero {
      margin-bottom: 16px;
    }
  
    .tier {
      grid-template-columns: 1fr !important;
    }
  
    .tier-label {
      min-height: 72px;
    }
  }
  
  @media (max-width: 520px) {
    body {
      padding: 8px;
    }
  
    .hero {
      padding: 4px;
      margin-bottom: 12px;
    }
  
    h1 {
      font-size: clamp(24px, 12vw, 52px);
    }
  
    .description {
      margin-top: 10px;
      font-size: 13px;
    }
  
    .tier {
      border-radius: 14px;
    }
  
    .tier-label {
      min-height: 58px;
      padding: 8px;
    }
  
    .items {
      gap: 6px;
      padding: 7px;
    }
  
    .card {
      width: calc(20% - 7px);
      min-width: 40px;
    }
  }

/* ── Image blur until loaded ─────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.img-loading {
  filter: blur(10px);
  transition: filter 0.4s ease;
}
