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

/* ---- Variables ---- */
:root {
    --primary-orange:  #c9a84c;
    --dark-orange:     #a8862a;
    --light-orange:    #e8c97e;
    --bg-dark:         #15110a;
    --text-primary:    #ffffff;
    --text-secondary:  #b0b0b0;
    --accent-glow:     rgba(201,168,76,0.3);
    --ac-gold:         #c9a84c;
    --ac-gold-light:   #e8c97e;
    --ac-gold-dim:     rgba(201,168,76,0.35);
    --ac-accent-light: #f5d77c;
    --ac-accent-dim:   rgba(201,168,76,0.4);
}

/* ---- Base ---- */
html {
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    opacity: 0;
    overflow-x: hidden;
    overflow-y: visible;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y pinch-zoom;
    transition: opacity 0.4s ease;
    height: 100%;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.ready { opacity: 1; }

#site-wrap {
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom;
}

/* ---- Loader ---- */
#page-loader { position: fixed; inset: 0; z-index: 999999; background: #0a0806; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; transition: opacity 0.5s ease, visibility 0.5s ease; }
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { width: clamp(120px, 25vw, 200px); height: auto; border-radius: 12px; filter: drop-shadow(0 0 20px rgba(201,168,76,0.4)); animation: loaderPulse 1.8s ease-in-out infinite; }
.loader-bar-wrap { width: clamp(200px, 40vw, 320px); height: 2px; background: rgba(201,168,76,0.15); border-radius: 2px; overflow: hidden; }
.loader-bar { height: 100%; width: 0%; background: linear-gradient(90deg, transparent, var(--ac-gold-light), var(--ac-gold), var(--ac-gold-light), transparent); background-size: 200% 100%; animation: shimmer 4s ease infinite; box-shadow: 0 0 14px rgba(201,168,76,0.6); transition: width 0.12s linear; }
.loader-text { font-family: 'Cinzel', serif; font-size: 0.65rem; letter-spacing: 4px; text-transform: uppercase; color: rgba(201,168,76,0.6); animation: loaderTextFade 1.8s ease-in-out infinite; }

/* ---- Background Slideshow ---- */
.bg-slideshow { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; transform: translateZ(0); will-change: transform; }
.bg-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.9s ease-in-out; filter: brightness(0.55) saturate(1.05) contrast(1.02); transform: translateZ(0); will-change: opacity; }
.bg-slide.active { opacity: 1; }
.bg-night-overlay { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(180deg, rgba(10,8,6,0.65) 0%, rgba(10,8,6,0.45) 35%, rgba(10,8,6,0.65) 100%); transform: translateZ(0); }
section, footer { background: transparent !important; }

/* ---- Scroll Progress Bar ---- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100000; pointer-events: none; background: rgba(255,255,255,0.04); }
.scroll-progress__bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--ac-gold), var(--ac-gold-light)); box-shadow: 0 0 8px rgba(201,168,76,0.6); }

/* ---- Navbar ---- */
nav#navbar { position: fixed; top: 0; width: 100%; background: rgba(10,8,6,0.92); border-bottom: 1px solid rgba(201,168,76,0.15); z-index: 1000; padding: 0.7rem 0; transition: all 0.3s ease; transform: translateZ(0); will-change: transform; }
nav#navbar.scrolled { padding: 0.5rem 0; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo-wrap { display: flex; align-items: center; gap: 0.5rem; }
.logo { font-size: 1.4rem; font-weight: 800; font-family: 'Cinzel', serif; background: linear-gradient(135deg, var(--ac-gold), var(--ac-gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: 1px; }
.nav-logo-img { height: 44px; width: auto; object-fit: contain; border-radius: 6px; filter: drop-shadow(0 0 8px rgba(201,168,76,0.35)); vertical-align: middle; transition: filter 0.3s; }
.nav-logo-img:hover { filter: drop-shadow(0 0 14px rgba(201,168,76,0.65)); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; font-family: 'Cinzel', serif; transition: all 0.3s ease; position: relative; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); width: 0; height: 1px; background: var(--ac-gold); transition: width 0.3s ease; }
.nav-links a:hover { color: var(--ac-gold-light); }
.nav-links a:hover::after { width: 100%; }
.steam-nav-item { list-style: none; display: flex; align-items: center; }
.steam-nav-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.28rem 0.75rem; border: 1px solid rgba(201,168,76,0.32); background: rgba(201,168,76,0.05); border-radius: 2px; font-family: 'Cinzel', serif; font-size: 0.56rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(201,168,76,0.65); white-space: nowrap; pointer-events: none; user-select: none; }
.steam-nav-icon { width: 13px; height: 13px; fill: rgba(201,168,76,0.55); flex-shrink: 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 0.4rem; position: relative; z-index: 1001; appearance: none; touch-action: manipulation; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ac-gold); border-radius: 2px; transition: all 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- HUD Dots ---- */
nav.ac-hud { position: fixed; right: 1.4rem; top: 50%; transform: translateY(-50%); z-index: 9000; display: flex; flex-direction: column; gap: 0.7rem; pointer-events: auto; border: none; background: none; padding: 0; }
nav.ac-hud a { display: block; width: 10px; height: 10px; position: relative; border-radius: 2px; background: rgba(201,168,76,0.25); transform: rotate(45deg); transition: background 0.3s, box-shadow 0.3s; color: transparent; font-size: 0; text-decoration: none; touch-action: manipulation; }
nav.ac-hud a::after { content: attr(data-label); position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%) rotate(-45deg); font-family: 'Cinzel', serif; font-size: 0.58rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ac-gold-light); white-space: nowrap; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
nav.ac-hud a:hover { background: var(--ac-gold-light); box-shadow: 0 0 12px var(--ac-gold); }
nav.ac-hud a:hover::after { opacity: 1; }
nav.ac-hud a.active { background: var(--ac-gold-light); box-shadow: 0 0 12px var(--ac-gold), 0 0 24px rgba(201,168,76,0.6); }

