/*
Theme Name: Livewin Info
Theme URI: https://livewin1688th.com/
Author: livewin1688
Author URI: https://livewin1688th.com/
Description: ธีมเว็บข้อมูล livewin1688 สำหรับข่าวสารเกมสล็อตออนไลน์ คาสิโน และกีฬา ออกแบบตามสไตล์เว็บหลัก livewin1688
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: livewin-info
Tags: news, dark, custom-menu, featured-images
*/

:root {
    --lw-bg: #000000;
    --lw-bg-2: #111111;
    --lw-bg-3: #292929;
    --lw-panel: #1a1a1a;
    --lw-menu-from: #001f3f;
    --lw-menu-to: #004273;
    --lw-yellow: #EBE602;
    --lw-gold-from: #f5bc00;
    --lw-gold-to: #fddd01;
    --lw-green: #00C200;
    --lw-text: #ffffff;
    --lw-text-dim: #b9b9b9;
    --lw-border: #333333;
    --lw-red: #ff4d4d;
    --lw-sidebar-w: 250px;
    --lw-header-h: 124px;
}

html { font-size: 10px; scroll-behavior: smooth; }

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--lw-bg);
    color: var(--lw-text);
    font-size: 1.6rem;
    line-height: 1.7;
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.35; margin: 0 0 1em; color: var(--lw-text); }
h1 { font-size: 2.8rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 2rem; }
p { margin: 0 0 1.2em; }

a, a:hover, a:focus { color: inherit; text-decoration: none; transition: all .3s; }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 2em; }

/* ============ Accessibility ============ */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; overflow: hidden;
    padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
    clip: auto; clip-path: none; height: auto; width: auto;
    position: fixed !important; left: 1rem; top: 1rem; z-index: 100000;
    background: var(--lw-yellow); color: #000; padding: 1rem 2rem; border-radius: 4px;
}

