/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --bg-dark: #11100e;
    --bg-panel: #171512;
    --bg-light: #201a16;
    --metal-light: #b8b4aa;
    --metal-dark: #7f7a70;
    --orange-primary: #ef8b28;
    --orange-dark: #d76a1e;
    --gold: #e5a735;
    --rust: #6d3921;
    --text-main: #f2eee6;
    --border-steel: 1px solid #332d28;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: "Arial Black", "Arial Narrow", Impact, sans-serif;
    letter-spacing: 0.5px;
    color: var(--metal-light);
    margin-bottom: 1rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

h1 {
    font-size: clamp(1.6rem, 5vw, 3.5rem);
    color: var(--text-main);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    border-bottom: 2px solid var(--rust);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    color: var(--orange-primary);
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--orange-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gold);
}

ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

strong {
    color: var(--metal-light);
}

/* Header */
.site-header {
    background-color: #171512f2;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: var(--border-steel);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: "Arial Black", Impact, sans-serif;
    font-size: 1.3rem;
    color: var(--orange-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.main-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--metal-light);
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--orange-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--orange-primary);
    margin: 5px 0;
    transition: 0.3s;
}

/* Layout */
.content-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 1rem;
}

.sidebar {
    flex: 1 1 250px;
    position: sticky;
    top: 5rem;
    align-self: start;
}

.content-body {
    flex: 3 1 600px;
    max-width: 850px;
    min-width: 0;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    max-width: 1240px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-dark) 100%);
    border: var(--border-steel);
    border-radius: 8px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* Industrial rivets */
.hero-section::before, .hero-section::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--metal-dark);
    border-radius: 50%;
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.2), inset -1px -1px 2px rgba(0,0,0,0.8);
}
.hero-section::before { top: 10px; left: 10px; }
.hero-section::after { bottom: 10px; right: 10px; }

.hero-content {
    flex: 1 1 350px;
    min-width: 0;
}

.hero-image {
    flex: 1 1 300px;
    text-align: center;
    min-width: 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 2px solid var(--metal-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.image-caption {
    font-size: 0.85rem;
    color: var(--metal-dark);
    margin-top: 0.5rem;
}

.eyebrow {
    font-size: 0.9rem;
    color: var(--orange-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.btn {
    display: inline-block;
    background-color: var(--rust);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
    font-weight: bold;
    border: 1px solid var(--orange-dark);
    border-radius: 4px;
    margin-right: 1rem;
    margin-top: 1rem;
    transition: background 0.2s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

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

/* Trust notice - hidden */
.trust-notice {
    display: none;
}

/* TOC */
.toc {
    background-color: var(--bg-panel);
    border: var(--border-steel);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--orange-primary);
}

.toc h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--text-main);
}

.toc ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.toc li {
    margin-bottom: 0.75rem;
}

.toc a {
    color: var(--metal-light);
    font-size: 0.95rem;
}

.toc a:hover {
    color: var(--orange-primary);
    padding-left: 5px;
}

/* Game Status Panel */
.game-status {
    background: var(--bg-panel);
    border: 1px solid #443c34;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 6px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    border-left: 4px solid var(--orange-primary);
}

.game-status p {
    margin: 0;
    font-size: 0.95rem;
}

.game-status strong {
    color: var(--gold);
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Release Tracker */
.release-tracker {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1.5rem 0;
    background: var(--bg-panel);
    padding: 1.5rem;
    border: var(--border-steel);
    border-radius: 6px;
}

.tracker-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-left: 3px solid var(--metal-dark);
    font-weight: 500;
}

.tracker-item span {
    font-size: 0.8rem;
    text-transform: uppercase;
    background: #3a2e26;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    color: var(--metal-light);
}

/* Demo Placeholder */
.demo-placeholder {
    background: repeating-linear-gradient(
      45deg,
      #11100e,
      #11100e 10px,
      #171512 10px,
      #171512 20px
    );
    border: 2px dashed var(--metal-dark);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    border-radius: 8px;
}

.demo-msg {
    background: var(--bg-panel);
    padding: 1.5rem 2rem;
    text-align: center;
    border: var(--border-steel);
    border-radius: 4px;
}

.demo-msg h3 {
    margin-top: 0;
    color: var(--text-main);
}

.demo-msg p {
    margin: 0;
    color: var(--orange-primary);
    text-transform: uppercase;
    font-weight: bold;
}

/* Table styling */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-panel);
}