/* ---- Hero ---- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 5rem 2rem 4.5rem; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(ellipse 70% 50% at 50% 35%, rgba(201,168,76,0.08), transparent 60%), radial-gradient(ellipse 90% 60% at 50% 110%, rgba(0,0,0,0.85), transparent 70%); }
.hero-content { max-width: 820px; animation: fadeInUp 1s ease; position: relative; z-index: 2; }
.hero-stars { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.hero-stars::before { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 2px; background: transparent; border-radius: 50%; box-shadow: 85px 60px 0 rgba(201,168,76,0.28), 210px 35px 0 rgba(255,248,210,0.22), 340px 95px 0 rgba(201,168,76,0.18), 480px 25px 0 rgba(255,255,200,0.20), 590px 80px 0 rgba(201,168,76,0.25), 720px 15px 0 rgba(255,248,210,0.18), 850px 70px 0 rgba(201,168,76,0.20), 95px 170px 0 rgba(255,255,220,0.15), 280px 155px 0 rgba(201,168,76,0.20), 450px 140px 0 rgba(255,248,210,0.18), 630px 160px 0 rgba(201,168,76,0.15), 780px 130px 0 rgba(255,255,200,0.20), 1050px 110px 0 rgba(201,168,76,0.15), 1180px 60px 0 rgba(255,248,210,0.20); animation: star-twinkle 5s ease-in-out infinite alternate; }
.hero-stars::after { content: ''; position: absolute; top: 0; left: 0; width: 1px; height: 1px; background: transparent; border-radius: 50%; box-shadow: 155px 90px 0 rgba(201,168,76,0.20), 320px 50px 0 rgba(255,255,220,0.18), 510px 110px 0 rgba(201,168,76,0.22), 680px 40px 0 rgba(255,248,210,0.16), 820px 100px 0 rgba(201,168,76,0.18), 970px 75px 0 rgba(255,255,200,0.20); animation: star-twinkle 7s ease-in-out infinite alternate-reverse; }
.hero-logo-wrap { margin-bottom: 1.5rem; display: flex; justify-content: center; align-items: center; animation: fadeInUp 0.8s ease both; }
.hero-logo-img { width: clamp(360px, 42vw, 560px); height: auto; object-fit: contain; filter: drop-shadow(0 0 28px rgba(201,168,76,0.4)) drop-shadow(0 0 55px rgba(201,168,76,0.12)); border-radius: 14px; transition: filter 0.4s, transform 0.4s; }
.hero-logo-img:hover { filter: drop-shadow(0 0 48px rgba(201,168,76,0.7)) drop-shadow(0 0 90px rgba(201,168,76,0.18)); transform: scale(1.04); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 900; font-family: 'Cinzel', serif; margin-bottom: 1rem; line-height: 1.1; letter-spacing: 3px; background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--ac-gold-light) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.8; }

/* ---- Buttons ---- */
.cta-buttons { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.btn { padding: 0.95rem 2.2rem; font-weight: 600; text-decoration: none; transition: all 0.3s ease; border: none; cursor: pointer; font-size: 0.95rem; position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; text-align: center; user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn-journey { background: linear-gradient(135deg, #1a1508, #2a2010); color: var(--ac-gold-light); border: 1px solid var(--ac-gold); box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(201,168,76,0.12); font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 2.5px; text-transform: uppercase; padding: 1.1rem 2.8rem; border-radius: 4px; }
@media (pointer: fine) { .btn-journey { clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px)); } }
.btn-journey::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(201,168,76,0.1), transparent); opacity: 0; transition: opacity 0.5s; }
.btn-journey:hover { background: linear-gradient(135deg, var(--ac-gold), var(--dark-orange)); color: #0a0806; border-color: var(--ac-gold-light); transform: translateY(-4px) scale(1.04); box-shadow: 0 18px 44px var(--accent-glow); }
.btn-journey:hover::before { opacity: 1; }
.btn-journey:active { background: linear-gradient(135deg, var(--ac-gold), var(--dark-orange)); color: #0a0806; transform: translateY(-2px); }

/* ---- Section Shared ---- */
section { padding: 2.5rem 2rem; max-width: 1400px; margin: 0 auto; position: relative; }
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; font-family: 'Cinzel', serif; margin-bottom: 0.8rem; text-align: center; letter-spacing: 1.5px; background: linear-gradient(120deg, var(--ac-gold-light) 0%, var(--ac-gold) 45%, var(--ac-accent-light) 70%, var(--ac-gold-light) 100%); background-size: 200% 100%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: titleShift 8s ease-in-out infinite; }
.section-subtitle { text-align: center; color: var(--text-secondary); font-size: 1rem; margin-bottom: 2.5rem; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--ac-gold), transparent); margin: 0 auto; max-width: 900px; position: relative; opacity: 0.55; }
.section-divider::after { content: '\25C6'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--ac-gold); font-size: 0.68rem; background: var(--bg-dark); padding: 0 0.8rem; opacity: 0.85; }
.ac-ornament { display: flex; align-items: center; justify-content: center; gap: 0.8rem; padding: 1.4rem 1rem; opacity: 0.55; }
.ac-ornament__line { flex: 0 1 220px; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,168,76,0.45), transparent); }
.ac-ornament__icon { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: var(--ac-gold-light); transform: rotate(45deg); border: 1px solid rgba(201,168,76,0.4); background: rgba(201,168,76,0.05); }
.ac-ornament__icon::before { content: ''; width: 6px; height: 6px; background: var(--ac-gold-light); box-shadow: 0 0 8px var(--ac-gold); }
.chapter-eyebrow { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 0 auto 0.8rem; font-family: 'Cinzel', serif; font-size: 0.62rem; letter-spacing: 6px; text-transform: uppercase; color: var(--ac-gold); opacity: 0.85; }

/* ---- Story Cards ---- */
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.story-card { background: radial-gradient(120% 80% at 0% 0%, rgba(201,168,76,0.06), transparent 55%), linear-gradient(135deg, rgba(19,17,9,0.9), rgba(30,26,18,0.9)); backdrop-filter: blur(10px) saturate(130%); border-radius: 14px; padding: 2rem; border: 1px solid rgba(201,168,76,0.16); transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), border-color 0.4s, box-shadow 0.45s; position: relative; overflow: hidden; }
.story-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(201,168,76,0.05), transparent); opacity: 0; transition: opacity 0.4s; }
.story-card::after  { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ac-gold), transparent); opacity: 0; transition: opacity 0.4s; }
.story-card:hover { transform: translateY(-4px); border-color: rgba(201,168,76,0.4); box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 38px rgba(201,168,76,0.14); }
.story-card:hover::before, .story-card:hover::after { opacity: 1; }
.story-card-content { position: relative; z-index: 1; }
.story-icon { width: 56px; height: 56px; margin-bottom: 1.2rem; display: block; fill: var(--ac-gold); filter: drop-shadow(0 0 8px rgba(201,168,76,0.4)); }
.story-card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; color: var(--ac-gold-light); font-family: 'Cinzel', serif; letter-spacing: 1px; }
.story-card p  { color: var(--text-secondary); line-height: 1.75; font-size: 0.92rem; }

