:root {
    --primary-orange: #ff8a00;
    --primary-orange-light: #ffb84d;
    --gray-dark: #1e1e1e;
    --gray-mid: #2a2a2a;
    --gray-light: #3a3a3a;
    --border-gray: #4a4a4a;
    --border-orange: #ff8a00;
    --shadow-deep: 0 8px 30px rgba(61, 61, 61, 0.5);
    --text-primary: #ff7300;
    --text-secondary: rgb(246, 94, 0);
    --bg-stripe-1: #d9ffb3;
    --bg-stripe-2: #b6ffa1;
    --gray-light: #f2f2f2;
    --gray-dark: #b0b0b0;
    --text-muted: #6b6b6b;
    --gradient-primary: linear-gradient(135deg, #ff8800 0%, #ffc46b 100%);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
    --font-heading: 'Orbitron', sans-serif;
}

body {
    background: repeating-linear-gradient(-45deg,
            var(--bg-stripe-1),
            var(--bg-stripe-1) 20px,
            var(--bg-stripe-2) 20px,
            var(--bg-stripe-2) 40px);
    color: var(--text-primary);
    font-family: 'Segoe UI', 'Inter', sans-serif;
}

.header-bar {
    background: var(--gradient-primary);
    border-bottom: 2px solid var(--primary-orange);
    box-shadow: var(--shadow-light);
}

.input_search {
    background: #e2d3c9;
    border: 2px solid #ffffff;
    color: var(--text-muted);
    font-family: 'Segoe UI', 'Inter', sans-serif;
}

.input_search:focus {
    border: 2px solid #ffffff;
    box-shadow: 0 0 10px rgba(255, 138, 0, 0.5);
}

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

#search_button {
    color: var(--primary-orange) !important;
}

.game-player {
    background: rgb(243 243 243 / 80%);
    border: 3px solid var(--primary-orange);
    border-radius: 16px;
    box-shadow: var(--shadow-deep);
    transition: 0.3s;
}

