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

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

.mystery-hero,
.mystery-panel,
.mystery-route-card,
.mystery-map-card,
.mystery-platform-grid article {
    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);
}

.mystery-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, .7fr);
    gap: 18px;
    align-items: stretch;
    padding: 18px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

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

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

.mystery-lede {
    max-width: 900px;
    color: #c8d7d0;
    font-size: 16px;
}

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

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

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

.mystery-answer-strip span {
    padding: 7px 10px;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.mystery-map-card {
    display: grid;
    align-content: start;
    overflow: hidden;
    margin: 0;
}

.mystery-map-card img,
.mystery-route-card img {
    width: 100%;
    background: #08100d;
    image-rendering: pixelated;
}

.mystery-map-card figcaption {
    margin: 0;
    padding: 12px;
    color: #adc0b7;
}

.mystery-links {
    padding: 2px 0;
}

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

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

.mystery-panel {
    padding: 16px;
}

.mystery-fast {
    display: grid;
    grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.mystery-fast h2,
.mystery-section-heading h2 {
    color: #fff;
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 0;
}

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

.mystery-check-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.mystery-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);
}

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

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

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

.mystery-check em {
    margin-top: 5px;
    color: #9eb2a8;
    font-style: normal;
}

.mystery-progress {
    justify-content: space-between;
    margin-top: 12px;
    color: #d8e5df;
}

.mystery-progress button,
.mystery-tabs button,
.mystery-table-tools input,
.mystery-table-tools select,
.mystery-picker select {
    min-height: 38px;
    border: 1px solid rgba(226, 180, 67, .26);
    border-radius: 6px;
    background: #0b1612;
    color: var(--text);
}

.mystery-progress button,
.mystery-tabs button {
    padding: 7px 11px;
    cursor: pointer;
}

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

.mystery-table-tools label {
    display: grid;
    gap: 5px;
    min-width: min(100%, 340px);
    color: #aabbb2;
}

.mystery-table-tools input,
.mystery-table-tools select,
.mystery-picker select {
    padding: 8px 10px;
}

.mystery-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(43, 85, 68, .85);
    border-radius: 8px;
}

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

.mystery-table th,
.mystery-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(43, 85, 68, .7);
    text-align: left;
    vertical-align: top;
}

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

.mystery-table td {
    color: #cbd9d3;
}

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

.mystery-badge {
    display: inline-block;
    padding: 4px 7px;
    white-space: nowrap;
}

.mystery-badge.is-good {
    border-color: rgba(68, 201, 130, .5);
    background: rgba(68, 201, 130, .12);
    color: #8ff0b9;
}

.mystery-badge.is-warn {
    border-color: rgba(241, 154, 71, .55);
    background: rgba(241, 154, 71, .13);
    color: #ffc186;
}

.mystery-badge.is-bad {
    border-color: rgba(225, 83, 83, .55);
    background: rgba(225, 83, 83, .13);
    color: #ff9b9b;
}

.mystery-map-grid,
.mystery-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mystery-route-card {
    overflow: hidden;
}

.mystery-route-card div {
    padding: 12px;
}

.mystery-route-card h3,
.mystery-platform-grid h3 {
    color: #fff;
    margin-bottom: 7px;
}

.mystery-note {
    margin: 12px 0 0;
    color: #aabdb4;
}

.mystery-picker {
    display: grid;
    gap: 10px;
    max-width: 820px;
}

.mystery-picker label {
    color: #aabbb2;
    font-weight: 800;
}

.mystery-picker output {
    display: block;
    min-height: 72px;
    padding: 13px;
    border: 1px solid rgba(101, 168, 255, .25);
    border-radius: 8px;
    background: rgba(101, 168, 255, .09);
    color: #dcecff;
}

.mystery-platform-grid article {
    padding: 14px;
    box-shadow: none;
}

.mystery-platform-grid a {
    color: #f4d77e;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

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

@media (max-width: 620px) {
    .mystery-hero,
    .mystery-panel {
        padding: 12px;
        max-width: 100%;
    }

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

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

    .mystery-section-heading {
        display: block;
    }

    .mystery-table-tools {
        align-items: stretch;
    }

    .mystery-table-tools label,
    .mystery-table-tools select {
        width: 100%;
    }
}
