.page-header--breeding {
    background:
        radial-gradient(circle at 85% 28%, rgba(242, 201, 76, .17), transparent 28%),
        radial-gradient(circle at 75% 82%, rgba(89, 199, 230, .11), transparent 30%),
        linear-gradient(135deg, rgba(229, 28, 47, .14), transparent 54%),
        #121318;
}

.page-header__art--breeding {
    width: min(100%, 220px);
    align-self: center;
}

.page-header__art--breeding img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .52));
}

.breeding-main {
    display: grid;
    gap: 24px;
}

.breeding-tabs {
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid var(--rocket-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, .025);
}

.breeding-tab {
    min-height: 82px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: transparent;
    color: var(--rocket-muted);
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.breeding-tab > span {
    grid-row: 1 / 3;
}

.breeding-tab strong {
    color: #fff;
    font-size: .98rem;
}

.breeding-tab small {
    font-size: .76rem;
}

.breeding-tab:hover,
.breeding-tab:focus-visible {
    border-color: rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .04);
    color: #fff;
}

.breeding-tab.is-active {
    border-color: rgba(229, 28, 47, .46);
    background: linear-gradient(135deg, rgba(229, 28, 47, .2), rgba(229, 28, 47, .06));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.breeding-tab:focus-visible {
    outline: 3px solid rgba(229, 28, 47, .18);
    outline-offset: 3px;
}

.breeding-panel {
    display: grid;
    gap: 24px;
}

.breeding-panel[hidden] {
    display: none;
}

.breeding-professor {
    min-height: 300px;
    padding: clamp(26px, 4vw, 44px);
    display: grid;
    grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 56px);
    overflow: hidden;
    border: 1px solid var(--rocket-border);
    border-radius: var(--rocket-radius-lg);
    background:
        radial-gradient(circle at 13% 80%, rgba(242, 201, 76, .11), transparent 28%),
        linear-gradient(115deg, rgba(255, 255, 255, .025), transparent 52%),
        #121318;
}

.breeding-professor__pokemon {
    position: relative;
    display: grid;
    place-items: center;
}

.breeding-professor__pokemon::before {
    content: "";
    width: 210px;
    height: 210px;
    position: absolute;
    border: 1px dashed rgba(242, 201, 76, .28);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 201, 76, .08), transparent 68%);
}

.breeding-professor__pokemon img {
    width: min(100%, 220px);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 24px 25px rgba(0, 0, 0, .5));
}

.breeding-professor__speech {
    padding: clamp(24px, 4vw, 38px);
    position: relative;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px;
    background: rgba(255, 255, 255, .035);
}

.breeding-professor__speech::before {
    content: "";
    width: 24px;
    height: 24px;
    position: absolute;
    left: -13px;
    top: 50%;
    border-left: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: #17181d;
    transform: translateY(-50%) rotate(45deg);
}

.breeding-professor__speech h2,
.breeding-section-heading h2,
.breeding-workspace-heading h2,
.breeding-projects-heading h2,
.breeding-rules h2 {
    margin: 10px 0 14px;
    color: #fff;
    font-size: clamp(1.75rem, 3.4vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.breeding-professor__speech p,
.breeding-section-heading > p,
.breeding-workspace-heading p,
.breeding-projects-heading p,
.breeding-rules p {
    color: var(--rocket-muted);
    line-height: 1.7;
}

.breeding-professor__speech .button {
    margin-top: 10px;
}

.breeding-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.breeding-guide-card {
    min-height: 230px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rocket-border);
    border-radius: 19px;
    background: #121318;
}

.breeding-guide-card::after {
    content: "";
    width: 130px;
    height: 130px;
    position: absolute;
    right: -52px;
    bottom: -62px;
    border-radius: 50%;
    background: rgba(229, 28, 47, .065);
}

.breeding-guide-card > span {
    display: inline-flex;
    color: var(--rocket-red-strong);
    font-family: "Press Start 2P", monospace;
    font-size: .82rem;
}

.breeding-guide-card h3 {
    margin: 24px 0 10px;
    color: #fff;
    font-size: 1.2rem;
}

.breeding-guide-card p {
    margin: 0;
    color: var(--rocket-muted);
    font-size: .92rem;
    line-height: 1.65;
}

.breeding-example,
.breeding-objective-card,
.breeding-incubator-card,
.breeding-recommendation,
.breeding-history,
.breeding-projects-heading,
.breeding-rules {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--rocket-border);
    border-radius: var(--rocket-radius-lg);
    background: rgba(255, 255, 255, .018);
}

.breeding-section-heading,
.breeding-workspace-heading,
.breeding-projects-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.breeding-section-heading > div,
.breeding-workspace-heading > div,
.breeding-projects-heading > div {
    min-width: 0;
}

.breeding-section-heading > p {
    max-width: 430px;
    margin: 0;
}

