/* ===== CSS Variables & Base ===== */
:root {
    --color-bg: #0a0e1a;
    --color-bg-alt: #111827;
    --color-bg-card: #1a2035;
    --color-bg-card-hover: #222b45;
    --color-primary: #ff6b35;
    --color-primary-light: #ff8c5a;
    --color-primary-dark: #e55a25;
    --color-accent: #ffd166;
    --color-accent2: #06d6a0;
    --color-text: #e8e6e3;
    --color-text-muted: #9ca3af;
    --color-text-dim: #6b7280;
    --color-border: #2d3548;
    --color-white: #ffffff;
    --font-display: 'Fredoka', 'Nunito', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --font-pixel: 'Silkscreen', monospace;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--color-white); }
.logo-icon { font-size: 1.6rem; color: var(--color-primary); }
.logo-accent { color: var(--color-primary); }
.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-links a {
    padding: 8px 16px; border-radius: 8px; color: var(--color-text-muted);
    font-weight: 600; font-size: 0.9rem; transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--color-white); background: rgba(255,107,53,0.15); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; transition: var(--transition); }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 75vh; display: flex; align-items: center;
    padding: 90px 24px 50px;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1030 30%, #2d1b4e 60%, #1a1030 100%);
    overflow: hidden;
}
.hero .hero-bg-img {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%; object-fit: cover;
    z-index: 0;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10,14,26,0.30) 0%, rgba(26,16,48,0.25) 40%, rgba(45,27,78,0.22) 70%, rgba(10,14,26,0.30) 100%),
                radial-gradient(ellipse at 20% 50%, rgba(255,107,53,0.06) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 25%, rgba(255,209,102,0.04) 0%, transparent 50%);
    pointer-events: none; z-index: 1;
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700; line-height: 1.1; margin-bottom: 20px; color: var(--color-white);
    text-shadow: 0 3px 18px rgba(0,0,0,0.7), 0 1px 6px rgba(0,0,0,0.5);
}
.hero-subtitle { 
    font-size: 1.15rem; color: #ffffff !important; max-width: 600px; margin: 0 auto 32px; line-height: 1.85;
    text-shadow: 0 2px 12px rgba(0,0,0,0.75), 0 1px 5px rgba(0,0,0,0.5);
    font-weight: 500; letter-spacing: 0.02em;
}
.hero-badge {
    display: inline-block; padding: 7px 22px; border-radius: 50px;
    background: rgba(10,14,26,0.60); border: 1.5px solid rgba(255,209,102,0.5);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: #ffd166 !important; font-family: var(--font-pixel); font-size: 0.78rem;
    letter-spacing: 1.5px; margin-bottom: 24px; font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}
