:root {
    --primary: #1a1a1a;
    --primary-light: #2d2d2d;
    --accent: #8b7d6b;
    --accent-dark: #6b5d4f;
    --dark: #0a0a0a;
    --darker: #000000;
    --light: #d4d0c8;
    --text-dark: #1a1a1a;
    --text-light: #b0a090;
    --border: #3a3a3a;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.8);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Pro', Georgia, serif;
    background: var(--darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.page-wrapper {
    min-height: 100vh;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light);
    letter-spacing: 0.15em;
}

.dragon-icon {
    font-size: 1.3rem;
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--light);
    opacity: 1;
}

.premium-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: var(--accent) !important;
    font-weight: 700;
}

.premium-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.4);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #000000;
    overflow: hidden;
    padding-top: 80px;
    border-bottom: 1px solid var(--border);
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(58, 58, 58, 0.03) 2px, rgba(58, 58, 58, 0.03) 4px);
    opacity: 0.3;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-transform: uppercase;
}

.classification {
    opacity: 0.7;
}

.doc-id {
    opacity: 0.5;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hero-tagline {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--accent);
    font-style: italic;
    margin-bottom: 1.5rem;
    opacity: 0.85;
    font-weight: 400;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: var(--text-light);
    opacity: 0.7;
    margin-bottom: 3rem;
    line-height: 1.7;
    text-align: justify;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border: 1px solid var(--border);
    border-radius: 0;
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary-light);
    color: var(--light);
    border: 1px solid var(--border);
}

.btn-primary:hover {
    background: var(--border);
    border-color: var(--accent);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--accent);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    color: var(--light);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.65;
    margin-bottom: 4rem;
    font-style: normal;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.books-section {
    background: var(--darker);
    border-top: 1px solid var(--border);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.book-card {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 2rem;
    text-align: left;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--accent);
    transition: height 0.3s ease;
}

.book-card:hover::before {
    height: 100%;
}

.book-card:hover {
    background: rgba(45, 45, 45, 0.5);
    border-color: var(--accent);
}

.book-card.coming-soon {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.doc-code {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.book-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--light);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.book-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: normal;
    opacity: 0.75;
    line-height: 1.5;
}

.chapters {
    display: block;
    color: var(--text-light);
    opacity: 0.5;
    font-size: 0.8rem;
    margin-top: 1rem;
    font-family: monospace;
}

.book-status {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.4rem 1rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 400;
    font-family: monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.book-status.available {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
}

.book-status.premium {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
    opacity: 0.5;
}

.reader-section {
    min-height: 100vh;
    background: var(--light);
    color: var(--text-dark);
    padding-top: 80px;
}

/* Removed duplicate .hidden class - using specific .reader-section.hidden instead */

.verse {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 3rem;
}

.verse-num {
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.reader-footer {
    margin-top: 3rem;
}

.premium-prompt {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(255, 215, 0, 0.1));
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.premium-prompt p {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-section {
    background: var(--dark);
    border-top: 1px solid var(--border);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    background: rgba(26, 26, 26, 0.3);
    border: 1px solid var(--border);
    padding: 3rem;
}

.methodology-note {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.6;
    margin-bottom: 2rem;
    padding: 1rem;
    border-left: 2px solid var(--border);
    font-style: italic;
}

.subsection-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
}

.methodology-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.methodology-list li {
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    background: rgba(45, 45, 45, 0.3);
    border-left: 2px solid var(--border);
    font-size: 0.9rem;
    line-height: 1.6;
}

.methodology-list strong {
    color: var(--accent);
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.disclaimer {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    opacity: 0.7;
    font-style: italic;
}

.support-section {
    background: var(--darker);
    border-top: 1px solid var(--border);
}

.support-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.support-message {
    background: rgba(26, 26, 26, 0.3);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 3rem;
}

.support-message h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--light);
    margin-bottom: 1.5rem;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.funding-note {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.75;
}

.support-message p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.support-features {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(45, 45, 45, 0.3);
    border-radius: 0;
    border-left: 2px solid var(--border);
}

.support-features h4 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.support-features ul {
    list-style: none;
    padding: 0;
}

.support-features li {
    padding: 0.4rem 0;
    color: var(--text-light);
    font-size: 0.85rem;
    opacity: 0.8;
    font-family: monospace;
}

.funding-model {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.funding-model h4 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.ad-disclosure {
    font-size: 0.8rem;
    opacity: 0.6;
    font-style: italic;
    margin-top: 1rem;
}

.donation-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background: transparent;
    border-radius: 0;
    border: 1px solid var(--border);
}

.donation-cta h4 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.donation-cta p {
    font-size: 0.85rem;
}

.donation-cta a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 400;
    font-family: monospace;
}

.donation-cta a:hover {
    text-decoration: underline;
}

.ad-container {
    position: sticky;
    top: 100px;
}

.ad-placeholder {
    background: rgba(26, 26, 26, 0.3);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 1.5rem;
    text-align: center;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-label {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--accent);
    opacity: 0.5;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.ad-placeholder p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pricing-section {
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.pricing-card {
    background: rgba(26, 10, 10, 0.5);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--accent);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.07);
}

.pricing-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.price {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    color: var(--text-light);
    font-weight: 900;
    margin-bottom: 2rem;
}

.period {
    font-size: 1.2rem;
    opacity: 0.7;
}

.features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.05rem;
}

