/* Cyan Brain - Subpages Neo Sci-fi Theme */

:root {
    --bg-0: #0A0F1A;
    --bg-1: #0E1624;
    --bg-2: #111B2B;
    --text-0: #E6FAFF;
    --text-1: #CFE9F6;
    --text-2: #8FB3C6;
    --accent: #00E5FF;
    --accent-2: #25F3CE;
    --muted: #243146;
    --radius: 14px;
}

/* Nav active on subpages */
.nav-menu .active {
    color: #00222C;
    background: linear-gradient(180deg, var(--accent), #46f0e1);
    border-radius: 12px;
    padding: 0.45rem 0.9rem;
    box-shadow: 0 10px 24px rgba(0,229,255,0.22);
}

.nav-menu .active:hover { filter: brightness(1.04); }

/* Header */
.page-header {
    background: radial-gradient(600px 300px at 20% 0, rgba(0,229,255,0.12), rgba(0,0,0,0)),
                linear-gradient(180deg, #0A111E, #0A0F1A);
    padding: 4.2rem 2rem;
    text-align: center;
    color: var(--text-0);
    position: relative;
    border-bottom: 1px solid rgba(0,229,255,0.08);
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 380px at 80% 40%, rgba(0,229,255,0.08), transparent 60%);
    pointer-events: none;
}

.header-container { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.page-header h1 { font-size: 2.6rem; margin-bottom: 0.8rem; font-weight: 900; letter-spacing: 0.5px; }
.page-header p { font-size: 1.05rem; opacity: 0.9; color: var(--text-2); }

/* Main */
.main-content { background: var(--bg-0); min-height: 100vh; }
.content-container { max-width: 1200px; margin: 0 auto; padding: 3rem 1.4rem; }

/* Section base */
.download-section,
.location-section,
.structure-section,
.replacement-section,
.troubleshooting-section,
.guide-section,
.toc-section,
.characters-section,
.endings-section,
.achievements-section,
.hidden-section,
.tips-section,
.walkthrough-section { margin-bottom: 3.2rem; }

.download-section h2,
.location-section h2,
.structure-section h2,
.replacement-section h2,
.troubleshooting-section h2,
.guide-section h2,
.toc-section h2,
.characters-section h2,
.endings-section h2,
.achievements-section h2,
.hidden-section h2,
.tips-section h2,
.walkthrough-section h2 {
    font-size: 2.2rem;
    color: var(--text-0);
    margin-bottom: 1.2rem;
    text-align: center;
    text-shadow: 0 8px 30px rgba(0, 229, 255, 0.18);
}

/* Cards and grids */
.download-grid,
.save-grid,
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }

.download-card,
.save-card,
.content-card { background: linear-gradient(180deg, rgba(17,27,43,0.95), rgba(12,20,33,0.95)); border-radius: var(--radius); padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); border: 1px solid rgba(0,229,255,0.12); transition: transform .25s ease, border-color .25s ease; }
.download-card:hover,
.save-card:hover,
.content-card:hover { transform: translateY(-6px); border-color: rgba(0,229,255,0.35); box-shadow: 0 24px 60px rgba(0,229,255,0.12); }

.download-header,
.save-header,
.content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.download-header h3,
.save-header h3,
.content-header h3 { font-size: 1.2rem; color: var(--text-0); margin: 0; }

.version-tag,
.save-type,
.content-type { background: rgba(0,229,255,0.16); color: var(--text-0); padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; border: 1px solid rgba(0,229,255,0.28); }
.version-tag { background: rgba(67, 217, 173, 0.16); border-color: rgba(67, 217, 173, 0.35); }
.save-type { background: rgba(255, 152, 0, 0.16); border-color: rgba(255, 152, 0, 0.35); }
.content-type { background: rgba(156, 39, 176, 0.16); border-color: rgba(156, 39, 176, 0.35); }

