/* ============================================
   Playtime Speed Launcher — Landing Page
   Poppy Playtime factory color palette
   ============================================ */

:root {
    /* Primary — warm factory yellow (building walls) */
    --primary: #E8C840;
    --primary-dark: #C0A030;
    --primary-rgb: 232, 200, 64;

    /* Accent — chimney orange-red */
    --accent: #D84820;
    --accent-rgb: 216, 72, 32;

    /* Accent2 — arch teal/blue trim */
    --accent2: #56B8CC;
    --accent2-rgb: 86, 184, 204;

    /* Dark backgrounds — warm-tinted charcoal */
    --dark: #0C0805;
    --dark-light: #161008;
    --dark-card: #201A0A;
    --dark-card2: #2A2010;

    /* Text */
    --gray: #9A7848;
    --light: #EEE0A8;
    --white: #FDF8EC;

    /* Chapter accent colors */
    --ch1: #E8C840;
    --ch2: #D84820;
    --ch3: #56B8CC;
    --ch4: #E87828;
    --ch5: #7A8C40;

    /* Structural */
    --gradient-primary: linear-gradient(135deg, #E8C840 0%, #D84820 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.65);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: -40px;          /* oversize to hide blur edges */
    z-index: -1;
    background: url('../Assets/Background/Background.jpg') center / cover no-repeat;
    filter: blur(8px);
    opacity: 0.18;
    pointer-events: none;
}

h1, h2, h3 {
    font-family: 'Fredoka One', 'Nunito', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

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

/* ============================================
   Slide-up reveal
   ============================================ */
.slide-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(12, 8, 5, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(232, 200, 64, 0.08);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(12, 8, 5, 0.97);
    box-shadow: var(--shadow-md);
    border-bottom-color: rgba(232, 200, 64, 0.14);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--light);
    font-family: 'Fredoka One', sans-serif;
    font-size: 17px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--dark);
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}
.nav-logo-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--primary); }

.nav-cta {
    background: var(--gradient-primary);
    color: var(--dark);
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: var(--dark);
    border: none;
    padding: 11px 24px;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,200,64,0.3); }
.btn-primary:active { transform: translateY(0); opacity: 0.95; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--light);
    border: 1.5px solid rgba(232, 200, 64, 0.3);
    padding: 11px 24px;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.btn-secondary:hover { border-color: rgba(232,200,64,0.65); color: var(--primary); transform: translateY(-2px); }

.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 11px; }
.btn-xl { padding: 15px 36px; font-size: 16px; border-radius: 12px; }

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 900px; height: 700px;
    background: radial-gradient(ellipse at 40% 40%,
        rgba(232, 200, 64, 0.12) 0%,
        rgba(216, 72, 32, 0.08) 35%,
        rgba(86, 184, 204, 0.04) 60%,
        transparent 75%);
    pointer-events: none;
    transition: transform 0.1s linear;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 64px;
    align-items: center;
}

/* Hero text */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(232, 200, 64, 0.1);
    border: 1px solid rgba(232, 200, 64, 0.25);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(40px, 5.5vw, 62px);
    line-height: 1.08;
    margin-bottom: 20px;
    color: var(--white);
}
.hero-title-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 32px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}
.hero-stat {
    text-align: center;
}
.hero-stat.clickable { cursor: pointer; }
.hero-stat.clickable:hover .hero-stat-value { color: var(--accent); }
.hero-stat-value {
    display: block;
    font-family: 'Fredoka One', sans-serif;
    font-size: 26px;
    color: var(--primary);
    transition: var(--transition);
    line-height: 1.1;
}
.hero-stat-label {
    display: block;
    font-size: 11px;
    color: var(--gray);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 2px;
}
.hero-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(232, 200, 64, 0.15);
}

/* ============================================
   Demo Widget
   ============================================ */
.hero-demo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-launcher {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--dark-card);
    border: 1.5px solid rgba(232, 200, 64, 0.18);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(232, 200, 64, 0.06);
}

.demo-glow {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    transition: background 0.5s ease;
}

.demo-titlebar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(232,200,64,0.1);
}
.demo-titlebar-dots {
    display: flex;
    gap: 5px;
}
.demo-titlebar-dots span {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(232,200,64,0.2);
}
.demo-titlebar-dots span:first-child { background: rgba(216,72,32,0.55); }
.demo-titlebar-dots span:nth-child(2) { background: rgba(232,200,64,0.45); }
.demo-titlebar-dots span:nth-child(3) { background: rgba(86,184,204,0.35); }

