:root {
    --sl-green: #ffce39;
    --sl-green-dark: #65ba5a;
    --sl-mint: #2ee6a6;
    --sl-cyan: #22d3ee;
    --sl-yellow: #fde047;
    --sl-bg-main: #f0f2f5;
    --sl-bg-soft: #ecfdf5;
    --sl-card-bg: #ffffff;
    --sl-text-main: #052e1a;
    --sl-text-muted: #4b7b65;
    --sl-border: rgba(21, 92, 108, 0.45);
    --sl-shadow: 0 14px 32px rgba(26, 122, 154, 0.25), 0 0 0 2px rgba(28, 166, 181, 0.18);
}

.dark\:bg-gray-950:is(.dark *) {
    background-color: rgb(250, 249, 244);
    background-image: repeating-linear-gradient(45deg, rgba(34, 197, 94, 0.05) 1px, transparent 1px, transparent 26px);
    background-size: 14px 14px, 52px 52px;
    background-position: center center;
    color: var(--sl-text-main);
}

.btn-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: rgb(16, 108, 16);
    color: white;
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: initial;
    transition: 0.35s;
}

.btn-custom:hover {
    transform: translateY(1px) scale(0.95);
    box-shadow: var(--sl-shadow);
}

.card-thumb,
.slide-card,
.category-card {
    border-radius: 16px;
    border: 2px solid #ffce39;
    background: var(--sl-card-bg);
    overflow: hidden;
    position: relative;
    transition: 0.25s;
}

.card-thumb:hover,
.slide-card:hover,
.category-card:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--sl-green);
    box-shadow: rgba(12, 145, 66, 0.28) 0px 16px 36px, rgba(52, 225, 234, 0.22) 0px 0px 0px 2px;
}

.card-thumb-info {
    position: absolute;
    bottom: 0px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(to top, rgba(5, 46, 26, 0.95), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: 0.25s;
    display: flex;
    justify-content: center;
}

.card-thumb:hover .card-thumb-info {
    opacity: 1;
    transform: translateY(0px);
}

.card-thumb-title,
.slide-card-title {
    color: rgb(234, 255, 244);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.category-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--sl-text-main);
}

.input_search,
#search_txt {
    background: rgb(255, 255, 255);
    border-radius: 14px;
    color: #2a2e2c;
    font-family: "Segoe UI", sans-serif;
    /* border: 2px solid var(--sl-border) !important; */
}

.input_search::placeholder {
    color: var(--sl-text-muted);
}

.input_search:focus,
#search_txt:focus {
    outline: none;
    border-color: #0b8727;
    box-shadow: rgb(27 160 69 / 28%) 0px 0px 0px 3px;
}

.how-to-play-box {
    background: linear-gradient(135deg, #3a3a3a 0%, #5f6368 100%);
    border: 2px solid #4CAF50;
    border-radius: 18px;
    padding: 22px;
    margin: 18px 0px;
    transition: 0.25s;
}

.how-to-play-box:hover {
    transform: translateY(-2px);
}

.how-to-play-box h3 {
    color: var(--sl-green-dark);
    text-align: center;
    font-weight: 800;
}

.how-to-play-box strong {
    color: #ffce39;
}

.how-to-play-box ul li {
    color: #bdbdbd !important;
}

.player-footer {
    background: linear-gradient(135deg, rgb(31, 66, 31) 25%, Green 20%, rgb(16, 108, 16) 10%) !important;
    border-top: 2px solid rgb(22 156 34);
}

.player-footer__left h1 {
    color: #ffce39;
    font-weight: 900;
    font-size: 24px;
}

.text_color_footer {
    font-weight: 700;
    color: #23ab28;
}

.svg-icon__link {
    fill: #ffce39;
    transition: 0.25s;
}

.svg-icon__link:hover {
    filter: drop-shadow(rgba(34, 197, 94, 0.6) 0px 0px 6px);
}

.cat_item,
.popup-heading {
    background-color: rgb(152 152 152);
    color: rgb(255, 255, 255);
}

.how-to-play-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media screen and (max-width: 678px) {
    .how-to-play-grid {
        grid-template-columns: 1fr;
    }

    .py-20 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

.popup-link-share--url {
    border: 2px solid var(--sl-border);
    padding: 6px;
    border-radius: 8px;
}

.popup-link-share--copy {
    margin-left: 5px;
}

.search__result_container {
    background: rgba(18, 185, 71, 0.45);
    backdrop-filter: blur(10px);
}

.search-results .game-item:hover,
.search-results a:hover {
    background: #34994f;
    color: rgb(255, 255, 255);
}

.hidden-sm {
    display: none;
}

.card-thumb {
    transition: 0.3s;
}

.card-thumb.hidden-sm {
    opacity: 0;
    transform: translateY(10px);
}

.card-thumb:not(.hidden-sm) {
    opacity: 1;
    transform: translateY(0px);
}

#loadMoreBtn {
    display: block;
    margin: 30px auto;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    color: rgb(255, 255, 255);
    background: rgb(104, 193, 93);
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: initial;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 6px;
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 6px 18px;
}

#loadMoreBtn:active {
    transform: translateY(0px);
}

