.breed-tool {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.breed-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 18px;
    align-items: stretch;
}

.breed-hero-copy,
.breed-map-card,
.breed-panel,
.breed-rule-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(24, 49, 39, .94), rgba(13, 27, 22, .98));
    box-shadow: var(--shadow);
}

.breed-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: clamp(18px, 3vw, 30px);
}

.breed-hero-copy h2,
.breed-panel h2 {
    margin: 0;
    color: #fff;
    letter-spacing: 0;
}

.breed-hero-copy h2 {
    max-width: 780px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.02;
}

.breed-lede {
    max-width: 820px;
    margin: 0;
    color: var(--text);
    font-size: 16px;
}

.breed-answer-strip,
.breed-links,
.breed-filter-row,
.breed-progress,
.breed-planner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.breed-answer-strip span,
.breed-links a,
.breed-badge {
    border-radius: 6px;
    border: 1px solid rgba(226, 180, 67, .32);
    background: rgba(226, 180, 67, .11);
    color: var(--gold-2);
    font-weight: 800;
}

.breed-answer-strip span {
    padding: 8px 10px;
}

.breed-map-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
}

.breed-map-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: contain;
    background: #06100d;
    image-rendering: pixelated;
}

.breed-map-card figcaption {
    padding: 12px 14px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.breed-links a {
    padding: 8px 10px;
    color: #f8ddb0;
}

.breed-panel {
    padding: clamp(16px, 2.6vw, 24px);
}

.breed-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.breed-loop-grid,
.breed-check-grid,
.breed-card-grid {
    display: grid;
    gap: 12px;
}

.breed-loop-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.breed-loop-grid article,
.breed-check,
.breed-planner-result {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 16, 13, .55);
}

.breed-loop-grid article {
    min-height: 120px;
    padding: 14px;
}

.breed-loop-grid strong,
.breed-loop-grid span,
.breed-check span,
.breed-check strong,
.breed-check em {
    display: block;
}

.breed-loop-grid strong,
.breed-check strong {
    color: #fff;
}

.breed-loop-grid span,
.breed-check em,
.breed-rule-card p,
.breed-note p {
    color: var(--muted);
}

.breed-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.breed-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 12px;
}

.breed-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--gold);
}

.breed-progress {
    justify-content: space-between;
    margin-top: 12px;
    color: var(--muted);
}

.breed-progress button,
.breed-planner select,
.breed-filter-row input,
.breed-filter-row select {
    min-height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #0b1713;
    color: var(--text);
}

.breed-progress button {
    padding: 0 12px;
    cursor: pointer;
}

.breed-planner {
    align-items: stretch;
    margin-bottom: 14px;
}

.breed-planner label {
    display: grid;
    gap: 6px;
    min-width: min(100%, 320px);
    color: var(--muted);
    font-weight: 800;
}

.breed-planner select {
    padding: 0 10px;
}

.breed-planner-result {
    display: grid;
    gap: 5px;
    flex: 1 1 320px;
    padding: 11px 12px;
}

.breed-planner-result strong {
    color: var(--gold-2);
}

.breed-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.breed-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.breed-table th,
.breed-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.breed-table th {
    background: rgba(226, 180, 67, .12);
    color: #ffe3a2;
    font-size: 12px;
    text-transform: uppercase;
}

.breed-table td {
    color: var(--text);
}

.breed-table tr:last-child td {
    border-bottom: 0;
}

.breed-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.breed-rule-card {
    padding: 16px;
}

.breed-rule-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    image-rendering: pixelated;
}

.breed-rule-card h3 {
    margin: 10px 0 8px;
    color: #fff;
    font-size: 18px;
}

.breed-rule-card p,
.breed-note p {
    margin: 0;
}

.breed-filter-row {
    margin-bottom: 12px;
}

.breed-filter-row input,
.breed-filter-row select {
    padding: 0 10px;
}

.breed-filter-row input {
    flex: 1 1 260px;
}

.breed-filter-row select {
    flex: 0 1 220px;
}

.breed-note {
    border-color: rgba(101, 168, 255, .28);
    background: linear-gradient(180deg, rgba(20, 45, 55, .92), rgba(13, 27, 22, .98));
}

@media (max-width: 960px) {
    .breed-hero,
    .breed-loop-grid,
    .breed-check-grid,
    .breed-card-grid {
        grid-template-columns: 1fr;
    }

    .breed-map-card img {
        min-height: 220px;
    }
}

@media (max-width: 620px) {
    .breed-section-heading {
        display: block;
    }

    .breed-hero-copy h2 {
        font-size: 30px;
    }

    .breed-panel,
    .breed-hero-copy {
        padding: 16px;
    }

    .breed-filter-row select,
    .breed-progress button {
        width: 100%;
    }
}
