html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

:root {
    --lc-bg: #050505;
    --lc-bg-soft: #0d0d0d;
    --lc-panel: rgba(12, 12, 12, 0.94);
    --lc-panel-soft: rgba(21, 21, 21, 0.9);
    --lc-line: rgba(255, 255, 255, 0.14);
    --lc-text: #f4efe8;
    --lc-muted: #c5bbb0;
    --lc-dim: #867a70;
    --lc-accent: #d9861e;
    --lc-accent-strong: #ff9f22;
    --lc-green: #7db83d;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.92) 68%),
        url('/images/bg.png') center top / 560px auto repeat,
        var(--lc-bg);
    color: var(--lc-text);
    font-family: "Trebuchet MS", Arial, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 12%, rgba(217, 134, 30, 0.14), transparent 30rem),
        linear-gradient(90deg, rgba(0, 0, 0, 0.9), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.9));
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
.brand-lockup,
.hero-title,
.btn-western,
.btn-western-primary,
.btn-western-secondary {
    font-family: Rockwell, "Bookman Old Style", Georgia, serif;
    letter-spacing: 0;
}

a {
    color: var(--lc-accent-strong);
    text-decoration: none;
}

a:hover {
    color: #ffffff;
}

.market-strip {
    height: 48px;
    background: #202020;
    border-top: 4px solid #8cc47c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.market-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #f2f2f2;
    font-weight: 800;
    font-size: 1.02rem;
}

.market-mark {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #77bd38;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 900;
    transform: skew(-12deg);
}

.market-buy {
    background: var(--lc-green);
    color: #ffffff;
    border-radius: 3px;
    padding: 8px 17px;
    font-size: 0.86rem;
    font-weight: 800;
}

.site-header {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(6, 6, 6, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.site-nav {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-utility,
.nav-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-utility {
    min-height: 40px;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 800;
}

.utility-links,
.utility-icons,
.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.utility-links a,
.utility-icons a,
.lang-link {
    color: #ffffff;
    opacity: 0.78;
}

.utility-links a:hover,
.utility-icons a:hover,
.lang-link:hover,
.lang-link.active {
    color: var(--lc-accent-strong);
    opacity: 1;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.theme-link {
    padding: 4px 8px;
    color: #ffffff;
}

.theme-link.active {
    background: rgba(217, 134, 30, 0.16);
    color: var(--lc-accent-strong);
}

.nav-main {
    min-height: 82px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    white-space: nowrap;
}

.brand-emblem {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.75));
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--lc-line);
    border-radius: 0;
    background: #101010;
    color: #ffffff;
    padding: 9px 12px;
}

.menu-label {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.menu-dots {
    display: inline-grid;
    grid-template-columns: repeat(3, 4px);
    gap: 4px;
}

.menu-dots span {
    width: 4px;
    height: 4px;
    background: #ffffff;
    display: block;
}

.nav-links {
    align-items: center;
    justify-content: flex-end;
    gap: 27px;
}

.nav-mobile-controls {
    display: none;
}

.nav-links a {
    color: #ffffff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
}

.nav-links a::after {
    content: "...";
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.62rem;
    letter-spacing: 2px;
    line-height: 1;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--lc-accent-strong);
}

.nav-links a.active::after {
    color: var(--lc-accent-strong);
}

.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 17px;
    color: #ffffff;
    font-weight: 900;
}

.site-content {
    padding-top: 170px;
}

.hero-panel {
    min-height: 485px;
    display: grid;
    align-items: start;
    justify-items: center;
    text-align: center;
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.68)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.82)),
        url('/images/lave-city-hero-western.png') center 45% / cover no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.hero-panel::before,
.showcase-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, #000000 0, transparent 7%, transparent 93%, #000000 100%),
        linear-gradient(180deg, #000000 0, transparent 9%, transparent 91%, #000000 100%);
    opacity: 0.72;
    z-index: -1;
}

.hero-content {
    width: min(760px, calc(100% - 32px));
    padding: 40px 0 54px;
}

.hero-logo {
    display: none;
}

.hero-title {
    color: #fff3c8;
    font-size: 2.85rem;
    font-weight: 900;
    margin: 0 0 12px;
    text-shadow: 0 3px 0 #5a2b0d, 0 12px 30px rgba(0, 0, 0, 0.78);
}

.hero-subtitle {
    color: #fff9df;
    font-size: 1.04rem;
    font-weight: 900;
    margin: 0 auto 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.82);
}

.hero-text {
    width: min(640px, 100%);
    margin: 0 auto 34px;
    color: #fff5d7;
    line-height: 1.65;
    font-weight: 800;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.78);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.btn-western,
