.article-header h1,
.article-body {
    max-width: calc(100vw - 48px);
    overflow-wrap: anywhere;
}

.cheat-tool {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.cheat-hero,
.cheat-panel,
.cheat-status-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(17, 34, 26, .92);
    box-shadow: var(--shadow);
}

.cheat-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 18px;
    align-items: stretch;
    padding: 22px;
    overflow: hidden;
    border-color: rgba(241, 154, 71, .38);
    background:
        linear-gradient(135deg, rgba(241, 154, 71, .18), transparent 48%),
        linear-gradient(180deg, rgba(19, 41, 32, .98), rgba(8, 16, 13, .98));
}

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

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

.cheat-hero h2 {
    max-width: 920px;
    font-size: clamp(30px, 4.8vw, 52px);
}

.cheat-lede,
.cheat-panel p,
.cheat-panel li,
.cheat-card-label,
.cheat-status-card small,
.cheat-check-grid em,
.cheat-count {
    color: var(--muted);
}

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

.cheat-facts,
.cheat-links,
.cheat-filter-row,
.cheat-filter-buttons,
.cheat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.cheat-facts span,
.cheat-links a,
.cheat-filter-buttons button,
.cheat-tabs button,
.cheat-code-output button {
    min-height: 36px;
    border: 1px solid rgba(241, 154, 71, .34);
    border-radius: 6px;
    background: rgba(241, 154, 71, .1);
    color: #ffd9b8;
    font-weight: 850;
}

.cheat-facts span,
.cheat-links a,
.cheat-filter-buttons button,
.cheat-tabs button,
.cheat-code-output button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
}

.cheat-filter-buttons button,
.cheat-tabs button,
.cheat-code-output button {
    cursor: pointer;
}

.cheat-links a:hover,
.cheat-filter-buttons button:hover,
.cheat-filter-buttons button.is-active,
.cheat-tabs button:hover,
.cheat-tabs button.is-active,
.cheat-code-output button:hover {
    background: var(--orange);
    color: #120b05;
}

.cheat-status-card {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 10px;
    min-height: 220px;
    padding: 18px;
    text-align: center;
    border-color: rgba(226, 180, 67, .38);
    background:
        radial-gradient(circle at 50% 30%, rgba(226, 180, 67, .22), transparent 58%),
        rgba(8, 16, 13, .78);
}

.cheat-status-card output {
    width: min(100%, 240px);
    padding: 14px 12px;
    border: 1px solid rgba(226, 180, 67, .42);
    border-radius: 8px;
    background: rgba(8, 16, 13, .78);
    color: var(--gold-2);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(30px, 7vw, 44px);
    font-weight: 900;
    letter-spacing: 0;
}

.cheat-card-label {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
}

.cheat-panel {
    padding: 18px;
}

.cheat-answer {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    border-color: rgba(68, 201, 130, .34);
}

.cheat-answer p {
    margin: 0;
}

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

.cheat-grid,
.cheat-check-grid,
.cheat-builder-grid {
    display: grid;
    gap: 14px;
}

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

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

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

.cheat-check-grid input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

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

.cheat-check-grid strong {
    color: #fff;
}

.cheat-check-grid em {
    margin-top: 4px;
    font-style: normal;
    line-height: 1.34;
}

.cheat-builder {
    border-color: rgba(101, 168, 255, .34);
}

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

.cheat-builder-grid label,
.cheat-filter-row label {
    min-width: 0;
}

.cheat-builder-grid span {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-weight: 850;
}

.cheat-builder-grid select,
.cheat-filter-row input {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: rgba(8, 16, 13, .76);
    color: #fff;
    padding: 8px 10px;
}

.cheat-code-output {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin: 14px 0;
}

.cheat-code-output span {
    grid-column: 1 / -1;
    color: var(--muted);
    font-weight: 800;
}

.cheat-code-output code {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(101, 168, 255, .34);
    border-radius: 8px;
    background: rgba(8, 16, 13, .8);
    color: #cfe3ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 18px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.cheat-platform-note {
    min-height: 136px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(8, 16, 13, .58);
}

.cheat-platform-note strong {
    display: block;
    color: #fff;
    margin-bottom: 8px;
}

.cheat-platform-note p {
    margin: 0;
}

.cheat-filter-row {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cheat-filter-row label {
    flex: 1 1 280px;
}

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

.cheat-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

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

.cheat-table th {
    color: #fff;
    background: rgba(8, 16, 13, .58);
}

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

.cheat-table code {
    color: var(--gold-2);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
}

.risk-pill {
    display: inline-flex;
    min-width: 86px;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-weight: 900;
}

.risk-lower {
    color: #bff3d7;
    background: rgba(68, 201, 130, .13);
    border-color: rgba(68, 201, 130, .36);
}

.risk-medium {
    color: #ffe4a3;
    background: rgba(226, 180, 67, .13);
    border-color: rgba(226, 180, 67, .38);
}

.risk-high {
    color: #ffc4c4;
    background: rgba(225, 83, 83, .13);
    border-color: rgba(225, 83, 83, .4);
}

.cheat-list {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 18px;
}

@media (max-width: 980px) {
    .cheat-hero,
    .cheat-answer,
    .cheat-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 620px) {
    .article-header h1,
    .article-body {
        max-width: calc(100vw - 28px);
    }

    .cheat-hero,
    .cheat-panel {
        padding: 14px;
    }

    .cheat-check-grid,
    .cheat-builder-grid,
    .cheat-code-output {
        grid-template-columns: 1fr;
    }

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

    .cheat-status-card {
        min-height: 170px;
    }
}