.stat-num { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: #ffd166 !important; text-shadow: 0 2px 16px rgba(0,0,0,0.7), 0 0 20px rgba(255,209,102,0.25); }
.stat-label { font-size: 0.82rem; color: #ffffff !important; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 1px 8px rgba(0,0,0,0.55); font-weight: 700; opacity: 0.92; }
.hero::after {
    content: '♪ ♫ ♬ ♩ ♪ ♫ ♬ ♩'; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); font-size: 15rem; opacity: 0.02;
    white-space: nowrap; pointer-events: none; color: var(--color-primary);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; text-align: center; }
.title-accent {
    background: none !important;
    -webkit-text-fill-color: #ffd166 !important;
    color: #ffd166 !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    text-shadow: 0 3px 20px rgba(0,0,0,0.8), 0 2px 10px rgba(255,180,0,0.4), 0 0 40px rgba(255,209,102,0.25);
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; }

/* ===== Scroll Down Indicator ===== */
.scroll-indicator {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; color: #ffd166 !important;
    text-decoration: none; transition: all 0.3s ease; z-index: 10;
}
.scroll-arrow { font-size: 1.4rem; animation: scrollBounce 2s ease-in-out infinite; line-height: 1; }
.scroll-text { font-size: 0.7rem; font-family: var(--font-pixel); text-transform: uppercase; letter-spacing: 2px; opacity: 0.9; }
.scroll-indicator:hover { color: #ffffff !important; }
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ===== Search Box (Navbar) ===== */
.search-box {
    position: relative; margin-left: 14px;
}
.search-box input {
    width: 180px; padding: 6px 36px 6px 14px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px; color: var(--color-text-muted);
    font-family: var(--font-body); font-size: 0.82rem;
    transition: all var(--transition); outline: none;
}
.search-box input:focus {
    width: 240px; border-color: var(--color-primary);
    background: rgba(255,255,255,0.09); color: var(--color-white);
}
.search-box input::placeholder { color: var(--color-text-dim); }
.search-box button {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    font-size: 1rem; color: var(--color-text-muted);
    padding: 4px 8px; border-radius: 50%; transition: all 0.2s;
}
.search-box button:hover { color: var(--color-primary); }

.search-results {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    max-height: 380px; overflow-y: auto;
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    display: none; z-index: 2000; padding: 8px 0;
}
.search-results.active { display: block; }
.search-result-item {
    display: block; padding: 10px 16px; color: var(--color-text);
    text-decoration: none; font-size: 0.88rem; transition: background 0.15s;
    border-bottom: 1px solid var(--color-border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(255,107,53,0.08); color: var(--color-primary); }
.search-result-item .result-title {
    font-weight: 600; color: var(--color-white); display: block; margin-bottom: 2px;
}
.search-result-item .result-desc {
    font-size: 0.78rem; color: var(--color-text-muted); display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.search-result-item .result-tag {
    display: inline-block; font-size: 0.65rem; font-family: var(--font-pixel);
    color: var(--color-primary); background: rgba(255,107,53,0.1);
    padding: 1px 8px; border-radius: 20px; margin-top: 4px;
}
.search-no-results {
    padding: 16px; text-align: center; color: var(--color-text-dim); font-size: 0.85rem;
}

/* ===== FAQ Ticker Banner ===== */
.faq-ticker {
    background: linear-gradient(90deg, #141028 0%, #1e1540 50%, #141028 100%);
    border-top: 2px solid rgba(255,107,53,0.3);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0; overflow: hidden;
    position: relative;
}
.ticker-track {
    display: inline-flex; align-items: center;
    animation: tickerScroll 35s linear infinite;
    width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-item {
    display: inline-flex; align-items: center;
    color: #c8c0d4; font-size: 0.87rem;
    text-decoration: none; padding: 0 20px;
    transition: color 0.2s; white-space: nowrap;
    font-weight: 500; position: relative;
}
.ticker-item::before {
    content: '';
    display: inline-block; width: 6px; height: 6px;
    background: var(--color-primary); border-radius: 50%;
    margin-right: 6px; flex-shrink: 0;
}
.ticker-item:hover { color: var(--color-primary); }
.ticker-sep { display: none; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px; font-family: var(--font-display);
    font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
    transition: all var(--transition); text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white); box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,107,53,0.4); color: var(--color-white); }
.btn-secondary {
    background: transparent; color: var(--color-text);
    border: 2px solid var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
    display: inline-block; padding: 4px 16px; border-radius: 50px;
    background: rgba(255,107,53,0.1); color: var(--color-primary);
    font-family: var(--font-pixel); font-size: 0.7rem; letter-spacing: 1px;
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700; color: var(--color-white); margin-bottom: 16px;
}
.section-desc { color: var(--color-text-muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.section-cta { text-align: center; margin-top: 40px; }

/* ===== Game Overview ===== */
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.overview-card {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: 28px; transition: all var(--transition);
}
.overview-card:hover { border-color: var(--color-primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2rem; margin-bottom: 12px; color: var(--color-primary); }
.overview-card h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--color-white); margin-bottom: 10px; }
.overview-card p { color: var(--color-text-muted); margin-bottom: 16px; font-size: 0.95rem; }
.overview-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ===== Info Bar ===== */
.game-info-bar { padding: 40px 0; background: var(--color-bg-alt); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.info-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.info-item { text-align: center; }
.info-label { display: block; font-size: 0.75rem; color: var(--color-text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.info-value { font-family: var(--font-display); font-weight: 600; color: var(--color-accent); font-size: 0.95rem; }

/* ===== Guide Cards ===== */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.guide-card {
    display: flex; flex-direction: column; background: var(--color-bg-card);
    border: 1px solid var(--color-border); border-radius: var(--radius-lg);
    overflow: hidden; transition: all var(--transition); text-decoration: none; color: inherit;
}
.guide-card:hover { border-color: var(--color-primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.guide-card-large { grid-column: 1 / -1; flex-direction: row; }
.guide-img-wrap { position: relative; overflow: hidden; }
.guide-card-large .guide-img-wrap { width: 50%; }
.guide-img-wrap img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.guide-card-large .guide-img-wrap img { aspect-ratio: auto; height: 100%; }
.guide-badge {
    position: absolute; top: 12px; left: 12px; padding: 4px 12px;
    background: var(--color-primary); color: var(--color-white);
    border-radius: 50px; font-family: var(--font-pixel); font-size: 0.65rem;
}
.guide-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.guide-category { font-family: var(--font-pixel); font-size: 0.7rem; color: var(--color-primary); letter-spacing: 1px; margin-bottom: 8px; }
.guide-content h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-white); margin-bottom: 8px; }
.guide-content p { color: var(--color-text-muted); font-size: 0.95rem; flex: 1; }
.guide-read-more { color: var(--color-primary); font-weight: 600; font-size: 0.9rem; margin-top: 12px; }

/* ===== Characters ===== */
.chars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.char-card {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition);
}
.char-card:hover { border-color: var(--color-accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.char-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.char-info { padding: 20px; }
.char-info h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--color-white); }
.char-class { font-family: var(--font-pixel); font-size: 0.7rem; color: var(--color-primary); letter-spacing: 1px; }
.char-info p { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 8px; }
.char-voice { font-size: 0.8rem; color: var(--color-text-dim); margin-top: 8px; font-style: italic; }

/* ===== Videos ===== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 24px; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-card); border: 1px solid var(--color-border); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-caption { padding: 12px 16px; font-size: 0.85rem; color: var(--color-text-muted); text-align: center; }

/* ===== Systems ===== */
.systems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.system-card {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition);
}
.system-card:hover { border-color: var(--color-accent2); transform: translateY(-4px); }
.system-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.system-card h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--color-white); padding: 20px 20px 0; }
.system-card p { color: var(--color-text-muted); font-size: 0.95rem; padding: 12px 20px 20px; }

/* ===== Worlds ===== */
.worlds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.world-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 16/10; cursor: pointer;
}
.world-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.world-card:hover img { transform: scale(1.05); }
.world-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 24px; background: linear-gradient(transparent, rgba(10,14,26,0.95));
}
.world-overlay h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--color-white); margin-bottom: 6px; }
.world-overlay p { color: var(--color-text-muted); font-size: 0.9rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
    padding: 20px 24px; cursor: pointer; font-family: var(--font-display);
    font-weight: 600; color: var(--color-white); font-size: 1.05rem;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--color-primary); transition: transform var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--color-bg-card-hover); }