#loadMoreBtn.hidden {
    display: none;
}

.hidden-sm {
    display: none;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.show-item {
    animation: 0.4s ease 0s 1 normal forwards running fadeUp;
}

.card-thumb {
    will-change: transform, opacity;
}

.page-content-left__bottom.show_content {
    position: relative;
    bottom: auto;
}

@media screen and (min-device-width: 1900px) and (max-device-width: 1920px) {
    .max-h-\[calc\(66vh-4rem\)\] {
        max-height: calc(-3rem + 66vh) !important;
    }
}

@media screen and (min-device-width: 1360px) and (max-device-width: 1366px) {
    .max-h-\[calc\(66vh-4rem\)\] {
        max-height: calc(-1.8rem + 66vh) !important;
    }
}

.game-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 20px 0;
}

.guide-box {
    background: linear-gradient(135deg, #3a3a3a 0%, #5f6368 100%);
    padding: 20px;
    border-radius: 12px;
}

.guide-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.guide-box ol,
.guide-box ul {
    margin: 0;
    padding-left: 20px;
}

.guide-box li {
    margin-bottom: 10px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .game-guide-grid {
        grid-template-columns: 1fr;
    }
}

.game-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.guide-box {
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.guide-box:hover {
    transform: translateY(-6px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.guide-box h3 {
    margin: 0 0 15px;
}

.guide-box ol,
.guide-box ul {
    margin: 0;
    padding-left: 20px;
}

.guide-box li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.guide-box li:last-child {
    margin-bottom: 0;
}

.guide-box h3 {
    text-align: center;
}

/* Controls tables — legacy <table> markup only; div tables use game-description.css */
.game-description.page-content table.controls-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 1rem;
}

.game-description.page-content table.controls-table th,
.game-description.page-content table.controls-table td {
    padding: 10px 12px;
    border: 1px solid var(--sl-border);
    text-align: left;
    vertical-align: top;
    color: #c2c2c2;
}

.game-description.page-content table.controls-table thead th {
    background: var(--sl-bg-soft);
    font-weight: 600;
    color: var(--sl-text-main);
}

.game-description.page-content table.controls-table tbody tr {
    transition: background-color 0.2s ease;
}

.game-description.page-content table.controls-table tbody tr:hover {
    background: rgba(46, 230, 166, 0.1);
}

/* Game description content — mobile responsive (<768px) */
@media (max-width: 768px) {

    /* Contain horizontal bleed at section level; allow table scroll inside wrapper */
    .sub_description {
        overflow-x: hidden;
        max-width: 100%;
    }

    .sub_description .content-inner {
        overflow-x: visible;
        max-width: 100%;
    }

    .game-description.page-content {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .game-description.page-content p,
    .game-description.page-content li {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .game-description.page-content h2 {
        font-size: 1.375rem;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .game-description.page-content h3 {
        font-size: 1.125rem;
        margin-top: 0;
        margin-bottom: 0.625rem;
    }

    .game-guide-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 16px 0;
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .guide-box {
        padding: 16px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .guide-box:hover {
        transform: none;
    }

    .guide-box ol,
    .guide-box ul {
        padding-left: 18px;
        min-width: 0;
    }

    .guide-box li {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .game-description.page-content table.controls-table {
        width: auto;
        min-width: 480px;
        max-width: none;
        table-layout: auto;
        font-size: 0.875rem;
    }

    .game-description.page-content table.controls-table th,
    .game-description.page-content table.controls-table td {
        padding: 8px;
    }

    .game-description.page-content .faq-list {
        margin-top: 0.5rem;
    }

    .game-description.page-content .faq-item {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--sl-border);
    }

    .game-description.page-content .faq-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .game-description.page-content .faq-question {
        font-size: 1rem;
        line-height: 1.5;
        margin: 0 0 0.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .game-description.page-content .faq-answer {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .game-description.page-content .faq-answer p {
        margin: 0;
    }

    .game-description.page-content>ul {
        padding-left: 1.25rem;
    }

    .game-description.page-content>ul li {
        margin-bottom: 0.875rem;
        line-height: 1.6;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .game-description.page-content>ul li a {
        display: inline;
        padding: 4px 0;
    }
}

.vx-page {
    --vx-ink: #3a3a3a;
    --vx-muted: #5c5c5c;
    --vx-accent: #007b43;
    --vx-soft: rgba(0, 123, 67, 0.1);
}

html.dark .vx-page {
    --vx-ink: #d4d4d4;
    --vx-muted: #b0b8c1;
    --vx-accent: #4ade80;
    --vx-soft: rgba(0, 123, 67, 0.22);
}

.vx-page p {
    color: var(--vx-ink);
    line-height: 1.65;
}

.vx-ctrl {
    display: grid;
    margin: 0.45rem 0 1.9rem;
    border-top: 2px solid var(--vx-accent);
}

.vx-ctrl__head,
.vx-ctrl__row {
    display: grid;
    grid-template-columns: 0.95fr 1.1fr 1.25fr;
}

.vx-ctrl__head {
    background: var(--vx-soft);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--vx-accent);
}

.vx-ctrl__cell {
    padding: 0.62rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    color: #505050;
    line-height: 1.45;
    font-size: 0.95rem;
}

.vx-ctrl__row:last-child .vx-ctrl__cell {
    border-bottom: 0;
}

.vx-ctrl__cell--action {
    font-weight: 700;
}

.vx-ctrl__row:nth-child(odd) {
    background: rgba(0, 123, 67, 0.035);
}

html.dark .vx-ctrl__row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.03);
}

.vx-diff {
    margin: 0.2rem 0 1.15rem;
    padding-left: 1.15rem;
}

.vx-diff li {
    color: #4f4f4f;
    margin-bottom: 0.45rem;
    line-height: 1.55;
}

.vx-note {
    position: relative;
    margin: 0.2rem 0 1.9rem;
    padding: 0.85rem 1rem 0.9rem 2.45rem;
    border-left: 3px solid var(--vx-accent);
    background: var(--vx-soft);
}

.vx-note::before {
    content: "i";
    position: absolute;
    left: 0.85rem;
    top: 0.9rem;
    width: 0.95rem;
    height: 0.95rem;
    font-size: 0.72rem;
    font-weight: 700;
    font-style: italic;
    line-height: 0.95rem;
    text-align: center;
    color: var(--vx-accent);
    border: 1px solid var(--vx-accent);
    border-radius: 50%;
}

.vx-note p {
    margin: 0;
    color: var(--vx-ink);
    line-height: 1.6;
}

.vx-tips {
    list-style: none;
    counter-reset: vx-tip;
    padding: 0;
    margin: 0.35rem 0 1.85rem;
}

.vx-tips li {
    counter-increment: vx-tip;
    position: relative;
    padding: 0.7rem 0 0.7rem 2.15rem;
    color: #494949;
    line-height: 1.55;
    border-bottom: 1px dotted rgba(148, 163, 184, 0.4);
}

.vx-tips li:last-child {
    border-bottom: 0;
}

.vx-tips li::before {
    content: counter(vx-tip);
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 1.45rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--vx-accent);
}

@media (max-width: 767px) {
    .vx-ctrl__head {
        display: none;
    }

    .vx-ctrl {
        border-top: 0;
        gap: 0.65rem;
    }

    .vx-ctrl__row {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        margin: 0 0 0.65rem;
        padding: 0.8rem 0.85rem;
        background: var(--vx-soft);
        border-left: 3px solid var(--vx-accent);
    }

    .vx-ctrl__cell {
        padding: 0;
        border-bottom: 0;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .vx-ctrl__cell::before {
        content: attr(data-label);
        display: block;
        font-family: var(--font-heading);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--vx-accent);
        margin-bottom: 0.12rem;
    }

    .vx-note {
        padding: 0.75rem 0.85rem 0.75rem 2.3rem;
    }

    .vx-tips li {
        padding-left: 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 500px) {

    .vx-page p,
    .vx-ctrl__cell,
    .vx-diff li,
    .vx-tips li {
        font-size: 0.94rem;
    }
}

/* Death Run 3D game page — scoped to .dr-page */
.dr-page {
    --dr-ink: #3a3a3a;
    --dr-muted: #5c5c5c;
    --dr-accent: #007b43;
    --dr-soft: rgba(0, 123, 67, 0.1);
}

html.dark .dr-page {
    --dr-ink: #d4d4d4;
    --dr-muted: #b0b8c1;
    --dr-accent: #4ade80;
    --dr-soft: rgba(0, 123, 67, 0.22);
}

.dr-page p {
    color: var(--dr-ink);
    line-height: 1.65;
}

.dr-ctrl {
    display: grid;
    margin: 0.45rem 0 1.9rem;
    border-top: 2px solid var(--dr-accent);
}

.dr-ctrl__head,
.dr-ctrl__row {
    display: grid;
    grid-template-columns: 0.9fr 1.05fr 1.3fr;
}

.dr-ctrl__head {
    background: var(--dr-soft);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--dr-accent);
}

.dr-ctrl__cell {
    padding: 0.62rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    color: #393939;
    line-height: 1.45;
    font-size: 0.95rem;
}

.dr-ctrl__row:last-child .dr-ctrl__cell {
    border-bottom: 0;
}

.dr-ctrl__cell--action {
    font-weight: 700;
}

.dr-ctrl__row:nth-child(odd) {
    background: rgba(0, 123, 67, 0.035);
}

html.dark .dr-ctrl__row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.03);
}

.dr-diff {
    margin: 0.2rem 0 1.15rem;
    padding-left: 1.15rem;
}

.dr-diff li {
    color: #1f1f1f;
    margin-bottom: 0.45rem;
    line-height: 1.55;
}

.dr-note {
    position: relative;
    margin: 0.2rem 0 1.9rem;
    padding: 0.85rem 1rem 0.9rem 2.45rem;
    border-left: 3px solid var(--dr-accent);
    background: var(--dr-soft);
}

.dr-note::before {
    content: ">";
    position: absolute;
    left: 0.85rem;
    top: 0.9rem;
    width: 0.95rem;
    height: 0.95rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 0.95rem;
    text-align: center;
    color: var(--dr-accent);
    border: 1px solid var(--dr-accent);
}

.dr-note p {
    margin: 0;
    color: var(--dr-ink);
    line-height: 1.6;
}

.dr-tips {
    list-style: none;
    counter-reset: dr-tip;
    padding: 0;
    margin: 0.35rem 0 1.85rem;
}

.dr-tips li {
    counter-increment: dr-tip;
    position: relative;
    padding: 0.7rem 0 0.7rem 2.15rem;
    color: #373737;
    line-height: 1.55;
    border-bottom: 1px dotted rgba(148, 163, 184, 0.4);
}

.dr-tips li:last-child {
    border-bottom: 0;
}

.dr-tips li::before {
    content: counter(dr-tip);
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 1.45rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dr-accent);
}

@media (max-width: 767px) {
    .dr-ctrl__head {
        display: none;
    }

    .dr-ctrl {
        border-top: 0;
        gap: 0.65rem;
    }

    .dr-ctrl__row {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        margin: 0 0 0.65rem;
        padding: 0.8rem 0.85rem;
        background: var(--dr-soft);
        border-left: 3px solid var(--dr-accent);
    }

    .dr-ctrl__cell {
        padding: 0;
        border-bottom: 0;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .dr-ctrl__cell::before {
        content: attr(data-label);
        display: block;
        font-family: var(--font-heading);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--dr-accent);
        margin-bottom: 0.12rem;
    }

    .dr-note {
        padding: 0.75rem 0.85rem 0.75rem 2.3rem;
    }

    .dr-tips li {
        padding-left: 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 500px) {

    .dr-page p,
    .dr-ctrl__cell,
    .dr-diff li,
    .dr-tips li {
        font-size: 0.94rem;
    }
}

/* Bacon May Die game page — scoped to .bm-page */
.bm-page {
    --bm-ink: #3a3a3a;
    --bm-muted: #5c5c5c;
    --bm-accent: #007b43;
    --bm-soft: rgba(0, 123, 67, 0.1);
}

html.dark .bm-page {
    --bm-ink: #d4d4d4;
    --bm-muted: #b0b8c1;
    --bm-accent: #4ade80;
    --bm-soft: rgba(0, 123, 67, 0.22);
}

.bm-page p {
    color: var(--bm-ink);
    line-height: 1.65;
}

.bm-ctrl {
    display: grid;
    margin: 0.45rem 0 1.9rem;
    border-top: 2px solid var(--bm-accent);
}

.bm-ctrl__head,
.bm-ctrl__row {
    display: grid;
    grid-template-columns: 0.75fr 1.1fr 1.4fr;
}

.bm-ctrl__head {
    background: var(--bm-soft);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--bm-accent);
}

.bm-ctrl__cell {
    padding: 0.62rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    color: #2f2f2f;
    line-height: 1.45;
    font-size: 0.95rem;
}

.bm-ctrl__row:last-child .bm-ctrl__cell {
    border-bottom: 0;
}

.bm-ctrl__cell--action {
    font-weight: 700;
}

.bm-ctrl__row:nth-child(odd) {
    background: rgba(0, 123, 67, 0.035);
}

html.dark .bm-ctrl__row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.03);
}

.bm-diff {
    margin: 0.2rem 0 1.15rem;
    padding-left: 1.15rem;
}

.bm-diff li {
    color: #1c1c1c;
    margin-bottom: 0.45rem;
    line-height: 1.55;
}

.bm-note {
    position: relative;
    margin: 0.2rem 0 1.9rem;
    padding: 0.85rem 1rem 0.9rem 2.45rem;
    border-left: 3px solid var(--bm-accent);
    background: var(--bm-soft);
}

.bm-note::before {
    content: "+";
    position: absolute;
    left: 0.85rem;
    top: 0.9rem;
    width: 0.95rem;
    height: 0.95rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 0.9rem;
    text-align: center;
    color: var(--bm-accent);
    border: 1px solid var(--bm-accent);
}

.bm-note p {
    margin: 0;
    color: var(--bm-ink);
    line-height: 1.6;
}

.bm-tips {
    list-style: none;
    counter-reset: bm-tip;
    padding: 0;
    margin: 0.35rem 0 1.85rem;
}

.bm-tips li {
    counter-increment: bm-tip;
    position: relative;
    padding: 0.7rem 0 0.7rem 2.15rem;
    color: #272727;
    line-height: 1.55;
    border-bottom: 1px dotted rgba(148, 163, 184, 0.4);
}

.bm-tips li:last-child {
    border-bottom: 0;
}

.bm-tips li::before {
    content: counter(bm-tip);
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 1.45rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bm-accent);
}

