:root {
    --bg-black: #0e0c0a;
    --gold: #ffb703;
    --copper: #8b5e34;
    --orange: #fb8500;
    --red: #d00000;
    --sand: #c19a6b;
    --wood-dark: #2a1b12;
    --text-main: #e8e2d9;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --gradient: linear-gradient(135deg, var(--sand), var(--copper), var(--gold), var(--orange), var(--red));
    --sidebar-collapsed: 70px;
    --sidebar-expanded: 240px;
}

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

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: radial-gradient(circle at center, #1a1410 0%, #0e0c0a 100%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: var(--gold);
    transition: all 0.3s ease;
}

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

/* Legal Banner */
.global-legal-banner {
    background: var(--wood-dark);
    border-bottom: 2px solid var(--copper);
    padding: 15px 20px;
    text-align: center;
    font-size: 0.85rem;
    position: relative;
    z-index: 100;
}

.global-legal-banner p {
    margin-bottom: 5px;
    color: #ccc;
}

.important-notice {
    font-size: 0.8rem;
    color: #aaa;
    max-width: 1000px;
    margin: 0 auto 10px auto;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.badge {
    background: var(--gradient);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 5px var(--orange);
}

/* Sidebar Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-collapsed);
    background: var(--wood-dark);
    border-right: 2px solid var(--copper);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 15px rgba(0,0,0,0.8);
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.2) 0px, rgba(0,0,0,0.2) 2px, transparent 2px, transparent 4px);
}

.sidebar:hover {
    width: var(--sidebar-expanded);
}

.sidebar-header {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,183,3,0.2);
    min-width: var(--sidebar-expanded);
}

.sidebar-logo {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.sidebar-logo i {
    font-size: 1.8rem;
    color: var(--orange);
}

.sidebar-nav {
    flex-grow: 1;
    padding-top: 20px;
    min-width: var(--sidebar-expanded);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-main);
    font-size: 1.1rem;
    gap: 20px;
    position: relative;
    transition: all 0.3s;
}

.sidebar-nav a i {
    width: 25px;
    text-align: center;
    font-size: 1.3rem;
    color: var(--sand);
    transition: transform 0.4s ease, color 0.3s;
}

.sidebar-nav a:hover i, .sidebar-nav a.active i {
    color: var(--gold);
    transform: rotate(360deg);
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(255,183,3,0.2), transparent);
    transition: width 0.3s;
    z-index: -1;
}

.sidebar-nav a:hover::before, .sidebar-nav a.active::before {
    width: 100%;
    border-left: 3px solid var(--gold);
}

/* Sidebar Text Fade Logic */
.sidebar-logo span, .sidebar-nav span {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease 0.1s, visibility 0s 0s;
}

.sidebar:not(:hover):not(.mobile-open) .sidebar-logo span,
.sidebar:not(:hover):not(.mobile-open) .sidebar-nav span {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0s 0.15s;
}

.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-collapsed);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--sidebar-collapsed));
    transition: margin-left 0.4s, width 0.4s;
}

.page-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    width: 100%;
}

/* Mobile Nav */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 2000;
    background: var(--wood-dark);
    border: 2px solid var(--copper);
    color: var(--gold);
    padding: 0;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
    border-color: var(--gold);
    background: #1a110b;
}

/* UI Elements */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient);
    color: #fff !important;
    padding: 15px 30px;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid var(--gold);
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s ease;
}

.btn-gold:hover {
    box-shadow: 0 0 25px var(--orange);
    transform: translateY(-2px);
}

.btn-gold:hover::after {
    transform: rotate(45deg) translateY(100%);
}

.btn-gold:hover i {
    animation: spinRevolver 0.5s ease-in-out;
}

@keyframes spinRevolver {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.section-subtitle {
    text-align: center;
    color: var(--sand);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
section {
    padding: 60px 0;
    position: relative;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border-bottom: 3px solid var(--copper);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/photo-1473445701768-4a9f984aeb47.png');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 1;
    animation: heatwave 10s infinite alternate;
}

@keyframes heatwave {
    0% { transform: scale(1); filter: blur(0px); }
    100% { transform: scale(1.05); filter: blur(1px); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(14,12,10,0.2) 0%, rgba(14,12,10,1) 100%);
    z-index: 2;
}

#dust-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.dust-particle {
    position: absolute;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 5px var(--gold);
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 0 20px var(--orange), 2px 2px 5px #000;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px #000;
}

.hero-legal {
    margin-top: 40px;
    background: rgba(0,0,0,0.6);
    padding: 15px;
    border: 1px solid var(--copper);
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Cards */
.card {
    background: rgba(42, 27, 18, 0.6);
    border: 1px solid var(--copper);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--gold);
}

.card:hover::before {
    transform: scaleX(1);
}

.card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--orange);
}

/* Featured Game Card */
.featured-game {
    background: url('images/photo-1596838132731-3301c3fd4317.png') center/cover;
    border-radius: 10px;
    padding: 60px;
    text-align: center;
    position: relative;
    border: 2px solid var(--gold);
    box-shadow: 0 0 30px rgba(255,183,3,0.2);
}

.featured-game::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(14,12,10,0.8);
    border-radius: 8px;
}

.featured-game-content {
    position: relative;
    z-index: 2;
}

/* Game Iframe Wrapper */
.game-iframe-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    aspect-ratio: 16 / 9;
    border: 4px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 183, 3, 0.4);
    position: relative;
    background: #000;
    overflow: hidden;
}

.game-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Form */
.contact-form {
    background: rgba(42, 27, 18, 0.5);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--copper);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--copper);
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(255,183,3,0.3);
}

/* Footer */
footer {
    background: var(--wood-dark);
    border-top: 3px solid var(--copper);
    padding: 60px 20px 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1300px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Accordion */
.faq-item {
    background: rgba(42,27,18,0.5);
    margin-bottom: 15px;
    border: 1px solid var(--copper);
    border-radius: 5px;
}
.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--gold);
    display: flex;
    justify-content: space-between;
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #ccc;
}
.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 500px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Content Pages (Legal, About) */
.content-box {
    background: rgba(42, 27, 18, 0.4);
    border: 1px solid var(--copper);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.content-box h2 {
    color: var(--gold);
    margin-bottom: 20px;
    margin-top: 30px;
}
.content-box h2:first-child { margin-top: 0; }
.content-box p { margin-bottom: 15px; color: #ccc; }
.content-box ul { margin-bottom: 15px; padding-left: 20px; color: #ccc; }

/* Responsive Layout */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    .sidebar:hover {
        width: 280px;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 0 0 0 10000px rgba(0,0,0,0.8), 5px 0 15px rgba(0,0,0,0.9);
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 2.5rem; }
}