.trial-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

.footer {
    background: var(--darker);
    border-top: 1px solid var(--border);
    padding: 2rem 0 1rem;
}

/* Updated footer styles moved to site-footer class above */

/* Content Notice Styles */
.content-notice {
    background: rgba(139, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.content-notice p {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.content-notice strong {
    color: var(--gold);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-brand p {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--light);
    font-weight: 600;
    letter-spacing: 0.15em;
}

.tagline {
    font-size: 0.75rem !important;
    color: var(--text-light) !important;
    opacity: 0.5;
    font-style: italic;
    font-family: 'Crimson Pro', serif !important;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.footer-links a:hover {
    color: var(--light);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    opacity: 0.5;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .grid-2,
    .conservation-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .action-card {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .support-content {
        grid-template-columns: 1fr;
    }
    
    .ad-container {
        position: static;
    }
}
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .books-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .reader-content {
        padding: 1.5rem;
    }
    
    .reader-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

.hidden {
    display: none !important;
}

.battle-section {
    background: var(--darker);
    padding: 6rem 0;
}

.battle-container {
    max-width: 900px;
    margin: 0 auto;
}

.battle-intro {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 2px solid var(--accent);
    border-radius: 20px;
}

.battle-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.battle-intro h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.battle-intro p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.class-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.dragon-class {
    background: rgba(26, 10, 10, 0.8);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dragon-class:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.class-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dragon-class h4 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.dragon-class p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.class-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.battle-arena {
    background: rgba(26, 10, 10, 0.6);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
}

.battle-status {
    display: grid;
    grid-template-columns: 2fr auto 2fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.player-status h3,
.enemy-status h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.hp-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #90EE90);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.hp-fill.enemy-hp {
    background: linear-gradient(90deg, #ff0000, #ff6666);
}

.stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
}

.vs {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--accent);
    font-weight: 900;
}

.battle-visual {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 3rem 0;
    min-height: 200px;
}

.player-sprite,
.enemy-sprite {
    font-size: 6rem;
    transition: all 0.2s ease;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.battle-log {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    height: 150px;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.battle-log p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.battle-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.action-btn {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(42, 15, 15, 0.3));
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Crimson Pro', serif;
}

.action-btn:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.5), rgba(255, 215, 0, 0.1));
    transform: translateY(-2px);
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn.attack {
    border-color: #ff4444;
}

.action-btn.special {
    border-color: var(--accent);
}

.action-btn.heal {
    border-color: #44ff44;
}

.action-btn.defend {
    border-color: #4444ff;
}

.battle-victory,
.battle-defeat {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
}

.victory-icon,
.defeat-icon {
    font-size: 6rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6));
}

.battle-victory h3,
.battle-defeat h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.battle-victory p,
.battle-defeat p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.rewards {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(139, 0, 0, 0.2);
    border-radius: 15px;
    border-left: 4px solid var(--accent);
}

.rewards p {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.level-up {
    animation: pulse-dragon 1s;
    font-size: 1.3rem !important;
}

.victory-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .class-selection {
        grid-template-columns: 1fr;
    }
    
    .battle-status {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vs {
        text-align: center;
    }
    
    .battle-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .battle-visual {
        padding: 2rem 0;
    }
    
    .player-sprite,
    .enemy-sprite {
        font-size: 4rem;
    }
}

.game-section {
    background: var(--dark);
    padding: 6rem 0;
}

.game-container {
    max-width: 800px;
    margin: 0 auto;
}

.game-intro {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 2px solid var(--accent);
    border-radius: 20px;
}

.game-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.game-intro h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.game-intro p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.game-quiz {
    background: rgba(26, 10, 10, 0.6);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.question-counter {
    text-align: center;
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.question-card {
    min-height: 400px;
}

.question-text {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.answer-btn {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(42, 15, 15, 0.3));
    border: 2px solid var(--border);
    border-radius: 15px;
    color: var(--text-light);
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: 'Crimson Pro', serif;
}

.answer-btn:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.5), rgba(255, 215, 0, 0.1));
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.game-result {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
}

.result-dragon-icon {
    font-size: 6rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.6));
    animation: pulse-dragon 2s ease-in-out infinite;
}

@keyframes pulse-dragon {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.6)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 60px rgba(255, 215, 0, 0.9)); }
}

