:root {
    --blood-red: #8B0000;
    --decay-green: #4A5D23;
    --bone-white: #F5F5DC;
    --rot-brown: #3D2914;
    --fog-gray: #2C2C2C;
    --flesh-pink: #D4A59A;
    --midnight: #1a1a2e;
    --accent: #e94560;
}

.standalone {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    color: #e8e8e8;
    line-height: 1.8;
    min-height: 100vh;

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

    /* Hero Section */
    .hero {
        position: relative;
        min-height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        overflow: hidden;
        background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
        opacity: 0.03;
        pointer-events: none;
    }

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

    .hero h1 {
        font-family: 'Creepster', cursive;
        font-size: clamp(3rem, 10vw, 7rem);
        color: var(--accent);
        text-shadow: 0 0 40px rgba(233, 69, 96, 0.5), 0 4px 0 #000;
        margin-bottom: 1rem;
        letter-spacing: 0.05em;
    }

    .hero .subtitle {
        font-family: 'Merriweather', serif;
        font-size: 1.4rem;
        color: #a0a0a0;
        font-style: italic;
        margin-bottom: 2rem;
    }

    .hero .tagline {
        font-size: 1.1rem;
        color: #c0c0c0;
        max-width: 600px;
        margin: 0 auto;
    }

    .scroll-indicator {
        margin-top: 3rem;
        /* Position is relative by default in flow */
        animation: bounce 2s infinite;
        display: flex;
        justify-content: center;
    }

    .scroll-indicator svg {
        width: 30px;
        height: 30px;
        fill: var(--accent);
        opacity: 0.7;
    }

    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-10px);
        }

        60% {
            transform: translateY(-5px);
        }
    }

    /* Section Styling */
    section {
        margin-bottom: 5rem;
    }

    h2 {
        font-family: 'Creepster', cursive;
        font-size: 2.5rem;
        color: var(--accent);
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid rgba(233, 69, 96, 0.3);
    }

    h3 {
        font-size: 1.5rem;
        color: #fff;
        margin: 2.5rem 0 1rem;
        font-weight: 600;
    }

    h4 {
        font-size: 1.2rem;
        color: var(--flesh-pink);
        margin: 2rem 0 0.75rem;
        font-weight: 600;
    }

    p {
        font-family: 'Merriweather', serif;
        margin-bottom: 1.5rem;
        color: #d0d0d0;
    }

    /* Image Placeholders */
    .image-container {
        margin: 2.5rem 0;
        border-radius: 12px;
        overflow: hidden;
    }

    .image-placeholder {
        aspect-ratio: 16/9;
        background: linear-gradient(135deg, #2a2a4a 0%, #1a1a2e 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #666;
        font-size: 0.9rem;
        text-align: center;
        padding: 2rem;
        position: relative;
    }

    .image-placeholder::before {
        content: '🖼️';
        font-size: 3rem;
        display: block;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

    .image-placeholder .prompt {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }

    .image-caption {
        padding: 1rem 1.5rem;
        background: rgba(0, 0, 0, 0.3);
        font-size: 0.85rem;
        color: #888;
        font-style: italic;
    }

    .image-caption strong {
        color: var(--accent);
        font-style: normal;
    }

    /* Callout Boxes */
    .callout {
        background: linear-gradient(145deg, #252545 0%, #1e1e35 100%);
        border-left: 4px solid var(--accent);
        padding: 1.5rem 2rem;
        margin: 2rem 0;
        border-radius: 0 12px 12px 0;
        position: relative;
    }

    .callout.warning {
        border-left-color: #f39c12;
        background: linear-gradient(145deg, #3d3520 0%, #2a2515 100%);
    }

    .callout.tip {
        border-left-color: #27ae60;
        background: linear-gradient(145deg, #1e3525 0%, #152518 100%);
    }

    .callout.history {
        border-left-color: #9b59b6;
        background: linear-gradient(145deg, #2d2040 0%, #1e1530 100%);
    }

    .callout-icon {
        position: absolute;
        top: -12px;
        left: 1rem;
        background: var(--midnight);
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .callout.warning .callout-icon {
        color: #f39c12;
    }

    .callout.tip .callout-icon {
        color: #27ae60;
    }

    .callout.history .callout-icon {
        color: #9b59b6;
    }

    .callout h4 {
        margin-top: 0.5rem;
        color: #fff;
    }

    .callout p {
        margin-bottom: 0;
    }

    /* Bullet Lists */
    ul,
    ol {
        margin: 1.5rem 0 1.5rem 1.5rem;
    }

    li {
        margin-bottom: 0.75rem;
        color: #c0c0c0;
    }

    li strong {
        color: #fff;
    }

    /* Feature Lists */
    .feature-list {
        list-style: none;
        margin-left: 0;
        display: grid;
        gap: 1rem;
    }

    .feature-list li {
        background: rgba(255, 255, 255, 0.03);
        padding: 1rem 1.5rem;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: flex-start;
        gap: 1rem;
    }

    .feature-list li::before {
        content: '☠️';
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    /* Tables */
    .table-wrapper {
        overflow-x: auto;
        margin: 2rem 0;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.95rem;
    }

    th {
        background: rgba(233, 69, 96, 0.2);
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        color: #fff;
        border-bottom: 2px solid var(--accent);
    }

    td {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: #c0c0c0;
    }

    tr:hover td {
        background: rgba(255, 255, 255, 0.02);
    }

    /* Zombie Type Tabs */
    .zombie-types-section {
        background: linear-gradient(145deg, #1e1e35 0%, #151525 100%);
        border-radius: 16px;
        padding: 2rem;
        margin: 3rem 0;
        border: 1px solid rgba(233, 69, 96, 0.2);
    }

    .zombie-types-section h2 {
        text-align: center;
        border-bottom: none;
        margin-bottom: 2rem;
    }

    /* Accordion Tabs (Details/Summary) */
    .accordion-tabs {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-item {
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        overflow: hidden;
    }

    .tab-item summary {
        background: rgba(255, 255, 255, 0.05);
        color: #888;
        padding: 0.75rem 1.25rem;
        cursor: pointer;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.3s ease;
        font-family: 'Inter', sans-serif;
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .tab-item summary::-webkit-details-marker {
        display: none;
    }

    .tab-item summary::after {
        content: '+';
        font-size: 1.2rem;
        color: var(--accent);
        transition: transform 0.3s ease;
    }

    .tab-item[open] summary::after {
        content: '−';
    }

    .tab-item summary:hover {
        background: rgba(233, 69, 96, 0.1);
        color: #fff;
    }

    .tab-item[open] summary {
        background: var(--accent);
        color: #fff;
    }

    .tab-item[open] summary::after {
        color: #fff;
    }

    .tab-item>.zombie-card {
        animation: fadeIn 0.3s ease;
    }

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

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .zombie-card {
        background: rgba(255, 255, 255, 0.02);
        border-radius: 16px;
        padding: 2rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .zombie-header {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
        align-items: start;
    }

    .zombie-intro {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100%;
    }

    @media (max-width: 768px) {
        .zombie-header {
            grid-template-columns: 1fr;
        }

        .zombie-card-image {
            margin: 0 auto;
        }
    }

    .zombie-card-image {
        width: 100%;
        max-width: 300px;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 12px;
        border: 2px solid rgba(233, 69, 96, 0.3);
        background: linear-gradient(135deg, #2a2a4a 0%, #1a1a2e 100%);
    }

    .zombie-header h3 {
        /* Was .zombie-card-content h3 */
        margin-top: 0;
        font-family: 'Creepster', cursive;
        font-size: 2.5rem;
        /* Increased size for better header look */
        color: var(--accent);
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }

    .zombie-header .origin {
        /* Was .zombie-card-content .origin */
        color: #888;
        font-size: 1rem;
        margin-bottom: 1.5rem;
        font-style: italic;
    }

    .zombie-card-content .origin {
        color: #888;
        font-size: 0.9rem;
        margin-bottom: 1rem;
        font-style: italic;
    }

    .zombie-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .stat {
        text-align: center;
        padding: 0.75rem;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
    }

    .stat-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #666;
        margin-bottom: 0.25rem;
    }

    .stat-value {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--accent);
    }

    .zombie-card-content .traits {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .trait {
        background: rgba(233, 69, 96, 0.15);
        color: var(--flesh-pink);
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        font-size: 0.8rem;
    }

    .writing-tips {
        background: rgba(0, 0, 0, 0.2);
        padding: 1rem 1.5rem;
        border-radius: 8px;
        margin-top: 1.5rem;
    }

    .writing-tips h4 {
        margin-top: 0;
        font-size: 0.9rem;
        color: #fff;
    }

    .writing-tips ul {
        margin: 0.5rem 0 0 1rem;
        font-size: 0.9rem;
    }

    .writing-tips li {
        margin-bottom: 0.5rem;
    }

    /* Quote Blocks */
    blockquote {
        border-left: 3px solid var(--accent);
        padding: 1rem 1.5rem;
        margin: 2rem 0;
        background: rgba(233, 69, 96, 0.05);
        border-radius: 0 8px 8px 0;
        font-family: 'Merriweather', serif;
        font-style: italic;
        color: #a0a0a0;
    }

    blockquote cite {
        display: block;
        margin-top: 0.5rem;
        font-style: normal;
        color: #666;
        font-size: 0.9rem;
    }

    /* Code/Template Boxes */
    .template-box {
        background: #0d0d1a;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 1.5rem;
        margin: 2rem 0;
        font-family: 'Courier New', monospace;
        font-size: 0.9rem;
        color: #b0b0b0;
        overflow-x: auto;
    }

    .template-box .label {
        color: var(--accent);
    }

    .template-box .comment {
        color: #666;
    }

    /* Accordion */
    .accordion {
        margin: 2rem 0;
    }

    .accordion-item {
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin-bottom: 0.5rem;
        overflow: hidden;
    }

    .accordion-item summary {
        background: rgba(255, 255, 255, 0.03);
        padding: 1rem 1.5rem;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
        color: #fff;
        transition: background 0.3s ease;
        list-style: none;
    }

    .accordion-item summary::-webkit-details-marker {
        display: none;
    }

    .accordion-item summary:hover {
        background: rgba(233, 69, 96, 0.1);
    }

    .accordion-item summary::after {
        content: '+';
        font-size: 1.5rem;
        color: var(--accent);
        transition: transform 0.3s ease;
    }

    .accordion-item[open] summary::after {
        content: '−';
    }

    .accordion-body {
        padding: 1.5rem;
        background: rgba(0, 0, 0, 0.2);
    }

    /* Two Column Layout */
    .two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin: 2rem 0;
    }

    @media (max-width: 768px) {
        .two-col {
            grid-template-columns: 1fr;
        }
    }

    /* Timeline */
    .timeline {
        position: relative;
        padding-left: 2rem;
        margin: 2rem 0;
    }

    .timeline::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(to bottom, var(--accent), transparent);
    }

    .timeline-item {
        position: relative;
        padding-bottom: 2rem;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -2rem;
        top: 0;
        width: 12px;
        height: 12px;
        background: var(--accent);
        border-radius: 50%;
        transform: translateX(-5px);
    }

    .timeline-date {
        font-size: 0.85rem;
        color: var(--accent);
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .timeline-title {
        font-weight: 600;
        color: #fff;
        margin-bottom: 0.5rem;
    }

    .timeline-desc {
        color: #888;
        font-size: 0.95rem;
    }

    /* Footer */
    footer {
        text-align: center;
        padding: 4rem 2rem;
        background: rgba(0, 0, 0, 0.3);
        color: #666;
    }

    footer .logo {
        font-family: 'Creepster', cursive;
        font-size: 2rem;
        color: var(--accent);
        margin-bottom: 1rem;
    }

    /* Sticky TOC */
    .toc {
        position: sticky;
        top: 2rem;
        background: linear-gradient(145deg, #252545 0%, #1e1e35 100%);
        border-radius: 12px;
        padding: 1.5rem;
        margin-bottom: 2rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .toc h3 {
        margin-top: 0;
        font-size: 1rem;
        color: var(--accent);
        margin-bottom: 1rem;
    }

    .toc ul {
        list-style: none;
        margin: 0;
    }

    .toc li {
        margin-bottom: 0.5rem;
    }

    .toc a {
        color: #888;
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.2s ease;
    }

    .toc a:hover {
        color: var(--accent);
    }

    /* Progress Bar */
    .progress-bar {
        position: fixed;
        top: 0;
        left: 0;
        width: 0%;
        height: 3px;
        background: linear-gradient(90deg, var(--accent), #ff6b6b);
        z-index: 1000;
        transition: width 0.1s ease;
    }

    /* Divider */
    .section-divider {
        display: block;
        margin: 4rem auto;
        width: 100%;
        max-width: 800px;
        height: auto;
        opacity: 0.7;
    }

    /* Responsive */
    @media (max-width: 600px) {
        .container {
            padding: 2rem 1rem;
        }

        h2 {
            font-size: 2rem;
        }

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

        .accordion-tabs {
            gap: 0.25rem;
        }

        .tab-item summary {
            padding: 0.6rem 1rem;
            font-size: 0.85rem;
        }
    }
}
