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

.gatr-hero,
.gatr-panel,
.gatr-links,
.gatr-sprite-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(22, 46, 36, .96), rgba(12, 24, 20, .98));
    box-shadow: var(--shadow);
}

.gatr-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 18px;
    padding: 20px;
    border-radius: 8px;
}

.gatr-hero-copy h2,
.gatr-section-heading h2,
.gatr-answer h2 {
    margin: 0;
    color: #fff;
    line-height: 1.1;
}

.gatr-hero-copy h2 {
    font-size: clamp(28px, 4vw, 44px);
}

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

.gatr-stat-strip,
.gatr-links,
.gatr-button-row,
.gatr-build-tabs,
.gatr-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gatr-stat-strip {
    margin-top: 16px;
}

.gatr-stat-strip span,
.gatr-links a,
.gatr-button-row button,
.gatr-build-tabs button,
.gatr-progress button {
    border: 1px solid rgba(226, 180, 67, .28);
    border-radius: 6px;
    background: rgba(226, 180, 67, .1);
    color: #f6df9a;
}

.gatr-stat-strip span {
    padding: 7px 10px;
    font-weight: 750;
}

.gatr-sprite-card {
    margin: 0;
    padding: 16px;
    border-radius: 8px;
}

.gatr-sprite-stage {
    min-height: 178px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    background: radial-gradient(circle at 50% 90%, rgba(101, 168, 255, .25), transparent 55%), #0b1713;
}

.gatr-sprite-stage img {
    width: 30%;
    max-width: 110px;
    image-rendering: pixelated;
}

.gatr-sprite-stage img:last-child {
    width: 40%;
    max-width: 140px;
}

.gatr-sprite-card figcaption {
    margin-top: 10px;
    color: var(--muted);
}

.gatr-links,
.gatr-panel {
    border-radius: 8px;
    padding: 16px;
}

.gatr-links a {
    padding: 7px 10px;
    font-weight: 800;
}

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

.gatr-answer {
    display: grid;
    gap: 14px;
}

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

.gatr-move-cards article,
.gatr-build-output,
.gatr-type-grid div,
.gatr-trap-list div,
.gatr-boss-grid div,
.gatr-check-grid label {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 16, 13, .58);
}

.gatr-move-cards article {
    padding: 14px;
}

.gatr-move-cards span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    color: #08100d;
    font-weight: 900;
}

.gatr-move-cards strong,
.gatr-move-cards em {
    display: block;
}

.gatr-move-cards strong {
    margin-top: 10px;
    color: #fff;
    font-size: 18px;
}

.gatr-move-cards em {
    margin-top: 3px;
    color: var(--blue);
    font-style: normal;
    font-weight: 800;
}

.gatr-move-cards p,
.gatr-panel p {
    color: var(--muted);
}

.gatr-section-heading {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.gatr-build-tabs button,
.gatr-button-row button,
.gatr-progress button {
    min-height: 36px;
    padding: 7px 11px;
    cursor: pointer;
}

.gatr-build-output {
    margin-top: 12px;
    padding: 14px;
}

.gatr-build-output h3 {
    margin: 0 0 10px;
    color: #fff;
}

.gatr-build-output ul {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--text);
}

.gatr-controls {
    display: grid;
    gap: 10px;
}

.gatr-controls label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 800;
}

.gatr-controls input {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #08100d;
    color: #fff;
    padding: 8px 10px;
}

.gatr-count {
    margin: 12px 0 8px;
    color: var(--gold-2);
    font-weight: 800;
}

.gatr-table-wrap {
    overflow-x: auto;
}

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

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

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

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

.gatr-table small {
    display: block;
    color: var(--muted);
}

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

.gatr-type-grid,
.gatr-trap-list,
.gatr-boss-grid,
.gatr-check-grid {
    display: grid;
    gap: 10px;
}

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

.gatr-type-grid div,
.gatr-trap-list div,
.gatr-boss-grid div {
    padding: 12px;
}

.gatr-type-grid strong,
.gatr-trap-list strong,
.gatr-boss-grid strong,
.gatr-check-grid strong {
    display: block;
    color: #fff;
}

.gatr-type-grid span,
.gatr-trap-list span,
.gatr-boss-grid span,
.gatr-check-grid em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
}

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

.gatr-check-grid label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
}

.gatr-check-grid input {
    margin-top: 3px;
    accent-color: var(--gold);
}

.gatr-progress {
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.gatr-progress span {
    color: var(--gold-2);
    font-weight: 850;
}

.gatr-faq details {
    border-top: 1px solid var(--line);
    padding: 11px 0;
}

.gatr-faq summary {
    cursor: pointer;
    color: #fff;
    font-weight: 850;
}

.gatr-faq p {
    margin: 8px 0 0;
}

@media (max-width: 860px) {
    .gatr-hero,
    .gatr-grid,
    .gatr-move-cards,
    .gatr-type-grid,
    .gatr-check-grid {
        grid-template-columns: 1fr;
    }

    .gatr-hero {
        padding: 16px;
    }

    .gatr-sprite-stage {
        min-height: 150px;
    }
}

@media (max-width: 520px) {
    .gatr-links a,
    .gatr-button-row button,
    .gatr-build-tabs button {
        flex: 1 1 140px;
        text-align: center;
    }

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