.hatch-tool {
    display: grid;
    gap: 18px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.hatch-tool h2,
.hatch-tool h3,
.hatch-tool p {
    margin-top: 0;
}

.hatch-hero,
.hatch-panel,
.hatch-hero-art,
.hatch-route-card,
.hatch-rule-card {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(226, 180, 67, .22);
    border-radius: 8px;
    background: rgba(17, 34, 26, .92);
    box-shadow: var(--shadow);
}

.hatch-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
    gap: 18px;
    align-items: stretch;
    padding: 18px;
    overflow: hidden;
}

.hatch-hero-copy {
    display: grid;
    align-content: center;
    min-width: 0;
}

.hatch-hero h2 {
    margin-bottom: 12px;
    color: #fff;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.03;
    letter-spacing: 0;
}

.hatch-lede {
    max-width: 920px;
    color: #d2e0da;
    font-size: 16px;
}

.hatch-answer-strip,
.hatch-links,
.hatch-table-tools,
.hatch-status-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hatch-answer-strip {
    margin-top: 16px;
}

.hatch-answer-strip span,
.hatch-links a {
    border: 1px solid rgba(226, 180, 67, .26);
    border-radius: 6px;
    background: rgba(226, 180, 67, .1);
    color: #f4d77e;
    font-weight: 800;
}

.hatch-answer-strip span {
    padding: 7px 10px;
    max-width: 100%;
}

.hatch-hero-art {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    margin: 0;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(226, 180, 67, .11), rgba(8, 16, 13, .82)),
        #08100d;
}

.hatch-hero-art img {
    width: min(160px, 70%);
    image-rendering: pixelated;
}

.hatch-hero-art figcaption {
    max-width: 260px;
    margin: 0;
    color: #b5c6be;
    text-align: center;
}

.hatch-links a {
    padding: 8px 10px;
}

.hatch-links a:hover,
.hatch-reset:hover,
.hatch-status-grid button:hover,
.hatch-status-grid button.is-active {
    color: #08100d;
    background: var(--gold);
    border-color: var(--gold);
}

.hatch-panel {
    padding: 16px;
}

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

.hatch-section-heading h2 {
    margin-bottom: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: 0;
}

.hatch-section-heading > p {
    margin-bottom: 0;
    color: #b8c8c0;
    font-weight: 800;
}

.hatch-calc-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, .55fr) minmax(150px, .55fr) minmax(240px, 1fr);
    gap: 12px;
    align-items: stretch;
}

.hatch-calc-grid label {
    display: grid;
    gap: 6px;
    color: #b7c8c0;
    font-weight: 800;
}

.hatch-calc-grid select,
.hatch-calc-grid input,
.hatch-table-tools input,
.hatch-table-tools select,
.hatch-reset,
.hatch-status-grid button {
    min-height: 40px;
    max-width: 100%;
    border: 1px solid rgba(226, 180, 67, .26);
    border-radius: 6px;
    background: #0b1612;
    color: var(--text);
}

.hatch-calc-grid select,
.hatch-calc-grid input,
.hatch-table-tools input,
.hatch-table-tools select {
    padding: 8px 10px;
}

.hatch-result {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(101, 168, 255, .22);
    border-radius: 8px;
    background: rgba(8, 16, 13, .62);
}

.hatch-result strong {
    color: #ffe3a2;
    font-size: 22px;
    line-height: 1.1;
}

.hatch-result span {
    color: #c5d4cd;
}

.hatch-result meter {
    width: 100%;
    height: 10px;
}

.hatch-reset,
.hatch-status-grid button {
    padding: 8px 11px;
    cursor: pointer;
    font-weight: 800;
}

.hatch-check-grid,
.hatch-card-grid,
.hatch-map-grid {
    display: grid;
    gap: 10px;
}

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

.hatch-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(101, 168, 255, .2);
    border-radius: 8px;
    background: rgba(8, 16, 13, .6);
}

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

.hatch-check strong,
.hatch-check em {
    display: block;
}

.hatch-check strong {
    color: #fff;
    line-height: 1.2;
}

.hatch-check em,
.hatch-progress,
.hatch-rule-card p,
.hatch-route-card p,
.hatch-status-output span {
    color: #aebfb7;
}

.hatch-check em {
    margin-top: 5px;
    font-style: normal;
}

.hatch-progress {
    margin: 12px 0 0;
    font-weight: 800;
}

.hatch-table-head {
    align-items: start;
}

.hatch-table-tools {
    justify-content: flex-end;
}

.hatch-table-tools input,
.hatch-table-tools select {
    width: min(280px, 100%);
}

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

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

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

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

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

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

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

.hatch-route-card {
    display: grid;
    grid-template-columns: minmax(180px, .55fr) minmax(0, 1fr);
    overflow: hidden;
}

.hatch-route-card img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
    background: #08100d;
    image-rendering: pixelated;
}

.hatch-route-card div {
    padding: 16px;
}

.hatch-route-card h3,
.hatch-rule-card h3 {
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.15;
}

.hatch-status-grid {
    margin-bottom: 12px;
}

.hatch-status-output {
    display: grid;
    gap: 5px;
    padding: 13px;
    border: 1px solid rgba(101, 168, 255, .22);
    border-radius: 8px;
    background: rgba(8, 16, 13, .62);
}

.hatch-status-output strong {
    color: #ffe3a2;
}

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

.hatch-rule-card {
    padding: 15px;
}

.hatch-rule-card img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    image-rendering: pixelated;
}

@media (max-width: 980px) {
    .hatch-hero,
    .hatch-calc-grid,
    .hatch-map-grid,
    .hatch-card-grid {
        grid-template-columns: 1fr;
    }

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

    .hatch-route-card {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
    }
}

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

    .hatch-section-heading,
    .hatch-table-head {
        display: grid;
        align-items: start;
    }

    .hatch-check-grid,
    .hatch-route-card {
        grid-template-columns: 1fr;
    }

    .hatch-table-tools,
    .hatch-table-tools label,
    .hatch-table-tools input,
    .hatch-table-tools select,
    .hatch-reset {
        width: 100%;
    }
}
