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

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

.beasts-hero-copy,
.beasts-sprite-card,
.beasts-panel,
.beasts-map-card,
.beasts-loop-card,
.beasts-trouble-grid article {
    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);
}

.beasts-hero-copy,
.beasts-panel,
.beasts-map-card > div,
.beasts-loop-card > div,
.beasts-trouble-grid article {
    padding: 18px;
}

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

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

.beasts-lede,
.beasts-panel p,
.beasts-map-card p,
.beasts-loop-card p,
.beasts-check span,
.beasts-trouble-grid p {
    color: #d8e7df;
}

.beasts-lede {
    max-width: 920px;
    font-size: 17px;
}

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

.beasts-answer-strip span,
.beasts-links a,
.beasts-controls button,
.beasts-table-tools button,
.beasts-progress button {
    border: 1px solid rgba(226, 180, 67, .42);
    border-radius: 6px;
    background: rgba(226, 180, 67, .11);
    color: #f5d882;
}

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

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

.beasts-sprite-row {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 28px 10px 14px;
}

.beasts-sprite-row img {
    width: min(30%, 96px);
    image-rendering: pixelated;
}

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

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

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

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

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

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

.beasts-loop-grid,
.beasts-map-grid,
.beasts-check-grid,
.beasts-trouble-grid {
    display: grid;
    gap: 12px;
}

.beasts-loop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.beasts-loop-card,
.beasts-map-card {
    overflow: hidden;
}

.beasts-loop-card[hidden],
.beasts-trouble-grid article[hidden],
.beasts-table tr[hidden] {
    display: none;
}

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

.beasts-loop-card h3,
.beasts-map-card h3,
.beasts-trouble-grid h3 {
    margin: 0;
    color: #fff;
    line-height: 1.18;
}

.beasts-loop-card span {
    display: inline-flex;
    margin-top: 8px;
    color: #f1ca63;
    font-weight: 850;
}

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

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

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

.beasts-table-tools input {
    min-height: 40px;
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #091410;
    color: #fff;
    padding: 8px 10px;
}

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

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

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

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

.beasts-table td {
    color: #d8e7df;
}

.beasts-progress {
    justify-content: space-between;
    margin-bottom: 12px;
}

.beasts-progress strong {
    color: #fff;
}

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

.beasts-check {
    display: flex;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 16, 13, .5);
}

.beasts-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
    accent-color: var(--gold);
}

.beasts-trouble-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.beasts-trouble-grid article {
    box-shadow: none;
}

@media (max-width: 980px) {
    .beasts-hero,
    .beasts-fast,
    .beasts-loop-grid,
    .beasts-map-grid,
    .beasts-trouble-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .beasts-hero-copy,
    .beasts-panel,
    .beasts-map-card > div,
    .beasts-loop-card > div,
    .beasts-trouble-grid article {
        padding: 14px;
    }

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

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

    .beasts-links a,
    .beasts-controls button,
    .beasts-table-tools button,
    .beasts-progress button {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
    }
}