.demo-titlebar-name {
    flex: 1;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--gray);
}
.demo-titlebar-ver {
    font-size: 10px;
    color: rgba(154,120,72,0.6);
    font-weight: 700;
}

.demo-body {
    position: relative;
    z-index: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-chapter-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    border: 1px solid rgba(232,200,64,0.1);
}

.demo-icon-wrap {
    width: 48px; height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.4s ease;
}
.demo-icon-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.demo-ch-num {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--gray);
    transition: color 0.4s ease;
}
.demo-ch-title {
    font-family: 'Fredoka One', sans-serif;
    font-size: 16px;
    color: var(--white);
    letter-spacing: 0.03em;
    transition: color 0.4s ease;
    line-height: 1.2;
    margin-top: 2px;
}

.demo-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.demo-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 7px;
}
.demo-field-key {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--gray);
}
.demo-field-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--light);
    transition: all 0.4s ease;
}
.demo-accent-val {
    color: var(--primary);
    font-weight: 800;
}

.demo-sep {
    height: 1px;
    background: rgba(232,200,64,0.1);
    margin: 2px 0;
}

.demo-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    letter-spacing: 0.03em;
    transition: color 0.4s ease;
}
.demo-status i { font-size: 11px; color: #7CC840; }

.demo-play-btn {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 9px;
    font-family: 'Fredoka One', sans-serif;
    font-size: 16px;
    letter-spacing: 0.06em;
    cursor: default;
    transition: background 0.5s ease;
    color: var(--dark);
    background: var(--gradient-primary);
}

/* ============================================
   Section Header
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    color: var(--white);
    margin-bottom: 12px;
}
.section-header p {
    font-size: 15px;
    color: var(--gray);
    max-width: 520px;
    margin: 0 auto;
    font-weight: 500;
}

/* ============================================
   Features
   ============================================ */
.features {
    padding: 100px 0;
    background: var(--dark-light);
    border-top: 1px solid rgba(232,200,64,0.06);
    border-bottom: 1px solid rgba(232,200,64,0.06);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--dark-card);
    border: 1px solid rgba(232, 200, 64, 0.1);
    border-radius: 14px;
    padding: 28px 24px;
    transition: var(--transition);
}
.feature-card:hover {
    border-color: rgba(232,200,64,0.28);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}
.feature-icon-1 { background: rgba(232,200,64,0.12); color: var(--ch1); }
.feature-icon-2 { background: rgba(216,72,32,0.12);  color: var(--ch2); }
.feature-icon-3 { background: rgba(86,184,204,0.12); color: var(--ch3); }
.feature-icon-4 { background: rgba(232,120,40,0.12); color: var(--ch4); }
.feature-icon-5 { background: rgba(232,200,64,0.12); color: var(--ch1); }
.feature-icon-6 { background: rgba(86,184,204,0.12); color: var(--ch3); }

.feature-card h3 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 13.5px;
    color: var(--gray);
    line-height: 1.65;
    font-weight: 500;
}

/* ============================================
   Chapters
   ============================================ */
.chapters {
    padding: 100px 0;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}

.chapter-card {
    background: var(--dark-card);
    border: 1px solid rgba(232,200,64,0.1);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 20px 18px 16px;
    cursor: pointer;
}
.chapter-card:hover {
    border-color: rgba(232,200,64,0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.chapter-card-soon {
    opacity: 0.65;
}

.chapter-card-stripe {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.ch1-stripe { background: var(--ch1); }
.ch2-stripe { background: var(--ch2); }
.ch3-stripe { background: var(--ch3); }
.ch4-stripe { background: var(--ch4); }
.ch5-stripe { background: var(--ch5); }

.chapter-num-badge {
    position: absolute;
    top: 12px; right: 14px;
    font-family: 'Fredoka One', sans-serif;
    font-size: 26px;
    line-height: 1;
    opacity: 0.15;
}
.ch1-badge { color: var(--ch1); }
.ch2-badge { color: var(--ch2); }
.ch3-badge { color: var(--ch3); }
.ch4-badge { color: var(--ch4); }
.ch5-badge { color: var(--ch5); }

.chapter-card-icon {
    width: 52px; height: 52px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.08);
}
.chapter-card-icon img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.ch1-icon { box-shadow: 0 0 10px rgba(232,200,64,0.2); }
.ch2-icon { box-shadow: 0 0 10px rgba(216,72,32,0.2);  }
.ch3-icon { box-shadow: 0 0 10px rgba(86,184,204,0.2); }
.ch4-icon { box-shadow: 0 0 10px rgba(232,120,40,0.2); }
.ch5-icon { box-shadow: 0 0 10px rgba(122,140,64,0.2); }

.chapter-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chapter-card-title {
    font-size: 15px;
    color: var(--white);
    line-height: 1.2;
}

.chapter-appid {
    font-size: 11px;
    color: var(--gray);
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0.7;
}

.chapter-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--ch5);
    background: rgba(122,140,64,0.12);
    border: 1px solid rgba(122,140,64,0.25);
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
    margin: 2px 0;
}