/* ---- FAQ ---- */
.faq-container { max-width: 860px; margin: 0 auto; }
.faq-item { background: linear-gradient(135deg, rgba(14,12,7,0.85), rgba(19,17,9,0.85)); backdrop-filter: blur(10px); border-radius: 12px; margin-bottom: 1rem; border: 1px solid rgba(201,168,76,0.14); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.faq-item:hover { border-color: rgba(201,168,76,0.38); box-shadow: 0 4px 20px rgba(201,168,76,0.22); }
.faq-item.active { border-color: rgba(201,168,76,0.38); border-left: 2px solid var(--ac-gold); box-shadow: 0 4px 22px rgba(201,168,76,0.25); }
.faq-question { padding: 1.6rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 1rem; font-family: 'Cinzel', serif; transition: color 0.3s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.faq-question:hover { color: var(--ac-gold-light); }
.faq-toggle { font-size: 1rem; transition: transform 0.3s; color: var(--ac-gold); flex-shrink: 0; margin-left: 1rem; }
.faq-item.active .faq-toggle   { transform: rotate(180deg); }
.faq-item.active .faq-question { color: var(--ac-gold-light); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.3s; padding: 0 1.6rem; }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 1.6rem 1.6rem; }
.faq-answer p { color: var(--text-secondary); line-height: 1.8; font-size: 0.93rem; }

/* ---- Community ---- */
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.community-card { background: radial-gradient(120% 80% at 100% 0%, rgba(201,168,76,0.05), transparent 55%), linear-gradient(135deg, rgba(14,12,7,0.9), rgba(26,23,16,0.9)); backdrop-filter: blur(10px) saturate(130%); border-radius: 14px; padding: 2rem 1.6rem; text-align: center; border: 1px solid rgba(201,168,76,0.14); transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), border-color 0.4s, box-shadow 0.45s; position: relative; overflow: hidden; display: flex; flex-direction: column; clip-path: polygon(0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px)); }
.community-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(201,168,76,0.04), transparent); opacity: 0; transition: opacity 0.4s; }
.community-card::after  { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ac-gold), transparent); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.community-card:hover { transform: translateY(-8px) scale(1.02); border-color: rgba(201,168,76,0.42); box-shadow: 0 18px 44px rgba(0,0,0,0.6), 0 0 32px rgba(201,168,76,0.28); }
.community-card:hover::before, .community-card:hover::after { opacity: 1; }
.community-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; flex: 1; }
.community-icon { width: 72px; height: 72px; margin: 0 auto 1.2rem; display: block; filter: drop-shadow(0 0 14px rgba(201,168,76,0.45)); pointer-events: none; user-select: none; }
.community-card h3 { font-size: 1.45rem; margin-bottom: 0.8rem; font-family: 'Cinzel', serif; color: var(--ac-gold-light); letter-spacing: 1px; }
.community-card p  { color: var(--text-secondary); margin-bottom: 1.6rem; flex: 1; font-size: 0.9rem; }