.faq-answer { padding: 0 24px 20px; color: var(--color-text-muted); line-height: 1.8; }
.faq-answer p { margin-bottom: 8px; }

/* ===== Footer ===== */
.footer {
    background: var(--color-bg-alt); border-top: 1px solid var(--color-border);
    padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--color-white); margin-bottom: 12px; }
.footer-desc { color: var(--color-text-muted); font-size: 0.9rem; max-width: 300px; }
.footer-col h4 { font-family: var(--font-display); color: var(--color-white); margin-bottom: 16px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--color-text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom { border-top: 1px solid var(--color-border); padding-top: 20px; }
.footer-bottom p { color: var(--color-text-dim); font-size: 0.8rem; text-align: center; }

/* ===== Guide Page Styles ===== */
.guide-page { padding-top: 100px; min-height: 100vh; }
.guide-header {
    background: linear-gradient(135deg, #0a0e1a, #1a1030);
    padding: 60px 0 40px; text-align: center;
    border-bottom: 1px solid var(--color-border);
}
.guide-header h1 {
    font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700; color: var(--color-white); margin-bottom: 12px;
}
.guide-header p { color: var(--color-text-muted); max-width: 600px; margin: 0 auto; }
.guide-breadcrumb {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    margin-bottom: 20px; font-size: 0.85rem; color: var(--color-text-dim);
}
.guide-breadcrumb a { color: var(--color-text-muted); }
.guide-breadcrumb span { color: var(--color-primary); }

.guide-body { padding: 60px 0; }
.guide-content-area { max-width: 860px; margin: 0 auto; }
.guide-content-area h2 {
    font-family: var(--font-display); font-size: 1.8rem; color: var(--color-white);
    margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--color-primary);
}
.guide-content-area h3 {
    font-family: var(--font-display); font-size: 1.3rem; color: var(--color-accent);
    margin: 32px 0 12px;
}
.guide-content-area p { margin-bottom: 16px; color: var(--color-text); line-height: 1.9; font-size: 1.02rem; }
.guide-content-area ul, .guide-content-area ol { margin: 12px 0 20px 24px; color: var(--color-text); }
.guide-content-area li { margin-bottom: 8px; line-height: 1.8; }
.guide-content-area img {
    width: 100%; border-radius: var(--radius-lg); margin: 24px 0;
    border: 1px solid var(--color-border);
}
.guide-content-area .img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.guide-content-area .img-pair img { margin: 0; }

.tip-box {
    background: rgba(255,107,53,0.08); border: 1px solid rgba(255,107,53,0.25);
    border-radius: var(--radius); padding: 20px 24px; margin: 24px 0;
}
.tip-box h4 { font-family: var(--font-display); color: var(--color-primary); margin-bottom: 8px; font-size: 1rem; }
.tip-box p { color: var(--color-text-muted); margin: 0; font-size: 0.95rem; }

.warning-box {
    background: rgba(255,209,102,0.08); border: 1px solid rgba(255,209,102,0.25);
    border-radius: var(--radius); padding: 20px 24px; margin: 24px 0;
}
.warning-box h4 { font-family: var(--font-display); color: var(--color-accent); margin-bottom: 8px; }
.warning-box p { color: var(--color-text-muted); margin: 0; font-size: 0.95rem; }

.char-detail-card {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: 28px; margin: 32px 0;
}
.char-detail-card h3 { color: var(--color-primary); font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 4px; }
.char-detail-card .char-role { font-family: var(--font-pixel); font-size: 0.7rem; color: var(--color-accent); letter-spacing: 1px; margin-bottom: 12px; }
.char-detail-card img { margin: 16px 0; }

.boss-card {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); overflow: hidden; margin: 32px 0;
}
.boss-card img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.boss-card-body { padding: 24px; }
.boss-card h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-accent); margin-bottom: 4px; }
.boss-card .boss-location { font-family: var(--font-pixel); font-size: 0.7rem; color: var(--color-text-dim); margin-bottom: 12px; }

