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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #0a0a12 0%, #0d1018 50%, #141420 100%);
    background-attachment: fixed;
    color: #c4ccd8;
    line-height: 1.6;
    position: relative;
    padding-bottom: 50px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(30, 60, 90, 0.03) 2px, rgba(30, 60, 90, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(100, 120, 150, 0.02) 2px, rgba(100, 120, 150, 0.02) 4px);
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(40, 80, 120, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(20, 40, 80, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(60, 80, 100, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* --- Intro Section --- */
.intro-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.intro-text {
    flex: 1;
}

.main-character-title {
    font-size: 3.5em;
    background: linear-gradient(135deg, #e8eef5 0%, #a8b8c8 50%, #d0dae5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(100, 150, 200, 0.5);
    margin-bottom: 10px;
}

.game-title {
    font-size: 2em;
    background: linear-gradient(135deg, #4a7ab0 0%, #2d5a8a 50%, #1e4060 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.character-name {
    font-size: 2.5em;
    background: linear-gradient(135deg, #ffffff 0%, #c0c8d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 12px 0;
}

.tag-line {
    font-size: 1.1em;
    font-style: italic;
    color: #6a9fd4;
    margin: 20px 0;
    letter-spacing: 2px;
}

.brief-description {
    font-size: 1.25em;
    text-align: justify;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(40, 60, 100, 0.12) 0%, rgba(30, 40, 60, 0.3) 100%);
    border-left: 5px solid;
    border-right: 5px solid;
    border-image: linear-gradient(to bottom, transparent, #4a7ab0, transparent) 1;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(40, 80, 140, 0.2);
}

.intro-image-card {
    flex: 0 0 400px;
    position: relative;
}

.intro-image-card img {
    width: 100%;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
    filter: grayscale(0.3) contrast(1.1);
}

/* --- Masonry Grid (Pinterest Style) --- */
.masonry-grid {
    column-count: 3;
    column-gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.card {
    break-inside: avoid;
    margin-bottom: 25px;
    padding: 25px;
    border-radius: 15px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(20, 25, 35, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: inline-block;
    width: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    z-index: 3;
}

/* Card Variants - Noir Blue Theme */
.bg-dark {
    background: linear-gradient(135deg, rgba(25, 30, 45, 0.9) 0%, rgba(10, 15, 25, 0.95) 100%);
}

.bg-gradient-1 {
    background: linear-gradient(135deg, rgba(30, 50, 80, 0.8) 0%, rgba(15, 25, 45, 0.9) 100%);
    border-top: 2px solid rgba(74, 122, 176, 0.3);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, rgba(50, 40, 60, 0.85) 0%, rgba(25, 20, 35, 0.9) 100%);
    border-top: 2px solid rgba(150, 100, 180, 0.3);
}

.disaster-card {
    background: linear-gradient(135deg, rgba(60, 20, 30, 0.8) 0%, rgba(30, 10, 15, 0.9) 100%);
    border: 1px solid rgba(180, 50, 70, 0.2);
}

.redemption-card {
    background: linear-gradient(to bottom right, rgba(20, 30, 50, 0.9), rgba(10, 15, 30, 0.95));
    border-left: 4px solid #5a8ac4;
}

.summary-card {
    background: linear-gradient(135deg, rgba(74, 122, 176, 0.2) 0%, rgba(0,0,0,0.9) 100%);
    border: 1px solid rgba(74, 122, 176, 0.2);
    text-align: center;
}

/* Typography inside cards */
h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #6a9fd4, #3a6fa4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 2px solid rgba(74, 122, 176, 0.3);
    padding-bottom: 8px;
}

h4 {
    font-size: 1.3em;
    margin-bottom: 12px;
    color: #8ab4e0;
}

.card p {
    margin-bottom: 15px;
    text-align: left;
    font-size: 1em;
    color: #b0b8c4;
}

.card b {
    color: #8ab4e0;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.card ul {
    margin-left: 10px;
    list-style: none;
}

.card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.card ul li::before {
    content: "•";
    color: #6a9fd4;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.note {
    font-size: 0.85em;
    font-style: italic;
    color: #707888;
    display: block;
    margin-top: 10px;
}

/* --- Gallery --- */
.gallery {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    border: 2px solid rgba(255,255,255,0.05);
    filter: grayscale(0.2);
}

.gallery img:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: grayscale(0);
    z-index: 2;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
    .intro-container {
        flex-direction: column;
        text-align: center;
    }
    .intro-text, .intro-image-card {
        flex: auto;
        width: 100%;
        margin: 0;
    }
    .intro-image-card img {
        max-width: 500px;
    }
}

@media (max-width: 650px) {
    .masonry-grid {
        column-count: 1;
    }
    .main-character-title {
        font-size: 2.5em;
    }
}
