* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a0612;
    --secondary-dark: #1a0f2e;
    --accent-purple: #2d1b4e;
    --accent-gold: #d4af37;
    --accent-red: #8b0000;
    --text-light: #e8e0d5;
    --text-muted: #9a8f8f;
    --border-gothic: #3d2a5c;
    --shadow-dark: rgba(0, 0, 0, 0.8);
    --glow-gold: rgba(212, 175, 55, 0.3);
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, var(--accent-purple) 100%);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    background: linear-gradient(180deg, rgba(10, 6, 18, 0.95) 0%, rgba(26, 15, 46, 0.9) 100%);
    border-bottom: 2px solid var(--border-gothic);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow-dark);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo a {
    text-decoration: none;
    color: var(--accent-gold);
}

.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 10px var(--glow-gold);
    letter-spacing: 2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px var(--glow-gold);
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid var(--border-gothic);
    background: rgba(10, 6, 18, 0.8);
    color: var(--text-light);
    border-radius: 5px;
    font-size: 14px;
    width: 200px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    padding: 10px 15px;
    background: var(--accent-gold);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #f4cf47;
    box-shadow: 0 0 15px var(--glow-gold);
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

.hero-section {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2) 0%, rgba(45, 27, 78, 0.3) 100%);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-gothic);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 6, 18, 0.5) 100%);
    pointer-events: none;
}

.hero-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--accent-gold);
    text-shadow: 0 0 20px var(--glow-gold);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--glow-gold);
    border-left: 4px solid var(--accent-red);
    padding-left: 20px;
}

.featured-section {
    margin-bottom: 50px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.featured-game {
    background: linear-gradient(135deg, rgba(26, 15, 46, 0.9) 0%, rgba(45, 27, 78, 0.8) 100%);
    border: 2px solid var(--border-gothic);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--shadow-dark);
}

.featured-game:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-dark), 0 0 20px var(--glow-gold);
    border-color: var(--accent-gold);
}

.featured-game a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-game img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--border-gothic);
}

.featured-info {
    padding: 20px;
}

.featured-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.featured-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.categories-section {
    margin-bottom: 50px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.category-card {
    background: linear-gradient(135deg, rgba(26, 15, 46, 0.9) 0%, rgba(45, 27, 78, 0.8) 100%);
    border: 2px solid var(--border-gothic);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-dark);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-dark), 0 0 15px var(--glow-gold);
    border-color: var(--accent-gold);
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 15px;
}

.category-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-gothic);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--text-light);
}

.games-section,
.new-games-section {
    margin-bottom: 50px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.game-card {
    background: linear-gradient(135deg, rgba(26, 15, 46, 0.9) 0%, rgba(45, 27, 78, 0.8) 100%);
    border: 2px solid var(--border-gothic);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-dark);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-dark), 0 0 15px var(--glow-gold);
    border-color: var(--accent-gold);
}

.game-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-image {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-info {
    padding: 15px;
}

.game-info h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(139, 0, 0, 0.3);
    color: var(--accent-gold);
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.view-more {
    text-align: center;
    margin-top: 30px;
}

.btn-primary,
.btn-play {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--accent-red) 0%, #b30000 100%);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 5px 15px var(--shadow-dark);
}

.btn-primary:hover,
.btn-play:hover {
    background: linear-gradient(135deg, #b30000 0%, var(--accent-red) 100%);
    box-shadow: 0 8px 25px var(--shadow-dark), 0 0 20px var(--glow-gold);
    transform: translateY(-2px);
}

.main-footer {
    background: linear-gradient(180deg, rgba(10, 6, 18, 0.95) 0%, rgba(26, 15, 46, 0.9) 100%);
    border-top: 2px solid var(--border-gothic);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section h4 {
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-gothic);
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--accent-gold);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.breadcrumb {
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--accent-gold);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.detail-main {
    background: linear-gradient(135deg, rgba(26, 15, 46, 0.9) 0%, rgba(45, 27, 78, 0.8) 100%);
    border: 2px solid var(--border-gothic);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-dark);
}