.breeding-example__stage {
    margin-top: 30px;
    padding: clamp(22px, 4vw, 38px);
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr) auto minmax(170px, 1fr);
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(89, 199, 230, .035) 1px, transparent 1px),
        linear-gradient(rgba(89, 199, 230, .035) 1px, transparent 1px),
        #0f1014;
    background-size: 28px 28px;
}

.breeding-sprite-card,
.breeding-parent-slot,
.breeding-egg-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.breeding-sprite-card {
    min-height: 250px;
    padding: 22px 16px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 19px;
    background: #15161b;
    outline: none;
}

.breeding-sprite-card:hover,
.breeding-sprite-card:focus-visible {
    border-color: rgba(242, 201, 76, .38);
}

.breeding-sprite-card img {
    width: min(100%, 170px);
    height: 170px;
    object-fit: contain;
    filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .55));
}

.breeding-sprite-card--egg img {
    height: 150px;
}

.breeding-sprite-card__label,
.breeding-parent-slot__role {
    align-self: flex-start;
    color: var(--rocket-blue);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.breeding-sprite-card > strong {
    margin-top: 10px;
    font-size: 1rem;
}

.breeding-stage-connector,
.breeding-stage-arrow {
    color: var(--rocket-faint);
    font-size: 1.8rem;
    font-weight: 900;
}

.breeding-stage-arrow {
    color: var(--rocket-red-strong);
}

.breeding-hover-card {
    width: min(320px, calc(100vw - 36px));
    padding: 18px;
    position: absolute;
    left: 50%;
    bottom: calc(100% - 8px);
    z-index: 30;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: #1a1b21;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .55);
    text-align: left;
    transform: translate(-50%, 10px);
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.breeding-sprite-card:hover .breeding-hover-card,
.breeding-sprite-card:focus-visible .breeding-hover-card,
.breeding-parent-slot:hover .breeding-hover-card,
.breeding-parent-slot:focus-visible .breeding-hover-card,
.breeding-egg-slot:hover .breeding-hover-card,
.breeding-egg-slot:focus-visible .breeding-hover-card {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

.breeding-hover-card__kicker {
    color: var(--rocket-red-strong);
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.breeding-hover-card h3 {
    margin: 7px 0 14px;
    color: #fff;
    font-size: 1.18rem;
}

.breeding-hover-card dl {
    margin: 0;
    display: grid;
    gap: 7px;
}

.breeding-hover-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.breeding-hover-card dt {
    color: var(--rocket-faint);
    font-size: .76rem;
    font-weight: 800;
}

.breeding-hover-card dd {
    margin: 0;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    text-align: right;
}

.breeding-iv-row {
    margin-top: 13px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.breeding-iv-row span {
    padding: 6px 7px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    color: #dddde3;
    font-size: .66rem;
    font-weight: 800;
    text-align: center;
}

.breeding-example__result {
    margin-top: 18px;
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    border-left: 3px solid var(--rocket-red);
    border-radius: 0 14px 14px 0;
    background: rgba(229, 28, 47, .055);
    color: var(--rocket-muted);
}

.breeding-example__result strong {
    color: #fff;
}

.breeding-rules {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 40px;
    background:
        linear-gradient(135deg, rgba(242, 201, 76, .08), transparent 52%),
        rgba(255, 255, 255, .018);
}

.breeding-rules h2 {
    font-size: clamp(1.55rem, 2.7vw, 2.25rem);
}

.breeding-rules p {
    margin: 0;
}

.breeding-workspace-heading {
    padding: 8px 4px 4px;
}

.breeding-workspace-heading h2,
.breeding-projects-heading h2 {
    margin-bottom: 8px;
}

.breeding-workspace-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.breeding-workspace-title h2 {
    margin: 0;
}

.breeding-project-name-edit {
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 9px;
    background: rgba(255, 255, 255, .035);
    color: var(--rocket-muted);
    font: inherit;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}

.breeding-project-name-edit:hover,
.breeding-project-name-edit:focus-visible {
    border-color: rgba(229, 28, 47, .45);
    color: #fff;
}

.breeding-workspace-heading p,
.breeding-projects-heading p {
    margin: 0;
}

.breeding-workspace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.breeding-planner-layout {
    display: grid;
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
    gap: 18px;
}

.breeding-card-heading {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.breeding-card-heading h3 {
    margin: 7px 0 0;
    color: #fff;
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

.breeding-progress-badge,
.breeding-incubator-status {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--rocket-gold);
    font-size: .72rem;
    font-weight: 900;
}

.breeding-incubator-status.is-running {
    color: var(--rocket-blue);
}

.breeding-incubator-status.is-ready {
    border-color: rgba(66, 207, 133, .32);
    background: rgba(66, 207, 133, .08);
    color: var(--rocket-green);
}

.breeding-target-picker {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.breeding-target-preview {
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 20px;
    background: #0f1014;
}

.breeding-target-preview img {
    width: 94px;
    height: 94px;
    object-fit: contain;
    filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .45));
}

.breeding-target-search {
    position: relative;
}

.breeding-target-search label,
.breeding-objective-fields label,
.breeding-editor-grid label {
    display: grid;
    gap: 7px;
}

.breeding-target-search label,
.breeding-target-search > label,
.breeding-objective-fields label > span,
.breeding-editor-grid label > span,
.breeding-goal-ivs legend,
.breeding-editor-ivs legend {
    color: #d7d7dd;
    font-size: .78rem;
    font-weight: 900;
}

.breeding-target-search input,
.breeding-objective-fields input,
.breeding-objective-fields select,
.breeding-goal-iv input,
.breeding-editor-grid input,
.breeding-editor-grid select,
.breeding-editor-iv input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 12px;
    background: #0f1014;
    color: #fff;
    outline: none;
}

.breeding-target-search input:focus,
.breeding-objective-fields input:focus,
.breeding-objective-fields select:focus,
.breeding-goal-iv input:focus,
.breeding-editor-grid input:focus,
.breeding-editor-grid select:focus,
.breeding-editor-iv input:focus {
    border-color: rgba(229, 28, 47, .7);
    box-shadow: 0 0 0 3px rgba(229, 28, 47, .12);
}


.breeding-field-note {
    min-height: 16px;
    color: var(--rocket-muted);
    font-size: .7rem;
    line-height: 1.35;
}

.breeding-field-note.is-hidden-ability {
    color: #f2c94c;
}

.breeding-objective-fields select:disabled,
.breeding-editor-grid select:disabled {
    cursor: wait;
    opacity: .68;
}

.breeding-search-results {
    width: 100%;
    max-height: 260px;
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 40;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    background: #17181e;
    box-shadow: 0 20px 46px rgba(0, 0, 0, .48);
}

.breeding-search-option {
    width: 100%;
    min-height: 58px;
    padding: 9px 12px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.breeding-search-option:last-child {
    border-bottom: 0;
}

.breeding-search-option:hover,
.breeding-search-option:focus-visible {
    background: rgba(229, 28, 47, .1);
}

.breeding-search-option img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.breeding-search-option strong {
    text-transform: capitalize;
}

.breeding-search-option span {
    color: var(--rocket-faint);
    font-size: .75rem;
    font-weight: 800;
}

.breeding-objective-fields {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.breeding-objective-fields label:last-child {
    grid-column: 1 / -1;
}

.breeding-goal-ivs,
.breeding-editor-ivs {
    margin: 22px 0 0;
    padding: 0;
    border: 0;
}

.breeding-goal-ivs legend small {
    display: block;
    margin-top: 4px;
    color: var(--rocket-faint);
    font-weight: 500;
}

.breeding-goal-ivs > div,
.breeding-editor-ivs > div {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.breeding-goal-iv,
.breeding-editor-iv {
    display: grid;
    gap: 6px;
}

.breeding-goal-iv span,
.breeding-editor-iv span {
    color: var(--rocket-faint);
    font-size: .69rem;
    font-weight: 900;
    text-align: center;
}

.breeding-goal-iv input,
.breeding-editor-iv input {
    min-height: 42px;
    padding: 8px;
    text-align: center;
}

.breeding-goal-checklist {
    margin-top: 22px;
    display: grid;
    gap: 8px;
}

.breeding-goal-item {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 11px;
    background: rgba(255, 255, 255, .025);
    color: var(--rocket-muted);
    font-size: .82rem;
}

.breeding-goal-item strong {
    color: #fff;
}

.breeding-goal-item.is-complete > span:last-child {
    color: var(--rocket-green);
}

.breeding-goal-item.is-missing > span:last-child {
    color: var(--rocket-danger);
}

.breeding-incubator-card {
    overflow: visible;
    background:
        radial-gradient(circle at 50% 58%, rgba(89, 199, 230, .12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 46%),
        #111217;
}

.breeding-incubator-stage {
    min-height: 360px;
    padding: 32px 20px 24px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 54px minmax(150px, .8fr) 54px minmax(150px, 1fr);
    align-items: end;
    gap: 0;
    overflow: visible;
    border: 1px solid rgba(89, 199, 230, .13);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(89, 199, 230, .035) 1px, transparent 1px),
        linear-gradient(rgba(89, 199, 230, .035) 1px, transparent 1px),
        #0c0e12;
    background-size: 25px 25px;
}

.breeding-incubator-stage::before {
    content: "";
    width: 58%;
    height: 112px;
    position: absolute;
    left: 21%;
    bottom: 16px;
    z-index: 0;
    border: 1px solid rgba(89, 199, 230, .2);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(89, 199, 230, .1), transparent 68%);
    box-shadow: 0 0 42px rgba(89, 199, 230, .1);
    pointer-events: none;
}

.breeding-parent-slot,
.breeding-egg-slot {
    min-width: 0;
    min-height: 270px;
    padding: 17px 13px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 19px;
    background: rgba(20, 21, 26, .92);
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: border-color 170ms ease, transform 170ms ease, background 170ms ease;
}

.breeding-parent-slot:hover,
.breeding-parent-slot:focus-visible,
.breeding-egg-slot:hover,
.breeding-egg-slot:focus-visible {
    border-color: rgba(89, 199, 230, .42);
    background: #17191f;
    transform: translateY(-4px);
    outline: none;
}

.breeding-parent-slot__image {
    width: 150px;
    height: 150px;
    margin: 6px auto 4px;
    display: grid;
    place-items: center;
}

.breeding-parent-slot__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .52));
}

.breeding-parent-slot > strong,
.breeding-egg-slot > strong {
    margin-top: 3px;
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: .95rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breeding-parent-slot > small,
.breeding-egg-slot > small {
    margin-top: 4px;
    color: var(--rocket-faint);
    font-size: .72rem;
}

.breeding-incubator-tube {
    height: 8px;
    margin-bottom: 130px;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #2f6472, #153640);
    box-shadow: 0 0 18px rgba(89, 199, 230, .22);
}

.breeding-incubator-tube::before,
.breeding-incubator-tube::after {
    content: "";
    width: 15px;
    height: 15px;
    position: absolute;
    top: 50%;
    border: 3px solid #244d58;
    border-radius: 50%;
    background: #0f171b;
    transform: translateY(-50%);
}

.breeding-incubator-tube::before {
    left: -8px;
}

.breeding-incubator-tube::after {
    right: -8px;
}

.breeding-egg-slot {
    min-height: 240px;
    align-self: center;
    border-color: rgba(242, 201, 76, .22);
    background: rgba(19, 19, 17, .94);
}

.breeding-egg-slot__ring {
    width: 130px;
    height: 130px;
    position: absolute;
    top: 45px;
    border: 1px solid rgba(242, 201, 76, .22);
    border-radius: 50%;
    box-shadow: 0 0 34px rgba(242, 201, 76, .1), inset 0 0 28px rgba(242, 201, 76, .07);
    animation: breedingPulse 2.4s ease-in-out infinite;
}

.breeding-egg-slot img {
    width: 138px;
    height: 138px;
    position: relative;
    z-index: 1;
    object-fit: contain;
    filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .5));
}

@keyframes breedingPulse {
    0%, 100% { transform: scale(.96); opacity: .7; }
    50% { transform: scale(1.04); opacity: 1; }
}

.breeding-incubator-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.breeding-incubator-actions .button:disabled {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .035);
    color: rgba(255, 255, 255, .34);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.breeding-analysis-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    gap: 18px;
}

.breeding-recommendation__empty,
.breeding-history__empty,
.breeding-projects-empty {
    padding: 24px;
    border: 1px dashed rgba(255, 255, 255, .13);
    border-radius: 16px;
    color: var(--rocket-muted);
    text-align: center;
}

.breeding-recommendation__hero {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: #111217;
}

.breeding-recommendation__hero strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
}