@media (max-width: 767px) {
    .bm-ctrl__head {
        display: none;
    }

    .bm-ctrl {
        border-top: 0;
        gap: 0.65rem;
    }

    .bm-ctrl__row {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        margin: 0 0 0.65rem;
        padding: 0.8rem 0.85rem;
        background: var(--bm-soft);
        border-left: 3px solid var(--bm-accent);
    }

    .bm-ctrl__cell {
        padding: 0;
        border-bottom: 0;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .bm-ctrl__cell::before {
        content: attr(data-label);
        display: block;
        font-family: var(--font-heading);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--bm-accent);
        margin-bottom: 0.12rem;
    }

    .bm-note {
        padding: 0.75rem 0.85rem 0.75rem 2.3rem;
    }

    .bm-tips li {
        padding-left: 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 500px) {

    .bm-page p,
    .bm-ctrl__cell,
    .bm-diff li,
    .bm-tips li {
        font-size: 0.94rem;
    }
}

.play-gate {
    --gate-btn: #4e9a5f;
    --gate-btn-dark: #2f6b3d;

    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: hidden;
    border-radius: inherit;
}

.play-gate.is-hidden {
    display: none;
}

.play-gate__bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(14px) brightness(.5) saturate(1.1);
    transform: scale(1.1);
}