.download-info,
.save-info,
.content-info { margin-bottom: 1rem; }
.download-info p,
.save-info p,
.content-info p { margin-bottom: 6px; color: var(--text-2); }
.download-info ul,
.save-info ul,
.content-info ul { margin: 10px 0; padding-left: 18px; }
.download-info li,
.save-info li,
.content-info li { margin-bottom: 4px; color: var(--text-1); }

.download-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.download-btn { padding: 12px 16px; border-radius: 12px; text-decoration: none; font-weight: 800; transition: all .25s ease; border: 1px solid rgba(0,229,255,0.28); display: inline-block; text-align: center; min-width: 140px; color: var(--bg-0); background: linear-gradient(180deg, var(--accent), #46f0e1); box-shadow: 0 16px 40px rgba(0,229,255,0.22); }
.download-btn.primary:hover { transform: translateY(-3px); box-shadow: 0 22px 60px rgba(0,229,255,0.28); }
.download-btn.secondary { background: transparent; color: var(--accent); border-color: rgba(0,229,255,0.35); box-shadow: none; }
.download-btn.secondary:hover { background: rgba(0,229,255,0.08); }

/* Paths */
.path-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; }
.path-card { background: linear-gradient(180deg, rgba(17,27,43,0.95), rgba(12,20,33,0.95)); border-radius: 12px; padding: 16px; box-shadow: 0 18px 40px rgba(0,0,0,0.35); border-left: 3px solid rgba(0,229,255,0.35); }
.path-card h4 { color: var(--text-0); margin-bottom: 10px; font-size: 1.05rem; }
.path-content code { background: #0B1422; color: var(--text-1); padding: 12px; border-radius: 8px; font-family: 'Courier New', monospace; display: block; margin-bottom: 6px; word-break: break-all; border: 1px solid rgba(0,229,255,0.12); }
.path-note { color: var(--text-2); font-size: 0.9rem; font-style: italic; }

/* Structure */
.structure-content { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: linear-gradient(180deg, rgba(17,27,43,0.95), rgba(12,20,33,0.95)); border-radius: 14px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); border: 1px solid rgba(0,229,255,0.12); }
.file-tree pre { background: #0B1422; color: #CDE6F3; padding: 16px; border-radius: 10px; overflow-x: auto; font-family: 'Courier New', monospace; font-size: 0.92rem; line-height: 1.55; border: 1px solid rgba(0,229,255,0.12); }
.file-info ul { list-style: none; padding: 0; }
.file-info li { margin-bottom: 12px; padding: 12px; background: rgba(255,255,255,0.02); border-radius: 10px; border-left: 3px solid rgba(0,229,255,0.35); color: var(--text-1); }

/* Guides */
.guide-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.guide-card { background: linear-gradient(180deg, rgba(17,27,43,0.95), rgba(12,20,33,0.95)); border-radius: 14px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); border-top: 3px solid rgba(0,229,255,0.35); }
.guide-card h3 { color: var(--text-0); margin-bottom: 12px; font-size: 1.12rem; }
.step-content ol, .step-content ul { margin-bottom: 12px; padding-left: 18px; }
.step-content li { margin-bottom: 6px; color: var(--text-1); line-height: 1.6; }
.warning-box { background: rgba(255, 243, 205, 0.1); border: 1px solid rgba(255, 234, 167, 0.35); border-radius: 10px; padding: 12px; margin-top: 8px; color: #FFE08A; }

/* Troubleshooting */
.trouble-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.trouble-card { background: linear-gradient(180deg, rgba(17,27,43,0.95), rgba(12,20,33,0.95)); border-radius: 14px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); border-left: 4px solid rgba(255,107,107,0.45); }
.trouble-card h3 { color: var(--text-0); margin-bottom: 12px; font-size: 1.12rem; }
.trouble-content p { margin-bottom: 10px; color: var(--text-1); }
.trouble-content ul, .trouble-content ol { margin-bottom: 10px; padding-left: 18px; }
.trouble-content li { margin-bottom: 6px; color: var(--text-2); }

/* TOC */
.toc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 26px; }
.toc-item { background: linear-gradient(180deg, rgba(17,27,43,0.95), rgba(12,20,33,0.95)); border-radius: 14px; padding: 18px; text-decoration: none; color: inherit; box-shadow: 0 24px 60px rgba(0,0,0,0.35); transition: transform .25s ease, border-color .25s ease; border: 1px solid rgba(0,229,255,0.12); text-align: center; }
.toc-item:hover { transform: translateY(-6px); border-color: rgba(0,229,255,0.35); box-shadow: 0 24px 60px rgba(0,229,255,0.12); }
.toc-item h3 { color: var(--text-0); margin-bottom: 8px; font-size: 1.1rem; }
.toc-item p { color: var(--text-2); }