.breeding-recommendation__hero p {
    margin: 8px 0 0;
    color: var(--rocket-muted);
}

.breeding-recommendation__stats {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.breeding-recommendation__stats div {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    text-align: center;
}

.breeding-recommendation__stats span {
    display: block;
    color: var(--rocket-faint);
    font-size: .68rem;
    font-weight: 800;
}

.breeding-recommendation__stats strong {
    margin-top: 4px;
    color: #fff;
}

.breeding-recommendation__list {
    margin: 15px 0 0;
    padding: 0;
    display: grid;
    gap: 7px;
    list-style: none;
}

.breeding-recommendation__list li {
    padding-left: 22px;
    position: relative;
    color: #c7c7ce;
    font-size: .86rem;
}

.breeding-recommendation__list li::before {
    content: "";
    width: 8px;
    height: 8px;
    position: absolute;
    left: 2px;
    top: .42em;
    border: 2px solid var(--rocket-green);
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}

.breeding-recommendation-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.breeding-recommendation-actions[hidden] {
    display: none;
}

.breeding-history-list {
    max-height: 430px;
    display: grid;
    gap: 10px;
    overflow-y: auto;
}

.breeding-history-item {
    padding: 14px 15px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 13px;
    background: #111217;
}

.breeding-history-item__number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(229, 28, 47, .12);
    color: var(--rocket-red-strong);
    font-family: "Press Start 2P", monospace;
    font-size: .62rem;
}

