.porygon-tool {
    display: grid;
    gap: 18px;
}

.porygon-hero,
.porygon-panel,
.porygon-map-card,
.porygon-version-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(19, 41, 32, .97), rgba(12, 24, 20, .97));
    box-shadow: var(--shadow);
}

.porygon-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 300px);
    gap: 18px;
    align-items: stretch;
    padding: 20px;
    overflow: hidden;
}

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

.porygon-hero h2,
.porygon-panel h2 {
    margin: 0;
    color: #fff;
    line-height: 1.08;
    letter-spacing: 0;
}

.porygon-hero h2 {
    max-width: 820px;
    font-size: clamp(30px, 6vw, 56px);
}

.porygon-lede,
.porygon-answer p,
.porygon-map-card p,
.porygon-panel p,
.porygon-check em,
.porygon-buy-grid em,
.porygon-version-grid span {
    color: var(--muted);
}

.porygon-lede {
    max-width: 820px;
    margin: 14px 0 0;
    font-size: 16px;
}

.porygon-facts,
.porygon-links,
.porygon-progress,
.porygon-tabs,
.porygon-buy-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.porygon-facts span,
.porygon-links a,
.porygon-tabs button,
.porygon-progress button {
    min-height: 34px;
    border-radius: 6px;
    border: 1px solid rgba(226, 180, 67, .28);
    background: rgba(226, 180, 67, .1);
    color: #f7df9c;
    font-weight: 750;
}

.porygon-facts span,
.porygon-links a,
.porygon-tabs button,
.porygon-progress button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
}

.porygon-tabs button,
.porygon-progress button {
    cursor: pointer;
}

.porygon-tabs button.is-active,
.porygon-tabs button:hover,
.porygon-links a:hover,
.porygon-progress button:hover {
    background: var(--gold);
    color: #08100d;
}

.porygon-sprite-card {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    min-height: 240px;
    margin: 0;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid rgba(101, 168, 255, .28);
    background:
        linear-gradient(135deg, rgba(101, 168, 255, .12), rgba(226, 180, 67, .08)),
        rgba(8, 16, 13, .42);
}

.porygon-sprite-card img {
    width: min(158px, 55vw);
    image-rendering: pixelated;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .42));
}

.porygon-sprite-card figcaption {
    max-width: 230px;
    color: #c6d4ce;
    text-align: center;
    font-size: 13px;
}

.porygon-panel {
    padding: 18px;
}

.porygon-answer {
    display: grid;
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border-color: rgba(68, 201, 130, .34);
    background: linear-gradient(135deg, rgba(68, 201, 130, .12), rgba(19, 41, 32, .97));
}

.porygon-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    gap: 18px;
}

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

.porygon-check-grid,
.porygon-map-grid,
.porygon-version-grid {
    display: grid;
    gap: 12px;
}

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

.porygon-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 16, 13, .34);
}

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

.porygon-check span,
.porygon-buy-grid span,
.porygon-version-grid article {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.porygon-check strong,
.porygon-buy-grid strong,
.porygon-version-grid strong {
    color: #fff;
}

.porygon-check em,
.porygon-buy-grid em {
    font-style: normal;
    font-size: 13px;
}

.porygon-progress {
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    color: #cfe4d8;
}

.porygon-calculator label,
.porygon-table-tools label {
    display: grid;
    gap: 6px;
    color: #dce8e0;
    font-weight: 750;
}

.porygon-calculator input,
.porygon-table-tools input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: rgba(8, 16, 13, .75);
    color: #fff;
    padding: 9px 11px;
}

.porygon-result {
    margin: 12px 0;
    padding: 14px;
    border-radius: 8px;
    background: rgba(101, 168, 255, .12);
    border: 1px solid rgba(101, 168, 255, .28);
    color: #d7e8ff;
    font-weight: 800;
}

.porygon-buy-grid span {
    flex: 1 1 180px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(8, 16, 13, .38);
    border: 1px solid var(--line);
}

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

.porygon-map-card {
    display: grid;
    grid-template-columns: minmax(150px, 240px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    overflow: hidden;
}

.porygon-map-card img {
    width: 100%;
    min-height: 140px;
    max-height: 190px;
    object-fit: contain;
    image-rendering: pixelated;
    border-radius: 6px;
    background: rgba(8, 16, 13, .55);
}

.porygon-map-card h3 {
    margin: 2px 0 6px;
    color: #fff;
    font-size: 20px;
    line-height: 1.12;
}

.porygon-table-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
}

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

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

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

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

.porygon-table td {
    color: #dbe7df;
}

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

.porygon-empty {
    margin: 12px 0 0;
    color: #f7df9c;
}

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

.porygon-version-grid article {
    padding: 14px;
    box-shadow: none;
    background: rgba(8, 16, 13, .34);
}

@media (max-width: 860px) {
    .porygon-hero,
    .porygon-answer,
    .porygon-layout,
    .porygon-map-grid,
    .porygon-version-grid,
    .porygon-table-tools {
        grid-template-columns: 1fr;
    }

    .porygon-map-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .porygon-hero,
    .porygon-panel,
    .porygon-map-card {
        padding: 14px;
    }

    .porygon-check-grid {
        grid-template-columns: 1fr;
    }

    .porygon-section-heading {
        display: grid;
        gap: 6px;
    }
}