/* ---- Archive Rail ---- */
.ac-rail-section { padding: 4.5rem 0 5rem; position: relative; max-width: 100%; }
.ac-rail-header { max-width: 1400px; margin: 0 auto 1.6rem; padding: 0 2rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.ac-rail-title { font-family: 'Cinzel', serif; font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 900; color: #fff; letter-spacing: 1.5px; line-height: 1.1; margin: 0.3rem 0 0.4rem; }
.ac-rail-title em { font-style: normal; background: linear-gradient(120deg, var(--ac-gold-light), var(--ac-gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ac-rail-sub { color: var(--text-secondary); font-size: 0.92rem; max-width: 520px; line-height: 1.6; }
.rail-controls { display: flex; gap: 0.6rem; }
.rail-btn { width: 46px; height: 46px; border-radius: 50%; background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.3); color: var(--ac-gold-light); font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), background 0.3s, border-color 0.3s, opacity 0.3s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; appearance: none; }
.rail-btn:hover { background: rgba(201,168,76,0.18); border-color: var(--ac-gold-light); transform: scale(1.08); }
.rail-btn:disabled { opacity: 0.3; cursor: default; transform: none; }
.ac-rail-track-wrap { position: relative; padding: 0.4rem 0 1rem; overflow: hidden; }
.ac-rail-track-wrap::before, .ac-rail-track-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; pointer-events: none; z-index: 3; }
.ac-rail-track-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-dark), transparent); }
.ac-rail-track-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--bg-dark), transparent); }
.ac-rail-track { display: flex; gap: 1.3rem; overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scroll-padding-left: 2rem; padding: 0.3rem 2rem 1.2rem; scrollbar-width: thin; scrollbar-color: rgba(201,168,76,0.3) transparent; scroll-behavior: smooth; cursor: grab; touch-action: pan-x pan-y; pointer-events: auto; position: relative; z-index: 1; will-change: scroll-position; }
.ac-rail-track::-webkit-scrollbar { height: 4px; }
.ac-rail-track::-webkit-scrollbar-track { background: transparent; }
.ac-rail-track::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 2px; }
.ac-rail-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.ac-tile { flex: 0 0 clamp(260px, 28vw, 340px); scroll-snap-align: start; position: relative; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #14110a, #0a0806); border: 1px solid rgba(201,168,76,0.18); text-decoration: none; color: inherit; transition: transform 0.55s cubic-bezier(0.22,1,0.36,1), border-color 0.4s, box-shadow 0.55s; isolation: isolate; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
.ac-tile__img { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); transition: transform 1s cubic-bezier(0.22,1,0.36,1), filter 0.5s; filter: saturate(0.85) brightness(0.7); }
.ac-tile__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,6,0) 25%, rgba(10,8,6,0.45) 55%, rgba(10,8,6,0.96) 100%); }
.ac-tile__num { position: absolute; top: 1rem; left: 1rem; font-family: 'Cinzel', serif; font-size: 0.58rem; letter-spacing: 3px; text-transform: uppercase; padding: 0.32rem 0.7rem; background: rgba(10,8,6,0.55); backdrop-filter: blur(8px); border: 1px solid rgba(201,168,76,0.35); color: var(--ac-gold-light); border-radius: 999px; z-index: 2; }
.ac-tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.4rem 1.5rem; z-index: 2; }
.ac-tile__type { font-family: 'Cinzel', serif; font-size: 0.58rem; letter-spacing: 3px; color: var(--ac-gold); text-transform: uppercase; margin-bottom: 0.45rem; display: block; }
.ac-tile__title { font-family: 'Cinzel', serif; font-size: 1.25rem; line-height: 1.2; color: #fff; margin: 0 0 0.5rem; letter-spacing: 0.5px; }
.ac-tile__desc { color: rgba(255,255,255,0.65); font-size: 0.82rem; line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.55s cubic-bezier(0.22,1,0.36,1), opacity 0.4s, margin 0.55s; margin-bottom: 0; }
.ac-tile__cta { display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'Cinzel', serif; font-size: 0.62rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ac-gold-light); padding: 0.55rem 0.9rem; border: 1px solid rgba(201,168,76,0.4); border-radius: 999px; background: rgba(201,168,76,0.08); backdrop-filter: blur(6px); transition: background 0.3s, border-color 0.3s, transform 0.3s; }
.ac-tile__cta::after { content: '\2192'; transition: transform 0.3s; }
@media (pointer: fine) { .ac-tile:hover { transform: translateY(-6px); border-color: rgba(201,168,76,0.5); box-shadow: 0 24px 50px rgba(0,0,0,0.55), 0 0 50px rgba(201,168,76,0.16); } .ac-tile:hover .ac-tile__img { transform: scale(1.12); filter: saturate(1.05) brightness(0.85); } .ac-tile:hover .ac-tile__desc { max-height: 100px; opacity: 1; margin-bottom: 0.9rem; } .ac-tile:hover .ac-tile__cta { background: rgba(201,168,76,0.18); border-color: var(--ac-gold-light); transform: translateY(-2px); } .ac-tile:hover .ac-tile__cta::after { transform: translateX(4px); } }
@media (pointer: coarse) { .ac-tile__desc { max-height: 80px; opacity: 1; margin-bottom: 0.9rem; } .ac-tile:hover { transform: none; box-shadow: none; border-color: rgba(201,168,76,0.18); } .ac-tile:hover .ac-tile__img { transform: scale(1.04); filter: saturate(0.85) brightness(0.7); } .ac-tile:active { border-color: rgba(201,168,76,0.45); } }