.breeding-history-item strong {
    display: block;
    color: #fff;
}

.breeding-history-item p {
    margin: 4px 0 0;
    color: var(--rocket-muted);
    font-size: .8rem;
}

.breeding-projects-heading {
    background:
        linear-gradient(135deg, rgba(229, 28, 47, .08), transparent 52%),
        rgba(255, 255, 255, .018);
}

.breeding-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.breeding-project-card {
    padding: 18px;
    display: grid;
    gap: 14px;
    border: 1px solid var(--rocket-border);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .025), transparent 55%),
        #121318;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.breeding-project-card:hover,
.breeding-project-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(229, 28, 47, .42);
    outline: none;
    background:
        linear-gradient(145deg, rgba(229, 28, 47, .055), transparent 58%),
        #14151a;
}

.breeding-project-card.is-current {
    border-color: rgba(242, 201, 76, .35);
}

.breeding-project-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.breeding-project-card__top h3 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.35;
}

.breeding-project-card__top p {
    margin: 4px 0 0;
    color: var(--rocket-faint);
    font-size: .7rem;
}

.breeding-project-card__current {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid rgba(242, 201, 76, .26);
    border-radius: 999px;
    background: rgba(242, 201, 76, .08);
    color: var(--rocket-gold);
    font-size: .62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.breeding-project-card__parents {
    min-height: 96px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 15px;
    background: rgba(0, 0, 0, .18);
}

.breeding-project-parent {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
}

.breeding-project-parent__sprite {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
}

.breeding-project-parent__sprite img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45));
}

