:root {
    --bg-primary: #0d0d0f;
    --bg-secondary: #1c1c1f;
    --card-bg: rgba(255, 255, 255, 0.03);
    --accent-primary: #ffb703;
    --accent-secondary: #fb8500;
    --text-primary: #f5f5f5;
    --text-secondary: #9ca3af;
    --stone-dark: #151518;
    --stone-light: #2c2c32;
    --font-main: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    --font-heading: 'Impact', 'Arial Black', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(251, 133, 0, 0.05) 0%, transparent 50%),
        url('images/stone-dungeon-interior-texture.jpg');
    background-blend-mode: overlay;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 8px rgba(251, 133, 0, 0.6);
}

/* Animations */
@keyframes torch-flicker {
    0%, 100% { opacity: 0.9; box-shadow: 0 0 40px 10px rgba(251, 133, 0, 0.4); }
    25% { opacity: 0.7; box-shadow: 0 0 30px 5px rgba(251, 133, 0, 0.3); }
    50% { opacity: 1; box-shadow: 0 0 50px 15px rgba(255, 183, 3, 0.5); }
    75% { opacity: 0.8; box-shadow: 0 0 35px 8px rgba(251, 133, 0, 0.4); }
}

@keyframes dust-float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-20px) translateX(10px); opacity: 0; }
}

/* Layout Elements */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: linear-gradient(to bottom, #000000 0%, transparent 100%);
    padding: 20px 0;
    position: absolute;
    width: 100%;
    z-index: 100;
    border-bottom: 2px solid rgba(255, 183, 3, 0.1);
}

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

.logo {
    font-size: 28px;
    font-family: var(--font-heading);
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(251, 133, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: 
        linear-gradient(to bottom, rgba(13, 13, 15, 0.8), rgba(13, 13, 15, 0.9)),
        url('images/medieval-dungeon-corridor-with-torches.jpg');
    background-size: cover;
    background-position: center;
    border-bottom: 5px solid var(--stone-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px;
    background: rgba(13, 13, 15, 0.7);
    border: 2px solid var(--stone-light);
    border-radius: 4px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 0 20px rgba(251, 133, 0, 0.2);
}

.hero-title {
    font-size: 56px;
    color: var(--accent-primary);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(251, 133, 0, 0.8);
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 40px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(to bottom, #d4af37, #996515);
    color: #111 !important;
    padding: 15px 40px;
    font-size: 20px;
    font-family: var(--font-heading);
    border: 2px solid #ffe066;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0,0,0,0.6), inset 0 0 10px rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #ffe066, #b8860b);
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(255, 183, 3, 0.5), inset 0 0 15px rgba(255,255,255,0.6);
    text-shadow: none;
}

/* Game Section */
.game-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
    background-image: url('images/stone-dungeon-interior-texture.jpg');
    background-blend-mode: multiply;
    position: relative;
}

.game-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    background: var(--stone-dark);
    padding: 20px;
    border: 15px solid var(--stone-light);
    border-radius: 10px;
    position: relative;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.9),
        inset 0 0 30px rgba(0,0,0,0.9),
        0 0 40px rgba(251, 133, 0, 0.15);
}

/* Torch elements around game */
.game-wrapper::before,
.game-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 80px;
    background: radial-gradient(ellipse, rgba(255,183,3,1) 0%, rgba(251,133,0,0.8) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 10;
    animation: torch-flicker 2s infinite alternate;
    pointer-events: none;
}

.game-wrapper::before {
    left: -40px;
}

.game-wrapper::after {
    right: -40px;
}

.game-iframe-container {
    width: 100%;
    height: 700px;
    background: #000;
    border: 4px solid #000;
    position: relative;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Info Cards Section */
.features-section {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 5px solid var(--stone-dark);
    border-bottom: 5px solid var(--stone-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 2px solid var(--stone-light);
    padding: 30px;
    text-align: center;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('images/stone-dungeon-interior-texture.jpg');
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 24px;
}

.feature-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(251,133,0,0.5));
}

/* Footer */
.site-footer {
    background: #050505;
    padding: 50px 0 20px;
    text-align: center;
    border-top: 2px solid var(--stone-light);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.legal-warning {
    border: 2px solid var(--accent-secondary);
    display: inline-block;
    padding: 15px 30px;
    border-radius: 4px;
    margin-bottom: 30px;
    background: rgba(251, 133, 0, 0.05);
}

.legal-warning h4 {
    color: var(--accent-secondary);
    margin-bottom: 5px;
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Page specific layouts (About, Contact, Terms) */
.page-header {
    padding: 150px 0 60px;
    text-align: center;
    background-image: 
        linear-gradient(to bottom, rgba(13, 13, 15, 0.9), rgba(13, 13, 15, 1)),
        url('images/medieval-dungeon-corridor-with-torches.jpg');
    background-size: cover;
    background-position: center;
    border-bottom: 5px solid var(--stone-dark);
}

.page-header h1 {
    color: var(--accent-primary);
    font-size: 48px;
}

.content-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

.content-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 40px;
    border: 2px solid var(--stone-light);
    border-radius: 4px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
}

.content-box h2 {
    color: var(--accent-secondary);
    margin-bottom: 20px;
    margin-top: 30px;
}

.content-box h2:first-child {
    margin-top: 0;
}

.content-box p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--stone-dark);
    border: 2px solid var(--stone-light);
    color: var(--text-primary);
    font-family: var(--font-main);
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(255, 183, 3, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero-title {
        font-size: 36px;
    }
    .game-iframe-container {
        height: 500px;
    }
    .game-wrapper::before, .game-wrapper::after {
        display: none;
    }
    .game-wrapper {
        border-width: 8px;
        padding: 10px;
    }
}