.celebi-tool {
    display: grid;
    gap: 18px;
    overflow-wrap: anywhere;
}

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

.celebi-hero-copy,
.celebi-sprite-card,
.celebi-panel,
.celebi-map-card,
.celebi-platform-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(19, 41, 32, .96), rgba(9, 19, 16, .98));
    box-shadow: var(--shadow);
}

.celebi-hero-copy,
.celebi-panel,
.celebi-map-card > div,
.celebi-platform-card {
    padding: 18px;
}

.celebi-hero-copy h2,
.celebi-section-heading h2,
.celebi-fast h2 {
    margin: 0;
    color: #fff;
    line-height: 1.12;
}

.celebi-hero-copy h2 {
    max-width: 880px;
    font-size: clamp(28px, 5vw, 46px);
}

.celebi-lede,
.celebi-panel p,
.celebi-map-card p,
.celebi-check em,
.celebi-platform-card p,
.celebi-transfer-grid p,
.celebi-faq-grid p {
    color: #d8e7df;
}

.celebi-lede {
    max-width: 900px;
    font-size: 17px;
}

.celebi-answer-strip,
.celebi-links,
.celebi-controls,
.celebi-table-tools,
.celebi-progress,
.celebi-trouble-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.celebi-answer-strip span,
.celebi-links a,
.celebi-controls button,
.celebi-table-tools button,
.celebi-progress button,
.celebi-trouble-controls button,
.celebi-transfer-grid a {
    border: 1px solid rgba(226, 180, 67, .36);
    border-radius: 6px;
    background: rgba(226, 180, 67, .1);
    color: var(--gold-2);
}

.celebi-answer-strip span {
    padding: 7px 10px;
    font-weight: 850;
}

.celebi-sprite-card {
    display: grid;
    place-items: center;
    margin: 0;
    overflow: hidden;
}

.celebi-sprite-card img {
    width: min(188px, 68%);
    padding: 24px 0 10px;
    image-rendering: pixelated;
}

.celebi-sprite-card figcaption {
    align-self: end;
    width: 100%;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    color: #b8c9c1;
    font-size: 13px;
}

.celebi-links {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 16, 13, .72);
}

.celebi-links a,
.celebi-controls button,
.celebi-table-tools button,
.celebi-progress button,
.celebi-trouble-controls button,
.celebi-transfer-grid a {
    min-height: 36px;
    padding: 7px 10px;
    font-weight: 800;
    cursor: pointer;
}

.celebi-links a:hover,
.celebi-controls button:hover,
.celebi-controls button.is-active,
.celebi-table-tools button:hover,
.celebi-progress button:hover,
.celebi-trouble-controls button:hover,
.celebi-trouble-controls button.is-active,
.celebi-transfer-grid a:hover {
    background: var(--gold);
    color: #08100d;
}

.celebi-fast {
    display: grid;
    grid-template-columns: minmax(190px, 300px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    border-color: rgba(226, 180, 67, .42);
    background: linear-gradient(135deg, rgba(226, 180, 67, .16), rgba(9, 19, 16, .98));
}

.celebi-section-heading {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
}

.celebi-platform-grid,
.celebi-map-grid,
.celebi-stat-grid,
.celebi-check-grid,
.celebi-transfer-grid,
.celebi-trouble-grid,
.celebi-faq-grid {
    display: grid;
    gap: 12px;
}

.celebi-platform-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
}

.celebi-platform-card {
    display: grid;
    gap: 8px;
}

.celebi-platform-card h3,
.celebi-map-card h3,
.celebi-transfer-grid h3,
.celebi-trouble-grid h3,
.celebi-faq-grid h3 {
    margin: 0;
    color: #fff;
    line-height: 1.18;
}

.celebi-platform-card p {
    margin: 0;
}

.celebi-platform-card span {
    width: fit-content;
    padding: 5px 8px;
    border-radius: 6px;
    color: #08100d;
    font-weight: 900;
    background: var(--gold);
}

.celebi-platform-card.is-no span {
    background: var(--red);
    color: #fff;
}

.celebi-platform-card.is-check span {
    background: var(--blue);
    color: #06101c;
}

.celebi-table-tools {
    justify-content: space-between;
    margin-bottom: 12px;
}

.celebi-table-tools label {
    display: grid;
    gap: 6px;
    min-width: min(100%, 320px);
    color: #fff;
    font-weight: 800;
}

.celebi-table-tools input {
    min-height: 42px;
    width: 100%;
    border: 1px solid rgba(79, 103, 91, .7);
    border-radius: 6px;
    background: rgba(8, 16, 13, .62);
    color: #f4fbf7;
    padding: 8px 10px;
}

.celebi-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.celebi-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    color: #dceae3;
}

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

.celebi-table th {
    color: #fff;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

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

.celebi-map-card {
    overflow: hidden;
}

.celebi-map-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: #08100d;
    image-rendering: pixelated;
    border-bottom: 1px solid var(--line);
}

.celebi-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.celebi-stat-grid article,
.celebi-transfer-grid article,
.celebi-trouble-grid article,
.celebi-faq-grid article {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(79, 103, 91, .62);
    border-radius: 8px;
    background: rgba(8, 16, 13, .54);
}

.celebi-stat-grid article {
    display: grid;
    gap: 6px;
}

.celebi-stat-grid strong {
    color: var(--gold-2);
}

.celebi-stat-grid span {
    color: #fff;
    font-weight: 800;
}

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

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

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

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

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

.celebi-check em {
    font-style: normal;
    font-size: 13px;
}

.celebi-progress {
    justify-content: space-between;
    margin-top: 12px;
    color: #fff;
    font-weight: 800;
}

.celebi-transfer-grid,
.celebi-trouble-grid,
.celebi-faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.celebi-transfer-grid article,
.celebi-trouble-grid article,
.celebi-faq-grid article {
    display: grid;
    gap: 8px;
    align-content: start;
}

.celebi-transfer-grid a {
    width: fit-content;
}

.celebi-trouble-controls {
    margin-bottom: 12px;
}

@media (max-width: 980px) {
    .celebi-hero,
    .celebi-fast,
    .celebi-platform-grid,
    .celebi-map-grid,
    .celebi-stat-grid,
    .celebi-transfer-grid,
    .celebi-trouble-grid,
    .celebi-faq-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .celebi-hero,
    .celebi-fast,
    .celebi-platform-grid,
    .celebi-map-grid,
    .celebi-stat-grid,
    .celebi-check-grid,
    .celebi-transfer-grid,
    .celebi-trouble-grid,
    .celebi-faq-grid {
        grid-template-columns: 1fr;
    }

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

    .celebi-table {
        min-width: 760px;
    }
}
