
:root {
    --color-bg: #0b0b13;
    --color-primary: #8b0000;
    --color-secondary: #e6c200;
    --color-text: #eee;
    --color-accent: #d4af37;
    --color-shadow: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-bg) 100%);
    color: var(--color-text);
    line-height: 1.8;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><path d="M100 0Q150 50 200 0Q150 100 200 200Q150 150 100 200Q50 150 0 200Q50 100 0 0Q50 50 100 0Z" fill="%238b0000" opacity="0.05"/></svg>');
    background-size: 200px 200px;
    z-index: -1;
    opacity: 0.2;
}

.nocturnal-container {
    max-width: 1070px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.gothic-header {
    background-color: rgba(11, 11, 19, 0.9);
    padding: 20px 0;
    box-shadow: 0 2px 20px var(--color-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-primary);
}

.crest-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.crest-logo-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

.crest-logo-icon::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px dashed var(--color-accent);
    border-radius: 50%;
    opacity: 0.7;
}

.crest-logo-icon-inner {
    width: 50px;
    height: 50px;
    background-color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238b0000"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"/></svg>');
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center;
}

.crest-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--color-primary);
}

.vampire-nav {
    display: flex;
    align-items: center;
}

.vampire-nav-list {
    display: flex;
    list-style: none;
}

.vampire-nav-item {
    margin-left: 30px;
}

.vampire-nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.vampire-nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.vampire-nav-link:hover {
    color: var(--color-primary);
    text-shadow: 0 0 5px var(--color-primary);
}

.vampire-nav-link:hover::after {
    width: 100%;
}

.fang-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    position: relative;
    cursor: pointer;
}

.fang-menu-toggle::before,
.fang-menu-toggle::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

.fang-menu-toggle::before {
    top: 12px;
    left: 10px;
    transform: rotate(0deg);
}

.fang-menu-toggle::after {
    bottom: 12px;
    left: 10px;
    transform: rotate(0deg);
}

.fang-menu-toggle.active::before {
    transform: rotate(45deg);
    top: 19px;
}

.fang-menu-toggle.active::after {
    transform: rotate(-45deg);
    bottom: 19px;
}

.fang-menu-toggle::after {
    content: "Menu";
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 1px;
}

/* Mobile menu */
.gothic-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: rgba(11, 11, 19, 0.95);
    box-shadow: -5px 0 15px var(--color-shadow);
    z-index: 90;
    display: flex;
    flex-direction: column;
    padding: 80px 30px;
    transition: right 0.5s ease;
    overflow-y: auto;
    border-left: 1px solid var(--color-primary);
}

.gothic-mobile-menu.active {
    right: 0;
}

.gothic-mobile-nav-list {
    list-style: none;
    margin-top: 40px;
}

.gothic-mobile-nav-item {
    margin-bottom: 25px;
}

.gothic-mobile-nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    display: inline-block;
    letter-spacing: 1px;
}

.gothic-mobile-nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.gothic-mobile-nav-link:hover {
    color: var(--color-primary);
    text-shadow: 0 0 5px var(--color-primary);
}

.gothic-mobile-nav-link:hover::after {
    width: 100%;
}

/* Main content */
.midnight-main {
    padding: 60px 0;
}

/* Sections */
.veil-section {
    margin-bottom: 80px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.veil-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.veil-section::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.veil-section-title {
    font-size: 42px;
    margin-bottom: 30px;
    color: var(--color-text);
    position: relative;
    display: inline-block;
    padding-left: 60px;
    text-shadow: 0 0 10px var(--color-primary);
    letter-spacing: 2px;
}

.veil-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e6c200"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.veil-section-subtitle {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--color-accent);
    position: relative;
    padding-left: 45px;
    font-style: italic;
    letter-spacing: 1px;
}

.veil-section-subtitle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d4af37"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.veil-section-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
    letter-spacing: 0.5px;
}

.gothic-feature-list {
    list-style: none;
    margin: 30px 0;
}

.gothic-feature-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 15px;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.gothic-feature-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 25px;
    height: 25px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238b0000"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Intro section */
.legendary-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.legendary-content {
    flex: 1 1 500px;
}

.legendary-image {
    flex: 1 1 500px;
    position: relative;
    min-height: 300px;
    border: 10px solid transparent;
    border-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23d4af37" stroke-width="5"/></svg>') 10 round;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--color-shadow);
}