.game-preview {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-bottom: 2px solid var(--border-gothic);
}

.game-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-details {
    padding: 30px;
}

.game-details h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--glow-gold);
}

.game-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}

.category-badge {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(139, 0, 0, 0.3);
    color: var(--accent-gold);
    border-radius: 5px;
    font-weight: 600;
    border: 1px solid var(--accent-gold);
}

.rating {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.play-button-container {
    margin: 30px 0;
}

.game-description,
.game-instructions,
.game-tags {
    margin-bottom: 30px;
}

.game-description h3,
.game-instructions h3,
.game-tags h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-red);
    padding-left: 15px;
}

.game-description p,
.game-instructions p {
    color: var(--text-light);
    line-height: 1.8;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(45, 27, 78, 0.8);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 3px;
    border: 1px solid var(--border-gothic);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tag:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section {
    background: linear-gradient(135deg, rgba(26, 15, 46, 0.9) 0%, rgba(45, 27, 78, 0.8) 100%);
    border: 2px solid var(--border-gothic);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px var(--shadow-dark);
}

.sidebar-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-gothic);
    padding-bottom: 10px;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 12px;
    color: var(--text-light);
}

.info-list strong {
    color: var(--accent-gold);
}

.info-list a {
    color: var(--text-light);
    text-decoration: none;
}

.info-list a:hover {
    color: var(--accent-gold);
}

.related-games {
    margin-top: 50px;
}

.play-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.play-header {
    background: linear-gradient(180deg, rgba(10, 6, 18, 0.95) 0%, rgba(26, 15, 46, 0.9) 100%);
    border-bottom: 2px solid var(--border-gothic);
    padding: 15px 0;
}

.play-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.play-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.btn-back {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(45, 27, 78, 0.8);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--border-gothic);
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.game-frame-container {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.play-footer {
    background: linear-gradient(180deg, rgba(26, 15, 46, 0.9) 0%, rgba(10, 6, 18, 0.95) 100%);
    border-top: 2px solid var(--border-gothic);
    padding: 10px 0;
    text-align: center;
}

.play-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.play-footer a {
    color: var(--accent-gold);
    text-decoration: none;
}

.play-footer a:hover {
    text-decoration: underline;
}

.policy-page {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(26, 15, 46, 0.9) 0%, rgba(45, 27, 78, 0.8) 100%);
    border: 2px solid var(--border-gothic);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow-dark);
}

.policy-page h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--glow-gold);
}

.policy-page .last-updated {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-style: italic;
}

.policy-page section {
    margin-bottom: 30px;
}

.policy-page h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-red);
    padding-left: 15px;
}

.policy-page p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.policy-page ul {
    list-style: none;
    margin-left: 20px;
}

.policy-page ul li {
    color: var(--text-light);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.policy-page ul li::before {
    content: '⚔';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.policy-page a {
    color: var(--accent-gold);
    text-decoration: none;
}

.policy-page a:hover {
    text-decoration: underline;
}

.contact-info {
    background: rgba(45, 27, 78, 0.5);
    padding: 20px;
    border-radius: 5px;
    border: 1px solid var(--border-gothic);
}

.contact-info p {
    margin-bottom: 10px;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2) 0%, rgba(45, 27, 78, 0.3) 100%);
    border-radius: 10px;
    border: 2px solid var(--border-gothic);
}

.category-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--glow-gold);
}

.category-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
        justify-content: center;
    }
    
    .search-box input {
        width: 70%;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .game-details h1 {
        font-size: 1.8rem;
    }
    
    .policy-page {
        padding: 20px;
    }
    
    .policy-page h1 {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .main-nav ul {
        gap: 10px;
    }
    
    .main-nav a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .game-image {
        height: 120px;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--glow-gold);
    }
    50% {
        box-shadow: 0 0 20px var(--glow-gold);
    }
}

.game-card:hover,
.category-card:hover,
.featured-game:hover {
    animation: glow 2s ease-in-out infinite;
}