.thumb-card {
    border: 2px solid var(--primary-orange);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.thumb-card:hover {
    transform: translateY(-6px) scale(1.03);
}

.thumb-card img {
    transition: 0.3s;
}

.thumb-card:hover img {
    transform: scale(1.1);
}

.content-inner {
    background: rgb(255 255 255 / 95%);
    border: 2px solid var(--primary-orange);
    border-radius: 12px;
    box-shadow: var(--shadow-deep);
}

.g-footer__button {
    background: var(--primary-orange);
    color: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 600;
    transition: 0.3s;
}

.g-footer__button:hover {
    background: rgb(250, 98, 37);
    transform: scale(1.05);
}

.popup-heading {
    background: var(--primary-orange);
    color: white;
}

.popup-content {
    background: rgb(255 255 255 / 95%);
    border: 2px solid var(--primary-orange);
}

.popup-link-share--url {
    background: var(--gray-dark);
    border: 2px solid var(--primary-orange);
    padding: 10px;
    border-radius: 8px;
}

.popup-link-share--copy {
    padding: 5px;
    background: var(--primary-orange);
    border: 2px solid var(--border-orange);
    border-radius: 8px;
}

.popup-link-share--copy:hover {
    background: var(--primary-orange-light);
}

.loader {
    border: 4px solid var(--gray-mid);
    border-top: 4px solid var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn_up {
    background: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    color: #fff;
    border-radius: 50%;
    padding: 10px;
    transition: 0.3s;
}

.btn_up:hover {
    background: var(--primary-orange-light);
    transform: scale(1.1);
}

a {
    color: var(--primary-orange);
}

.game-description h2 {
    background: #fb931d;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.game-player:hover {
    transform: translateY(-3px);
}

.player-footer {
    background: rgb(255 255 255 / 85%);
    border: 2px solid var(--primary-orange);
}

.search-box input:focus {
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
    outline: none;
}

.search__result_container {
    background: rgba(122, 226, 88, 0.5);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.search-results .game-item:hover,
.search-results .result-item:hover,
.search-results a:hover {
    background-color: rgb(235, 118, 64);
    transform: translateY(-1px);
    color: #fff !important;
}

.how-to-play-box {
    background: rgb(229, 251, 223, 0.5);
    /* border: 2px solid rgb(161, 161, 161); */
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.how-to-play-box:hover {
    box-shadow: var(--shadow-light);
}

.how-to-play-box h3 {
    color: var(--purple-light);
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 8px;
}

.how-to-play-box ul li {
    color: var(--text-muted);
    margin: 8px 0;
}

.how-to-play-box ul li strong {
    color: var(--text-secondary);
}

p {
    line-height: 1.5;
}

.player-footer__left h1 {
    color: var(--text-primary);
}

.game-description h2 strong {
    color: #ffffff;
}

p strong {
    color: var(--text-secondary);
}

p {
    color: var(--text-muted)
}

h3 strong {
    color: var(--text-secondary);
}

a:hover strong {
    text-decoration: underline;
    color: var(--primary-orange-light);
}

@media screen and (max-width: 768px) {
    .p-6 {
        padding: 1rem;
    }
}

.thumb-card,
.game-player,
.content-inner {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

ul li {
    color: var(--text-muted);
}

.text_search_complete {
    color: #f5f5f5 !important;
}

.font-heading {
    color: var(--text-muted);
}

.page-content h2 {
    color: var(--primary-orange);
}

.page-content ul {
    list-style-type: disc !important;
    padding-left: 20px;
    margin-left: 0;
}

.page-content ul li {
    display: list-item !important;
    list-style-position: outside;
}

.font-heading-prvc {
    font-family: var(--font-heading);
    font-size: 20px;
}

.game-description .db-sheet.db-sheet--facts {
    display: block;
    width: 100%;
    margin: 1rem 0 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    font-size: 0.95rem;
    line-height: 1.5;
}

.db-sheet--facts .db-sheet__head,
.db-sheet--facts .db-sheet__row {
    display: grid;
    grid-template-columns: minmax(150px, 32%) 1fr;
}

.db-sheet--facts .db-sheet__head {
    background: #f3f4f6;
    color: #374151;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.db-sheet--facts .db-sheet__cell {
    padding: 12px 16px;
    color: #4b5563;
    word-break: break-word;
}

.db-sheet--facts .db-sheet__cell--key {
    color: #111827;
    font-weight: 600;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
}

.db-sheet--facts .db-sheet__head .db-sheet__cell--key {
    background: transparent;
    color: inherit;
    border-right: 0;
}

.db-sheet--facts .db-sheet__row {
    border-top: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.db-sheet--facts .db-sheet__row:hover {
    background: #f9fafb;
}

.db-sheet--facts .db-sheet__row:hover .db-sheet__cell--key {
    background: #f3f4f6;
}

.dark .game-description .db-sheet.db-sheet--facts {
    background: #1f2937;
    border-color: #374151;
}

.dark .db-sheet--facts .db-sheet__head {
    background: #111827;
    color: #e5e7eb;
}

.dark .db-sheet--facts .db-sheet__cell {
    color: #d1d5db;
}

.dark .db-sheet--facts .db-sheet__cell--key {
    background: #182130;
    color: #f9fafb;
    border-right-color: #374151;
}

.dark .db-sheet--facts .db-sheet__row {
    border-top-color: #374151;
}

.dark .db-sheet--facts .db-sheet__row:hover {
    background: #263244;
}

.dark .db-sheet--facts .db-sheet__row:hover .db-sheet__cell--key {
    background: #1d2839;
}

@media (max-width: 640px) {
    .db-sheet--facts .db-sheet__head {
        display: none;
    }

    .db-sheet--facts .db-sheet__row {
        display: block;
        padding: 10px 0;
    }

    .db-sheet--facts .db-sheet__cell,
    .db-sheet--facts .db-sheet__cell--key {
        display: block;
        padding: 4px 16px;
        background: transparent;
        border-right: 0;
    }

    .db-sheet--facts .db-sheet__cell::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #9ca3af;
    }

    .db-sheet--facts .db-sheet__row:hover,
    .db-sheet--facts .db-sheet__row:hover .db-sheet__cell--key {
        background: transparent;
    }
}

:root,
.dark {
    --run3-bg-0: #0a0f24;
    --run3-bg-1: #1d1147;
    --run3-surface: #121638;
    --run3-border: #2a2f6b;
    --run3-key: #161a45;
    --run3-head: #1d1147;
    --run3-hover: #1f2457;
    --run3-cyan: #22d3ee;
    --run3-violet: #a855f7;
    --run3-pink: #f472b6;
    --run3-gold: #fde047;
    --run3-amber: #fb923c;
    --run3-text: #f1f3ff;
    --run3-copy: #d9dcff;
    --run3-muted: #a9aee0;
    --run3-ink: #0a0f24;
    --primary-orange: var(--run3-cyan);
    --primary-orange-light: var(--run3-gold);
    --border-orange: var(--run3-cyan);
    --border-gray: var(--run3-border);
    --text-primary: var(--run3-gold);
    --text-secondary: var(--run3-text);
    --text-muted: var(--run3-copy);
    --gradient-primary: linear-gradient(135deg, var(--run3-bg-0) 0%, var(--run3-bg-1) 100%);
    --shadow-light: 0 6px 22px rgba(34, 211, 238, 0.14);
    --shadow-deep: 0 0 22px rgba(34, 211, 238, 0.22);
    --bg-stripe-1: rgba(255, 255, 255, 0.045);
    --bg-stripe-2: rgba(255, 255, 255, 0.015);
    --foreground: var(--run3-text);
    --color-highlight: var(--run3-gold);
    --border: var(--run3-border);
}

body {
    background-color: var(--run3-bg-0);
    background-image:
        repeating-linear-gradient(-45deg,
            var(--bg-stripe-1) 0 20px,
            var(--bg-stripe-2) 20px 40px),
        linear-gradient(135deg, var(--run3-bg-0) 0%, var(--run3-bg-1) 100%);
    color: var(--run3-text);
}

.header-bar {
    background: var(--gradient-primary);
    border-bottom-color: var(--run3-cyan);
    box-shadow: 0 1px 0 var(--run3-pink), var(--shadow-light);
}

.logo-box {
    --tw-shadow-color: rgba(34, 211, 238, 0.28);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.22);
}

.input_search,
#search_txt {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(34, 211, 238, 0.45) !important;
    color: var(--run3-text) !important;
}

.input_search::placeholder {
    color: var(--run3-muted) !important;
}

.input_search:focus,
.search-box input:focus {
    border-color: var(--run3-cyan) !important;
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 0 16px rgba(34, 211, 238, 0.35);
    outline: none;
}

#search_button,
.text-\[\#007b43\]\/70,
.text-\[\#007b43\]\/80 {
    color: var(--run3-cyan) !important;
}

.header-menu__link {
    background: var(--run3-surface);
    color: var(--run3-text);
    border-color: var(--run3-cyan);
    box-shadow: 0 0 0 1px var(--run3-violet), 0 0 12px rgba(34, 211, 238, 0.18);
}

.header-menu__link:hover {
    background: linear-gradient(90deg, var(--run3-cyan), var(--run3-violet));
    color: var(--run3-ink);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.45);
    filter: none;
}

.header-menu-mobile__button {
    background: var(--run3-surface);
    color: var(--run3-text);
}

.header-menu.active {
    background: rgba(18, 22, 56, 0.94);
    box-shadow: 0 0 0 1px var(--run3-border);
}

.game-player {
    background: var(--run3-bg-0);
    border-color: var(--run3-cyan);
    box-shadow: 0 0 0 1px var(--run3-pink), 0 0 22px rgba(34, 211, 238, 0.28);
}

.player-footer {
    background: var(--run3-surface);
    border-color: var(--run3-border);
}

.player-footer__left h1 {
    color: var(--run3-gold);
    text-shadow: 0 0 12px rgba(253, 224, 71, 0.35);
}

.g-footer__button {
    background: linear-gradient(135deg, var(--run3-cyan), var(--run3-violet)) !important;
    color: var(--run3-ink);
}

.g-footer__button.favorite-icon,
.g-footer__button.favorites_btn {
    background: var(--run3-pink) !important;
    color: var(--run3-ink);
}

.g-footer__button:hover {
    background: linear-gradient(135deg, var(--run3-cyan), var(--run3-violet)) !important;
    color: var(--run3-ink);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.55);
}

.g-footer__button.favorite-icon:hover,
.g-footer__button.favorites_btn:hover,
.g-footer__button.active,
.g-footer__button.voted,
.g-footer__button.favorited {
    background: var(--run3-pink) !important;
    color: var(--run3-ink);
    box-shadow: 0 0 16px rgba(244, 114, 182, 0.6);
}

.thumb-card,
body.dark .thumb-card {
    background-color: var(--run3-surface);
    border-color: var(--run3-border);
}

.thumb-card:hover {
    border-color: var(--run3-cyan);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}

.text-\[\#007b43\],
.dark\:text-\[\#007b43\]:is(.dark *) {
    color: var(--run3-cyan);
}

.thumb-card:hover .text-\[\#007b43\],
.group:hover .group-hover\:text-\[\#00a35a\],
.group:hover .group-hover\:text-\[\#007b43\] {
    color: var(--run3-gold);
}

html.dark .content-inner,
.content-inner {
    background: var(--run3-surface);
    background-color: var(--run3-surface);
    border-color: var(--run3-border);
    color: var(--run3-copy);
    box-shadow: 0 8px 28px rgba(10, 15, 36, 0.45);
}

html.dark .content-inner:hover,
.content-inner:hover {
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 8px 28px rgba(34, 211, 238, 0.16);
}

.game-description,
.game-description p,
.game-description li,
.page-content,
.page-content p,
.page-content li {
    color: var(--run3-copy);
}

.game-description p strong,
.page-content p strong,
p strong {
    color: var(--run3-text);
}

.game-description h2,
.page-content h2,
.page-content h2:not([class]),
.sub_description h2:not([class]),
.game-description h2:not([class]) {
    background: var(--run3-head);
    color: var(--run3-cyan) !important;
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.12);
}

.game-description h2 strong,
.page-content h2 strong {
    color: var(--run3-cyan);
}

.game-description h3,
.game-description h3 strong,
.how-to-play-box h3,
.how-to-play-box h3 strong,
h3 strong,
.page-content h3:not([class]),
.sub_description h3:not([class]),
.page-content h4:not([class]),
.sub_description h4:not([class]) {
    color: var(--run3-cyan) !important;
    border-bottom-color: rgba(34, 211, 238, 0.4);
}

a {
    color: var(--run3-cyan);
}

a:hover,
a:hover strong,
footer a:hover {
    color: var(--run3-gold);
}

.how-to-play-box {
    background: rgba(22, 26, 69, 0.72);
}

.game-description .db-sheet.db-sheet--facts,
.dark .game-description .db-sheet.db-sheet--facts {
    background: var(--run3-surface);
    border-color: var(--run3-border);
}

.db-sheet--facts .db-sheet__head,
.dark .db-sheet--facts .db-sheet__head {
    background: var(--run3-head);
    color: var(--run3-cyan);
}

.db-sheet--facts .db-sheet__cell,
.dark .db-sheet--facts .db-sheet__cell {
    color: var(--run3-copy);
}

.db-sheet--facts .db-sheet__cell--key,
.dark .db-sheet--facts .db-sheet__cell--key {
    background: var(--run3-key);
    color: var(--run3-text);
    border-right-color: var(--run3-border);
}

.db-sheet--facts .db-sheet__head .db-sheet__cell--key,
.dark .db-sheet--facts .db-sheet__head .db-sheet__cell--key {
    background: transparent;
    color: var(--run3-cyan);
}

.db-sheet--facts .db-sheet__row,
.dark .db-sheet--facts .db-sheet__row {
    border-top-color: var(--run3-border);
}

.db-sheet--facts .db-sheet__row:hover,
.dark .db-sheet--facts .db-sheet__row:hover {
    background: var(--run3-hover);
}

.db-sheet--facts .db-sheet__row:hover .db-sheet__cell--key,
.dark .db-sheet--facts .db-sheet__row:hover .db-sheet__cell--key {
    background: var(--run3-hover);
}

.game-description .db-sheet--controls .db-sheet__head {
    background: var(--run3-head);
    color: var(--run3-cyan);
}

.game-description .db-sheet--controls .db-sheet__row .db-sheet__cell {
    color: var(--run3-copy);
    border-bottom-color: var(--run3-border);
}

.game-description .db-sheet--controls .db-sheet__row .db-sheet__cell--key {
    color: var(--run3-text);
    background: var(--run3-key);
    border-left-color: var(--run3-cyan);
}

.game-description .db-sheet--tips .db-sheet__head {
    border-bottom-color: var(--run3-cyan);
}

.game-description .db-sheet--tips .db-sheet__head .db-sheet__cell,
.game-description .db-sheet--tips .db-sheet__row .db-sheet__cell--key {
    color: var(--run3-cyan);
}

.game-description .db-sheet--tips .db-sheet__row .db-sheet__cell {
    color: var(--run3-copy);
}

.game-description .db-sheet--tips .db-sheet__row .db-sheet__cell--key {
    border-right-color: var(--run3-border);
}

.game-description .db-sheet--tips .db-sheet__row {
    background: rgba(22, 26, 69, 0.72);
}

.game-description .db-sheet--tips .db-sheet__row:nth-child(2n+1) {
    background: transparent;
}

.search__result_container {
    background: rgba(18, 22, 56, 0.94);
    border-color: var(--run3-border);
}

.search-results .game-item:hover,
.search-results .result-item:hover,
.search-results a:hover {
    background-color: var(--run3-hover);
    color: var(--run3-gold) !important;
}

.popup-heading {
    background: var(--gradient-primary);
    color: var(--run3-text);
}

.popup-content {
    background: var(--run3-surface);
    border-color: var(--run3-border);
}

.popup-link-share--url {
    background: var(--run3-bg-0);
    border-color: var(--run3-cyan);
    color: var(--run3-text);
}

.popup-link-share--copy {
    background: linear-gradient(90deg, var(--run3-cyan), var(--run3-violet));
    border-color: transparent;
    color: var(--run3-ink);
}

.popup-link-share--copy:hover {
    background: linear-gradient(90deg, var(--run3-gold), var(--run3-amber));
    color: var(--run3-ink);
}

.load-more-btn {
    background: linear-gradient(135deg, var(--run3-cyan), var(--run3-violet));
    color: var(--run3-ink);
    box-shadow: 0 4px 14px rgba(34, 211, 238, 0.25);
}

.load-more-btn:hover {
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}

.btn_up {
    background: linear-gradient(135deg, var(--run3-cyan), var(--run3-violet));
    border-color: transparent;
    color: var(--run3-ink);
}

.btn_up:hover {
    background: linear-gradient(135deg, var(--run3-gold), var(--run3-amber));
    color: var(--run3-ink);
}


footer a,
a.text-color {
    color: var(--run3-cyan);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--run3-cyan), var(--run3-violet));
}

::-webkit-scrollbar-track {
    background: var(--run3-bg-0);
}

::selection {
    background: #6d28d9;
    color: #ffffff;
}

:focus-visible {
    outline-color: var(--run3-cyan);
}

.divider {
    background: linear-gradient(90deg, var(--run3-cyan), var(--run3-pink));
}

@media (max-width: 767px) {
    .game-description .db-sheet--controls .db-sheet__row {
        background: var(--run3-key);
        border-color: var(--run3-border);
    }

    .game-description .db-sheet--controls .db-sheet__row .db-sheet__cell--key {
        background: var(--run3-head);
        color: var(--run3-cyan);
    }

    .game-description .db-sheet--tips .db-sheet__row {
        background: var(--run3-key);
    }

    .game-description .db-sheet--tips .db-sheet__row:nth-child(2n+1) {
        background: var(--run3-surface);
    }

    .game-description .db-sheet__cell::before {
        color: var(--run3-cyan);
    }
}

@media (max-width: 640px) {

    .db-sheet--facts .db-sheet__cell,
    .db-sheet--facts .db-sheet__cell--key,
    .dark .db-sheet--facts .db-sheet__cell,
    .dark .db-sheet--facts .db-sheet__cell--key,
    .db-sheet--facts .db-sheet__row:hover,
    .db-sheet--facts .db-sheet__row:hover .db-sheet__cell--key,
    .dark .db-sheet--facts .db-sheet__row:hover,
    .dark .db-sheet--facts .db-sheet__row:hover .db-sheet__cell--key {
        background: transparent;
    }

    .db-sheet--facts .db-sheet__cell::before,
    .dark .db-sheet--facts .db-sheet__cell::before {
        color: var(--run3-cyan);
    }
}

.game-description {
    --faq-bg: #ffffff;
    --faq-q-bg: #f3f4f6;
    --faq-border: #e5e7eb;
    --faq-q-text: #111827;
    --faq-a-text: #4b5563;
    --faq-accent: #f97316;
    --faq-accent-soft: rgba(249, 115, 22, 0.12);
    --faq-badge-text: #ffffff;
}

.dark .game-description {
    --faq-bg: #1f2937;
    --faq-q-bg: #111827;
    --faq-border: #374151;
    --faq-q-text: #f9fafb;
    --faq-a-text: #d1d5db;
    --faq-accent: #22d3ee;
    --faq-accent-soft: rgba(251, 146, 60, 0.18);
    --faq-badge-text: #111827;
}

.game-description h2:last-of-type~h3 {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    background: var(--faq-q-bg);
    color: var(--faq-q-text);
    border: 1px solid var(--faq-border);
    border-left: 4px solid var(--faq-accent);
    border-radius: 12px 12px 0 0;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-description h2:last-of-type~h3>strong {
    font-weight: 700;
    color: inherit;
}

.game-description h2:last-of-type~h3::before {
    content: "Q";
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--faq-accent);
    color: var(--faq-badge-text);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

.game-description h2:last-of-type~h3+p {
    margin: 0 0 14px;
    padding: 14px 16px 16px 52px;
    /* 52px = thẳng hàng với chữ câu hỏi */
    background: var(--faq-bg);
    color: var(--faq-a-text);
    border: 1px solid var(--faq-border);
    border-top: 0;
    border-left: 4px solid var(--faq-accent-soft);
    border-radius: 0 0 12px 12px;
    font-size: 0.95rem;
    line-height: 1.65;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-description h2:last-of-type~h3:hover,
.game-description h2:last-of-type~h3:hover+p {
    border-color: var(--faq-accent);
}

.game-description h2:last-of-type~h3:hover {
    box-shadow: 0 4px 14px var(--faq-accent-soft);
}

.game-description h2:last-of-type~h3+p:last-child {
    margin-bottom: 0;
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
    .game-description h2:last-of-type~h3 {
        padding: 12px 12px;
        gap: 10px;
        font-size: 0.95rem;
    }

    .game-description h2:last-of-type~h3+p {
        padding: 12px 12px 14px 12px;
        font-size: 0.92rem;
    }
}

.game-description .db-sheet--tips,
.game-description .db-sheet--controls {
    --hv-accent: var(--run3-cyan, #22d3ee);
    --hv-accent-soft: rgba(34, 211, 238, 0.14);
    --hv-key: #fde047;
}

.game-description .db-sheet--tips .db-sheet__row,
.game-description .db-sheet--controls .db-sheet__row {
    transition: background-image 0.25s ease, box-shadow 0.25s ease;
    background-repeat: no-repeat;
}

.game-description .db-sheet--tips .db-sheet__row .db-sheet__cell,
.game-description .db-sheet--controls .db-sheet__row .db-sheet__cell {
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

@media (hover: hover) {

    .game-description .db-sheet--tips .db-sheet__row:hover,
    .game-description .db-sheet--controls .db-sheet__row:hover {
        background-image: linear-gradient(90deg, var(--hv-accent-soft) 0%, rgba(168, 85, 247, 0.06) 55%, transparent 100%);
        box-shadow: inset 3px 0 0 var(--hv-accent), 0 0 18px rgba(34, 211, 238, 0.12);
    }

    .game-description .db-sheet--tips .db-sheet__row:hover .db-sheet__cell--key,
    .game-description .db-sheet--controls .db-sheet__row:hover .db-sheet__cell--key {
        color: var(--hv-key);
        text-shadow: 0 0 10px rgba(253, 224, 71, 0.45);
    }

    .game-description .db-sheet--tips .db-sheet__row:hover .db-sheet__cell:not(.db-sheet__cell--key),
    .game-description .db-sheet--controls .db-sheet__row:hover .db-sheet__cell:not(.db-sheet__cell--key) {
        color: #f1f3ff;
    }
}

.game-description .db-sheet--tips .db-sheet__row:focus-within,
.game-description .db-sheet--controls .db-sheet__row:focus-within {
    box-shadow: inset 3px 0 0 var(--hv-accent);
}

@media (prefers-reduced-motion: reduce) {

    .game-description .db-sheet--tips .db-sheet__row,
    .game-description .db-sheet--tips .db-sheet__row .db-sheet__cell,
    .game-description .db-sheet--controls .db-sheet__row,
    .game-description .db-sheet--controls .db-sheet__row .db-sheet__cell {
        transition: none;
    }
}