@font-face {
    font-family: 'YES24';
    src: url('YES24.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Color Palette */
    --royal-purple: #2d0e4d;
    --deep-purple: #1a0b2e;
    --champagne-gold: #e0c068;
    --soft-gold: #c5a044;
    --pale-cream: #fdfaf5;
    --text-dark: #2d0e4d;
    --text-white: #ffffff;
    --glass-bg: rgba(26, 11, 46, 0.75);
    
    /* Effects */
    --border-gold: 1px solid var(--champagne-gold);
    --shadow-gold: 0 4px 20px rgba(224, 192, 104, 0.2);
    --transition-elegant: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'YES24', sans-serif;
    background-color: var(--pale-cream);
    background-image: 
        linear-gradient(rgba(253, 250, 245, 0.7), rgba(253, 250, 245, 0.7)),
        url('villainess_lux_bg.png');
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Header Styling */
.main-header {
    background: white;
    border-bottom: 2px solid var(--champagne-gold);
    position: relative;
    z-index: 100;
}

/* Remove Header Top & Auth Box */
.header-top, .auth-box {
    display: none;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
}

.logo-container {
    text-align: center;
    padding: 0 3rem;
}

.logo-sub {
    font-family: 'Hahmlet', serif;
    font-size: 1.4rem;
    color: var(--soft-gold);
    letter-spacing: 2px;
    font-weight: 500;
    display: block;
    margin-top: 5px;
}

.logo-main {
    font-family: 'Hahmlet', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--royal-purple);
    margin: 0.2rem 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.logo-flourish {
    height: 15px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" fill="none" stroke="%23e0c068" stroke-width="0.5"><path d="M0 10 Q 25 20 50 10 T 100 10" /></svg>') center no-repeat;
}

.decorative-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--champagne-gold), transparent);
}

.sub-nav {
    display: flex;
    justify-content: center;
    border-top: 1px solid #efefef;
    padding: 0.8rem 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links li a.active {
    color: var(--soft-gold);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--soft-gold);
    transition: var(--transition-elegant);
}

.nav-links li a:hover::after, .nav-links li a.active::after {
    width: 100%;
}

/* Luxury UI Section Layout */
.luxury-ui-section {
    padding: 5rem 0;
    background: #fdfaf5; /* pale-cream */
    position: relative;
}

.layout-container-wide {
    width: 100%;
    max-width: 1200px; /* Aligned with other containers */
    margin: 0 auto;
    padding: 0 1.5rem;
}

.luxury-grid {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    flex-wrap: wrap; /* Prevent breaking on smaller widths */
}

/* Base UI Frame Box */
.ui-frame-box {
    background: white;
    border: 1px solid #c5a044; /* soft-gold */
    position: relative;
    padding: 1.5rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.ui-frame-box::before, .ui-frame-box::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1.5px solid #c5a044;
}

.ui-frame-box::before { top: 3px; left: 3px; border-right: none; border-bottom: none; }
.ui-frame-box::after { bottom: 3px; right: 3px; border-left: none; border-top: none; }

/* Placeholder Styles (Game Blueprint Style) */
.placeholder-content {
    border: 1px dashed #c5a044;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background: rgba(197, 160, 68, 0.03);
    color: #c5a044;
}

.placeholder-content p {
    font-size: 0.9rem;
    font-weight: 600;
}

.placeholder-content .sub {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.3rem;
    text-transform: uppercase;
}

.placeholder-content.large {
    min-height: 400px;
}

/* Column 1: Sidebar */
.ui-column-sidebar {
    width: 300px; /* Slightly reduced */
    flex-shrink: 0;
}

.sidebar-content {
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ui-title {
    font-family: 'Hahmlet', serif;
    font-size: 1.3rem;
    color: #2d0e4d;
    line-height: 1.3;
}

.ui-subtitle {
    font-size: 0.8rem;
    color: #c5a044;
    margin-top: 0.5rem;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #c5a044, transparent);
    margin: 0.5rem 0;
}

.ui-section-title {
    font-family: 'Hahmlet', serif;
    font-size: 1rem;
    color: #2d0e4d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ui-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #efefef;
}

.ui-section-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.mini-char-grid {
    display: flex;
    gap: 0.8rem;
}

.mini-char {
    text-align: center;
}

.mini-frame {
    width: 60px;
    height: 80px;
    border: 1px solid #c5a044;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.mini-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-char p {
    font-size: 0.75rem;
    color: #2d0e4d;
}

.media-thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.media-thumb-grid img {
    width: 100%;
    height: 45px;
    object-fit: cover;
    border: 1px solid #efefef;
}

.platform-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.p-logo {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: #f5f5f5;
    color: #888;
    font-weight: 600;
}

.sidebar-action-btns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Character Card Specifics */
.char-detail-card {
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.char-portrait-small {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #c5a044;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.char-portrait-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.char-id-tag {
    text-align: center;
}

.char-id-tag p {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d0e4d;
}

.char-id-tag .sub {
    font-size: 0.6rem;
    color: #c5a044;
    margin-top: 0.2rem;
}

.mini-char-card-fixed {
    height: 180px;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
}

.mini-char-card-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.3) brightness(0.9);
    transition: 0.3s;
}

