/* Surprise Attack - Webtoon Style Comic */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #fff;
    line-height: 1.6;
}

/* Comic Container - vertical scroll */
.comic-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

/* Header */
.comic-header {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
}

.comic-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.comic-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.comic-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 4px 40px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
}

.comic-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}

.comic-tagline {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    margin-bottom: 3rem;
}

.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-hint svg {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0.5rem auto 0;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Chapter Dividers */
.chapter-divider {
    padding: 4rem 2rem;
    text-align: center;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.chapter-number {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.5rem;
}

.chapter-name {
    font-family: 'Urbanist', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.chapter-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
}

/* Panels */
.panel {
    position: relative;
    width: 100%;
    background: #0a0a0a;
}

.panel img {
    width: 100%;
    height: auto;
    display: block;
}

/* Panel with text overlay */
.panel-with-text {
    position: relative;
}

.panel-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
}

.panel-text.top {
    top: 0;
    bottom: auto;
    padding: 2rem 2rem 3rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
}

/* Narration boxes */
.narration-box {
    background: rgba(0,0,0,0.85);
    border-left: 3px solid rgba(255,255,255,0.3);
    padding: 1rem 1.25rem;
    margin: 1rem 2rem;
    max-width: 500px;
}

.narration-box.right {
    margin-left: auto;
    border-left: none;
    border-right: 3px solid rgba(255,255,255,0.3);
}

.narration-box.center {
    margin: 1rem auto;
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.narration {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

.narration em {
    color: rgba(255,255,255,0.6);
}

.narration strong {
    color: #fff;
    font-weight: 600;
}

/* Speech bubbles */
.speech-bubble {
    position: relative;
    background: #fff;
    color: #111;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    margin: 1rem 2rem;
    max-width: 400px;
    font-size: 1rem;
    line-height: 1.5;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 2rem;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #fff transparent transparent;
}

.speech-bubble.right {
    margin-left: auto;
}

.speech-bubble.right::after {
    left: auto;
    right: 2rem;
}

.speech-bubble.villain {
    background: #1a1a1a;
    color: #ff6b6b;
    border: 1px solid #333;
}

.speech-bubble.villain::after {
    border-color: #1a1a1a transparent transparent;
}

.speaker {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(0,0,0,0.5);
    margin-bottom: 0.25rem;
}

.speech-bubble.villain .speaker {
    color: rgba(255,107,107,0.6);
}

/* Impact text */
.impact-text {
    text-align: center;
    padding: 3rem 2rem;
    background: #0a0a0a;
}

.impact-text p {
    font-family: 'Urbanist', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.impact-text p.small {
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255,255,255,0.6);
    margin-top: 0.5rem;
}

/* Black panels for dramatic moments */
.black-panel {
    background: #0a0a0a;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.black-panel .narration {
    max-width: 500px;
    margin: 0.5rem 0;
}

.black-panel .narration.large {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

/* End section */
.comic-end {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom, #0a0a0a, #111);
}

.end-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.end-text {
    color: rgba(255,255,255,0.6);
    margin-bottom: 2rem;
    font-style: italic;
}

.end-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.end-link {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.end-link:hover {
    background: rgba(255,255,255,0.2);
}

/* Back link */
.back-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.875rem;
    background: rgba(0,0,0,0.6);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    backdrop-filter: blur(8px);
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #fff;
}

/* Progress indicator */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #fff;
    z-index: 1000;
    transition: width 0.1s linear;
}

/* Responsive */
@media (max-width: 600px) {
    .comic-title {
        font-size: 2.5rem;
    }

    .chapter-name {
        font-size: 1.5rem;
    }

    .narration-box {
        margin: 1rem;
    }

    .speech-bubble {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .impact-text p {
        font-size: 1.5rem;
    }

    .black-panel .narration.large {
        font-size: 1.25rem;
    }
}

/* Spacers */
.spacer {
    height: 2rem;
    background: #0a0a0a;
}

.spacer.large {
    height: 4rem;
}