.chapter-presets-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--gray);
    margin-top: 6px;
    opacity: 0.7;
}

.chapter-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}
.preset-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(232,200,64,0.08);
    color: var(--primary);
    border: 1px solid rgba(232,200,64,0.18);
    letter-spacing: 0.02em;
}

.chapter-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(232,200,64,0.15);
    color: var(--gray);
    padding: 6px 12px;
    border-radius: 7px;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 12px;
    width: 100%;
    justify-content: center;
}
.chapter-info-btn:hover {
    border-color: rgba(232,200,64,0.4);
    color: var(--primary);
    background: rgba(232,200,64,0.06);
}

/* ============================================
   Stats / Downloads
   ============================================ */
.stats-section {
    padding: 100px 0;
    background: var(--dark-light);
    border-top: 1px solid rgba(232,200,64,0.06);
    border-bottom: 1px solid rgba(232,200,64,0.06);
}

.stats-inner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.stats-header {
    margin-bottom: 48px;
}
.stats-header h2 {
    font-size: clamp(26px, 3vw, 36px);
    color: var(--white);
    margin-bottom: 10px;
}
.stats-header p {
    color: var(--gray);
    font-size: 15px;
    font-weight: 500;
}

.stats-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.stat-box {
    background: var(--dark-card);
    border: 1px solid rgba(232,200,64,0.1);
    border-radius: 14px;
    padding: 22px 28px;
    text-align: center;
    min-width: 160px;
    transition: var(--transition);
}
.stat-box.clickable { cursor: pointer; }
.stat-box.clickable:hover {
    border-color: rgba(232,200,64,0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.stat-box-icon {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 10px;
    opacity: 0.8;
}
.stat-box-value {
    font-family: 'Fredoka One', sans-serif;
    font-size: 32px;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 4px;
}
.stat-box-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gray);
    text-transform: uppercase;
}

.stats-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.stats-req {
    font-size: 12px;
    color: var(--gray);
    opacity: 0.7;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.stats-req i { opacity: 0.8; }

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(232,200,64,0.08);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-family: 'Fredoka One', sans-serif;
    font-size: 15px;
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    font-size: 13px;
    color: var(--gray);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); }

.footer-copy {
    font-size: 12px;
    color: var(--gray);
    opacity: 0.55;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

/* ============================================
   Modals
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    background: var(--dark-card2);
    border: 1px solid rgba(232,200,64,0.14);
    border-radius: 18px;
    padding: 36px;
    width: 90%;
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg), 0 0 80px rgba(232,200,64,0.04);
}

.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(154,120,72,0.1);
    border: 1px solid rgba(154,120,72,0.15);
    color: var(--gray);
    width: 30px; height: 30px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: rgba(216,72,32,0.15); border-color: rgba(216,72,32,0.3); color: var(--accent); }

.modal-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: rgba(232,200,64,0.12);
    border: 1px solid rgba(232,200,64,0.2);
    color: var(--primary);
    font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.modal-icon-github {
    background: rgba(154,120,72,0.1);
    border-color: rgba(154,120,72,0.2);
    color: var(--gray);
}

.modal-title {
    font-size: 22px;
    color: var(--white);
    margin-bottom: 6px;
}
.modal-subtitle {
    font-size: 13.5px;
    color: var(--gray);
    margin-bottom: 24px;
    font-weight: 500;
}

/* Download Options */
.download-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(232,200,64,0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--light);
    font-family: 'Nunito', sans-serif;
    width: 100%;
    text-align: left;
}
.download-option:hover {
    border-color: rgba(232,200,64,0.3);
    background: rgba(232,200,64,0.05);
    transform: translateX(3px);
}

