.code-table .code-cell {
    display: grid;
    justify-items: start;
    gap: 4px;
    min-width: 0;
}

.game-guide-header {
    background: #fff;
    border-top: 5px solid var(--coral);
    border-bottom: 1px solid var(--line);
}

.game-guide-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 18px;
    align-items: start;
    padding-block: 34px 38px;
}

.breadcrumbs {
    display: flex;
    gap: 7px;
    overflow: hidden;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.breadcrumbs a {
    text-decoration: underline;
}

.breadcrumbs b {
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
}

.game-guide-header h1 {
    max-width: 840px;
    margin: 0;
    font-size: 34px;
    line-height: 1.04;
}

.game-guide-header h1 span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 17px;
    font-weight: 650;
}

.game-guide-deck {
    max-width: 760px;
    margin: 17px 0 20px;
    color: var(--muted);
    font-size: 16px;
}

.game-guide-cover {
    width: 96px;
    height: 96px;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.guide-meta,
.guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guide-meta span {
    padding: 7px 9px;
    background: var(--paper);
    border-left: 3px solid var(--mint);
    font-size: 11px;
}

.guide-actions {
    margin-top: 18px;
}

.guide-jumpbar {
    background: var(--charcoal);
    color: #fff;
}

.guide-jumpbar .shell {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}

.guide-jumpbar a {
    flex: 0 0 auto;
    padding: 12px 13px;
    border-right: 1px solid #3a4246;
    color: #d9e0dd;
    font-size: 11px;
    font-weight: 700;
}

.code-guide-layout {
    display: grid;
    gap: 28px;
}

.code-guide-content {
    min-width: 0;
}

.guide-answer {
    padding: 21px;
    background: #e8f8f1;
    border-left: 4px solid var(--mint);
}

.guide-answer h2,
.guide-section h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.16;
}

.guide-answer p:last-child,
.guide-section > p {
    color: #4f585d;
}

.guide-section {
    padding-block: 34px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 12px;
}

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

.guide-section-heading > span {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.code-entry {
    display: grid;
    gap: 9px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
}

.code-entry:first-of-type {
    border-top: 3px solid var(--mint);
}

.code-entry > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.code-entry code,
.expired-code-grid code {
    overflow-wrap: anywhere;
    background: var(--charcoal);
    color: #fff;
    padding: 6px 9px;
    border-radius: 3px;
    font-weight: 800;
}

.code-entry p {
    margin: 0;
    font-weight: 650;
}

.code-entry small {
    color: var(--muted);
    font-size: 10px;
}

.prerequisite {
    margin: 17px 0;
    padding: 15px;
    background: #fff5d6;
    border-left: 4px solid var(--yellow);
}

.prerequisite p {
    margin: 4px 0 0;
}

.redeem-steps {
    display: grid;
    gap: 0;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.redeem-steps li,
.reason-list > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.redeem-steps span,
.reason-list b {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: var(--charcoal);
    color: #fff;
    font-size: 11px;
}

.redeem-steps p,
.reason-list p {
    margin: 3px 0 0;
}

.expired-code-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 17px;
}

.expired-code-grid code {
    background: #e3e6e2;
    color: #59615d;
    font-size: 11px;
    text-decoration: line-through;
}

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

.faq-section summary {
    cursor: pointer;
    font-weight: 750;
}

.faq-section details p {
    margin-bottom: 0;
    color: var(--muted);
}

.source-ledger a {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.source-ledger a b {
    color: #22735e;
    font-size: 10px;
}

.source-ledger a span {
    overflow-wrap: anywhere;
    font-size: 12px;
    text-decoration: underline;
}

.guide-aside {
    align-self: start;
    display: grid;
    gap: 12px;
}

.guide-aside section {
    padding: 17px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--coral);
}

.guide-aside dl,
.guide-aside dl div {
    display: grid;
    gap: 3px;
}

.guide-aside dl {
    gap: 12px;
    margin-bottom: 0;
}

.guide-aside dt {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.guide-aside dd {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

@media (min-width: 700px) {
    .game-guide-hero {
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 38px;
        align-items: center;
        padding-block: 54px;
    }

    .game-guide-cover {
        width: 220px;
        height: 220px;
    }

    .game-guide-header h1 {
        font-size: 49px;
    }

    .game-guide-header h1 span {
        font-size: 21px;
    }

    .code-entry {
        grid-template-columns: minmax(180px, .7fr) minmax(180px, 1fr) auto;
        align-items: center;
    }

    .code-entry > small {
        grid-column: 2;
    }
}

@media (min-width: 1020px) {
    .code-guide-layout {
        grid-template-columns: minmax(0, 780px) 260px;
        justify-content: center;
        align-items: start;
    }

    .guide-aside {
        position: sticky;
        top: 18px;
    }
}

.code-table .code-cell small,
.code-table .code-cell > a {
    color: var(--muted);
    font-size: 11px;
}

.code-table .code-cell > a {
    overflow-wrap: anywhere;
    text-decoration: underline;
}

.code-table code {
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media (max-width: 699px) {
    .code-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .code-table {
        display: block;
        min-width: 0;
    }

    .code-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .code-table tbody {
        display: grid;
        gap: 10px;
    }

    .code-table tr {
        display: grid;
        padding: 10px 13px;
        background: #fff;
        border: 1px solid var(--line);
        border-top: 3px solid var(--mint);
        border-radius: var(--radius);
    }

    .code-table td {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 12px;
        min-width: 0;
        padding: 9px 0;
        border-top: 1px solid var(--line);
    }

    .code-table td:first-child {
        border-top: 0;
    }

    .code-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 10px;
        font-weight: 850;
        line-height: 1.4;
        text-transform: uppercase;
    }
}
