/* Spooky Teaser Background */
.spooky-bg {
    background: radial-gradient(circle at center, #1a1a24 0%, #050508 100%) !important;
    position: relative;
    overflow: hidden;
}

.spooky-fog {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.15;
    animation: fog-drift 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.spooky-fog-layer2 {
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 1;
    animation: pulse-darkness 8s ease-in-out infinite;
}

@keyframes pulse-darkness {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes fog-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, 50px); }
}

/* Glowing Eyes */
.spooky-eyes {
    position: absolute;
    width: 60px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(255,50,50,0.8) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    filter: blur(2px);
}

.spooky-eyes::after {
    content: '';
    position: absolute;
    top: 5px; left: 10px; width: 8px; height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 20px 0 0 white;
}

.eye-1 { top: 20%; left: 10%; animation: blink-eye 8s infinite 2s; }
.eye-2 { top: 60%; right: 15%; animation: blink-eye 12s infinite 5s; transform: scale(0.8); }
.eye-3 { top: 40%; left: 80%; animation: blink-eye 10s infinite 1s; transform: scale(0.6); }
.eye-4 { top: 75%; left: 25%; animation: blink-eye 9s infinite 7s; transform: scale(0.9); }

@keyframes blink-eye {
    0%, 90% { opacity: 0; transform: translateY(0); }
    92% { opacity: 0.8; transform: translateY(-5px); }
    94% { opacity: 0; transform: translateY(0); }
    96% { opacity: 0.8; transform: translateY(-5px); }
    100% { opacity: 0; }
}

/* Goblin Fire */
.spooky-fire {
    position: absolute;
    width: 15px; height: 15px;
    background: #00E5FF;
    border-radius: 50%;
    box-shadow: 0 0 20px #00E5FF, 0 0 40px #00E5FF;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.fire-1 { bottom: 10%; left: 20%; animation: float-fire 6s infinite ease-in-out; }
.fire-2 { top: 30%; right: 10%; animation: float-fire 8s infinite ease-in-out 3s; background: #DAA520; box-shadow: 0 0 20px #DAA520, 0 0 40px #DAA520; }
.fire-3 { top: 50%; left: 5%; animation: float-fire 7s infinite ease-in-out 1s; }
.fire-4 { bottom: 25%; right: 25%; animation: float-fire 5s infinite ease-in-out 4s; background: #00E5FF; }
.fire-5 { top: 15%; left: 40%; animation: float-fire 9s infinite ease-in-out 2s; background: #DAA520; transform: scale(0.6); }

@keyframes float-fire {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    20% { opacity: 0.6; }
    50% { transform: translateY(-50px) scale(1.2); opacity: 0.8; }
    80% { opacity: 0; }
    100% { transform: translateY(-100px) scale(0.5); opacity: 0; }
}

/* Teaser Webtoon Header */
.teaser-webtoon-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px; /* Added top margin */
    position: relative;
    z-index: 2;
}

.giant-goblin {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%; /* Rounded edges */
    border: 3px solid rgba(218, 165, 32, 0.4);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.5), inset 0 0 20px rgba(0,0,0,0.8);
    animation: float-goblin 4s ease-in-out infinite;
}

@keyframes float-goblin {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 40px rgba(0, 229, 255, 0.5); }
    50% { transform: translateY(-20px); box-shadow: 0 0 60px rgba(218, 165, 32, 0.6); }
}

/* Sentence by Sentence Styling */
.teaser-dynamic-text-container {
    display: flex;
    flex-direction: column;
    gap: 200px; /* Increased to approx 3 line breaks for long webtoon scroll */
    padding: 0 20px 100px 20px;
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
}

.webtoon-sentence {
    font-family: 'Noto Serif KR', serif; /* Traditional, serious font */
    font-size: 19px;
    line-height: 1.9;
    color: var(--text-main);
    text-align: center;
    padding: 16px 10px;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 0;
    transform: translateY(50px); /* Slide up distance increased */
    transition: opacity 1.5s ease-out, transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother fade-in */
    word-break: keep-all;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.8); /* Added shadow to make text readable against background */
}

.webtoon-sentence.first-sentence {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-gold-light);
    border: none;
    background: transparent;
    box-shadow: none;
    text-shadow: 0 0 20px rgba(218, 165, 32, 0.5), 0 4px 12px rgba(0,0,0,0.8);
}

.webtoon-sentence.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Teaser Nav */
.teaser-nav {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}
