/* Pokémon Baby Names (/extras/pokemon-names/) */
.pbn [hidden] { display: none !important; }

/* toolbar: three rows (search + sort, generation chips, verdict chips) */
.pbn-bar { flex-direction: column; align-items: stretch; gap: 8px; }
.pbn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pbn-row .stabs { margin: 0; }
.pbn-q { flex: 1 1 220px; min-width: 0; }
.pbn-sort { flex: 0 1 auto; min-width: 0; }
.pbn-label { width: 80px; color: var(--muted); font-size: 13px; }
.pbn .stabs button { display: inline-flex; align-items: baseline; gap: 6px; transition: border-color var(--fast); }
.pbn .stabs button:hover { border-color: var(--accent); }
.pbn .stabs .n { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pbn-count { margin: 0 0 12px; font-size: 13px; }

/* tile grid */
.pbn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); gap: 10px; }
.pbn .sec-h + .pbn-grid { content-visibility: auto; contain-intrinsic-size: auto 600px; }
.pbn-tile {
    display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    color: var(--text); font: inherit; text-align: left; cursor: pointer;
    transition: border-color var(--fast), transform var(--fast);
}
.pbn-tile:hover, .pbn-tile.on { border-color: var(--accent); transform: translateY(-2px); }
.pbn-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pbn-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pbn-num { color: var(--muted); font-size: 12px; }
.pbn-spr {
    flex: none; align-self: center; width: 64px; height: 64px;
    background-image: var(--pbn-sheet); background-repeat: no-repeat; background-size: 2048px 2112px;
}
.pbn-name { overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.pbn-name mark { background: none; color: var(--highlight); }

/* score pill and meter: --sc is set inline per score, 0 pure red through to 10 pure green */
.pbn-score { padding: 1px 8px; background: var(--sc, var(--card2)); color: #000; border-radius: 999px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pbn-meter { display: block; height: 4px; overflow: hidden; background: rgb(255 255 255 / .08); border-radius: 999px; }
.pbn-meter i { display: block; height: 100%; background: var(--sc, var(--accent)); }

.pbn-empty { padding: 28px 0; }
.pbn-credit { margin: 28px 0 0; font-size: 13px; }

/* floating verdict card */
.pbn-tip {
    position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 8px;
    width: min(300px, calc(100vw - 32px)); padding: 14px 16px;
    background: var(--card2); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
    box-shadow: var(--lift); color: var(--text); pointer-events: none;
}
.pbn-tip[hidden] { display: none; }
.pbn-tip-head { display: flex; align-items: center; gap: 12px; }
.pbn-tip-name { min-width: 0; }
.pbn-tip-name b { display: block; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.pbn-tip-name span { color: var(--muted); font-size: 13px; }
.pbn-tip-score { flex: none; margin-left: auto; text-align: right; }
.pbn-tip-score b { font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.pbn-tip-score span { color: var(--muted); font-size: 13px; }
.pbn-tip .pbn-score { align-self: flex-start; font-weight: 400; }
.pbn-tip p { margin: 0; font-size: 14px; }

@media (max-width: 560px) {
    .pbn-bar { position: static; }
    .pbn-label { width: 100%; }
}