.breeding-project-parent small,
.breeding-project-parent strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breeding-project-parent small {
    color: var(--rocket-faint);
    font-size: .6rem;
    text-transform: uppercase;
}

.breeding-project-parent strong {
    max-width: 105px;
    color: #fff;
    font-size: .72rem;
}

.breeding-project-card__plus {
    color: var(--rocket-red-strong);
    font-family: "Press Start 2P", monospace;
    font-size: .78rem;
}

.breeding-project-card__progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
}

.breeding-project-card__progress span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--rocket-red), var(--rocket-gold));
}

.breeding-project-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--rocket-faint);
    font-size: .68rem;
}

.breeding-project-card__actions {
    padding-top: 2px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.breeding-project-card__rename,
.breeding-project-card__delete {
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    color: var(--rocket-muted);
    font: inherit;
    font-size: .7rem;
    font-weight: 800;
    cursor: pointer;
}

.breeding-project-card__rename:hover,
.breeding-project-card__rename:focus-visible {
    border-color: rgba(242, 201, 76, .35);
    color: #fff;
}

.breeding-project-card__delete:hover,
.breeding-project-card__delete:focus-visible {
    border-color: rgba(255, 83, 100, .45);
    background: rgba(255, 83, 100, .1);
    color: var(--rocket-danger);
}

.breeding-project-modal {
    padding: 18px;
    position: fixed;
    inset: 0;
    z-index: 16500;
    display: grid;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(3, 3, 5, .86);
    backdrop-filter: blur(12px);
    transition: opacity 170ms ease, visibility 170ms ease;
}

.breeding-project-modal.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.breeding-project-modal__panel {
    width: min(100%, 470px);
    padding: 26px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(229, 28, 47, .08), transparent 48%),
        #111217;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .58);
}

.breeding-project-modal__panel--danger {
    border-color: rgba(255, 83, 100, .22);
}

.breeding-project-modal__panel h2 {
    margin: 7px 42px 8px 0;
    color: #fff;
    font-size: 1.35rem;
}

.breeding-project-modal__panel > p {
    margin: 0;
    color: var(--rocket-muted);
    font-size: .84rem;
    line-height: 1.55;
}

.breeding-project-modal__close {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.breeding-project-name-field {
    margin-top: 20px;
    display: grid;
    gap: 8px;
}

.breeding-project-name-field span {
    color: #fff;
    font-size: .76rem;
    font-weight: 900;
}

.breeding-project-name-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: #0c0d11;
    color: #fff;
    font: inherit;
}

.breeding-project-name-field input:focus {
    border-color: rgba(229, 28, 47, .55);
    outline: 2px solid rgba(229, 28, 47, .12);
}

.breeding-project-modal__actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.breeding-project-delete-preview {
    margin-top: 18px;
    padding: 14px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(255, 83, 100, .15);
    border-radius: 13px;
    background: rgba(255, 83, 100, .055);
}

.breeding-project-delete-preview strong {
    color: #fff;
}

.breeding-project-delete-preview span {
    color: var(--rocket-muted);
    font-size: .76rem;
}

.breeding-button-danger {
    border-color: rgba(255, 83, 100, .42);
    background: rgba(255, 83, 100, .14);
    color: #fff;
}

.breeding-button-danger:hover,
.breeding-button-danger:focus-visible {
    background: rgba(255, 83, 100, .24);
}

.breeding-editor-modal {
    padding: 18px;
    position: fixed;
    inset: 0;
    z-index: 16000;
    display: grid;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(3, 3, 5, .84);
    backdrop-filter: blur(12px);
    transition: opacity 170ms ease, visibility 170ms ease;
}

.breeding-editor-modal.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.breeding-editor-modal__panel {
    width: min(100%, 620px);
    max-height: calc(100dvh - 36px);
    padding: clamp(24px, 4vw, 38px);
    position: relative;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 0, rgba(89, 199, 230, .11), transparent 30%),
        #121318;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .62);
}

.breeding-editor-modal__panel h2 {
    margin: 8px 0 22px;
    color: #fff;
    font-size: clamp(1.65rem, 4vw, 2.3rem);
}

.breeding-editor-modal__close {
    width: 40px;
    height: 40px;
    position: absolute;
    right: 15px;
    top: 15px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
}