/* ---- Trailer & Gameplay ---- */
#trailer, #gameplay { padding: 3rem 2rem; max-width: 1050px; margin: 0 auto; text-align: center; }
.trailer-label { display: inline-flex; align-items: center; gap: 0.6rem; background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.3); border-radius: 2px; padding: 0.45rem 1.2rem; font-size: 0.68rem; font-weight: 700; font-family: 'Cinzel', serif; color: var(--ac-gold); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 1.2rem; }
.trailer-label::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--ac-gold); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); animation: pulseDot 1.5s ease infinite; }
.trailer-title { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 900; font-family: 'Cinzel', serif; letter-spacing: 5px; line-height: 1.05; margin-bottom: 0.8rem; background: linear-gradient(135deg, #fff 30%, var(--ac-gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.trailer-subtitle { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 2.8rem; }
.trailer-frame-wrap { position: relative; border-radius: 2px; padding: 3px; background: linear-gradient(135deg, rgba(201,168,76,0.7), rgba(201,168,76,0.05) 50%, rgba(201,168,76,0.7)); background-size: 300% 300%; animation: borderShift 5s ease infinite; box-shadow: 0 36px 70px rgba(0,0,0,0.7), 0 0 70px rgba(201,168,76,0.1); clip-path: polygon(0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px)); }
.trailer-frame-inner { overflow: hidden; background: #000; position: relative; aspect-ratio: 16/9; border-radius: 2px; }
.trailer-frame-inner iframe { width: 100%; height: 100%; position: absolute; top: 0; left: 0; border: none; display: block; }
.trailer-corner { position: absolute; width: 20px; height: 20px; border-color: var(--ac-gold); border-style: solid; z-index: 2; pointer-events: none; }
.trailer-corner.tl { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.trailer-corner.tr { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.trailer-corner.bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.trailer-corner.br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

/* ---- Team ---- */
#team { padding: 3rem 2rem; max-width: 1400px; margin: 0 auto; position: relative; }
#team::before { content: ''; display: block; width: 160px; height: 1px; margin: 0 auto 3rem; background: linear-gradient(90deg, transparent, var(--ac-gold), transparent); }
.team-lead-card { display: flex; align-items: center; gap: 2.5rem; background: linear-gradient(135deg, #0a0806, #141109, #0a0806); border: 1px solid rgba(201,168,76,0.4); padding: 2.8rem 2.6rem; margin-bottom: 2.5rem; position: relative; overflow: hidden; clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px)); box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 60px rgba(201,168,76,0.1); }
.team-lead-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--ac-gold), transparent); pointer-events: none; }
.team-lead-card::after  { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ac-gold), transparent); pointer-events: none; }
.team-lead-stripe { position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, transparent, var(--ac-gold), transparent); pointer-events: none; }
.team-lead-avatar-wrap { flex-shrink: 0; position: relative; z-index: 1; }
.team-lead-avatar { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg, var(--ac-gold-light), var(--ac-gold) 55%, var(--dark-orange)); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 900; font-family: 'Cinzel', serif; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.45); border: 2px solid rgba(201,168,76,0.6); box-shadow: 0 0 40px rgba(201,168,76,0.3), inset 0 1px 0 rgba(255,255,255,0.22); }
.team-lead-content { flex: 1; position: relative; z-index: 1; }
.team-lead-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.35); padding: 0.28rem 0.9rem; font-family: 'Cinzel', serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 3px; color: var(--ac-gold); text-transform: uppercase; margin-bottom: 0.7rem; clip-path: polygon(0 4px, 4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px)); }
.team-lead-badge::before { content: ''; width: 5px; height: 5px; background: var(--ac-gold); border-radius: 50%; animation: pulseDot 1.5s ease infinite; flex-shrink: 0; }
.team-lead-name { font-family: 'Cinzel', serif; font-size: 2.1rem; font-weight: 900; color: var(--ac-gold-light); letter-spacing: 4px; margin-bottom: 0.8rem; line-height: 1; }
.team-lead-desc { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.8; max-width: 600px; }
.team-contrib-label { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.4rem; }
.team-contrib-label .tcl-line { flex: 1; height: 1px; background: rgba(201,168,76,0.18); }
.team-contrib-label .tcl-text { font-family: 'Cinzel', serif; font-size: 0.65rem; letter-spacing: 4.5px; text-transform: uppercase; color: rgba(201,168,76,0.48); white-space: nowrap; }
.team-categories { display: flex; flex-direction: column; gap: 0.8rem; }
.team-cat { background: linear-gradient(135deg, rgba(14,12,7,0.85), rgba(19,17,9,0.85)); border: 1px solid rgba(201,168,76,0.14); border-radius: 12px; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.team-cat:hover { border-color: rgba(201,168,76,0.3); }
.team-cat.active { border-color: rgba(201,168,76,0.38); border-left: 2px solid var(--ac-gold); box-shadow: 0 4px 22px rgba(201,168,76,0.18); }
.team-cat-header { padding: 1.5rem 1.6rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Cinzel', serif; font-weight: 600; font-size: 1rem; color: var(--text-primary); transition: color 0.3s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.team-cat-header:hover { color: var(--ac-gold-light); }
.team-cat.active .team-cat-header { color: var(--ac-gold-light); }
.team-cat-toggle { font-size: 1rem; color: var(--ac-gold); flex-shrink: 0; margin-left: 1rem; transition: transform 0.3s ease; }
.team-cat.active .team-cat-toggle { transform: rotate(180deg); }
.team-cat-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; padding: 0 1.2rem; }
.team-cat.active .team-cat-body { max-height: 1200px; padding: 0.2rem 1.2rem 1.4rem; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.team-card { background: linear-gradient(160deg, #0c0a06, #14120a, #0c0a06); border: 1px solid rgba(201,168,76,0.18); overflow: hidden; clip-path: polygon(0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px)); transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), border-color 0.3s, box-shadow 0.45s; position: relative; display: flex; flex-direction: column; }
.team-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,168,76,0.45), transparent); pointer-events: none; }
.team-card::after  { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(201,168,76,0.05), transparent); opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.team-card:hover { border-color: rgba(201,168,76,0.42); transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,0.55), 0 0 28px rgba(201,168,76,0.16); }
.team-card:hover::after { opacity: 1; }
.team-card-inner { padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; position: relative; z-index: 1; }
.team-card-top { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.team-card-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--ac-gold-light), var(--ac-gold) 55%, var(--dark-orange)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 900; font-family: 'Cinzel', serif; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.5); border: 1px solid rgba(201,168,76,0.55); box-shadow: 0 0 16px rgba(201,168,76,0.2), inset 0 1px 0 rgba(255,255,255,0.22); flex-shrink: 0; }
.team-card-name { font-family: 'Cinzel', serif; font-size: 0.95rem; font-weight: 700; color: var(--ac-gold-light); letter-spacing: 0.5px; margin: 0 0 0.3rem; line-height: 1.2; }
.team-role { display: inline-block; background: rgba(201,168,76,0.07); border: 1px solid rgba(201,168,76,0.2); color: rgba(201,168,76,0.75); font-size: 0.58rem; padding: 0.14rem 0.55rem; font-family: 'Cinzel', serif; letter-spacing: 1px; text-transform: uppercase; clip-path: polygon(0 3px, 3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px)); }
.team-card p { color: var(--text-secondary); font-size: 0.82rem; line-height: 1.65; flex: 1; }

/* ---- Pre-Beta ---- */
.prebeta-section { padding: 4rem 2rem 5rem; max-width: 720px; margin: 0 auto; text-align: center; }
.prebeta-diamond { color: var(--ac-gold); font-size: 1.1rem; margin-bottom: 1rem; opacity: 0.7; }
.prebeta-tag { display: inline-block; font-family: 'Cinzel', serif; font-size: 0.65rem; letter-spacing: 5px; text-transform: uppercase; color: var(--ac-gold); margin-bottom: 1.2rem; }
.prebeta-title { font-family: 'Cinzel', serif; font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 900; color: var(--ac-gold-light); letter-spacing: 2px; margin-bottom: 1.2rem; line-height: 1.2; }
.prebeta-text { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; max-width: 560px; margin: 0 auto 2rem; }
.prebeta-divider { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent); margin: 2.5rem auto 2rem; }
.prebeta-steam { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; color: rgba(255,255,255,0.35); font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase; }
.steam-logo { width: 26px; height: 26px; fill: rgba(255,255,255,0.3); flex-shrink: 0; }

