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

.celebi-hero,
.celebi-panel {
    border: 1px solid rgba(226, 180, 67, .24);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(20, 43, 33, .98), rgba(13, 26, 22, .98));
    box-shadow: var(--shadow);
}

.celebi-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 18px;
    align-items: stretch;
    padding: 22px;
}

.celebi-hero-copy {
    min-width: 0;
}

.celebi-hero h2,
.celebi-panel h2,
.celebi-panel h3 {
    margin: 0;
    color: #fff;
    line-height: 1.12;
    letter-spacing: 0;
}

.celebi-hero h2 {
    max-width: 820px;
    font-size: clamp(28px, 4vw, 48px);
}

.celebi-panel h2 {
    font-size: 22px;
}

.celebi-panel h3 {
    font-size: 16px;
}

.celebi-lede {
    max-width: 860px;
    margin: 14px 0 0;
    color: #bfd1c8;
    font-size: 16px;
}

.celebi-facts,
.celebi-links,
.celebi-filter-buttons,
.celebi-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.celebi-facts {
    margin-top: 18px;
}

.celebi-facts span,
.celebi-links a,
.celebi-count,
.celebi-filter-buttons button,
.celebi-tabs button {
    min-height: 34px;
    border: 1px solid rgba(226, 180, 67, .26);
    border-radius: 6px;
    background: rgba(226, 180, 67, .08);
    color: #f0d58a;
    font-weight: 750;
}

.celebi-facts span,
.celebi-links a,
.celebi-count {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
}

.celebi-sprite-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(101, 168, 255, .28);
    background: rgba(101, 168, 255, .08);
    text-align: center;
}

.celebi-sprite-card img {
    width: 112px;
    height: 112px;
    image-rendering: pixelated;
}

.celebi-sprite-card figcaption,
.celebi-check-score small,
.celebi-route-output span {
    color: #9fb5aa;
    font-size: 13px;
}

.celebi-links {
    padding: 2px 0;
}

.celebi-links a:hover,
.celebi-filter-buttons button:hover,
.celebi-filter-buttons button.is-active,
.celebi-tabs button:hover,
.celebi-tabs button.is-active {
    border-color: rgba(68, 201, 130, .6);
    background: rgba(68, 201, 130, .15);
    color: #dff8ea;
}

.celebi-panel {
    padding: 18px;
}

.celebi-answer {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.celebi-answer p {
    margin: 0;
    color: #c8d8d0;
}

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

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

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

.celebi-builder-grid label,
.celebi-filter-row label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    color: #aebfb7;
    font-weight: 750;
}

.celebi-builder-grid select,
.celebi-filter-row input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(226, 180, 67, .26);
    border-radius: 6px;
    background: #0b1713;
    color: #fff;
    padding: 9px 10px;
}

.celebi-route-output {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(68, 201, 130, .28);
    background: rgba(68, 201, 130, .08);
}

.celebi-route-output strong {
    color: #fff;
    font-size: 18px;
}

.celebi-route-output p {
    margin: 0;
    color: #c8d8d0;
}

.celebi-check-grid {
    display: grid;
    gap: 9px;
}

.celebi-check-grid label {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px;
    border: 1px solid rgba(79, 103, 91, .7);
    border-radius: 8px;
    background: rgba(8, 16, 13, .34);
}

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

.celebi-check-grid span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.celebi-check-grid strong {
    color: #fff;
}

.celebi-check-grid em {
    color: #9fb5aa;
    font-style: normal;
}

.celebi-check-score {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
}

.celebi-check-score output {
    color: var(--gold-2);
    font-weight: 850;
}

.celebi-filter-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
}

.celebi-filter-buttons button,
.celebi-tabs button {
    cursor: pointer;
    padding: 7px 10px;
}

.celebi-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(79, 103, 91, .7);
    border-radius: 8px;
}

.celebi-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.celebi-table th,
.celebi-table td {
    padding: 11px;
    border-bottom: 1px solid rgba(79, 103, 91, .55);
    text-align: left;
    vertical-align: top;
}

.celebi-table th {
    color: #f0d58a;
    background: rgba(226, 180, 67, .08);
}

.celebi-table td {
    color: #c9d8d0;
}

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

.celebi-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.celebi-list li {
    padding: 11px;
    border-radius: 8px;
    background: rgba(8, 16, 13, .36);
    color: #c9d8d0;
}

.celebi-list strong {
    color: #fff;
}

.celebi-tabs {
    margin-bottom: 12px;
}

.celebi-symptom-note {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(241, 154, 71, .32);
    background: rgba(241, 154, 71, .09);
}

.celebi-symptom-note strong {
    display: block;
    color: #fff;
    margin-bottom: 6px;
}

.celebi-symptom-note p {
    margin: 0;
    color: #d5c7b5;
}

.celebi-alt-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.celebi-alt-grid article {
    padding: 13px;
    border-radius: 8px;
    border: 1px solid rgba(101, 168, 255, .24);
    background: rgba(101, 168, 255, .08);
}

.celebi-alt-grid p {
    margin: 8px 0 0;
    color: #bfd1c8;
}

@media (max-width: 900px) {
    .celebi-hero,
    .celebi-answer,
    .celebi-grid,
    .celebi-alt-grid {
        grid-template-columns: 1fr;
    }

    .celebi-sprite-card {
        align-items: flex-start;
        text-align: left;
    }

    .celebi-filter-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .celebi-hero,
    .celebi-panel {
        padding: 14px;
    }

    .celebi-hero h2 {
        font-size: 28px;
    }

    .celebi-builder-grid {
        grid-template-columns: 1fr;
    }

    .celebi-facts span,
    .celebi-links a,
    .celebi-filter-buttons button,
    .celebi-tabs button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