.mini-char-card-fixed:hover img {
    filter: none;
    transform: scale(1.05);
}

.mini-char-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.4rem;
    background: rgba(45, 14, 77, 0.8);
    color: #e0c068;
    font-size: 0.75rem;
    text-align: center;
    font-family: 'Hahmlet', serif;
}

/* Spotlight Specifics */
.spotlight-estelle {
    flex: 1;
    padding: 0;
    overflow: hidden;
    border: 3px double #c5a044;
}

.spotlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.spotlight-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    text-align: center;
}

.spotlight-overlay-text p {
    font-family: 'Hahmlet', serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.spotlight-overlay-text .sub {
    font-size: 0.75rem;
    color: #e0c068;
    margin-top: 0.3rem;
}

/* Main Column Layout Restored */
.ui-column-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-top-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.char-intro-text {
    font-size: 0.95rem;
    color: #2d0e4d;
    line-height: 1.6;
}

.char-sub-info {
    margin-top: 1rem;
    color: #c5a044;
}

.group-art-frame {
    height: 480px;
    padding: 0.5rem;
}

.art-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #efefef;
}

.group-illustration {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.main-bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Column 3: Spotlight */
.ui-column-spotlight {
    width: 300px; /* Slightly reduced */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spotlight-frame {
    flex: 1;
}

.spotlight-title-area {
    padding: 2.5rem 1.5rem;
    text-align: center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.5)), url('villainess_lux_bg.png');
    background-size: cover;
    background-position: center;
    border: 1px solid #c5a044;
    position: relative;
    box-shadow: inset 0 0 50px rgba(197, 160, 68, 0.1);
}

.spotlight-logo {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.spotlight-logo .logo-sub {
    font-family: 'Hahmlet', serif;
    font-size: 1.1rem;
    color: #c5a044;
    letter-spacing: 2px;
    font-weight: 500;
}

.spotlight-logo .logo-main {
    font-size: 1.8rem;
    color: #2d0e4d;
    font-family: 'Hahmlet', serif;
}

.spotlight-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.spotlight-btns {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* UI Buttons */
.ui-btn-gold {
    background: #e0c068;
    color: #2d0e4d;
    border: none;
    padding: 0.8rem;
    font-family: 'Hahmlet', serif;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.ui-btn-transparent {
    background: transparent;
    color: #c5a044;
    border: 1px solid #c5a044;
    padding: 0.8rem;
    font-family: 'Hahmlet', serif;
    cursor: pointer;
}

.ui-btn-purple {
    background: #2d0e4d;
    color: #e0c068;
    border: none;
    padding: 1rem;
    font-family: 'Hahmlet', serif;
    font-weight: 600;
    cursor: pointer;
}

.ui-btn-transparent-dark {
    background: transparent;
    color: #2d0e4d;
    border: 1px solid #2d0e4d;
    padding: 1rem;
    font-family: 'Hahmlet', serif;
    cursor: pointer;
}

.ui-btn-gold:hover, .ui-btn-purple:hover {
    filter: brightness(1.1);
}

.shadow-overlay {
    position: relative;
}

.shadow-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.1);
    pointer-events: none;
}

/* Restored Section Styles */
.intro-section {
    padding: 8rem 0;
    background: white;
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.platform-grid-alt {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.platform-badge {
    padding: 0.6rem 2rem;
    border: 1.5px solid var(--champagne-gold);
    color: var(--royal-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.platform-badge:hover {
    background: var(--champagne-gold);
    color: white;
}

.world-section {
    padding: 8rem 0;
    background: var(--royal-purple);
    color: white;
}

.world-section .section-title-alt {
    color: var(--champagne-gold);
}

.world-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.world-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(224, 192, 104, 0.2);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    transition: 0.4s var(--transition-elegant);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.world-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--champagne-gold);
    transform: translateY(-10px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.world-card h3 {
    font-family: 'Hahmlet', serif;
    font-size: 1.4rem;
    color: var(--champagne-gold);
    margin-bottom: 1.2rem;
}

.world-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #cecece;
}

.identity-choice-mini {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    font-family: 'Hahmlet', serif;
}

.identity-choice-mini span {
    padding: 0.4rem 0.8rem;
    background: rgba(224, 192, 104, 0.1);
    border: 1px solid rgba(224, 192, 104, 0.3);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--champagne-gold);
}

.gallery-section {
    padding: 8rem 0;
    background: white;
}

/* Gallery Tabs */
.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(224, 192, 104, 0.4);
    color: var(--royal-purple);
    font-family: 'Hahmlet', serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 20px;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--champagne-gold);
    color: var(--royal-purple);
    border-color: var(--champagne-gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(224, 192, 104, 0.3);
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s var(--transition-elegant);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(26, 11, 46, 0.9));
    color: white;
    transform: translateY(100%);
    transition: 0.3s;
    text-align: center;
}

.gallery-info p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--champagne-gold);
    margin-bottom: 0.2rem;
}

