:root {
      color-scheme: dark;
      --bg: #07080c;
      --panel: rgba(12, 16, 24, 0.92);
      --panel-2: rgba(255,255,255,0.03);
      --border: rgba(255,255,255,0.08);
      --text: #eef1f7;
      --muted: #a2acc0;
      --shadow: 0 22px 70px rgba(0,0,0,0.48);
      --accent: #6f7cff;
    }
    * { box-sizing: border-box; }
    html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
    body {
      background:
        radial-gradient(circle at top, rgba(102, 126, 234, 0.10), transparent 40%),
        radial-gradient(circle at 20% 20%, rgba(255, 200, 87, 0.12), transparent 28%),
        linear-gradient(180deg, #090a0f 0%, #05060a 100%);
    }
    .shell { max-width: 1540px; margin: 0 auto; padding: 28px 18px 48px; }
    header {
      text-align: center;
      padding: 34px 20px 26px;
      margin-bottom: 22px;
    }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-transform: uppercase;
      letter-spacing: 0.26em;
      color: var(--muted);
      font-weight: 700;
      font-size: 12px;
      margin-bottom: 12px;
    }
    .eyebrow::before, .eyebrow::after {
      content: '';
      width: 32px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    }
    h1 {
      margin: 0;
      font-size: clamp(2.5rem, 5vw, 5.7rem);
      line-height: 0.92;
      letter-spacing: -0.07em;
      text-transform: uppercase;
      text-wrap: balance;
    }
    .subhead {
      margin: 16px auto 0;
      max-width: 860px;
      color: var(--muted);
      font-size: clamp(0.98rem, 1.2vw, 1.15rem);
      line-height: 1.65;
    }
    .nav {
      margin: 22px auto 0;
      display: flex;
      gap: 10px;
      justify-content: center;
      flex-wrap: wrap;
    }
    .nav-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 11px 16px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.04);
      color: #eef1f7;
      text-decoration: none;
      font-weight: 800;
      letter-spacing: 0.02em;
      transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
    }
    .nav-link:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.16); }
    .nav-link.active { background: rgba(102, 126, 234, 0.18); border-color: rgba(102, 126, 234, 0.35); }
    .meta {
      margin-top: 18px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
    }
    .pill {
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      color: #dfe5f2;
      padding: 9px 14px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.02em;
      backdrop-filter: blur(10px);
    }
    .search-wrap {
      margin: 26px auto 0;
      max-width: 860px;
    }
    .search-label {
      display: block;
      margin: 0 0 8px 4px;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(245,247,251,0.92);
    }
    .search-field { position: relative; }
    .search-input {
      width: 100%;
      border: 1px solid rgba(210, 220, 235, 0.72);
      background: linear-gradient(180deg, rgba(18, 26, 40, 0.90), rgba(12, 18, 30, 0.84));
      color: var(--text);
      border-radius: 18px;
      padding: 16px 18px 16px 52px;
      font-size: 16px;
      outline: none;
      box-shadow:
        0 14px 40px rgba(0,0,0,0.32),
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 0 0 1px rgba(88, 166, 255, 0.16);
    }
    .search-input:focus {
      border-color: color-mix(in srgb, var(--accent) 72%, white 18%);
      box-shadow:
        0 14px 40px rgba(0,0,0,0.32),
        0 0 0 3px rgba(88, 166, 255, 0.24),
        inset 0 1px 0 rgba(255,255,255,0.10),
        0 0 0 1px rgba(88, 166, 255, 0.26);
    }
    .search-input::placeholder { color: rgba(237,241,248,0.66); }
    .search-icon {
      position: absolute;
      left: 16px;
      top: 50%;
      width: 22px;
      height: 22px;
      display: flex;
      align-items: center;
      justify-content: center;
      transform: translateY(-50%);
      color: rgba(245,247,251,0.94);
      font-size: 18px;
      line-height: 1;
      pointer-events: none;
    }
    .search-meta {
      margin-top: 10px;
      color: rgba(223,229,242,0.76);
      font-size: 12px;
      line-height: 1.4;
      min-height: 1.2em;
    }
    .status {
      max-width: 860px;
      margin: 8px auto 22px;
      color: rgba(223,229,242,0.80);
      font-size: 13px;
      line-height: 1.5;
      min-height: 1.4em;
      text-align: center;
    }
    .tier {
      position: relative;
      border: 1px solid var(--border);
      border-radius: 28px;
      background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
      box-shadow: var(--shadow);
      overflow: hidden;
      margin-bottom: 18px;
    }
    .tier::before {
      content: '';
      position: absolute;
      inset: 0 auto 0 0;
      width: 6px;
      background: var(--accent, #6f7cff);
    }
    .tier-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 16px;
      padding: 20px 20px 16px 24px;
      background: linear-gradient(90deg, var(--tier-bg), transparent 70%);
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .tier-title {
      display: flex;
      align-items: baseline;
      gap: 14px;
      min-width: 0;
    }
    .tier-title h2 {
      margin: 0;
      font-size: clamp(1.8rem, 3.2vw, 3.5rem);
      letter-spacing: -0.07em;
      line-height: 0.95;
      text-transform: uppercase;
    }
    .tier-title span {
      color: var(--muted);
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-size: 0.78rem;
      white-space: nowrap;
    }
    .count {
      flex: 0 0 auto;
      border-radius: 999px;
      padding: 10px 14px;
      border: 1px solid color-mix(in srgb, var(--accent) 65%, white 10%);
      background: color-mix(in srgb, var(--accent) 16%, black 84%);
      color: #fff;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      font-size: 12px;
    }
    .pet-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 12px;
      padding: 18px;
    }
    .pet {
      border-radius: 18px;
      padding: 0;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.06);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      text-align: center;
      min-height: 168px;
      transition: transform .16s ease, border-color .16s ease, background .16s ease;
    }
    .pet:hover {
      transform: translateY(-2px);
      border-color: color-mix(in srgb, var(--accent) 65%, white 8%);
      background: rgba(255,255,255,0.05);
    }
    .pet-card-link {
      display: flex;
      flex: 1 1 auto;
      width: 100%;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      text-align: center;
      color: inherit;
      text-decoration: none;
      padding: 14px 12px 12px;
      min-height: 100%;
      box-sizing: border-box;
    }
    .pet-card-link:hover { color: inherit; }
    .pet-card-link img { cursor: pointer; }
    .pet img {
      width: 78px;
      height: 78px;
      object-fit: contain;
      filter: drop-shadow(0 14px 16px rgba(0,0,0,.45));
      margin-bottom: 10px;
      image-rendering: auto;
    }
    .pet .name {
      font-size: 0.93rem;
      line-height: 1.2;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 8px;
      text-wrap: balance;
    }
    .pet.hidden { display: none; }
    .pet .badge {
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: color-mix(in srgb, var(--accent) 75%, white 10%);
      margin-bottom: 2px;
    }
    footer {
      padding: 16px 8px 0;
      color: rgba(230,235,245,0.55);
      font-size: 12px;
      line-height: 1.6;
      text-align: center;
    }
    .hidden { display: none; }
    @media (max-width: 700px) {
      .shell { padding-inline: 12px; }
      .tier-header { flex-direction: column; align-items: flex-start; }
      .pet-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
    }