.result-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.result-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 3rem;
    text-align: left;
}

.result-traits {
    text-align: left;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(139, 0, 0, 0.2);
    border-radius: 15px;
    border-left: 4px solid var(--accent);
}

.result-traits h4 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.result-traits ul {
    list-style: none;
    padding: 0;
}

.result-traits li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
    font-size: 1.1rem;
}

.result-traits li::before {
    content: "🔥";
    position: absolute;
    left: 0;
}

.result-chapter {
    text-align: left;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    border: 1px solid var(--accent);
}

.result-chapter h4 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.result-chapter p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.result-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem 0 2rem;
}

.result-share {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.result-share p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .game-intro,
    .game-quiz,
    .game-result {
        padding: 2rem 1.5rem;
    }
    
    .question-text {
        font-size: 1.4rem;
    }
    
    .answer-btn {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .result-title {
        font-size: 2rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
}

/* Comment System Styles */
.comments-section {
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(13, 5, 5, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
}

.comments-header {
    text-align: center;
    margin-bottom: 2rem;
}

.comments-header h3 {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.comments-subtitle {
    color: var(--light-text);
    font-style: italic;
    opacity: 0.8;
}

.comment-form {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.comment-author-input,
.comment-textarea {
    width: 100%;
    background: rgba(13, 5, 5, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--light-text);
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.comment-author-input:focus,
.comment-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.comment-textarea {
    min-height: 100px;
    resize: vertical;
}

.comment-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.comments-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 1rem;
}

.comments-list::-webkit-scrollbar {
    width: 8px;
}

.comments-list::-webkit-scrollbar-track {
    background: rgba(13, 5, 5, 0.4);
}

.comments-list::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 4px;
}

.no-comments {
    text-align: center;
    color: var(--light-text);
    opacity: 0.6;
    font-style: italic;
    padding: 2rem;
}

.comment-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.comment-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.comment-author {
    color: var(--gold);
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

.comment-date {
    color: var(--light-text);
    opacity: 0.6;
    font-size: 0.875rem;
}

.comment-text {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-reactions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reaction-btn {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--light-text);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.reaction-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.reaction-btn.has-reactions {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
}

.reaction-emoji {
    font-size: 1.2rem;
}

.reaction-count {
    color: var(--gold);
    font-weight: 600;
}

@media (max-width: 768px) {
    .comments-section {
        padding: 1rem;
        margin-top: 2rem;
    }
    
    .comments-header h3 {
        font-size: 1.5rem;
    }
    
    .comment-form {
        padding: 1rem;
    }
    
    .comment-item {
        padding: 1rem;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .reaction-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}

/* Legal Pages Styles */
.legal-section {
    padding: 100px 0 80px;
    background: var(--darker-bg);
    min-height: 100vh;
}

.legal-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.legal-date {
    text-align: center;
    color: var(--light-text);
    opacity: 0.8;
    margin-bottom: 3rem;
    font-style: italic;
}

.legal-content {
    background: rgba(0, 0, 0, 0.4);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

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

.legal-content h3 {
    color: var(--crimson);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    color: var(--light-text);
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.legal-content a {
    color: var(--gold);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.legal-content a:hover {
    opacity: 0.8;
}

.legal-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Footer Disclaimer Styles */
.site-footer {
    background: rgba(13, 5, 5, 0.98);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 4rem;
}

.footer-disclaimer {
    text-align: center;
    padding: 1.5rem;
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.footer-disclaimer p {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-disclaimer strong {
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links {
    text-align: center;
    padding: 1rem 0;
}

.footer-links a {
    color: var(--gold);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    color: var(--light-text);
    opacity: 0.6;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    font-size: 0.85rem;
}
