/* Panicmodeon 2026 redesign: responsive, accessible, document-flow layout */
:root {
    --page: #f4f6fb;
    --surface: #ffffff;
    --surface-soft: #eef3f7;
    --ink: #17213a;
    --ink-soft: #526079;
    --ink-muted: #5e6d84;
    --navy: #13213c;
    --teal: #087f8c;
    --teal-dark: #05636d;
    --orange: #f97346;
    --orange-dark: #bd3e1e;
    --line: #d8e0eb;
    --focus: #ffb703;
    --shadow: 0 14px 35px rgba(23, 33, 58, 0.10);
    --shadow-small: 0 6px 18px rgba(23, 33, 58, 0.08);
    --radius-small: 10px;
    --radius: 16px;
    --radius-large: 26px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--page);
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: none;
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: visible;
    background: var(--page);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

body::before {
    display: none;
}

img,
svg {
    max-width: 100%;
}

button,
input {
    font: inherit;
}

a,
button,
input {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

/* Header: intentionally remains in normal document flow. */
.site-header,
.lodcvb-navbar {
    position: static;
}

.site-header {
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.lodcvb-navbar {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    height: auto;
    min-height: 82px;
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.lodcvb-nav-logo {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    text-decoration: none;
}

.lodcvb-nav-logo img {
    width: 48px;
    height: 48px;
    padding: 4px;
    object-fit: cover;
    border: 2px solid #c7d6e9;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(19, 33, 60, 0.14);
}

.lodcvb-nav-logo:hover img {
    transform: rotate(-4deg) scale(1.04);
}

.lodcvb-nav-title {
    color: var(--navy);
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 1.32rem;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.lodcvb-category-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 0;
    overflow: visible;
    flex-wrap: wrap;
}

.category-nav-item {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--ink-soft);
    background: transparent;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.category-nav-item:hover {
    color: var(--teal-dark);
    background: #e6f4f5;
    border-color: #b9dde0;
}

.category-nav-item.is-active {
    color: #fff;
    background: var(--navy);
    border-color: var(--navy);
}

.category-nav-item:active {
    transform: translateY(1px);
}

/* Shared page frame */
#lodcvb-game-body,
.page-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

#lodcvb-game-body {
    margin-top: 0;
}

.page-intro {
    margin: 28px 0 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.page-intro h1,
.page-intro p {
    margin: 0;
}

.page-intro h1 {
    color: var(--navy);
    font-size: clamp(1.75rem, 4vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.page-intro p {
    max-width: 610px;
    color: var(--ink-soft);
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Home */
.home-hero {
    margin: 28px 0 30px;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 22px;
    align-items: stretch;
}

.hero-copy {
    min-width: 0;
    padding: clamp(26px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: var(--radius-large);
    background: var(--navy);
    color: #fff;
    box-shadow: var(--shadow);
}

.hero-copy .eyebrow {
    color: #83e1e7;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.25rem, 5.4vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-copy > p {
    max-width: 560px;
    margin: 20px 0 0;
    color: #cbd6e6;
    font-size: 1.02rem;
}

.search-container {
    width: 100%;
    margin: 26px 0 0;
    position: relative;
    z-index: 5;
}

.search-box {
    width: 100%;
    min-height: 52px;
    padding: 6px 12px 6px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #fff;
}

.search-box:focus-within {
    border-color: var(--focus);
    box-shadow: 0 0 0 4px rgba(255, 183, 3, 0.18);
}

.search-icon {
    width: 21px;
    height: 21px;
    color: var(--teal-dark);
    flex: 0 0 auto;
}

.search-input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 0.96rem;
}

.search-input::placeholder {
    color: #7f8ba0;
}

.search-clear-btn {
    width: 36px;
    height: 36px;
    padding: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    color: var(--ink-soft);
    background: #eef2f7;
    cursor: pointer;
}

.search-clear-btn:hover {
    color: #fff;
    background: var(--orange-dark);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 430px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.search-result-item {
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
}

.search-result-item:hover,
.search-result-item:focus-within {
    background: #edf8f8;
}

.search-result-title {
    color: var(--navy);
}

.search-result-desc,
.search-no-results {
    color: var(--ink-soft);
}

.carousel-container {
    min-width: 0;
    min-height: 430px;
    margin: 0;
    overflow: hidden;
    position: relative;
    border: 0;
    border-radius: var(--radius-large);
    background: #dce4ee;
    box-shadow: var(--shadow);
}

.carousel-wrapper {
    height: 100%;
    min-height: 430px;
}

.carousel-slide,
.carousel-slide a {
    height: 100%;
}

.carousel-slide a {
    display: block;
    position: relative;
    color: #fff;
    text-decoration: none;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide-overlay {
    padding: clamp(22px, 4vw, 38px);
    background: linear-gradient(to top, rgba(10, 20, 39, 0.96), rgba(10, 20, 39, 0.52), transparent);
}

.carousel-slide-title {
    font-size: clamp(1.3rem, 3vw, 2.05rem);
}

.carousel-slide-desc {
    max-width: 620px;
    color: #e1e8f1;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(19, 33, 60, 0.82);
}

.carousel-btn:hover {
    color: var(--navy);
    background: var(--focus);
    border-color: var(--focus);
}

.carousel-indicator {
    background: rgba(255, 255, 255, 0.65);
}

.carousel-indicator.active {
    background: var(--focus);
}

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

.home-section-heading h2,
.home-section-heading p {
    margin: 0;
}

.home-section-heading h2 {
    color: var(--navy);
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    letter-spacing: -0.03em;
}

.home-section-heading p {
    max-width: 560px;
    color: var(--ink-soft);
    text-align: right;
}

.category-grid-container {
    margin: 0 0 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.category-item {
    min-width: 0;
    height: auto;
    min-height: 86px;
    padding: 14px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--navy);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.category-item:hover {
    transform: translateY(-3px);
    border-color: #80c4ca;
    background: #ecf8f8;
    box-shadow: var(--shadow);
}

.category-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: var(--teal);
}

.category-item:nth-child(3n + 2) .category-icon {
    background: var(--orange);
}

.category-item:nth-child(3n) .category-icon {
    background: var(--navy);
}

.category-name {
    min-width: 0;
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 800;
    text-align: left;
}

.category-item:hover .category-name {
    color: var(--teal-dark);
}

.home-shelves {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.home-shelves .lodcvb-recomed-div {
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-large);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.lodcvb-common-recommend-title {
    min-width: 0;
    margin: 0;
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: var(--surface);
}

.lodcvb-common-recommend-title:hover {
    border-color: var(--line);
    box-shadow: none;
}

.badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--teal);
}

.badge-icon-pink,
.badge-icon-orange,
.badge-icon-yellow {
    background: var(--orange);
}

.badge-icon-purple,
.badge-icon-blue,
.badge-icon-red {
    background: var(--navy);
}

.badge-icon-green {
    background: var(--teal);
}

.badge-title {
    color: var(--navy);
}

.badge-subtitle {
    color: var(--ink-muted);
}

.badge-more-btn {
    width: auto;
    min-width: 42px;
    height: 38px;
    border: 1px solid #a9d7db;
    border-radius: 10px;
    color: var(--teal-dark);
    background: #e9f6f7;
}

.badge-more-btn:hover {
    color: #fff;
    background: var(--teal-dark);
    transform: translateX(2px);
}

.lodcvb-recommend-content-scrollable {
    margin: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    border: 0;
    border-radius: 0;
    background: var(--surface-soft);
}

.seo-content-section,
.game-types-section {
    margin: 32px 0 0;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--radius-large);
    background: var(--surface);
}

.seo-content-section h2,
.game-types-section h2 {
    margin-top: 0;
    color: var(--navy);
}

.seo-benefits {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.benefit-item {
    padding: 18px;
    border-color: var(--line);
    background: var(--surface-soft);
}

.benefit-item h3,
.game-type-info h3 {
    color: var(--teal-dark);
}

.benefit-item p,
.game-type-info p {
    color: var(--ink-soft);
}

/* Cards */
.recommend-item,
.lodcvb-game-item {
    width: 100%;
    justify-self: stretch;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: 0 3px 10px rgba(23, 33, 58, 0.06);
}

.recommend-item:hover,
.lodcvb-game-item:hover {
    transform: translateY(-3px);
    border-color: #7bc0c6;
    background: #fff;
    box-shadow: 0 12px 24px rgba(23, 33, 58, 0.14);
}

.recommend-item a,
.lodcvb-game-item a {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    text-decoration: none;
}

.lodcvb-game-cover,
.lodcvb-game-cover-recommend {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #dfe6ef;
}

.lodcvb-game-cover img,
.lodcvb-game-cover-recommend img,
.recommend-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    border-radius: 0;
}

.recommend-item:hover img,
.lodcvb-game-item:hover img {
    transform: scale(1.035);
}

.lodcvb-game-info {
    min-width: 0;
    min-height: 52px;
    padding: 10px 11px;
    justify-content: center;
}

.lodcvb-game-info p,
.lodcvb-game-info p:first-child,
.lodcvb-game-info p:last-child {
    width: 100%;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Channel */
.lodcvb-game-container {
    margin: 0;
}

.lodcvb-game-title {
    margin: 28px 0 18px;
    padding: 0;
    justify-content: flex-start;
    border: 0;
    background: transparent;
}

.lodcvb-game-title img {
    width: 42px;
    height: 42px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.lodcvb-game-title p {
    padding-left: 12px;
    color: var(--navy);
    font-size: clamp(1.65rem, 4vw, 2.45rem);
    font-weight: 850;
    letter-spacing: -0.035em;
}

.lodcvb-game-item-div,
.lodcvb-recommend-content,
.lodcvb-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.lodcvb-game-item-div {
    padding: 0;
}

.lodcvb-recomed-div,
.lodcvb-detail-recomed-div {
    width: min(1180px, calc(100% - 40px));
    margin: 34px auto 0;
    padding: 0;
}

.home-shelves .lodcvb-recomed-div {
    width: auto;
}

.lodcvb-recomed-div > .lodcvb-common-recommend-title,
.lodcvb-detail-recomed-div .section-title {
    margin-bottom: 14px;
    padding: 0;
    border: 0;
    background: transparent;
}

.lodcvb-recomed-div > .lodcvb-common-recommend-title p,
.section-title p {
    margin: 0;
    color: var(--navy);
    font-size: 1.45rem;
    font-weight: 850;
}

.home-shelves .lodcvb-recomed-div > .lodcvb-common-recommend-title {
    margin-bottom: 0;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.home-shelves .lodcvb-recomed-div > .lodcvb-common-recommend-title .badge-title {
    font-size: 1rem;
}

/* Detail */
.game-detail-wrapper {
    margin: 30px 0 0;
}

.game-detail-hero-section {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-large);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.game-detail-image-container {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
    background: #dce4ee;
}

.game-detail-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-detail-content-container {
    min-width: 0;
    padding: clamp(28px, 5vw, 58px);
    gap: 18px;
}

.detail-badge {
    color: #fff;
    background: var(--teal-dark);
}

.game-detail-main-title {
    overflow-wrap: anywhere;
    color: var(--navy);
    font-size: clamp(2rem, 4.5vw, 4rem);
    letter-spacing: -0.045em;
}

.game-detail-main-desc {
    color: var(--ink-soft);
    font-size: 1rem;
}

.game-detail-cta-btn {
    justify-content: center;
    border: 2px solid var(--orange-dark);
    border-radius: 12px;
    color: #fff;
    background: var(--orange-dark);
    box-shadow: none;
}

.game-detail-cta-btn:hover {
    border-color: var(--navy);
    background: var(--navy);
    box-shadow: 0 10px 24px rgba(19, 33, 60, 0.22);
}

.lodcvb-detail-recomed-div {
    width: 100%;
    margin-top: 34px;
}

/* Legal and informational pages */
.lodcvb-news-detail {
    overflow-wrap: anywhere;
    width: min(900px, calc(100% - 40px));
    margin: 30px auto 0;
    padding: clamp(24px, 5vw, 54px);
    border: 1px solid var(--line);
    border-radius: var(--radius-large);
    color: var(--ink-soft);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.lodcvb-news-detail h1,
.lodcvb-news-detail h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.1;
    text-align: left;
    letter-spacing: -0.035em;
}

.lodcvb-news-detail h2,
.lodcvb-news-detail h4 {
    margin: 32px 0 10px;
    color: var(--teal-dark);
    font-size: 1.2rem;
    line-height: 1.3;
}

.lodcvb-news-detail p,
.lodcvb-news-detail li {
    color: var(--ink-soft);
    font-size: 0.98rem;
}

.lodcvb-news-detail strong {
    color: var(--navy);
}

.lodcvb-news-detail a {
    color: #006b75;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.lodcvb-news-detail a:hover {
    color: var(--orange-dark);
}

.legal-meta {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-muted);
}

/* Footer */
footer {
    width: 100%;
    margin-top: 46px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 0;
    color: #d6e0ed;
    background: var(--navy);
}

.lodcvb-footer-links {
    margin: 0;
    gap: 8px;
}

.lodcvb-footer-links a {
    padding: 7px 11px;
    border-radius: 8px;
    color: #e7edf5;
    font-size: 0.83rem;
    font-weight: 700;
}

.lodcvb-footer-links a:hover {
    color: var(--navy);
    background: var(--focus);
}

footer .lodcvb-copyright {
    margin: 0;
    color: #9fb0c7;
    font-size: 0.78rem;
}

/* 404 */
.error-page {
    min-height: 100vh;
    padding: 50px 20px;
    justify-content: center;
    background: var(--page);
}

.error-page > img {
    width: min(520px, 90vw);
    padding: 0;
}

.error-page a img {
    width: auto;
    max-width: min(260px, 75vw);
    padding: 0;
}

/* Play page. The game iframe and its source markup are intentionally untouched. */
.lodcvb-game-iframe {
    width: 100%;
    height: 100vh;
    min-height: 520px;
    background: #0c1425;
}

.lodcvb-game-iframe-back {
    position: absolute;
    z-index: 20;
    top: 14px;
    left: 14px;
}

#iframe-back-btn {
    position: static;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(19, 33, 60, 0.9);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
    cursor: pointer;
}

.player-back-button {
    display: flex;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.player-back-button:hover #iframe-back-btn {
    background: var(--teal-dark);
}

@media (max-width: 1100px) {
    .lodcvb-navbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .lodcvb-category-nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: visible;
        scrollbar-width: thin;
    }

    .lodcvb-game-item-div,
    .lodcvb-recommend-content,
    .lodcvb-common-recommend-content {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .carousel-container,
    .carousel-wrapper {
        min-height: 390px;
    }

    .home-shelves {
        grid-template-columns: 1fr;
    }

    .home-shelves .lodcvb-recommend-content-scrollable {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 759px) {
    #lodcvb-game-body,
    .page-shell,
    .lodcvb-recomed-div,
    .lodcvb-news-detail {
        width: min(100% - 28px, 1180px);
    }

    .lodcvb-navbar {
        width: min(100% - 28px, 1180px);
        min-height: 0;
        padding: 12px 0 10px;
    }

    .lodcvb-nav-logo img {
        width: 42px;
        height: 42px;
    }

    .lodcvb-nav-title {
        font-size: 1.12rem;
    }

    .category-nav-item {
        min-height: 38px;
        padding: 8px 11px;
        font-size: 0.8rem;
    }

    .home-hero {
        margin-top: 18px;
    }

    .hero-copy {
        padding: 28px;
    }

    .carousel-container,
    .carousel-wrapper {
        min-height: 320px;
    }

    .home-section-heading,
    .page-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .home-section-heading p {
        text-align: left;
    }

    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .category-item {
        min-height: 78px;
        padding: 9px 6px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }

    .category-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 9px;
    }

    .category-name {
        font-size: 0.72rem;
        text-align: center;
    }

    .home-shelves .lodcvb-recommend-content-scrollable,
    .lodcvb-game-item-div,
    .lodcvb-recommend-content,
    .lodcvb-common-recommend-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .game-detail-hero-section {
        grid-template-columns: 1fr;
    }

    .game-detail-image-container {
        max-height: 580px;
    }

    .game-detail-content-container {
        padding: 28px;
    }

    .lodcvb-news-detail {
        margin-top: 20px;
        padding: 26px;
    }
}

@media (max-width: 479px) {
    #lodcvb-game-body,
    .page-shell,
    .lodcvb-recomed-div,
    .lodcvb-news-detail,
    .lodcvb-navbar {
        width: min(100% - 20px, 1180px);
    }

    .hero-copy {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .hero-copy > p {
        font-size: 0.92rem;
    }

    .search-container {
        margin-top: 20px;
    }

    .carousel-container,
    .carousel-wrapper {
        min-height: 270px;
        border-radius: 20px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .category-item {
        min-height: 70px;
        border-radius: 11px;
    }

    .category-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .category-name {
        font-size: 0.65rem;
    }

    .home-shelves .lodcvb-recommend-content-scrollable,
    .lodcvb-game-item-div,
    .lodcvb-recommend-content,
    .lodcvb-common-recommend-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .lodcvb-recommend-content-scrollable {
        padding: 10px;
    }

    .lodcvb-game-info {
        min-height: 48px;
        padding: 8px;
    }

    .lodcvb-game-info p,
    .lodcvb-game-info p:first-child,
    .lodcvb-game-info p:last-child {
        font-size: 0.76rem;
    }

    .seo-benefits {
        grid-template-columns: 1fr;
    }

    .game-detail-content-container,
    .lodcvb-news-detail {
        padding: 22px 18px;
    }

    .game-detail-cta-btn {
        width: 100%;
        padding: 13px 18px;
    }
}

@media (max-width: 359px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Collapsible navigation, in normal document flow at every screen width. */
.site-header .lodcvb-navbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.site-header .lodcvb-category-nav {
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.site-header .lodcvb-category-nav .category-nav-item {
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
}

.site-header .lodcvb-category-nav[hidden] {
    display: none;
}

.nav-toggle {
    width: 46px;
    height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--navy);
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1101px) {
    .site-header .nav-toggle {
        display: none;
    }

    .site-header .lodcvb-category-nav {
        grid-column: auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        padding-top: 0;
        border-top: 0;
    }

    .site-header .lodcvb-category-nav .category-nav-item {
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
