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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #131111 0%, #030407 50%, #1A1A1A 100%);
    background-attachment: fixed;
    color: #e8d4b8;
    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(12, 0, 139, 0.03) 2px, rgba(139, 0, 0, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(112, 11, 184, 0.02) 2px, rgba(184, 134, 11, 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(93, 0, 139, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(11, 28, 184, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(63, 96, 205, 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, #fefefe 0%, #c2bfb9 50%, #f3eaea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(47, 123, 222, 0.816);
    margin-bottom: 10px;
}

.game-title {
    font-size: 2em;
    background: linear-gradient(135deg, #d41b1b9c 0%, #9c1515 50%, #8a0b0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.brief-description {
    font-size: 1.25em;
    text-align: justify;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.12) 0%, rgba(58, 47, 42, 0.3) 100%);
    border-left: 5px solid;
    border-right: 5px solid;
    border-image: linear-gradient(to bottom, transparent, #8b0000, transparent) 1;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(139, 0, 0, 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: sepia(0.2) 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, 20, 20, 0.8); /* Fallback */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: inline-block; /* Helps with column breaking */
    width: 100%;
}

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

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

.bg-gradient-1 {
    background: linear-gradient(135deg, rgba(60, 10, 10, 0.8) 0%, rgba(20, 5, 5, 0.9) 100%);
    border-top: 2px solid rgba(139, 0, 0, 0.3);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, rgba(38, 30, 20, 0.85) 0%, rgba(20, 15, 10, 0.9) 100%);
    border-top: 2px solid rgba(184, 134, 11, 0.3);
}

.disaster-card {
    background: linear-gradient(135deg, rgba(50, 0, 0, 0.8) 0%, rgba(20, 0, 0, 0.9) 100%);
    border: 1px solid rgba(255, 0, 0, 0.1);
}

.redemption-card {
    background: linear-gradient(to bottom right, rgba(20, 25, 40, 0.9), rgba(10, 12, 20, 0.95));
    border-left: 4px solid #4a90e2;
}

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

/* Typography inside cards */
h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #ff4d4d, #b30000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 2px solid rgba(139, 0, 0, 0.3);
    padding-bottom: 8px;
}

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

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

.card b {
    color: #e5bd58;
    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: #e5bd58;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.note {
    font-size: 0.85em;
    font-style: italic;
    color: #888;
    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);
}

.gallery img:hover {
    opacity: 1;
    transform: scale(1.05);
    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;
    }
}