.btn-western-primary,
.btn-western-secondary {
    border-radius: 0;
    min-width: 150px;
    padding: 0.78rem 1.4rem;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.btn-western,
.btn-western-primary {
    background: linear-gradient(180deg, rgba(255, 224, 157, 0.94), rgba(198, 99, 22, 0.92));
    border: 2px solid #70320b;
    color: #331806;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-western-secondary {
    background: linear-gradient(180deg, #6d3510, #3a1b08);
    border: 2px solid #2a1205;
    color: #fff4d1;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 220, 150, 0.24);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.btn-western:hover,
.btn-western-primary:hover,
.btn-western-secondary:hover {
    background: linear-gradient(180deg, #fff2c1, #f09a2d);
    border-color: #4b2108;
    color: #251006;
    transform: translateY(-2px);
}

.showcase-section {
    position: relative;
    isolation: isolate;
    padding: 74px 0 86px;
    background: #050505;
}

.showcase-inner,
.content-panel,
.page-panel,
.footer-inner {
    width: min(1080px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.showcase-inner {
    display: grid;
    grid-template-columns: 0.86fr 1.3fr;
    align-items: center;
    gap: 44px;
}

.intro-copy h2,
.content-panel h1,
.content-panel h2,
.page-panel h1,
.page-panel h2 {
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 1rem;
}

.intro-copy p,
.content-panel p,
.content-panel li,
.page-panel p,
.page-panel li {
    color: var(--lc-muted);
    line-height: 1.72;
}

.section-kicker {
    color: var(--lc-accent-strong) !important;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem !important;
}

.preview-wall {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: center;
}

.preview-card {
    display: block;
    overflow: hidden;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.56);
}

.preview-card img {
    width: 100%;
    height: 320px;
    display: block;
    object-fit: cover;
    opacity: 0.92;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.preview-card-large img {
    height: 320px;
}

.preview-card:hover img {
    transform: scale(1.035);
    opacity: 1;
}

.content-panel,
.page-panel {
    background: var(--lc-panel);
    border: 1px solid var(--lc-line);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.46);
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.content-panel-dark {
    margin-top: 0;
    border-top: 0;
}

.content-panel h3,
.page-panel h3 {
    color: #ffffff;
}

.feature-grid,
.news-preview,
.screenshot-grid {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.news-preview {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.screenshot-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card,
.news-preview-item,
.download-box,
.mobile-download-note,
.section-card,
.shot-card {
    background: var(--lc-panel-soft);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.35rem;
    height: 100%;
}

.feature-card h3,
.news-preview-item h3,
.download-box h2,
.mobile-download-note h2 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
}

.feature-card p,
.news-preview-item p {
    margin-bottom: 0;
}

.news-entry {
    border-left: 4px solid var(--lc-accent);
}

.news-entry .news-meta {
    color: var(--lc-accent-strong);
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.9rem;
}

.shot-card {
    text-align: center;
}

.shot-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.shot-card img.screenshot-thumb {
    cursor: pointer;
}

.shot-card p {
    margin: 0.85rem 0 0;
    color: #ffffff;
    font-weight: 800;
}

.western-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(10, 10, 10, 0.92);
    color: var(--lc-muted);
}

.western-table th,
.western-table td {
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.western-table th {
    background: #1c1c1c;
    color: #ffffff;
}

.western-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.035);
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.small-note {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--lc-dim);
}

.text-link {
    color: var(--lc-accent-strong);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.text-link:hover {
    color: #ffffff;
}

.newsletter-form {
    display: grid;
    gap: 18px;
    max-width: 720px;
    margin-top: 24px;
}

.newsletter-field {
    display: grid;
    gap: 8px;
}

.newsletter-field label,
.newsletter-consent {
    color: #fff3cf;
    font-weight: 900;
}

.newsletter-field input {
    width: 100%;
    min-height: 52px;
    border: 2px solid rgba(255, 168, 45, 0.44);
    background: rgba(12, 10, 8, 0.88);
    color: #fff6db;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.55);
    padding: 0 16px;
    font-weight: 700;
}

.newsletter-field input:focus {
    outline: 3px solid rgba(255, 168, 45, 0.24);
    border-color: var(--lc-accent-strong);
}

.newsletter-consent {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    line-height: 1.55;
}

.newsletter-consent input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: var(--lc-accent-strong);
}

.newsletter-validation {
    color: #ffb35f;
    font-size: 0.92rem;
    font-weight: 800;
}

.newsletter-message {
    border: 2px solid rgba(255, 168, 45, 0.26);
    margin: 22px 0;
    padding: 18px 20px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.newsletter-message-success {
    background: rgba(74, 42, 14, 0.9);
    color: #fff3cf;
}

.newsletter-message-error {
    background: rgba(82, 24, 14, 0.9);
    color: #ffe1c2;
}

.server-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    color: var(--lc-muted);
    font-size: 0.86rem;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #2ecc71;
    box-shadow: 0 0 6px #2ecc71;
}

.status-dot.offline {
    background: #e74c3c;
}

.footer {
    background: #050505;
    border-top: 1px solid var(--lc-line);
    color: var(--lc-muted);
    margin-top: 3rem;
}

.footer-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
}

.footer a {
    color: var(--lc-muted);
}

.footer a:hover {
    color: var(--lc-accent-strong);
}

.side-social {
    position: fixed;
    left: 22px;
    top: 48%;
    z-index: 1035;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-social a {
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0.78;
}

.side-social a:hover {
    color: var(--lc-accent-strong);
    opacity: 1;
}

.keep-touch {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1035;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.66);
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 12px 26px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.keep-touch:hover {
    background: var(--lc-accent);
    border-color: var(--lc-accent);
    color: #050505;
}

.consent-banner {
    position: fixed;
    inset: auto auto 18px 18px;
    z-index: 1200;
    max-width: min(380px, calc(100vw - 36px));
}

.consent-banner.is-hidden {
    display: none;
}

.consent-banner-inner {
    position: relative;
    background: rgba(8, 8, 8, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.58);
    padding: 2.1rem 1.6rem 1.55rem;
}

.consent-close {
    position: absolute;
    top: 13px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1;
}

.consent-banner-text {
    margin: 0;
    color: #ffffff;
    line-height: 1.58;
    font-weight: 800;
    font-size: 0.92rem;
}

.consent-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.consent-btn {
    min-width: 118px;
    padding: 0.58rem 0.9rem;
    font-size: 0.78rem;
}

.consent-more {
    color: var(--lc-accent-strong);
    font-weight: 900;
}

.screenshot-modal .modal-dialog {
    max-width: calc(75vw + 24px);
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.screenshot-modal .modal-content {
    background: #080808;
    border: 1px solid var(--lc-line);
    border-radius: 0;
}

.screenshot-modal .modal-body {
    padding: 0.35rem 0.2rem;
    display: flex;
    justify-content: center;
}

.screenshot-modal #screenshotModalImage {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.screenshot-modal-close {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    z-index: 2;
    filter: invert(1);
}

.screenshot-modal .modal-footer {
    border-top: 0;
    justify-content: center;
    padding-top: 0.3rem;
    padding-bottom: 0.9rem;
}

.mobile-download-note {
    display: none;
}

.bugshot-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.bugshot-header-image {
    width: 20%;
    min-width: 0;
    flex: 0 0 auto;
    border: 1px solid var(--lc-line);
}

.bugshot-header-text {
    flex: 1 1 auto;
}

.bugshot-header-text h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.bugshot-header-text p {
    margin-bottom: 0;
}

@media (max-width: 1190px) {
    .nav-links {
        gap: 18px;
    }

    .side-social {
        display: none;
    }
}

@media (min-width: 992px) {
    #mainNav.nav-links {
        display: flex !important;
    }
}

@media (max-width: 991.98px) {
    .market-strip {
        height: 44px;
    }

    .site-header {
        top: 44px;
    }

    .site-nav {
        width: min(100% - 24px, 1080px);
    }

    .nav-utility {
        display: none;
    }

    .nav-main {
        min-height: 72px;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-links {
        flex-basis: 100%;
        width: 100%;
        margin-top: 0;
        padding: 14px 0 18px;
        background: rgba(6, 6, 6, 0.98);
        border-top: 1px solid var(--lc-line);
        gap: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .nav-mobile-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0 10px 12px;
        margin-bottom: 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .mobile-control-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .mobile-pill {
        justify-content: center;
        align-items: center !important;
        min-height: 44px;
        padding: 10px 8px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff !important;
        text-align: center;
    }

    .mobile-pill.active {
        background: linear-gradient(180deg, #d9861e, #8f4c0e);
        color: #ffffff !important;
        border-color: rgba(255, 193, 111, 0.86) !important;
    }

    #mainNav.nav-links.collapse:not(.show) {
        display: none !important;
    }

    #mainNav.nav-links.collapse.show,
    #mainNav.nav-links.collapsing {
        display: flex !important;
    }

    .nav-links a {
        align-items: flex-start;
        padding: 14px 10px;
        min-height: 44px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.9rem;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .site-content {
        padding-top: 116px;
    }

    .hero-panel {
        min-height: 470px;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .showcase-inner {
        grid-template-columns: 1fr;
    }

    .preview-wall {
        grid-template-columns: 1fr;
    }

    .preview-card img,
    .preview-card-large img {
        height: 260px;
    }

    .bugshot-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bugshot-header-image {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .market-brand span:last-child {
        display: none;
    }

    .market-buy {
        padding: 7px 12px;
    }

    .brand-lockup {
        font-size: 1.12rem;
    }

    .brand-emblem {
        width: 34px;
        height: 34px;
    }

    .hero-content {
        padding: 28px 0 44px;
    }

    .hero-title {
        font-size: 2.36rem;
    }

    .hero-subtitle,
    .hero-text {
        font-size: 0.95rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .showcase-section {
        padding: 48px 0 56px;
    }

    .content-panel,
    .page-panel {
        padding: 1.25rem;
        margin-top: 1.2rem;
        margin-bottom: 1.2rem;
        overflow-wrap: anywhere;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .server-status-indicator {
        display: flex;
        margin-left: 0;
        margin-top: 10px;
    }

    .keep-touch {
        display: none;
    }

    .consent-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    .western-table {
        font-size: 0.92rem;
        min-width: 640px;
    }

    .western-table th,
    .western-table td {
        padding: 8px;
    }

    .desktop-download-only {
        display: none;
    }

    .mobile-download-note {
        display: block;
    }

    .bugshot-header-image {
        width: 100% !important;
    }
}