/* ---- Footer ---- */
footer { background: #090806; padding: 3rem 2rem 2rem; text-align: center; border-top: 1px solid rgba(201,168,76,0.12); }
.footer-content { max-width: 1400px; margin: 0 auto; }
.footer-links { display: flex; flex-direction: row; flex-wrap: wrap; gap: 1.6rem; justify-content: center; margin-bottom: 1.6rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-family: 'Cinzel', serif; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; transition: color 0.3s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.footer-links a:hover { color: var(--ac-gold-light); }
.copyright { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 0.6rem; }
.developer-credit { font-size: 0.9rem; color: var(--ac-gold); font-weight: 700; font-family: 'Cinzel', serif; letter-spacing: 2px; text-shadow: 0 0 12px rgba(201,168,76,0.3); }

/* ---- Overlays ---- */
.codex-overlay { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-start; justify-content: center; background: rgba(5,4,2,0.97); opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 0.45s ease, visibility 0.45s ease; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2rem 1.5rem; overscroll-behavior: contain; scrollbar-width: none; }
.codex-overlay::-webkit-scrollbar { display: none; }
.codex-overlay.open { opacity: 1; pointer-events: all; visibility: visible; }
.codex-panel { max-width: 1000px; width: 100%; position: relative; padding: 2.8rem 2.8rem 3.5rem; background: linear-gradient(160deg, #0e0c07, #14110a, #0e0c07); border: 1px solid rgba(201,168,76,0.35); margin: 2rem auto; transform: translateY(35px); transition: transform 0.45s ease; clip-path: polygon(0 16px, 16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px)); box-shadow: 0 0 80px rgba(201,168,76,0.12), 0 40px 80px rgba(0,0,0,0.7); }
.codex-overlay.open .codex-panel { transform: translateY(0); }
.codex-panel::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(201,168,76,0.08); pointer-events: none; clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px)); }
.codex-close-btn { position: absolute; top: 1.2rem; right: 1.2rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.3); color: var(--ac-gold); font-size: 1rem; cursor: pointer; transition: all 0.3s; z-index: 10; clip-path: polygon(0 5px, 5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px)); touch-action: manipulation; -webkit-tap-highlight-color: transparent; appearance: none; }
.codex-close-btn:hover { background: rgba(201,168,76,0.2); border-color: var(--ac-gold-light); color: #fff; }
.codex-header { text-align: center; margin-bottom: 2.4rem; }
.codex-header-ornament { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.codex-header-ornament .cho-line   { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3)); }
.codex-header-ornament .cho-line.r { background: linear-gradient(90deg, rgba(201,168,76,0.3), transparent); }
.codex-header-ornament .cho-diamond { color: var(--ac-gold); font-size: 0.65rem; }
.codex-badge { display: inline-flex; align-items: center; gap: 0.6rem; background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.28); border-radius: 2px; padding: 0.4rem 1.2rem; font-size: 0.66rem; font-weight: 600; font-family: 'Cinzel', serif; color: var(--ac-gold); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 1.2rem; }
.codex-badge::before { content: ''; width: 5px; height: 5px; background: var(--ac-gold); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.codex-main-title { font-family: 'Cinzel', serif; font-size: clamp(1.8rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: 6px; color: var(--ac-gold-light); margin-bottom: 0.5rem; line-height: 1.1; }
.codex-sub-title  { font-family: 'Cinzel', serif; font-size: 0.82rem; letter-spacing: 3px; color: rgba(201,168,76,0.48); text-transform: uppercase; }
.codex-illustration { border: 1px solid rgba(201,168,76,0.2); overflow: hidden; margin-bottom: 2rem; position: relative; background: #0a0806; clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px)); }
.codex-illustration img { width: 100%; max-height: 300px; object-fit: cover; display: block; opacity: 0.82; transition: opacity 0.4s, transform 0.5s; }
.codex-illustration:hover img { opacity: 1; transform: scale(1.02); }
.codex-illustration-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.6rem 1.2rem; background: linear-gradient(to top, rgba(10,8,6,0.92), transparent); font-family: 'Cinzel', serif; font-size: 0.68rem; letter-spacing: 2px; color: rgba(201,168,76,0.62); text-transform: uppercase; }
.codex-intro-text { color: #c0b08a; line-height: 1.9; font-size: 0.95rem; margin-bottom: 2rem; padding: 1.2rem 1.4rem; background: rgba(201,168,76,0.05); border-left: 2px solid var(--ac-gold); }
.codex-legend { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-family: 'Cinzel', serif; color: rgba(201,168,76,0.52); letter-spacing: 1px; }
.legend-item .legend-bar { width: 16px; height: 3px; border-radius: 1px; }
.codex-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 2.2rem; }
.codex-table-wrap::-webkit-scrollbar { height: 3px; }
.codex-table-wrap::-webkit-scrollbar-thumb { background: var(--ac-gold-dim); border-radius: 2px; }
.codex-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.codex-table thead tr { background: rgba(201,168,76,0.09); border-bottom: 1px solid rgba(201,168,76,0.3); }
.codex-table thead th { padding: 1rem 1.2rem; text-align: left; font-family: 'Cinzel', serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--ac-gold); }
.codex-table tbody tr { border-bottom: 1px solid rgba(201,168,76,0.065); transition: background 0.2s; }
.codex-table tbody tr:nth-child(even) { background: rgba(201,168,76,0.02); }
.codex-table tbody tr:hover { background: rgba(201,168,76,0.07); }
.codex-table tbody tr.clan-prophet  { background: rgba(201,168,76,0.06); border-left: 2px solid var(--ac-gold); }
.codex-table tbody tr.clan-opponent  { border-left: 2px solid rgba(255,70,40,0.4); }
.codex-table tbody tr.clan-companion { border-left: 2px solid var(--ac-gold-light); }
.codex-table td { padding: 0.9rem 1.2rem; color: #c8b98a; vertical-align: top; line-height: 1.55; }
.codex-table td:first-child { font-family: 'Cinzel', serif; font-weight: 600; color: var(--ac-gold-light); font-size: 0.88rem; }
.clan-tag { display: inline-block; font-size: 0.62rem; padding: 0.08rem 0.5rem; border-radius: 2px; font-family: 'Cinzel', serif; letter-spacing: 0.7px; font-weight: 600; white-space: nowrap; }
.clan-tag.hollow    { background: rgba(201,168,76,0.1);  border: 1px solid rgba(201,168,76,0.22); color: var(--ac-gold); }
.clan-tag.outskirts { background: rgba(140,120,70,0.08); border: 1px solid rgba(140,120,70,0.18); color: #9e8c5a; }
.codex-footnote { padding-top: 1.8rem; border-top: 1px solid rgba(201,168,76,0.1); font-size: 0.8rem; color: rgba(201,168,76,0.36); line-height: 1.7; font-style: italic; }

/* ---- Devlog cards ---- */
.devlog-grid { display: flex; flex-direction: column; gap: 20px; }
.devlog-card { display: grid; grid-template-columns: 260px 1fr; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #11100a, #191610); border: 1px solid rgba(201,168,76,0.18); transition: all 0.35s ease; position: relative; min-height: 160px; }
.devlog-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ac-gold), transparent); opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.devlog-card:hover { border-color: rgba(201,168,76,0.55); transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,0.6), 0 0 28px rgba(201,168,76,0.22); }
.devlog-card:hover::after { opacity: 1; }
.devlog-img-wrap { position: relative; overflow: hidden; }
.devlog-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; transition: transform 0.5s ease, opacity 0.3s ease; }
.devlog-card:hover .devlog-img-wrap img { transform: scale(1.06); opacity: 1; }
.devlog-num-badge { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.7); color: var(--ac-accent-light); padding: 0.28rem 0.7rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; font-family: 'Cinzel', serif; letter-spacing: 1px; z-index: 2; border: 1px solid rgba(201,168,76,0.3); }
.devlog-card-body { display: flex; flex-direction: column; justify-content: center; padding: 1.4rem 1.6rem; gap: 0.3rem; }
.devlog-card-type  { font-family: 'Cinzel', serif; font-size: 0.62rem; letter-spacing: 3px; text-transform: uppercase; color: var(--ac-gold); opacity: 0.85; display: block; }
.devlog-card-title { font-family: 'Cinzel', serif; font-size: 1.15rem; font-weight: 700; color: var(--ac-gold-light); letter-spacing: 0.5px; margin: 0.2rem 0 0.4rem; line-height: 1.2; }
.devlog-card-desc  { font-size: 0.88rem; line-height: 1.6; color: var(--text-secondary); margin-bottom: 0.8rem; flex: 1; }
.devlog-open-link { display: inline-flex; align-items: center; gap: 0.4rem; font-family: 'Cinzel', serif; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ac-gold-light); text-decoration: none; padding: 0.5rem 1rem; border: 1px solid rgba(201,168,76,0.3); border-radius: 999px; background: rgba(201,168,76,0.06); transition: all 0.3s; align-self: flex-start; touch-action: manipulation; }
.devlog-open-link::after { content: '\2192'; transition: transform 0.3s; }
.devlog-open-link:hover { background: rgba(201,168,76,0.18); border-color: var(--ac-gold-light); color: #fff; }
.devlog-open-link:hover::after { transform: translateX(4px); }

/* ---- Scroll Indicator ---- */
.scroll-indicator { position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; transition: opacity 0.3s; }
.scroll-indicator span { display: block; width: 22px; height: 36px; border: 1px solid var(--ac-gold); border-radius: 11px; position: relative; }
.scroll-indicator span::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 6px; background: var(--ac-gold); border-radius: 2px; animation: scrollDot 2s infinite; }