/* ============ Buttons ============ */
.lw-btn {
    display: inline-block;
    background: linear-gradient(180deg, var(--lw-gold-from) 0%, var(--lw-gold-to) 100%);
    color: #3a2c00 !important;
    font-weight: 700;
    font-size: 1.6rem;
    padding: 12px 28px;
    border-radius: 8px;
    box-shadow: 0 1px 6px 0 rgba(0,0,0,.5);
    text-align: center;
}
.lw-btn:hover { opacity: .88; transform: translateY(-1px); }
.lw-btn--blue { background: linear-gradient(0deg, var(--lw-menu-from), var(--lw-menu-to)); color: #fff !important; }
.lw-btn--green { background: var(--lw-green); color: #fff !important; }
.lw-btn--lg { font-size: 1.9rem; padding: 14px 40px; }

/* ============ Top navbar ============ */
.nav-dt {
    background: linear-gradient(0deg, #333333 0%, #000000 100%);
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 9999;
    box-shadow: 0 1px 6px 0 rgba(0,0,0,.5);
    padding: 8px 15px;
}
.nav-dt__inner { display: flex; align-items: center; gap: 15px; max-width: 1600px; margin: 0 auto; }
.navbar-brand img { max-width: 120px; display: block; }
.nav-dt__menu { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-dt__menu a {
    display: block;
    padding: 10px 14px;
    font-size: 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
}
.nav-dt__menu a:hover, .nav-dt__menu .current-menu-item a, .nav-dt__menu .current_page_item a { color: var(--lw-yellow); }
.nav-dt__cta { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.nav-dt__cta .lw-btn { font-size: 1.4rem; padding: 9px 18px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 6px 10px; line-height: 1; }

/* ============ Layout wrapper ============ */
.wrapper { display: flex; min-height: 100vh; }

#sidebar {
    width: var(--lw-sidebar-w);
    position: fixed; top: var(--lw-header-h); left: 0;
    height: calc(100vh - var(--lw-header-h));
    z-index: 999;
    background: var(--lw-bg-2);
    overflow-y: auto;
    padding: 15px 12px 90px;
    box-sizing: border-box;
}
#sidebar::-webkit-scrollbar { width: 6px; }
#sidebar::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

#content {
    width: calc(100% - var(--lw-sidebar-w));
    margin-left: var(--lw-sidebar-w);
    padding: calc(var(--lw-header-h) + 15px) 0 0;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
}
.lw-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ============ Sidebar menu ============ */
.sb-title {
    font-size: 1.5rem; font-weight: 600; color: var(--lw-yellow);
    text-transform: uppercase; letter-spacing: 1px;
    padding: 10px 8px 4px; margin: 0 0 8px;
}
.menu-item {
    border-radius: 4px;
    margin-bottom: 12px;
    background: linear-gradient(0deg, var(--lw-menu-from) 0%, var(--lw-menu-to) 100%);
    box-shadow: 0 1px 6px 0 rgba(0,0,0,.4);
    font-weight: 500;
    font-size: 1.5rem;
    overflow: hidden;
}
.menu-item:hover { box-shadow: 0 1px 6px 0 rgba(0,0,0,.8); opacity: .94; }
.menu-item a { padding: 13px 15px; display: flex; align-items: center; gap: 10px; }
.menu-item svg { width: 22px; height: 22px; flex: 0 0 22px; fill: var(--lw-yellow); }
.menu-item--line { background: var(--lw-green); }
.menu-item--line svg { fill: #fff; }
.menu-item--gold { background: linear-gradient(180deg, var(--lw-gold-from), var(--lw-gold-to)); }
.menu-item--gold a, .menu-item--gold svg { color: #3a2c00 !important; fill: #3a2c00; }
.sb-recent { list-style: none; margin: 0; padding: 0 8px; }
.sb-recent li { border-bottom: 1px dashed #333; }
.sb-recent li:last-child { border-bottom: 0; }
.sb-recent a { display: block; padding: 9px 0; font-size: 1.35rem; color: var(--lw-text-dim); line-height: 1.45; }
.sb-recent a:hover { color: var(--lw-yellow); }

/* ============ Hero carousel ============ */
.hero-carousel { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 4px 18px rgba(0,0,0,.55); }
.hero-carousel__track { display: flex; transition: transform .55s ease; }
.hero-carousel__slide { flex: 0 0 100%; position: relative; }
.hero-carousel__slide a { display: block; }
.hero-carousel__slide img { width: 100%; display: block; aspect-ratio: 8 / 3; object-fit: cover; }
.hero-carousel__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.hero-carousel__dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.45); border: 0; cursor: pointer; padding: 0; transition: background .3s; }
.hero-carousel__dot.is-active { background: var(--lw-yellow); }
.hero-carousel__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.45); color: #fff; border: 0; cursor: pointer;
    font-size: 2.4rem; line-height: 1; padding: 10px 12px; z-index: 5; border-radius: 6px;
}
.hero-carousel__arrow:hover { background: rgba(0,0,0,.75); }
.hero-carousel__arrow--prev { left: 10px; }
.hero-carousel__arrow--next { right: 10px; }

/* ============ Sections ============ */
.st-sec { padding: 35px 0; }
.heading-section { margin-bottom: 25px; text-align: center; }
.heading-section h2 {
    color: var(--lw-yellow);
    font-size: 3.2rem;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.heading-section--line h2 { position: relative; display: inline-block; padding-bottom: 12px; }
.heading-section--line h2::after {
    content: ""; position: absolute; left: 50%; transform: translateX(-50%);
    bottom: 0; width: 80px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--lw-yellow), transparent);
}
.heading-section .sub { color: var(--lw-text-dim); font-size: 1.45rem; margin: 8px 0 0; }

/* feature strip */
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feature-strip__item {
    background: linear-gradient(0deg, var(--lw-menu-from), var(--lw-menu-to));
    border-radius: 6px; padding: 14px 12px; text-align: center; font-size: 1.4rem; font-weight: 500;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.feature-strip__item svg { width: 30px; height: 30px; fill: var(--lw-yellow); }

/* ============ Post cards ============ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-grid--2 { grid-template-columns: repeat(2, 1fr); }
.post-card {
    background: var(--lw-panel);
    border: 1px solid var(--lw-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.5); border-color: #4a4a4a; }
.post-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #222; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__cat {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: linear-gradient(0deg, var(--lw-menu-from), var(--lw-menu-to));
    color: #fff; font-size: 1.2rem; font-weight: 500; padding: 4px 12px; border-radius: 20px;
}
.post-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-size: 1.7rem; font-weight: 600; margin: 0 0 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__title a:hover { color: var(--lw-yellow); }
.post-card__excerpt { font-size: 1.35rem; color: var(--lw-text-dim); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.post-card__meta { font-size: 1.2rem; color: #888; display: flex; gap: 12px; align-items: center; }
.post-card__meta .dot { width: 4px; height: 4px; background: #555; border-radius: 50%; }

/* ============ Game grid ============ */
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.slot-item { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.45); }
.slot-item .image { display: block; width: 100%; transition: .5s ease; backface-visibility: hidden; }
.slot-item:hover .image { opacity: .3; }
.slot-item .middle { transition: .5s ease; opacity: 0; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 100%; padding: 0 10px; box-sizing: border-box; }
.slot-item:hover .middle { opacity: 1; }
.slot-item .text {
    background: linear-gradient(180deg, var(--lw-gold-from) 0%, var(--lw-gold-to) 100%);
    border-radius: 8px; color: #3a2c00; font-size: 1.5rem; font-weight: 700;
    padding: 12px 15px; display: block; box-shadow: 0 1px 6px 0 rgba(0,0,0,.5);
}
.slot-item .name { text-align: center; margin-top: 8px; font-size: 1.35rem; font-weight: 500; }

/* ============ Promo grid ============ */
.promo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.promo-grid a { display: block; border-radius: 8px; overflow: hidden; transition: transform .3s; }
.promo-grid a:hover { transform: translateY(-4px); }
.promo-grid img { width: 100%; display: block; }

/* ============ Category cards ============ */
.cat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
    background: var(--lw-panel); border: 1px solid var(--lw-border); border-radius: 10px;
    padding: 22px 18px; text-align: center; transition: transform .25s, border-color .25s;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--lw-yellow); }