.legendary-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            135deg,
            rgba(139, 0, 0, 0.1) 0%,
            rgba(139, 0, 0, 0) 50%,
            rgba(139, 0, 0, 0.1) 100%
    );
    z-index: 1;
}

.legendary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.3) contrast(1.1) brightness(0.9);
}

/* Games section */
.vault-games {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.vault-game-card {
    flex: 1 1 300px;
    background-color: rgba(11, 11, 19, 0.7);
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--color-shadow);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.vault-game-card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.vault-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.5);
    border-color: var(--color-accent);
}

.vault-game-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    letter-spacing: 1px;
}

.vault-game-title::before {
    content: "";
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d4af37"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
}

.vault-game-text {
    font-size: 16px;
    margin-bottom: 15px;
    font-style: italic;
}

.vault-game-rating {
    display: flex;
    align-items: center;
    color: var(--color-primary);
    font-weight: 600;
}

.vault-game-rating::before {
    content: "★★★★★";
    letter-spacing: 3px;
    margin-right: 10px;
    font-size: 18px;
    color: var(--color-accent);
}

/* Bonuses section */
.blood-bonuses {
    margin-top: 40px;
}

.blood-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    position: relative;
    background-color: rgba(11, 11, 19, 0.7);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--color-shadow);
    border: 1px solid var(--color-primary);
}

.blood-comparison-table tr:nth-child(even) {
    background-color: rgba(139, 0, 0, 0.1);
}

.blood-comparison-table tr:hover {
    background-color: rgba(139, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.blood-comparison-table th,
.blood-comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-primary);
}

.blood-comparison-table th {
    background-color: var(--color-primary);
    color: var(--color-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
}

.blood-comparison-table td:first-child {
    font-weight: 600;
    color: var(--color-accent);
}

/* Buttons */
.gothic-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(to right, var(--color-primary), #6b0000);
    color: var(--color-text);
    border: none;
    border-radius: 0;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
    border: 1px solid var(--color-primary);
}

.gothic-button::before {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            to bottom,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent
    );
    transition: all 0.5s ease;
}

.gothic-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.6);
    background: linear-gradient(to right, #6b0000, var(--color-primary));
}

.gothic-button:hover::before {
    top: 100%;
}

/* Footer */
.velvet-footer {
    background-color: rgba(11, 11, 19, 0.95);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--color-primary);
}

.velvet-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230b0b13" opacity="0.8"/><path d="M0 0L100 100M0 100L100 0" stroke="%238b0000" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 100px 100px;
    z-index: -1;
}

.velvet-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.velvet-footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--color-primary);
}

.velvet-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.velvet-footer-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.velvet-footer-link:hover {
    color: var(--color-primary);
    text-shadow: 0 0 5px var(--color-primary);
}

.velvet-footer-copyright {
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.7;
    margin-top: 30px;
    text-align: center;
    letter-spacing: 0.5px;
}

.bat-animation {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238b0000"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    animation: batFly 15s linear infinite;
    opacity: 0.7;
}

@keyframes batFly {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    25% {
        transform: translateX(-200px) translateY(50px) rotate(20deg);
    }
    50% {
        transform: translateX(-400px) translateY(0) rotate(0deg);
    }
    75% {
        transform: translateX(-200px) translateY(-50px) rotate(-20deg);
    }
    100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
}

/* Responsive styles */
@media (max-width: 992px) {
    .vampire-nav {
        display: none;
    }

    .fang-menu-toggle {
        display: block;
    }

    .veil-section-title {
        font-size: 36px;
    }

    .veil-section-subtitle {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .veil-section-title {
        font-size: 30px;
        padding-left: 50px;
    }

    .veil-section-title::before {
        width: 40px;
        height: 40px;
    }

    .veil-section-subtitle {
        font-size: 22px;
        padding-left: 40px;
    }

    .veil-section-subtitle::before {
        width: 30px;
        height: 30px;
    }

    .legendary-intro {
        flex-direction: column;
    }

    .legendary-content,
    .legendary-image {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    .crest-logo-text {
        font-size: 24px;
    }

    .crest-logo-icon {
        width: 50px;
        height: 50px;
    }

    .crest-logo-icon-inner {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .veil-section {
        margin-bottom: 60px;
    }

    .veil-section-title {
        font-size: 26px;
        padding-left: 40px;
    }

    .veil-section-title::before {
        width: 30px;
        height: 30px;
    }

    .velvet-footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