/* Characters */
.character-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.character-card { background: linear-gradient(180deg, rgba(17,27,43,0.95), rgba(12,20,33,0.95)); border-radius: 14px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); transition: transform .25s ease; border: 1px solid rgba(0,229,255,0.12); }
.character-card:hover { transform: translateY(-6px); border-color: rgba(0,229,255,0.35); }
.character-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.character-header h3 { font-size: 1.4rem; color: var(--text-0); margin: 0; }
.character-type { background: rgba(255,107,157,0.16); color: var(--text-0); padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; border: 1px solid rgba(255,107,157,0.35); }
.character-info h4 { color: var(--text-0); margin: 12px 0 8px 0; font-size: 1rem; }
.character-info p { color: var(--text-1); margin-bottom: 8px; }
.character-info ul { margin-bottom: 8px; padding-left: 18px; }
.character-info li { margin-bottom: 4px; color: var(--text-2); }

/* Endings */
.ending-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.ending-card { background: linear-gradient(180deg, rgba(17,27,43,0.95), rgba(12,20,33,0.95)); border-radius: 14px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); transition: transform .25s ease; border: 1px solid rgba(0,229,255,0.12); }
.ending-card:hover { transform: translateY(-6px); border-color: rgba(0,229,255,0.35); }
.ending-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.ending-header h3 { font-size: 1.2rem; color: var(--text-0); margin: 0; }
.ending-type { padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; color: var(--text-0); }
.ending-type:nth-child(2) { background: rgba(67, 217, 173, 0.16); border: 1px solid rgba(67, 217, 173, 0.35); }
.ending-type:nth-child(3) { background: rgba(255, 152, 0, 0.16); border: 1px solid rgba(255, 152, 0, 0.35); }
.ending-type:nth-child(4) { background: rgba(33, 150, 243, 0.16); border: 1px solid rgba(33, 150, 243, 0.35); }

.ending-content h4 { color: var(--text-0); margin: 10px 0 8px 0; font-size: 1rem; }
.ending-content p { color: var(--text-1); margin-bottom: 10px; }
.ending-content ul { margin-bottom: 12px; padding-left: 18px; }
.ending-content li { margin-bottom: 6px; color: var(--text-2); }

