/* Concrete biome sources: match the compact Rocket Pokédex panels. */
.page-pokemon-wiki .spawn-biome-sources {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.page-pokemon-wiki .spawn-biome-source {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(0,0,0,.13);
}
.page-pokemon-wiki .spawn-biome-source__heading {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
}
.page-pokemon-wiki .spawn-biome-source__heading .spawn-ui-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}
.page-pokemon-wiki .spawn-biome-source__heading h5 {
    flex: 1;
    margin: 0;
    color: #fff;
    font: 900 .74rem/1.25 Roboto, sans-serif;
}
.page-pokemon-wiki .spawn-biome-source__heading > span {
    color: var(--rocket-muted);
    font-size: .62rem;
    white-space: nowrap;
}
.page-pokemon-wiki .spawn-biome-source .spawn-biomes-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr));
}
.page-pokemon-wiki .spawn-biome-source .spawn-biome-card {
    min-height: 43px;
    padding: 8px;
}
.page-pokemon-wiki .spawn-biome-source .spawn-biome-card strong { font-size: .71rem; }
.page-pokemon-wiki .spawn-biome-source .spawn-biome-card span { font-size: .6rem; }
.page-pokemon-wiki .spawn-biome-source__empty,
.page-pokemon-wiki .spawn-biome-base {
    margin: 7px 0 0;
    color: var(--rocket-muted);
    font-size: .65rem;
    line-height: 1.55;
}
.page-pokemon-wiki .spawn-condition-biomes {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px;
}
.page-pokemon-wiki .spawn-condition-biomes > strong {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-size: .69rem;
}
.page-pokemon-wiki .spawn-condition-biomes > p { font-size: .68rem; }
.page-pokemon-wiki .spawn-encounter-biomes { margin-bottom: 8px; }
.page-pokemon-wiki .spawn-biome-source summary:focus-visible {
    outline: 2px solid var(--rocket-red, #e51c2f);
    outline-offset: 3px;
}
@media (max-width: 640px) {
    .page-pokemon-wiki .spawn-biome-sources { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
    .page-pokemon-wiki .spawn-biome-source .spawn-biome-card { transition: border-color .18s ease, background .18s ease; }
    .page-pokemon-wiki .spawn-biome-source .spawn-biome-card:hover { border-color: rgba(229,28,47,.3); background: rgba(229,28,47,.045); }
}

/* Requirement values have their own row: long material names never compete
   with an icon/label/value grid column. Lists keep the logical OR explicit. */
.page-pokemon-wiki .spawn-encounter .spawn-condition-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 8px;
}
.page-pokemon-wiki .spawn-condition-card--readable {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px;
    min-height: 68px;
}
.page-pokemon-wiki .spawn-condition-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.page-pokemon-wiki .spawn-condition-heading .spawn-ui-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    object-fit: contain;
    image-rendering: pixelated;
}
.page-pokemon-wiki .spawn-condition-heading > span {
    min-width: 0;
    font-size: .7rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.page-pokemon-wiki .spawn-condition-card--readable > .spawn-condition-value {
    display: block;
    font-size: .83rem;
    line-height: 1.4;
    white-space: normal;
}
.page-pokemon-wiki .spawn-condition-card--wide { grid-column: span 2; }
.page-pokemon-wiki .spawn-condition-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}
.page-pokemon-wiki .spawn-condition-options > li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    padding: 5px 7px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 6px;
    background: rgba(255,255,255,.035);
}
.page-pokemon-wiki .spawn-condition-options > li > strong {
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}
.page-pokemon-wiki .spawn-condition-options .spawn-material-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
    image-rendering: pixelated;
}
.page-pokemon-wiki .spawn-condition-hint {
    margin: -2px 0 0;
    color: var(--rocket-muted);
    font-size: .66rem;
    line-height: 1.4;
}
.page-pokemon-wiki .spawn-condition-more { margin: 0; }
.page-pokemon-wiki .spawn-preset,
.page-pokemon-wiki .spawn-frequency {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.page-pokemon-wiki .spawn-preset > h5,
.page-pokemon-wiki .spawn-frequency > h5 {
    margin: 0 0 8px;
    color: #dedee5;
    font: 700 .72rem/1.4 Roboto, sans-serif;
}
.page-pokemon-wiki .spawn-frequency > h5 { color: var(--rocket-gold); }
.page-pokemon-wiki .spawn-condition-card--readable.is-excluded { border-color: rgba(229,28,47,.2); }
@media (max-width: 750px) {
    .page-pokemon-wiki .spawn-encounter .spawn-condition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-pokemon-wiki .spawn-condition-card--wide { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
    .page-pokemon-wiki .spawn-encounter .spawn-condition-grid { grid-template-columns: minmax(0, 1fr); }
}

.page-pokemon-wiki .spawn-condition-heading .spawn-sky-icon { mix-blend-mode: screen; }