.gallery-info span {
    font-size: 0.7rem;
    opacity: 0.8;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

/* Mobile Responsiveness for Luxury Grid */
@media (max-width: 1100px) {
    .ui-column-sidebar, .ui-column-spotlight {
        width: 100%;
        flex-shrink: 1;
    }
    .luxury-grid {
        flex-direction: column;
    }
    .main-top-row {
        grid-template-columns: 1fr;
    }
}

/* Original Story Section Styling */
.original-story-section {
    padding: 10rem 0;
    background: #0f051a; /* Even darker than royal-purple */
    color: white;
    position: relative;
    overflow: hidden;
}

.original-story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(45, 14, 77, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

/* Visual Novel Prologue System */
.vn-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.vn-container.active {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 1;
    transform: scale(1);
}

.vn-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: background 1s ease-in-out;
    filter: blur(4px); /* Add blur to hide low resolution */
    transform: scale(1.05); /* Prevent blur edges from showing */
}

.vn-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.4) 100%);
}

.vn-character-area {
    position: relative;
    width: 100%;
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    padding-bottom: 2rem;
}

.vn-char {
    height: 85%;
    object-fit: contain;
    transition: opacity 0.5s ease, transform 0.5s var(--transition-elegant), filter 0.3s ease;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    opacity: 0;
    transform: translateY(20px);
    mix-blend-mode: normal; /* Back to normal as per user request */
    position: absolute;
    bottom: 0;
}

.vn-char.entering {
    opacity: 1;
    transform: translateY(0) scale(1.0);
}

.vn-char.focused {
    opacity: 1;
    filter: drop-shadow(0 0 30px rgba(224, 192, 104, 0.5)) contrast(1.1);
    transform: translateY(0) scale(1.15); /* Enlarge focused character more */
    z-index: 10;
}

.vn-char.unfocused {
    opacity: 1;
    filter: brightness(0.4) grayscale(0.8) blur(1px); /* Darker and grayed out */
    transform: translateY(10px) scale(0.95);
    z-index: 5;
}

.vn-char.exiting {
    opacity: 0;
    transform: translateY(20px);
}

#vn-char-left {
    left: 18%; /* Closer to center */
}

#vn-char-right {
    right: 18%; /* Closer to center */
}

.vn-dialogue-box {
    position: relative;
    width: 90%;
    max-width: 1000px;
    min-height: 200px;
    height: auto;
    margin: 0 auto 40px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid var(--champagne-gold);
    border-radius: 8px;
    padding: 30px 40px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 100; /* Ensure dialogue box is in front of characters */
}

.vn-name-tag {
    position: absolute;
    top: -20px;
    left: 40px;
    background: var(--royal-purple);
    color: var(--champagne-gold);
    padding: 8px 30px;
    font-family: 'Hahmlet', serif;
    font-weight: 700;
    font-size: 1.2rem; /* Increased slightly */
    border: 1px solid var(--champagne-gold);
    border-radius: 4px;
}

.vn-text-content {
    font-family: 'Jua', sans-serif;
    font-size: 1.55rem; /* Increased size (+1px approx) */
    line-height: 1.6;
    margin-top: 2px; /* Moved down slightly */
    color: #f0f0f0;
    word-break: keep-all;
}