.download-option-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: rgba(232,200,64,0.12);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.download-option-icon-gh {
    background: rgba(154,120,72,0.1);
    color: var(--gray);
}

.download-option-info { flex: 1; }
.download-option-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2px;
}
.download-option-desc {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

.download-option-arrow {
    color: var(--gray);
    font-size: 12px;
    transition: var(--transition);
}
.download-option:hover .download-option-arrow { color: var(--primary); transform: translateX(3px); }

/* States */
.download-option.download-success .download-option-icon { background: rgba(124,200,64,0.15); color: #7CC840; }
.download-option.download-error  .download-option-icon { background: rgba(216,72,32,0.15); color: var(--accent); }

/* Chapter Modal */
.chapter-modal-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(232,200,64,0.1);
}
.chapter-modal-icon-wrap {
    width: 64px; height: 64px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}
.chapter-modal-num {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--gray);
    margin-bottom: 2px;
}
.chapter-modal-steam {
    font-size: 12px;
    color: var(--gray);
    font-weight: 600;
    opacity: 0.7;
    margin-top: 4px;
}

.chapter-modal-section-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--gray);
    margin-bottom: 12px;
    opacity: 0.7;
}

.chapter-modal-presets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chapter-modal-preset-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(232,200,64,0.1);
    border-radius: 10px;
}
.chapter-modal-preset-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}
.chapter-modal-preset-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chapter-modal-preset-size {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(232,200,64,0.08);
    border: 1px solid rgba(232,200,64,0.15);
    padding: 2px 8px;
    border-radius: 6px;
}
.chapter-modal-preset-manifest {
    font-size: 10px;
    color: var(--gray);
    font-family: 'Courier New', monospace;
    opacity: 0.6;
}

/* DL Breakdown */
.dl-breakdown-body { margin-top: 4px; }

.dl-rel-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.dl-rel-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(232,200,64,0.08);
    border-radius: 8px;
    font-size: 12.5px;
}
.dl-rel-tag { color: var(--light); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-rel-date { color: var(--gray); font-size: 11px; font-weight: 600; white-space: nowrap; }
.dl-rel-count { color: var(--primary); font-weight: 700; white-space: nowrap; }
.dl-rel-count-gh { color: var(--gray); }
.dl-rel-count-gb { color: var(--accent2); }

.dl-rel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(232,200,64,0.06);
    border: 1px solid rgba(232,200,64,0.12);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--light);
}
.dl-rel-footer-total { border-color: rgba(232,200,64,0.2); color: var(--primary); }

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: rgba(232,200,64,0.18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(232,200,64,0.32); }

/* ============================================
   Hamburger Button
   ============================================ */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid rgba(232,200,64,0.15);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px 10px;
    transition: var(--transition);
}
.nav-hamburger:hover { border-color: rgba(232,200,64,0.35); }

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gray);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Mobile Nav
   ============================================ */
.mobile-nav {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: rgba(12, 8, 5, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(232,200,64,0.12);
    padding: 12px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 998;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    display: block;
    color: var(--gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(232,200,64,0.07);
    transition: var(--transition);
    letter-spacing: 0.03em;
}
.mobile-nav-link:last-of-type { border-bottom: none; }
.mobile-nav-link:hover { color: var(--primary); padding-left: 16px; }

.mobile-nav-dl {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
}

/* ============================================
   Chapter Skeleton
   ============================================ */
@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.35; }
    50%       { opacity: 0.6;  }
}

.chapter-skeleton {
    background: var(--dark-card);
    border: 1px solid rgba(232,200,64,0.07);
    border-radius: 14px;
    height: 240px;
    animation: skeleton-pulse 1.6s ease-in-out infinite;
}

.chapters-error {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    padding: 40px 20px;
    font-weight: 600;
}
.chapters-error a {
    color: var(--primary);
    text-decoration: none;
    margin-left: 4px;
}
.chapters-error a:hover { text-decoration: underline; }

/* ============================================
   Changelog Section
   ============================================ */
.changelog-section {
    padding: 100px 0;
    background: var(--dark-light);
    border-top: 1px solid rgba(232,200,64,0.06);
    border-bottom: 1px solid rgba(232,200,64,0.06);
}

