/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kalam', 'Noto Sans JP', cursive;
    background: linear-gradient(135deg, #fff8dc 0%, #f0f8ff 100%);
    color: #000;
    overflow-x: hidden;
    line-height: 1.4;
}

/* Manga Container */
.manga-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #fef9e7 50%, #fff5f5 100%);
    box-shadow: 0 0 30px rgba(255,182,193,0.3);
    border: 2px solid #ff69b4;
    border-radius: 20px;
}

/* Sound Effects Background */
.sound-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sound-effect {
    position: absolute;
    font-family: 'Bangers', cursive;
    font-size: 24px;
    color: #ddd;
    opacity: 0.3;
    transform: rotate(-15deg);
    user-select: none;
}

.sound-effect.quack {
    top: 15%;
    right: 10%;
    font-size: 32px;
    color: #ffa500;
}

.sound-effect.bonk {
    top: 45%;
    left: 5%;
    font-size: 28px;
    color: #ff6b6b;
}

.sound-effect.pop {
    bottom: 30%;
    right: 15%;
    font-size: 26px;
    color: #4ecdc4;
}

.sound-effect.whoosh {
    bottom: 15%;
    left: 8%;
    font-size: 30px;
    color: #95e1d3;
}

.sound-effect.baka {
    top: 25%;
    left: 15%;
    font-size: 28px;
    color: #ff1493;
    font-family: 'Noto Sans JP', sans-serif;
}

.sound-effect.kawaii {
    bottom: 45%;
    right: 25%;
    font-size: 24px;
    color: #ff69b4;
    font-family: 'Noto Sans JP', sans-serif;
}

.sound-effect.japanese {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

/* Manga Panels */
.manga-panel {
    margin: 30px 0;
    position: relative;
    z-index: 2;
}

.panel-border {
    border: 4px solid #000;
    border-radius: 15px;
    background: #fff;
    padding: 30px;
    box-shadow: 5px 5px 0px #000;
    position: relative;
}

/* Title Panel */
.title-panel .panel-border {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    text-align: center;
    padding: 40px 30px;
}

.logo-section {
    margin-bottom: 20px;
}

.logo-img {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(3px 3px 0px #000);
}

.manga-title {
    font-family: 'Bangers', cursive;
    font-size: 3.5rem;
    color: #000;
    text-shadow: 3px 3px 0px #ff69b4, 6px 6px 0px #ffa500;
    margin: 10px 0;
    transform: rotate(-2deg);
    background: linear-gradient(45deg, #ff69b4, #ffa500, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ticker {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: #ff6b6b;
    background: #fff;
    border: 3px solid #000;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    transform: rotate(1deg);
    box-shadow: 3px 3px 0px #000;
}

.banner-img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border: 3px solid #000;
    border-radius: 10px;
    box-shadow: 5px 5px 0px #000;
}

/* Story Panel */
.story-panel .panel-border {
    background: #fff;
    position: relative;
}

.speech-bubble {
    background: #fff;
    border: 3px solid #000;
    border-radius: 20px;
    padding: 15px 25px;
    position: relative;
    display: inline-block;
    box-shadow: 3px 3px 0px #000;
    margin-bottom: 25px;
}

.speech-bubble:before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #000;
}

.speech-bubble:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 32px;
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 13px solid #fff;
}

.main-bubble {
    transform: rotate(-1deg);
    background: #fffacd;
}

.japanese-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #ff1493;
    margin-bottom: 5px;
    text-shadow: 2px 2px 0px #fff;
}

.english-text {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: center;
}

.story-images, .story-images-bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.story-img {
    max-width: 100%;
    height: auto;
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 3px 3px 0px #000;
    transform: rotate(1deg);
}

.story-img:nth-child(even) {
    transform: rotate(-1deg);
}

.story-text {
    text-align: center;
    padding: 20px;
}

.story-line {
    font-size: 1.3rem;
    margin: 8px 0;
    color: #000;
    font-weight: 500;
}

.story-tagline {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-top: 15px;
    transform: rotate(-1deg);
}

/* Community Panel */
.community-panel .panel-border {
    background: linear-gradient(135deg, #fff 0%, #f0f8ff 100%);
    text-align: center;
}

.community-bubble {
    background: linear-gradient(45deg, #ff69b4, #ffa500);
    color: #000;
    font-size: 1.5rem;
    font-weight: bold;
    transform: rotate(1deg);
    margin: 0 auto 30px;
    border: 3px solid #ff1493;
}

.japanese-main {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.bubble-text-sub {
    font-size: 1.2rem;
    font-style: italic;
    color: #333;
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.manga-link {
    text-decoration: none;
    color: #000;
    background: #fff;
    border: 3px solid #000;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 5px 5px 0px #000;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.manga-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #000;
}

.twitter-link:hover {
    background: #1da1f2;
    color: #fff;
}

.telegram-link:hover {
    background: #0088cc;
    color: #fff;
}

.link-effect {
    font-family: 'Bangers', cursive;
    font-size: 1.1rem;
    display: block;
    color: #ff6b6b;
    margin-bottom: 5px;
}

.link-text {
    font-size: 1.2rem;
    font-weight: bold;
}

.tagline-section {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border: 2px dashed #000;
    border-radius: 10px;
    transform: rotate(-0.5deg);
}

.tagline {
    font-size: 1.3rem;
    font-style: italic;
    color: #333;
    margin-bottom: 10px;
}

.japanese-tagline {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff1493;
    font-style: normal;
    margin-bottom: 8px;
    text-shadow: 1px 1px 0px #fff;
}

.japanese-origin {
    font-family: 'Noto Sans JP', sans-serif;
    color: #ff69b4;
    font-weight: 700;
    font-size: 1.2rem;
}

.tagline-sub {
    font-size: 1.1rem;
    color: #666;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .manga-container {
        padding: 15px;
    }
    
    .manga-title {
        font-size: 2.5rem;
    }
    
    .ticker {
        font-size: 1.4rem;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .story-images, .story-images-bottom {
        flex-direction: row;
        justify-content: center;
    }
    
    .community-links {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .manga-link {
        width: 200px;
    }
    
    .sound-effect {
        font-size: 18px;
    }
    
    .sound-effect.quack {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .panel-border {
        padding: 20px;
    }
    
    .manga-title {
        font-size: 2rem;
    }
    
    .ticker {
        font-size: 1.2rem;
    }
    
    .story-line {
        font-size: 1.1rem;
    }
    
    .story-tagline {
        font-size: 1.3rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
}