.world-section { margin: 40px 0; padding: 28px; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.world-section h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-accent); margin-bottom: 12px; }

/* ===== Table of Contents ===== */
.toc {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 24px; margin: 32px 0;
}
.toc h4 { font-family: var(--font-display); color: var(--color-white); margin-bottom: 12px; }
.toc ol { margin-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--color-text-muted); font-size: 0.95rem; }
.toc a:hover { color: var(--color-primary); }

/* ===== About/Contact Page ===== */
.about-content { max-width: 800px; margin: 0 auto; }
.about-content h2 { font-family: var(--font-display); color: var(--color-white); font-size: 1.6rem; margin: 40px 0 16px; border-bottom: 2px solid var(--color-primary); padding-bottom: 8px; }
.about-content p { color: var(--color-text-muted); margin-bottom: 16px; line-height: 1.8; }
.contact-form { max-width: 600px; margin: 32px 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--color-text); font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 16px; background: var(--color-bg-card);
    border: 1px solid var(--color-border); border-radius: var(--radius);
    color: var(--color-text); font-family: var(--font-body); font-size: 1rem;
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); }
.form-group textarea { min-height: 150px; resize: vertical; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .guide-card-large { flex-direction: column; }
    .guide-card-large .guide-img-wrap { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: rgba(10,14,26,0.98); flex-direction: column; padding: 16px;
        border-bottom: 1px solid var(--color-border);
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; }
    .hero { padding: 100px 16px 60px; min-height: auto; }
    .hero-stats { gap: 24px; }
    .stat-num { font-size: 1.5rem; }
    .section { padding: 48px 0; }
    .overview-grid, .guides-grid, .systems-grid, .worlds-grid { grid-template-columns: 1fr; }
    .chars-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .info-bar { gap: 16px; }
    .guide-content-area .img-pair { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .chars-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: fadeInUp 0.8s ease-out; }
.overview-card, .guide-card, .char-card, .system-card, .world-card, .faq-item {
    animation: fadeInUp 0.6s ease-out both;
}
.overview-card:nth-child(2), .guide-card:nth-child(2), .char-card:nth-child(2) { animation-delay: 0.1s; }
.overview-card:nth-child(3), .guide-card:nth-child(3), .char-card:nth-child(3) { animation-delay: 0.2s; }
.char-card:nth-child(4) { animation-delay: 0.3s; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ===== Print ===== */
@media print {
    .navbar, .footer, .hero-buttons, .video-section, #lang-switcher, #theme-switcher { display: none; }
    body { background: white; color: black; }
    .guide-content-area { max-width: 100%; }
}

/* ===== Light Theme (Traditional White) ===== */
[data-theme="light"] {
    --color-bg: #f5f3f0;
    --color-bg-alt: #ebe8e4;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #f9f7f4;
    --color-primary: #e85a25;
    --color-primary-light: #ff7033;
    --color-primary-dark: #c94a1a;
    --color-accent: #f59b00;
    --color-accent2: #05a87e;
    --color-text: #2d3748;
    --color-text-muted: #5a6577;
    --color-text-dim: #8896ab;
    --color-border: #ddd8d2;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}
[data-theme="light"] body {
    background: var(--color-bg);
    color: var(--color-text);
}
[data-theme="light"] .navbar {
    background: rgba(245, 240, 235, 0.96);
    border-bottom-color: #d9cfc3;
}
[data-theme="light"] .navbar a:not(.theme-btn) {
    color: #5a5248;
}
[data-theme="light"] .navbar a.active,
[data-theme="light"] .navbar a:hover {
    color: var(--color-primary);
    background: rgba(232, 90, 37, 0.08);
}
[data-theme="light"] .nav-toggle span { background: #2d2820; }
/* Hero - warm gradient with DARK text for light mode */
[data-theme="light"] .hero {
    background: linear-gradient(135deg, #fff5ee 0%, #ffe8d6 25%, #ffd9bc 50%, #ffe8d6 75%, #fff5ee 100%);
}
[data-theme="light"] .hero::before {
    background: linear-gradient(135deg, rgba(255,248,240,0.65) 0%, rgba(254,235,215,0.55) 40%, rgba(255,220,190,0.50) 70%, rgba(255,248,240,0.60) 100%),
                radial-gradient(ellipse at 20% 50%, rgba(232, 90, 37, 0.08) 0%, transparent 55%);
}
[data-theme="light"] .hero::after { opacity: 0.03; color: var(--color-primary); }
[data-theme="light"] .hero-title { color: #1a1208 !important; }
[data-theme="light"] .title-accent {
    color: #e5a000 !important;
    -webkit-text-fill-color: #e5a000 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2), 0 1px 4px rgba(229,160,0,0.3);
}
[data-theme="light"] .hero-subtitle { color: #3d352a !important; font-weight: 600; text-shadow: none; }
[data-theme="light"] .hero-badge { background: rgba(255,248,240,0.85); border-color: rgba(229,160,0,0.4); color: #c97a00 !important; font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
[data-theme="light"] .stat-num { color: #e5a000 !important; text-shadow: 0 1px 8px rgba(229,160,0,0.15); }
[data-theme="light"] .stat-label { color: #5a5045 !important; font-weight: 700; text-shadow: none; }
[data-theme="light"] .scroll-indicator { color: #c97a00 !important; }
[data-theme="light"] .section-title { color: #1a1208 !important; }
[data-theme="light"] .section-desc { color: #5a4d3a !important; }
[data-theme="light"] .section-tag { background: rgba(232,90,37,0.08); color: #c94a1a !important; border: 1px solid rgba(232,90,37,0.15); }
/* Cards */
[data-theme="light"] .overview-card,
[data-theme="light"] .guide-card,
[data-theme="light"] .char-card,
[data-theme="light"] .system-card,
[data-theme="light"] .world-section {
    background: #ffffff;
    border: 2px solid #d9cfc3;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}
[data-theme="light"] .overview-card:hover,
[data-theme="light"] .guide-card:hover,
[data-theme="light"] .char-card:hover { border-color: var(--color-primary); box-shadow: 0 6px 22px rgba(232,90,37,0.12); }
[data-theme="light"] .overview-card img,
[data-theme="light"] .guide-card img,
[data-theme="light"] .char-card img,
[data-theme="light"] .system-card img,
[data-theme="light"] .boss-card img,
[data-theme="light"] .char-detail-card img,
[data-theme="light"] .guide-content-area img {
    border: 2.5px solid #c5bdb3;
    box-shadow: 0 3px 14px rgba(0,0,0,0.08);
}
[data-theme="light"] .overview-card h3,
[data-theme="light"] .guide-content-area h3 { color: #1a1208 !important; }
[data-theme="light"] .overview-card p,
[data-theme="light"] .guide-content p { color: #5a4d3a; }
[data-theme="light"] .guide-content h3 { color: #1a1208 !important; }
/* Info bar */
[data-theme="light"] .game-info-bar { background: #f0e8dd; border-top-color: #d9cfc3; border-bottom-color: #d9cfc3; }
[data-theme="light"] .info-label { color: #7a6d5c; font-weight: 600; }
[data-theme="light"] .info-value { color: var(--color-primary); font-weight: 700; }
/* FAQ */
[data-theme="light"] .faq-item { background: #ffffff; border: 1.5px solid #d9cfc3; }
[data-theme="light"] .faq-item summary { color: #1a1208 !important; font-weight: 600; }
[data-theme="light"] .faq-answer p { color: #5a4d3a; }
/* TOC */
[data-theme="light"] .toc { background: #ffffff; border: 1.5px solid #d9cfc3; }
[data-theme="light"] .toc h4 { color: #1a1208 !important; }
[data-theme="light"] .toc a { color: #5a4d3a; }
[data-theme="light"] .tip-box { background: #fffbf5; border-left-color: var(--color-primary); }
[data-theme="light"] .tip-box h4 { color: #c94a1a; }
[data-theme="light"] .tip-box p { color: #5a4d3a; }
[data-theme="light"] .warning-box { background: #fffbeb; border-left-color: #d97706; }
[data-theme="light"] .warning-box h4 { color: #b07800; }
[data-theme="light"] .warning-box p { color: #5a4d3a; }
[data-theme="light"] .char-detail-card,
[data-theme="light"] .boss-card,
[data-theme="light"] .boss-card-body { background: #ffffff; border-color: #d9cfc3; }
[data-theme="light"] .char-detail-card h3,
[data-theme="light"] .boss-card h3 { color: var(--color-primary-dark) !important; }
[data-theme="light"] .world-overlay h3 { color: #1a1208; }
[data-theme="light"] .world-overlay p { color: #5a4d3a; }
/* Footer - keep dark for contrast */
[data-theme="light"] .footer { background: #1a1030; border-top-color: rgba(255,255,255,0.08); }
[data-theme="light"] .footer-logo { color: #e8e6e3 !important; }
[data-theme="light"] .footer-col h4 { color: #e8e6e3; }
[data-theme="light"] .footer-col a { color: #9ca3af; }
[data-theme="light"] .footer-col a:hover { color: var(--color-primary-light); }
[data-theme="light"] .footer-desc { color: #9ca3af; }
[data-theme="light"] .footer-bottom p { color: #6b7280; }
/* Guide page header */
[data-theme="light"] .guide-header { background: linear-gradient(135deg, #fff5ee, #ffe8d6); border-bottom-color: #d9cfc3; }
[data-theme="light"] .guide-header h1 { color: #1a1208 !important; }
[data-theme="light"] .guide-header p { color: #5a4d3a; }
[data-theme="light"] .guide-breadcrumb { color: #7a6d5c; }
[data-theme="light"] .guide-breadcrumb a { color: #5a4d3a; }
[data-theme="light"] .guide-breadcrumb span { color: var(--color-primary); }
[data-theme="light"] .guide-content-area h2 { color: #1a1208 !important; border-bottom-color: var(--color-primary); }
[data-theme="light"] .guide-content-area h3 { color: var(--color-primary-dark) !important; }
[data-theme="light"] .guide-content-area p { color: #3d352a; line-height: 1.85; }
[data-theme="light"] .guide-content-area li { color: #3d352a; line-height: 1.8; }
[data-theme="light"] .guide-content-area strong { color: #1a1208; }
[data-theme="light"] .guide-category { color: var(--color-primary-dark); font-weight: 600; }
[data-theme="light"] .guide-read-more { color: var(--color-primary); font-weight: 700; }
/* Buttons - CRITICAL visibility fix */
[data-theme="light"] .btn-primary { background: linear-gradient(135deg, #e85a25, #ff7033); color: #ffffff !important; box-shadow: 0 4px 16px rgba(232,90,37,0.30); font-weight: 700; }
[data-theme="light"] .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(232,90,37,0.40); }
[data-theme="light"] .btn-secondary { background: #ffffff !important; color: #1a1208 !important; border: 2px solid #b8a99a !important; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
[data-theme="light"] .btn-secondary:hover { border-color: var(--color-primary) !important; color: var(--color-primary) !important; box-shadow: 0 4px 12px rgba(232,90,37,0.15); }
/* Contact form */
[data-theme="light"] .form-group label { color: #1a1208; font-weight: 600; }
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea { background: #ffffff; border: 2px solid #d9cfc3; color: #1a120c; }
/* Video */
[data-theme="light"] .video-wrapper { border: 2px solid #d9cfc3; }
[data-theme="light"] .video-caption { color: #5a4d3a; }
/* Search box light theme */
[data-theme="light"] .search-box input { background: #ffffff; border: 2px solid #d9cfc3; color: #1a1208; font-weight: 500; }
[data-theme="light"] .search-box input:focus { border-color: var(--color-primary); background: #fff; width: 260px; }
[data-theme="light"] .search-box input::placeholder { color: #9a9188; }
[data-theme="light"] .search-box button { color: #7a6d5c; }
[data-theme="light"] .search-box button:hover { color: var(--color-primary); }
[data-theme="light"] .search-results { background: #ffffff; box-shadow: 0 8px 32px rgba(0,0,0,0.12); border: 1.5px solid #d9cfc3; }
[data-theme="light"] .search-result-item { color: #3d352a; border-bottom-color: #eee8e0; }
[data-theme="light"] .search-result-item:hover { background: rgba(232,90,37,0.05); }
[data-theme="light"] .search-result-item .result-title { color: #1a1208 !important; font-weight: 700; }
[data-theme="light"] .search-result-item .result-desc { color: #6b5d4a; }
[data-theme="light"] .search-result-item .result-tag { color: #c94a1a; background: rgba(232,90,37,0.08); }
/* Scroll indicator light */
[data-theme="light"] .scroll-arrow { animation: scrollBounceLight 2s ease-in-out infinite; }
@keyframes scrollBounceLight { 0%,100%{transform:translateY(0);opacity:.6} 50%{transform:translateY(8px);opacity:1} }
/* FAQ ticker light */
[data-theme="light"] .faq-ticker { background: linear-gradient(90deg,#fef0e0 0%,#fce4cc 50%,#fef0e0 100%); border-top-color: rgba(232,90,37,0.25); border-bottom-color: #d9cfc3; }
[data-theme="light"] .ticker-item { color: #6b5d4a; font-weight: 500; }
[data-theme="light"] .ticker-item::before { opacity: 0.7; }
[data-theme="light"] .ticker-item:hover { color: #c94a1a; }

/* ===== Theme Toggle ===== */
.theme-switcher {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 12px;
}
.theme-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.theme-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--color-primary);
    color: var(--color-white);
}
.theme-icon-sun { display: none; font-size: 1.1rem; }
.theme-icon-moon { display: inline; font-size: 1.1rem; }
[data-theme="light"] .theme-icon-sun { display: inline; }
[data-theme="light"] .theme-icon-moon { display: none; }

/* ===== Light Theme Button Overrides ===== */
[data-theme="light"] .theme-btn {
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
[data-theme="light"] .theme-btn:hover {
    background: #fff5ee;
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 2px 10px rgba(232,90,37,0.15);
}

@media (max-width: 768px) {
    .theme-switcher {
        position: static;
        margin: 10px 16px 0;
        justify-content: center;
    }
}