th, td {
    padding: 1rem;
    text-align: left;
    border: var(--border-steel);
}

th {
    background: #2a2520;
    color: var(--orange-primary);
    font-family: "Arial Narrow", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td:nth-child(3) {
    border-left: 2px solid var(--rust);
    background: rgba(215, 106, 30, 0.05);
}

/* Timeline */
.timeline {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.timeline li {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-panel);
    padding: 1rem;
    margin-bottom: 1rem;
    border: var(--border-steel);
    border-radius: 6px;
    align-items: center;
}

.timeline img {
    border-radius: 4px;
    border: 1px solid var(--metal-dark);
    object-fit: cover;
    flex-shrink: 0;
}

.timeline-placeholder {
    width: 100px;
    height: 100px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--orange-primary);
    color: var(--orange-primary);
    font-weight: bold;
    border-radius: 4px;
    flex-shrink: 0;
}

.timeline-content {
    font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-item {
    background: var(--bg-panel);
    border: var(--border-steel);
    margin-bottom: 1rem;
    border-radius: 4px;
}

.faq-item summary {
    padding: 1rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
    font-family: "Arial Narrow", sans-serif;
    font-size: 1.2rem;
    color: var(--text-main);
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange-primary);
    font-size: 1.5rem;
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--metal-light);
}

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 5rem 1rem;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--orange-primary);
    margin-bottom: 0;
}

/* Tech pages styling */
.tech-page .content-body {
    max-width: 1000px;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    background-color: #0c0b0a;
    border-top: 2px solid var(--rust);
    padding: 3rem 1rem;
    margin-top: 4rem;
    font-size: 0.85rem;
    color: var(--metal-dark);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--metal-light);
    text-transform: uppercase;
    font-weight: 600;
}

.footer-disclaimers p {
    margin-bottom: 0.5rem;
}

.responsible-gaming-notice {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1a1714;
    color: var(--orange-primary);
}

/* Hotlines */
.hotlines {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #332d28;
    color: var(--metal-light);
}

.hotlines p {
    margin-bottom: 0.5rem;
}

.hotlines ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0;
}

.hotlines li {
    font-size: 0.85rem;
}

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

/* ========================================
   Custom Language Dropdown
   ======================================== */
.custom-lang {
    position: relative;
    cursor: pointer;
    list-style: none;
}
.lang-current {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--metal-light);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: 0.2s;
    cursor: pointer;
    white-space: nowrap;
}
.lang-current img {
    border-radius: 2px;
    width: 20px;
    height: 15px;
}
.custom-lang:hover .lang-current {
    border-color: var(--metal-dark);
    color: var(--orange-primary);
}
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--metal-dark);
    border-radius: 4px;
    list-style: none !important;
    padding: 0.4rem 0;
    margin: 0;
    min-width: 130px;
    display: none !important;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 200;
}
.lang-dropdown.show {
    display: flex !important;
}
.lang-dropdown li {
    margin: 0;
    list-style: none;
}
.lang-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    color: var(--text-main);
    text-transform: none !important;
    font-size: 0.85rem;
}
.lang-dropdown a img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}
.lang-dropdown a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--orange-primary);
}

/* ========================================
   Responsive: Tablet
   ======================================== */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }
    .sidebar {
        position: static;
        width: 100%;
        margin-bottom: 2rem;
    }
}

/* ========================================
   Responsive: Mobile
   ======================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-panel);
        border-bottom: var(--border-steel);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid #2a2520;
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Language dropdown in mobile nav */
    .custom-lang {
        padding: 0.75rem 1rem;
    }
    .lang-dropdown {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding-left: 1rem !important;
        margin-top: 0.5rem;
    }
    .lang-dropdown.show {
        display: flex !important;
    }

    /* Hero on mobile: image after title */
    .hero-section {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        align-items: stretch;
    }
    .hero-content {
        display: contents;
    }
    .hero-section .eyebrow { order: 1; }
    .hero-section h1 { order: 2; margin-bottom: 0; }
    .hero-image { order: 3; margin: 1rem 0; width: 100%; text-align: center; }
    .hero-section p { order: 4; }
    .hero-section .hero-cta { order: 5; margin-top: 1rem; }

    .timeline li {
        flex-direction: column;
        text-align: center;
    }

    .content-body {
        flex-basis: auto;
    }
}