.play-gate__card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.play-gate__cover {
    width: clamp(130px, 22vw, 190px);
    aspect-ratio: 1;
    border: 3px solid #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.play-gate__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-gate__info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.play-gate__title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.play-gate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 34px;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    font-family: inherit;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .4);
    background: rgb(16, 108, 16);
    box-shadow: 0 5px 0 rgb(15 134 15), 0 12px 22px rgba(0, 0, 0, .4);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.play-gate__btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.play-gate__btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.play-gate__btn:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 var(--gate-btn-dark), 0 4px 10px rgba(0, 0, 0, .4);
}

.play-gate__btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.play-gate__btn:disabled {
    cursor: progress;
    filter: saturate(.7) brightness(.95);
    transform: none;
}

@media (max-width: 768px) {
    .play-gate__card {
        gap: 18px;
    }

    .play-gate__btn {
        padding: 12px 28px;
        font-size: 17px;
    }
}

/* ===== Tablet & mobile ===== */
@media (max-width: 768px) {
    .play-gate {
        padding: 14px;
    }

    .play-gate__bg {
        inset: -30px;
        filter: blur(10px) brightness(.5) saturate(1.1);
    }

    .play-gate__card {
        gap: 18px;
        width: 100%;
    }

    .play-gate__cover {
        width: clamp(120px, 38vw, 170px);
        border-width: 3px;
        border-radius: 20px;
    }

    .play-gate__btn {
        padding: 13px 30px;
        font-size: 17px;
        border-radius: 16px;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .play-gate {
        padding: 10px;
    }

    .play-gate__card {
        gap: 16px;
    }

    .play-gate__cover {
        width: clamp(110px, 40vw, 150px);
        border-radius: 18px;
    }

    .play-gate__btn {
        width: min(100%, 240px);
        padding: 12px 22px;
        font-size: 16px;
        letter-spacing: .06em;

    }

    .play-gate__btn:active {
        transform: translateY(3px);
        box-shadow: 0 1px 0 var(--gate-btn-dark), 0 3px 8px rgba(0, 0, 0, .4);
    }

    .play-gate__btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-height: 460px) and (orientation: landscape) {
    .play-gate__card {
        flex-direction: row;
        gap: 22px;
    }

    .play-gate__cover {
        width: clamp(90px, 28vh, 130px);
    }

    .play-gate__btn {
        width: auto;
        padding: 11px 24px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .play-gate__btn {
        transition: none;
    }
}

.basket-battle-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    margin: 20px 0;
    list-style: none;
    counter-reset: basket-step;
}

.basket-battle-steps li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
    counter-increment: basket-step;
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* .basket-battle-steps li::before {
    content: counter(basket-step, decimal-leading-zero);
    display: flex;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: #e8f7ed;
    color: #16803d;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
} */

.basket-battle-steps li:hover {
    border-color: #86cfa0;
    box-shadow: 0 4px 14px rgba(22, 128, 61, 0.08);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .basket-battle-steps {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .basket-battle-steps li {
        padding: 14px;
        font-size: 14px;
    }
}