.vn-click-hint {
    position: absolute;
    bottom: 15px;
    right: 25px;
    font-size: 0.8rem;
    color: var(--champagne-gold);
    opacity: 0.6;
    animation: pulse 2s infinite;
}

.vn-skip-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    z-index: 10000;
}

.vn-skip-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

@media (max-width: 768px) {
    .vn-dialogue-box {
        width: 95%;
        height: 180px;
        padding: 25px;
    }
    .vn-char {
        height: 60%;
    }
    .vn-text-content {
        font-size: 1.1rem;
    }
}

.original-header {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    z-index: 2;
}

.original-tag {
    font-size: 0.8rem;
    color: var(--champagne-gold);
    letter-spacing: 4px;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.original-subtitle {
    font-size: 1.2rem;
    color: #cecece;
    margin-top: 1rem;
    font-family: 'Maru Buri', serif;
}

/* Timeline UI */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--champagne-gold), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 4rem;
    padding: 0 3rem;
    z-index: 2;
}

.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(224, 192, 104, 0.2);
    padding: 2.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: 0.4s var(--transition-elegant);
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--champagne-gold);
    transform: translateY(-5px);
}

.phase-badge {
    font-family: 'Hahmlet', serif;
    color: var(--champagne-gold);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.timeline-content h3 {
    font-family: 'Hahmlet', serif;
    font-size: 1.6rem;
    color: white;
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #cecece;
    margin-bottom: 1.5rem;
}

.event-list {
    list-style: none;
    font-size: 0.9rem;
    color: var(--champagne-gold);
    opacity: 0.9;
}

.event-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-item.left .event-list li { justify-content: flex-end; }
.timeline-item.right .event-list li { justify-content: flex-start; }

.event-list li::before {
    content: '•';
    color: var(--champagne-gold);
}

/* Fate Box */
.fate-box {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fate-estelle, .fate-lyria {
    text-align: center;
}

.fate-estelle strong, .fate-lyria strong {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.4rem;
}

.fate-estelle span { color: #ff4d4d; font-weight: 700; }
.fate-lyria span { color: #4dff4d; font-weight: 700; }

.fate-vs {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    color: var(--champagne-gold);
}

.original-footer-msg {
    text-align: center;
    margin-top: 6rem;
    font-family: 'Hahmlet', serif;
    font-size: 1.4rem;
    color: var(--champagne-gold);
    text-shadow: 0 0 10px rgba(224, 192, 104, 0.3);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-line { left: 20px; }
    .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 50px; padding-right: 0; }
    .timeline-item.left .event-list li { justify-content: flex-start; }
    .fate-box { flex-direction: column; }
}

/* Visibility for reveal sections */
.scroll-reveal, .animate-fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    animation: none !important; /* Disable unreliable animations */
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -10%; /* Room to move down */
    left: 0;
    width: 100%;
    height: 120%; /* Taller for parallax */
    background-size: cover;
    background-position: center top; 
    z-index: 1;
    filter: brightness(0.9);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(253, 250, 245, 0.6) 0%, 
        transparent 50%, 
        rgba(253, 250, 245, 0.6) 100%);
    z-index: 2;
}

.layout-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Center Content */
.hero-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-title {
    font-family: 'Hahmlet', serif;
    font-size: 4.5rem;
    color: var(--text-white);
    line-height: 1.2;
    /* 3px Outline using text-shadow stack (behind the text) */
    text-shadow: 
        -3px -3px 0 #000,  
         3px -3px 0 #000,
        -3px  3px 0 #000,
         3px  3px 0 #000,
         0px -3px 0 #000,
         0px  3px 0 #000,
        -3px  0px 0 #000,
         3px  0px 0 #000;
    margin-bottom: 2rem;
}

.hero-title .highlight {
    color: var(--champagne-gold);
    border-bottom: 3px solid var(--champagne-gold);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-white);
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 600;
    /* 1.5px Outline using text-shadow stack */
    text-shadow: 
        -1.5px -1.5px 0 #000,  
         1.5px -1.5px 0 #000,
        -1.5px  1.5px 0 #000,
         1.5px  1.5px 0 #000;
}

.hero-action-btns {
    margin-top: 4rem;
    display: flex;
    gap: 2rem;
}

.btn-hero {
    padding: 1.2rem 4rem;
    font-family: 'Hahmlet', serif;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-elegant);
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--champagne-gold);
}