/* Achievements */
.achievement-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.category-card { background: linear-gradient(180deg, rgba(17,27,43,0.95), rgba(12,20,33,0.95)); border-radius: 14px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.category-card h3 { color: var(--text-0); margin-bottom: 12px; font-size: 1.12rem; text-align: center; padding-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.achievement-list { display: flex; flex-direction: column; gap: 10px; }
.achievement-item { padding: 12px; background: rgba(255,255,255,0.02); border-radius: 10px; border-left: 3px solid rgba(0,229,255,0.35); color: var(--text-1); }
.achievement-item h4 { color: var(--text-0); margin-bottom: 6px; font-size: 1rem; }
.achievement-item p { color: var(--text-2); font-size: 0.92rem; margin: 0; }

/* Hidden */
.hidden-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.hidden-card { background: linear-gradient(180deg, rgba(17,27,43,0.95), rgba(12,20,33,0.95)); border-radius: 14px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.hidden-card h3 { color: var(--text-0); margin-bottom: 12px; font-size: 1.12rem; text-align: center; padding-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.hidden-content h4 { color: var(--text-0); margin: 12px 0 8px 0; font-size: 1rem; }
.hidden-content ul { margin-bottom: 12px; padding-left: 18px; }
.hidden-content li { margin-bottom: 6px; color: var(--text-2); line-height: 1.6; }

/* Tips */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tip-card { background: linear-gradient(180deg, rgba(17,27,43,0.95), rgba(12,20,33,0.95)); border-radius: 14px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); border-top: 3px solid rgba(0,229,255,0.35); }
.tip-card h3 { color: var(--text-0); margin-bottom: 12px; font-size: 1.12rem; }
.tip-card ul { padding-left: 18px; }
.tip-card li { margin-bottom: 10px; color: var(--text-2); line-height: 1.6; }

/* Walkthrough */
.walkthrough-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.chapter-card { background: linear-gradient(180deg, rgba(17,27,43,0.95), rgba(12,20,33,0.95)); border-radius: 14px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); border-left: 3px solid rgba(0,229,255,0.35); }
.chapter-card h3 { color: var(--text-0); margin-bottom: 12px; font-size: 1.12rem; }
.chapter-content h4 { color: var(--text-0); margin: 12px 0 8px 0; font-size: 1rem; }
.chapter-content p { color: var(--text-1); line-height: 1.6; margin-bottom: 10px; }
.chapter-content ul { margin-bottom: 12px; padding-left: 18px; }
.chapter-content li { margin-bottom: 6px; color: var(--text-2); line-height: 1.6; }

/* Actions */
.actions-section { text-align: center; margin-top: 26px; padding: 24px; background: linear-gradient(180deg, rgba(17,27,43,0.95), rgba(12,20,33,0.95)); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); border: 1px solid rgba(0,229,255,0.12); }
.action-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.action-btn { padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 800; transition: all .25s ease; border: 1px solid rgba(0,229,255,0.28); display: inline-block; text-align: center; min-width: 160px; }
.action-btn.primary { background: linear-gradient(180deg, var(--accent), #46f0e1); color: #00222C; box-shadow: 0 16px 40px rgba(0,229,255,0.22); }
.action-btn.primary:hover { transform: translateY(-3px); box-shadow: 0 22px 60px rgba(0,229,255,0.28); }
.action-btn.secondary { background: transparent; color: var(--accent); border-color: rgba(0,229,255,0.35); }
.action-btn.secondary:hover { background: rgba(0,229,255,0.08); }

/* OS */
.os-section { margin-bottom: 22px; }
.os-section h3 { color: var(--text-0); margin-bottom: 10px; font-size: 1.35rem; text-align: center; padding-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,0.08); }

/* Responsive */
@media (max-width: 768px) {
    .page-header { padding: 3rem 1rem; }
    .page-header h1 { font-size: 2.2rem; }
    .content-container { padding: 2rem 1rem; }
    .structure-content { grid-template-columns: 1fr; gap: 12px; }
    .download-actions, .action-buttons { flex-direction: column; align-items: center; }
    .download-btn, .action-btn { width: 100%; max-width: 320px; }
    .file-tree pre, .path-content code { font-size: 0.88rem; padding: 12px; }
}

@media (max-width: 480px) {
    .download-section h2, .location-section h2, .structure-section h2, .replacement-section h2, .troubleshooting-section h2, .guide-section h2, .toc-section h2, .characters-section h2, .endings-section h2, .achievements-section h2, .hidden-section h2, .tips-section h2, .walkthrough-section h2 { font-size: 1.8rem; }
    .download-card, .save-card, .content-card, .path-card, .guide-card, .trouble-card, .toc-item, .character-card, .ending-card, .category-card, .hidden-card, .tip-card, .chapter-card { padding: 16px; }
    .download-header h3, .save-header h3, .content-header h3, .character-header h3, .ending-header h3 { font-size: 1.05rem; }
}
