/* ===== Download Modal ===== */
.dl-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.dl-modal-overlay.active {
    display: flex;
}
.dl-modal-window {
    background: linear-gradient(145deg, #12080400, #1e0f08);
    background-color: #1a0c06;
    border: 1px solid #d4af37;
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.15),
        0 0 40px rgba(212, 175, 55, 0.25),
        0 0 80px rgba(255, 107, 26, 0.15),
        0 30px 60px rgba(0, 0, 0, 0.7);
    padding: 52px 44px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: dl-modal-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes dl-modal-in {
    from { opacity: 0; transform: scale(0.75) translateY(40px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);    }
}
.dl-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    color: #d4af37;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, transform 0.25s;
    padding: 4px;
}
.dl-modal-close:hover {
    color: #ff6b1a;
    transform: rotate(90deg);
}
.dl-modal-icon {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.5));
    animation: dl-icon-bounce 0.6s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes dl-icon-bounce {
    from { opacity: 0; transform: scale(0.5) rotate(-15deg); }
    to   { opacity: 1; transform: scale(1)   rotate(0deg);   }
}
.dl-modal-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 14px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    letter-spacing: 0.5px;
}
.dl-modal-text {
    color: #e0d5c7;
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.5;
}
.dl-modal-sub {
    color: #9e8a75;
    font-size: 0.875rem;
    margin-bottom: 32px;
    line-height: 1.5;
}
.dl-modal-actions {
    display: flex;
    justify-content: center;
}
.dl-modal-actions .btn-primary {
    padding: 12px 36px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* ===== Mode Modal ===== */
.mode-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99998;
    justify-content: center;
    align-items: center;
    padding: 18px;
}
.mode-modal-overlay.active { display: flex; }
.mode-modal-window {
    background: linear-gradient(180deg, rgba(26,12,6,0.9), rgba(16,8,4,0.95));
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 14px;
    padding: 34px 28px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 30px rgba(212,175,55,0.08);
    animation: mode-modal-in 0.36s cubic-bezier(0.2,1,0.3,1) both;
}
@keyframes mode-modal-in { from { opacity:0; transform: translateY(30px) scale(.96)} to { opacity:1; transform: translateY(0) scale(1)} }
.mode-modal-close { position:absolute; top:12px; right:16px; background:transparent; border:none; color:#d4af37; font-size:24px; cursor:pointer }
.mode-modal-close:hover { color:#ff6b1a; transform:rotate(45deg) }
.mode-modal-icon { font-size:48px; margin-bottom:10px; filter:drop-shadow(0 0 10px rgba(212,175,55,0.4)); }
.mode-modal-title { font-size:1.35rem; color:var(--primary-color); margin-bottom:8px; font-weight:700 }
.mode-modal-text { color:var(--light-text); margin-bottom:6px }
.mode-modal-sub { color:#b9a489; font-size:.9rem; margin-bottom:20px }
.mode-modal-actions { display:flex; justify-content:center }
.mode-modal-actions .btn-primary { padding:10px 28px }

/* ===== Global Styles ===== */

/* ===== Race Modal ===== */
.race-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 18px;
}
.race-modal-overlay.active { display:flex }
.race-modal-window {
    background: linear-gradient(180deg, rgba(26,12,6,0.95), rgba(12,6,3,0.98));
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: 16px;
    padding: 28px 24px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 30px rgba(212,175,55,0.06);
    animation: race-modal-in 0.36s cubic-bezier(0.2,1,0.3,1) both;
}
@keyframes race-modal-in { from { opacity:0; transform: translateY(26px) scale(.98)} to { opacity:1; transform: translateY(0) scale(1)} }
.race-modal-close { position:absolute; top:10px; right:14px; background:transparent; border:none; color:#d4af37; font-size:22px; cursor:pointer }
.race-modal-close:hover { color:#ff6b1a; transform:rotate(30deg) }
.race-modal-icon { font-size:54px; margin-bottom:10px; filter:drop-shadow(0 0 12px rgba(212,175,55,0.35)); }
.race-modal-title { font-size:1.45rem; color:var(--primary-color); margin-bottom:8px; font-weight:700 }
.race-modal-text { color:var(--light-text); margin-bottom:8px }
.race-modal-sub { color:#b9a489; font-size:.95rem; margin-bottom:18px }
.race-modal-actions { display:flex; justify-content:center }
.race-modal-actions .btn-primary { padding:10px 24px }
.race-modal-actions .btn-secondary { padding:10px 18px }

/* Highlight selected card */
.race-card-epic.selected {
    border: 2px solid var(--primary-color);
    box-shadow: 0 18px 50px rgba(212,175,55,0.12), 0 8px 30px rgba(0,0,0,0.6);
    transform: translateY(-8px);
}
.race-card-epic.preview {
    outline: 2px dashed rgba(212,175,55,0.12);
    transform: translateY(-4px);
}

/* body classes to allow additional global styling per race */
body.selected-race-humans { --primary-color: #ffd54a; }
body.selected-race-noa    { --primary-color: #4aa3ff; }
body.selected-race-demons { --primary-color: #ff4d4d; }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4af37;
    --secondary-color: #ff6b1a;
    --accent-color: #ff4500;
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --light-text: #e0d5c7;
    --border-color: #4a3728;
    --fire-glow: #ff8c00;
    --gold-glow: #ffa500;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0f0a 50%, #2d1810 100%);
    background-attachment: fixed;
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at bottom, rgba(255, 140, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 3px solid var(--primary-color);
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.3), inset 0 1px 0 rgba(212, 175, 55, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 60px rgba(255, 140, 0, 0.6);
    letter-spacing: 2px;
    font-weight: bold;
}

.logo-img {
    height: 50px;
    margin-right: 15px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6)) drop-shadow(0 0 30px rgba(255, 140, 0, 0.4));
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 20px rgba(255, 107, 26, 0.8), 0 0 10px rgba(255, 140, 0, 0.6);
}

.nav-links .btn-play {
    padding: 8px 20px;
    background: var(--primary-color);
    color: #0a0a0a; /* ensure high contrast text */
    border-radius: 6px;
    font-weight: 700;
    border: 2px solid rgba(0,0,0,0.12);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    padding-left: 18px;
    padding-right: 18px;
}

.nav-links .btn-play:hover {
    background: var(--secondary-color);
    color: #0a0a0a;
    text-shadow: none;
    transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero {
    margin-top: 70px;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(212, 175, 55, 0.15) 50%, rgba(255, 107, 26, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-content h2 {
    font-size: 60px;
    margin-bottom: 25px;
    color: #d4af37;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.8), 0 0 80px rgba(255, 107, 26, 0.6), 0 5px 15px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
    font-weight: bold;
    animation: glow-pulse 2s ease-in-out infinite;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 35px;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(255, 107, 26, 0.5);
    max-width: 700px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Buttons ===== */
.btn-primary {
    padding: 15px 35px;
    background: linear-gradient(135deg, #d4af37 0%, #ff6b1a 100%);
    color: #0a0a0a;
    border: 2px solid #ff8c00;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 107, 26, 0.3);
    box-shadow: 0 0 20px rgba(255, 107, 26, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 107, 26, 0.8), 0 0 60px rgba(255, 69, 0, 0.6), inset 0 0 20px rgba(255, 140, 0, 0.3);
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    padding: 12px 28px;
    background: linear-gradient(135deg, #ff6b1a 0%, #ff8c00 100%);
    color: #0a0a0a;
    border: 2px solid #d4af37;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 107, 26, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    color: #0a0a0a;
    box-shadow: 0 0 30px rgba(255, 107, 26, 0.6), 0 5px 15px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

.btn-lg {
    padding: 18px 50px;
    font-size: 19px;
}

/* ===== Story Section ===== */
.story {
    padding: 80px 0;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(255, 107, 26, 0.2);
}

.story h2 {
    font-size: 40px;
    margin-bottom: 50px;
    text-align: center;
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 60px rgba(255, 107, 26, 0.4);
    letter-spacing: 2px;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.story-text .intro {
    font-size: 20px;
    color: var(--secondary-color);
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 107, 26, 0.6);
}

.story-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 107, 26, 0.5), 0 0 100px rgba(255, 69, 0, 0.3);
    border: 2px solid var(--primary-color);
}

/* ===== About Section ===== */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255, 107, 26, 0.08) 0%, rgba(255, 69, 0, 0.05) 100%);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: inset 0 0 60px rgba(255, 140, 0, 0.1);
}

.about h2 {
    font-size: 40px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 60px rgba(255, 107, 26, 0.4);
    letter-spacing: 2px;
}

.about .subtitle {
    text-align: center;
    font-size: 20px;
    margin-bottom: 50px;
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(255, 107, 26, 0.5);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: rgba(74, 55, 40, 0.3);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 30px rgba(255, 107, 26, 0.4), inset 0 0 30px rgba(255, 140, 0, 0.1);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(255, 107, 26, 0.5);
}

.about-card p {
    font-size: 14px;
    line-height: 1.6;
}

/* ===== Races Section ===== */
.races {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
}

.races::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 26, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.races::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

.races .container {
    position: relative;
    z-index: 2;
}

.races h2 {
    font-size: 40px;
    margin-bottom: 15px;
    text-align: center;
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 60px rgba(255, 107, 26, 0.4);
    letter-spacing: 2px;
    animation: glow-pulse 3s ease-in-out infinite;
}

.races .subtitle {
    text-align: center;
    font-size: 18px;
    margin-bottom: 50px;
    color: var(--secondary-color);
    text-shadow: 0 0 20px rgba(255, 107, 26, 0.3);
}

.races-grid-epic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.race-card-epic {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(40, 30, 20, 0.8) 100%);
    border: 2px solid #ff6b1a;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2), inset 0 0 30px rgba(255, 107, 26, 0.05);
}

.race-card-epic:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #d4af37;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.4), 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(255, 107, 26, 0.1);
}

.race-image-epic {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.race-image-epic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.race-card-epic:hover .race-image-epic img {
    transform: scale(1.1) rotate(1deg);
}

.race-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 107, 26, 0.15) 100%);
    pointer-events: none;
}

.race-icon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid #d4af37;
    border-radius: 50%;
    padding: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(255, 107, 26, 0.2);
    transition: all 0.3s ease;
    width: 68px;
    height: 68px;
}

.race-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

.race-card-epic:hover .race-icon-badge {
    background: rgba(255, 107, 26, 0.3);
    border-color: #ff6b1a;
    box-shadow: 0 0 30px rgba(255, 107, 26, 0.6), inset 0 0 15px rgba(255, 107, 26, 0.3);
    transform: scale(1.1) rotate(10deg);
}

.race-info-epic {
    padding: 30px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(30, 20, 10, 0.8) 100%);
}

.race-info-epic h3 {
    font-size: 1.8rem;
    color: #d4af37;
    margin-bottom: 8px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.race-card-epic:hover .race-info-epic h3 {
    color: #ff6b1a;
    text-shadow: 0 0 30px rgba(255, 107, 26, 0.6);
}

.race-subtitle {
    color: #ff6b1a;
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-style: italic;
    text-shadow: 0 0 10px rgba(255, 107, 26, 0.3);
}

.race-features {
    list-style: none;
    margin-bottom: 25px;
}

.race-features li {
    padding: 8px 0;
    color: #cccccc;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding-left: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.race-features li:last-child {
    border-bottom: none;
}

.race-features li::before {
    content: '⚔️';
    position: absolute;
    left: 0;
    color: #ff6b1a;
    opacity: 0;
    transition: all 0.3s ease;
}

.race-card-epic:hover .race-features li::before {
    opacity: 1;
}

.race-card-epic:hover .race-features li {
    color: #d4af37;
    padding-left: 30px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.humans-card {
    border-color: #4a90e2;
}

.humans-card:hover {
    border-color: #6ba3ff;
    box-shadow: 0 0 50px rgba(107, 163, 255, 0.4), 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(74, 144, 226, 0.1);
}

.noa-card {
    border-color: #2dba9f;
}

.noa-card:hover {
    border-color: #45d9c1;
    box-shadow: 0 0 50px rgba(69, 217, 193, 0.4), 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(45, 186, 159, 0.1);
}

.demons-card {
    border-color: #e24a4a;
}

.demons-card:hover {
    border-color: #ff6b6b;
    box-shadow: 0 0 50px rgba(255, 107, 107, 0.4), 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(226, 74, 74, 0.1);
}

.race-card-epic .btn-secondary {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6b1a 0%, #ff8c00 100%);
    border: 2px solid #d4af37;
    color: #0a0a0a;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 107, 26, 0.3);
}

.race-card-epic .btn-secondary:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    box-shadow: 0 0 30px rgba(255, 107, 26, 0.6), 0 5px 15px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

/* ===== Features Section ===== */
.features {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255, 107, 26, 0.08) 0%, rgba(255, 69, 0, 0.05) 100%);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: inset 0 0 60px rgba(255, 140, 0, 0.1);
}

.features h2 {
    font-size: 40px;
    margin-bottom: 50px;
    text-align: center;
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 60px rgba(255, 107, 26, 0.4);
    letter-spacing: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background: rgba(74, 55, 40, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 30px rgba(255, 107, 26, 0.4), inset 0 0 30px rgba(255, 140, 0, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(255, 107, 26, 0.5);
}

.feature-item p {
    font-size: 14px;
    line-height: 1.6;
}

/* ===== Game Modes Section ===== */
.game-modes {
    padding: 80px 0;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(255, 107, 26, 0.2);
}

.game-modes h2 {
    font-size: 40px;
    margin-bottom: 50px;
    text-align: center;
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 60px rgba(255, 107, 26, 0.4);
    letter-spacing: 2px;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.mode-card {
    background: linear-gradient(135deg, rgba(255, 107, 26, 0.15) 0%, rgba(255, 69, 0, 0.1) 100%);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 35px;
    transition: all 0.3s ease;
}

.mode-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 40px rgba(255, 107, 26, 0.5), 0 0 80px rgba(255, 69, 0, 0.2);
}

.mode-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(255, 107, 26, 0.6);
}

.mode-card p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ===== Download Section ===== */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(255, 107, 26, 0.15) 0%, rgba(255, 69, 0, 0.1) 100%);
    border-bottom: 3px solid var(--primary-color);
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 107, 26, 0.3);
}