.breeding-editor-modal__close:hover,
.breeding-editor-modal__close:focus-visible {
    border-color: var(--rocket-red);
    background: var(--rocket-red);
}

.breeding-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.breeding-editor-grid__wide {
    grid-column: 1 / -1;
}

.breeding-editor-modal__actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.breeding-wiki-cta {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.breeding-wiki-cta p {
    margin: 0;
}

@media (max-width: 1100px) {
    .breeding-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .breeding-planner-layout,
    .breeding-analysis-grid {
        grid-template-columns: 1fr;
    }

    .breeding-objective-card {
        order: 1;
    }

    .breeding-incubator-card {
        order: 2;
    }
}

@media (max-width: 850px) {
    .breeding-tabs {
        grid-template-columns: 1fr;
    }

    .breeding-tab {
        min-height: 68px;
    }

    .breeding-professor {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .breeding-professor__pokemon::before {
        width: 150px;
        height: 150px;
    }

    .breeding-example__stage {
        grid-template-columns: 1fr;
    }

    .breeding-stage-connector,
    .breeding-stage-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }

    .breeding-incubator-stage {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .breeding-incubator-stage::before {
        display: none;
    }

    .breeding-incubator-tube {
        width: 8px;
        height: 38px;
        margin: 0 auto;
        background: linear-gradient(90deg, #2f6472, #153640);
    }

    .breeding-incubator-tube::before,
    .breeding-incubator-tube::after {
        left: 50%;
        right: auto;
        top: auto;
        transform: translateX(-50%);
    }

    .breeding-incubator-tube::before {
        top: -7px;
    }

    .breeding-incubator-tube::after {
        bottom: -7px;
    }

    .breeding-parent-slot,
    .breeding-egg-slot {
        width: min(100%, 360px);
        justify-self: center;
    }

    .breeding-rules {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 660px) {
    .page-header__art--breeding {
        width: 110px;
    }

    .breeding-professor {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .breeding-professor__pokemon img {
        width: 160px;
    }

    .breeding-professor__speech::before {
        left: 50%;
        top: -13px;
        transform: translateX(-50%) rotate(135deg);
    }

    .breeding-guide-grid {
        grid-template-columns: 1fr;
    }

    .breeding-guide-card {
        min-height: 0;
    }

    .breeding-section-heading,
    .breeding-workspace-heading,
    .breeding-projects-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .breeding-workspace-actions,
    .breeding-workspace-actions .button,
    .breeding-projects-heading .button,
    .breeding-incubator-actions .button,
    .breeding-recommendation-actions .button {
        width: 100%;
    }

    .breeding-target-picker {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .breeding-target-preview {
        width: 82px;
        height: 82px;
    }

    .breeding-target-preview img {
        width: 72px;
        height: 72px;
    }

    .breeding-objective-fields,
    .breeding-editor-grid {
        grid-template-columns: 1fr;
    }

    .breeding-objective-fields label:last-child,
    .breeding-editor-grid__wide {
        grid-column: auto;
    }

    .breeding-goal-ivs > div,
    .breeding-editor-ivs > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .breeding-recommendation__stats {
        grid-template-columns: 1fr;
    }

    .breeding-editor-modal__actions {
        flex-direction: column-reverse;
    }

    .breeding-editor-modal__actions .button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .breeding-target-picker {
        grid-template-columns: 1fr;
    }

    .breeding-target-preview {
        margin: 0 auto;
    }

    .breeding-goal-ivs > div,
    .breeding-editor-ivs > div {
        grid-template-columns: 1fr 1fr;
    }
}

.breeding-tab__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 11px;
    background: rgba(0, 0, 0, .24);
}

.breeding-tab__icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    image-rendering: pixelated;
}

.breeding-guide-start {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.breeding-inline-arrow {
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}

.breeding-stage-connector {
    width: 24px;
    height: 24px;
    position: relative;
}

.breeding-stage-connector::before,
.breeding-stage-connector::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 2px;
    background: var(--rocket-faint);
    transform: translate(-50%, -50%);
}

.breeding-stage-connector::before {
    width: 22px;
    height: 4px;
}

.breeding-stage-connector::after {
    width: 4px;
    height: 22px;
}


.breeding-items-guide {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--rocket-border);
    border-radius: var(--rocket-radius-lg);
    background:
        radial-gradient(circle at 88% 12%, rgba(242, 201, 76, .09), transparent 28%),
        rgba(255, 255, 255, .018);
}

.breeding-items-guide__main {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.breeding-item-guide-card {
    min-height: 150px;
    padding: 22px;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: #111217;
}

.breeding-item-guide-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .48));
}

.breeding-item-guide-card h3,
.breeding-power-guide h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.15rem;
}

.breeding-item-guide-card p,
.breeding-power-guide p {
    margin: 0;
    color: var(--rocket-muted);
    font-size: .88rem;
    line-height: 1.65;
}