.btn-hero.main {
    background: var(--royal-purple);
    color: var(--champagne-gold);
}

.btn-hero.sub {
    background: rgba(26, 11, 46, 0.4);
    color: var(--text-white);
}

.btn-hero:hover {
    background: var(--champagne-gold);
    color: var(--royal-purple);
    box-shadow: 0 0 30px rgba(224, 192, 104, 0.4);
    transform: scale(1.05);
}

/* Footer */
.minimal-footer {
    background: var(--deep-purple);
    color: #888;
    padding: 2rem 5rem;
    border-top: 1px solid var(--champagne-gold);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Animations */
@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-in-left {
    animation: slideInLeft 1s var(--transition-elegant) forwards;
}

.animate-fade-in {
    animation: fadeIn 1.2s var(--transition-elegant) 0.3s forwards;
    opacity: 0;
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .layout-container {
        flex-direction: column;
        padding: 5rem 2rem;
        height: auto;
    }
    .info-sidebar {
        width: 100%;
        margin-bottom: 5rem;
    }
    .hero-main-content {
        padding-left: 0;
    }
    .hero-title {
        font-size: 3rem;
    }
}

/* Image Modal / Lightbox */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 5, 20, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 2px solid var(--champagne-gold);
    box-shadow: 0 0 50px rgba(224, 192, 104, 0.3);
    transform: scale(0.9);
    transition: 0.3s var(--transition-elegant);
}

.image-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--champagne-gold);
    font-size: 2rem;
    cursor: pointer;
}

/* Global clickable image style */
img {
    cursor: pointer;
}
/* Music Control Button */
.music-control {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    background: rgba(45, 14, 77, 0.85); /* royal-purple opacity */
    border: 1px solid var(--champagne-gold);
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s var(--transition-elegant);
}

.music-control:hover {
    transform: scale(1.05);
    background: var(--royal-purple);
    box-shadow: 0 6px 20px rgba(224, 192, 104, 0.2);
}

.music-icon {
    width: 24px;
    height: 24px;
    color: var(--champagne-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-control.playing .music-icon {
    animation: music-pulse 1.5s infinite;
}

.music-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--champagne-gold);
    letter-spacing: 1px;
    font-family: 'Hahmlet', serif;
}

@keyframes music-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .music-control {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.5rem 1rem;
    }
}
/* OST Gallery Styles */
.ost-gallery-container {
    padding: 2rem 0;
}

.ost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.ost-card {
    background: white;
    border: 1px solid var(--champagne-gold);
    padding: 1rem;
    transition: var(--transition-elegant);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.ost-card::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px solid rgba(224, 192, 104, 0.2);
    pointer-events: none;
}

.ost-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
    border: 1px solid #efefef;
}

.ost-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.ost-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: rgba(45, 14, 77, 0.85);
    border: 2px solid var(--champagne-gold);
    border-radius: 50%;
    opacity: 0;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ost-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--champagne-gold);
    margin-left: 5px;
}

.ost-card:hover {
    transform: translateY(-5px);
    border-color: var(--royal-purple);
    box-shadow: 0 10px 30px rgba(45, 14, 77, 0.1);
}

.ost-card:hover .ost-thumb img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.ost-card:hover .ost-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.ost-info {
    text-align: center;
}

.ost-info h3 {
    font-family: 'Hahmlet', serif;
    font-size: 1.1rem;
    color: var(--royal-purple);
    margin-bottom: 0.4rem;
}

.ost-info p {
    font-size: 0.85rem;
    color: var(--soft-gold);
    font-style: italic;
}

/* Playing State for OST Card */
.ost-card.playing {
    border-color: var(--royal-purple);
    background: #fdfaf5;
    animation: gold-glow-pulse 2s infinite;
}

.ost-card.playing .ost-play-btn {
    opacity: 1;
    background: var(--royal-purple);
}

.ost-card.playing .ost-play-btn::after {
    border: none;
    width: 15px;
    height: 15px;
    background: var(--champagne-gold);
    margin-left: 0;
}

@keyframes gold-glow-pulse {
    0% { box-shadow: 0 0 5px rgba(224, 192, 104, 0.5); }
    50% { box-shadow: 0 0 25px rgba(224, 192, 104, 0.8); }
    100% { box-shadow: 0 0 5px rgba(224, 192, 104, 0.5); }
}

/* Character Theme UI Styles (Cleanup or Keep as reference) */
.active-theme {
    animation: pulse-gold 2s infinite;
}