.ar-saw { font-family: 'Noto Naskh Arabic', 'Amiri', serif; font-weight: 600; display: inline-block; line-height: 1; transform: translateY(0.05em); margin: 0 0.1em; color: var(--ac-gold-light); }
em, i, .translit { font-family: 'Noto Serif', 'Inter', serif; font-style: italic; }

/* ---- Fade In ---- */
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0) !important; }
.story-grid     .fade-in.visible:nth-child(2) { transition-delay: 0.08s; }
.story-grid     .fade-in.visible:nth-child(3) { transition-delay: 0.16s; }
.story-grid     .fade-in.visible:nth-child(4) { transition-delay: 0.24s; }
.community-grid .fade-in.visible:nth-child(2) { transition-delay: 0.08s; }
.community-grid .fade-in.visible:nth-child(3) { transition-delay: 0.16s; }
.community-grid .fade-in.visible:nth-child(4) { transition-delay: 0.24s; }

/* ---- Animations ---- */
@keyframes fadeInUp    { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes titleShift  { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes shimmer     { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes borderShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes pulseDot    { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.6); } }
@keyframes bounce      { 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-8px); } 60% { transform: translateX(-50%) translateY(-4px); } }
@keyframes scrollDot   { 0% { opacity: 0; top: 6px; } 50% { opacity: 1; } 100% { opacity: 0; top: 22px; } }
@keyframes star-twinkle{ 0% { opacity: 0.4; } 50% { opacity: 0.95; } 100% { opacity: 0.5; } }
@keyframes loaderPulse { 0%, 100% { filter: drop-shadow(0 0 20px rgba(201,168,76,0.4)); } 50% { filter: drop-shadow(0 0 40px rgba(201,168,76,0.7)); } }
@keyframes loaderTextFade { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

@supports (backdrop-filter: blur(1px)) { nav#navbar { backdrop-filter: blur(20px); background: rgba(10,8,6,0.9); } }
body.zoom-extreme nav#navbar { backdrop-filter: none !important; background: rgba(10,8,6,0.97) !important; }

@media (min-width: 1200px) { .hero { min-height: 95vh; padding: 4.5rem 2rem 4rem; } .hero-logo-img { width: clamp(420px, 38vw, 580px); } .hero h1 { font-size: clamp(2.8rem, 4.5vw, 4.5rem); } .hero p { font-size: 1.1rem; margin-bottom: 1.8rem; } .team-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 821px) { html { font-size: 14.5px; } section, footer { padding-top: 4rem !important; padding-bottom: 4rem !important; } .bg-slide { filter: brightness(0.58) saturate(1.05) !important; } }
@media (max-width: 1024px) { .nav-container { padding: 0 1.5rem; } .story-grid { grid-template-columns: repeat(2, 1fr); } .community-grid { grid-template-columns: repeat(2, 1fr); } .team-grid { grid-template-columns: repeat(3, 1fr); } .devlog-card { grid-template-columns: 200px 1fr; } }

@media (max-width: 768px) {
    .nav-container { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; }
    .nav-toggle { display: flex; }
    .nav-links { display: flex; position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100dvh; flex-direction: column; justify-content: center; align-items: center; gap: 0; background: rgba(10,8,6,0.98); backdrop-filter: none; padding: 0; z-index: 999; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-12px); transition: opacity 0.38s ease, visibility 0.38s ease, transform 0.38s ease; }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links.open { opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0); }
    .nav-links li   { width: 100%; text-align: center; opacity: 0; transform: translateY(14px); transition: opacity 0.3s ease, transform 0.3s ease; }
    .nav-links.open li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.08s; }
    .nav-links.open li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.14s; }
    .nav-links.open li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.20s; }
    .nav-links.open li:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.26s; }
    .nav-links.open li:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.32s; }
    .nav-links.open li:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.38s; }
    .nav-links.open li:nth-child(7) { opacity: 1; transform: none; transition-delay: 0.44s; }
    .nav-links.open li:nth-child(8) { opacity: 1; transform: none; transition-delay: 0.50s; }
    .nav-links a { display: block; padding: 1rem 2rem; font-size: 0.9rem; letter-spacing: 3px; border-bottom: 1px solid rgba(201,168,76,0.07); text-align: center; touch-action: manipulation; cursor: pointer; }
    .nav-links a::after { display: none; }
    .steam-nav-item { width: 100%; display: flex; justify-content: center; padding: 1rem 2rem; border-bottom: 1px solid rgba(201,168,76,0.07); }
    .steam-nav-badge { font-size: 0.68rem; padding: 0.4rem 1rem; }
    .steam-nav-icon  { width: 15px; height: 15px; }
    nav#navbar { padding: 0.6rem 0; }
    .hero { padding: 7.5rem 1.5rem 3.5rem; min-height: 100svh; }
    .hero h1 { font-size: clamp(1.8rem, 7vw, 3rem); letter-spacing: 1px; }
    .hero-logo-img { width: clamp(240px, 70vw, 340px); }
    section, #team, #trailer, #gameplay { padding: 2.5rem 1.5rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 340px; justify-content: center; }
    .story-grid, .community-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .team-lead-card { flex-direction: column; text-align: center; gap: 1.4rem; padding: 1.8rem 1.5rem; }
    .team-lead-desc { text-align: left; }
    .team-contrib-label .tcl-line { display: none; }
    .community-card, .story-card { padding: 1.8rem 1.4rem; }
    .faq-question { padding: 1.4rem; font-size: 0.92rem; }
    .faq-answer { padding: 0 1.4rem; }
    .faq-item.active .faq-answer { padding: 0 1.4rem 1.4rem; }
    .team-cat-header { padding: 1.2rem 1.3rem; font-size: 0.9rem; }
    .team-cat-body { padding: 0 0.8rem; }
    .team-cat.active .team-cat-body { padding: 0 0.8rem 1rem; }
    .footer-links { gap: 1rem; }
    .nav-logo-img { height: 28px; }
    .logo { font-size: 1.3rem; }
    .trailer-title { letter-spacing: 2px; }
    .codex-overlay { padding: 0; background: rgba(5,4,2,0.99); }
    .codex-panel { padding: 1.6rem 1rem 2.2rem; margin: 0; border-radius: 0; clip-path: none; }
    .codex-panel::before { display: none; }
    .codex-main-title { font-size: 1.5rem; letter-spacing: 2px; }
    .codex-table { font-size: 0.68rem; }
    .codex-table thead th { font-size: 0.53rem; padding: 0.6rem 0.65rem; }
    .codex-table td { padding: 0.55rem 0.65rem; }
    .codex-close-btn { top: 0.9rem; right: 0.9rem; width: 34px; height: 34px; }
    .ac-rail-header { padding: 0 1.2rem; }
    .ac-rail-track { padding: 0.3rem 1.2rem 1rem !important; scroll-padding-left: 1.2rem; }
    .ac-rail-track-wrap::before, .ac-rail-track-wrap::after { width: 40px; }
    .ac-tile { flex: 0 0 75vw; aspect-ratio: 4/5.2; }
    .rail-controls { display: none; }
    .prebeta-section { padding: 2rem 1.5rem 3rem; }
    #team::before { margin-bottom: 2.5rem; }
    .story-card, .community-card, .team-card, .faq-item { backdrop-filter: none !important; }
    .devlog-card { grid-template-columns: 1fr; }
    .devlog-img-wrap img { max-height: 200px; }
}