.breeding-power-guide {
    margin-top: 14px;
    padding: 22px;
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 22px;
    border: 1px solid rgba(89, 199, 230, .14);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(89, 199, 230, .07), transparent 62%), #101116;
}

.breeding-power-guide__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.breeding-power-guide__grid article {
    min-width: 0;
    padding: 12px 8px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
}

.breeding-power-guide__grid img {
    width: 44px;
    height: 44px;
    grid-row: 1 / 3;
    object-fit: contain;
    image-rendering: pixelated;
}

.breeding-power-guide__grid strong {
    overflow: hidden;
    color: #fff;
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breeding-power-guide__grid span {
    color: var(--rocket-blue);
    font-size: .67rem;
    font-weight: 900;
}

.breeding-incubator-stage {
    isolation: isolate;
}

.breeding-parent-slot:hover,
.breeding-parent-slot:focus-visible,
.breeding-egg-slot:hover,
.breeding-egg-slot:focus-visible {
    z-index: 70;
}

#breedingParentA .breeding-hover-card {
    left: 0;
    transform: translate(0, 10px);
}

#breedingParentA:hover .breeding-hover-card,
#breedingParentA:focus-visible .breeding-hover-card {
    transform: translate(0, 0);
}

#breedingParentB .breeding-hover-card {
    left: auto;
    right: 0;
    transform: translate(0, 10px);
}

#breedingParentB:hover .breeding-hover-card,
#breedingParentB:focus-visible .breeding-hover-card {
    transform: translate(0, 0);
}

.breeding-parent-slot__item {
    max-width: calc(100% - 26px);
    padding: 5px 8px;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(242, 201, 76, .22);
    border-radius: 9px;
    background: rgba(10, 10, 12, .88);
    color: var(--rocket-gold);
    font-size: .62rem;
    font-weight: 900;
}

.breeding-parent-slot__item[hidden] {
    display: none;
}

.breeding-parent-slot__item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    image-rendering: pixelated;
}

.breeding-tooltip-item {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.breeding-tooltip-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    image-rendering: pixelated;
}

.breeding-iv-row--sources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.breeding-incubator-controls {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}


.button--test {
    border-color: rgba(242, 201, 76, .34);
    background: linear-gradient(135deg, rgba(242, 201, 76, .18), rgba(242, 201, 76, .07));
    color: #fff;
}

.button--test:hover,
.button--test:focus-visible {
    border-color: rgba(242, 201, 76, .68);
    background: linear-gradient(135deg, rgba(242, 201, 76, .28), rgba(242, 201, 76, .1));
}

.breeding-editor-search {
    position: relative;
    display: grid;
    gap: 7px;
}

.breeding-editor-search > label {
    display: block;
}

.breeding-editor-pokemon-preview {
    padding: 12px;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    border: 1px solid rgba(89, 199, 230, .15);
    border-radius: 14px;
    background: rgba(89, 199, 230, .045);
}

.breeding-editor-pokemon-preview[hidden] {
    display: none;
}

.breeding-editor-pokemon-preview__image {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #0d0e12;
}

.breeding-editor-pokemon-preview img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.breeding-editor-pokemon-preview strong,
.breeding-editor-pokemon-preview small {
    display: block;
}

.breeding-editor-pokemon-preview strong {
    color: #fff;
    font-size: 1rem;
}

.breeding-editor-pokemon-preview small {
    margin-top: 4px;
    color: var(--rocket-faint);
}

.breeding-search-results {
    z-index: 120;
}

.breeding-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.breeding-search-row:last-child {
    border-bottom: 0;
}

.breeding-search-row .breeding-search-option {
    border-bottom: 0;
}

.breeding-search-heading {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: #fff;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.breeding-search-heading small {
    color: var(--rocket-faint);
    font-size: .62rem;
    letter-spacing: 0;
    text-transform: none;
}

.breeding-search-option__copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.breeding-search-option__copy strong,
.breeding-search-option__copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breeding-search-option__badge {
    padding: 5px 7px;
    border: 1px solid rgba(66, 207, 133, .2);
    border-radius: 999px;
    background: rgba(66, 207, 133, .07);
    color: var(--rocket-green) !important;
    font-size: .58rem !important;
    text-transform: uppercase;
}

.breeding-search-remove {
    width: 42px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .06);
    background: transparent;
    color: var(--rocket-faint);
    font-size: 1.25rem;
    cursor: pointer;
}

.breeding-search-remove:hover,
.breeding-search-remove:focus-visible {
    background: rgba(229, 28, 47, .1);
    color: #fff;
}

.breeding-search-empty {
    padding: 18px;
    color: var(--rocket-muted);
    font-size: .8rem;
    line-height: 1.5;
    text-align: center;
}

.breeding-editor-items {
    margin: 22px 0 0;
    padding: 0;
    border: 0;
}

.breeding-editor-items[hidden] {
    display: none;
}

.breeding-editor-items legend {
    color: #d7d7dd;
    font-size: .78rem;
    font-weight: 900;
}

.breeding-editor-items legend small {
    display: block;
    margin-top: 4px;
    color: var(--rocket-faint);
    font-weight: 500;
}