.cat-card svg { width: 44px; height: 44px; fill: var(--lw-yellow); margin-bottom: 10px; }
.cat-card h3 { font-size: 1.9rem; margin: 0 0 8px; }
.cat-card p { font-size: 1.3rem; color: var(--lw-text-dim); margin-bottom: 14px; }
.cat-card .lw-btn { font-size: 1.35rem; padding: 9px 20px; }

/* ============ Content blocks (SEO text) ============ */
.seo-block {
    background: var(--lw-panel);
    border: 1px solid var(--lw-border);
    border-radius: 12px;
    padding: 30px 32px;
    font-size: 1.5rem;
}
.seo-block h2 { color: var(--lw-yellow); font-size: 2.3rem; }
.seo-block h3 { color: var(--lw-yellow); font-size: 1.9rem; }
.seo-block a { color: var(--lw-yellow); }
.seo-block ul li { margin-bottom: .4em; }

/* ============ Breadcrumbs ============ */
.lw-breadcrumbs { font-size: 1.3rem; color: var(--lw-text-dim); margin-bottom: 18px; }
.lw-breadcrumbs a { color: var(--lw-text-dim); }
.lw-breadcrumbs a:hover { color: var(--lw-yellow); }
.lw-breadcrumbs .sep { margin: 0 8px; color: #666; }
.lw-breadcrumbs .current { color: var(--lw-yellow); }

/* ============ Category / archive page ============ */
.page-title-area { margin-bottom: 25px; }
.page-title-area h1 { color: var(--lw-yellow); font-size: 3rem; margin-bottom: 12px; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.term-desc { font-size: 1.5rem; }
.term-desc h2 { color: var(--lw-yellow); font-size: 2.2rem; margin-top: 1.2em; }
.term-desc h3 { color: var(--lw-yellow); font-size: 1.85rem; margin-top: 1.1em; }
.term-desc a { color: var(--lw-yellow); }
.term-desc p, .term-desc li { color: #e6e6e6; }
.term-desc--panel {
    background: var(--lw-panel); border: 1px solid var(--lw-border);
    border-radius: 12px; padding: 26px 30px;
}
.archive-notice { margin: 25px 0 15px; font-size: 1.6rem; font-weight: 600; }
.pagination { margin: 35px 0 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
    background: var(--lw-panel); border: 1px solid var(--lw-border); color: #fff;
    min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 1.5rem; padding: 0 12px;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: linear-gradient(0deg, var(--lw-menu-from), var(--lw-menu-to)); border-color: transparent; color: var(--lw-yellow); }

/* ============ Single post ============ */
.single-hero { margin-bottom: 22px; }
.single-hero img { width: 100%; border-radius: 12px; display: block; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 1.3rem; color: #999; margin-bottom: 18px; }
.entry-meta .cat-chip {
    background: linear-gradient(0deg, var(--lw-menu-from), var(--lw-menu-to));
    color: #fff; padding: 4px 14px; border-radius: 20px; font-weight: 500;
}
.entry-content { font-size: 1.6rem; }
.entry-content h2 { color: var(--lw-yellow); font-size: 2.3rem; margin-top: 1.3em; }
.entry-content h3 { color: var(--lw-yellow); font-size: 1.95rem; margin-top: 1.2em; }
.entry-content a { color: var(--lw-yellow); text-decoration: underline; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .45em; }
.entry-content img { border-radius: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: 1.45rem; }
.entry-content th, .entry-content td { border: 1px solid var(--lw-border); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--lw-menu-from); color: #fff; font-weight: 600; }
.entry-content blockquote {
    border-left: 4px solid var(--lw-yellow); margin: 1.5em 0; padding: 12px 20px;
    background: var(--lw-panel); border-radius: 0 8px 8px 0; color: #e6e6e6; font-style: normal;
}
.entry-tags { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.entry-tags a { background: var(--lw-panel); border: 1px solid var(--lw-border); padding: 5px 14px; border-radius: 20px; font-size: 1.3rem; color: var(--lw-text-dim); }
.entry-tags a:hover { color: var(--lw-yellow); border-color: var(--lw-yellow); }

.cta-box {
    margin: 35px 0;
    background: linear-gradient(0deg, var(--lw-menu-from), var(--lw-menu-to));
    border-radius: 12px; padding: 28px; text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,.45);
}
.cta-box h3 { color: var(--lw-yellow); font-size: 2.2rem; margin-bottom: 8px; }
.cta-box p { color: #dbe6f0; margin-bottom: 16px; font-size: 1.5rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 30px 0; }
.post-nav a {
    background: var(--lw-panel); border: 1px solid var(--lw-border); border-radius: 10px;
    padding: 14px 18px; font-size: 1.4rem; color: var(--lw-text-dim); line-height: 1.45;
}
.post-nav a:hover { color: var(--lw-yellow); border-color: var(--lw-yellow); }
.post-nav .label { display: block; font-size: 1.2rem; color: #777; margin-bottom: 4px; }
.post-nav .next { text-align: right; }

.related-section { margin-top: 40px; }

/* ============ FAQ ============ */
.faq-item { background: var(--lw-panel); border: 1px solid var(--lw-border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 1.55rem; list-style: none; position: relative; padding-right: 46px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 2rem; color: var(--lw-yellow); }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--lw-text-dim); font-size: 1.45rem; }

/* ============ Footer ============ */
footer { background: var(--lw-bg-3); padding: 55px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer-logo { max-width: 200px; margin-bottom: 14px; }
.footer-desc { color: var(--lw-text-dim); font-size: 1.4rem; }
.footer-col h4 { color: var(--lw-yellow); font-size: 1.7rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--lw-text-dim); font-size: 1.4rem; }
.footer-col a:hover { color: var(--lw-yellow); }
.copyright { border-top: 1px solid #D8D8D8; margin-top: 45px; }
.copyright p { padding: 25px 0; margin: 0; text-align: center; color: #9a9a9a; font-size: 1.35rem; }

/* mobile bottom bar */
.fix-footer-container {
    display: none;
    position: fixed; left: 0; bottom: 0; z-index: 9999;
    width: 100%; text-align: center;
    background: linear-gradient(0deg, var(--lw-menu-from), var(--lw-menu-to));
    box-shadow: 0 -3px 12px rgba(0,0,0,.5);
}
.fix-footer-container .row { display: flex; align-items: stretch; }
.fix-footer-container a {
    flex: 1; padding: 10px 4px 8px; font-size: 1.25rem; font-weight: 500;
    display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0;
}
.fix-footer-container a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fix-footer-container svg { width: 22px; height: 22px; fill: #fff; }
.fix-footer-container .center { flex: 0 0 64px; position: relative; }
.fix-footer-container .center a {
    position: absolute; left: 50%; transform: translateX(-50%);
    top: -26px; background: var(--lw-green); border-radius: 50%;
    width: 56px; height: 56px; justify-content: center; padding: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,.5); border: 3px solid #fff;
}
.fix-footer-container .center svg { width: 28px; height: 28px; }

/* ============ Search form ============ */
.search-form { display: flex; gap: 8px; margin: 20px 0; }
.search-form input[type="search"] {
    flex: 1; background: var(--lw-panel); border: 1px solid var(--lw-border); color: #fff;
    padding: 12px 16px; border-radius: 8px; font-family: inherit; font-size: 1.5rem;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--lw-yellow); }
.search-form button {
    background: linear-gradient(180deg, var(--lw-gold-from), var(--lw-gold-to));
    color: #3a2c00; font-weight: 700; border: 0; border-radius: 8px;
    padding: 12px 22px; font-size: 1.5rem; cursor: pointer; font-family: inherit;
}

/* ============ 404 ============ */
.error-404 { text-align: center; padding: 70px 0; }
.error-404 .code { font-size: 9rem; font-weight: 700; color: var(--lw-yellow); line-height: 1; text-shadow: 0 4px 18px rgba(235,230,2,.25); }
.error-404 h1 { font-size: 2.6rem; }
.error-404 p { color: var(--lw-text-dim); }
.error-404 .lw-btn { margin-top: 10px; }
.error-404 .links { margin-top: 30px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.error-404 .links a { background: var(--lw-panel); border: 1px solid var(--lw-border); padding: 9px 18px; border-radius: 20px; font-size: 1.4rem; }
.error-404 .links a:hover { color: var(--lw-yellow); border-color: var(--lw-yellow); }

/* ============ Sidebar overlay (mobile) ============ */
.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 998; }

/* ============ Responsive ============ */
@media (max-width: 1200px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-grid { grid-template-columns: repeat(3, 1fr); }
    .game-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991px) {
    :root { --lw-header-h: 124px; }
    .nav-dt__menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0d0d0d; flex-direction: column; align-items: stretch; padding: 10px 15px; gap: 2px; box-shadow: 0 6px 16px rgba(0,0,0,.6); }
    .nav-dt__menu.is-open { display: flex; }
    .nav-dt__cta .lw-btn--hide-sm { display: none; }
    .nav-toggle { display: block; order: 3; }
    .nav-dt__inner { flex-wrap: nowrap; }
    .nav-dt__cta { margin-left: auto; }
    .wrapper { display: block; }
    #sidebar {
        position: fixed; z-index: 999; left: 0; top: var(--lw-header-h);
        transform: translateX(-100%); transition: transform .3s;
        width: min(300px, 82vw); height: calc(100vh - var(--lw-header-h));
        box-shadow: 4px 0 20px rgba(0,0,0,.6);
    }
    #sidebar.is-open { transform: translateX(0); }
    .sb-overlay.is-open { display: block; }
    #content { width: 100%; margin-left: 0; }
    body.has-fixbar { padding-bottom: 62px; }
    .fix-footer-container { display: block; }
    .post-grid, .post-grid--2 { grid-template-columns: 1fr 1fr; }
    .game-grid { grid-template-columns: repeat(4, 1fr); }
    .cat-cards { grid-template-columns: repeat(2, 1fr); }
    .feature-strip { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .st-sec { padding: 22px 0; }
}
@media (max-width: 576px) {
    :root { --lw-header-h: 101px; }
    html { font-size: 9px; }
    .heading-section h2 { font-size: 2.6rem; }
    .post-grid, .post-grid--2 { grid-template-columns: 1fr; }
    .game-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .seo-block, .term-desc--panel { padding: 20px 18px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav .next { text-align: left; }
    .navbar-brand img { max-width: 96px; }
}

/* fallback primary menu (was unstyled -> stacked vertically and stretched the fixed navbar) */
ul.lw-menu,
.nav-dt__menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
}
ul.lw-menu li { margin: 0; white-space: nowrap; }

/* keep the fixed header a single row and let menus shrink on narrower desktops */
.nav-dt__inner { flex-wrap: nowrap; }
.nav-dt__menu { flex-wrap: nowrap; }
@media (max-width: 1320px) {
    .nav-dt__menu a { padding: 10px 9px; font-size: 1.4rem; }
}
@media (max-width: 1180px) {
    .nav-dt__menu a { padding: 10px 7px; font-size: 1.3rem; }
}

/* hero sits right under the navbar with only a slim gap */
.lw-hero-sec { padding: 0 0 6px; }