@media (max-width: 900px) { nav.ac-hud { display: none; } }
@media (max-width: 640px) { .team-lead-card { padding: 1.6rem 1.2rem; } .team-lead-avatar { width: 72px; height: 72px; font-size: 1.8rem; } .team-lead-name { font-size: 1.5rem; } }
@media (max-width: 480px) { .hero h1 { font-size: 1.75rem; letter-spacing: 0.5px; } .hero p { font-size: 0.95rem; } .section-title { font-size: 1.7rem; } .section-subtitle { font-size: 0.95rem; } .community-icon { width: 60px; height: 60px; } .team-grid { grid-template-columns: 1fr; } .btn-journey { font-size: 0.88rem; padding: 1rem 1.8rem; } .logo { font-size: 1.25rem; } .nav-links a { font-size: 0.82rem; } .footer-links { gap: 0.9rem; font-size: 0.68rem; } .hero-logo-img { width: 260px; } .nav-logo-img { height: 24px; } .trailer-title { font-size: 1.85rem; letter-spacing: 1px; } }
@media (max-width: 360px) { .hero h1 { font-size: 1.55rem; } .section-title { font-size: 1.4rem; } .nav-links a { font-size: 0.78rem; } }
@media (hover: none) { .story-card:hover, .community-card:hover, .team-card:hover { transform: none; } }
@media (max-height: 500px) and (orientation: landscape) { nav#navbar { padding: 0.45rem 0; } .nav-logo-img { height: 24px; } .logo { font-size: 1.2rem; } .nav-links { max-height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; padding-top: 3.5rem; } .hero { min-height: 100svh; padding: 5rem 2rem 1.8rem; align-items: flex-start; } .hero-logo-img { width: clamp(110px, 20vw, 200px); } .hero h1 { font-size: clamp(1.5rem, 5vw, 2.4rem); margin-bottom: 0.6rem; } .hero p { font-size: 0.9rem; margin-bottom: 1.2rem; } .cta-buttons { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0.8rem; } .btn { width: auto; max-width: none; } .btn-journey { padding: 0.8rem 1.6rem; font-size: 0.78rem; } .scroll-indicator, .hero-stars { display: none; } .story-grid, .community-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } .team-lead-card { flex-direction: column; gap: 1rem; } .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .bg-slide { transition: none; } .fade-in, .fade-in.visible { transition: none !important; transform: none !important; } .section-title { animation: none !important; } .hero-stars::before, .hero-stars::after { animation: none !important; opacity: 0.5; } .ac-tile, .ac-tile__img, .ac-tile__desc, .ac-tile__cta { transition: none !important; } .trailer-frame-wrap { animation: none !important; } }