.breeding-editor-items > div {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.breeding-item-choice {
    min-width: 0;
    padding: 10px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
    cursor: pointer;
}

.breeding-item-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.breeding-item-choice:has(input:checked) {
    border-color: rgba(242, 201, 76, .48);
    background: rgba(242, 201, 76, .075);
    box-shadow: inset 0 0 0 1px rgba(242, 201, 76, .1);
}

.breeding-item-choice__visual {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #0d0e12;
}

.breeding-item-choice__visual img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    image-rendering: pixelated;
}

.breeding-item-choice__empty {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
}

.breeding-item-choice strong,
.breeding-item-choice small {
    display: block;
}

.breeding-item-choice strong {
    color: #fff;
    font-size: .78rem;
}

.breeding-item-choice small {
    margin-top: 3px;
    color: var(--rocket-faint);
    font-size: .64rem;
    line-height: 1.35;
}

@media (max-width: 850px) {
    .breeding-items-guide__main,
    .breeding-power-guide {
        grid-template-columns: 1fr;
    }

    .breeding-power-guide__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #breedingParentA .breeding-hover-card,
    #breedingParentB .breeding-hover-card,
    #breedingEggSlot .breeding-hover-card {
        left: 50%;
        right: auto;
        transform: translate(-50%, 10px);
    }

    #breedingParentA:hover .breeding-hover-card,
    #breedingParentA:focus-visible .breeding-hover-card,
    #breedingParentB:hover .breeding-hover-card,
    #breedingParentB:focus-visible .breeding-hover-card,
    #breedingEggSlot:hover .breeding-hover-card,
    #breedingEggSlot:focus-visible .breeding-hover-card {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 660px) {
    .breeding-item-guide-card {
        grid-template-columns: 64px minmax(0, 1fr);
        padding: 18px;
    }

    .breeding-item-guide-card img {
        width: 58px;
        height: 58px;
    }

    .breeding-power-guide__grid,
    .breeding-editor-items > div {
        grid-template-columns: 1fr;
    }


    .breeding-search-option__badge {
        display: none;
    }
}


.breeding-recommendation__warning {
    margin-top: 14px;
    padding: 13px 15px;
    display: grid;
    gap: 5px;
    border: 1px solid rgba(255, 181, 71, .22);
    border-radius: 13px;
    background: rgba(255, 181, 71, .055);
}

.breeding-recommendation__warning strong {
    color: #ffd38d;
    font-size: .78rem;
}

.breeding-recommendation__warning span {
    color: #c8c3ba;
    font-size: .78rem;
    line-height: 1.55;
}

.breeding-next-items {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(93, 207, 255, .15);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(18, 24, 29, .96), rgba(13, 15, 19, .98));
}

.breeding-next-items__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.breeding-next-items__heading span {
    color: #70d5f4;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.breeding-next-items__heading strong {
    color: #fff;
    font-size: .82rem;
}

.breeding-next-items__grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.breeding-next-item {
    padding: 12px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 13px;
    background: rgba(255, 255, 255, .025);
}

.breeding-next-item__visual {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(0, 0, 0, .22);
}

.breeding-next-item__visual img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    image-rendering: pixelated;
}

.breeding-next-items__empty {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
}

.breeding-next-item div {
    min-width: 0;
}

.breeding-next-item div > span,
.breeding-next-item small {
    display: block;
    color: var(--rocket-faint);
    font-size: .68rem;
}

.breeding-next-item strong {
    display: block;
    margin: 2px 0 4px;
    color: #fff;
    font-size: .9rem;
}

.breeding-next-item small {
    line-height: 1.42;
}

.breeding-next-items__notes {
    margin: 13px 0 0;
    padding: 0;
    display: grid;
    gap: 7px;
    list-style: none;
}

.breeding-next-items__notes li {
    padding-left: 18px;
    position: relative;
    color: #bfc3c9;
    font-size: .76rem;
    line-height: 1.5;
}

.breeding-next-items__notes li::before {
    content: "";
    width: 6px;
    height: 6px;
    position: absolute;
    left: 2px;
    top: .52em;
    border-radius: 50%;
    background: #70d5f4;
}

.breeding-next-items__apply {
    margin: 12px 0 0;
    color: #8f949c;
    font-size: .7rem;
}

.breeding-recommendation-actions .button.is-recommended {
    border-color: rgba(112, 213, 244, .55);
    box-shadow: 0 0 0 2px rgba(112, 213, 244, .11), 0 12px 26px rgba(0, 0, 0, .2);
}

@media (max-width: 680px) {
    .breeding-next-items__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .breeding-next-items__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .breeding-projects-grid {
        grid-template-columns: 1fr;
    }

    .breeding-project-card {
        padding: 15px;
    }

    .breeding-project-card__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .breeding-project-modal__panel {
        padding: 22px 18px 18px;
    }

    .breeding-project-modal__actions {
        grid-template-columns: 1fr;
    }
}