.changelog-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.changelog-skeleton {
    background: var(--dark-card);
    border: 1px solid rgba(232,200,64,0.07);
    border-radius: 14px;
    height: 180px;
    animation: skeleton-pulse 1.6s ease-in-out infinite;
}
.changelog-skeleton:nth-child(2) { animation-delay: 0.2s; }

.changelog-error {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
    justify-content: center;
    color: var(--gray);
    font-size: 14px;
    padding: 40px 20px;
    font-weight: 600;
}
.changelog-error i { font-size: 18px; opacity: 0.6; }
.changelog-error a {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.changelog-error a:hover { text-decoration: underline; }

.changelog-entry {
    background: var(--dark-card);
    border: 1px solid rgba(232,200,64,0.1);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
}
.changelog-entry:hover {
    border-color: rgba(232,200,64,0.22);
    box-shadow: var(--shadow-sm);
}

.changelog-entry-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: rgba(0,0,0,0.22);
    border-bottom: 1px solid rgba(232,200,64,0.08);
    flex-wrap: wrap;
}

.changelog-entry-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fredoka One', sans-serif;
    font-size: 18px;
    color: var(--primary);
}

.latest-badge {
    display: inline-flex;
    align-items: center;
    font-family: 'Nunito', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(232,200,64,0.15);
    border: 1px solid rgba(232,200,64,0.3);
    color: var(--primary);
    vertical-align: middle;
    text-transform: uppercase;
}

.changelog-entry-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
}

.changelog-entry-link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    padding: 4px 10px;
    border: 1px solid rgba(154,120,72,0.15);
    border-radius: 7px;
}
.changelog-entry-link:hover {
    color: var(--primary);
    border-color: rgba(232,200,64,0.3);
    background: rgba(232,200,64,0.06);
}

.changelog-entry-body {
    padding: 18px 20px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--gray);
}

/* Markdown output styles */
.changelog-entry-body h3,
.changelog-entry-body h4,
.changelog-entry-body h5 {
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--white);
    margin: 14px 0 8px;
    letter-spacing: 0.02em;
}
.changelog-entry-body h3:first-child,
.changelog-entry-body h4:first-child,
.changelog-entry-body h5:first-child { margin-top: 0; }

.changelog-entry-body ul {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 6px 0;
}
.changelog-entry-body li { color: var(--gray); }

.changelog-entry-body p {
    margin: 6px 0;
    color: var(--gray);
}
.changelog-entry-body p:first-child { margin-top: 0; }

.changelog-entry-body strong { color: var(--light); }
.changelog-entry-body em { color: var(--gray); font-style: italic; }

.changelog-entry-body a {
    color: var(--primary);
    text-decoration: none;
}
.changelog-entry-body a:hover { text-decoration: underline; }

.changelog-entry-body code {
    background: rgba(232,200,64,0.08);
    color: var(--primary);
    border: 1px solid rgba(232,200,64,0.15);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.md-empty {
    color: var(--gray);
    opacity: 0.6;
    font-style: italic;
}

.changelog-entry-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 11px 20px;
    border-top: 1px solid rgba(232,200,64,0.08);
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    flex-wrap: wrap;
}
.changelog-entry-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.changelog-entry-footer i {
    color: var(--primary);
    opacity: 0.7;
}

/* ============================================
   Download Breakdown — empty state
   ============================================ */
.dl-breakdown-empty {
    text-align: center;
    color: var(--gray);
    font-size: 13px;
    padding: 24px;
    font-weight: 600;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 48px; }
    .hero-text { text-align: center; }
    .hero-badge { justify-content: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-demo { max-width: 400px; margin: 0 auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .features-grid { grid-template-columns: 1fr; }
    .chapters-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { flex-direction: column; align-items: center; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .modal-dialog { padding: 24px 18px; }
    .chapter-modal-head { flex-direction: column; text-align: center; }
    .changelog-entry-header { gap: 10px; }
    .changelog-entry-link { margin-left: 0; }
}

@media (max-width: 480px) {
    .chapters-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .stats-actions { flex-direction: column; align-items: center; }
    .dl-rel-row { grid-template-columns: 1fr auto; }
    .dl-rel-date { display: none; }
    .changelog-entry-date { display: none; }
}