.download h2 {
    font-size: 44px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.8), 0 0 80px rgba(255, 107, 26, 0.5);
    letter-spacing: 3px;
}

.download > .container > p {
    font-size: 18px;
    margin-bottom: 50px;
    color: var(--light-text);
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.download-buttons .btn-primary span {
    margin-right: 10px;
}

.system-requirements {
    background: rgba(74, 55, 40, 0.3);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 0 30px rgba(255, 107, 26, 0.3);
}

.system-requirements h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(255, 107, 26, 0.6);
}

.requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}

.req-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.req-item p {
    font-size: 14px;
    color: var(--light-text);
}

/* ===== Footer ===== */
.footer {
    background: var(--darker-bg);
    border-top: 3px solid var(--primary-color);
    padding: 50px 0;
    box-shadow: inset 0 20px 40px rgba(255, 140, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 107, 26, 0.5);
}

.footer-section p {
    font-size: 14px;
    color: var(--light-text);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(255, 107, 26, 0.6);
}

.social-links {
    display: flex;
    gap: 20px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    font-size: 14px;
    color: var(--light-text);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.95);
        padding: 20px;
        border-bottom: 2px solid var(--primary-color);
        gap: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        margin-top: 60px;
        min-height: auto;
        padding: 40px 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .story-content,
    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .races-grid,
    .races-grid-epic,
    .about-grid,
    .features-grid,
    .modes-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        grid-template-columns: 1fr;
    }

    .race-image,
    .race-image-epic {
        height: 200px;
    }

    h2 {
        font-size: 32px;
    }

    .btn-lg {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }

    .download-buttons .btn-primary span {
        display: none;
    }

    .about-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .races-grid-epic {
        gap: 15px;
    }
    
    .race-image-epic {
        height: 200px;
    }
    
    .race-info-epic {
        padding: 20px;
    }
    
    .race-info-epic h3 {
        font-size: 1.4rem;
    }
    
    .race-subtitle {
        font-size: 0.85rem;
    }
    
    .race-features li {
        font-size: 0.85rem;
        padding: 5px 0;
    }
    
    .race-card-epic .btn-secondary {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
